/* assets/css/products.css */
:root {
    --color-primary: #c86ae2;
    --color-bg-light: #f9fafb;
    --color-border: #e5e7eb;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--color-bg-light);
    color: #111827;
    margin: 0; padding: 0;
}

.products-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
}

.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 5px; }
.section-subtitle { color: #6b7280; }

/* Grid: 6 Columns Desktop */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px;
    margin-bottom: 40px;
}

/* Card */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Image */
.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    background: #fff;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s;
}

.product-card:hover .product-image { transform: scale(1.05); }

.discount-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: #ff9500; color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
}

/* Thumbnails */
.product-thumbnails {
    display: flex; gap: 5px; padding: 8px 12px 0; height: 40px;
}
.thumbnail {
    width: 32px; height: 32px;
    border-radius: 4px;
    border: 1px solid #eee;
    cursor: pointer;
    overflow: hidden;
}
.thumbnail.active { border-color: var(--color-primary); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Details */
.product-details { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }

.product-category {
    font-size: 0.7rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}

.product-name {
    font-size: 0.95rem; font-weight: 700; margin: 0 0 8px 0;
    line-height: 1.3; color: #111;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    height: 2.6em;
}
.product-name a { text-decoration: none; color: inherit; }

.product-price-wrapper { margin-bottom: 10px; }
.product-price { font-size: 1.1rem; font-weight: 800; color: #111; }
.product-price-old { font-size: 0.85rem; color: #9ca3af; text-decoration: line-through; margin-left: 5px; }

/* Actions */
.product-actions { 
    display: flex; 
    gap: 8px; 
    margin-top: auto; 
}

/* Add to Cart Button */
.btn-add-to-cart {
    flex: 1;
    padding: 10px;
    background: #111;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-add-to-cart:hover { background: var(--color-primary); }
.btn-add-to-cart:disabled { background: #eee; color: #aaa; cursor: not-allowed; }

/* Wishlist Button */
.btn-wishlist-outline {
    width: 40px;
    padding: 0;
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: all 0.2s;
}
.btn-wishlist-outline:hover {
    background: var(--color-primary);
    color: white;
}
.btn-wishlist-outline.active {
    background: var(--color-primary);
    color: white;
}

/* Media Queries */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .products-container { padding: 10px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card { border-radius: 12px; }
    .product-details { padding: 10px; }
    .product-name { font-size: 0.85rem; height: 2.8em; }
    .product-price { font-size: 1rem; }
    .btn-add-to-cart { padding: 8px 4px; font-size: 0.75rem; }
    .btn-wishlist-outline { width: 36px; font-size: 1rem; }
    .product-thumbnails { display: none; }
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid #eee; border-radius: 6px; text-decoration: none; color: #111; font-weight: 600; }
.pagination .current, .pagination a:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }