/* ============================================
   SYSTÈME CATALOGUE AVEC SIDEBAR VERTICALE
   ============================================ */

/* Section Catalogue */
.catalogue-section {
    padding: 40px 0;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

.catalogue-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* En-tête Section */
.catalogue-header {
    text-align: center;
    margin-bottom: 48px;
}

.catalogue-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, #C62828 0%, #D84315 50%, #E65100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 auto 12px auto;
    letter-spacing: -0.01em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.catalogue-subtitle {
    font-size: 16px;
    color: #999;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Mobile - Titre plus compact */
@media (max-width: 768px) {
    .catalogue-title {
        font-size: 28px;
        margin-bottom: 8px;
        letter-spacing: -0.5px;
    }
    
    .catalogue-subtitle {
        font-size: 14px;
        color: #999;
    }
    
    .catalogue-header {
        margin-bottom: 24px;
    }
}

/* Sidebar Filtres Verticale */
.filters-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.filters-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.filters-sidebar-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-sidebar-title svg {
    width: 20px;
    height: 20px;
    color: #B8461F;
}

.filters-clear-all {
    font-size: 13px;
    color: #B8461F;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.filters-clear-all:hover {
    opacity: 0.7;
}

/* Contenu principal avec filtres */
.catalogue-main-content {
    flex: 1;
    min-width: 0;
}

/* Groupes de filtres verticaux */
.filter-group {
    margin-bottom: 28px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group-title svg {
    width: 18px;
    height: 18px;
    color: #B8461F;
}

/* Filtres individuels */
.filter-item {
    position: relative;
    margin-bottom: 12px;
}

.filter-item:last-child {
    margin-bottom: 0;
}

/* Badges Taille - Liquid Glass */
.size-badges {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.size-badge {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(184, 70, 31, 0.15);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(184, 70, 31, 0.05);
}

.size-badge:hover {
    background: rgba(255, 245, 242, 0.9);
    border-color: rgba(184, 70, 31, 0.4);
    color: #B8461F;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(184, 70, 31, 0.15);
}

.size-badge.active {
    background: linear-gradient(135deg, rgba(184, 70, 31, 0.95) 0%, rgba(139, 47, 15, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(184, 70, 31, 0.8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(184, 70, 31, 0.3);
}

/* Options de filtres - Liquid Glass */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(184, 70, 31, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-option:hover {
    background: rgba(255, 245, 242, 0.8);
    border-color: rgba(184, 70, 31, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(184, 70, 31, 0.1);
}

.filter-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(184, 70, 31, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.filter-option input:checked + .filter-checkbox {
    background: linear-gradient(135deg, rgba(184, 70, 31, 0.95) 0%, rgba(139, 47, 15, 0.95) 100%);
    border-color: rgba(184, 70, 31, 0.8);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(184, 70, 31, 0.3);
}

.filter-checkbox::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: none;
}

.filter-option input:checked + .filter-checkbox::after {
    display: block;
    animation: checkPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.filter-option input {
    display: none;
}

.filter-option-label {
    font-size: 15px;
    color: #333;
    flex: 1;
    font-weight: 500;
}

/* Couleurs - Liquid Glass */
.color-preview {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(184, 70, 31, 0.2);
    margin-right: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-option:hover .color-preview {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Select Tri - Liquid Glass */
.sort-select {
    width: 100%;
    padding: 16px 40px 16px 18px;
    background: rgba(255, 255, 255, 0.7) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23B8461F" stroke-width="2.5"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 16px center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(184, 70, 31, 0.2);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(184, 70, 31, 0.08);
}

.sort-select:hover {
    background-color: rgba(255, 245, 242, 0.9);
    border-color: rgba(184, 70, 31, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 70, 31, 0.15);
}

.sort-select:focus {
    outline: none;
    border-color: rgba(184, 70, 31, 0.6);
    box-shadow: 0 0 0 4px rgba(184, 70, 31, 0.1);
}

/* En-tête du contenu principal */
.catalogue-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-count {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Indicateurs Filtres Actifs */
.active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 245, 242, 0.95);
    border: 1px solid #B8461F;
    border-radius: 20px;
    font-size: 13px;
    color: #B8461F;
    font-weight: 500;
}

.filter-tag-remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.filter-tag-remove:hover {
    transform: scale(1.1);
}

.clear-filters {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
}

/* Grille Produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

@media (min-width: 1600px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ============================================
   CARTE PRODUIT CATALOGUE (Section du bas)
   Styles spécifiques pour le catalogue complet
   ============================================ */
.product-card-catalogue {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    max-width: 100%;
}

.product-card-catalogue:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.product-card-catalogue .product-image-placeholder {
    width: 100%;
    height: 130px;
    background: transparent;
    position: relative;
}

/* Labels des produits catalogue */
.product-card-catalogue .product-labels {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card-catalogue .product-label {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-card-catalogue .product-label.promo {
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    color: white;
}

.product-card-catalogue .product-label.nouveau {
    background: #10b981;
    color: white;
}

.product-card-catalogue .product-label.top {
    background: #f59e0b;
    color: white;
}

/* Corps de la carte catalogue */
.product-card-catalogue .product-card-body {
    padding: 8px;
}

.product-card-catalogue .product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
}

.product-card-catalogue .product-stars {
    color: #fbbf24;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.product-card-catalogue .product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.product-card-catalogue .product-reviews {
    font-size: 9px;
    color: #999;
}

.product-card-catalogue .product-name-catalogue {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-bottom: 5px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: normal !important;
}

/* Forcer la taille sur mobile */
@media (max-width: 768px) {
    .product-card-catalogue .product-name-catalogue {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
        font-weight: 600 !important;
    }
}

/* Forcer sur très petits écrans */
@media (max-width: 480px) {
    .product-card-catalogue .product-name-catalogue {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 3px !important;
    }
}

.product-card-catalogue .product-price-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-catalogue .product-price-current {
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card-catalogue .product-price-old {
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
}

/* Barre d'actions mobile - Filtres + Trier */
.mobile-actions-bar {
    display: none;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

/* Bouton Filtres - À gauche */
.mobile-filters-btn {
    flex: 1;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-filters-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(184, 70, 31, 0.15);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(184, 70, 31, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-filters-btn:active .mobile-filters-btn-inner {
    transform: scale(0.96);
    background: rgba(255, 245, 242, 0.95);
    border-color: rgba(184, 70, 31, 0.25);
}

.mobile-filters-btn-icon {
    font-size: 18px;
    color: #B8461F;
    display: flex;
    align-items: center;
}

.mobile-filters-btn-text {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}

/* Bouton Trier - À droite */
.mobile-sort-btn {
    flex: 1;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-sort-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(184, 70, 31, 0.15);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(184, 70, 31, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sort-btn:active .mobile-sort-btn-inner {
    transform: scale(0.96);
    background: rgba(255, 245, 242, 0.95);
    border-color: rgba(184, 70, 31, 0.25);
}

.mobile-sort-btn-icon {
    font-size: 18px;
    color: #B8461F;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.mobile-sort-btn.active .mobile-sort-btn-icon {
    transform: rotate(180deg);
}

.mobile-sort-btn-text {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}

/* Drawer Mobile */
.filters-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.filters-drawer.active {
    transform: translateX(0);
}

.filters-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filters-drawer-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.filters-drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.filters-drawer-body {
    padding: 20px;
}

.filter-group {
    margin-bottom: 32px;
}

.filter-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .filters-sidebar {
        width: 280px;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .catalogue-title {
        font-size: 28px;
    }
    
    .catalogue-container {
        flex-direction: column;
        padding: 0 16px;
    }
    
    .filters-sidebar {
        display: none;
    }
    
    .catalogue-main-content {
        width: 100%;
    }
    
    .mobile-filters-btn {
        display: flex;
    }
    
    /* Header du contenu */
    .catalogue-content-header {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .product-card-catalogue .product-image-placeholder {
        height: 100px;
    }
    
    .product-card-catalogue .product-card-body {
        padding: 6px;
    }
    
    .product-card-catalogue .product-name-catalogue {
        font-size: 9px;
        margin-bottom: 3px;
        line-height: 1.2;
    }
    
    .product-card-catalogue .product-price-current {
        font-size: 11px;
    }
    
    .product-card-catalogue .product-price-old {
        font-size: 9px;
    }
    
    .product-card-catalogue .product-stars {
        font-size: 8px;
    }
    
    .product-card-catalogue .product-reviews {
        font-size: 7px;
    }
    
    .product-card-catalogue .product-rating {
        margin-bottom: 2px;
    }
}

@media (max-width: 480px) {
    .catalogue-section {
        padding: 0;
    }
    
    .catalogue-header {
        margin-bottom: 32px;
    }
    
    .product-card-catalogue .product-image-placeholder {
        height: 120px;
    }
    
    .product-card-catalogue .product-card-body {
        padding: 6px;
    }
    
    .product-card-catalogue .product-name-catalogue {
        font-size: 9px;
        margin-bottom: 3px;
    }
    
    .product-card-catalogue .product-price-current {
        font-size: 11px;
    }
    
    .product-card-catalogue .product-price-old {
        font-size: 9px;
    }
    
    .product-card-catalogue .product-stars {
        font-size: 8px;
    }
    
    .product-card-catalogue .product-reviews {
        font-size: 7px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Drawer Filtres Mobile - Bottom Sheet comme Tri */
.filters-drawer {
    --navbar-height: 140px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 90vh;
    max-height: 90vh;
    background: #ffffff;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px 20px 0 0;
}

.filters-drawer.active {
    transform: translateY(0);
}

.filters-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(184, 70, 31, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 10;
    margin-top: 0;
}

.filters-drawer-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.filters-drawer-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 70, 31, 0.08);
    border: none;
    border-radius: 8px;
    font-size: 20px;
    color: #B8461F;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.filters-drawer-close:hover,
.filters-drawer-close:active {
    background: rgba(184, 70, 31, 0.15);
    transform: scale(0.95);
}

.filters-drawer-body {
    padding: 20px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
    background: transparent;
}

.filters-drawer-body .filter-group {
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(184, 70, 31, 0.08);
    box-shadow: 0 4px 16px rgba(184, 70, 31, 0.06);
    animation: fadeInUp 0.4s ease;
    transition: all 0.3s ease;
}

.filters-drawer-body .filter-group:hover {
    box-shadow: 0 6px 24px rgba(184, 70, 31, 0.12);
    transform: translateY(-2px);
}

.filters-drawer-body .filter-group:last-child {
    margin-bottom: 0;
}

.filters-drawer-body .filter-group-title {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    font-size: 13px;
    color: #B8461F;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer sticky pour drawer mobile - Liquid Glass */
.filters-drawer-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(184, 70, 31, 0.1);
    box-shadow: 0 -8px 32px rgba(184, 70, 31, 0.12);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.apply-filters-btn {
    flex: 1;
    padding: 18px 28px;
    background: linear-gradient(135deg, rgba(184, 70, 31, 0.95) 0%, rgba(139, 47, 15, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(184, 70, 31, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
}

.apply-filters-btn:active {
    transform: scale(0.96);
    box-shadow: 0 4px 16px rgba(184, 70, 31, 0.3);
}

.reset-filters-btn {
    padding: 18px 24px;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #666;
    border: 1.5px solid rgba(184, 70, 31, 0.2);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.reset-filters-btn:active {
    background: rgba(224, 224, 224, 0.9);
    transform: scale(0.96);
    border-color: rgba(184, 70, 31, 0.3);
}

/* Overlay pour le drawer mobile */
.filters-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filters-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Améliorations visuelles sidebar */

.filters-sidebar .filter-group-title {
    position: relative;
    padding-left: 0;
}

.filters-sidebar .filter-group-title svg {
    flex-shrink: 0;
}

/* Animation des filtres */
.filter-option {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Amélioration du scroll de la sidebar */
.filters-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 70, 31, 0.3) transparent;
}

.filters-sidebar::-webkit-scrollbar {
    width: 8px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: rgba(184, 70, 31, 0.3);
    border-radius: 4px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 70, 31, 0.5);
}

/* Badge de compteur de filtres actifs */
.filters-sidebar-title .filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: white;
    color: #B8461F;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

/* Responsive amélioré */
@media (max-width: 1400px) {
    .filters-sidebar {
        width: 260px;
    }
}

@media (max-width: 1200px) {
    .filters-sidebar {
        width: 240px;
        padding: 20px;
    }
    
    .filter-group-title {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .mobile-filters-btn {
        position: relative;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .mobile-filters-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .mobile-filters-btn:active::before {
        width: 300px;
        height: 300px;
    }

    /* Drawer bottom sheet sur mobile */
    .filters-drawer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 90vh !important;
        max-height: 90vh !important;
        border-radius: 20px 20px 0 0 !important;
        z-index: 9999 !important;
        transform: translateY(100%);
    }
    
    .filters-drawer.active {
        transform: translateY(0) !important;
    }

    .filters-drawer-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 9998 !important;
    }

    /* Header plus compact */
    .filters-drawer-header {
        padding: 20px 16px;
        position: sticky !important;
        top: 0 !important;
        z-index: 10;
        margin-top: 0 !important;
    }

    .filters-drawer-title {
        font-size: 16px;
        gap: 6px;
    }

    .filters-drawer-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
        border-radius: 8px;
    }

    /* Body plus compact avec liquid glass */
    .filters-drawer-body {
        padding: 20px 16px;
        padding-bottom: 100px;
        scroll-behavior: smooth;
        background: linear-gradient(180deg, 
            rgba(255, 255, 255, 0.3) 0%, 
            rgba(248, 249, 250, 0.5) 50%,
            rgba(255, 255, 255, 0.3) 100%);
    }

    .filters-drawer-body .filter-group {
        margin-bottom: 18px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 14px;
        border: 1px solid rgba(184, 70, 31, 0.1);
        box-shadow: 0 4px 16px rgba(184, 70, 31, 0.08);
    }

    .filters-drawer-body .filter-group-title {
        font-size: 13px;
        margin-bottom: 12px;
        padding-left: 0;
        font-weight: 800;
        color: #B8461F;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .filters-drawer-body .filter-group-title svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

    /* Amélioration des zones tactiles */
    .size-badge,
    .filter-option,
    .sort-select {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .size-badge {
        min-height: 44px;
        font-size: 13px;
    }

    .filter-option {
        min-height: 44px;
        padding: 10px;
    }

    .filter-option-label {
        font-size: 13px;
    }

    .filter-checkbox {
        width: 18px;
        height: 18px;
    }

    /* Grille de tailles compacte */
    .size-badges {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    /* Select plus compact */
    .sort-select {
        padding: 12px 36px 12px 14px;
        font-size: 13px;
    }

    /* Footer compact */
    .filters-drawer-footer {
        padding: 12px 16px;
        gap: 8px;
    }

    .apply-filters-btn {
        padding: 14px 20px;
        font-size: 13px;
        border-radius: 14px;
    }

    .reset-filters-btn {
        padding: 14px 16px;
        font-size: 13px;
        border-radius: 14px;
    }

    /* Animation d'ouverture du drawer */
    @keyframes slideInLeft {
        from {
            transform: translateX(-100%);
        }
        to {
            transform: translateX(0);
        }
    }

    .filters-drawer.active {
        animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Indicateur de scroll avec liquid glass */
    .filters-drawer-body::after {
        content: '';
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: linear-gradient(to top, 
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.7) 50%,
            transparent 100%);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        pointer-events: none;
    }
    
    /* Scroll bar personnalisée */
    .filters-drawer::-webkit-scrollbar {
        width: 8px;
    }
    
    .filters-drawer::-webkit-scrollbar-track {
        background: rgba(248, 249, 250, 0.5);
        border-radius: 10px;
    }
    
    .filters-drawer::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, 
            rgba(184, 70, 31, 0.6) 0%, 
            rgba(139, 47, 15, 0.6) 100%);
        border-radius: 10px;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .filters-drawer::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, 
            rgba(184, 70, 31, 0.8) 0%, 
            rgba(139, 47, 15, 0.8) 100%);
    }
}

@media (max-width: 480px) {
    /* Drawer bottom sheet sur petits écrans */
    .filters-drawer {
        height: 88vh !important;
        max-height: 88vh !important;
        z-index: 9999 !important;
    }

    .filters-drawer-header {
        padding: 18px 14px;
    }

    .filters-drawer-title {
        font-size: 15px;
        gap: 6px;
    }

    .filters-drawer-close {
        width: 30px;
        height: 30px;
        font-size: 16px;
        border-radius: 8px;
    }

    .filters-drawer-body {
        padding: 16px 12px;
        padding-bottom: 90px;
        background: linear-gradient(180deg, 
            rgba(255, 255, 255, 0.4) 0%, 
            rgba(248, 249, 250, 0.6) 50%,
            rgba(255, 255, 255, 0.4) 100%);
    }

    .filters-drawer-body .filter-group {
        margin-bottom: 16px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 12px;
        border: 1px solid rgba(184, 70, 31, 0.12);
        box-shadow: 0 3px 12px rgba(184, 70, 31, 0.1);
    }

    .filters-drawer-body .filter-group-title {
        font-size: 12px;
        margin-bottom: 10px;
        padding-left: 20px;
        font-weight: 800;
        color: #B8461F;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .filters-drawer-body .filter-group-title svg {
        width: 13px;
        height: 13px;
    }

    .size-badges {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .size-badge {
        height: 42px;
        font-size: 12px;
    }

    .filter-option {
        padding: 8px;
        min-height: 42px;
    }

    .filter-option-label {
        font-size: 12px;
    }

    .filter-checkbox {
        width: 16px;
        height: 16px;
    }

    .color-preview {
        width: 22px;
        height: 22px;
    }

    .sort-select {
        padding: 10px 32px 10px 12px;
        font-size: 12px;
    }

    .filters-drawer-footer {
        padding: 10px 12px;
        gap: 6px;
    }

    .apply-filters-btn {
        padding: 12px 16px;
        font-size: 12px;
        border-radius: 12px;
        letter-spacing: 0.5px;
    }

    .reset-filters-btn {
        padding: 12px 14px;
        font-size: 12px;
        border-radius: 12px;
    }
}

/* Mode paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .filters-drawer {
        height: 75vh !important;
        max-height: 75vh !important;
        z-index: 9999 !important;
    }

    .filters-drawer-body {
        padding: 16px;
        padding-bottom: 75px;
    }

    .filters-drawer-body .filter-group {
        margin-bottom: 20px;
    }

    .filters-drawer-body .filter-group-title {
        font-size: 13px;
    }

    .size-badges {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .size-badge {
        height: 40px;
        font-size: 12px;
    }
}


/* ============================================
   ANIMATIONS LIQUID GLASS SUPPLÉMENTAIRES
   ============================================ */

/* Animation de shimmer pour le header */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.filters-drawer-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    pointer-events: none;
    z-index: 0;
}

.filters-drawer-title,
.filters-drawer-close {
    position: relative;
    z-index: 1;
}

/* Effet de glow sur les éléments actifs */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(184, 70, 31, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(184, 70, 31, 0.5);
    }
}

.size-badge.active {
    animation: glow 2s ease-in-out infinite;
}

/* Effet de pulse sur le bouton appliquer */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.apply-filters-btn {
    animation: pulse 2s ease-in-out infinite;
}

.apply-filters-btn:hover {
    animation: none;
}

/* Scroll bar personnalisée pour drawer */
.filters-drawer::-webkit-scrollbar {
    width: 8px;
}

.filters-drawer::-webkit-scrollbar-track {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 10px;
}

.filters-drawer::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        rgba(184, 70, 31, 0.6) 0%, 
        rgba(139, 47, 15, 0.6) 100%);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.filters-drawer::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(184, 70, 31, 0.8) 0%, 
        rgba(139, 47, 15, 0.8) 100%);
}

/* Effet de verre sur les groupes de filtres */
.filters-drawer-body .filter-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(184, 70, 31, 0.2) 50%,
        transparent 100%);
}

/* Animation d'entrée pour les options */
.filter-option {
    animation: slideInLeft 0.3s ease;
    animation-fill-mode: both;
}

.filter-option:nth-child(1) { animation-delay: 0.05s; }
.filter-option:nth-child(2) { animation-delay: 0.1s; }
.filter-option:nth-child(3) { animation-delay: 0.15s; }
.filter-option:nth-child(4) { animation-delay: 0.2s; }
.filter-option:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Effet de reflet sur les badges de taille */
.size-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    transition: left 0.5s ease;
}

.size-badge:hover::after {
    left: 100%;
}

/* Amélioration du footer avec effet de verre */
.filters-drawer-footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(255, 255, 255, 0.5) 100%);
    pointer-events: none;
}


/* ============================================
   FIX POSITION DRAWER - VISIBLE SOUS NAVBAR
   ============================================ */

@media (max-width: 768px) {
    /* Force le drawer à commencer sous la navbar */
    .filters-drawer {
        top: var(--navbar-height) !important;
        height: calc(100vh - var(--navbar-height)) !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Header du drawer toujours visible en haut */
    .filters-drawer-header {
        position: sticky !important;
        top: 0 !important;
        margin-top: 0 !important;
        z-index: 100 !important;
        min-height: 60px;
    }
    
    /* Overlay couvre tout l'écran */
    .filters-drawer-overlay {
        top: 0 !important;
        height: 100vh !important;
        z-index: 9998 !important;
    }
    
    /* S'assurer que le body du drawer est scrollable */
    .filters-drawer-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Debug - Retiré après correction */
/* .filters-drawer {
    border: 2px solid red !important;
}

.filters-drawer-header {
    border: 2px solid blue !important;
} */


/* ============================================
   STYLE ÉPURÉ MOBILE - LIQUID GLASS MODERNE
   ============================================ */

@media (max-width: 768px) {
    /* Barre d'actions visible sur mobile */
    .mobile-actions-bar {
        display: flex;
    }
    
    /* Header drawer - Plus compact */
    .filters-drawer-header {
        min-height: 56px;
    }
    
    /* Titre drawer - Icône plus petite */
    .filters-drawer-title svg,
    .filters-drawer-title i {
        font-size: 16px;
    }
    
    /* Groupes de filtres - Espacement réduit */
    .filters-drawer-body .filter-group {
        padding: 14px;
        margin-bottom: 14px;
    }
    
    .filters-drawer-body .filter-group-title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    /* Options de filtres - Plus compactes */
    .filter-option {
        padding: 10px;
        min-height: 40px;
    }
    
    .filter-option-label {
        font-size: 13px;
    }
    
    /* Badges de taille - Plus petits */
    .size-badge {
        height: 42px;
        font-size: 13px;
    }
    
    /* Footer - Plus compact */
    .filters-drawer-footer {
        padding: 14px 16px;
    }
    
    /* Compteur de produits - Style moderne */
    .filter-count {
        font-size: 14px;
        font-weight: 600;
        color: #666;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {
    /* Barre d'actions plus compacte */
    .mobile-actions-bar {
        gap: 10px;
    }
    
    .mobile-filters-btn-inner,
    .mobile-sort-btn-inner {
        padding: 11px 16px;
        border-radius: 11px;
    }
    
    .mobile-filters-btn-text,
    .mobile-sort-btn-text {
        font-size: 14px;
    }
    
    .mobile-filters-btn-icon,
    .mobile-sort-btn-icon {
        font-size: 16px;
    }
    
    /* Menu tri plus compact */
    .mobile-sort-dropdown {
        padding: 20px 16px;
    }
    
    .mobile-sort-dropdown-title {
        font-size: 17px;
    }
    
    .mobile-sort-option {
        padding: 12px 14px;
    }
    
    .mobile-sort-option-label {
        font-size: 14px;
    }
    
    /* Header drawer ultra-compact */
    .filters-drawer-header {
        padding: 12px;
        min-height: 52px;
    }
    
    .filters-drawer-title {
        font-size: 14px;
    }
    
    /* Groupes de filtres très compacts */
    .filters-drawer-body .filter-group {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .filters-drawer-body .filter-group-title {
        font-size: 11px;
    }
    
    /* Footer ultra-compact */
    .filters-drawer-footer {
        padding: 12px;
    }
}

/* Responsive - Bouton filtres */
@media (max-width: 480px) {
    .mobile-filters-btn-inner {
        padding: 10px 24px;
        border-radius: 12px;
    }
    
    .mobile-filters-btn-icon {
        font-size: 16px;
    }
    
    .mobile-filters-btn-text {
        font-size: 14px;
    }
}


/* ============================================
   VARIANTE ALTERNATIVE - STYLE CHIP MODERNE
   ============================================ */

/* Si vous préférez un style encore plus minimaliste */
.mobile-filters-btn.style-chip .mobile-filters-btn-inner {
    padding: 9px 22px;
    background: rgba(184, 70, 31, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 70, 31, 0.15);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(184, 70, 31, 0.08);
}

.mobile-filters-btn.style-chip .mobile-filters-btn-text {
    font-size: 14px;
    font-weight: 600;
}

.mobile-filters-btn.style-chip .mobile-filters-btn-icon {
    font-size: 16px;
}

/* Variante avec fond coloré */
.mobile-filters-btn.style-filled .mobile-filters-btn-inner {
    background: linear-gradient(135deg, 
        rgba(184, 70, 31, 0.95) 0%, 
        rgba(139, 47, 15, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 16px rgba(184, 70, 31, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobile-filters-btn.style-filled .mobile-filters-btn-text,
.mobile-filters-btn.style-filled .mobile-filters-btn-icon {
    color: white;
}

/* Variante outline */
.mobile-filters-btn.style-outline .mobile-filters-btn-inner {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 2px solid rgba(184, 70, 31, 0.3);
    box-shadow: none;
}

.mobile-filters-btn.style-outline:active .mobile-filters-btn-inner {
    background: rgba(184, 70, 31, 0.05);
}

/* Variante avec compteur de filtres actifs */
.mobile-filters-btn-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(184, 70, 31, 0.4);
    animation: badgePop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}


/* ============================================
   MENU DÉROULANT TRI MOBILE
   ============================================ */

.mobile-sort-dropdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px 20px 0 0;
    padding: 24px 20px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sort-dropdown.active {
    transform: translateY(0);
}

.mobile-sort-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(184, 70, 31, 0.1);
}

.mobile-sort-dropdown-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.mobile-sort-dropdown-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 70, 31, 0.08);
    border: none;
    border-radius: 8px;
    color: #B8461F;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-sort-dropdown-close:active {
    transform: scale(0.95);
    background: rgba(184, 70, 31, 0.15);
}

.mobile-sort-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(248, 249, 250, 0.5);
    border: 1.5px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.mobile-sort-option:active {
    transform: scale(0.98);
}

.mobile-sort-option.active {
    background: rgba(255, 245, 242, 0.9);
    border-color: rgba(184, 70, 31, 0.2);
    box-shadow: 0 2px 8px rgba(184, 70, 31, 0.08);
}

.mobile-sort-option-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: color 0.2s ease;
}

.mobile-sort-option.active .mobile-sort-option-label {
    font-weight: 600;
    color: #B8461F;
}

.mobile-sort-option-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(184, 70, 31, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-sort-option.active .mobile-sort-option-check {
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    border-color: #B8461F;
}

.mobile-sort-option-check::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sort-option.active .mobile-sort-option-check::after {
    opacity: 1;
    transform: scale(1);
}

/* Overlay pour le menu tri */
.mobile-sort-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sort-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ============================================
   FIX DRAWER FILTRES - CACHÉ PAR DÉFAUT
   ============================================ */

@media (max-width: 768px) {
    /* Drawer caché par défaut sur mobile */
    .filters-drawer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 85vh !important;
        background: #ffffff !important;
        border-radius: 20px 20px 0 0 !important;
        transform: translateY(calc(100% + 50px)) !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s !important;
        z-index: 9999 !important;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12) !important;
        overflow-y: auto !important;
        visibility: hidden !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        display: none !important;
    }
    
    .filters-drawer.active {
        display: block !important;
        transform: translateY(0) !important;
        visibility: visible !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s !important;
    }
    
    /* Overlay plein écran */
    .filters-drawer-overlay {
        z-index: 9998 !important;
        transition: opacity 0.3s ease, visibility 0s 0s !important;
    }
    
    /* Header du drawer */
    .filters-drawer-header {
        padding: 24px 20px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid rgba(184, 70, 31, 0.1) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        margin-top: 0 !important;
    }
    
    .filters-drawer-title {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        letter-spacing: -0.3px !important;
    }
    
    .filters-drawer-close {
        width: 32px !important;
        height: 32px !important;
        background: rgba(184, 70, 31, 0.08) !important;
        border: none !important;
        border-radius: 8px !important;
        color: #B8461F !important;
        font-size: 20px !important;
    }
    
    /* Body du drawer */
    .filters-drawer-body {
        padding: 20px !important;
        padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important;
        background: transparent !important;
    }
}

@media (max-width: 480px) {
    .filters-drawer {
        max-height: 80vh !important;
    }
    
    .filters-drawer-header {
        padding: 20px 16px !important;
    }
}


/* ============================================
   STYLES POUR LES PRODUITS DYNAMIQUES
   ============================================ */

/* Styles pour les images des produits dynamiques */
.product-card .product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

/* Actions sur les produits (boutons Quick View et Add to Cart) */
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.quick-view-btn,
.add-to-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.quick-view-btn:hover,
.add-to-cart-btn:hover {
    background: #B8461F;
    color: white;
    transform: scale(1.1);
}

.quick-view-btn:active,
.add-to-cart-btn:active {
    transform: scale(0.95);
}

/* Message d'erreur */
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

.error-message i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ef4444;
    display: block;
}

.error-message p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Responsive pour les actions sur mobile */
@media (max-width: 768px) {
    .product-actions {
        opacity: 1; /* Toujours visible sur mobile */
        top: 8px;
        right: 8px;
        gap: 6px;
    }
    
    .quick-view-btn,
    .add-to-cart-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-actions {
        top: 6px;
        right: 6px;
        gap: 4px;
    }
    
    .quick-view-btn,
    .add-to-cart-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}


/* Message "Aucun produit" */
.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

.no-products-message i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #d1d5db;
    display: block;
}

.no-products-message p {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: #9ca3af;
}
