

/* -------- Responsive MODAL - Guide des tailles -------- */

/* ----- MOBILE ----- */
@media (max-width: 600px) {
  /* MODAL large, bien paddée, hauteur max, scroll vertical si besoin */
  .product-popup-modal__content,
  .modal__content,
  .product-popup-modal[role="dialog"] {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    padding: 0.2em 0.1em 3em 0.1em !important; /* padding bas pour laisser respirer */
    top: 0 !important;
    transform: none !important;
    max-height: 96vh !important;
    overflow-y: auto !important;
  }

  /* TABLEAU SCROLLABLE horizontal */
  .bdctable {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0.3rem 0 !important;
    scrollbar-width: thin;
    scrollbar-color: #bbb #eee;
  }
  .bdctable::-webkit-scrollbar { height: 6px; background: #eee; }
  .bdctable::-webkit-scrollbar-thumb { background: #bbb; border-radius: 5px; }

  .bdctable table {
    min-width: 600px;
    width: 100%;
    font-size: 0.89rem;
    background: white;
  }
  .bdctable tbody td, .bdctable tbody th {
    padding: 0.45rem 0.2rem !important;
    font-size: 0.87em !important;
    word-break: break-word;
  }
  .bdctable tbody td:first-child {
    white-space: nowrap;
    font-size: 0.95em !important;
  }

  /* MESSAGE SWIPE (optionnel) */
  .bdctable-note-mobile {
    display: block;
    text-align: center;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.3em;
  }

  /* La croix de fermeture parfaitement visible et espacée */
  .product-popup-modal__close,
  .modal__close-button {
    position: absolute !important;
    top: 1em !important;       /* espace vertical depuis le haut */
    right: 1em !important;     /* espace horizontal depuis la droite */
    width: 2em !important;     /* taille du bouton */
    height: 2em !important;
    font-size: 1.5em !important;
    line-height: 1 !important;
    background: white !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200 !important;
    border: 1px solid #eee;
    cursor: pointer;
  }
  .product-popup-modal__close svg,
  .modal__close-button svg {
    width: 1.2em !important;
    height: 1.2em !important;
  }
  /* Petite ombre subtile pour voir qu'il reste du contenu à scroller (option UX) */
  .product-popup-modal__content::after,
  .modal__content::after {
    content: '';
    display: block;
    height: 1em;
    box-shadow: 0 0.4em 0.8em rgba(0,0,0,0.06);
  }
}

/* ----- TABLETTE ----- */
@media (min-width: 601px) and (max-width: 990px) {
  .product-popup-modal__content {
    width: 92vw !important;
    max-width: 92vw !important;
    min-width: 0 !important;
    left: 0;
    margin: 0 auto;
    padding: 1rem !important;
    box-sizing: border-box;
    border-radius: 12px;
  }
  .bdctable {
    overflow-x: auto;
    width: 100%;
    padding: 0.6rem 0 !important;
  }
  .bdctable table {
    min-width: 700px;
    width: 100%;
    font-size: 1rem;
  }
  .bdctable tbody td {
    padding: 0.7rem 0.25rem !important;
    font-size: 0.97em !important;
  }
}

/* ----- DESKTOP ----- */
@media (min-width: 991px) {
  .product-popup-modal__content {
    max-width: 60rem !important;
    width: 60rem !important;
    padding: 2rem !important;
    border-radius: 16px;
  }
  .bdctable table {
    width: 100%;
    font-size: 1.05rem;
  }
  .bdctable tbody td {
    padding: 1rem 0.5rem !important;
  }
}

/* ----- TABLEAU GÉNÉRIQUE ----- */
.bdctable table {
  border-collapse: collapse;
  box-sizing: border-box;
  font-family: var(--primary-font-family, Arial, sans-serif);
  line-height: 1.5;
  background: white;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.bdctable tbody tr:nth-child(2n) td {
  background: #eae9e9;
}
.bdctable tbody td {
  text-align: center;
}
.bdctable tbody td:first-child {
  text-align: left;
  text-transform: uppercase;
  font-weight: bold;
}
.bdctable {
  -webkit-overflow-scrolling: touch;
}


/* ajustement CSS pour pulls sur mesure */
@media screen and (min-width: 750px) {
.surmesure .cpb-category-desc {
  margin-bottom : 0 !important;
}
.surmesure .counter {
  margin-bottom : 20px; 
}
.encolure .cpb-option-type-img {
    width: 84px !important;
    height: 84px !important;
}
.encolure .cpb-option-tooltip-img {
    width: 70px !important;
    height: 70px !important;
}
  .encolure .cpb-category-option-description p {
    font-size: 1.2em !important;
    font-weight: 600 !important;
  }
  .couleur .cpb-category-option-description p {
    font-size: 1.2em !important;
    font-weight: 600 !important;
  }
  .cpb-product-price {
    margin-bottom: 30px !important;
  }
}
.surmesure .cpb-counter {
  justify-content: space-evenly !important;
}
.cpb-current-tab-index-4 .cpb-add-to-cart-button {
  display:inline-block !important;
}
.cpb-add-to-cart-button{
  display:none !important;
}
.cpb-selection-summary-list li:last-child{
   .col-md-4{
  display:none !important;
   }
}
.cpb-selection-summary-list-item-category-title {
  display:none !important;
}

/* panier et commande */
.cart-item__details>* {
  max-width: 65rem !important;
}


    