.variant-carousel-horizontal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px;
    width: 100%;
    justify-content: center;
}

.variant-track-horizontal {
    display: flex;
    /* flex-wrap: wrap; */
    gap: 8px;
    
    overflow: visible;
}

.variant-item {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    cursor: pointer;
}

.variant-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ACTIF */
.variant-item.active {
    border: 2px solid #000;
}

/* FLÈCHES */
.variant-arrow {
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.thumb {
    opacity: 0.5;
    cursor: pointer;
    border: 1px solid transparent;
}

.thumb.active {
    opacity: 1;
    border: 2px solid black;
    height: 100%;
    
}

.add-cart {
    /* display: flex; */
    gap: 10px;
    align-items: center;
}

/*panier bouton desactiver si rupture de stock */

.stock-info {
    margin-top: 8px;
    font-weight: bold;
    font-size: 15px;
}

.stock-green {
    color: #1e7e34;
}

.stock-orange {
    color: #e67e22;
}

.stock-red {
    color: #c0392b;
}

button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* CONTENEUR GLOBAL DU PRODUIT */
.product-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
    justify-content: center;
}

.left-visual {
    flex: 1 1 420px;
    position: sticky;
    top: 132px;
    display: flex;
    gap: 20px;
}

.product-right2 {
    flex: 1 1 360px;
    position: sticky;
    top: 132px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.media-large img{
    max-width:100%;
    height:auto;
    display:block;
}

.media-container{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}
.media-small{
display: grid;

}

/* RESPONSIVE MOBILE */
@media (max-width: 758px) {
    .product-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .left-visual,
    .product-right2 {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        padding: 0;
    }

    .media-container {
        display: block;
    }

    .media-small {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .variant-carousel-horizontal {
        padding: 10px 0;
    }
}

