/* ===================================================================
   SHIYAO - PRODUCTS PREMIUM ALIEXPRESS STYLE
   DESKTOP ONLY (>768px)
   =================================================================== */

/* Styles par défaut pour les logos (toutes tailles d'écran) */
.trending-logo-icon,
.top-sales-logo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

/* TOUTES LES RÈGLES SONT UNIQUEMENT POUR DESKTOP */
@media (min-width: 769px) {
    /* Layout principal */
    .products-premium-layout {
        padding: 0;
        background: #FFFFFF;
        position: relative;
        margin-top: 0;
        width: 100%;
    }

    /* Container PLEINE LARGEUR par défaut */
    .products-premium-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 15px 30px !important;
        display: block !important;
    }
    
    /* Pleine largeur quand fullwidth */
    .products-premium-container.products-premium-container--fullwidth {
        display: block !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px 30px !important;
    }

    /* Colonnes pleine largeur */
    .trending-column,
    .trending-column--fullwidth {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Wrappers avec fond blanc propre - PLEINE LARGEUR */
    .trending-wrapper,
    .top-sales-wrapper {
        background: #FFFFFF;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        padding: 18px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Liste top ventes - afficher les 3 cartes sans scroll */
    .top-sales-list {
        flex: 1;
        overflow-y: visible;
        overflow-x: hidden;
        padding-right: 8px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    /* Scrollbar personnalisée pour top ventes */
    .top-sales-list::-webkit-scrollbar {
        width: 6px;
    }
    
    .top-sales-list::-webkit-scrollbar-track {
        background: rgba(184, 70, 31, 0.05);
        border-radius: 3px;
    }
    
    .top-sales-list::-webkit-scrollbar-thumb {
        background: rgba(184, 70, 31, 0.3);
        border-radius: 3px;
    }
    
    .top-sales-list::-webkit-scrollbar-thumb:hover {
        background: rgba(184, 70, 31, 0.5);
    }

    .trending-wrapper:hover,
    .top-sales-wrapper:hover {
        border-color: rgba(0, 0, 0, 0.12);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    /* Headers premium */
    .section-header-premium,
    .top-sales-header-premium {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 2px solid rgba(184, 70, 31, 0.15);
    }

    .section-title-premium,
    .top-sales-title-premium {
        font-size: 20px;
        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;
        display: flex;
        align-items: center;
        gap: 8px;
        letter-spacing: -0.01em;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    }
    
    /* Logos des sections - taille réduite */
    .trending-logo-icon,
    .top-sales-logo-icon {
        width: 32px !important;
        height: 32px !important;
    }



    .section-subtitle,
    .top-sales-subtitle {
        font-size: 14px;
        color: #666;
        font-style: italic;
    }

    .view-all-link-premium {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 20px;
        background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        border-radius: 50px;
        box-shadow: 0 4px 16px rgba(184, 70, 31, 0.35);
        transition: all 0.3s ease;
    }

    .view-all-link-premium:hover {
        transform: translateX(4px) scale(1.05);
        box-shadow: 0 6px 20px rgba(184, 70, 31, 0.45);
    }

    .top-sales-view-all {
        display: none !important;
    }

    /* Carousel */
    .carousel-container-premium {
        position: relative;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    /* Boutons de navigation ronds rouges */
    .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        box-shadow: 0 4px 12px rgba(184, 70, 31, 0.4);
        transition: all 0.3s ease, opacity 0.3s ease;
    }

    .carousel-nav:hover {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 16px rgba(184, 70, 31, 0.6);
    }

    .carousel-nav:active {
        transform: translateY(-50%) scale(0.95);
    }

    .carousel-nav svg {
        stroke: #FFFFFF;
    }

    .carousel-nav-left {
        left: 5px;
        opacity: 0;
        pointer-events: none;
    }

    .carousel-nav-right {
        right: 5px;
    }

    .trending-carousel {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding: 8px 4px 8px;
        scroll-behavior: smooth;
        max-width: 100%;
    }

    .trending-carousel::-webkit-scrollbar {
        height: 6px;
    }

    .trending-carousel::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #B8461F, #8B2F0F);
        border-radius: 10px;
    }

    /* Product cards - UNIQUEMENT pour le carousel des tendances */
    .trending-carousel .product-card {
        flex: 0 0 150px !important;
        background: #FFFFFF;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        overflow: hidden;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        cursor: pointer;
        min-width: 150px !important;
        max-width: 150px !important;
    }

    .trending-carousel .product-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        transform: translateY(-4px);
    }

    .trending-carousel .product-image-container {
        position: relative;
        width: 100%;
        height: 140px !important;
        background: transparent;
        padding: 0 !important;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .trending-carousel .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
        border-radius: 4px;
    }

    .trending-carousel .product-card:hover .product-image {
        transform: scale(1.05);
    }

    .trending-carousel .product-info {
        padding: 8px !important;
        display: flex;
        flex-direction: column;
        gap: 2px !important;
        flex: 1;
    }

    .product-rating {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 3px;
    }

    .stars {
        color: #fbbf24;
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .rating-count {
        color: #999;
        font-size: 10px;
    }

    .product-name,
    .trending-carousel .product-name,
    .trending-carousel .product-card .product-name,
    .trending-carousel .product-info .product-name,
    .trending-carousel .product-card .product-info .product-name {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #1a1a1a !important;
        line-height: 1.3 !important;
        margin-bottom: 2px !important;
        min-height: auto !important;
        max-height: 28px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .product-price {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .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;
    }

    .price-original {
        font-size: 10px;
        color: #999;
        text-decoration: line-through;
    }

    .add-to-cart-btn {
        display: none !important;
    }

    /* TOP VENTES */
    .top-sales-list {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        overflow-y: visible !important;
        justify-content: flex-start !important;
        padding-bottom: 6px !important;
    }

    .top-sale-card {
        display: flex !important;
        gap: 10px !important;
        background: #FFFFFF !important;
        border-radius: 10px !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        padding: 8px !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        position: relative !important;
        cursor: pointer !important;
        min-height: 85px !important;
        max-height: 85px !important;
        align-items: center !important;
    }

    .top-sale-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        transform: translateX(4px);
    }

    .top-sale-badge {
        position: absolute;
        top: 5px;
        left: 5px;
        width: 22px;
        height: 22px;
        background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 900;
        color: #FFFFFF;
        box-shadow: 0 4px 12px rgba(184, 70, 31, 0.45);
        z-index: 10;
    }

    .top-sale-badge.rank-1 {
        animation: goldPulse 2s ease-in-out infinite;
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #B8461F 100%);
        box-shadow: 0 8px 24px rgba(255, 215, 0, 0.6);
    }

    @keyframes goldPulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.15) rotate(5deg); }
    }

    .top-sale-image-container {
        width: 65px !important;
        height: 65px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        background: transparent !important;
    }

    .top-sale-info {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        justify-content: center !important;
        min-width: 0 !important;
    }

    .top-sale-name {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #1D1D1F !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin-bottom: 3px !important;
    }
    
    /* Afficher version desktop (3 mots) */
    .top-sale-name-desktop {
        display: inline !important;
    }
    
    /* Masquer version mobile (2 mots) */
    .top-sale-name-mobile {
        display: none !important;
    }

    .top-sale-rating {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-bottom: 3px !important;
    }

    .top-sale-stars {
        color: #FFAC33 !important;
        font-size: 10px !important;
    }

    .top-sale-count {
        color: #86868B !important;
        font-size: 10px !important;
    }

    .top-sale-price {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .top-sale-price-current {
        font-size: 14px !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: 11px !important;
        color: #86868B !important;
        text-decoration: line-through !important;
    }

    .best-seller-badge {
        position: absolute !important;
        right: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 3px !important;
        padding: 4px 8px !important;
        background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%) !important;
        color: #FFFFFF !important;
        font-size: 7px !important;
        font-weight: 800 !important;
        border-radius: 4px !important;
        text-transform: uppercase !important;
        box-shadow: 0 2px 8px rgba(184, 70, 31, 0.4) !important;
        letter-spacing: 0.3px !important;
        width: fit-content !important;
    }
    
    .best-seller-badge svg {
        width: 8px !important;
        height: 8px !important;
    }

    @keyframes badgeShine {
        0%, 100% { box-shadow: 0 4px 12px rgba(184, 70, 31, 0.45); }
        50% { box-shadow: 0 6px 20px rgba(184, 70, 31, 0.65); }
    }
    
    /* Cacher les badges QC sur les cartes Top Sales sur PC */
    .top-sale-card .qc-badge,
    .top-sale-card .qc-thumbnails,
    .top-sales-list .qc-badge,
    .top-sales-list .qc-thumbnails {
        display: none !important;
    }
}

