/* =====================================================================
   MORE MATCHA — Miyabi product page (v7)
   File: /user/documents/Produkty/miyabi/miyabi.css  (Header field, ?v=7)

   SAFETY (see CLAUDE.md):
   - This file loads on every Shoptet page, so EVERY rule is scoped:
       ours   → #more-matcha-product …
       native → #content-wrapper:has(#more-matcha-product) …   (Miyabi page only)
   - Native Shoptet elements are restyled only (colours, fonts, layout).
     Their data and behaviour (price, availability, quantity, cart) are untouched.
   - The page background is set on #content-wrapper (no pseudo-elements on
     Shoptet containers, so Bootstrap's clearfix ::before/::after stay intact).
   ===================================================================== */

/* ---------- tokens (inherit into both the native hero and our wrapper) ---------- */
#content-wrapper:has(#more-matcha-product) {
  --mm-tin: #0E0E0D;
  --mm-tin-line: rgba(241, 237, 228, 0.18);
  --mm-label: #F1EDE4;
  --mm-label-dim: rgba(241, 237, 228, 0.74);
  --mm-powder: #A9CC55;
  --mm-matcha-dark: #4F7424;
  --mm-deep: #1F2B12;
  --mm-grey: #E6E4DF;
  --mm-font-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mm-font-serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --mm-font-kanji: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --mm-gutter: clamp(20px, 5vw, 80px);
  --mm-max: 1360px;
  --mm-section: clamp(64px, 8vw, 120px);
  --mm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* faint white grain tile (alpha baked in), dithers the gradient = no banding */
  --mm-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* one continuous black page: base + a single light source from above + grain */
  background-color: var(--mm-tin);
  /* (no grain on the page itself: it would lighten the middle against the solid edges on wide screens) */
  /* page light from above: an ellipse exactly half the box wide, centred, so it fades to 0
     AT the left/right edges (where the side fill takes over) → no visible seam on wide screens */
  background-image:
    radial-gradient(50% 900px at 50% -120px, rgba(241,237,228,0.08) 0%, rgba(241,237,228,0.066) 14%, rgba(241,237,228,0.05) 29%, rgba(241,237,228,0.034) 43%, rgba(241,237,228,0.02) 57%, rgba(241,237,228,0.009) 71%, rgba(241,237,228,0.003) 86%, rgba(241,237,228,0) 100%);
  background-repeat: no-repeat;
  color: var(--mm-label);
  /* Shoptet's .container is narrower than wide screens: paint the page colour out to both edges.
     Copies of the box shifted left/right in 300px steps (no spread = same height as the content),
     enough for screens up to ~5000px. Unlike clip-path this clips nothing inside,
     so the fixed buy bar is never cut off at the page bottom. */
  box-shadow: -300px 0 0 0 var(--mm-tin), 300px 0 0 0 var(--mm-tin), -600px 0 0 0 var(--mm-tin), 600px 0 0 0 var(--mm-tin), -900px 0 0 0 var(--mm-tin), 900px 0 0 0 var(--mm-tin), -1200px 0 0 0 var(--mm-tin), 1200px 0 0 0 var(--mm-tin), -1500px 0 0 0 var(--mm-tin), 1500px 0 0 0 var(--mm-tin), -1800px 0 0 0 var(--mm-tin), 1800px 0 0 0 var(--mm-tin);
}

/* =====================================================================
   A) NATIVE SHOPTET ELEMENTS — Miyabi page only
   ===================================================================== */
#content-wrapper:has(#more-matcha-product) > .breadcrumbs {
  background: transparent; color: var(--mm-label-dim); font-family: var(--mm-font-body);
  padding-left: var(--mm-gutter); padding-right: var(--mm-gutter);
}
#content-wrapper:has(#more-matcha-product) > .breadcrumbs a,
#content-wrapper:has(#more-matcha-product) > .breadcrumbs span { color: var(--mm-label-dim); }
#content-wrapper:has(#more-matcha-product) > .breadcrumbs #navigation-2 span { color: var(--mm-label); }
#content-wrapper:has(#more-matcha-product) .navigation-home-icon::before { color: var(--mm-label-dim); }

