.single-product .mht-woo {
  --product-radius: 24px;
  --product-media: #efeee6;
  --product-panel: #fffdf8;
  width: min(100% - 2rem, 1232px);
  padding-top: 1rem;
}

.single-product .mht-woo .woocommerce-breadcrumb {
  margin-bottom: clamp(1.05rem, 3vw, 2rem);
  padding: .7rem .86rem;
  border-radius: 10px;
  background: var(--leaf);
  line-height: 1.4;
}

.mht-product-layout { display: grid; gap: clamp(1.25rem, 4vw, 3.6rem); align-items: start; }
.mht-product-media { position: relative; min-width: 0; }
.single-product .mht-woo .mht-product-layout div.images,
.single-product .mht-woo .mht-product-layout div.summary { float: none; width: auto; margin: 0; }
.single-product .mht-woo .mht-product-layout div.summary {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2.2rem);
  border-radius: var(--product-radius);
  background: var(--product-panel);
}

.mht-product-media .woocommerce-product-gallery { opacity: 1 !important; }
.mht-product-media .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image:not(:first-child) { display: none; }
.mht-product-media .flex-viewport, .mht-product-media .woocommerce-product-gallery__image { border-radius: var(--product-radius); overflow: hidden; background: var(--product-media); }
.mht-product-media .flex-viewport { height: auto !important; aspect-ratio: 1; contain: size; }
.mht-product-media .woocommerce-product-gallery__image > a { display: block; }
.single-product .mht-product-media .woocommerce-product-gallery__image img:not(.zoomImg),
.single-product .mht-product-media .woocommerce-product-gallery__image--placeholder img {
  width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 0;
}
.single-product .mht-product-media .woocommerce-product-gallery__trigger {
  z-index: 3; top: .75rem; right: .75rem; width: 44px; height: 44px;
  background: var(--product-panel); border: 1px solid var(--line);
}
.single-product .mht-product-media .woocommerce-product-gallery__trigger::before { top: 12px; left: 12px; }
.single-product .mht-product-media .woocommerce-product-gallery__trigger::after { top: 24px; left: 25px; }
.mht-product-media .woocommerce-product-gallery .flex-control-thumbs { display: none; }
.mht-product-media .woocommerce-product-gallery .flex-direction-nav {
  display: flex; justify-content: center; gap: .55rem; margin: .75rem 0 0;
}
.mht-product-media .flex-direction-nav a {
  display: grid; place-content: center; width: 44px; height: 44px; min-height: 44px;
  padding: 0; overflow: hidden; font-size: 0; line-height: 0;
  border: 1px solid var(--line); border-radius: 50%; color: inherit; background: var(--product-panel);
  transition: background-color 160ms ease, border-color 160ms ease;
}
.mht-product-media .flex-direction-nav a::after {
  content: ''; display: block; width: 8px; height: 8px;
  border-block-start: 1.5px solid; border-inline-end: 1.5px solid; transform: rotate(45deg);
}
.mht-product-media .flex-direction-nav a.flex-prev::after { transform: rotate(-135deg); }
.mht-product-media .flex-direction-nav a:hover { border-color: var(--quiet); background: var(--leaf); }
.mht-product-media .flex-direction-nav a.flex-disabled { opacity: .5; cursor: default; }
.mht-product-media .onsale { z-index: 3; top: .75rem; left: .75rem; min-height: auto; padding: .45rem .65rem; background: var(--forest); border-radius: 8px; line-height: 1; }