/* ===================================================================
   MOBILE STYLES - Fond rouge clair pour les sections
   =================================================================== */

@media (max-width: 768px) {
    /* Padding mobile pour aligner avec My Account */
    .products-premium-layout {
        padding: 0 12px !important;
    }
    
    /* Wrappers avec fond blanc propre sur mobile */
    .trending-wrapper,
    .top-sales-wrapper {
        background: #FFFFFF;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        margin-bottom: 20px;
    }
    
    /* Afficher la flèche droite sur mobile */
    .carousel-nav-right {
        display: flex !important;
        position: absolute;
        top: 50%;
        right: 8px;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
        border: none;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 20;
        box-shadow: 0 4px 12px rgba(184, 70, 31, 0.5);
    }
    
    .carousel-nav-right svg {
        stroke: #FFFFFF;
        width: 20px;
        height: 20px;
    }
    
    /* Cacher la flèche gauche sur mobile */
    .carousel-nav-left {
        display: none !important;
    }

    /* Headers premium sur mobile */
    .section-header-premium,
    .top-sales-header-premium {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;
        padding-bottom: 12px;
        border-bottom: 2px solid rgba(184, 70, 31, 0.15);
    }

    .section-title-premium,
    .top-sales-title-premium {
        font-size: 20px;
        font-weight: 800;
        background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Garder les cartes de produits BLANCHES sur mobile */
    .trending-carousel .product-card,
    .product-card {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    }
    
    /* =============================================
       TOP SALES MOBILE - Format carte IDENTIQUE à Trending
       ============================================= */
    
    /* Liste devient grille horizontale */
    .top-sales-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 8px 4px !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }
    
    .top-sales-list::-webkit-scrollbar {
        height: 4px;
    }
    
    .top-sales-list::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #B8461F, #8B2F0F);
        border-radius: 10px;
    }
    
    /* Carte Top Sale - EXACTEMENT comme Trending */
    .top-sale-card {
        flex: 0 0 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        min-height: auto !important;
        max-height: none !important;
        flex-direction: column !important;
        padding: 0 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        background: white !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    }
    
    /* Badge #1 #2 #3 en haut à gauche */
    .top-sale-badge {
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        z-index: 10 !important;
    }
    
    /* Image container - MÊME hauteur que Trending (120px) */
    .top-sale-image-container {
        width: 100% !important;
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
        border-radius: 10px 10px 0 0 !important;
        flex-shrink: 0 !important;
        background: #ffffff !important;
        overflow: hidden !important;
        position: relative !important;
        display: block !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;
    }
    
    /* Info en bas - MÊME padding que Trending */
    .top-sale-info {
        padding: 6px !important;
        gap: 2px !important;
    }
    
    /* Cacher le nom desktop, afficher mobile */
    .top-sale-name-desktop {
        display: none !important;
    }
    
    .top-sale-name-mobile {
        display: inline !important;
    }
    
    .top-sale-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;
    }
    
    .top-sale-rating {
        margin-bottom: 2px !important;
        gap: 3px !important;
    }
    
    .top-sale-stars {
        font-size: 9px !important;
        color: #fbbf24 !important;
        letter-spacing: 0.5px !important;
    }
    
    .top-sale-count {
        font-size: 8px !important;
        color: #999 !important;
    }
    
    .top-sale-price {
        margin-top: 2px !important;
    }
    
    .top-sale-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;
    }
    
    .top-sale-price-old {
        font-size: 10px !important;
        color: #999 !important;
        text-decoration: line-through !important;
    }
    
    /* Cacher le badge BEST SELLER sur mobile */
    .best-seller-badge {
        display: none !important;
    }
}




