/* ===================================================================
   SHIYAO - RESPONSIVE DESIGN MOBILE COMPACT
   Design mobile optimisé selon les spécifications
   =================================================================== */

/* ===================================================================
   DESKTOP - ≤1200px
   =================================================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 var(--space-6);
    }

    .hero-title {
        font-size: 3rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* ===================================================================
   TABLET - ≤992px
   =================================================================== */
@media (max-width: 992px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    /* Header */
    .header-content {
        gap: var(--space-4);
    }

    .search-bar {
        max-width: 400px;
    }

    /* Hero Premium - Empiler les colonnes */
    .hero-premium {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding: 32px 0 !important;
    }

    .hero-premium__content {
        order: 1;
    }

    .hero-premium__right {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    .hero-premium__title {
        font-size: 2.5rem;
    }

    .hero-premium__features {
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Products Premium Layout - Empiler les colonnes */
    .products-premium-container {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .trending-column {
        order: 1;
    }

    .top-sales-column {
        order: 2;
    }

    /* Top Sales - Carousel horizontal sur tablette */
    .top-sales-wrapper {
        max-height: none !important;
    }

    .top-sales-list {
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 16px !important;
        padding-bottom: 12px;
    }

    .top-sale-card {
        flex: 0 0 280px !important;
        min-width: 280px !important;
    }

    /* Trending Carousel - 2 cartes visibles */
    .trending-carousel .product-card {
        flex: 0 0 calc(50% - 12px) !important;
        min-width: calc(50% - 12px) !important;
        max-width: calc(50% - 12px) !important;
    }

    /* Catalogue Section */
    .catalogue-container {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    /* Lightbox */
    .lightbox-body {
        grid-template-columns: 1fr;
    }

    .lightbox-main-image {
        height: 300px;
    }
}

/* ===================================================================
   MOBILE - ≤768px - NOUVEAU DESIGN COMPACT
   =================================================================== */
@media (max-width: 768px) {
    /* OVERRIDE COMPLET DU CSS DESKTOP POUR PRODUCTS PREMIUM */
    .products-premium-container[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Variables d'espacement */
    :root {
        --space-8: 1.5rem;
        --space-10: 2rem;
        --space-12: 2.5rem;
        --space-16: 3rem;
        --space-20: 4rem;
    }

    body {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .container {
        padding: 0 12px !important;
    }

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 0.8rem; }

    /* ===== MODALE PRODUIT - RESPONSIVE ===== */
    .product-modal-overlay {
        padding: 0 !important;
        align-items: flex-end;
    }

    .product-modal {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 95vh !important;
        border-radius: 20px 20px 0 0 !important;
        margin: 0 !important;
    }

    .product-modal-close {
        top: 12px !important;
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
    }

    .product-modal-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
        padding-top: 56px !important;
    }

    /* Images produit */
    .product-main-image {
        height: 280px !important;
        border-radius: 12px !important;
    }

    .carousel-nav-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .carousel-nav-btn.prev {
        left: 10px !important;
    }

    .carousel-nav-btn.next {
        right: 10px !important;
    }

    .product-thumbnails {
        gap: 8px !important;
        padding: 8px 0;
    }

    .product-thumbnail {
        width: 60px !important;
        height: 60px !important;
        border-radius: 8px !important;
    }

    /* Infos produit */
    .product-modal-header {
        margin-bottom: 16px !important;
    }

    .product-modal-title {
        font-size: 22px !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
    }

    .product-modal-rating {
        gap: 8px !important;
    }

    .modal-stars {
        font-size: 16px !important;
    }

    .modal-reviews {
        font-size: 13px !important;
    }

    .product-modal-price {
        gap: 12px !important;
        margin-bottom: 24px !important;
        padding-bottom: 24px !important;
        flex-wrap: wrap;
    }

    .modal-price-current {
        font-size: 32px !important;
    }

    .modal-price-old {
        font-size: 20px !important;
    }

    .modal-discount-badge {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    /* Sélecteurs */
    .product-selector {
        margin-bottom: 20px !important;
    }

    .selector-label {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .size-options {
        gap: 8px !important;
    }

    .size-option {
        width: 48px !important;
        height: 48px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .color-options {
        gap: 10px !important;
    }

    .color-circle {
        width: 42px !important;
        height: 42px !important;
    }

    .color-name {
        font-size: 11px !important;
    }

    .quantity-selector {
        gap: 10px !important;
    }

    .quantity-input {
        border-radius: 10px !important;
    }

    .quantity-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }

    .quantity-value {
        width: 50px !important;
        font-size: 15px !important;
    }

    .stock-info {
        font-size: 13px !important;
    }

    /* Bouton ajouter au panier */
    .add-to-cart-modal {
        padding: 16px 28px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
        margin-bottom: 24px !important;
        gap: 10px !important;
    }

    .add-to-cart-modal svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Tabs */
    .product-tabs {
        padding-top: 24px !important;
    }

    .tab-buttons {
        gap: 16px !important;
        margin-bottom: 20px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 10px 0 !important;
        font-size: 14px !important;
        white-space: nowrap;
    }

    .product-description {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .product-features li {
        padding: 10px 0 !important;
        font-size: 13px !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Avis */
    .reviews-summary {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px !important;
        margin-bottom: 20px !important;
    }

    .reviews-score-number {
        font-size: 40px !important;
    }

    .reviews-score-stars {
        font-size: 18px !important;
    }

    .reviews-score-count {
        font-size: 12px !important;
    }

    .review-bar {
        gap: 10px !important;
        margin-bottom: 6px !important;
    }

    .review-bar-label {
        font-size: 12px !important;
        width: 50px !important;
    }

    .review-bar-track {
        height: 6px !important;
    }

    .review-bar-count {
        font-size: 12px !important;
        width: 35px !important;
    }

    .review-item {
        padding: 16px 0 !important;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px !important;
    }

    .review-author {
        font-size: 14px !important;
    }

    .review-date {
        font-size: 12px !important;
    }

    .review-stars {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }

    .review-text {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    /* ===== MODALE FILTRES - RESPONSIVE ===== */
    .filters-drawer {
        top: 0 !important;
        height: 100vh !important;
        max-width: 80% !important;
        width: 80% !important;
        border-radius: 0 !important;
        padding-top: 0 !important;
    }

    .filters-drawer-overlay {
        top: 0 !important;
        height: 100vh !important;
    }

    .filters-drawer-header {
        padding: 14px 16px !important;
        position: sticky;
        top: 0;
        z-index: 10;
        background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
        margin-top: 140px;
    }

    .filters-drawer-title {
        font-size: 17px !important;
    }

    .filters-drawer-close {
        width: 32px !important;
        height: 32px !important;
        font-size: 20px !important;
    }

    .filters-drawer-body {
        padding: 16px !important;
        padding-bottom: 90px !important;
    }

    .filter-group {
        margin-bottom: 24px !important;
    }

    .filter-group-title {
        font-size: 14px !important;
        margin-bottom: 12px !important;
        padding-left: 20px !important;
    }

    .filter-group-title svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Badges taille dans drawer */
    .size-badges {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }

    .size-badge {
        height: 44px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }

    /* Options de filtres */
    .filter-options {
        gap: 6px !important;
    }

    .filter-option {
        padding: 10px !important;
        border-radius: 10px !important;
        min-height: 44px !important;
    }

    .filter-checkbox {
        width: 18px !important;
        height: 18px !important;
    }

    .filter-option-label {
        font-size: 13px !important;
    }

    .color-preview {
        width: 24px !important;
        height: 24px !important;
    }

    /* Select tri dans drawer */
    .sort-select {
        padding: 12px 36px 12px 14px !important;
        font-size: 13px !important;
        border-radius: 12px !important;
    }

    /* Bouton appliquer les filtres */
    .filters-drawer-footer {
        position: sticky;
        bottom: 0;
        padding: 12px 16px !important;
        background: white;
        border-top: 1px solid #f0f0f0;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
        gap: 8px !important;
    }

    .apply-filters-btn {
        flex: 1;
        padding: 14px 20px !important;
        background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 14px !important;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(184, 70, 31, 0.3);
    }

    .reset-filters-btn {
        padding: 14px 16px !important;
        font-size: 14px !important;
    }

    /* Overlay drawer */
    .filters-drawer-overlay {
        backdrop-filter: blur(4px);
    }

    /* ===== HEADER ===== */
    .header {
        padding: var(--space-3) 0;
    }

    .header.scrolled {
        padding: var(--space-2) 0;
    }

    .header-content {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .logo {
        font-size: 1.25rem;
        margin-left: 32px;
    }

    .logo img,
    .logo__image {
        height: 40px;
        width: auto;
    }

    /* Search Bar - Pleine largeur sous le header */
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .search-input {
        padding: var(--space-3) var(--space-4);
        font-size: 0.9375rem;
    }

    .search-btn {
        padding: var(--space-3) var(--space-4);
    }

    .header-actions {
        gap: var(--space-2);
        margin-right: 24px;
    }

    .icon-btn {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }

    /* ===== HERO PREMIUM - DESIGN STYLE EXEMPLE ===== */
    .hero-premium {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 16px 0 !important;
    }

    /* 1. TEXTE CENTRÉ EN HAUT */
    .hero-premium__content {
        order: 1;
        padding: 0;
        text-align: center;
    }

    .hero-premium__badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 10px;
        display: inline-flex;
    }

    .hero-premium__title {
        font-size: 1.5rem !important;
        margin-bottom: 8px;
        line-height: 1.2 !important;
    }

    .hero-premium__subtitle {
        font-size: 0.875rem;
        margin-bottom: 0;
        line-height: 1.4;
        display: none;
    }

    .hero-premium__features {
        display: none !important;
    }

    .hero-premium__cta {
        display: none !important;
    }

    /* 2. DEUX CARRÉS CÔTE À CÔTE (style exemple) */
    .hero-premium__right {
        order: 2;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100%;
        max-width: 100%;
    }

    /* CAROUSEL - CARRÉ GAUCHE (style "Hi, visitor!") */
    .hero-carousel-box {
        height: 280px !important;
        min-height: 280px !important;
        border-radius: 16px !important;
        overflow: hidden;
        background: linear-gradient(135deg, rgba(184, 70, 31, 0.1) 0%, rgba(139, 47, 15, 0.05) 100%);
        border: 1px solid rgba(184, 70, 31, 0.2);
        position: relative;
    }

    .hero-carousel-slides {
        min-height: 280px !important;
    }

    .hero-slide {
        min-height: 280px !important;
    }

    .hero-slide__overlay {
        padding: 12px 16px 18px 16px !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 100%) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 100% !important;
    }

    .hero-slide__badge {
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
        margin: 0 !important;
        align-self: flex-start !important;
        border-radius: 20px !important;
    }

    .hero-slide__title {
        font-size: 1.25rem !important;
        margin: 0 !important;
        margin-top: auto !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        color: #FFFFFF !important;
    }

    .hero-slide__btn {
        display: none !important;
    }

    .hero-carousel-dots {
        bottom: 8px !important;
        padding: 4px 10px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 20px !important;
    }

    .hero-dot {
        width: 6px !important;
        height: 6px !important;
    }

    .hero-dot.active {
        width: 18px !important;
    }

    /* HOT DEAL - CARRÉ DROIT (style exemple) */
    .hero-hotdeal-box {
        height: auto !important;
        min-height: 280px !important;
        padding: 18px !important;
        padding-bottom: 18px !important;
        border-radius: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: linear-gradient(135deg, rgba(184, 70, 31, 0.1) 0%, rgba(139, 47, 15, 0.05) 100%);
        border: 1px solid rgba(184, 70, 31, 0.2);
    }

    .hotdeal-single-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        height: auto !important;
    }

    /* Header avec icône et titre */
    .hotdeal-icon {
        width: 36px !important;
        height: 36px !important;
        align-self: flex-start !important;
    }

    .hotdeal-icon i {
        font-size: 1.125rem !important;
    }

    .hotdeal-title {
        font-size: 0.875rem !important;
        text-align: left !important;
        margin: 0 0 2px 0 !important;
        font-weight: 700;
    }

    /* Timer */
    .hotdeal-timer {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
    }

    /* Image produit */
    .hotdeal-product-img {
        width: 100% !important;
        height: 150px !important;
        margin: 0 !important;
        border-radius: 10px !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        background: white;
    }

    .hotdeal-badge {
        font-size: 0.5rem !important;
        padding: 3px 6px !important;
    }

    /* ===== PRODUCTS PREMIUM LAYOUT - FORCER STRUCTURE MOBILE ===== */
    
    /* MASQUER LA STRUCTURE DESKTOP COMPLÈTEMENT */
    .products-premium-layout {
        padding: 0 !important;
        margin-top: 24px !important;
        background: transparent !important;
    }

    /* FORCER FLEX AU LIEU DE GRID */
    .products-premium-container {
        display: block !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 16px !important;
        padding: 16px 0 !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    /* 3. PRODUITS TENDANCE - RECTANGLE HORIZONTAL */
    .trending-column {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        height: auto !important;
        flex: 1 0 100% !important;
        margin-bottom: 16px !important;
    }

    .trending-wrapper {
        padding: 14px !important;
        min-height: 160px !important;
        max-height: none !important;
        height: auto !important;
        background: linear-gradient(135deg,
            rgba(255, 245, 245, 0.95) 0%,
            rgba(255, 255, 255, 0.9) 100%) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(184, 70, 31, 0.18) !important;
        box-shadow: 0 8px 32px rgba(184, 70, 31, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
        width: 100% !important;
        display: block !important;
        flex-direction: column !important;
    }

    .section-header-premium {
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        justify-content: space-between !important;
        border-bottom: 2px solid rgba(184, 70, 31, 0.1) !important;
    }

    .section-title-group {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .section-title-premium {
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-weight: 800 !important;
        margin: 0 !important;
    }

    .section-title-premium::before {
        font-size: 20px !important;
    }

    .section-subtitle {
        display: none !important;
    }

    .view-all-link-premium {
        padding: 8px 16px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        border-radius: 20px !important;
        flex-shrink: 0 !important;
    }

    /* Carousel horizontal - Cartes plus petites */
    .carousel-container-premium {
        padding: 0 !important;
        position: relative;
    }

    .trending-carousel {
        gap: 12px !important;
        padding: 8px 4px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        display: flex !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }

    /* Cartes produits - Légèrement plus grandes que "Tous les Produits" */
    .trending-carousel .product-card {
        flex: 0 0 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        background: white !important;
        border-radius: 10px !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        transition: all 0.3s ease !important;
    }

    .trending-carousel .product-card:hover,
    .trending-carousel .product-card:active {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        transform: translateY(-2px) !important;
    }

    .trending-carousel .product-image-container {
        height: 120px !important;
        border-radius: 10px 10px 0 0 !important;
        background: transparent !important;
    }

    .trending-carousel .product-info {
        padding: 6px !important;
    }

    .trending-carousel .product-rating {
        margin-bottom: 2px !important;
    }

    .trending-carousel .product-name {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
        color: #1a1a1a !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .trending-carousel .product-price {
        margin-top: 2px !important;
    }

    .trending-carousel .price-current {
        font-size: 13px !important;
        font-weight: 700 !important;
        background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    .trending-carousel .price-original {
        font-size: 10px !important;
        color: #999 !important;
        text-decoration: line-through !important;
    }

    .trending-carousel .product-rating {
        margin-bottom: 3px !important;
        gap: 3px !important;
    }

    .trending-carousel .stars {
        font-size: 9px !important;
        color: #fbbf24 !important;
        letter-spacing: 0.5px !important;
    }

    .trending-carousel .rating-count {
        font-size: 8px !important;
        color: #999 !important;
    }

    /* Masquer les boutons de navigation */
    .carousel-nav {
        display: none !important;
    }

    /* 4. TOP VENTES - RECTANGLE HORIZONTAL */
    .top-sales-column {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        height: auto !important;
        flex: 1 0 100% !important;
        margin-bottom: 16px !important;
    }

    .top-sales-wrapper {
        padding: 14px !important;
        max-height: none !important;
        min-height: 160px !important;
        height: auto !important;
        background: linear-gradient(135deg,
            rgba(255, 245, 245, 0.95) 0%,
            rgba(255, 255, 255, 0.9) 100%) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(184, 70, 31, 0.18) !important;
        box-shadow: 0 8px 32px rgba(184, 70, 31, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
        width: 100% !important;
        display: block !important;
        flex-direction: column !important;
    }

    .top-sales-header-premium {
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        justify-content: space-between !important;
        border-bottom: 2px solid rgba(184, 70, 31, 0.1) !important;
    }

    .top-sales-title-group {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .top-sales-title-premium {
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-weight: 800 !important;
        margin: 0 !important;
    }

    .top-sales-title-premium::before {
        font-size: 20px !important;
    }

    .top-sales-subtitle {
        display: none !important;
    }

    .top-sales-view-all {
        display: inline-flex !important;
        padding: 8px 16px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        border-radius: 20px !important;
        flex-shrink: 0 !important;
    }

    /* Top Sales List - Carousel horizontal (2-3 cartes visibles) */
    .top-sales-content {
        width: 100% !important;
        display: block !important;
    }

    .top-sales-list {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 12px !important;
        padding: 8px 4px !important;
        display: flex !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }

    .top-sale-card {
        flex: 0 0 240px !important;
        min-width: 240px !important;
        min-height: 95px !important;
        padding: 14px !important;
        background: white !important;
        border-radius: 10px !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        transition: all 0.3s ease !important;
    }

    .top-sale-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
        transform: translateX(4px) !important;
    }

    .top-sale-image-container {
        width: 80px !important;
        height: 80px !important;
        border-radius: 8px !important;
        background: transparent !important;
    }

    .top-sale-name {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #1D1D1F !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        display: block !important;
    }

    .top-sale-stars {
        font-size: 12px !important;
        color: #FFAC33 !important;
    }

    .top-sale-count {
        font-size: 11px !important;
        color: #86868B !important;
    }

    .top-sale-price-current {
        font-size: 17px !important;
        font-weight: 700 !important;
        background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    .top-sale-price-old {
        font-size: 13px !important;
        color: #86868B !important;
        text-decoration: line-through !important;
    }

    .top-sale-badge {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%) !important;
        color: #FFFFFF !important;
        border-radius: 6px !important;
        box-shadow: 0 4px 12px rgba(184, 70, 31, 0.45) !important;
    }

    .best-seller-badge {
        font-size: 9px !important;
        padding: 5px 10px !important;
        background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%) !important;
        color: #FFFFFF !important;
        border-radius: 4px !important;
        box-shadow: 0 4px 12px rgba(184, 70, 31, 0.45) !important;
    }

    /* ===== CATALOGUE SECTION - TOUS LES PRODUITS ===== */
    .catalogue-section {
        padding: 0;
        margin-top: 20px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .catalogue-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .catalogue-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .catalogue-container {
        flex-direction: column;
        gap: 0;
    }

    /* Sidebar - Masquer sur mobile */
    .filters-sidebar {
        display: none !important;
    }

    /* Bouton Filtres Mobile - Afficher */
    .mobile-filters-btn {
        display: flex !important;
        margin-bottom: 20px;
    }

    /* Drawer Filtres Mobile */
    .filters-drawer {
        display: block;
    }

    .filters-drawer-overlay {
        display: block;
    }

    /* 5. GRILLE PRODUITS - 2 COLONNES (plus lisible) */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product-card-catalogue {
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        transition: all 0.3s ease !important;
    }

    .product-card-catalogue:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
        transform: translateY(-2px) !important;
    }

    .product-card-catalogue .product-image-placeholder {
        height: 170px !important;
        background: transparent !important;
    }

    .product-card-catalogue .product-card-body {
        padding: 10px !important;
    }

    .product-card-catalogue .product-rating {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-bottom: 4px !important;
    }

    .product-card-catalogue .product-stars {
        color: #fbbf24 !important;
        font-size: 9px !important;
        letter-spacing: 0.5px !important;
    }

    .product-card-catalogue .product-reviews {
        color: #999 !important;
        font-size: 8px !important;
    }

    .product-card-catalogue .product-card-body {
        padding: 3px !important;
    }

    .product-card-catalogue .product-rating {
        margin-bottom: 0 !important;
        gap: 2px !important;
    }

    .product-card-catalogue .product-name-catalogue {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin-bottom: 0 !important;
        margin-top: 1px !important;
        font-weight: 600 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        max-height: 24px !important;
    }
    
    .product-card-catalogue .product-price-row {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        gap: 4px !important;
    }
    
    /* Prix produit sur mobile - uniformiser toutes les tailles */
    .product-price,
    .product-price-current,
    .product-card-catalogue .product-price-current,
    .price-current {
        font-size: 14px !important;
        font-weight: 700 !important;
        background: var(--primary-gradient) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Prix barré uniformisé */
    .product-price-old,
    .product-card-catalogue .product-price-old,
    .price-original {
        font-size: 11px !important;
        color: #999 !important;
        text-decoration: line-through !important;
    }

    .product-card-catalogue .product-price-current {
        background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        font-weight: 700 !important;
        font-size: 14px !important;
    }

    .product-card-catalogue .product-price-old {
        color: #999 !important;
        text-decoration: line-through !important;
        font-size: 11px !important;
    }

    .product-card-catalogue .product-stars {
        font-size: 11px !important;
    }

    .product-card-catalogue .product-reviews {
        font-size: 10px !important;
    }

    /* ===== FOOTER - Styles gérés par css/footer-premium.css ===== */

    /* ===== MODAL & DRAWER ===== */
    .modal {
        max-width: 100%;
    }

    .modal-header,
    .modal-body {
        padding: var(--space-5) var(--space-4);
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .drawer {
        max-width: 100%;
    }

    .drawer-header,
    .drawer-body,
    .drawer-footer {
        padding: var(--space-4);
    }

    /* ===== LIGHTBOX ===== */
    .lightbox {
        padding: var(--space-4);
    }

    .lightbox-body {
        padding: var(--space-5);
    }

    .lightbox-close {
        top: var(--space-4);
        right: var(--space-4);
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    /* ===== MENU LANGUE ===== */
    .lang--dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(100%);
        max-height: 70vh;
        overflow-y: auto;
    }

    .lang--dropdown.active {
        transform: translateY(0);
    }

    .lang--dropdown__header {
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        z-index: 10;
    }

    .lang-item {
        padding: var(--space-4);
        font-size: 1rem;
    }

    .lang-flag {
        width: 40px;
        height: 40px;
        font-size: 1.75rem;
    }


}

/* ===================================================================
   SMALL MOBILE - ≤480px
   =================================================================== */
@media (max-width: 480px) {
    /* Variables d'espacement */
    :root {
        --space-6: 1rem;
        --space-8: 1.25rem;
        --space-10: 1.5rem;
        --space-12: 2rem;
    }

    .container {
        padding: 0 var(--space-3);
    }

    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    /* ===== MODALE PRODUIT - PETIT ÉCRAN ===== */
    .product-modal {
        max-height: 98vh !important;
        border-radius: 16px 16px 0 0 !important;
    }

    .product-modal-content {
        padding: 16px !important;
        padding-top: 52px !important;
        gap: 16px !important;
    }

    .product-modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }

    /* Images */
    .product-main-image {
        height: 240px !important;
        border-radius: 10px !important;
    }

    .carousel-nav-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .carousel-nav-btn.prev {
        left: 8px !important;
    }

    .carousel-nav-btn.next {
        right: 8px !important;
    }

    .product-thumbnails {
        gap: 6px !important;
    }

    .product-thumbnail {
        width: 50px !important;
        height: 50px !important;
        border-radius: 6px !important;
    }

    /* Infos */
    .product-modal-title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    .modal-stars {
        font-size: 14px !important;
    }

    .modal-reviews {
        font-size: 12px !important;
    }

    .modal-price-current {
        font-size: 28px !important;
    }

    .modal-price-old {
        font-size: 18px !important;
    }

    .modal-discount-badge {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }

    /* Sélecteurs */
    .selector-label {
        font-size: 13px !important;
    }

    .size-options {
        gap: 6px !important;
    }

    .size-option {
        width: 44px !important;
        height: 44px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    .color-circle {
        width: 38px !important;
        height: 38px !important;
    }

    .color-name {
        font-size: 10px !important;
    }

    .quantity-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .quantity-value {
        width: 45px !important;
        font-size: 14px !important;
    }

    /* Bouton */
    .add-to-cart-modal {
        padding: 14px 24px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
        margin-bottom: 20px !important;
    }

    .add-to-cart-modal svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Tabs */
    .tab-buttons {
        gap: 12px !important;
    }

    .tab-btn {
        padding: 8px 0 !important;
        font-size: 13px !important;
    }

    .product-description {
        font-size: 13px !important;
    }

    .product-features li {
        padding: 8px 0 !important;
        font-size: 12px !important;
    }

    /* Avis */
    .reviews-summary {
        padding: 16px !important;
        gap: 16px !important;
    }

    .reviews-score-number {
        font-size: 36px !important;
    }

    .reviews-score-stars {
        font-size: 16px !important;
    }

    .review-item {
        padding: 14px 0 !important;
    }

    .review-author {
        font-size: 13px !important;
    }

    .review-text {
        font-size: 12px !important;
    }

    /* ===== MODALE FILTRES - PETIT ÉCRAN ===== */
    .filters-drawer {
        top: 0 !important;
        height: 100vh !important;
        max-width: 85% !important;
        width: 85% !important;
        border-radius: 0 !important;
    }
    
    .filters-drawer-overlay {
        top: 0 !important;
        height: calc(100vh - 160px) !important;
    }

    .filters-drawer-header {
        padding: 12px 14px !important;
    }

    .filters-drawer-title {
        font-size: 16px !important;
    }

    .filters-drawer-close {
        width: 30px !important;
        height: 30px !important;
        font-size: 18px !important;
    }

    .filters-drawer-body {
        padding: 14px 12px !important;
        padding-bottom: 85px !important;
    }

    .filter-group {
        margin-bottom: 20px !important;
    }

    .filter-group-title {
        font-size: 13px !important;
        margin-bottom: 10px !important;
        padding-left: 18px !important;
    }

    .filter-group-title svg {
        width: 12px !important;
        height: 12px !important;
    }

    .size-badges {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .size-badge {
        height: 42px !important;
        font-size: 12px !important;
    }

    .filter-option {
        padding: 8px !important;
        min-height: 42px !important;
    }

    .filter-checkbox {
        width: 16px !important;
        height: 16px !important;
    }

    .filter-option-label {
        font-size: 12px !important;
    }

    .color-preview {
        width: 22px !important;
        height: 22px !important;
    }

    .sort-select {
        padding: 10px 32px 10px 12px !important;
        font-size: 12px !important;
    }

    .filters-drawer-footer {
        padding: 10px 12px !important;
        gap: 6px !important;
    }

    .apply-filters-btn {
        padding: 12px 16px !important;
        font-size: 13px !important;
    }

    .reset-filters-btn {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }

    /* Header */
    .logo {
        font-size: 1.125rem;
        gap: var(--space-2);
        margin-left: 24px;
    }

    .logo img,
    .logo__image {
        height: 36px;
        width: auto;
    }

    .header-actions {
        margin-right: 16px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Hero Premium - Version compacte */
    .hero-premium {
        padding: 12px 0 !important;
        gap: 10px !important;
    }

    .hero-premium__title {
        font-size: 1.25rem !important;
    }

    .hero-premium__badge {
        font-size: 0.6875rem;
        padding: 5px 12px;
    }

    /* Deux carrés légèrement plus petits */
    .hero-premium__right {
        gap: 8px !important;
    }

    .hero-carousel-box,
    .hero-hotdeal-box {
        height: 200px !important;
        min-height: 200px !important;
        border-radius: 14px !important;
    }

    .hero-carousel-box {
        padding: 12px;
    }

    .hero-hotdeal-box {
        padding: 12px !important;
    }

    .hotdeal-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .hotdeal-title {
        font-size: 0.8125rem !important;
    }

    .hotdeal-timer {
        font-size: 0.6875rem !important;
        padding: 5px 10px !important;
    }

    .hotdeal-product-img {
        height: 80px !important;
    }

    /* Products Premium */
    .products-premium-container {
        padding: 12px 8px !important;
        gap: 12px !important;
    }

    .section-title-premium,
    .top-sales-title-premium {
        font-size: 14px !important;
    }

    .section-title-premium::before,
    .top-sales-title-premium::before {
        font-size: 16px !important;
    }

    /* Trending Carousel - Cartes encore plus petites */
    .trending-carousel .product-card {
        flex: 0 0 115px !important;
        min-width: 115px !important;
        max-width: 115px !important;
    }

    .trending-carousel .product-image-container {
        height: 115px !important;
    }
    
    .trending-carousel .product-info {
        padding: 7px !important;
    }
    
    .trending-carousel .product-name {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
    
    .trending-carousel .price-current {
        font-size: 12px !important;
    }
    
    .trending-carousel .price-original {
        font-size: 9px !important;
    }
    
    .trending-carousel .stars {
        font-size: 8px !important;
    }
    
    .trending-carousel .rating-count {
        font-size: 7px !important;
    }

    /* Top Sales */
    .top-sale-card {
        flex: 0 0 220px !important;
        min-width: 220px !important;
    }
    
    .top-sale-image-container {
        width: 72px !important;
        height: 72px !important;
    }
    
    .top-sale-name {
        font-size: 12px !important;
    }
    
    .top-sale-stars {
        font-size: 10px !important;
    }
    
    .top-sale-count {
        font-size: 9px !important;
    }
    
    .top-sale-price-current {
        font-size: 15px !important;
    }
    
    .top-sale-price-old {
        font-size: 11px !important;
    }

    /* Catalogue - Rester en 3 colonnes */
    .catalogue-title {
        font-size: 18px;
    }

    .catalogue-subtitle {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .product-card-catalogue .product-image-placeholder {
        height: 90px !important;
    }
}

/* ===================================================================
   LANDSCAPE MOBILE
   =================================================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-premium {
        padding: 12px 0 !important;
    }

    .hero-carousel-box,
    .hero-hotdeal-box {
        height: 120px !important;
        min-height: 120px !important;
    }

    .modal,
    .drawer {
        overflow-y: auto;
    }

    .lang--dropdown {
        max-height: 80vh;
    }

    /* Modale produit en paysage */
    .product-modal {
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    .product-modal-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
        padding: 20px !important;
        padding-top: 20px !important;
    }

    .product-main-image {
        height: 200px !important;
    }

    .product-modal-title {
        font-size: 18px !important;
    }

    .modal-price-current {
        font-size: 24px !important;
    }

    .product-selector {
        margin-bottom: 16px !important;
    }

    .add-to-cart-modal {
        padding: 12px 20px !important;
        font-size: 14px !important;
        margin-bottom: 16px !important;
    }

    .product-tabs {
        padding-top: 16px !important;
    }

    /* Filtres drawer en paysage */
    .filters-drawer {
        top: 0 !important;
        height: 100vh !important;
        max-width: 55% !important;
        width: 55% !important;
    }
    
    .filters-drawer-header {
        margin-top: 120px !important;
    }
    
    .filters-drawer-overlay {
        top: 140px !important;
        height: calc(100vh - 140px) !important;
    }

    .filters-drawer-body {
        padding: 16px !important;
        padding-bottom: 75px !important;
    }

    .filter-group {
        margin-bottom: 20px !important;
    }

    .filter-group-title {
        font-size: 13px !important;
    }

    .size-badges {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 6px !important;
    }

    .size-badge {
        height: 40px !important;
        font-size: 12px !important;
    }
}

/* ===================================================================
   PRINT
   =================================================================== */
@media print {
    .header,
    .nav-secondary,
    .footer,
    .modal,
    .drawer,
    .lightbox,
    .toast-container,
    .mobile-filters-btn,
    .filters-drawer,
    .filters-drawer-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .product-card {
        break-inside: avoid;
    }

    .hero-premium {
        grid-template-columns: 1fr !important;
    }

    .products-premium-container {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================================================
   RESPONSIVE AMÉLIORATIONS SPÉCIFIQUES
   =================================================================== */

/* Amélioration du scroll horizontal sur mobile */
@media (max-width: 768px) {
    .trending-carousel,
    .top-sales-list {
        scrollbar-width: thin;
        scrollbar-color: rgba(184, 70, 31, 0.3) transparent;
    }

    .trending-carousel::-webkit-scrollbar,
    .top-sales-list::-webkit-scrollbar {
        height: 3px;
    }

    .trending-carousel::-webkit-scrollbar-track,
    .top-sales-list::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }

    .trending-carousel::-webkit-scrollbar-thumb,
    .top-sales-list::-webkit-scrollbar-thumb {
        background: rgba(184, 70, 31, 0.3);
        border-radius: 2px;
    }

    .trending-carousel::-webkit-scrollbar-thumb:hover,
    .top-sales-list::-webkit-scrollbar-thumb:hover {
        background: rgba(184, 70, 31, 0.5);
    }
}

/* Amélioration des transitions sur mobile */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    .product-card,
    .top-sale-card,
    .btn,
    .icon-btn {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
}

/* Optimisation des performances sur mobile */
@media (max-width: 768px) {
    .hero-slide img,
    .product-image,
    .hotdeal-product-img img {
        will-change: transform;
    }
}
