/* ===== PAGE PRODUITS - STYLE UNIQUE ===== */
/* Identité visuelle : Moderne, dynamique, catalogue */

/* Hero spécifique produits */
.hero {
    background: linear-gradient(135deg, rgba(107, 78, 61, 0.3) 0%, rgba(184, 149, 106, 0.2) 100%),
                url('../../images/gpt-image-1-mini_b_efacer_le_text_dans_.png') center/cover no-repeat;
    min-height: 50vh;
}

.hero-content {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
}

/* Filtres améliorés */
.filters {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(107, 78, 61, 0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
    margin-bottom: 2rem;
}

.filters:hover {
    box-shadow: 0 6px 30px rgba(107, 78, 61, 0.15);
    transition: box-shadow 0.3s ease;
}

/* Compteur de résultats */
#results-count {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(107, 78, 61, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Grille produits améliorée */
.products-grid {
    gap: 2.5rem;
}

/* Cartes produits - compléter le style global défini dans styles.css */
.product-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 149, 106, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(184, 149, 106, 0.25);
}

.product-image {
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

/* Badge catégorie */
.product-card > div:first-child {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(107, 78, 61, 0.4);
}

/* Prix */
.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border-top: 2px solid var(--bg-light);
    border-bottom: 2px solid var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    display: inline-block;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-medium));
}

/* Boutons produits */
.product-actions .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: all 0.3s ease;
}

.product-actions .btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 149, 106, 0.4);
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    transform: scale(1.1) rotate(5deg);
}

/* Section titre */
.section-title {
    color: var(--primary-color);
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===== Slider de catégories - page produits ===== */
.categories-slider-section {
    margin-bottom: 2.5rem;
}

.categories-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
}

.categories-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.categories-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 0.5rem 0.25rem;
    scrollbar-width: thin;
}

.categories-slider::-webkit-scrollbar {
    height: 6px;
}

.categories-slider::-webkit-scrollbar-track {
    background: transparent;
}

.categories-slider::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.category-slide {
    flex: 0 0 180px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: inherit;
    background: var(--bg-white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-slide-image-wrapper {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.category-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
}

.category-slide-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.75rem;
    padding: 0 0.75rem;
    z-index: 2;
}

.category-slide-name {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.category-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.category-slide:hover img {
    transform: scale(1.08);
}

.categories-slider-arrow {
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.categories-slider-arrow:hover {
    background: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.categories-slider-arrow:disabled {
    opacity: 0.4;
    cursor: default;
    box-shadow: none;
    transform: none;
}

/* Slider des types de catégories */
.type-categories-slider-section {
    margin-bottom: 2.5rem;
}

.type-category-card {
    flex: 0 0 180px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: none;
    padding: 0;
    background: var(--bg-white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.type-category-card-image-wrapper {
    position: relative;
    height: 110px;
    overflow: hidden;
}

.type-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.type-category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
}

.type-category-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.6rem;
    padding: 0 0.75rem;
    z-index: 2;
}

.type-category-card-name {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.type-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.type-category-card:hover img {
    transform: scale(1.08);
}

.type-category-card.active .type-category-card-name {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .filters {
        position: relative;
        top: 0;
    }
    
    .products-grid {
        gap: 1.5rem;
    }

    /* Fix pour products-grid-dynamic sur mobile */
    .products-grid-dynamic {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .products-grid-dynamic.cols-1,
    .products-grid-dynamic.cols-2,
    .products-grid-dynamic.cols-3,
    .products-grid-dynamic.cols-4,
    .products-grid-dynamic.cols-5 {
        grid-template-columns: 1fr !important;
    }

    /* Ajuster la taille des cartes produits sur mobile */
    .product-card {
        min-width: 0;
        max-width: 100%;
    }

    .product-image {
        height: 220px !important;
    }

    .product-info {
        padding: 1rem !important;
    }

    .product-name {
        font-size: 1.1rem !important;
        min-height: 3rem !important;
    }

    .product-price {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .product-actions .btn,
    .product-actions .btn-add-cart {
        width: 100%;
        padding: 0.75rem !important;
        font-size: 0.85rem !important;
    }

    .categories-slider-section {
        margin-bottom: 2rem;
    }

    .category-slide {
        flex: 0 0 160px;
    }
}

@media (max-width: 480px) {
    .products-grid-dynamic {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .product-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .product-image {
        height: 200px !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    #results-count {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.2rem !important;
    }
}

