/* Conteneur de scroll */
    .variant-scroll-container {
        max-height: 280px; /* Ajuste cette valeur selon la hauteur souhaitée */
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 5px; /* Espace pour ne pas coller à la barre */
    }

    /* Style de la scrollbar (Chrome, Safari, Edge) */
    .variant-scroll-container::-webkit-scrollbar {
        width: 6px; /* Très fine */
    }

    .variant-scroll-container::-webkit-scrollbar-track {
        background: var(--bg-fallback);
        border-radius: 10px;
    }

    .variant-scroll-container::-webkit-scrollbar-thumb {
        background: var(--border-color); /* Couleur de la barre */
        border-radius: 10px;
    }

    .variant-scroll-container::-webkit-scrollbar-thumb:hover {
        background: var(--action-color); /* Devient bleue au survol */
    }

    /* Pour Firefox */
    .variant-scroll-container {
        scrollbar-width: thin;
        scrollbar-color: var(--border-color) var(--bg-fallback);
    }

    /* --- Rappel du style des cartes (pour cohérence) --- */
    .variant-horizontal {
        display: flex;
        align-items: center;
        background: var(--text-light);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 12px 18px;
        transition: transform 0.2s ease, border-color 0.2s ease;
        margin-bottom: 4px; /* Petit espace entre les cartes */
    }

    .variant-horizontal.active {
        border: 2px solid var(--action-color);
        background-color: var(--bg-fallback);
        transform: none !important;
        cursor: default;
    }

    a.variant-horizontal:hover {
        border-color: var(--action-color);
        background-color: var(--bg-fallback);
        transform: translateX(5px);
    }
    
    .variant-horizontal {
        display: flex;
        align-items: center;
        background: var(--text-light);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 12px 18px;
        transition: transform 0.2s ease, border-color 0.2s ease;
        cursor: pointer;
    }

    /* Effet au survol */
    a.variant-horizontal:hover {
        border-color: var(--action-color);
        background-color: var(--bg-fallback);
        transform: translateX(5px);
    }

    /* Style si c'est l'option active */
    .variant-horizontal.active {
        border: 2px solid var(--action-color); /* Bordure verte épaisse */
        background-color: var(--bg-fallback); /* Fond neutre pour faire ressortir le contenu */
        transform: none !important; /* Désactive tout mouvement */
        box-shadow: none !important;
        cursor: default;
    }

    /* Miniature Image */
    .variant-img {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        border-radius: 6px;
        overflow: hidden;
        background: var(--bg-fallback);
    }

    .variant-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Détails (Centre) */
    .variant-details {
        flex-grow: 1;
        padding-left: 15px;
    }

    /* Prix (Droite) */
    .variant-price-tag {
        font-weight: 800;
        font-size: 1rem;
        white-space: nowrap;
    }

    .variant-horizontal.active .variant-price-tag {
        color: var(--action-color);
    }
    
    /* Galerie */
    .miniature-img { transition: all 0.2s ease; border: 2px solid transparent !important; cursor: pointer; }
    .miniature-img:hover, .active-mini { border-color: var(--action-color) !important; transform: translateY(-2px); }
    
    /* Cartes des variantes */
    .variant-card {
        background-color: var(--text-light);
        border: 1px solid var(--border-color) !important;
        cursor: pointer;
        transition: all 0.3s ease;
        display: block;
        text-decoration: none !important;
    }

    /* Cercle radio personnalisé */
    .custom-radio-circle {
        width: 20px;
        height: 20px;
        border: 2px solid var(--border-color);
        border-radius: 50%;
        display: inline-block;
        transition: all 0.2s ease;
    }

    /* État actif (Produit actuel) */
    .active-card {
        border-color: var(--action-color) !important;
        background-color: var(--bg-fallback);
        box-shadow: 0 4px 15px rgba(13, 110, 253, 0.1) !important;
        cursor: default;
    }

    .active-card .custom-radio-circle {
        border-color: var(--action-color);
        border-width: 6px;
    }

    .active-card h6 { color: var(--action-color) !important; }

    .nav-tabs .nav-link.active { color: var(--action-color); border-bottom: 3px solid var(--action-color); background: none; }

    /* Couleur Dorée pour l'icône panier */
    .cart-icon-gold {
        color: var(--gold-color); /* Doré */
    }

    /* Badge Stock style Photo 1 */
    .badge-stock-custom {
        background-color: var(--success-color); /* Vert vif */
        color: var(--text-light);
        padding: 6px 16px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
    }

    /* Typographie du prix */
    #price-display, h2 {
        font-family: 'Arial Black', sans-serif; /* Pour un aspect plus massif */
    }

    /* Style des séparateurs (pipes) */
    .border-start {
        border-color: var(--border-color) !important;
    }

    /* Supprime le cadre gris autour des icônes d'étoiles */
    .text-warning i, .rating-stars i, .star-item {
        border: none !important;
        text-decoration: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* Si ce sont des étoiles vides (FontAwesome) */
    .far.fa-star {
        color: var(--border-color); /* Un gris clair pour l'étoile elle-même, pas le cadre */
    }

/* === STYLES POUR LES ONGLETS NOTEBOOK === */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(to bottom, var(--bg-fallback), var(--text-light));
    padding: 0 1rem;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    margin-right: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs .nav-link:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--text-light) 0%, var(--bg-fallback) 100%);
    color: var(--action-color);
    border: 2px solid var(--border-color);
    border-bottom: 3px solid var(--text-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active i {
    color: var(--action-color);
}

.nav-tabs .nav-link i {
    margin-right: 8px;
    transition: color 0.3s ease;
}

/* Contenu des onglets */
.tab-content {
    background: var(--text-light);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tab-pane {
    padding: 2rem;
    min-height: 200px;
}

/* Animation douce pour les onglets */
.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}