/* =========================================================
   Barathonien – Galerie produit (single product)
   ========================================================= */

   .bar-product-gallery {
    position: relative;
    width: 100%;
    max-width: 480px; /* ajuste si nécessaire pour coller à ta maquette */
    margin: 0 auto 2rem;
}

/* Viewport : cadre qui masque ce qui déborde */
.bar-product-gallery__viewport {
    position: relative;
    overflow: hidden;
}

/* Track : bande qui glisse horizontalement */
.bar-product-gallery__track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* Chaque slide = 100% de la largeur du viewport */
.bar-product-gallery__slide {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Image principale */
.bar-product-gallery__image {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in; /* rappelle la présence de la lightbox */
}

/* Flèches de navigation */
.bar-product-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
}

.bar-product-gallery__arrow img {
    display: block;
    width: 40px;
    height: 40px;
    transition: transform 0.15s ease;
}

/* Gauche / droite */
.bar-product-gallery__arrow--prev {
    left: 0.5rem;
}

.bar-product-gallery__arrow--next {
    right: 0.5rem;
}

/* Hover : léger scale comme demandé */
.bar-product-gallery__arrow:hover img,
.bar-product-gallery__arrow:focus img {
    transform: scale(1.1);
}

/* Lightbox plein écran */
.bar-product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bar-product-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.bar-product-lightbox__content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
}

.bar-product-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    cursor: zoom-out;
}

/* Optionnel : petit ajustement mobile */
@media (max-width: 768px) {
    .bar-product-gallery {
        max-width: 100%;
    }

    .bar-product-gallery__arrow img {
        width: 32px;
        height: 32px;
    }
}


/* =========================================================
   FIX Elementor: retirer le background / focus sur les boutons flèches
   ========================================================= */

   .bar-product-gallery .bar-product-gallery__arrow,
   .bar-product-gallery .bar-product-gallery__arrow:hover,
   .bar-product-gallery .bar-product-gallery__arrow:active,
   .bar-product-gallery .bar-product-gallery__arrow:focus,
   .bar-product-gallery .bar-product-gallery__arrow:focus-visible {
     background: transparent !important;
     background-color: transparent !important;
     border: 0 !important;
     box-shadow: none !important;
     outline: none !important;
   }
   
   /* Bonus: enlever le style natif (Safari/Chrome iOS) */
   .bar-product-gallery .bar-product-gallery__arrow {
     -webkit-appearance: none;
     appearance: none;
     border-radius: 0 !important;
   }
   
   /* Si Elementor applique un padding/line-height bizarre */
   .bar-product-gallery .bar-product-gallery__arrow {
     padding: 0.25rem; /* tu peux garder ta valeur */
     line-height: 0;
   }