.single-product .mht-woo .mht-product-layout .product_title {
  font-size: clamp(1.62rem, 3.1vw, 2.64rem); line-height: 1.12;
  font-weight: 650; letter-spacing: -.026em; text-wrap: pretty; margin: 0 0 .75rem;
}
.mht-product-layout .summary > .price {
  margin-block: 0 .85rem; font-size: clamp(1.25rem, 2.35vw, 1.77rem); line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.mht-product-layout .summary > .price > .price { font-size: inherit; }
.mht-product-layout .summary .woocommerce-product-rating { margin: 0 0 .48rem; }
.mht-product-layout .woocommerce-product-details__short-description { line-height: 1.52; color: var(--quiet); }
.mht-product-layout .woocommerce-product-details__short-description p:first-child { margin-top: 0; }
.mht-product-layout .mht-fit { margin-block: 1rem; padding: .75rem .86rem; border-radius: 12px; font-size: .9rem; }
.mht-product-layout .mht-fit p { margin-top: .35rem; }
.mht-product-layout .mht-fit a { font-weight: 650; }

.mht-product-finishes { margin-top: 1rem; }
.mht-product-finishes p { margin: 0 0 .45rem; font-size: .9rem; }
.mht-product-finishes p span { margin-left: .4rem; color: var(--quiet); }
.mht-product-finishes ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.mht-product-finishes a { display: block; width: 46px; height: 46px; padding: 3px; border: 1px solid var(--line); border-radius: 50%; }
.mht-product-finishes a:hover, .mht-product-finishes a[aria-current] { border-color: var(--forest); }
.mht-product-finishes a[aria-current] { outline: 1px solid var(--forest); }
.mht-product-finishes img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.single-product .mht-product-layout form.cart { margin: 1rem 0 0; }
.single-product .mht-product-layout form.cart .variations { display: block; margin: 0 0 .7rem; }
.mht-product-layout .variations tbody, .mht-product-layout .variations tr { display: block; }
.single-product .mht-product-layout .variations tr:not(:first-child) { margin-top: .7rem; }
.single-product .mht-product-layout .variations th.label, .single-product .mht-product-layout .variations td.value {
  position: relative; display: block; width: 100%; padding: 0; text-align: start;
}
.single-product .mht-product-layout .variations th.label label { display: inline-block; margin-bottom: .42rem; font-size: .9rem; }
.mht-product-layout .variations select { border-color: var(--line); border-radius: 10px; }
.mht-product-layout .variations .mht-native-choice { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); }
.mht-product-choices { display: flex; flex-wrap: wrap; gap: .46rem; }
.mht-product-choices button {
  min-height: 44px; max-width: 100%; padding: .53rem .73rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--product-panel); color: var(--ink);
  font-size: .89rem; line-height: 1.25; text-align: start; overflow-wrap: anywhere;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.mht-product-choices button[aria-checked="true"] { color: var(--white); background: var(--forest); border-color: var(--forest); }
.mht-product-choices button:hover:not(:disabled) { border-color: var(--forest); }
.mht-product-choices button:disabled { opacity: .48; cursor: not-allowed; }
.mht-product-layout .reset_variations { display: inline-block; min-height: 32px; padding-top: .35rem; }
.mht-product-layout .mht-variation-priced .woocommerce-variation-price { display: none; }
.mht-product-layout .woocommerce-variation-description p, .mht-product-layout .woocommerce-variation-availability p { margin-block: .35rem; font-size: .9rem; }
.single-product .mht-woo .mht-product-layout .single_add_to_cart_button { min-height: 50px; border-radius: 11px; }
.single-product .mht-product-layout form.cart .quantity input { min-height: 50px; width: 64px; border: 1px solid var(--line); border-radius: 10px; background: var(--product-panel); color: var(--ink); }
.mht-product-layout .mht-purchase-trust { padding-block: .7rem; margin-block: .6rem 0; }
.mht-product-layout .mht-bed-pair label { border-radius: 12px; }