/* ===================================================================
   GRANDS ÉCRANS - Trending Products & Top Sales
   Commence à 1500px pour ne pas affecter les écrans laptop standard
   =================================================================== */

@media (min-width: 1500px) {
    .products-premium-container {
        max-width: 1550px !important;
        gap: 20px !important;
    }
    
    .trending-wrapper,
    .top-sales-wrapper {
        min-height: 400px;
        max-height: 400px;
        height: 400px !important;
        padding: 20px;
    }
    
    .section-title-premium,
    .top-sales-title-premium {
        font-size: 22px;
    }
    
    .trending-logo-icon,
    .top-sales-logo-icon {
        width: 38px !important;
        height: 38px !important;
    }
    
    .trending-carousel .product-card {
        flex: 0 0 165px !important;
        min-width: 165px !important;
        max-width: 165px !important;
    }
    
    .trending-carousel .product-image-container {
        height: 155px !important;
    }
    
    .top-sale-card {
        min-height: 95px !important;
        max-height: 95px !important;
        padding: 10px !important;
    }
    
    .top-sale-image-container {
        width: 75px !important;
        height: 75px !important;
    }
}

@media (min-width: 1600px) {
    .products-premium-container {
        max-width: 1650px !important;
        gap: 24px !important;
    }
    
    .trending-wrapper,
    .top-sales-wrapper {
        min-height: 420px;
        max-height: 420px;
        height: 420px !important;
        padding: 22px;
    }
    
    .section-title-premium,
    .top-sales-title-premium {
        font-size: 24px;
    }
    
    .trending-logo-icon,
    .top-sales-logo-icon {
        width: 42px !important;
        height: 42px !important;
    }
    
    .trending-carousel .product-card {
        flex: 0 0 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
    }
    
    .trending-carousel .product-image-container {
        height: 170px !important;
    }
    
    .trending-carousel .product-name {
        font-size: 12px !important;
    }
    
    .top-sale-card {
        min-height: 100px !important;
        max-height: 100px !important;
        padding: 12px !important;
    }
    
    .top-sale-image-container {
        width: 80px !important;
        height: 80px !important;
    }
    
    .top-sale-name {
        font-size: 12px !important;
    }
    
    .top-sale-price-current {
        font-size: 15px !important;
    }
}