#content-wrapper:has(#more-matcha-product) .p-detail { color: var(--mm-label); font-family: var(--mm-font-body); }
/* the spotlight bleeds past the image column; clip sideways so phones don't widen the page (overflow-x: clip keeps vertical bleed and creates no scroll box) */
#content-wrapper:has(#more-matcha-product) .p-detail-inner { overflow-x: clip; }
#content-wrapper:has(#more-matcha-product) .p-detail-inner > * { min-width: 0; }

/* hero layout: image left, label right */
#content-wrapper:has(#more-matcha-product) .p-detail-inner {
  display: grid; grid-template-columns: 1fr; gap: clamp(8px, 3vw, 56px); align-items: center;
  max-width: calc(var(--mm-max) + 2 * var(--mm-gutter)); margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) calc(var(--mm-gutter) - 16px) clamp(40px, 5vw, 72px);
}
#content-wrapper:has(#more-matcha-product) .p-detail-inner::before,
#content-wrapper:has(#more-matcha-product) .p-detail-inner::after { display: none; }
#content-wrapper:has(#more-matcha-product) .p-detail-inner > .p-image-wrapper { order: 1; }
#content-wrapper:has(#more-matcha-product) .p-detail-inner > .p-data-wrapper { order: 2; }
@media (min-width: 992px) {
  #content-wrapper:has(#more-matcha-product) .p-detail-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
#content-wrapper:has(#more-matcha-product) .p-detail-inner > .p-image-wrapper,
#content-wrapper:has(#more-matcha-product) .p-detail-inner > .p-data-wrapper {
  width: auto; max-width: none; float: none; padding: 0; margin: 0; background: transparent;
}
#content-wrapper:has(#more-matcha-product) .p-data-wrapper { max-width: 540px; justify-self: center; width: 100%; }
@media (min-width: 992px) { #content-wrapper:has(#more-matcha-product) .p-data-wrapper { justify-self: end; } }

/* our stage replaces the white-background product photo visually (Shoptet's gallery stays in the DOM) */
/* No flash of Shoptet's white-background photo before miyabi.js places our stage:
   hidden from the first paint. Matched two ways, because the photo is parsed before our block:
   - by Shoptet's product-id prefix in the image URL (43_ = MIYABI),
   - by our wrapper being on the page.
   Fallback: if the script never runs, the photo fades back in after 3 s. */
body.type-detail .p-image:has(a.p-main-image[href*="/43_"]),
#content-wrapper:has(#more-matcha-product) .p-image-wrapper > .p-image {
  opacity: 0; animation: mm-p-img-fallback .4s ease 3s forwards;
}
@keyframes mm-p-img-fallback { to { opacity: 1; } }
#content-wrapper:has(#more-matcha-product) .p-image-wrapper:has(.mm-p-stage) > .p-image,
#content-wrapper:has(#more-matcha-product) .p-image-wrapper:has(.mm-p-stage) > .row { display: none; }
#content-wrapper:has(#more-matcha-product) .p-detail-inner-header-mobile { display: none; }

/* name */
#content-wrapper:has(#more-matcha-product) .p-detail-inner-header { display: block; margin: 0; padding: 0; border: 0; }
#content-wrapper:has(#more-matcha-product) .p-detail-inner-header h1 {
  font-family: var(--mm-font-serif); font-weight: 500; text-transform: uppercase; color: var(--mm-label);
  font-size: clamp(56px, 7.4vw, 124px); line-height: .9; letter-spacing: .03em; margin: clamp(14px, 2vw, 24px) 0 12px -.04em; padding: 0;
}

/* Shoptet's short description is replaced by our intro (only once the intro has been placed) */
#content-wrapper:has(#more-matcha-product) .p-data-wrapper:has(.mm-p-intro) > .p-short-description { display: none; }

