/* ===================================================================
   SHIYAO - MOBILE OVERRIDE
   Ce fichier force l'affichage mobile des sections produits
   À charger APRÈS tous les autres CSS
   =================================================================== */

@media (max-width: 768px) {

    /* ===== FIX TITRE MODALE PRODUIT - NE PAS COUPER ===== */
    .product-modal-title {
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    .product-modal-header {
        padding-right: 50px !important;
        box-sizing: border-box !important;
    }
    
    /* ===== BOUTON ADD TO CART FIXE EN BAS ===== */
    .product-modal .add-to-cart-modal {
        position: fixed !important;
        bottom: 58px !important;
        left: 20px !important;
        right: 20px !important;
        width: calc(100% - 40px) !important;
        padding: 14px 18px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        background: #B8461F !important;
        color: white !important;
        border: none !important;
        border-radius: 14px !important;
        z-index: 100000 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(184, 70, 31, 0.5) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        min-height: 52px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        letter-spacing: 0.3px !important;
        text-transform: uppercase !important;
    }
    
    .product-modal .add-to-cart-modal:active {
        transform: scale(0.98) !important;
        background: #8B2F0F !important;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(184, 70, 31, 0.3) !important;
    }
    
    /* Bouton désactivé - rouge grisé */
    .product-modal .add-to-cart-modal:disabled,
    .product-modal .add-to-cart-modal[disabled] {
        background: rgba(184, 70, 31, 0.5) !important;
        color: rgba(255, 255, 255, 0.8) !important;
        cursor: not-allowed !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15) !important;
        opacity: 0.7 !important;
    }
    
    .product-modal .add-to-cart-modal:disabled:active,
    .product-modal .add-to-cart-modal[disabled]:active {
        transform: none !important;
    }
    
    .product-modal .add-to-cart-modal svg {
        width: 22px !important;
        height: 22px !important;
    }

    /* ===== FORCER BODY ET CONTAINER SANS MARGES ===== */
    body {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        position: relative !important;
    }
    
    /* S'assurer que les éléments fixed restent vraiment fixés */
    .chatbot-trigger,
    #discordModalBtn,
    .floating-btn,
    #authOverlay,
    .modal-overlay,
    .mobile-sort-overlay,
    .filters-drawer-overlay,
    .product-modal-overlay {
        position: fixed !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        will-change: transform !important;
    }
    
    /* Bloquer le scroll du body quand la modale produit est ouverte */
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Overlay de la modale produit */
    .product-modal-overlay {
        overflow: hidden !important;
        overscroll-behavior: contain !important;
    }
    
    /* Forcer les boutons flottants à rester en bas */
    .chatbot-trigger,
    #discordModalBtn {
        position: fixed !important;
        bottom: 20px !important;
        z-index: 9998 !important;
    }
    
    #discordModalBtn {
        bottom: 90px !important;
    }

    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Header sans marges */
    .header {
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    /* Header content avec padding interne */
    .header-content {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Search bar avec padding interne */
    .search-bar {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* ===== AGRANDIR LES DEUX CARRÉS DU HAUT ===== */
    .hero-premium {
        margin-bottom: 24px !important;
        padding-bottom: 16px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .hero-premium__right {
        margin-bottom: 0 !important;
    }

    /* Bannière carousel - hauteur réduite sur mobile */
    .hero-carousel-box {
        height: 155px !important;
        min-height: 155px !important;
        max-height: 155px !important;
        padding: 6px !important;
        margin-left: 4px !important;
        margin-right: 4px !important;
    }

    .hero-hotdeal-box,
    .hero-leaderboard-box {
        height: 260px !important;
        min-height: 260px !important;
        max-height: 260px !important;
        padding: 10px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Forcer les deux carrés à être identiques */
    .hero-dual-boxes {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        align-items: stretch !important;
        margin-top: 10px !important;
        margin-bottom: 4px !important;
    }
    
    /* Réduire l'espace sous la section hero */
    .hero-section-new {
        padding-bottom: 4px !important;
        margin-bottom: 0 !important;
    }

    .hero-carousel-slides,
    .hero-slide {
        min-height: 143px !important;
        height: 143px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Image remplit le slide avec bordure arrondie */
    .hero-slide img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 10px !important;
        filter: brightness(0.75) !important;
    }

    /* Ajuster l'overlay - Badge en haut, Titre en bas */
    .hero-slide__overlay {
        padding: 8px 10px !important;
        justify-content: space-between !important;
        display: flex !important;
        flex-direction: column !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 100% !important;
        border-radius: 10px !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%) !important;
    }

    /* Badge Tendance en haut comme étiquette */
    .hero-slide__badge {
        margin: 0 !important;
        align-self: flex-start !important;
        padding: 4px 10px !important;
        font-size: 0.65rem !important;
        border-radius: 14px !important;
    }

    /* Titre en bas avec marge */
    .hero-slide__title {
        margin: 0 !important;
        margin-top: auto !important;
        margin-bottom: 2px !important;
        padding-bottom: 1px !important;
        line-height: 1.15 !important;
        font-size: 0.9rem !important;
    }

    /* Cacher le bouton Découvrir */
    .hero-slide__btn {
        display: none !important;
    }

    /* Dots carousel - centré en bas avec plus d'espace */
    .hero-carousel-dots {
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 16px !important;
        padding: 3px 6px !important;
    }
    
    .hero-dot {
        width: 4px !important;
        height: 4px !important;
    }
    
    .hero-dot.active {
        width: 14px !important;
    }

    /* Hot Deals - Ajuster le contenu pour que l'image soit visible */
    .hero-hotdeal-box {
        padding: 10px 12px 12px 12px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .hotdeal-icon {
        margin-bottom: 3px !important;
        font-size: 22px !important;
    }

    .hotdeal-title {
        margin-bottom: 4px !important;
        font-size: 0.95rem !important;
    }

    .hotdeal-timer {
        margin-bottom: 6px !important;
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
    }

    .hotdeal-product {
        flex: 1 !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: center !important;
        min-height: 0 !important;
    }

    .hotdeal-single-row {
        flex-direction: column !important;
        gap: 4px !important;
        height: auto !important;
    }
    
    .hotdeal-product-img {
        width: 100% !important;
        height: 85px !important;
        flex: 0 0 85px !important;
        min-height: 85px !important;
        max-height: 85px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        position: relative !important;
        margin-left: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    .hotdeal-product-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 8px !important;
    }

    .hotdeal-badge {
        font-size: 0.55rem !important;
        padding: 3px 7px !important;
        position: absolute !important;
        top: 5px !important;
        left: 5px !important;
        z-index: 10 !important;
    }
    
    /* ===== NOUVEAU STYLE HOT DEAL CARD - IDENTIQUE À TRENDING ===== */
    .hero-dual-boxes .hotdeal-product-card {
        flex: 0 1 auto !important;
        max-height: calc(100% - 55px) !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 10px !important;
        border: 1px solid rgba(184, 70, 31, 0.15) !important;
        background: #FFFFFF !important;
        box-shadow: 0 2px 8px rgba(184, 70, 31, 0.1) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .hero-dual-boxes .hotdeal-card-image {
        height: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;
        flex-shrink: 0 !important;
        border-radius: 10px 10px 0 0 !important;
        overflow: hidden !important;
        position: relative !important;
        background: #ffffff !important;
    }
    
    .hero-dual-boxes .hotdeal-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        display: block !important;
    }
    
    .hero-dual-boxes .hotdeal-discount-badge {
        position: absolute !important;
        top: 5px !important;
        left: 5px !important;
        background: var(--primary-gradient, linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%)) !important;
        color: #fff !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        font-size: 8px !important;
        font-weight: 700 !important;
        z-index: 5 !important;
    }
    
    .hero-dual-boxes .hotdeal-card-info {
        padding: 5px 6px 6px 6px !important;
        background: #FFFFFF !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1px !important;
    }
    
    .hero-dual-boxes .hotdeal-card-rating {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        margin-bottom: 1px !important;
    }
    
    .hero-dual-boxes .hotdeal-card-rating .stars {
        font-size: 8px !important;
        color: #fbbf24 !important;
    }
    
    .hero-dual-boxes .hotdeal-card-rating .rating-count {
        font-size: 7px !important;
        color: #999 !important;
    }
    
    .hero-dual-boxes .hotdeal-card-title {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        margin-bottom: 1px !important;
        color: #1D1D1F !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        -webkit-line-clamp: 1 !important;
        line-clamp: 1 !important;
    }
    
    .hero-dual-boxes .hotdeal-card-prices {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-top: 0 !important;
    }
    
    .hero-dual-boxes .hotdeal-card-prices .price-new {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #B8461F !important;
    }
    
    .hero-dual-boxes .hotdeal-card-prices .price-old {
        font-size: 9px !important;
        color: #999 !important;
        text-decoration: line-through !important;
    }
    
    /* Header Hot Deal - Style identique à Top Sponsors */
    .hero-dual-boxes .hotdeal-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        margin-bottom: 6px !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
        width: 100% !important;
    }
    
    /* Titre Hot Deal - même style que Trending Products */
    .hero-dual-boxes .hotdeal-title {
        font-size: 17px !important;
        font-weight: 800 !important;
        gap: 10px !important;
        display: flex !important;
        align-items: center !important;
        padding-bottom: 6px !important;
        margin-bottom: 6px !important;
        border-bottom: 2px solid rgba(184, 70, 31, 0.15) !important;
        width: 100% !important;
        color: #8B2F0F !important;
    }
    
    /* Cacher l'ancienne icône carrée */
    .hero-dual-boxes .hotdeal-title__icon {
        display: none !important;
    }
    
    /* Image logo Hot Deal - même taille que Trending Products */
    .hero-dual-boxes .hotdeal-title__img {
        width: 40px !important;
        height: 40px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }
    
    /* Timer en dessous de la barre */
    .hero-dual-boxes .hotdeal-timer-badge {
        margin-left: 0 !important;
        font-size: 8px !important;
        padding: 2px 6px !important;
        margin-top: 0 !important;
        margin-bottom: 6px !important;
    }
    
    /* ===== LEADERBOARD (TOP SPONSORS) - même style que Trending Products ===== */
    .hero-leaderboard-box {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .leaderboard-header {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 8px !important;
        padding-bottom: 8px !important;
        border-bottom: 2px solid rgba(184, 70, 31, 0.15) !important;
    }
    
    /* Cacher l'ancienne icône carrée */
    .leaderboard-title__icon {
        display: none !important;
    }
    
    /* Image logo Top Sponsors - même taille que Trending Products */
    .leaderboard-title__img {
        width: 40px !important;
        height: 40px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }
    
    /* Titre Top Sponsors - même style que Trending Products */
    .leaderboard-title {
        font-size: 17px !important;
        font-weight: 800 !important;
        color: #8B2F0F !important;
        gap: 10px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .leaderboard-prize {
        display: none !important;
    }
    
    .leaderboard-empty {
        flex: 1 !important;
        padding: 10px !important;
    }
    
    .leaderboard-empty__icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .leaderboard-empty__text {
        font-size: 11px !important;
        margin-bottom: 10px !important;
    }
    
    .leaderboard-empty__btn {
        padding: 8px 16px !important;
        font-size: 11px !important;
    }
    
    .leaderboard-footer {
        margin-top: auto !important;
        padding-top: 8px !important;
    }
    
    .leaderboard-footer__target {
        display: none !important;
    }
    
    .leaderboard-footer__btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 14px !important;
        font-size: 11px !important;
    }

    /* FORCER LA STRUCTURE EN COLONNE UNIQUE */
    .products-premium-container {
        display: block !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        padding: 4px 8px !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        overflow: hidden !important;
    }

    /* FORCER LES COLONNES EN PLEINE LARGEUR */
    .trending-column,
    .top-sales-column {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin-bottom: 8px !important;
        float: none !important;
        flex: none !important;
        overflow: hidden !important;
    }

    /* FORCER LES WRAPPERS EN RECTANGLES HORIZONTAUX */
    .trending-wrapper,
    .top-sales-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        background: #FFFFFF !important;
        border-radius: 16px !important;
        border: 1px solid rgba(184, 70, 31, 0.15) !important;
        box-shadow: 0 2px 12px rgba(184, 70, 31, 0.08) !important;
        padding: 12px !important;
        overflow: hidden !important;
    }

    /* HEADERS - STYLE SIMPLE COMME LA PHOTO */
    .section-header-premium,
    .top-sales-header-premium {
        margin-bottom: 16px !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .section-title-premium,
    .top-sales-title-premium {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #8B2F0F !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        font-family: 'Inter', -apple-system, sans-serif !important;
    }
    
    /* Logos Trending Products et Top Sales - taille réduite sur mobile */
    .trending-logo-icon,
    .top-sales-logo-icon,
    .section-title-premium img,
    .top-sales-title-premium img,
    h2.section-title-premium img,
    h2.top-sales-title-premium img {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }

    /* Cacher les icônes CSS générées */
    .section-title-premium::before,
    .top-sales-title-premium::before {
        display: none !important;
    }

    /* Styliser les icônes HTML en rouge */
    .fire-icon,
    .trophy-icon {
        color: #B8461F !important;
        font-size: 22px !important;
        display: inline-block !important;
        filter: grayscale(0%) !important;
    }

    .section-subtitle,
    .top-sales-subtitle {
        display: none !important;
    }

    .view-all-link-premium,
    .top-sales-view-all {
        display: inline-flex !important;
        padding: 10px 20px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        background: #B8461F !important;
        color: #FFFFFF !important;
        border-radius: 25px !important;
        text-decoration: none !important;
        align-items: center !important;
        gap: 6px !important;
        box-shadow: none !important;
        font-family: 'Inter', -apple-system, sans-serif !important;
    }

    /* FORCER LE SCROLL HORIZONTAL DES CAROUSELS */
    .carousel-container-premium {
        width: 100% !important;
        overflow: hidden !important;
    }

    /* CAROUSEL TENDANCE ET TOP VENTES - SCROLL HORIZONTAL */
    .trending-carousel,
    .top-sales-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 4px 0 !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }

    .trending-carousel::-webkit-scrollbar,
    .top-sales-list::-webkit-scrollbar {
        height: 4px !important;
    }

    .trending-carousel::-webkit-scrollbar-thumb,
    .top-sales-list::-webkit-scrollbar-thumb {
        background: rgba(184, 70, 31, 0.3) !important;
        border-radius: 4px !important;
    }

    /* CARTES PRODUITS TENDANCE - STYLE SHIYAO */
    .trending-carousel .product-card {
        flex: 0 0 115px !important;
        min-width: 115px !important;
        max-width: 115px !important;
        height: auto !important;
        border-radius: 10px !important;
        background: #FFFFFF !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }

    .trending-carousel .product-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(184, 70, 31, 0.2) !important;
    }

    .trending-carousel .product-image-container {
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        border-radius: 10px 10px 0 0 !important;
        overflow: hidden !important;
        display: block !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .trending-carousel .product-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .trending-carousel .product-info {
        padding: 8px 7px 6px 7px !important;
        background: #FFFFFF !important;
    }

    .trending-carousel .product-rating {
        margin-bottom: 3px !important;
    }

    .trending-carousel .product-name {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        margin-bottom: 6px !important;
        color: #1D1D1F !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    .trending-carousel .product-price {
        margin-top: 0 !important;
        padding-bottom: 0 !important;
        position: relative !important;
        top: -11px !important;
    }

    .trending-carousel .price-current {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #B8461F !important;
    }

    .trending-carousel .price-original {
        font-size: 9px !important;
        color: #999 !important;
    }
    
    .trending-carousel .product-rating .stars {
        font-size: 8px !important;
        color: #fbbf24 !important;
    }
    
    .trending-carousel .product-rating .rating-count {
        font-size: 7px !important;
        color: #999 !important;
    }

    /* TOP VENTES CARDS - UTILISE LES MÊMES STYLES QUE TRENDING-CAROUSEL */
    /* On applique les mêmes styles que .trending-carousel .product-card */
    .top-sale-card,
    .top-sales-list .top-sale-card {
        flex: 0 0 115px !important;
        min-width: 115px !important;
        max-width: 115px !important;
        height: auto !important;
        padding: 0 !important;
        min-height: auto !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        background: #FFFFFF !important;
        border-radius: 10px !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        position: relative !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }

    .top-sale-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(184, 70, 31, 0.2) !important;
    }

    .top-sale-badge {
        width: 24px !important;
        height: 24px !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        top: 6px !important;
        left: 6px !important;
        position: absolute !important;
        z-index: 10 !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #D95F2F 0%, #B8461F 50%, #8B2F0F 100%) !important;
        color: #FFFFFF !important;
        box-shadow: 0 4px 14px rgba(184, 70, 31, 0.5) !important;
    }

    .top-sale-badge.rank-1 {
        background: linear-gradient(135deg, #FFD700 0%, #FFB800 25%, #D95F2F 55%, #B8461F 100%) !important;
        box-shadow: 0 6px 18px rgba(255, 184, 0, 0.65) !important;
        animation: goldPulse 2.5s ease-in-out infinite !important;
    }
    
    @keyframes goldPulse {
        0%, 100% { 
            transform: scale(1);
            box-shadow: 0 6px 18px rgba(255, 184, 0, 0.65);
        }
        50% { 
            transform: scale(1.08);
            box-shadow: 0 8px 24px rgba(255, 184, 0, 0.85);
        }
    }

    /* Image Top Sale - EXACTEMENT comme .trending-carousel .product-image-container */
    .top-sale-image-container {
        width: 100% !important;
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        flex-shrink: 0 !important;
        border-radius: 10px 10px 0 0 !important;
        overflow: hidden !important;
        box-shadow: none !important;
        background: #ffffff !important;
        position: relative !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .top-sale-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        display: block !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Info Top Sale - EXACTEMENT comme .trending-carousel .product-info */
    .top-sale-info {
        padding: 8px 7px 6px 7px !important;
        background: #FFFFFF !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    /* Rating en premier comme Trending */
    .top-sale-rating {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-bottom: 3px !important;
        order: 1 !important;
    }

    .top-sale-stars {
        font-size: 8px !important;
        color: #fbbf24 !important;
        letter-spacing: 0.5px !important;
    }

    .top-sale-count {
        font-size: 7px !important;
        color: #999 !important;
    }

    /* Nom - EXACTEMENT comme .trending-carousel .product-name */
    .top-sale-name {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        color: #1D1D1F !important;
        margin-bottom: 6px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        display: block !important;
        order: 2 !important;
    }
    
    /* Afficher version mobile (2 mots) */
    .top-sale-name-mobile {
        display: inline !important;
    }
    
    /* Masquer version desktop (3 mots) */
    .top-sale-name-desktop {
        display: none !important;
    }

    /* Prix - EXACTEMENT comme .trending-carousel .product-price */
    .top-sale-price {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        position: relative !important;
        top: -11px !important;
        order: 3 !important;
    }

    .top-sale-price-current {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #B8461F !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #B8461F !important;
        background-clip: unset !important;
    }

    .top-sale-price-old {
        font-size: 9px !important;
        color: #999 !important;
        text-decoration: line-through !important;
    }

    /* Cacher le badge BEST SELLER sur mobile */
    .best-seller-badge {
        display: none !important;
    }
    
    /* Cacher les badges QC sur les cartes Top Sales */
    .top-sale-card .qc-badge,
    .top-sale-card .qc-thumbnails,
    .top-sales-list .qc-badge,
    .top-sales-list .qc-thumbnails,
    .top-sale-image-container .qc-badge,
    .top-sale-image-container .qc-thumbnails {
        display: none !important;
    }
}


/* ===================================================================
   iOS SAFE AREA & STATUS BAR
   =================================================================== */

/* Support pour la barre d'état iOS */
@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top) !important;
    }
    
    .header {
        padding-top: max(20px, env(safe-area-inset-top)) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    /* Modale produit - ajuster pour iOS */
    .product-modal-overlay {
        top: calc(140px + env(safe-area-inset-top)) !important;
        height: calc(100% - 140px - env(safe-area-inset-top)) !important;
    }
    
    /* Fix pour les boutons flottants sur iOS */
    .chatbot-trigger,
    #discordModalBtn {
        position: fixed !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }
}

/* Styles de modale produit déplacés vers product-modal.css */

/* Forcer le fond blanc opaque sur iOS */
@media (max-width: 768px) {
    .header,
    .header--glass {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
}


/* Styles de modale produit pour petits écrans déplacés vers product-modal.css */


/* Uniformiser les cartes sur très petits écrans */
@media (max-width: 480px) {
    .trending-carousel .product-card {
        flex: 0 0 105px !important;
        min-width: 105px !important;
        max-width: 105px !important;
    }
    
    .trending-carousel .product-image-container {
        height: 85px !important;
        min-height: 85px !important;
        max-height: 85px !important;
    }
    
    .trending-carousel .product-info {
        padding: 5px 6px 9px 6px !important;
    }
    
    .trending-carousel .product-name {
        font-size: 0.65rem !important;
        margin-bottom: 3px !important;
        line-height: 1.15 !important;
    }
    
    .trending-carousel .price-current {
        font-size: 12px !important;
    }
    
    .trending-carousel .price-original {
        font-size: 8px !important;
    }
    
    .trending-carousel .product-rating .stars {
        font-size: 7px !important;
    }
    
    .trending-carousel .product-rating .rating-count {
        font-size: 6px !important;
    }
    
    /* Top Sales - même taille que Trending sur petits écrans */
    .top-sale-card {
        flex: 0 0 105px !important;
        min-width: 105px !important;
        max-width: 105px !important;
    }
    
    .top-sale-image-container {
        height: 85px !important;
        min-height: 85px !important;
        max-height: 85px !important;
    }
    
    .top-sale-info {
        padding: 5px 6px 9px 6px !important;
    }
    
    .top-sale-name {
        font-size: 0.65rem !important;
    }
    
    .top-sale-price-current {
        font-size: 12px !important;
    }
    
    .top-sale-price-old {
        font-size: 8px !important;
    }
    
    .top-sale-stars {
        font-size: 7px !important;
    }
    
    .top-sale-count {
        font-size: 6px !important;
    }
    
    .top-sale-badge {
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
    }
}


    /* GRILLE CATALOGUE - TOUS LES PRODUITS */
    .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;
    }
    
    /* Uniformiser tous les prix sur mobile */
    .product-price,
    .product-price-current,
    .product-card-catalogue .product-price-current,
    .price-current,
    .trending-carousel .price-current,
    .top-sale-price-current {
        font-size: 14px !important;
        font-weight: 700 !important;
    }
    
    /* Prix barrés uniformisés */
    .product-price-old,
    .product-card-catalogue .product-price-old,
    .price-original,
    .trending-carousel .price-original,
    .top-sale-price-old {
        font-size: 11px !important;
    }
    
    .product-card-catalogue .product-stars {
        color: #fbbf24 !important;
        font-size: 9px !important;
    }

    .product-card-catalogue .product-reviews {
        color: #999 !important;
        font-size: 8px !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;
    }

    /* ===================================================================
       FOOTER - Styles gérés par css/footer-premium.css
       =================================================================== */
    .footer-social-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

/* ===================================================================
   MODAL AUTHENTIFICATION - OVERLAY NOIR
   =================================================================== */

#authOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

#authOverlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* S'assurer que la modale auth est au-dessus de l'overlay */
#authModal {
    position: fixed;
    z-index: 1000;
}

/* Sur mobile, l'overlay doit être visible */
@media (max-width: 768px) {
    #authOverlay {
        background: rgba(0, 0, 0, 0.5);
    }
}


/* ===================================================================
   MODALE TRI MOBILE
   =================================================================== */

.mobile-sort-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sort-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sort-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 20px 20px 0 0;
    z-index: 1101;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-sort-modal.active {
    transform: translateY(0);
}

.mobile-sort-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #E5E5E5;
}

.mobile-sort-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1D1D1F;
    margin: 0;
}

.mobile-sort-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
}

.mobile-sort-option {
    padding: 16px 20px;
    border-bottom: 1px solid #F5F5F5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-sort-option:active {
    background: #F5F5F5;
}

.mobile-sort-option.active {
    color: #8B2F0F;
    font-weight: 600;
}

.mobile-sort-option.active::after {
    content: '✓';
    color: #8B2F0F;
    font-size: 18px;
    font-weight: 700;
}
