.popup-product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Fond semi-transparent */
    justify-content: center;
    align-items: center;
    z-index: 2147483648!important;
}

.popup-product-modal.active {
    display: flex;
}

.popup-product-content {
    background: #fff;
    padding: 1rem 2rem 1rem 2rem;
    border-radius: 55px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000000;
    position: relative;
    min-width: 80%;
}

.popup-product-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size:36px;
    line-height: 0.5;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: 700;
}

.popup-product-gallery-viewport {
    overflow-x: auto;        /* scroll horizontal */
}

.popup-product-gallery { 
    display: flex;
    margin-top: 15px;
    align-items: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    gap: 10px;
    margin: auto;
    justify-content: start;
    padding: 0 40px; /* <-- ajoute un espace égal à la moitié de l'écran aux extrémités */
    box-sizing: content-box; /* pour que le padding ne réduise pas le contenu */
}

.popup-product-gallery::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.gallery-strip,
.gallery-main {
    display: flex;
    flex-shrink: 0;
    scroll-snap-align: center;
}

.gallery-strip.gallery-left {
    gap: 10px;
}

.gallery-main { 
    flex: 0 0 auto; /* ne s’écrase pas */
    position: relative;
    z-index: 1;
    width: 80px;
}

/* Images */
.popup-product-gallery .gallery-strip a { 
    flex: 0 0 auto;
    width: 65px;
    height: 65px;
    overflow: hidden;
    border-radius: 9px;
    display: block;
}

.popup-product-gallery .gallery-strip img,
.popup-product-gallery .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-product-gallery .main-image { 
    width: 80px; 
    border-radius: 9px;
}

.popup-product-gallery .gallery-image.secondary { 
    opacity: 0.4; 
    transition: opacity 0.3s;
}

.popup-product-gallery .gallery-image.secondary:hover { 
    opacity: 1; 
}



/*.popup-product-gallery img {
    width: 60px;
    height: auto;
    object-fit: contain;
    border-radius: 9px;
}

.popup-product-gallery .main-image {
    width: 80px;
}

.popup-product-gallery .gallery-image.secondary {
    opacity: 0.4;
}*/

/**/

.variation-option {
  display:inline-block;
  background:#fff;
  cursor:pointer;
  user-select:none;

}

.variation-option.selected {
  background:#fff4e4;
  /*border-color:#fdd79e;*/
  color:#fbae3b;
}

.popup-add-to-cart-button[disabled]{
  opacity:0.4;
  cursor:not-allowed;
}

/**/

/* === 1. le conteneur “inner” === */

.popup-hm-inner{
    position:relative;          /* référentiel pour le bloc qui dépasse */
}

/* === 2. le bloc accordéons (ou ta barre de sélection) === */

.popup-accordion{      /* ou .popup-accordion-wrapper, adapte le sélecteur */
    position:absolute;
    left:50%;                   /* centré horizontalement */
    top: 190%;
    transform:translate(-50%, 0);   /* => dépasse de 50 % de sa hauteur */
    width: auto; 
    background:#fff;
    border-radius:40px;
    box-shadow:0 4px 14px rgb(0 0 0 / .08);
    padding: 6px 32px;
    /* pour être au‑dessus des coins arrondis de la carte principale */
    z-index:2;
}

/* === 3. optionnel : laisser dépasser sans clipper === */

.popup-product-content{         /* ton conteneur de modal */
    overflow:visible;           /* pour que la partie extérieure reste visible */
}

.accordion-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-accordion-title, .variation-option {
    display: flex;
    justify-content: space-between;
}

.variation-option {

    font-size: 14px;

    border: none;

    font-weight: 400;

    padding: 0;

    margin: 0 0 10px 0;

}



.popup-accordion-title h3 {

    color: var(--global-palette1);

    font-size: 16px;

    font-weight: 400;

    font-family: "Glacial Indifference";

    text-transform: none;

}



.popup-accordion-title i, .variation-option i {

    font-size: 18px;

    background-color: var(--global-palette1);

    color: var(--global-palette5);

    border-radius: 100px;

    width: 24px;

    height: 24px;

    text-align: center;

    margin: auto 0!important;

    display: flex;

    align-items: center;

    justify-content: center;

}



.popup-product-wrapper-add-cart {

    display: flex;

}



.popup-product-wrapper-add-cart .popup-product-wrapper-price {

    font-size: 16px!important;

    font-family: 'Bobby Jones Soft'!important;

    color: #000!important;

    font-weight: 400!important;

    margin-right: 40px!important;

}



.modal-buttons-wrapper {

    margin-top: 20px;

}



.accordion-content.open {

  display: flex;

  flex-direction: column;

  gap: 10px;

}



.popup-accordion-wrapper {

  position: relative;

  margin-bottom: 20px;

}