/* price + availability */
#content-wrapper:has(#more-matcha-product) #product-detail-form { margin-top: 24px; }
#content-wrapper:has(#more-matcha-product) .p-price-wrapper { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; padding: 0; border: 0; background: transparent; }
#content-wrapper:has(#more-matcha-product) .p-price-wrapper .price-final { font-family: var(--mm-font-serif); font-weight: 500; font-size: clamp(30px, 2.6vw, 38px); line-height: 1; color: var(--mm-label); }
#content-wrapper:has(#more-matcha-product) .p-price-wrapper .price-measure { color: var(--mm-label-dim); font-size: 13px; }
/* price 0 Kč = not set in Shoptet yet: hide it (miyabi.js marks OUR wrapper) */
#content-wrapper:has(#more-matcha-product.mm-p-noprice) .p-price-wrapper { display: none; }
#content-wrapper:has(#more-matcha-product) .detail-parameters { margin: 0 0 16px; padding: 0; border: 0; background: transparent; }
#content-wrapper:has(#more-matcha-product) .detail-parameter { display: flex; gap: 8px; align-items: center; padding: 2px 0; border: 0; background: transparent; color: var(--mm-label-dim); font-size: 14px; }
#content-wrapper:has(#more-matcha-product) .detail-parameter * { color: inherit; }
/* Shoptet colours availability inline (red/green); on black we use one calm label colour */
#content-wrapper:has(#more-matcha-product) .detail-parameter-availability .availability-label { color: var(--mm-label) !important; font-weight: 500; }
#content-wrapper:has(#more-matcha-product) .detail-parameter-product-code { font-size: 12px; opacity: .7; }

