/**
 * Product page — template layout (pottery templates).
 * Loaded only on single product pages (see inc/product-setup.php).
 * Values follow the design handoff: fluid clamp() throughout, square
 * buttons/inputs (no radius except true circles), Poppins + Mistgak.
 */

.mm-product--template {
  --mm-rail: clamp(58px, 7vw, 84px);       /* fixed right rail to clear   */
  /* The product card's height. product.js overwrites this with the measured
     card, so hero + card fill the first screen exactly (card flush with the
     viewport bottom, no overlap of the photos). Pre-script fallback below. */
  --mm-card: clamp(200px, 30vh, 320px);
  --mm-ink: var(--wp--preset--color--mm-hero, #3a3e35);
}

/* --- Hero carousel: two photos per slide, cross-fade --------------- */
.mm-hero {
  position: relative;
  height: calc(100vh - var(--mm-card));     /* first screen minus the card below it */
  height: calc(100svh - var(--mm-card));
  min-height: 320px;
  margin-right: var(--mm-rail);
  background: var(--wp--preset--color--mm-greige, #eae9e5);
}
.mm-hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.mm-hero__slide.is-active { opacity: 1; pointer-events: auto; }
.mm-hero__slide--single { grid-template-columns: 1fr; }   /* phones: one photo per slide */
.mm-hero.is-single .mm-hero__nav,
.mm-hero.is-single .mm-hero__dots { display: none; }     /* only one slide: no controls */
.mm-hero__half {
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center 45%;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: zoom-in;                          /* opens the lightbox */
}

/* --- Lightbox: full-size photo on a dark overlay --------------- */
.mm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;                            /* above the fixed chrome (900) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 6vw, 72px);
  background: rgba(38, 37, 29, 0.94);
  cursor: zoom-out;
}
.mm-lightbox[hidden] { display: none; }
body.mm-lightbox-open { overflow: hidden; }
.mm-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  cursor: default;
}
.mm-lightbox__close {
  position: absolute;
  top: 26px;
  right: 30px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;                       /* true circle — allowed */
  background: none;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.mm-lightbox__close:hover,
.mm-lightbox__close:focus-visible { border-color: #fff; }
.mm-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--mm-ink);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.mm-lightbox__nav:hover,
.mm-lightbox__nav:focus-visible { background: #fff; }
.mm-lightbox__nav--prev { left: clamp(14px, 2vw, 28px); }
.mm-lightbox__nav--prev .mm-hero__arrow { transform: scaleX(-1); }
.mm-lightbox__nav--next { right: clamp(14px, 2vw, 28px); }
.mm-lightbox__count {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.5vh, 24px);
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
}

/* A product clip takes one half of a slide (its own slide on phones). */
.mm-hero__half--clip { position: relative; overflow: hidden; background-color: var(--wp--preset--color--mm-greige, #eae9e5); }
.mm-hero__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; pointer-events: none; }
.mm-lightbox__img[hidden] { display: none; }
.mm-lightbox__video { background: #000; }

.mm-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;                       /* true circle — allowed */
  background: rgba(255, 255, 255, 0.78);
  color: var(--mm-ink);
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.mm-hero__nav:hover,
.mm-hero__nav:focus-visible { background: #fff; }
.mm-hero__arrow { width: 14px; height: 14px; display: block; }   /* the homepage buttons' arrow */
.mm-hero__nav--prev { left: clamp(14px, 2vw, 28px); }
.mm-hero__nav--prev .mm-hero__arrow { transform: scaleX(-1); }
.mm-hero__nav--next { right: clamp(14px, 2vw, 28px); }

.mm-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.mm-hero__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(58, 62, 53, 0.32);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.mm-hero__dot.is-active { background: var(--mm-ink); }

/* --- PDF preview sheets: inside the bar, flush with the card's bottom edge,
       overhanging up into the hero. Fade out when the bar is stuck. --- */
.mm-sheets {
  position: absolute;
  z-index: 2;                               /* above the card */
  /* Inside the card's padding, allowing for the back sheet's 50% overhang. */
  right: calc(clamp(24px, 4vw, 56px) + clamp(70px, 7.5vw, 124px));
  bottom: 0;
  width: clamp(140px, 15vw, 247px);
  aspect-ratio: 247 / 349;
  clip-path: inset(-100% -100% 0 -100%);   /* the shadow may spill up/sideways, never below the card */
  transition: opacity 0.25s ease;
}
.mm-pbar.is-stuck .mm-sheets { opacity: 0; pointer-events: none; }
.mm-sheet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
}
/* Fanned: each sheet steps right and down from the one on top (--i = 0).
   Two pages use the full 50% / 30px step; more pages share it (--mm-fan). */
.mm-sheet { transform: translate(calc(var(--i, 0) * 50% * var(--mm-fan, 1)), calc(var(--i, 0) * 30px * var(--mm-fan, 1))); z-index: calc(10 - var(--i, 0)); }

/* --- Morphing product bar: ONE element, two states --------------
   The wrapper (.mm-pbar) sits in flow directly under the hero, full width up
   to the rail. The card (.mm-pbar__inner) fills it; the moment the wrapper's
   top reaches the viewport top (product.js toggles .is-stuck) the card becomes
   a slim FIXED bar at the top — pinned from the instant it morphs — and the
   wrapper keeps holding the card's space so nothing below shifts. */
.mm-pbar {
  position: relative;
  z-index: 25;                              /* above the hero's controls and the video cover */
  margin-right: var(--mm-rail);
  overflow-anchor: none;
}
.mm-pbar.is-stuck { height: var(--mm-card); }  /* keep the card's space while the bar is fixed */
/* White behind the card, so the space it leaves when it collapses to the slim
   bar reads as part of the white tabs section below. */
.mm-pbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--wp--preset--color--mm-surface, #fff);
}
.mm-pbar__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 2.6vh, 26px);
  /* Sides use the page gutter so the text lines up with the logo and tabs. */
  padding: clamp(24px, 3.6vh, 36px) clamp(24px, 4vw, 56px) clamp(26px, 4vh, 44px);
  background: var(--wp--preset--color--mm-base, #f2f1ee);
  transition: padding 0.3s ease, margin 0.3s ease, background-color 0.3s ease;
}
.mm-pbar__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.mm-pbar__script {
  font-family: "Mistgak Signature", var(--mm-font);
  font-style: normal;
  line-height: 1;
  color: var(--mm-ink);
  opacity: 0.8;
  font-size: max(30px, var(--wp--preset--font-size--large, 1.5rem));   /* WordPress "Large" preset */
  transition: font-size 0.3s ease, opacity 0.25s ease;
}
.mm-pbar__title {
  font-family: var(--mm-font);
  font-weight: 200;
  color: var(--mm-ink);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: clamp(6px, 1.2vh, 14px) 0 0;
  font-size: 48px;
  max-width: 100%;
  text-wrap: balance;                       /* long names wrap on the card… */
  transition: font-size 0.3s ease, margin 0.3s ease;
}
/* Pill button, matching the homepage panel buttons (13px, weight 200,
   2px tracking, uppercase, fully rounded) in the product bar's ink colour. */
.mm-pbar__btn {
  flex: none;
  display: inline-block;
  padding: 12px 30px;
  text-align: center;
  background: var(--wp--preset--color--mm-clay, #bc8c78);   /* clay by default, dark on hover */
  color: #fff;
  font-family: var(--mm-font);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: padding 0.3s ease, background-color 0.2s ease;
}
.mm-pbar__btn:hover,
.mm-pbar__btn:focus-visible { background: var(--mm-ink); color: #fff; }
/* Text stays white through every state — the theme's generic a:focus / a:hover
   colour would otherwise tint it once the link is focused by a click. */
.mm-pbar__btn:focus,
.mm-pbar__btn:visited,
.mm-pbar__btn.loading,
.mm-pbar__btn.added,
.mm-pbar__btn.is-added { color: #fff; }
.mm-pbar__btn.loading  { opacity: 0.7; cursor: progress; }               /* mid: request in flight */
.mm-pbar__btn.is-added { background: var(--wp--preset--color--mm-sage, #8c9082); } /* confirmation flash */
/* Woo injects a "View cart" link after the button; its own stylesheet outranks a
   plain hide on specificity, hence !important. The label flip replaces it. */
.mm-pbar .added_to_cart { display: none !important; }

/* Stuck: collapses into a slim, blurred bar fixed to the top */
.mm-pbar.is-stuck .mm-pbar__inner {
  position: fixed;
  top: 0;
  left: 0;
  right: var(--mm-rail);
  z-index: 25;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 14px clamp(20px, 3vw, 40px) 14px clamp(180px, 15vw, 224px); /* left clears the fixed logo */
  background: rgba(242, 241, 238, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 62, 53, 0.14);
}
.mm-pbar.is-stuck .mm-pbar__text {
  flex: 1;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
}
.mm-pbar.is-stuck .mm-pbar__script { font-size: 30px; white-space: nowrap; }   /* Mistgak never below 30px */
.mm-pbar.is-stuck .mm-pbar__title  {
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 20px);
  margin: 0;
  /* …but stay on one line in the slim bar. The clip box gets extra room below
     the baseline (padding pulled back by margin) so descenders aren't cut. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}
.mm-pbar.is-stuck .mm-pbar__btn    { padding: 9px 24px; font-size: 12px; }
.admin-bar .mm-pbar.is-stuck .mm-pbar__inner { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .mm-pbar.is-stuck .mm-pbar__inner { top: 46px; }
}

/* --- Detail tabs: vertical tab list | active panel + spec rows ---- */
.mm-product--template { --mm-label: #a5a096; --mm-body: #57544c; }  /* design's label / body-copy greys */

/* Bundle upsell: a quiet strip at the top of the white section */
.mm-upsell {
  margin-right: var(--mm-rail);
  background: var(--wp--preset--color--mm-surface, #fff);
}
.mm-upsell__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  max-width: 1240px;
  padding: clamp(28px, 4vh, 40px) clamp(30px, 4vw, 72px) 0 clamp(24px, 4vw, 56px);
}
.mm-upsell__inner::after {                                   /* hairline between the strip and the tabs */
  content: "";
  flex-basis: 100%;
  height: 1px;
  margin-top: clamp(22px, 3vh, 32px);
  background: rgba(0, 0, 0, 0.1);
}
.mm-upsell__text { min-width: 0; flex: 1 1 420px; }
.mm-upsell__script {
  display: block;
  margin-bottom: 4px;
  font-family: "Mistgak Signature", var(--mm-font);
  font-size: max(30px, var(--wp--preset--font-size--large, 1.5rem));
  line-height: 1;
  color: var(--wp--preset--color--mm-clay, #bc8c78);
}
.mm-upsell__line { margin: 0; font-size: 15px; line-height: 1.6; color: var(--mm-body); text-wrap: pretty; }
.mm-upsell__line strong { font-weight: 400; color: var(--mm-ink); }
.mm-upsell__actions { display: flex; align-items: center; gap: 22px; flex: none; }
.mm-upsell__btn { display: inline-flex; align-items: center; gap: 10px; }
.mm-upsell__btn .mm-upsell__arrow { width: 12px; height: 12px; }
.mm-upsell__btn:hover .mm-upsell__arrow { transform: translateX(4px); }
.mm-upsell__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mm-ink);
  text-decoration: none !important;
}
.mm-upsell__arrow { width: 11px; height: 11px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.3s ease; }
.mm-upsell__link:hover .mm-upsell__arrow { transform: translateX(4px); }
.mm-upsell + .mm-tabs .mm-tabs__inner { padding-top: clamp(36px, 5vh, 56px); }
@media (max-width: 767px) {
  .mm-upsell { margin-right: 0; }
  .mm-upsell__actions { flex-wrap: wrap; gap: 14px 18px; }
}

.mm-tabs {
  margin-right: var(--mm-rail);
  background: var(--wp--preset--color--mm-surface, #fff);
}
.mm-tabs__inner {
  display: grid;
  grid-template-columns: minmax(150px, 0.46fr) 1.54fr;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1240px;
  padding: clamp(52px, 8vh, 92px) clamp(30px, 4vw, 72px) clamp(48px, 7vh, 84px) clamp(24px, 4vw, 56px);
}
.mm-tabs__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.mm-tabs__tab {
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: none;
  font-family: var(--mm-font);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mm-label);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mm-tabs__tab:hover,
.mm-tabs__tab:focus-visible { color: var(--mm-ink); }
.mm-tabs__tab.is-active { color: var(--mm-ink); border-bottom-color: var(--mm-ink); }
.mm-tabs__panels { max-width: 860px; }                      /* copy and the spec rows share one measure */
.mm-tabs__panel[hidden] { display: none; }
.mm-tabs__body {
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.85;
  color: var(--mm-ink);
  text-wrap: pretty;
}
.mm-tabs__body p { margin: 0; }
.mm-tabs__body p + p { margin-top: 1em; }
.mm-tabs__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(22px, 3vw, 44px);
}
/* Bundle contents: a tile per included template, then the saving */
.mm-bundle { margin-bottom: 28px; }
.mm-bundle__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mm-bundle__link { display: block; background: var(--wp--preset--color--mm-base, #f2f1ee); color: var(--mm-ink); text-decoration: none; }
.mm-bundle__img {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--wp--preset--color--mm-greige, #eae9e5) center / cover no-repeat;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mm-bundle__link { overflow: hidden; }
.mm-bundle__link:hover .mm-bundle__img { transform: scale(1.045); }
.mm-bundle__name { display: block; padding: 12px 14px 2px; font-size: 15px; font-weight: 400; color: var(--mm-ink); transition: color 0.2s ease; }
.mm-bundle__link:hover .mm-bundle__name { color: var(--wp--preset--color--mm-clay, #bc8c78); }
.mm-bundle__price { display: block; padding: 0 14px 14px; font-size: 13px; color: var(--mm-body); }
.mm-bundle__total { margin: 16px 0 0; font-size: 13.5px; color: var(--mm-body); }
.mm-bundle__saving { margin-left: 10px; color: var(--wp--preset--color--mm-clay, #bc8c78); }

/* "How to print" row (global) at the end of the Making it tab */
.mm-print {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px 18px;
  align-items: center;
  margin-top: clamp(22px, 3.4vh, 34px);
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
/* straight after the specs list it is just the next row: same 14px rhythm, no extra gap */
.mm-tabs__specs + .mm-print { margin-top: 0; padding-top: 14px; }
.mm-print__thumb {
  position: relative;
  display: block;
  width: 120px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--wp--preset--color--mm-greige, #eae9e5);
  cursor: pointer;
}
.mm-print__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mm-print__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}
.mm-print__play::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-left: 9px solid var(--mm-ink);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.mm-print__title {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--mm-ink);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.mm-print__title:hover,
.mm-print:hover .mm-print__title { color: var(--wp--preset--color--mm-clay, #bc8c78); }
.mm-print__note { margin: 4px 0 0; font-size: 13px; color: var(--mm-body); }
.mm-print__player { grid-column: 1 / -1; position: relative; aspect-ratio: 16 / 9; background: var(--wp--preset--color--mm-ink, #26251d); }
.mm-print__player[hidden] { display: none; }
.mm-print__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mm-print.is-playing .mm-print__thumb,
.mm-print.is-playing .mm-print__text { display: none; }

/* "Good to know" accordion (global) after How it works */
.mm-faq {
  margin-right: var(--mm-rail);
  background: var(--wp--preset--color--mm-base, #f2f1ee);
}
.mm-faq__inner {
  display: grid;
  grid-template-columns: minmax(150px, 0.46fr) 1.54fr;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1240px;
  padding: clamp(40px, 7vh, 80px) clamp(30px, 4vw, 72px) clamp(48px, 7vh, 84px) clamp(24px, 4vw, 56px);
}
.mm-faq__head { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; align-items: flex-start; }
.mm-faq__script {
  font-family: "Mistgak Signature", var(--mm-font);
  font-size: max(30px, var(--wp--preset--font-size--large, 1.5rem));
  line-height: 1;
  color: var(--wp--preset--color--mm-clay, #bc8c78);
}
.mm-faq__heading { margin: 8px 0 0; font-size: clamp(28px, 3vw, 40px); font-weight: 200; line-height: 1.05; letter-spacing: -0.005em; color: var(--mm-ink); }
.mm-faq__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mm-ink);
  text-decoration: none !important;
}
.mm-faq__arrow,
.mm-faq__icon {
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mm-faq__link:hover .mm-faq__arrow { transform: translateX(4px); }
.mm-faq__list { border-top: 1px solid var(--wp--preset--color--mm-line, #e1dfd9); }
.mm-faq--list { margin: 0; padding: 0; background: none; width: 100%; }   /* [faqs] inside a page's own layout */
.mm-faq--list .mm-faq__q { font-size: 20px; }
.mm-faq__item { border-bottom: 1px solid var(--wp--preset--color--mm-line, #e1dfd9); }
.mm-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 300;
  color: var(--mm-ink);
}
.mm-faq__q::-webkit-details-marker { display: none; }
.mm-faq__icon { flex: none; transform: rotate(90deg); }
.mm-faq__item[open] .mm-faq__icon { transform: rotate(-90deg); }
.mm-faq__a { padding: 0 0 18px; max-width: 640px; font-size: 14px; line-height: 1.7; color: var(--mm-body); text-wrap: pretty; }
@media (max-width: 767px) {
  .mm-faq { margin-right: 0; }
  .mm-faq__inner { grid-template-columns: 1fr; gap: 24px; }
  .mm-print { grid-template-columns: 96px minmax(0, 1fr); }
  .mm-print__thumb { width: 96px; }
}

.mm-tabs__item { border-top: 1px solid rgba(0, 0, 0, 0.16); padding-top: 16px; }
.mm-tabs__item-title { margin: 0 0 7px; font-size: 18px; font-weight: 400; color: var(--mm-ink); }
.mm-tabs__item-text { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--mm-body); text-wrap: pretty; }
.mm-tabs__specs { margin: clamp(22px, 3.4vh, 34px) 0 0; }
.mm-tabs__spec {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 14px;
}
.mm-tabs__spec dt { color: var(--mm-label); }
.mm-tabs__spec dd { margin: 0; color: var(--mm-ink); text-align: right; }

/* --- Video: dark band, click-to-play cover, chapter strip ---------- */
.mm-video {
  margin-right: var(--mm-rail);
  padding: clamp(48px, 8vh, 90px) clamp(30px, 4vw, 72px) clamp(40px, 6vh, 70px) clamp(24px, 4vw, 56px);
  background: var(--mm-ink);
  color: #fff;
}
.mm-video__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 4vh, 42px);
}
.mm-video__script {
  font-family: "Mistgak Signature", var(--mm-font);
  font-size: clamp(30px, 2.4vw, 38px);
  line-height: 1.2;
  color: var(--wp--preset--color--mm-blush, #d6b1a1);
}
.mm-video__heading {
  margin: 2px 0 0;
  font-size: clamp(28px, 3.4vw, 50px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
}
.mm-video__blurb { margin: 0; max-width: 330px; font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.72); text-wrap: pretty; }

/* Bundles: pick which template's video to watch - pills on the heading row,
   in the site's button type */
.mm-video__switch { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-left: auto; align-self: flex-end; }
.mm-video__pick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 20px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--mm-font);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.mm-video__pick:hover { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.mm-video__pick.is-active { background: #fff; color: var(--mm-ink); border-color: #fff; }
.mm-video__pick-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--wp--preset--color--mm-greige, #eae9e5) center / cover no-repeat; flex: none; }
.mm-video__chapters:empty { display: none; }

.mm-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--wp--preset--color--mm-ink, #26251d);
}
.mm-video__poster,
.mm-video__player,
.mm-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mm-video__poster { object-fit: cover; }
.mm-video__player { z-index: 2; }
.mm-video__cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;                        /* poster shows as-is; just the play button on top */
  cursor: pointer;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
/* Once playing, the poster and cover fully step aside so the player gets every click (pause etc.). */
.mm-video.is-started .mm-video__cover,
.mm-video.is-started .mm-video__poster { opacity: 0; visibility: hidden; pointer-events: none; }
.mm-video__play {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;                              /* true circle — allowed */
  background: rgba(255, 255, 255, 0.92);
}
.mm-video__play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 16px solid var(--mm-ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.mm-video__chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;                                        /* hairlines show through */
  margin-top: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.mm-video__chapter {
  display: block;
  padding: 18px clamp(14px, 1.4vw, 20px);
  border: 0;
  border-radius: 0;
  background: var(--mm-ink);
  color: #fff;
  font-family: var(--mm-font);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.mm-video__chapter:hover,
.mm-video__chapter:focus-visible,
.mm-video__chapter.is-active { background: rgba(255, 255, 255, 0.13); }
.mm-video__time { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: 0.14em; color: var(--wp--preset--color--mm-blush, #d6b1a1); }
.mm-video__label { display: block; font-size: 13.5px; font-weight: 300; }

/* --- Mobile ------------------------------------------------------ */
@media (max-width: 767px) {
  .mm-product--template { --mm-rail: 0px; }
  .mm-pbar__title { font-size: clamp(30px, 8vw, 40px); }
  .mm-sheets { display: none; }                          /* no room beside the title on a phone */
  .mm-rail { background: transparent; }                  /* just the hamburger over the photo */
  .mm-pbar.is-stuck .mm-pbar__inner { padding-left: 20px; padding-right: 72px; } /* right clears the hamburger */
  .mm-pbar.is-stuck .mm-pbar__script { display: none; }
  .mm-pbar.is-stuck .mm-pbar__text { justify-content: flex-start; }  /* no logo or script here, so the name starts at the left */
  /* Slim bar: "Add · $8.00" so the product name keeps most of the width. */
  .mm-pbar.is-stuck .mm-pbar__btn-more { display: none; }
  .mm-pbar.is-stuck .mm-pbar__btn { padding: 9px 16px; letter-spacing: 1.5px; }

  .mm-tabs__inner { grid-template-columns: 1fr; gap: 28px; }
  .mm-tabs__nav { flex-direction: row; flex-wrap: wrap; gap: 10px 18px; }
  .mm-video__blurb { max-width: none; }
}
