/*
 * Maman & Moi: base and shared components (kit sheets 01, 02, 03, 06).
 * Phone first. Breakpoints: md 600 px, lg 1024 px (min-width only).
 * Every page loads tokens.css, base.css, shell.css and widgets.css, then its own file.
 */

/* ---------- Reset and type ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--mm-header-h) + 16px); }
body {
  margin: 0; background: var(--mm-white); color: var(--mm-navy);
  font: 400 var(--mm-fs-body)/1.5 var(--mm-font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.has-sticky-bar { padding-bottom: var(--mm-sticky-h); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd, fieldset { margin: 0; }
:where(ul[class], ol[class]) { padding: 0; list-style: none; }   /* no weight, so any class can set its own padding */
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3, .hd {
  font-family: var(--mm-font-head); font-weight: 600; font-stretch: 92%;
  letter-spacing: -.015em; text-wrap: balance;
}
h1, .h1 { font-size: var(--mm-fs-h1); line-height: 1.12; }
h2, .h2 { font-size: var(--mm-fs-h2); line-height: 1.22; }
h3, .h3 { font-size: var(--mm-fs-h3); line-height: 1.28; }
.display { font-family: var(--mm-font-head); font-weight: 700; font-stretch: 92%; letter-spacing: -.015em; font-size: min(var(--mm-fs-display), 12.5vw); line-height: 1.06; }   /* the vw cap only bites when a reader's larger text would push "Hartbeespoort" off a small phone */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }
.small { font-size: var(--mm-fs-small); line-height: 1.25rem; }
.cap { font-size: .8125rem; line-height: 1.125rem; color: var(--mm-grey-700); }
.lbl { font: 700 var(--mm-fs-label)/1rem var(--mm-font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--mm-grey-700); }
.price { font: 700 var(--mm-fs-price)/1.33 var(--mm-font-text); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

a { color: var(--mm-navy); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--mm-link-hover, var(--mm-navy-hover)); text-decoration-style: dashed; text-decoration-thickness: 2px; }
/* On navy the darker navy would vanish (1.4:1), so links there keep white unless they set their own hover */
.on-navy, .skip { --mm-link-hover: var(--mm-white); }

:focus-visible { outline: 2px solid var(--mm-navy); outline-offset: 3px; }
.on-navy :focus-visible { outline-color: var(--mm-mint); }

.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--mm-navy); color: #fff; padding: 12px 16px; border-radius: var(--mm-r-sm); font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--mm-content) + 2 * var(--mm-margin)); margin-inline: auto; padding-inline: var(--mm-margin); }
.section { padding-block: var(--mm-s6); }
@media (min-width: 1024px) { .section { padding-block: var(--mm-s8); } }
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mm-s5) var(--mm-gutter); }
@media (min-width: 600px)  { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* A row that scrolls sideways on a phone (complete the set, chips) */
.scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: var(--mm-gutter); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(-1 * var(--mm-margin)); padding-inline: var(--mm-margin); scroll-padding-inline: var(--mm-margin); }
.scroll-row > * { scroll-snap-align: start; }
@media (min-width: 1024px) { .scroll-row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; } }