/* quantity + "Do košíku" */
#content-wrapper:has(#more-matcha-product) .p-to-cart-block { margin: 0; padding: 0; background: transparent; }
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .add-to-cart { display: flex; align-items: stretch; gap: 16px; }
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .quantity {
  display: inline-flex; align-items: center; position: relative; flex: 0 0 auto;
  height: 56px; min-width: 132px; border: 1px solid var(--mm-tin-line); border-radius: 1px; background: transparent;
}
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .quantity input.amount {
  width: 44px; height: 100%; margin: 0 44px; padding: 0; border: 0; background: transparent;
  color: var(--mm-label); font-family: var(--mm-font-body); font-weight: 500; font-size: 16px; text-align: center; box-shadow: none;
}
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .quantity button.increase,
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .quantity button.decrease {
  position: absolute; top: 0; bottom: 0; width: 44px; height: auto; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; color: var(--mm-label); font-size: 18px; line-height: 1;
}
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .quantity button.increase { right: 0; }
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .quantity button.decrease { left: 0; }
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .quantity button:hover { background: rgba(255,255,255,.06); }
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .quantity [class*="__sign"] { color: var(--mm-label); }
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .add-to-cart-button {
  flex: 1; min-width: 0; height: 56px; margin: 0; padding: 0 20px; border: 0; border-radius: 1px;
  background: var(--mm-label); color: var(--mm-tin); box-shadow: none; text-shadow: none;
  font-family: var(--mm-font-body); font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  transition: background .5s var(--mm-ease);
}
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .add-to-cart-button i { color: inherit; }
/* phones: keep "Do košíku" on one line next to the quantity box */
@media (max-width: 480px) {
  #content-wrapper:has(#more-matcha-product) .p-to-cart-block .add-to-cart { gap: 10px; }
  #content-wrapper:has(#more-matcha-product) .p-to-cart-block .quantity { min-width: 116px; }
  #content-wrapper:has(#more-matcha-product) .p-to-cart-block .quantity input.amount { margin: 0 36px; width: 44px; }
  #content-wrapper:has(#more-matcha-product) .p-to-cart-block .quantity button.increase,
  #content-wrapper:has(#more-matcha-product) .p-to-cart-block .quantity button.decrease { width: 36px; }
  #content-wrapper:has(#more-matcha-product) .p-to-cart-block .add-to-cart-button { padding: 0 12px; letter-spacing: .12em; white-space: nowrap; }
}
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .add-to-cart-button:hover { background: #fff; color: var(--mm-tin); }
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .add-to-cart-button:focus-visible { outline: 1px solid var(--mm-label); outline-offset: 4px; }
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .add-to-cart-button[disabled],
#content-wrapper:has(#more-matcha-product) .p-to-cart-block .add-to-cart-button.disabled { opacity: .45; }

/* print / ask / share */
#content-wrapper:has(#more-matcha-product) .social-buttons-wrapper .link-icons { justify-content: flex-start; }
#content-wrapper:has(#more-matcha-product) .social-buttons-wrapper { margin-top: 20px; padding: 16px 0 0; border-top: 1px solid var(--mm-tin-line); background: transparent; }
#content-wrapper:has(#more-matcha-product) .social-buttons-wrapper .link-icon,
#content-wrapper:has(#more-matcha-product) .social-buttons-wrapper .link-icon i { color: var(--mm-label-dim); }
#content-wrapper:has(#more-matcha-product) .social-buttons-wrapper .link-icon:hover { color: var(--mm-label); }

/* Popis / Diskuze tabs: hidden on the Miyabi page (owner request 2026-10-18; our sections replace the description).
   To bring them back, delete this one rule. */
#content-wrapper:has(#more-matcha-product) .p-detail-tabs-wrapper { display: none; }
/* tabs (Popis / Diskuze) below our sections */
#content-wrapper:has(#more-matcha-product) .p-detail-full-width,
#content-wrapper:has(#more-matcha-product) .p-detail-full-width .container-full-width,
#content-wrapper:has(#more-matcha-product) .shp-tabs-wrapper,
#content-wrapper:has(#more-matcha-product) .tab-content { background: transparent; color: var(--mm-label); }
#content-wrapper:has(#more-matcha-product) .p-detail-tabs-wrapper { max-width: calc(var(--mm-max) + 2 * var(--mm-gutter)); margin: 0 auto; padding: 0 calc(var(--mm-gutter) - 16px) var(--mm-section); }
#content-wrapper:has(#more-matcha-product) :is(.shp-tabs-row, .shp-tabs-holder, .shp-tabs, .shp-tab, .responsive-nav) { background: transparent; border-color: var(--mm-tin-line); box-shadow: none; }
#content-wrapper:has(#more-matcha-product) .shp-tabs .shp-tab a { color: var(--mm-label-dim); background: transparent; border-color: var(--mm-tin-line); font-family: var(--mm-font-body); }
#content-wrapper:has(#more-matcha-product) .shp-tabs .shp-tab.active a { color: var(--mm-label); border-bottom-color: var(--mm-label); }
#content-wrapper:has(#more-matcha-product) .description-inner,
#content-wrapper:has(#more-matcha-product) .description-inner * { color: var(--mm-label-dim); }
#content-wrapper:has(#more-matcha-product) .description-inner :is(h2, h3, h4, strong) { color: var(--mm-label); }
#content-wrapper:has(#more-matcha-product) .description-inner { font-family: var(--mm-font-body); font-weight: 400; max-width: 72ch; }
#content-wrapper:has(#more-matcha-product) .navigation-btn { background: transparent; color: var(--mm-label); border-color: var(--mm-tin-line); }
#content-wrapper:has(#more-matcha-product) .discussion-wrapper { color: var(--mm-label); }

/* =====================================================================
   B) OUR BLOCKS — hero pieces placed into the native hero by miyabi.js
   ===================================================================== */
#more-matcha-product [data-mm-p-hero] { display: none; } /* parked pieces stay hidden until JS moves them */

#content-wrapper:has(#more-matcha-product) :is(.mm-p-stage, .mm-p-series, .mm-p-intro, .mm-p-buynote),
#content-wrapper:has(#more-matcha-product) :is(.mm-p-stage, .mm-p-series, .mm-p-intro, .mm-p-buynote) * { box-sizing: border-box; }
#content-wrapper:has(#more-matcha-product) :is(.mm-p-series, .mm-p-intro, .mm-p-buynote) :where(p, ul, li, figure) { margin: 0; padding: 0; list-style: none; }

/* stage: spotlight + tin + floor shadow */
#content-wrapper:has(#more-matcha-product) .mm-p-stage { position: relative; display: grid; place-items: center; margin: 0; padding: clamp(32px, 5vw, 80px) 0 clamp(24px, 3vw, 40px); }
#content-wrapper:has(#more-matcha-product) .mm-p-stage > * { grid-area: 1 / 1; }
/* glow stays inside the image column horizontally (radial closest-side fades to 0 at its own edges), so nothing gets clipped */
#content-wrapper:has(#more-matcha-product) .mm-p-stage__light { position: absolute; inset: -25% 0 -10%; pointer-events: none; z-index: 0; font-size: 0; opacity: .8;
  background: radial-gradient(closest-side at 50% 48%,
    rgba(241,237,228,.150) 0%, rgba(241,237,228,.135) 12%, rgba(241,237,228,.112) 24%, rgba(241,237,228,.086) 36%,
    rgba(241,237,228,.060) 48%, rgba(241,237,228,.038) 60%, rgba(241,237,228,.020) 72%, rgba(241,237,228,.008) 84%, rgba(241,237,228,0) 100%);
  filter: blur(24px); }
