/* ==================================
   PRODUCTS PAGE STYLES
   ================================== */

/* Main Section */
.products {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(1200px 800px at 100% 0%, rgba(99, 102, 241, 0.08), transparent 60%),
        radial-gradient(1000px 700px at 0% 100%, rgba(16, 185, 129, 0.06), transparent 55%);
    z-index: 0;
}

.products .container {
    position: relative;
    z-index: 1;
}

.products .section__title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
}

.products .section__subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filtres */
.products__filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
}

.filter-chip {
    background: white;
    border: 2px solid var(--border-color-light);
    color: var(--text-muted);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filter-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.filter-chip--active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* Grille des produits */
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-4xl);
}

/* Cartes produits */
.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color-light);
    opacity: 1;
    transform: translateY(0);
}

.product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.show {
    opacity: 1;
    transform: translateY(0);
}
 
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-card__media {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.product-card__content {
    padding: var(--spacing-xl);
}

.product-card__category {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.product-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.product-card__description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.product-card__details {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.product-card__price,
.product-card__brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-card__price {
    color: var(--primary-color);
    font-weight: 600;
}

.product-card__actions {
    display: flex;
    gap: var(--spacing-sm);
}

.product-card__actions .btn {
    width: 100%;
    justify-content: center;
}

/* État vide */
.products__empty {
    text-align: center;
    padding: var(--spacing-4xl) 0;
    color: var(--text-muted);
}

.products__empty i {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.products__empty h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

/* Call to Action */

.products__cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.products__cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-2xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.products__actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.products__actions .btn {
    min-width: 200px;
}

/* Bouton success */
.btn--success {
    background: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products {
        padding: var(--spacing-2xl) 0;
    }

    .products .section__title {
        font-size: 2rem;
    }

    .products__filters {
        gap: var(--spacing-sm);
    }

    .filter-chip {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.85rem;
    }

    .products__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .product-card__media {
        height: 200px;
    }

    .product-card__actions {
        flex-direction: column;
    }

    .products__cta {
        padding: var(--spacing-xl);
    }

    .products__cta h3 {
        font-size: 1.5rem;
    }

    .products__actions {
        flex-direction: column;
        align-items: center;
    }

    .products__actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .products .section__title {
        font-size: 1.8rem;
    }

    .filter-chip {
        font-size: 0.8rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}