/* Scope pour éviter les conflits */
#sb-sidecart *,
#sb-overlay,
#sb-toast,
#sb-cart-icon-widget * {
    box-sizing: border-box;
    font-family: 'HurmeGeometricSans3', 'Hurme Geometric Sans 3', sans-serif !important;
}

/* Overlay */
#sb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 9998;
}

#sb-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidecart panel - LARGEUR 532px */
#sb-sidecart {
    position: fixed;
    top: 0;
    right: -532px;
    width: 532px;
    height: 100%;
    background: white;
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    font-family: 'HurmeGeometricSans3', sans-serif;
    overflow: visible;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#sb-sidecart.active {
    right: 0;
}

@media (max-width: 768px) {
    #sb-sidecart {
        width: 100%;
        right: -100%;
        overflow: hidden;
    }
}

/* Header */
.sb-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-bottom: 1px solid #e5e5e5;
}

.sb-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px 20px;
}

.sb-title {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sb-cart-count {
    background: #000;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* Bouton Fermer (Croix) */
.sb-close-btn {
    background: white;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    position: absolute;
    left: -54px;
    top: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10001;
}

#sb-sidecart.active .sb-close-btn {
    opacity: 1;
    transform: translateX(0);
}

.sb-close-btn svg {
    transition: transform 0.3s ease;
}

.sb-close-btn:hover {
    background: #000 !important;
    color: #fff !important;
}

.sb-close-btn:hover svg {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .sb-close-btn {
        left: auto !important;
        right: 12px !important;
        top: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        background: #f9f9f9;
        width: 48px;
        height: 48px;
        transform: none !important;
        opacity: 1 !important;
    }

    .sb-close-btn svg {
        width: 18px;
        height: 18px;
    }

    .sb-title-bar {
        padding-right: 70px;
    }
}

/* Content */
.sb-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 32px 32px;
    position: relative;
}

/* Panneau Final */
.sb-final-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 30;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sb-final-panel.active {
    transform: translateX(0);
}

/* Carousel header */
.sb-header-carousel {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    height: 50px;
    background: #f9f9f9;
    display: block;
    flex-shrink: 0;
}

.sb-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.sb-carousel-item {
    min-width: 100%;
    height: 50px; /* Augmenté de 50px à 60px pour accueillir 2 lignes */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    padding: 5px 40px; /* Ajout d'un peu de padding vertical */
    font-weight: 300;
    text-align: center; /* Important pour centrer les lignes entre elles */
    line-height: 1.2;    /* Ajuste l'espace entre les deux lignes */
    white-space: normal; /* Autorise le retour à la ligne automatique */
}

.sb-carousel-item span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.sb-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #999;
    z-index: 1;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-carousel-nav:hover {
    color: #000 !important;
    background: none !important;
}

.sb-carousel-prev {
    left: 8px;
}

.sb-carousel-next {
    right: 8px;
}

/* Shipping Progress */
.sb-shipping-progress {
    margin: 20px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.sb-shipping-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #000;
    margin-bottom: 12px;
    font-weight: 400;
}

