/* width */
::-webkit-scrollbar {
  width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #b8b8b8;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #838383;
}

.bundle-product {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #A9AFA2;
  padding: 15px;
}

/* .bundle-product:nth-child(1) {
  margin-top: 30px;
} */

.bundle-product-image {
  width: 100px;
  cursor: pointer;
}

.bundle-product-image img {
    border-radius: 5px;
}

.bundle-product-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}


.bundle-product-content {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.bundle-product-content div {
  display: flex;
  align-items: center;
  gap: 20px
}

.bundle-product-content div span {
  /* text-decoration: underline; */
  font-weight: bold;
}

.bundle-product-variation-container {
  display: flex;

  align-items: center;
  gap: 10px;
  margin-top: 10px;
  justify-content: space-between;
}

.bundle-product-variation-container>div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bundle-product-variation-container label {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-variation {
  flex-direction: column;
  font-size: 10px;
  gap: 0px !important;
}

.variation-group {
  margin-bottom: 10px;
}

.variation-display-price {
  font-weight: bold;
}

.bundle-product-description {
  padding: 20px 10px 10px;
  background: #EDEDED;
  border-radius: 10px;
  position: relative;
}

.bundle-product-description img {
  position: absolute;
  top: 0;
  left: 10px;
  transform: translateY(-75%);
}

.wewop-badge {
  width: 45px;
}

body .ct-header-search,
body a.btnSearch {
  display: none !important;
}


.headCoordonnees {
  display: none;
}


/* CHECKOUT */

.bundle-product-checkout {
  padding: 20px;
}

/* RADIO */

.product-radio {
  display: none;
}

/* CHECKBOX */

/* Hide the default checkbox */
.custom-checkbox input {
  /* position: absolute; */
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.custom-checkbox .checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: #ccc;
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
}

/* When the checkbox is checked, add a background color and display the checkmark */
.custom-checkbox input:checked+.checkmark {
  background-color: #E73E11;
}

/* Create the checkmark/indicator (hidden when not checked) */
.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.custom-checkbox input:checked+.checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.custom-checkbox .checkmark:after {
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.variable-checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 0;
}

.custom-checkbox input:disabled~.checkmark {
  background-color: #f0f0f0;
}

/* Classe pour retirer la checkmark et ajouter une bordure */
.hide-checkmark .checkmark {
  display: none;
}

.bundle-product-accessoires-card.hide-checkmark {
  border: 2px solid transparent;
  padding: 10px;
}

.bundle-product-accessoires-card.no-checkmark {
  border: 2px solid #E73E11;
  /* Exemple de bordure, changez la couleur selon vos besoins */
  /* Ajustez le padding si nécessaire */
  border-radius: 5px;
  /* Optionnel : pour arrondir les coins de la bordure */
}

/* Style for the modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.modal-container {
  position: relative;
  max-width: 700px;
  width: 100%;
}

.modal-content {
  margin: auto;
  display: block;
  width: 100%;
}


.close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: white;
  background: black;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.close div {
  transform: translate(1px, -6px) !important;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}



/* CONFIG MANUELLE */


.bundle-product-accessoires {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.bundle-product-accessoires-title {
  display: block;
  font-weight: bold;
  text-decoration: underline;
  margin: 20px 0 20px 100px;
}

.bundle-product-accessoires-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bundle-product-accessoires-card img {
  min-height: 100px;
  height: 100px;
  object-fit: contain;
  margin: auto;
}

.bundle-product-accessoires-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 10px;
}

.bundle-product-accessoires-card-price {
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
  align-items: center;
  font-weight: bold;
}

.bundle-product-accessoires-card-content span {
  font-size: 13px;
  text-align: center;
}


.bundle-add-to-cart {
  background: #E73E11;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
}

.bundle-add-to-cart-active {
  cursor: not-allowed !important;
  background: #ef8e74 !important;
}

.bundle-delivery {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bundle-delivery:hover {
  color: white;
}

.configurator-total {
  color: #BFBFBF;
  font-size: 24px;
}

.configurator-total span {
  color: black;
  font-weight: bold;
}

.configurator-wewop-discount {
  display: none;
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 16px;
  color: #BFBFBF;
}

.configurator-wewop-discount span {
  font-weight: bold;
  color: #E73E11;
}

.wewop-discount {
  display: none;
}

.poele-content,
.kitfiltrage-content,
.options-content,
.accessoires-content {
  display: none;
}



/* Optionnel mais recommandé pour un bel effet */
.read-more {
    position: relative;
}
.read-more__fade {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2.5em;               /* hauteur du dégradé */
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}
.read-more__btn {
    display: inline-block;
    margin-top: .25rem;
    padding: .3rem .6rem;
    border-radius: .35rem;
    border: 1px solid #ddd;
    background: #fff;
    font: inherit;
    cursor: pointer;
}

/******************/
/** PRODUCT PAGE **/
/******************/

#main .hero-section {
  /* display: none; */
}

.variable-product-wrapper {

  display: flex;
  flex-direction: column;
}

.variable-product-page {
  flex: 1;
}

.variable-product-content {
  display: flex;
  gap: 50px;
  height: 100%;
    margin-bottom: 5rem;
}

.variable-product-accordeon-heading {
  padding: 15px 10px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.variable-product-accordeon-title {
  color: var(--theme-palette-color-6);
  margin: 0;
  font-size: 20px;
}

.variable-product-accordeon-content {
  display: none;
  padding: 15px 10px;
  /* margin-bottom: 30px; */
}



.variable-product-accordeon-content.active {
  display: block;
}

.variable-product-accordeon-content p {
  margin-bottom: 0;
}

.tabs-title-description {
    font-size: 2rem;
    margin-block-end: 0;
    color: var(--theme-heading-color, var(--theme-heading-1-color, var(--theme-headings-color)));
}

.product-attributes {
    border: 1px solid var(--theme-heading-color, var(--theme-heading-1-color, var(--theme-headings-color)));
    border-radius: 5px;
}

.product-attribute {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    padding: .5rem;
}

.product-attribute:nth-child(even) {
    background-color: #546837a8;
    color: white;
}

.variable-product-identity {
    display: flex;
    gap: 50px;
    height: 100%;
    align-items: center;
}

.variable-product-image {
  margin-bottom: 10px;
    height: 100%;
    position: sticky;
    top: 10rem;
}

.variable-product-image img {
  cursor: pointer;
}

.variable-product-infos {
  overflow-y: visible;
  max-width: 50%;
    min-width: 45%;
}

.variable-product-infos-wrapper {
    display: grid;
    margin-bottom: 2rem;
    grid-template-columns: 65% auto;
    gap: 2rem;
}

.variable-product-description {
    flex: 1;
}

.variable-product-row {
  min-height: 125px;
  height: 125px;
}

.variable-product-row>.ct-container {
  display: flex;
  justify-content: space-between;
  padding: 40px 0;
  align-items: center;
}

.variable-product-actions {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.variable-product-name {
  font-weight: bold;
  font-size: 24px;
  color: #394725;
  margin-bottom: 1rem;
    width: 50%;
  /* Vous pouvez ajuster cette valeur selon vos besoins */
  white-space: nowrap;
  text-overflow: ellipsis;
  /* Pour visualiser la limite de l'élément */
}

.variable-product-price {
  position: relative;
}

.variable-product-gallery {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); */
  margin-top: 10px;
}

.variable-product-gallery img {
  height: 100px;
  border: 2px solid transparent;
  cursor: pointer;
}

.variable-gallery-active {
  border: 2px solid var(--theme-palette-color-4) !important;
}

/* RESPONSIV */

@media screen and (min-width:1750px) {

  .variable-product-image,
  .variable-product-infos {
    flex: 1 !important;
  }

  .variable-product-image>img {
    object-fit: initial !important;
    height: initial !important;
  }

}


@media screen and (min-width:1080px) {
  .variable-product-image {
    flex: initial;
    margin-left: auto;
  }

  .variable-product-image>img {
    object-fit: cover;
    max-height: calc(100% - 110px);
  }
}

@media screen and (max-width:1080px) {

    .variable-product-image {
        margin-bottom: 0;
        position: relative;
        top: 0;
    }

    .variable-product-infos-wrapper {
        display: block;
    }

  .variable-product-wrapper {
    height: initial;
  }

  .configurator-wewop-discount {
    position: initial;
  }

  .variable-product-content {
    flex-direction: column;
    max-height: initial;
  }

  .variable-product-infos {
    max-width: initial;
  }

  .variable-product-row>.ct-container {
    flex-direction: column;
    gap: 10px;
  }

  .variable-product-actions {
    flex-direction: column;
    gap: 10px;
  }

  .variable-product-row {
    height: initial;
  }

  .variable-product-gallery {
    display: flex;
    overflow-x: auto;
  }
}

@media screen and (max-width:680px) {
  .bundle-product-variation-container {
    /* flex-direction: column;
    align-items: flex-start; */
  }

  .variable-product-gallery {
    flex-wrap: nowrap;
  }

  .variable-product-gallery img {
    height: 120px;
  }

  .bundle-product {
    flex-direction: column;
  }

  .bundle-product-content {
    flex-direction: column;
  }

  .variable-product-name {
    width: initial;
  }

  [data-category="selections-bains"] .woper-selection-item:nth-child(4) img {
    object-position: 50% 100%;
  }
}

/* === PATCH UX MODERNE === */

/* Grille + cartes */
.bundle-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.bundle-product{border:1px solid #E3E7E1;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:12px;background:#fff;transition:box-shadow .2s,border-color .2s}
.bundle-product:hover{box-shadow:0 8px 24px rgba(0,0,0,.06)}
.bundle-product:has(.product-checkbox:checked),.bundle-product:has(.variation-option:checked){border-color:#394725;box-shadow:0 0 0 3px #39472522}

.bundle-product-image{width:100%;max-width:120px}
.bundle-product-content{display:flex;justify-content:space-between;align-items:center;gap:12px}
.bundle-product-content>div{display:flex;align-items:center;gap:10px}
.bundle-product-price{font-weight:700}

.bundle-product-variation-container{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bundle-product-variation-container>div{display:flex;flex-wrap:wrap;gap:10px}

/* Variations en “pills/cards” */
.bundle-product-variation-container label.custom-checkbox,
.bundle-product-variation-container label.configurator-subtitle{border:1px solid #E3E7E1;border-radius:10px;padding:8px 10px;display:flex;align-items:center;gap:10px;background:#fff;cursor:pointer}
.bundle-product-variation-container input:checked + .checkmark,
.bundle-product-variation-container input:checked ~ span{font-weight:700}
.color-variation{flex-direction:column;gap:6px !important;font-size:12px}

/* Petits deltas de prix */
.x-delta{font-weight:700;margin-left:8px;opacity:.9}

/* Stepper (créé en JS) */
.config-step{margin:18px 0 26px}
.config-step-title{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:1.1rem}
.badge{display:inline-block;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700}
.badge--required{background:#394725;color:#fff}
.badge--recommended{background:#fbe6da;color:#b34a1c}

.config-stepper{margin:8px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.stepper-nav{list-style:none;display:flex;gap:8px;padding:0;margin:0;flex-wrap:wrap}
.stepper-actions .btn{background:#394725;color:#fff;border:none;border-radius:10px;padding:8px 14px;cursor:pointer}
.stepper-actions .btn:disabled{opacity:.5;cursor:not-allowed}

/* Stepper */
.config-stepper { position: sticky; top: 1rem; z-index: 1; }
.config-stepper .stepper-nav { display:flex; gap:.5rem; list-style:none; padding:0; margin:0 0 .75rem; flex-wrap:wrap; }
.config-stepper .stepper-nav button { border:1px solid #e5e7eb; background:#fff; border-radius:999px; padding:.35rem .75rem; font-weight:600;cursor:pointer}
.config-stepper .stepper-nav button[aria-current="step"] { border-color:#ef6a3a; box-shadow:0 0 0 2px rgba(239,106,58,.15); }
.config-stepper .stepper-actions { display:flex; gap:.5rem; }

/* Cartes options actives */
label.custom-checkbox.is-active,
label.configurator-subtitle.is-active { outline:2px solid #ef6a3a; outline-offset:2px; border-radius:.5rem; }

/* Petit delta prix */
.x-delta { margin-left:.4rem; font-size:.85em; color:#6b7280; }


/* Barre prix sticky existante, modernisée */
.variable-product-row{position:sticky;bottom:0;background:#fff;border-top:1px solid #e5e7eb;}
@media (max-width:1080px){
    .variable-product-row{position:fixed;left:0;right:0;bottom:0}
    body{padding-bottom:140px}
}

.config-step > .bundle-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
#bundle-product { display: none !important; }

#config-stepper .stepper-bar{
    display:flex;
    align-items:start;
    gap:.75rem;
    justify-content:space-between;
    margin-bottom:1rem;
}
#config-stepper .stepper-nav{
    display:flex;
    flex-wrap:wrap;
    gap:.5rem;
}
#config-stepper .stepper-reset{
    border: 1px solid #e5e7eb;
    background: rgb(236, 86, 86);
    color: white;
    border-radius: 999px;
    padding: .35rem .75rem;
    font-weight: 600;
    cursor: pointer;
}
#config-stepper .stepper-reset:hover{
    background: rgba(236, 86, 86, 0.75);
}

@media screen and (max-width:680px) {

    .variable-product-content {
        margin-bottom: 0;
    }

    .variable-product-description {
        margin-bottom: 2rem;
    }

    .tabs-title-description {
        font-size: 1.5rem;
        margin-bottom: .5rem;
    }

    .variable-product-row>.ct-container {
        padding: 1rem 0;
    }

    .tabs-title-description {
        font-size: 1.5rem;
    }

    .config-stepper {
        position: sticky;
        top: 4.2rem;
        z-index: 5;
        background-color: white;
        width: 100vw;                          /* occupe toute la largeur viewport */
        margin-left:  calc(50% - 50vw);        /* décale vers la gauche */
        margin-right: calc(50% - 50vw);        /* décale vers la droite */
        padding-top: 1rem;
        padding-inline: 12px;                  /* petite gouttière (optionnel) */
        box-sizing: border-box;
    }

    .config-step > .bundle-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
    .bundle-product-variation-container label.custom-checkbox, .bundle-product-variation-container label.configurator-subtitle{border:1px solid #E3E7E1;border-radius:10px;padding:8px 0;display:flex;align-items:center;gap:10px;background:#fff;cursor:pointer}

}