.mht-product-information { margin-top: 1.3rem; }
.mht-product-accordion { border-top: 1px solid var(--line); }
.mht-product-accordion:last-of-type { border-bottom: 1px solid var(--line); }
.mht-product-accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  min-height: 49px; padding: .62rem .15rem; list-style: none; font-weight: 650;
}
.mht-product-accordion summary::-webkit-details-marker { display: none; }
.mht-product-accordion summary span { position: relative; width: 13px; height: 13px; flex: 0 0 13px; }
.mht-product-accordion summary span::before, .mht-product-accordion summary span::after {
  content: ''; position: absolute; inset: 6px 0 auto; height: 1px; background: currentColor;
}
.mht-product-accordion summary span::after { transform: rotate(90deg); transition: transform 180ms ease-out; }
.mht-product-accordion[open] summary span::after { transform: rotate(0); }
.mht-product-accordion-content { padding: .1rem .15rem .9rem; color: var(--quiet); font-size: .91rem; overflow-wrap: anywhere; }
.mht-product-accordion[open] .mht-product-accordion-content { animation: mht-detail-open 220ms cubic-bezier(.16, 1, .3, 1); }
.mht-product-accordion-content > :first-child { margin-top: 0; }
.mht-product-information .product_meta { margin-top: .7rem; font-size: .79rem; color: var(--quiet); }
@keyframes mht-detail-open { from { opacity: .45; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.mht-product-reviews, .mht-product-related { margin-top: clamp(2rem, 5vw, 4rem); }
.mht-product-related h2, .mht-product-reviews h2 { margin-bottom: .65rem; font-size: clamp(1.55rem, 3.1vw, 2.35rem); }
.mht-product-related ul.products li.product { margin: 0; }

@media (min-width: 800px) {
  .mht-product-layout { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
}
@media (min-width: 1024px) {
  .mht-product-media .woocommerce-product-gallery { position: relative; }
  .single-product .mht-woo .mht-product-media .woocommerce-product-gallery:has(.flex-control-thumbs) { padding-left: 86px; }
  .single-product .mht-woo .mht-product-media .woocommerce-product-gallery .flex-control-thumbs {
    position: absolute; display: flex; flex-direction: column; gap: .55rem;
    inset: 0 auto 0 0; width: 70px; height: 100%; max-height: none; padding: 2px 3px 2px 2px; overflow-y: auto;
  }
  .single-product .mht-woo .mht-product-media .woocommerce-product-gallery .flex-control-thumbs li { margin: 0; flex-shrink: 0; }
  .mht-product-media .flex-control-thumbs img {
    width: 100%; aspect-ratio: 1; object-fit: cover; padding: 3px; border: 1px solid var(--line);
    border-radius: 11px; opacity: .7; transition: opacity 180ms ease, border-color 180ms ease;
  }
  .mht-product-media .flex-control-thumbs img:hover, .mht-product-media .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--forest); }
  .mht-product-media:has(.flex-control-thumbs) > .onsale { left: 98px; }
  .mht-product-media .woocommerce-product-gallery .flex-direction-nav { position: absolute; z-index: 2; inset: auto .85rem .85rem auto; margin: 0; }
}
@media (min-width: 1024px) and (min-height: 700px) {
  .mht-product-media { position: sticky; top: 1.6rem; }
  .admin-bar .mht-product-media { top: 3.5rem; }
}
@media (max-width: 420px) {
  .single-product .mht-woo { --product-radius: 19px; width: min(100% - 1.5rem, 1232px); }
}
.mht-product-notice { margin: .8rem 0 0; padding: .65rem .8rem; border-left: 3px solid var(--forest); background: rgba(0,0,0,.035); font-size: .92rem; line-height: 1.45; }
.mht-product-notice strong { display: block; }

/* Bundle « 1 ou 2 pièces » */
.mht-bundle { margin: .2rem 0 1rem; }
.mht-bundle-title { margin: 0 0 .5rem; font-weight: 700; color: var(--forest); font-size: .95rem; letter-spacing: .01em; }
.mht-bundle-option { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .85rem 1rem; margin: 0 0 .55rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mht-bundle-option:hover { border-color: var(--forest); }
.mht-bundle-option.is-active { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest) inset, 0 8px 22px rgba(32,58,50,.12); background: #f6f8f3; }
.mht-bundle-option input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--forest); }
.mht-bundle-copy { display: grid; gap: .1rem; }
.mht-bundle-copy strong { font-size: 1rem; color: var(--forest); }
.mht-bundle-copy small, .mht-bundle-price small { color: var(--quiet); font-size: .8rem; }
.mht-bundle-price { display: grid; justify-items: end; gap: .1rem; font-weight: 700; color: var(--forest); white-space: nowrap; }
.mht-bundle-price small { color: #b5652e; font-weight: 700; }
.mht-bundle-badge { position: absolute; top: -.62rem; right: .9rem; padding: .18rem .6rem; border-radius: 999px; background: #c8803c; color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em; box-shadow: 0 4px 10px rgba(200,128,60,.35); }
.mht-bundle-note { margin: .15rem 0 0; font-size: .8rem; color: var(--quiet); }
.mht-bundle ~ .quantity { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Carte bonus : livret 3D, flottement et reflet */
.mht-bonus { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; margin: 1.1rem 0 .4rem; padding: 1rem 1.1rem; border-radius: 16px; background: linear-gradient(135deg, #f3efe4, #eef1ea 60%); border: 1px solid #e4dfd0; overflow: hidden; }
.mht-bonus-book { position: relative; width: 92px; perspective: 700px; animation: mht-bonus-float 4.5s ease-in-out infinite; }
.mht-bonus-book img { display: block; width: 92px; height: auto; border-radius: 3px 8px 8px 3px; transform: rotateY(-18deg) rotateX(4deg); transform-origin: left center; box-shadow: -2px 0 0 #d9d4c6, -4px 2px 0 #cfc9ba, 10px 14px 24px rgba(32,58,50,.28); }
.mht-bonus-book::after { content: ""; position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); background-size: 250% 100%; transform: rotateY(-18deg) rotateX(4deg); transform-origin: left center; animation: mht-bonus-shine 4.5s ease-in-out infinite; pointer-events: none; }
.mht-bonus-ribbon { position: absolute; top: -.45rem; left: -.5rem; z-index: 1; padding: .2rem .55rem; border-radius: 999px; background: #c8803c; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 4px 10px rgba(200,128,60,.4); }
.mht-bonus-kicker { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b5652e; }
.mht-bonus-title { margin: .15rem 0 .45rem; font-family: var(--title); font-size: 1.2rem; line-height: 1.15; color: var(--forest); }
.mht-bonus ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; font-size: .86rem; color: #2a3a32; }
.mht-bonus li { position: relative; padding-left: 1.35rem; }
.mht-bonus li::before { content: ""; position: absolute; left: 0; top: .2rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
@keyframes mht-bonus-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes mht-bonus-shine { 0%, 55% { background-position: 150% 0; } 85%, 100% { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .mht-bonus-book, .mht-bonus-book::after { animation: none; } }

/* Avis : explication quand il n'y en a pas encore */
.woocommerce-noreviews { display: none; }
.mht-reviews-empty { margin: 0 0 1.2rem; padding: 1rem 1.15rem; border-radius: 14px; background: var(--leaf); }
.mht-reviews-empty p { margin: 0 0 .45rem; font-size: .92rem; }
.mht-reviews-empty-title { font-weight: 700; color: var(--forest); font-size: 1rem !important; }
.mht-reviews-empty a { font-weight: 600; color: var(--forest); }

/* « Mach ein Set draus » */
.mht-set { margin: .3rem 0 1rem; }
.mht-set-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .55rem; font-weight: 700; color: var(--forest); font-size: .98rem; }
.mht-set-title span { padding: .15rem .55rem; border-radius: 999px; background: #c8803c; color: #fff; font-size: .74rem; box-shadow: 0 4px 10px rgba(200,128,60,.3); }
.mht-set-option { display: grid; grid-template-columns: auto 56px 1fr auto; align-items: center; gap: .7rem; padding: .65rem .8rem; margin: 0 0 .5rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.mht-set-option[hidden] { display: none; }
.mht-set-option:hover { border-color: var(--forest); }
.mht-set-option.is-active { border-color: var(--forest); background: #f6f8f3; box-shadow: 0 0 0 1px var(--forest) inset, 0 8px 20px rgba(32,58,50,.1); }
.mht-set-option input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--forest); }
.mht-set-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; display: block; }
.mht-set-copy { display: grid; gap: .15rem; min-width: 0; }
.mht-set-copy strong { color: var(--forest); font-size: .92rem; }
.mht-set-copy small { color: var(--quiet); font-size: .78rem; line-height: 1.35; }
.mht-set-size { margin-top: .25rem; max-width: 100%; padding: .25rem .4rem; border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; background: #fff; }
.mht-set-price { display: grid; justify-items: end; gap: .05rem; white-space: nowrap; }
.mht-set-price small { color: var(--quiet); font-size: .74rem; }
.mht-set-price b { color: #b5652e; font-size: .98rem; }
.mht-set-note { margin: .2rem 0 0; font-size: .78rem; color: var(--quiet); }
@media (max-width: 420px) { .mht-set-option { grid-template-columns: auto 48px 1fr; } .mht-set-thumb img { width: 48px; height: 48px; } .mht-set-price { grid-column: 3; justify-items: start; } }

/* Description produit : hiérarchie lisible, liste des tailles en cartes */
.mht-product-accordion-content { color: #2f3b34; font-size: .93rem; line-height: 1.6; }
.mht-product-accordion-content p { margin: 0 0 .7rem; }
.mht-product-accordion-content h2, .mht-product-accordion-content h3 { margin: 1.3rem 0 .55rem; font-family: var(--title); font-size: 1.02rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--forest); }
.mht-product-accordion-content p > strong:first-child { display: inline-block; margin-right: .35rem; padding: .1rem .5rem; border-radius: 999px; background: var(--leaf); color: var(--forest); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.mht-product-accordion-content ul { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .4rem; }
.mht-product-accordion-content ul li { position: relative; margin: 0; padding: .55rem .75rem .55rem 2rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .88rem; line-height: 1.45; }
.mht-product-accordion-content ul li::before { content: ""; position: absolute; left: .75rem; top: .95rem; width: .5rem; height: .5rem; border-radius: 50%; background: #c8803c; }
.mht-product-accordion-content ul li strong { color: var(--forest); }
.mht-product-accordion-content a { color: var(--forest); font-weight: 600; }
.mht-product-accordion-content > p:last-child { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .86rem; }