.sb-progress-bar {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.sb-progress-fill {
    height: 100%;
    background: #000;
    transition: width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ============================================ */
/* ITEM STRUCTURE - LAYOUT FIXE ET ALIGNÉ */
/* Structure HTML existante :
   .sb-item
     .sb-item-top
       .sb-item-image-link
       .sb-item-info
         .sb-item-name-link > .sb-item-name
         .sb-item-footer
           .sb-item-actions
             .sb-quantity-control
             .sb-remove-btn
           .sb-item-price
*/
/* ============================================ */

/* VALEURS À AJUSTER FACILEMENT :
   - Hauteur nom : 40px (voir .sb-item-name-link et .sb-item-name)
   - Hauteur contrôles : 35px (voir .sb-item-footer et .sb-quantity-control)
   - Gap vertical entre nom et contrôles : 8px (voir .sb-item-info gap)
   - Largeur image : 80px (voir .sb-item-image-link)
   - Hauteur image : 83px = 40 + 8 + 35 (calculer manuellement si changement)
   - Gap horizontal image/contenu : 12px (voir .sb-item-top gap)
   - Padding entre produits : 20px (voir .sb-item padding)
*/

/* Container principal du produit */
.sb-item {
    display: flex;
    flex-direction: row;
    gap: 12px; /* Gap horizontal entre image et contenu - AJUSTABLE */
    padding: 20px 0; /* Padding entre produits - AJUSTABLE */
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

/* .sb-item-top = container de l'image + info */
.sb-item-top {
    display: flex;
    gap: 12px; /* Gap horizontal - AJUSTABLE */
    width: 100%;
    align-items: flex-start;
}

/* Container photo avec background bleu - HAUTEUR FIXE */
.sb-item-image-link {
    width: 80px; /* Largeur image - AJUSTABLE */
    height: 83px; /* Hauteur = 40px (nom) + 8px (gap) + 35px (contrôles) - RECALCULER SI CHANGEMENT */
    background: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
    text-decoration: none !important;
    cursor: pointer;
}

.sb-item-image-link:hover,
.sb-item-image-link:focus,
.sb-item-image-link:active {
    text-decoration: none !important;
    background: #ffffff;
    opacity: 1 !important;
    transform: none !important;
}

.sb-item-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* PARTIE DROITE : Nom + Footer (2 lignes fixes) */
.sb-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px; /* Gap vertical entre nom et contrôles - AJUSTABLE */
    min-width: 0;
    height: 79px; /* Hauteur totale = 40 + 8 + 35 - RECALCULER SI CHANGEMENT */
}

/* LIGNE 1 : Zone nom - HAUTEUR FIXE */
.sb-item-name-link {
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    display: block;
    height: 40px; /* Hauteur zone nom - AJUSTABLE */
}

.sb-item-name-link:hover,
.sb-item-name-link:focus,
.sb-item-name-link:active {
    text-decoration: none !important;
    color: inherit !important;
}

.sb-item-name {
    font-size: 13px;
    font-weight: 400;
    color: #000;
    line-height: 1.4;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 40px; /* Même valeur que .sb-item-name-link - AJUSTABLE */
}

/* LIGNE 2 : Zone contrôles (footer) - HAUTEUR FIXE */
.sb-item-footer {
    height: 35px; /* Hauteur zone contrôles - AJUSTABLE */
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.sb-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Prix - aligné à droite */
.sb-item-price {
    margin-left: auto;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Quantité */
.sb-quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e0e0e0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    height: 35px; /* Même hauteur que .sb-item-footer - AJUSTABLE */
    background: #fff;
    flex-shrink: 0;
}

.sb-qty-btn {
    background: #fff !important;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #000 !important;
    padding: 0;
    width: 35px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sb-qty-btn:hover:not(:disabled) {
    background: #000 !important;
    color: #fff !important;
}

.sb-qty-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.sb-qty-input {
    width: 30px;
    height: 100%;
    text-align: center;
    border: none;
    font-size: 13px;
    font-weight: 400;
    padding: 0;
    background: #fff;
    color: #000;
}

.sb-remove-btn {
    font-size: 10px;
    text-transform: uppercase;
    color: #555 !important;
    cursor: pointer;
    letter-spacing: 1px;
    border: none !important;
    background: none !important;
    padding: 0;
    transition: color 0.2s ease;
    font-family: 'HurmeGeometricSans3', sans-serif !important;
    text-decoration: none;
    flex-shrink: 0;
}

.sb-remove-btn:hover {
    color: #000 !important;
}

/* Bundle badges et toggles */
.sb-bundle-badge {
    display: inline-block;
    background: #000;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 6px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.sb-bundle-toggle {
    font-size: 11px;
    color: #666;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    transition: color 0.2s;
}

.sb-bundle-toggle:hover {
    color: #000;
}

.sb-bundle-chevron {
    transition: transform 0.3s;
    font-size: 10px;
}

.sb-bundle-chevron.open {
    transform: rotate(180deg);
}

.sb-bundle-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 8px;
}

.sb-bundle-items.open {
    max-height: 500px;
}

.sb-bundle-item {
    padding: 6px 0;
    padding-left: 12px;
    border-left: 2px solid #f0f0f0;
}

.sb-bundle-item-name {
    font-size: 12px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sb-item {
        padding: 16px 0;
    }
    
    .sb-item-image-link {
        width: 60px;
        height: 79px; /* Recalculé : 36 + 8 + 35 */
    }
    
    .sb-item-info {
        height: 79px;
    }
    
    .sb-item-name-link {
        height: 36px;
    }
    
    .sb-item-name {
        font-size: 12px;
        max-height: 36px;
    }
    
    .sb-item-price {
        font-size: 13px;
    }
}

/* Totals */
.sb-totals {
    margin: 10px 0;
    padding-top: 15px;
}

.sb-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 300;
    color: #666;
}

.sb-total-row.sb-grand-total {
    font-weight: 500;
    color: #000;
    font-size: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Footer */
.sb-footer {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid #e5e5e5;
    z-index: 20;
}

.sb-footer-shipping {
    padding: 10px 32px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f9f9f9;
}

/* ========================================================== */
/* CROSS-SELL - FIX FINAL : MASQUES LATERAUX POUR LES VOISINS */
/* ========================================================== */
.sb-footer-crosssell {
    padding: 16px 0 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

/* Ajout de masques de la couleur du fond sur les côtés */
.sb-footer-crosssell::before,
.sb-footer-crosssell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    background: #fafafa;
    z-index: 5;
}
.sb-footer-crosssell::before { left: 0; }
.sb-footer-crosssell::after { right: 0; }

.sb-crosssell-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: non;
    letter-spacing: 1px;
    margin-bottom: 12px;
    margin-left: 32px;
    color: #999;
}

.sb-crosssell-slider {
    position: relative;
    overflow: hidden; 
    width: 100%;
    padding: 0 32px;
}

.sb-crosssell-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.sb-crosssell-slide {
    min-width: 100%; 
    max-width: 100%; 
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    background: white;
    border: 1px solid #e5e5e5;
    padding: 10px;
    border-radius: 4px;
    align-items: center; 
    box-sizing: border-box; 
    min-height: 110px;
    opacity: 1;
    visibility: visible;
}

.sb-crosssell-image {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.sb-crosssell-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; 
}

.sb-crosssell-name {
    font-size: 13px;
    line-height: 1.3em;
    height: 2.6em; 
    color: #000;
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word; 
}

.sb-crosssell-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.sb-crosssell-variants {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.sb-crosssell-variant {
    font-size: 10px;
    border: 1px solid #ddd;
    padding: 6px 8px;
    cursor: pointer;
    background: #fff;
    color: #666;
    border-radius: 2px;
    transition: all 0.2s;
    font-weight: 500; /* Texte plus épais */
}

.sb-crosssell-variant:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.sb-crosssell-variant.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.sb-crosssell-add-btn {
    background: #000;
    color: #fff;
    border: 1px solid #000; /* Bordure initiale */
    padding: 8px 12px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 2px;
    white-space: nowrap;
    margin-left: auto;
    transition: all 0.2s ease;
}

.sb-crosssell-add-btn:hover {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}

.sb-crosssell-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none !important; 
    border: none; 
    width: 32px; 
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #999; 
    transition: color 0.2s;
}

.sb-crosssell-nav:hover {
    color: #000 !important;
    background: none !important;
}

.sb-crosssell-nav.prev { left: 0 !important; }
.sb-crosssell-nav.next { right: 0 !important; }

.sb-crosssell-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.sb-crosssell-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
}

.sb-crosssell-dot.active {
    background: #000;
    width: 16px;
    border-radius: 3px;
}

/* Footer CTA */
.sb-footer-cta {
    padding: 24px 32px;
}

.sb-finalize-btn,
.sb-checkout-btn {
    width: 100%;
    padding: 18px;
    background: #000;
    color: white;
    border: 1px solid #000; /* Ajout bordure initiale */
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.sb-finalize-btn:hover,
.sb-checkout-btn:hover {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}

/* Panel Final Elements - BOUTON RETOUR MODIFIÉ */
.sb-final-back {
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-bottom: 20px;
    color: #999; /* Gris comme les flèches carrousel */
    align-self: flex-start; /* Aligné à gauche */
    transition: color 0.2s ease;
}

.sb-final-back:hover {
    color: #000 !important; /* Noir au survol */
    background: none !important; /* Pas de fond au survol */
}

.sb-final-back svg {
    display: block;
    width: 20px;
    height: 20px;
}

.sb-final-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Toast */
.sb-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #000;
    color: white;
    padding: 12px 30px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10000;
    font-size: 13px;
    font-family: 'HurmeGeometricSans3', 'Hurme Geometric Sans 3', sans-serif !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sb-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Empty & Loading */
.sb-empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 20px; /* Ajustez la taille selon vos besoins */
    font-weight: 500; 
    
    /* Centrage vertical */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px; /* Ajustez selon la hauteur souhaitée */
}

.sb-loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sb-item { gap: 10px; }
    .sb-item-image { width: 60px; height: 60px; }
    .sb-item-name { font-size: 12px; }
    .sb-item-price { font-size: 13px; }
}