@media (min-width: 1920px) {
    .products-premium-container {
        max-width: 1800px !important;
        padding: 20px 50px !important;
        gap: 28px !important;
    }
    
    .trending-wrapper,
    .top-sales-wrapper {
        min-height: 450px;
        max-height: 450px;
        height: 450px !important;
        padding: 24px;
        border-radius: 20px;
    }
    
    .section-title-premium,
    .top-sales-title-premium {
        font-size: 26px;
    }
    
    .trending-logo-icon,
    .top-sales-logo-icon {
        width: 48px !important;
        height: 48px !important;
    }
    
    .trending-carousel .product-card {
        flex: 0 0 195px !important;
        min-width: 195px !important;
        max-width: 195px !important;
    }
    
    .trending-carousel .product-image-container {
        height: 185px !important;
    }
    
    .trending-carousel .product-name {
        font-size: 13px !important;
    }
    
    .price-current {
        font-size: 15px;
    }
    
    .top-sale-card {
        min-height: 110px !important;
        max-height: 110px !important;
        padding: 14px !important;
        gap: 14px !important;
    }
    
    .top-sale-image-container {
        width: 85px !important;
        height: 85px !important;
    }
    
    .top-sale-name {
        font-size: 13px !important;
    }
    
    .top-sale-price-current {
        font-size: 16px !important;
    }
    
    .view-all-link-premium {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (min-width: 2560px) {
    .products-premium-container {
        max-width: 2200px !important;
        padding: 25px 80px !important;
        gap: 36px !important;
    }
    
    .trending-wrapper,
    .top-sales-wrapper {
        min-height: 500px;
        max-height: 500px;
        height: 500px !important;
        padding: 28px;
        border-radius: 24px;
    }
    
    .section-title-premium,
    .top-sales-title-premium {
        font-size: 30px;
    }
    
    .trending-logo-icon,
    .top-sales-logo-icon {
        width: 56px !important;
        height: 56px !important;
    }
    
    .trending-carousel .product-card {
        flex: 0 0 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
    }
    
    .trending-carousel .product-image-container {
        height: 210px !important;
    }
    
    .trending-carousel .product-name {
        font-size: 14px !important;
    }
    
    .price-current {
        font-size: 17px;
    }
    
    .top-sale-card {
        min-height: 130px !important;
        max-height: 130px !important;
        padding: 16px !important;
        gap: 16px !important;
    }
    
    .top-sale-image-container {
        width: 100px !important;
        height: 100px !important;
    }
    
    .top-sale-name {
        font-size: 15px !important;
    }
    
    .top-sale-price-current {
        font-size: 18px !important;
    }
    
    .view-all-link-premium {
        padding: 14px 28px;
        font-size: 15px;
    }
}


/* ===================================================================
   NOUVEAU LAYOUT - TRENDING & TOP SALES PLEINE LARGEUR
   =================================================================== */

/* Container pleine largeur pour Trending et Top Sales */
.products-premium-container--fullwidth {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 100% !important;
    padding: 15px 20px !important;
}

.trending-column--fullwidth {
    width: 100% !important;
}

/* Wrapper pleine largeur */
.trending-column--fullwidth .trending-wrapper {
    max-width: 100% !important;
    width: 100% !important;
}

/* ===================================================================
   TOP SALES - BADGES DE RANG EN HAUT À DROITE
   =================================================================== */

/* Container image doit être relative pour le badge */
.top-sales-carousel .product-card .product-image-container,
.trending-carousel.top-sales-carousel .product-card .product-image-container {
    position: relative !important;
}

/* Badge numéro sur les cartes Top Sales - EN HAUT À DROITE */
.top-sale-rank-badge {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    bottom: auto !important;
    width: 22px !important;
    height: 22px !important;
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(184, 70, 31, 0.5) !important;
    z-index: 50 !important;
}

/* Badge doré pour le #1 */
.top-sale-rank-badge.rank-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #8B4513 !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.7) !important;
    animation: goldPulse 2s ease-in-out infinite;
}

/* Carousel Top Sales - même style que Trending */
.top-sales-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 4px 8px;
    scroll-behavior: smooth;
    max-width: 100%;
}

.top-sales-carousel::-webkit-scrollbar {
    height: 6px;
}

.top-sales-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #B8461F, #8B2F0F);
    border-radius: 10px;
}

/* Responsive badges */
@media (max-width: 768px) {
    .top-sale-rank-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: 6px;
        right: 6px;
    }
}

@media (min-width: 1920px) {
    .top-sale-rank-badge {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

@media (min-width: 2560px) {
    .top-sale-rank-badge {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
}
