.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 {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    align-items: center;
}

.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;
}