/* BOUTON FINALISER INTÃ‰GRÃ‰ DANS LE FOOTER GRIS */
.sb-footer-cta-inline {
    padding: 16px 32px 0;
    margin-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.sb-footer-cta-inline .sb-finalize-btn {
    width: 100%;
    padding: 18px;
    background: #000;
    color: white;
    border: 1px solid #000;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.sb-footer-cta-inline .sb-finalize-btn:hover {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}

/* FOOTER POUR PANIER VIDE */
.sb-footer-empty {
    position: sticky;
    bottom: 0;
    background: #fafafa;
    border-top: 1px solid #eee;
    padding: 16px 32px 20px;
    z-index: 20;
}

.sb-footer-empty .sb-crosssell-title {
    margin-left: 0;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 1px;
    color: #999;
}

/* CARROUSEL PANIER VIDE - LARGEURS FIXES */
.sb-footer-empty .sb-crosssell-slider {
    position: relative;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.sb-footer-empty .sb-crosssell-track {
    display: flex;
    gap: 12px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.sb-footer-empty .sb-crosssell-track.dragging {
    cursor: grabbing;
    transition: none;
}

/* Largeur fixe : (468px - 24px gap) / 3 = 148px par carte */
.sb-footer-empty .sb-crosssell-card {
    width: 148px;
    min-width: 148px;
    max-width: 148px;
    flex-shrink: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 255px;
}

.sb-footer-empty .sb-crosssell-card-image-link {
    display: block;
    width: 148px;
    height: 148px;
    flex-shrink: 0;
    overflow: hidden;
    background: white;
    padding: 8px;
}

.sb-footer-empty .sb-crosssell-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.sb-footer-empty .sb-crosssell-card-image-link:hover .sb-crosssell-card-image {
    transform: scale(1.05);
}

.sb-footer-empty .sb-crosssell-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sb-footer-empty .sb-crosssell-card-name {
    font-size: 12px;
    line-height: 1.2;
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 5px;
    font-weight: 500;
    max-height: 48px;
}

.sb-footer-empty .sb-crosssell-card-name:hover {
    color: #666;
}

.sb-footer-empty .sb-crosssell-card-btn {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 6px 4px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    border-radius: 2px;
    white-space: normal;
    transition: all 0.2s ease;
    width: 100%;
    line-height: 1.2;
    text-align: center;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-footer-empty .sb-crosssell-card-btn:hover {
    background: #fff !important;
    color: #000 !important;
}

.sb-footer-empty .sb-crosssell-card-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sb-footer-empty .sb-crosssell-variant-select {
    width: 100%;
    padding: 5px 6px;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #ddd;
    border-radius: 2px;
    margin-bottom: 0px;
}

/* Flèches INTERNES au carrousel */
.sb-footer-empty .sb-crosssell-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white !important;
    border: 1px solid #e5e5e5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #000;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sb-footer-empty .sb-crosssell-nav:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000;
}

.sb-footer-empty .sb-crosssell-nav.prev { 
    left: 8px;
}

.sb-footer-empty .sb-crosssell-nav.next { 
    right: 8px;
}

.sb-footer-empty .sb-crosssell-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.sb-footer-empty .sb-crosssell-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s;
}

.sb-footer-empty .sb-crosssell-dot.active {
    background: #000;
    width: 16px;
    border-radius: 3px;
}

/* ========================================= */
/* LOADING SPINNER - RÉGLAGES RAPIDES       */
/* ========================================= */

.sb-loading-overlay {
    /* ===== VARIABLES AJUSTABLES ===== */
    --spinner-size: 35px;                /* Diamètre du cercle */
    --spinner-thickness: 8px;            /* Épaisseur du trait */
    --spinner-color: #000;               /* Couleur du cercle qui se remplit */
    --spinner-bg-color: #f0f0f0;         /* Couleur du fond (cercle vide) */
    --spinner-duration: 0.8s;            /* Durée totale de l'animation */
    --spinner-easing: cubic-bezier(0.4, 0, 0.2, 1); /* Courbe d'animation (ease-out) */
    --overlay-bg: rgba(255, 255, 255, 0.85); /* Fond de l'overlay */
    --overlay-blur: 2px;                 /* Floutage de l'arrière-plan */
    /* ================================ */
    
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    backdrop-filter: blur(var(--overlay-blur));
    -webkit-backdrop-filter: blur(var(--overlay-blur));
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sb-loading-overlay.active {
    display: flex;
    opacity: 1;
}

/* ⚠️ CODE TECHNIQUE - NE PAS MODIFIER (sauf si vous savez ce que vous faites) */

/* Container SVG du spinner */
.sb-spinner {
    width: var(--spinner-size);
    height: var(--spinner-size);
    transform: rotate(-90deg); /* Démarre en haut au lieu de droite */
}

/* Cercle de fond (gris clair) */
.sb-spinner-bg {
    fill: none;
    stroke: var(--spinner-bg-color);
    stroke-width: var(--spinner-thickness);
}

/* Cercle qui se remplit (noir) */
.sb-spinner-progress {
    fill: none;
    stroke: var(--spinner-color);
    stroke-width: var(--spinner-thickness);
    stroke-linecap: round; /* Bouts arrondis style iOS */
    stroke-dasharray: 283; /* Circonférence d'un cercle de rayon 45 (2πr) */
    stroke-dashoffset: 283; /* Démarre vide */
    animation: sb-fill-circle var(--spinner-duration) var(--spinner-easing) forwards;
}

/* Animation de remplissage progressif */
@keyframes sb-fill-circle {
    0% {
        stroke-dashoffset: 283; /* Cercle vide */
    }
    100% {
        stroke-dashoffset: 0; /* Cercle plein */
    }
}

/* Responsive : spinner légèrement plus petit sur mobile */
@media (max-width: 768px) {
    .sb-loading-overlay {
        --spinner-size: 36px;
        --spinner-thickness: 2.5px;
    }
}