/* ============================================
   HERO BOUTIQUE - DESKTOP
   ============================================ */

@media (min-width: 769px) {

   .boutique-page {
        padding-top: 130px;
    }

    .content-wrapper {
        display: flex;
        flex-direction: column;
    }

    .boutique-hero {
        height: 420px;
        padding: 100px 70px;
        top: 130px;
        background-size: cover;
        background-position: center;
        display: flex;
        justify-content: center;
        align-items: center;
        background-image: 
            linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.78)),
            url('../images/boutique/boutique-hero-background.webp');
        background-size: cover;
        background-position: center;
    }

    .boutique-hero .page-title {
        color: #123524;
        font-size: 64px;
        font-family: 'El Messiri', serif;
        font-weight: 500;
        letter-spacing: 0.32px;
        margin: 0;
        background: linear-gradient(to right, #123524, #CD4E04);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    /* ===================================
    SECTION FILTER & SORT
    =================================== */

    .filter-sort-section {
        width: 100%;
        padding: 40px 0;
        background: #FFFFFF;
    }

    .filter-sort-container {
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 48px;
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }

    /* ===== WRAPPER (position relative pour panneau absolu) ===== */
    .filter-wrapper,
    .sort-wrapper {
        position: relative;
    }

    /* ===== BOUTON FILTRER ===== */
    .filter-toggle {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 19px 24px;
        background: transparent;
        border: 1px solid #EAEAEA;
        border-radius: 8px;
        cursor: pointer;
        font-family: 'Work Sans', sans-serif;
        font-size: 18px;
        color: #555555;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .filter-toggle:hover {
        background: #F9F9F9;
        border-color: #123524;
    }

    .filter-toggle.active {
        background: #F9F9F9;
        border-color: #123524;
    }

    .filter-icon,
    .sort-icon {
        width: 25px;
        height: auto;
    }

    /* ===== BOUTON TRIER ===== */
    .sort-toggle {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 19px 24px;
        background: transparent;
        border: 1px solid #EAEAEA;
        border-radius: 8px;
        cursor: pointer;
        font-family: 'Work Sans', sans-serif;
        font-size: 18px;
        color: #555555;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .sort-toggle:hover {
        background: #F9F9F9;
        border-color: #123524;
    }

    /* ===== PANNEAU FILTRE ===== */
    .filter-panel {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        width: 448px;
        background: #FFFFFF;
        border: 1px solid #EAEAEA;
        border-radius: 8px;
        padding: 24px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        z-index: 100;
    }

    .filter-panel.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .filter-panel.closing {
        display: block;
        animation: fadeOut 0.25s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeOut {
        from { opacity: 1; transform: translateY(0); }
        to   { opacity: 0; transform: translateY(-6px); }
    }

    /* ===== HEADER ===== */
    
    .filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .filter-title {
        display: flex;
        align-items: center;
        gap: 9px;
        font-family: 'Work Sans', sans-serif;
        font-size: 18px;
        color: #555555;
    }

    .filter-close {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        transition: background 0.3s ease;
    }

    .filter-close:hover {
        background: #F5F5F5;
        border-radius: 4px;
    }

    .filter-close img {
        width: 25px;
        height: 25px;
    }

    /* ===== SECTIONS ===== */
    .filter-section {
        margin-bottom: 20px;
    }

    .filter-section-title {
        font-family: 'Work Sans', sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: #000000;
        margin-bottom: 8px;
    }

    /* ===== CHECKBOXES PERSONNALISÉES ===== */
    .filter-option {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
        cursor: pointer;
        user-select: none;
    }

    /* Label */
    .checkbox-label {
        font-family: 'Work Sans', sans-serif;
        font-size: 18px;
        color: #555555;
        line-height: 30px;
    }

    .filter-option input[type="checkbox"]:checked + .lush-check + .checkbox-label {
        color: var(--color-primary);
        font-weight: 500;
    }

    /* ===== SÉPARATEUR ===== */
    .filter-separator {
        border: none;
        border-top: 1px solid #DDDDDD;
        margin: 20px 0;
    }

    /* ===== BOUTONS D'ACTION ===== */
    .filter-actions {
        display: flex;
        gap: 10px;
        margin-top: 24px;
    }

    .btn-filter-secondary {
        flex: 1;
        padding: 18px 24px;
        background: transparent;
        border: 1px solid #2F473C;
        border-radius: 8px;
        color: #808853;
        font-family: 'Josefin Sans', sans-serif;
        font-size: 20px;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
        transition: all 0.3s ease;
    }

    .btn-filter-secondary:hover {
        background: #F5F5F5;
    }

    .btn-filter-primary {
        flex: 1;
        padding: 18px 24px;
        background: #6B7345;
        border: none;
        border-radius: 8px;
        color: #FFFFFF;
        font-family: 'Josefin Sans', sans-serif;
        font-size: 20px;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
        transition: all 0.3s ease;
    }

    .btn-filter-primary:hover {
        background: #5A6239;
    }

    /* ===== DROPDOWN TRIER (pour plus tard) ===== */
    .sort-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        min-width: 200px;
        background: #FFFFFF;
        border: 1px solid #EAEAEA;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        z-index: 100;
    }

    .sort-dropdown.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .sort-option {
        width: 100%;
        padding: 12px 16px;
        background: transparent;
        border: none;
        text-align: left;
        font-family: 'Work Sans', sans-serif;
        font-size: 16px;
        color: #555555;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .sort-option:hover {
        background: #F5F5F5;
    }

    .sort-option:first-child {
        border-radius: 8px 8px 0 0;
    }

    .sort-option:last-child {
        border-radius: 0 0 8px 8px;
    }

    /* ===== ANIMATIONS PRODUITS (FILTRAGE) ===== */
    .product-card {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .product-card.hidden {
        opacity: 0;
        transform: scale(0.95);
    }


    /* ===================================
    SECTION GRILLE PRODUITS
    =================================== */

    .products-grid-section {
        width: 100%;
        background: #FFFFFF;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 30px;
        max-width: 1440px;
        margin: 0 auto;
        padding: 30px 70px 50px;
    }

    /* ===== CARTE PRODUIT ===== */
    .product-card {
        position: relative;
        background: #FFFFFF;
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(7px);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    /* ===== IMAGE WRAPPER ===== */
    .product-image-wrapper {
        position: relative;
        overflow: hidden;
        background: #F9F9F9;
        border-radius: 4px; /* ← AJOUTÉ */
    }

    .product-image-wrapper a {
        display: block;
        width: 100%;
        height: 100%;
        position: relative;
    }

    /* ===== BADGE PRODUIT ===== */
    .product-badge {
        position: absolute;
        top: 10px; /* Augmenté de 5px à 10px */
        right: 10px; /* Augmenté de 5px à 10px */
        padding: 6px 14px; /* Augmenté pour meilleure lisibilité */
        font-family: 'Josefin Sans', sans-serif;
        font-size: 14px;
        font-weight: 500; /* Augmenté de 400 à 500 */
        color: #FFFFFF;
        border-radius: 6px; /* Augmenté de 4px à 6px */
        z-index: 10;
        line-height: 1.4; /* Changé de 25px à valeur relative */
        text-align: center;
    }

    /* ===== IMAGE PRODUIT ===== */
    .product-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
        transition: transform 0.3s ease;
    }

    .product-card:hover .product-image-wrapper img {
        transform: scale(1.05);
    }

    /* ===== INFOS PRODUIT ===== */
    .product-info {
        padding: 16px 10px 10px; /* Ajusté : top 16px */
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        flex-grow: 1;
        justify-content: flex-end;
    }

    /* Catégorie */
    .product-category {
        display: block;
        font-family: 'Work Sans', sans-serif;
        font-size: 18px;
        font-weight: 500;
        color: #888888;
        line-height: 1.4;
        margin-bottom: 8px; /* Réduit de 10px à 8px */
        text-transform: capitalize;
    }

    /* Détails (Nom + Prix) */
    .product-details {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; /* ← AJOUTÉ : Espace entre nom et prix */
    }

    /* Nom produit */
    .product-name {
        font-family: 'Work Sans', sans-serif;
        font-size: 26px; /* ← RÉDUIT de 32px à 26px */
        font-weight: 500;
        color: #123524;
        line-height: 1.2; /* Changé de 30px à valeur relative */
        margin: 0; /* Retiré les marges */
        word-wrap: break-word; /* ← AJOUTÉ : Permet au texte de passer à la ligne */
        overflow-wrap: break-word; /* ← AJOUTÉ */
    }

    .product-name a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .product-name a:hover {
        color: #123524;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    /* Prix */
    .product-price {
        font-family: 'Work Sans', sans-serif;
        font-size: 20px; /* Augmenté de 18px à 20px */
        font-weight: 400;
        color: #000000;
        line-height: 1.4;
    }

    .product-price .woocommerce-Price-amount {
        font-size: 20px;
        font-weight: 400;
    }

    /* ===== BOUTON AJOUTER AU PANIER ===== */
    .product-add-btn {
        position: absolute;
        bottom: 24px;
        right: 24px;
        padding: 16px 28px; /* Ajusté */
        background: #6B7345;
        border: none;
        border-radius: 8px;
        color: #FFFFFF;
        font-family: 'Josefin Sans', sans-serif;
        font-size: 18px; /* Réduit de 20px à 18px */
        font-weight: 400;
        cursor: pointer;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
        z-index: 5;
    }

    /* Bouton Ajout Panier Mobile caché */
    .cart-mobile {
        display: none;
    }

    /* Afficher le bouton au hover */
    .product-card:hover .product-add-btn {
        opacity: 1;
        transform: translateY(0);
    }

    /* Hover du bouton */
    .product-add-btn:hover {
        background: #5A6239;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    /* État chargement */
    .product-add-btn.loading {
        opacity: 0.7;
        cursor: wait;
        pointer-events: none;
    }

    /* État ajouté */
    .product-add-btn.added {
        background: #5A6239;
    }

    .woocommerce a.added_to_cart {
        display: none;
    }

    /* Rupture de stock — desktop */
    .product-card--out-of-stock .product-image-wrapper img {
        opacity: 0.5;
    }

    .product-out-of-stock-badge {
        position: absolute;
        bottom: 24px;
        right: 24px;
        background: #f0f0f0;
        color: #999;
        font-family: 'Work Sans', sans-serif;
        font-size: 13px;
        font-weight: 600;
        padding: 10px 18px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        pointer-events: none;
        white-space: nowrap;
    }

    /* ===================================
    NOTIFICATIONS (TOAST)
    =================================== */

    .cart-notification {
        position: fixed;
        top: 100px; /* Sous le header */
        right: 20px;
        padding: 16px 24px;
        border-radius: 8px;
        font-family: 'Work Sans', sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: #FFFFFF;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        opacity: 0;
        transform: translateX(400px);
        transition: all 0.3s ease;
    }

    .cart-notification.show {
        opacity: 1;
        transform: translateX(0);
    }

    /* Notification succès */
    .cart-notification.success {
        background: #6B7345;
    }

    /* Notification erreur */
    .cart-notification.error {
        background: #CD4E04;
    }

    /* ===================================
    RESPONSIVE NOTIFICATIONS
    =================================== */

    @media (max-width: 768px) {
        .cart-notification {
            top: 90px;
            right: 16px;
            left: 16px;
            width: auto;
            text-align: center;
            font-size: 14px;
            padding: 14px 20px;
        }
    }


    /* ===================================
    MESSAGE AUCUN PRODUIT
    =================================== */

    .no-products-message {
        width: 100%;
        max-width: 1440px;
        margin: 60px auto;
        padding: 0 48px;
        text-align: center;
    }

    .no-products-content {
        background: #F9F9F9;
        border: 1px dashed #DDDDDD;
        border-radius: 12px;
        padding: 60px 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .no-products-icon {
        width: 80px;
        height: 80px;
        opacity: 0.5;
    }

    .no-products-title {
        font-family: 'Josefin Sans', serif;
        font-size: 28px;
        font-weight: 600;
        color: #2F473C;
        margin: 0;
    }

    .no-products-text {
        font-family: 'Work Sans', sans-serif;
        font-size: 18px;
        color: #555555;
        max-width: 500px;
        line-height: 1.6;
        margin: 0;
    }

    .btn-reset-filters {
        padding: 16px 32px;
        background: #6B7345;
        border: none;
        border-radius: 8px;
        color: #FFFFFF;
        font-family: 'Josefin Sans', sans-serif;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 10px;
    }

    .btn-reset-filters:hover {
        background: #5A6239;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    /* ============================================
    AFFICHAGE NOMBRE RESULTAT
    ============================================ */

    .products-count-bar {
    max-width: 1440px;
    margin: 0 auto 30px;
    padding: 0 48px;
    }

    .products-count {
        font-family: 'Work Sans', sans-serif;
        font-size: 16px;
        color: #555555;
    }

    .products-count strong {
        color: #123524;
        font-weight: 600;
    }

    /* ===================================
   VOILE DE CHARGEMENT FILTRAGE
   =================================== */

    .filter-loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.9); /* Voile blanc semi-transparent */
        backdrop-filter: blur(4px); /* Effet flou */
        z-index: 9998;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .filter-loading-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    /* Spinner de chargement */
    .loading-spinner {
        width: 60px;
        height: 60px;
        border: 4px solid rgba(107, 115, 69, 0.2); /* Couleur brand avec opacité */
        border-top-color: #123524; /* Couleur brand */
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* Version alternative avec 3 points (optionnel) */
    .loading-dots {
        display: flex;
        gap: 8px;
    }

    .loading-dots span {
        width: 12px;
        height: 12px;
        background: #6B7345;
        border-radius: 50%;
        animation: bounce 1.4s infinite ease-in-out both;
    }

    .loading-dots span:nth-child(1) {
        animation-delay: -0.32s;
    }

    .loading-dots span:nth-child(2) {
        animation-delay: -0.16s;
    }

    @keyframes bounce {
        0%, 80%, 100% {
            transform: scale(0);
            opacity: 0.5;
        }
        40% {
            transform: scale(1);
            opacity: 1;
        }
    }
}


/* ========================================
    PAGE BOUTIQUE MOBILE
    ======================================== */
@media (max-width: 768px) {
    /* Hero Section */
    .boutique-hero {
        width: 100%;
        min-height: 221px;
        background-image: 
            linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.78)),
            url('../images/boutique/boutique-hero-background.webp');
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 190px 0 0;
    }

    .boutique-hero-content {
        text-align: center;
    }

    .boutique-hero .page-title {
        font-family: 'El Messiri', serif;
        font-size: 36px;
        font-weight: 500;
        line-height: 44px;
        padding: 50px 24px;
        background: linear-gradient(to right, #123524, #CD4E04);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin: 0;
    }

    /* ========================================
    BARRE FILTRER / TRIER
    ======================================== */

    .filter-sort-section {
        padding: 30px 24px;
        background: #FFFFFF;
    }

    .filter-sort-container {
        display: flex;
        gap: 16px;
    }

    .filter-wrapper {
        position: relative;
        flex: 0 0 127px;
    }

    .sort-wrapper {
        position: relative;
        flex: 1;
    }

    /* Bouton Filtrer */
    .filter-toggle {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        background: #FFFFFF;
        border: 1px solid #EAEAEA;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'Work Sans', sans-serif;
        font-size: 18px;
        color: #555555;
    }

    .filter-toggle:hover {
        background: #F9F9F9;
        border-color: #123524;
    }

    .filter-icon {
        width: 25px;
        height: 17px;
    }

    /* Bouton Trier */
    .sort-toggle {
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 16px;
        background: #FFFFFF;
        border: 1px solid #EAEAEA;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'Work Sans', sans-serif;
        font-size: 18px;
        color: #555555;
    }

    .sort-toggle:hover {
        background: #F9F9F9;
        border-color: #123524;
    }

    .sort-icon {
        width: 25px;
        height: 25px;
    }

    /* ========================================
    PANNEAU FILTRE (OVERLAY)
    ======================================== */

    .filter-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: #FFFFFF;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 0;
    }

    .filter-panel.active {
        right: 0;
    }

    /* Header Filtre */
    .filter-header {
        position: sticky;
        top: 0;
        background: #FFFFFF;
        padding: 20px 24px;
        border-bottom: 1px solid #EAEAEA;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 10;
    }

    .filter-title {
        display: flex;
        align-items: center;
        gap: 12px;
        font-family: 'Work Sans', sans-serif;
        font-size: 20px;
        font-weight: 600;
        color: #123524;
    }

    .filter-close {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .filter-close img {
        width: 24px;
        height: 24px;
    }

    .filter-close:hover {
        background: #F5F5F0;
        border-radius: 50%;
    }

    /* Section Filtre */
    .filter-section {
        padding: 24px;
    }

    .filter-section-title {
        font-family: 'Work Sans', sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: #123524;
        margin: 0 0 16px 0;
    }

    /* Option de filtre */
    .filter-option {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .checkbox-label {
        font-family: 'Work Sans', sans-serif;
        font-size: 16px;
        color: #555555;
    }

    .filter-option input[type="checkbox"]:checked ~ .lush-check ~ .checkbox-label {
        color: var(--color-primary);
        font-weight: 500;
    }

    /* Séparateur */
    .filter-separator {
        border: none;
        border-top: 1px solid #EAEAEA;
        margin: 0;
    }

    /* Boutons d'action filtre */
    .filter-actions {
        position: sticky;
        bottom: 0;
        background: #FFFFFF;
        padding: 20px 24px;
        border-top: 1px solid #EAEAEA;
        display: flex;
        gap: 12px;
    }

    .btn-filter-secondary,
    .btn-filter-primary {
        flex: 1;
        height: 50px;
        border-radius: 12px;
        font-family: 'Work Sans', sans-serif;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-filter-secondary {
        background: #FFFFFF;
        color: #123524;
        border: 2px solid #123524;
    }

    .btn-filter-secondary:hover {
        background: #F5F5F0;
    }

    .btn-filter-primary {
        background: #123524;
        color: #FFFFFF;
        border: none;
    }

    .btn-filter-primary:hover {
        background: #0F2A1D;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(18, 53, 36, 0.3);
    }

    /* ========================================
    DROPDOWN TRIER
    ======================================== */

    .sort-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: #FFFFFF;
        border: 1px solid #EAEAEA;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 100;
        overflow: hidden;
    }

    .sort-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .sort-option {
        width: 100%;
        padding: 14px 16px;
        text-align: left;
        background: #FFFFFF;
        border: none;
        font-family: 'Work Sans', sans-serif;
        font-size: 16px;
        color: #555555;
        cursor: pointer;
        transition: all 0.2s ease;
        border-bottom: 1px solid #F5F5F5;
    }

    .sort-option:last-child {
        border-bottom: none;
    }

    .sort-option:hover {
        background: #F5F5F0;
        color: #123524;
        padding-left: 20px;
    }

    .sort-option.active {
        background: #123524;
        color: #FFFFFF;
        font-weight: 600;
    }

    /* ========================================
    COMPTEUR PRODUITS
    ======================================== */

    .products-count-bar {
        padding: 16px 24px;
        background: #F9F9F9;
        border-top: 1px solid #EAEAEA;
        border-bottom: 1px solid #EAEAEA;
    }

    .products-count {
        font-family: 'Work Sans', sans-serif;
        font-size: 15px;
        color: #555555;
        margin: 0;
    }

    .products-count strong {
        color: #123524;
        font-weight: 600;
    }

    /* ========================================
    MESSAGE AUCUN PRODUIT
    ======================================== */

    .no-products-message {
        padding: 60px 24px;
        text-align: center;
    }

    .no-products-content {
        max-width: 350px;
        margin: 0 auto;
    }

    .no-products-icon {
        width: 80px;
        height: 80px;
        opacity: 0.4;
        margin-bottom: 24px;
    }

    .no-products-title {
        font-family: 'Work Sans', sans-serif;
        font-size: 22px;
        font-weight: 600;
        color: #123524;
        margin: 0 0 12px 0;
    }

    .no-products-text {
        font-family: 'Work Sans', sans-serif;
        font-size: 16px;
        color: #555555;
        line-height: 1.6;
        margin: 0 0 24px 0;
    }

    .btn-reset-filters {
        padding: 14px 28px;
        background: #123524;
        color: #FFFFFF;
        border: none;
        border-radius: 12px;
        font-family: 'Work Sans', sans-serif;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-reset-filters:hover {
        background: #6B7345;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(18, 53, 36, 0.3);
    }

    /* ========================================
    GRILLE PRODUITS
    ======================================== */

    .products-grid-section {
        padding: 30px 24px 50px;
        background: #FFFFFF;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }

    /* ========================================
    CARTE PRODUIT
    ======================================== */

    .product-card {
        display: flex;
        flex-direction: column;
        background: #FFFFFF;
        border-radius: 16px;
        box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(7px);
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
        justify-content: space-between;
    }

    /* Image + Badge */
    .product-image-wrapper {
        position: relative;
        width: 100%;
        padding: 10px;
        background: #FFFFFF;
    }

    .product-image-wrapper img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }

    /* Badge produit */
    .product-badge {
        position: absolute;
        top: 20px;
        left: 20px;
        padding: 5px 12px;
        background: rgba(18, 53, 36, 0.9);
        color: #FFFFFF;
        font-family: 'Josefin Sans', sans-serif;
        font-size: 11px;
        line-height: 25px;
        border-radius: 6px;
        z-index: 2;
    }

    /* Infos produit */
    .product-info {
        padding: 0 15px 20px;
    }

    .product-category {
        display: inline-block;
        font-family: 'Work Sans', sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: #888888;
    }

    .product-details {
        margin-top: 10px;
    }

    .product-name {
        font-family: 'Work Sans', sans-serif;
        font-size: 22px;
        font-weight: 500;
        line-height: 30px;
        margin: 0 0 5px 0;
    }

    .product-name a {
        color: #123524;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .product-name a:hover {
        color: #123524;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .product-price {
        font-family: 'Work Sans', sans-serif;
        font-size: 18px;
        line-height: 30px;
        color: #000000;
        max-width: 120px;
    }

    /* Bouton Ajouter Desktop caché */
    .cart-desktop {
        display: none;
    }

    /* Bouton mobile */
    .cart-mobile {
        position: absolute;
        bottom: 25px;
        right: 15px;
        width: 35px;
        height: 35px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
    }

    .product-add-btn-mobile {
        width: 35px;
        height: 35px;
        background: #123524;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
        z-index: 5;
    }

    .product-add-btn-mobile svg {
        width: 20px;
        height: 20px;
        color: #FFFFFF;
    }

    /* État loading : opacité réduite */
    .product-add-btn-mobile.loading {
        opacity: 0.6;
        cursor: wait;
    }

    /* État success : ✓ avec pulse */
    .product-add-btn-mobile.success {
        font-size: 24px;
        color: #FFFFFF;
        animation: pulse 0.6s ease;
    }

    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.15);
        }
    }

    /* Rupture de stock — mobile */
    .product-out-of-stock-badge {
        position: absolute;
        bottom: 12px;
        right: 12px;
        padding: 7px 12px;
        font-size: 12px;
    }


    /* ========================================
    VOILE DE CHARGEMENT
    ======================================== */

    .filter-loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.9);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9998;
    }

    .filter-loading-overlay.active {
        display: flex;
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
        border: 4px solid #F5F5F0;
        border-top-color: #123524;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* ========================================
    RESPONSIVE
    ======================================== */

    @media (max-width: 375px) {
        .products-grid {
            grid-template-columns: 1fr;
            gap: 24px;
        }

        .product-image-wrapper img {
            width: 100%;
            object-fit: cover;
            border-radius: 8px;
            height: auto;
        }

        .product-image {
            max-width: none;
            height: auto;
        }

        .filter-sort-container {
            flex-direction: column;
        }
        
        .filter-wrapper {
            flex: 1;
            width: 100%;
        }
    }
}

/* ============================================
   FILTRE PRIX — SLIDER + HISTOGRAMME
   ============================================ */

.price-range-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.price-range-value {
    font-size: 32px;
    font-weight: 500;
    color: #123524;
    font-family: 'Work Sans';
    letter-spacing: 0.02em;
    min-width: 64px;
    text-align: center;
}

.price-range-sep {
    font-size: 16px;
    color: #888888;
    font-weight: 400;
}

.price-histogram-wrapper {
    width: 100%;
    height: 54px;
    margin-bottom: 0;
}

#priceHistogramSvg {
    width: 100%;
    height: 100%;
    display: block;
}

.price-slider-wrapper {
    position: relative;
    height: 26px;
    display: flex;
    align-items: center;
}

.price-slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #E0DFDA;
    border-radius: 2px;
    overflow: hidden;
}

.price-slider-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(to right, #6B7345, #CD4E04);
}

.price-range-input {
    position: absolute;
    border : none;
    width: 100%;
    height: 4px;
    background: none;
    outline: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6B7345;
    cursor: grab;
    pointer-events: all;
    border: none;
    box-shadow: 0 0 0 3px #FFFFFF, 0 2px 8px rgba(18, 53, 36, 0.3);
    transition: background 0.15s ease, transform 0.1s ease;
}

.price-range-input::-webkit-slider-thumb:hover {
    background: #123524;
    transform: scale(1.12);
}

.price-range-input:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.18);
}

.price-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6B7345;
    cursor: grab;
    pointer-events: all;
    border: none;
    box-shadow: 0 0 0 3px #FFFFFF, 0 2px 8px rgba(18, 53, 36, 0.3);
    transition: background 0.15s ease;
}

.price-range-input::-moz-range-thumb:hover {
    background: #123524;
}

#priceRangeMin { z-index: 3; }
#priceRangeMax { z-index: 4; }