/* ---------- Section heading with the three-stitch underline ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: var(--mm-s5); }
.sec-head h2::after, .stitch-under::after {
  content: ""; display: block; width: 40px; height: 6px; margin-top: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6'%3E%3Cline x1='3' y1='3' x2='31' y2='3' fill='none' stroke='%2375D3B9' stroke-width='2' stroke-linecap='round' stroke-dasharray='5 7'/%3E%3C/svg%3E") no-repeat;
}
.stitch-under.is-navy::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6'%3E%3Cline x1='3' y1='3' x2='31' y2='3' fill='none' stroke='%2300225C' stroke-width='2' stroke-linecap='round' stroke-dasharray='5 7'/%3E%3C/svg%3E"); }
.sec-head a { font-weight: 700; min-height: var(--mm-tap); display: inline-flex; align-items: center; }

/* ---------- Running stitch ---------- */
.st { fill: none; stroke: var(--mm-mint); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 7; }
.st-navy { stroke: var(--mm-navy); } .st-white { stroke: #fff; } .st-coral { stroke: var(--mm-coral); }
.st-sm { stroke-width: 1.5; stroke-dasharray: 3 5; }
.st-ring { stroke-dasharray: .4 .6; }   /* with pathLength="16" */
.st-rect { stroke-dasharray: .42 .58; } /* with pathLength 48, 40 or 32 */
.guide { fill: none; stroke: var(--mm-hole); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .1 7; }
/* Straight divider: a CSS repeating gradient (square ends are fine at 2 px) */
.stitch-line { height: 2px; border: 0; margin: 0; background: repeating-linear-gradient(90deg, var(--mm-mint) 0 7px, transparent 7px 12px); }
.on-navy .stitch-line { background-image: repeating-linear-gradient(90deg, var(--mm-mint) 0 7px, transparent 7px 12px); }
/* Frame round a rectangle: put <svg class="frame" aria-hidden="true"> with a <rect pathLength="48" class="st st-rect"> inside a position:relative box */
.frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.dd { fill: none; stroke: var(--mm-navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 4 5; }
.dd-s { fill: none; stroke: var(--mm-navy); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Icons (sprite in partials/icons.html: <svg class="ic"><use href="#i-cart"/></svg>) ---------- */
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 20px; height: 20px; }
.ic-l { width: 32px; height: 32px; stroke-width: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  font: 700 1rem/1.25rem var(--mm-font-text); min-height: 48px; padding: 0 22px; border-radius: var(--mm-r-sm);
  border: 2px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; text-decoration: none; white-space: nowrap; text-align: center; position: relative;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
@media (max-width: 599px) { .btn-phone-block { width: 100%; min-height: 52px; } }
.btn-pri { background: var(--mm-navy); color: #fff; }
.btn-pri:hover { background: var(--mm-navy-hover); color: #fff; }
.btn-pri:active { background: var(--mm-navy-press); }
.btn-sec { background: #fff; color: var(--mm-navy); border-color: var(--mm-navy); }
.btn-sec:hover { background: var(--mm-mint-100); color: var(--mm-navy); }
.btn-sec:active { background: var(--mm-mint-200); }
.btn-acc { background: var(--mm-coral); color: var(--mm-navy); }   /* once per view */
.btn-acc:hover { background: var(--mm-accent-hover); color: var(--mm-navy); }
.btn-acc:active { background: var(--mm-accent-press); }
.btn-mint { background: var(--mm-mint); color: var(--mm-navy); }    /* the "added" state and Sign up on navy */
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn-txt { background: none; padding: 0 2px; min-height: var(--mm-tap); color: var(--mm-navy); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.btn-txt:hover { text-decoration-style: dashed; text-decoration-thickness: 2px; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--mm-disabled-bg); color: var(--mm-disabled-fg); border-color: transparent; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.icb { width: var(--mm-tap); height: var(--mm-tap); border-radius: var(--mm-r-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--mm-navy); flex: none; position: relative; text-decoration: none; }
.icb:hover { background: var(--mm-mint-100); color: var(--mm-navy); }
.on-navy .icb, .on-navy .icb:hover { color: #fff; }
.on-navy .icb:hover { background: var(--mm-hover-on-navy); }

/* Stitched spinner (sheet 03): <svg class="spinner" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" pathLength="12" class="st st-white" style="stroke-dasharray:.45 .55"/></svg> */
.spinner { width: 22px; height: 22px; animation: mm-spin 800ms linear 3; transform-origin: center; }
@keyframes mm-spin { to { transform: rotate(360deg); } }

/* ---------- Fields ---------- */
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > label, .fl { font: 600 .875rem/1.25rem var(--mm-font-text); color: var(--mm-navy); }
.in, .sel, .ta {
  font: 400 1rem/1.375rem var(--mm-font-text); color: var(--mm-navy); min-height: 48px; width: 100%;
  border: 1.5px solid var(--mm-line-strong); border-radius: var(--mm-r-sm); padding: 0 14px; background: #fff;
}
.ta { padding: 12px 14px; min-height: 96px; resize: vertical; }
.sel { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 9.5 12 15l5.5-5.5' fill='none' stroke='%2300225C' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center; }
.in:hover, .sel:hover, .ta:hover { border-color: var(--mm-navy); }
.in:focus, .sel:focus, .ta:focus { outline: none; border: 2px solid var(--mm-navy); box-shadow: 0 0 0 4px var(--mm-mint-200); padding-left: 13.5px; }
.in[aria-invalid="true"], .ta[aria-invalid="true"] { border: 2px solid var(--mm-error); padding-left: 13.5px; }
.in:disabled { background: var(--mm-field-off-bg); border-color: var(--mm-field-off-line); color: var(--mm-disabled-fg); }
.hint { font-size: .8125rem; line-height: 1.125rem; color: var(--mm-grey-700); }
.err { font: 600 .8125rem/1.125rem var(--mm-font-text); color: var(--mm-error); display: flex; gap: 6px; align-items: center; }

/* Radios and checkboxes: 22 px controls in a 44 px row */
.rd, .cb { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border: 2px solid var(--mm-navy); margin: 0; display: grid; place-content: center; background: #fff; flex: none; }
.rd { border-radius: 50%; }
.rd::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mm-navy); transform: scale(0); }
.rd:checked::before { transform: scale(1); }
.cb { border-radius: 4px; }
.cb:checked { background: var(--mm-navy); }
.cb::before { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); }
.cb:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.opt { display: flex; align-items: center; gap: 12px; min-height: var(--mm-tap); font: 500 1rem/1.375rem var(--mm-font-text); cursor: pointer; }

/* Quantity stepper */
.step { display: inline-flex; align-items: center; border: 1.5px solid var(--mm-line-strong); border-radius: var(--mm-r-sm); height: 48px; flex: none; }
.step button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--mm-navy); border-radius: var(--mm-r-sm); }
.step button:hover:not(:disabled) { background: var(--mm-mint-100); }
.step button:disabled { color: var(--mm-glyph-off); cursor: not-allowed; }
.step output { min-width: 36px; text-align: center; font: 700 1rem/1.375rem var(--mm-font-text); font-variant-numeric: tabular-nums; }

/* ---------- Chips (filters, sub-groups, amounts, kinds of night) ---------- */
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--mm-tap); padding: 0 14px;
  border: 1.5px solid var(--mm-line-strong); border-radius: var(--mm-r-sm); background: #fff; color: var(--mm-navy);
  font: 600 .9375rem/1.25rem var(--mm-font-text); white-space: nowrap; text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--mm-navy); color: var(--mm-navy); text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-current], .chip.is-on { background: var(--mm-navy); border-color: var(--mm-navy); color: #fff; }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; font: 700 .75rem/.875rem var(--mm-font-text); letter-spacing: .03em; padding: 6px 9px; border-radius: var(--mm-r-xs); white-space: nowrap; color: var(--mm-navy); }
.tag-tog { background: var(--mm-mint-200); outline: 1px dashed var(--mm-tag-stitch); outline-offset: -4px; padding: 8px 11px; }
.tag-new { background: var(--mm-coral-100); outline: 1px dashed var(--mm-coral); outline-offset: -4px; padding: 8px 11px; }
.tag-sale { background: var(--mm-coral); }
.tag-out { background: #fff; border: 1.5px solid var(--mm-navy); }
.tag-verified { background: var(--mm-mint-100); }
/* Warmth marks inside the TOG tag: <span class="wd" aria-hidden="true"><i class="on"></i><i class="on"></i><i></i><i></i></span> */
.wd { display: inline-flex; gap: 2px; align-items: flex-end; }
.wd i { display: block; width: 3px; height: 9px; border-radius: 2px; background: var(--mm-mark-off); }
.wd i.on { background: var(--mm-navy); }

/* ---------- Stars ---------- */
.stars { display: inline-flex; align-items: center; gap: 6px; }
.stars-row { position: relative; display: inline-flex; gap: 1px; }
.stars-row svg { width: 14px; height: 14px; fill: var(--mm-navy); }
.stars-lg .stars-row svg { width: 20px; height: 20px; }

/* ---------- Photo slot: her photo fills it (cover crop); where a photo is still missing, the label says what goes there ---------- */
.photo {
  position: relative; overflow: hidden; border-radius: var(--mm-r-md); aspect-ratio: 4 / 5; width: 100%;
  background: var(--mm-photo) repeating-linear-gradient(135deg, var(--mm-photo-hatch) 0 8px, transparent 8px 16px);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  color: var(--mm-grey-700); font: 700 .6875rem/.875rem var(--mm-font-text); letter-spacing: .06em; text-transform: uppercase;
}
.photo.r-32 { aspect-ratio: 3 / 2; } .photo.r-11 { aspect-ratio: 1 / 1; } .photo.r-45 { aspect-ratio: 4 / 5; }
.photo.is-mint { background-color: var(--mm-mint-100); }
.photo > span { max-width: 22ch; }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Her AI-generated pictures carry a burned-in label that the crop can hide, so the slot shows its own */
.photo > .ai-tag {
  position: absolute; right: 6px; bottom: 6px; max-width: none; padding: 2px 6px; border-radius: var(--mm-r-xs);
  background: var(--mm-tag-on-photo); color: var(--mm-navy); font: 600 .6875rem/1rem var(--mm-font-text); letter-spacing: .02em; text-transform: none;
}
/* Small slots (thumbs, mini cart, sticky bar) keep just "AI", at the same 11 px floor */
.pd-thumb .ai-more, .pd-sticky-ph .ai-more, .mc-thumb .ai-more, .dr-prod .ai-more, .sr-prod .ai-more, .mg-prod .ai-more { display: none; }
.pd-thumb .ai-tag, .pd-sticky-ph .ai-tag, .mc-thumb .ai-tag, .dr-prod .ai-tag, .sr-prod .ai-tag, .mg-prod .ai-tag { right: 2px; bottom: 2px; padding: 0 4px; line-height: .875rem; }

/* ---------- Print swatches (placeholder patterns until her swatch photos are cropped) ---------- */
.sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--mm-swatch-ring); flex: none; display: inline-block; }
.p1 { background: radial-gradient(var(--mm-navy) 1px, transparent 1.3px) 0 0 / 5px 5px, var(--mm-mint-200); }
.p2 { background: repeating-linear-gradient(45deg, var(--mm-coral) 0 2px, var(--mm-coral-100) 2px 5px); }
.p3 { background: linear-gradient(135deg, var(--mm-navy) 25%, transparent 25%) 0 0 / 6px 6px, var(--mm-dusk-100); }
.p4 { background: radial-gradient(#fff 1px, transparent 1.3px) 0 0 / 5px 5px, var(--mm-grey-700); }
.p5 { background: repeating-linear-gradient(90deg, var(--mm-mint) 0 2px, #fff 2px 4px); }
.p6 { background: radial-gradient(var(--mm-coral) 1.5px, transparent 1.8px) 0 0 / 6px 6px, var(--mm-coral-50); }
.p7 { background: repeating-linear-gradient(-45deg, var(--mm-navy) 0 1.5px, var(--mm-mint-100) 1.5px 5px); }
.p8 { background: radial-gradient(var(--mm-mint) 2px, transparent 2.3px) 0 0 / 7px 7px, var(--mm-dusk-100); }

/* ---------- Product card (sheet 06) ---------- */
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--mm-navy); border-radius: var(--mm-r-md); position: relative; }
.card:hover { color: var(--mm-navy); text-decoration: none; }
.card:focus-visible { outline-offset: 6px; }
.card-pw { position: relative; }
.card-pw .photo + .photo { position: absolute; inset: 0; opacity: 0; transition: opacity var(--mm-t-step) var(--mm-ease-soft); }
@media (hover: hover) and (min-width: 1024px) { .card:hover .card-pw .photo + .photo { opacity: 1; } }
.card-mark { position: absolute; left: 8px; top: 8px; }
.card-tog { position: absolute; left: 8px; bottom: 8px; }
.card-nm { font: 600 .875rem/1.1875rem var(--mm-font-text); min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-nm { text-decoration: underline dashed 2px; text-underline-offset: 4px; }
.card-pr { font: 600 .9375rem/1.25rem var(--mm-font-text); font-variant-numeric: tabular-nums; margin-top: -4px; }
.card-pr s { font-weight: 500; font-size: .875rem; color: var(--mm-grey); margin-left: 8px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; min-height: 20px; gap: 8px; }
.card-sws { display: flex; gap: 4px; align-items: center; }
.card-sws .sw { width: 12px; height: 12px; }
.card-more { font: 600 .75rem/.875rem var(--mm-font-text); color: var(--mm-grey-700); margin-left: 2px; }
.card.is-out .photo { opacity: .55; }
.card.is-out .card-nm, .card.is-out .card-pr { color: var(--mm-grey-700); }
.card .tag { font-size: .75rem; padding: 5px 7px; }
.card .tag-tog, .card .tag-new { padding: 6px 8px; outline-offset: -3px; }
.card-tog .wd { display: none; }
@media (min-width: 600px) {
  .card { gap: 12px; }
  .card-nm { font-size: 1rem; line-height: 1.375rem; min-height: 44px; }
  .card-pr { font-size: 1rem; line-height: 1.375rem; }
  .card-sws .sw { width: 14px; height: 14px; }
  .card-tog .wd { display: inline-flex; }
  .card-mark { left: 12px; top: 12px; } .card-tog { left: 12px; bottom: 12px; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; padding: 0; list-style: none; font-size: var(--mm-fs-small); color: var(--mm-grey-700); }
.crumbs li { display: inline-flex; align-items: center; white-space: nowrap; }
.crumbs a { color: var(--mm-grey-700); min-height: var(--mm-tap); min-width: var(--mm-tap); justify-content: center; display: inline-flex; align-items: center; }
.crumbs [aria-current] { color: var(--mm-navy); font-weight: 700; }
.crumbs .ic { width: 16px; height: 16px; margin-inline: 4px; color: var(--mm-grey-700); }
.back-link { display: inline-flex; align-items: center; gap: 2px; min-height: var(--mm-tap); font-weight: 700; font-size: var(--mm-fs-small); text-decoration: none; }

/* ---------- Notices (sheet 03): tinted panel, icon in a circle, bold first line ---------- */
.ntc { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--mm-r-md); }
.ntc-i { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; }
.ntc-i .ic { width: 18px; height: 18px; }
.ntc strong { display: block; }
.ntc-success { background: var(--mm-mint-100); }
.ntc-error { background: var(--mm-coral-100); }
.ntc-info { background: var(--mm-dusk-100); }
.ntc .ntc-x { margin: -10px -10px -10px auto; }

/* ---------- Accordion (details/summary) ---------- */
.acc { border-top: 1px solid var(--mm-line); }
.acc:last-of-type { border-bottom: 1px solid var(--mm-line); }
.acc > summary { list-style: none; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 700 1.0625rem/1.375rem var(--mm-font-text); cursor: pointer; padding-block: 8px; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .ic { transition: transform var(--mm-t-quick) var(--mm-ease-soft); }
.acc[open] > summary .ic { transform: rotate(180deg); }
.acc-body { padding-bottom: 20px; }
.acc[open] .acc-body { animation: mm-rise4 var(--mm-t-step) var(--mm-ease-soft) both; }

/* ---------- Dialogs: drawers and bottom sheets (open with MM.dialog.open) ---------- */
.dim { position: fixed; inset: 0; background: var(--mm-dim); z-index: 60; opacity: 0; transition: opacity var(--mm-t-step) var(--mm-ease-soft); }
.dim.is-open { opacity: 1; }
.sheet {
  position: fixed; z-index: 61; background: #fff; box-shadow: var(--mm-shadow); display: flex; flex-direction: column;
  left: 0; right: 0; bottom: 0; max-height: 88vh; border-radius: var(--mm-r-lg) var(--mm-r-lg) 0 0;
  transform: translateY(100%); transition: transform var(--mm-t-out) var(--mm-ease-soft);
}
.sheet.is-open { transform: none; transition-duration: var(--mm-t-step); }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--mm-line-strong); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px var(--mm-s4); border-bottom: 1px solid var(--mm-line); }
.sheet-head h2 { font-size: var(--mm-fs-h3); }
.sheet-body { overflow-y: auto; padding: var(--mm-s4); flex: 1; overscroll-behavior: contain; }
.sheet-foot { padding: var(--mm-s3) var(--mm-s4); border-top: 1px solid var(--mm-line); display: flex; gap: 12px; align-items: center; background: #fff; }
/* Side drawers: .sheet.is-side (right, 440 px on a computer) or .sheet.is-left (the phone menu) */
.sheet.is-side, .sheet.is-left { top: 0; bottom: 0; max-height: none; border-radius: 0; width: 100%; }
.sheet.is-side { left: auto; right: 0; transform: translateX(100%); }
.sheet.is-left { right: auto; left: 0; width: min(100%, 420px); transform: translateX(-100%); }
.sheet.is-side.is-open, .sheet.is-left.is-open { transform: none; }
@media (min-width: 1024px) { .sheet.is-side { width: var(--mm-drawer-w); border-radius: var(--mm-r-lg) 0 0 var(--mm-r-lg); } }

/* ---------- Toast (MM.toast) ---------- */
.toasts { position: fixed; z-index: 80; left: var(--mm-margin); right: var(--mm-margin); bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
body.has-sticky-bar .toasts { bottom: calc(var(--mm-sticky-h) + 12px); }
@media (min-width: 1024px) { .toasts { left: auto; right: var(--mm-margin); bottom: auto; top: calc(var(--mm-header-h) + 12px); justify-content: flex-end; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 6px 4px 16px; border-radius: var(--mm-r-sm); box-shadow: var(--mm-shadow); background: var(--mm-navy); color: #fff; font-size: .9375rem; line-height: 1.25rem; max-width: 440px; width: 100%; animation: mm-rise4 var(--mm-t-step) var(--mm-ease-soft) both; }
.toast a, .toast button.toast-act { color: var(--mm-mint); font-weight: 700; min-height: var(--mm-tap); display: inline-flex; align-items: center; padding: 0 10px; margin-left: auto; }
.toast.is-error { background: var(--mm-coral-100); color: var(--mm-navy); }
.toast.is-error a, .toast.is-error button.toast-act { color: var(--mm-navy); text-decoration: underline; }
.toast :focus-visible { outline-color: var(--mm-mint); }
.toast.is-error :focus-visible { outline-color: var(--mm-navy); }

/* ---------- Mock-up note (only in the mock-up: says what is placeholder or demo) ---------- */
.mock-note { display: inline-flex; align-items: center; gap: 6px; font: 600 .75rem/1rem var(--mm-font-text); color: var(--mm-grey-700); background: #fff; border: 1px dashed var(--mm-line-strong); border-radius: var(--mm-r-xs); padding: 4px 8px; }
.ph-text { color: var(--mm-grey-700); }  /* [bracketed placeholder copy] */

/* ---------- Photo to product page: cross-document view transition (progressive; served pages only) ---------- */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: var(--mm-t-step); animation-timing-function: var(--mm-ease-soft); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Motion: below-the-fold rise (core.js adds .is-armed only to blocks below the first screen) ---------- */
@keyframes mm-rise  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes mm-rise4 { from { opacity: 0; transform: translateY(4px); }  to { opacity: 1; transform: none; } }
@keyframes mm-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes mm-draw  { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
[data-reveal].is-armed { opacity: 0; }
[data-reveal].is-shown { animation: mm-rise 600ms var(--mm-ease-soft) both; animation-delay: calc(var(--i, 0) * 80ms); }
/* Running stitch draw: a white path with pathLength="1" inside an SVG <mask>, class "draw" on the mask path.
   Drawn by default (no script, first screen); core.js arms it (hidden) only when it starts below the fold. */
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.draw.is-armed { stroke-dashoffset: 1; }
.draw.is-shown { animation: mm-draw var(--mm-t-stitch) var(--mm-ease-sew) both; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal].is-shown { animation: mm-fade 150ms linear both; animation-delay: 0ms; }
  .draw.is-shown { animation: none; stroke-dashoffset: 0; }
  .spinner { animation: none; }
  .sheet, .sheet.is-open, .dim { transition: opacity 150ms linear; }
  .sheet { opacity: 0; } .sheet.is-open { opacity: 1; }
  .acc > summary .ic { transition: none; }
  .acc[open] .acc-body, .toast { animation: mm-fade 150ms linear both; }
  .card-pw .photo + .photo { transition: opacity 150ms linear; }
  .btn:active { transform: none; }
}
