/* TABLEAU MAROC — Product Phase 4 */
.single-product .woocommerce-tabs,
.single-product .woocommerce-Tabs-panel,
.single-product .woocommerce-product-details__short-description,
.single-product .entry-content {
  min-width: 0;
}

.single-product .woocommerce-Tabs-panel,
.single-product .woocommerce-product-details__short-description {
  overflow-wrap: anywhere;
  word-break: normal;
}

.single-product .woocommerce-Tabs-panel img,
.single-product .woocommerce-product-details__short-description img,
.single-product .entry-content img {
  max-width: 100% !important;
  height: auto !important;
}

.single-product .woocommerce-Tabs-panel iframe,
.single-product .entry-content iframe,
.single-product .woocommerce-Tabs-panel video,
.single-product .entry-content video {
  max-width: 100%;
}

.single-product .woocommerce-Tabs-panel table,
.single-product .entry-content table {
  max-width: 100%;
}

.tm-p4-faq {
  clear: both;
  width: 100%;
  margin: 28px auto 8px;
  padding: 0 16px;
  box-sizing: border-box;
}

.tm-p4-faq__inner {
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid rgba(166, 126, 53, .22);
  border-radius: 16px;
  background: #fffaf2;
  padding: 24px;
  box-sizing: border-box;
}

.tm-p4-faq__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #a6792d;
  margin-bottom: 4px;
}

.tm-p4-faq h2 {
  margin: 0 0 16px !important;
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.2 !important;
}

.tm-p4-faq details {
  border-top: 1px solid rgba(55, 43, 32, .12);
  margin: 0;
  padding: 0;
}

.tm-p4-faq details:first-of-type { border-top: 0; }

.tm-p4-faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  padding: 15px 34px 15px 0;
  position: relative;
}
.tm-p4-faq summary::-webkit-details-marker { display: none; }
.tm-p4-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2e6d2;
  color: #3b3027;
  font-size: 18px;
  line-height: 1;
}
.tm-p4-faq details[open] summary::after { content: '−'; }
.tm-p4-faq__answer {
  padding: 0 34px 16px 0;
  color: #5c5045;
  line-height: 1.65;
}

.tm-p4-sticky {
  display: none;
}

@media (max-width: 767px) {
  body.single-product { padding-bottom: 84px; }

  .single-product .woocommerce-tabs ul.tabs {
    display: none !important;
  }

  .single-product .woocommerce-tabs .panel {
    display: none !important;
    margin: 0 !important;
    padding: 0 14px 16px !important;
    border: 0 !important;
    overflow-x: auto;
  }

  .single-product .woocommerce-tabs .panel.tm-p4-panel-open {
    display: block !important;
  }

  .tm-p4-mobile-tab-title {
    width: 100%;
    appearance: none;
    border: 0;
    border-top: 1px solid rgba(45, 36, 29, .14);
    background: #fff;
    color: #2d241d;
    text-align: left;
    padding: 15px 42px 15px 14px;
    font-size: 15px;
    font-weight: 800;
    position: relative;
    cursor: pointer;
  }

  .tm-p4-mobile-tab-title::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 500;
  }
  .tm-p4-mobile-tab-title[aria-expanded="true"]::after { content: '−'; }

  .single-product .woocommerce-tabs {
    border: 1px solid rgba(45, 36, 29, .12);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }

  .tm-p4-faq {
    margin-top: 20px;
    padding: 0 12px;
  }
  .tm-p4-faq__inner {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .tm-p4-faq summary { font-size: 14px; }
  .tm-p4-faq__answer { font-size: 13px; }

  .tm-p4-sticky {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 9997;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(60, 47, 36, .15);
    border-radius: 15px;
    background: rgba(255, 250, 242, .97);
    box-shadow: 0 12px 36px rgba(29, 22, 17, .20);
    backdrop-filter: blur(10px);
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }

  .tm-p4-sticky.tm-p4-sticky--show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .tm-p4-sticky__price {
    min-width: 82px;
    padding-left: 4px;
    color: #9d7025;
    font-weight: 900;
    font-size: 15px;
    line-height: 1.15;
  }
  .tm-p4-sticky__price small {
    display: block;
    color: #756a60;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .tm-p4-sticky__button {
    flex: 1;
    min-height: 46px;
    border: 0;
    border-radius: 11px;
    padding: 10px 14px;
    background: #372c24;
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
  }
  .tm-p4-sticky__button.is-disabled {
    background: #a9a39d;
  }
}

@media (min-width: 768px) {
  .single-product .woocommerce-Tabs-panel {
    line-height: 1.7;
  }
}