#content-wrapper:has(#more-matcha-product) .mm-p-stage__tin { position: relative; z-index: 2; display: block; width: min(100%, 680px); }
#content-wrapper:has(#more-matcha-product) .mm-p-stage__tin img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
#content-wrapper:has(#more-matcha-product) .mm-p-stage__floor { position: absolute; z-index: 1; font-size: 0; bottom: clamp(16px, 2.6vw, 32px); left: 50%; width: min(90%, 640px); height: 48px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0,0,0,.75), rgba(0,0,0,.35) 55%, transparent); filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) {
  #content-wrapper:has(#more-matcha-product) .mm-p-stage:not(.is-in) .mm-p-stage__tin { opacity: 0; transform: translateY(24px); }
  #content-wrapper:has(#more-matcha-product) .mm-p-stage__tin { transition: opacity 1.6s var(--mm-ease), transform 1.8s var(--mm-ease); }
}

#content-wrapper:has(#more-matcha-product) .mm-p-series { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--mm-label-dim); }
#content-wrapper:has(#more-matcha-product) .mm-p-series span { font-family: var(--mm-font-serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 17px; color: var(--mm-label); padding-right: 14px; border-right: 1px solid var(--mm-tin-line); }

#content-wrapper:has(#more-matcha-product) .mm-p-kicker { font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--mm-label-dim); }
#content-wrapper:has(#more-matcha-product) .mm-p-notes { display: flex; align-items: stretch; gap: 18px; margin-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--mm-tin-line); border-bottom: 1px solid var(--mm-tin-line); }
#content-wrapper:has(#more-matcha-product) .mm-p-notes p { flex: 1; display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; padding: 14px 0; font-family: var(--mm-font-serif); font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); color: var(--mm-label); }
#content-wrapper:has(#more-matcha-product) .mm-p-notes p span { color: var(--mm-label-dim); }
#content-wrapper:has(#more-matcha-product) .mm-p-notes__kanji { display: block; width: auto; height: 30px; max-width: none; align-self: center; padding: 10px 0 10px 18px; border-left: 1px solid var(--mm-tin-line); box-sizing: content-box; }
#content-wrapper:has(#more-matcha-product) .mm-p-lead { margin-top: 18px; font-size: 16px; line-height: 1.65; font-weight: 400; color: var(--mm-label-dim); max-width: 48ch; }
#content-wrapper:has(#more-matcha-product) .mm-p-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
#content-wrapper:has(#more-matcha-product) .mm-p-chips li { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; border: 1px solid var(--mm-tin-line); font-size: 14px; color: var(--mm-label); }
#content-wrapper:has(#more-matcha-product) .mm-p-chips strong { font-weight: 500; }
#content-wrapper:has(#more-matcha-product) .mm-p-chips span { color: var(--mm-label-dim); font-size: 12px; }
#content-wrapper:has(#more-matcha-product) .mm-p-buynote { margin-top: 16px; font-size: 14px; color: var(--mm-label-dim); }
#content-wrapper:has(#more-matcha-product) .mm-p-buynote a { color: var(--mm-label); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* =====================================================================
   C) OUR SECTIONS (#more-matcha-product, placed full width under the hero)
   ===================================================================== */
#more-matcha-product {
  --mm-ink: var(--mm-label); --mm-ink-2: var(--mm-label-dim); --mm-line: var(--mm-tin-line); --mm-matcha: var(--mm-powder);
  font-family: var(--mm-font-body); font-weight: 400; font-size: 16px; line-height: 1.65; color: var(--mm-label);
  -webkit-font-smoothing: antialiased; overflow-x: clip; text-align: left;
}
#more-matcha-product, #more-matcha-product * { box-sizing: border-box; }
#more-matcha-product :where(h1, h2, h3, p, ol, ul, dl, dd, figure) { margin: 0; padding: 0; }
#more-matcha-product :where(ol, ul) { list-style: none; }
#more-matcha-product :where(h2, h3) { color: inherit; text-transform: none; }
#more-matcha-product img { display: block; max-width: 100%; height: auto; }
#more-matcha-product :where(h2, h3, p) { overflow-wrap: break-word; text-wrap: pretty; }
#more-matcha-product :where(h2) { text-wrap: balance; }
#more-matcha-product :where(a):focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
#more-matcha-product .mm-p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#more-matcha-product .mm-p-wrap { max-width: calc(var(--mm-max) + 2 * var(--mm-gutter)); margin-inline: auto; padding-inline: var(--mm-gutter); }
#more-matcha-product .mm-p-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--mm-ink-2); margin-bottom: 16px; }
#more-matcha-product .mm-p-h2 { font-family: var(--mm-font-serif); font-weight: 500; font-size: clamp(34px, 3.8vw, 60px); line-height: 1.06; letter-spacing: -.01em; color: var(--mm-ink); }
#more-matcha-product .mm-p-h2 em { font-style: italic; }

/* facts strip */
#more-matcha-product .mm-p-facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--mm-tin-line); max-width: calc(var(--mm-max) + 2 * var(--mm-gutter)); margin: 0 auto; padding-inline: var(--mm-gutter); }
@media (min-width: 900px) { #more-matcha-product .mm-p-facts { grid-template-columns: repeat(4, 1fr); } }
#more-matcha-product .mm-p-facts > div { padding: 18px 16px 22px 0; }
#more-matcha-product .mm-p-facts__k { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--mm-label-dim); }
#more-matcha-product .mm-p-facts__v { font-size: 15px; font-weight: 500; margin-top: 4px; }

/* Proč Miyabi */
#more-matcha-product .mm-p-promise { padding: var(--mm-section) 0; text-align: center; }
#more-matcha-product .mm-p-promise__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 40px); margin-top: clamp(36px, 4vw, 56px); }
@media (min-width: 900px) { #more-matcha-product .mm-p-promise__list { grid-template-columns: repeat(4, 1fr); } }
#more-matcha-product .mm-p-promise__list picture { display: block; width: min(100%, 180px); aspect-ratio: 1; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--mm-tin-line), 0 18px 40px rgba(0,0,0,.45); }
#more-matcha-product .mm-p-promise__list img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--mm-ease); }
@media (hover: hover) { #more-matcha-product .mm-p-promise__list li:hover img { transform: scale(1.06); } }
#more-matcha-product .mm-p-promise__list h3 { font-family: var(--mm-font-body); font-size: 17px; font-weight: 500; line-height: 1.3; }
#more-matcha-product .mm-p-promise__list p { margin: 8px auto 0; font-size: 15px; color: var(--mm-ink-2); max-width: 28ch; }

/* 雅 */
#more-matcha-product .mm-p-name { padding: var(--mm-section) 0; }
#more-matcha-product .mm-p-name__grid { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { #more-matcha-product .mm-p-name__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); } }
#more-matcha-product .mm-p-name__kanji { display: block; justify-self: center; width: min(62vw, 340px); }
#more-matcha-product .mm-p-name__kanji img { width: 100%; }
#more-matcha-product .mm-p-name__copy > p:last-child { margin-top: 20px; color: var(--mm-label-dim); max-width: 44ch; font-size: 17px; }
#more-matcha-product .mm-p-name .mm-p-h2 em { color: var(--mm-powder); }

/* Jak chutná */
#more-matcha-product .mm-p-taste { padding: var(--mm-section) 0; }
#more-matcha-product .mm-p-taste__grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { #more-matcha-product .mm-p-taste__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); } }
#more-matcha-product .mm-p-taste__media picture { display: block; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 0 0 1px var(--mm-tin-line), 0 30px 60px rgba(0,0,0,.5); }
#more-matcha-product .mm-p-taste__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.45); transform-origin: 50% 60%; }
#more-matcha-product .mm-p-taste__note { margin-top: 20px; font-size: 18px; color: var(--mm-ink-2); max-width: 46ch; }
#more-matcha-product .mm-p-profile { margin-top: 32px; background: rgba(241,237,228,.04); border: 1px solid var(--mm-tin-line); padding: clamp(24px, 3vw, 36px); }
#more-matcha-product .mm-p-profile__rows { display: grid; gap: 14px; }
#more-matcha-product .mm-p-profile__row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 16px; }
#more-matcha-product .mm-p-profile__k { font-size: 15px; font-weight: 500; }
#more-matcha-product .mm-p-profile__bar { font-size: 14px; color: var(--mm-label-dim); }
#more-matcha-product .mm-p-profile__row.has-bars .mm-p-profile__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 300px; }
#more-matcha-product .mm-p-seg { display: block; height: 8px; background: rgba(241,237,228,.14); position: relative; overflow: hidden; }
#more-matcha-product .mm-p-seg::after { content: ""; position: absolute; inset: 0; background: var(--mm-powder); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--mm-ease); }
#more-matcha-product .mm-p-seg.is-on::after { transform: scaleX(1); }
#more-matcha-product.mm-js-motion .mm-p-profile:not(.is-in) .mm-p-seg::after { transform: scaleX(0); }
#more-matcha-product .mm-p-seg:nth-of-type(2)::after { transition-delay: .08s; }
#more-matcha-product .mm-p-seg:nth-of-type(3)::after { transition-delay: .16s; }
#more-matcha-product .mm-p-seg:nth-of-type(4)::after { transition-delay: .24s; }
#more-matcha-product .mm-p-seg:nth-of-type(5)::after { transition-delay: .32s; }
#more-matcha-product .mm-p-profile__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--mm-line); }
#more-matcha-product .mm-p-profile__foot p { font-size: 15px; font-weight: 500; }
#more-matcha-product .mm-p-profile__foot span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mm-ink-2); margin-bottom: 4px; }

/* Uji: clean deep-green panel */
#more-matcha-product .mm-p-uji { padding: 0 var(--mm-gutter) clamp(24px, 3vw, 40px); }
#more-matcha-product .mm-p-uji > .mm-p-wrap {
  position: relative; overflow: hidden;
  padding: clamp(40px, 5vw, 80px) clamp(20px, 4vw, 64px);
  background-color: var(--mm-deep);
  background-image: var(--mm-grain), radial-gradient(80% 90% at 15% 0%, rgba(169,204,85,.10), rgba(169,204,85,.04) 45%, transparent 75%);
  box-shadow: 0 40px 80px rgba(0,0,0,.35);
}
#more-matcha-product .mm-p-uji__grid { display: grid; gap: clamp(40px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { #more-matcha-product .mm-p-uji__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
#more-matcha-product .mm-p-uji__copy p:not(.mm-p-eyebrow) { margin-top: 18px; color: var(--mm-label-dim); font-size: 17px; max-width: 46ch; }
#more-matcha-product .mm-p-uji__media { position: relative; }
#more-matcha-product .mm-p-uji__media picture { display: block; overflow: hidden; }
#more-matcha-product .mm-p-uji__kanji { position: absolute; left: clamp(16px, 5%, 48px); bottom: calc(clamp(16px, 4%, 40px) + 34px); writing-mode: vertical-rl; font-family: var(--mm-font-kanji); font-size: clamp(48px, 5.4vw, 88px); line-height: 1; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.35); pointer-events: none; }
#more-matcha-product .mm-p-uji__media figcaption { margin-top: 14px; font-size: 13px; color: var(--mm-label-dim); }

/* Rituál: light-grey panel, light-theme colours inside */
#more-matcha-product .mm-p-ritual { padding: 0 var(--mm-gutter) var(--mm-section); }
#more-matcha-product .mm-p-ritual > .mm-p-wrap {
  --mm-ink: #141413; --mm-ink-2: #4A4843; --mm-line: rgba(20,20,19,.14); --mm-matcha: var(--mm-matcha-dark);
  background: var(--mm-grey); color: var(--mm-ink);
  padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 64px);
  box-shadow: 0 40px 80px rgba(0,0,0,.35);
}
#more-matcha-product .mm-p-ritual__head { display: grid; gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { #more-matcha-product .mm-p-ritual__head { grid-template-columns: 1fr 1fr; } }
#more-matcha-product .mm-p-ritual__head > p { color: var(--mm-ink-2); font-size: 17px; max-width: 44ch; }
#more-matcha-product .mm-p-steps { display: grid; gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
@media (min-width: 700px) { #more-matcha-product .mm-p-steps { grid-template-columns: repeat(3, 1fr); } }
#more-matcha-product .mm-p-steps picture { display: block; aspect-ratio: 1; overflow: hidden; margin-bottom: 20px; }
#more-matcha-product .mm-p-steps img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--mm-ease); }
@media (hover: hover) { #more-matcha-product .mm-p-steps li:hover img { transform: scale(1.04); } }
#more-matcha-product .mm-p-steps__n { display: block; font-family: var(--mm-font-serif); font-style: italic; font-weight: 500; font-size: 20px; color: var(--mm-matcha); padding-top: 14px; border-top: 1px solid var(--mm-line); }
#more-matcha-product .mm-p-steps h3 { font-family: var(--mm-font-body); font-size: 20px; font-weight: 500; margin: 6px 0; color: var(--mm-ink); }
#more-matcha-product .mm-p-steps p { color: var(--mm-ink-2); max-width: 36ch; }

/* Matcha má ráda tmu */
#more-matcha-product .mm-p-dark { padding: var(--mm-section) 0; }
#more-matcha-product .mm-p-dark__grid { display: grid; gap: 24px; }
@media (min-width: 960px) { #more-matcha-product .mm-p-dark__grid { grid-template-columns: 1.3fr 1fr; align-items: end; } }
#more-matcha-product .mm-p-dark__title { font-family: var(--mm-font-serif); font-weight: 500; font-size: clamp(48px, 6.4vw, 104px); line-height: .98; letter-spacing: -.015em; }
#more-matcha-product .mm-p-dark__title em { color: var(--mm-powder); }
#more-matcha-product .mm-p-dark__copy { display: grid; gap: 14px; color: var(--mm-label-dim); font-size: 17px; max-width: 44ch; }

/* sticky bar */
#more-matcha-product .mm-p-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; pointer-events: none; transform: translateY(100%); transition: transform .8s var(--mm-ease); }
#more-matcha-product .mm-p-bar.is-visible { transform: none; pointer-events: auto; }
#more-matcha-product .mm-p-bar__inner { display: flex; align-items: center; gap: 24px; background: rgba(14,14,13,.95); color: var(--mm-label);
  padding: 10px var(--mm-gutter) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mm-tin-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#more-matcha-product .mm-p-bar__name { font-family: var(--mm-font-serif); font-weight: 500; text-transform: uppercase; font-size: 20px; letter-spacing: .05em; }
#more-matcha-product .mm-p-bar__name span { font-family: var(--mm-font-body); font-size: 12px; color: var(--mm-label-dim); letter-spacing: .14em; margin-left: 10px; }
#more-matcha-product .mm-p-bar__price { margin-left: auto; font-family: var(--mm-font-serif); font-weight: 500; font-size: 20px; }
#more-matcha-product .mm-p-cta {
  flex: 0 0 auto; height: 46px; padding-inline: 28px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--mm-label); color: var(--mm-tin); text-decoration: none; border-radius: 1px;
  font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; transition: background .5s var(--mm-ease);
}
#more-matcha-product .mm-p-cta:hover { background: #fff; color: var(--mm-tin); }
@media (max-width: 480px) { #more-matcha-product .mm-p-bar__price { display: none; } #more-matcha-product .mm-p-cta { margin-left: auto; padding-inline: 20px; } }

/* reveal (JS adds .mm-js-motion; everything is visible without JS) */
#more-matcha-product.mm-js-motion [data-mm-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 1.1s var(--mm-ease), transform 1.1s var(--mm-ease); transition-delay: var(--mm-d, 0s); }
#more-matcha-product.mm-js-motion [data-mm-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  #more-matcha-product *, #more-matcha-product *::before, #more-matcha-product *::after { transition-duration: .01ms !important; animation: none !important; }
}
