/* Maxum Mart cards + listing chrome + shared blocks (split from home.css on 2026-11-05, Lane B Step 0; no rule was changed, only moved).
   Contains: trust strip, .block / .row / .rail / .steps (shared by home and listings; kept FIRST because the card rules below must win over the rail rules),
   breadcrumb / listing header / filters / toolbar / product card / grid / pager, content pages, recommendation rails and skeleton cards, 404 help line. Owner: Lane C. */
/* ============================================================
   5. HOME
   ============================================================ */
/* HOME v1 hero + category tiles + "Not sure" panel were moved to docs/old_designs/home_v1.css on 2026-10-30 (homepage v2 uses the hm-* rules in section 10 below). To restore the v1 home: copy docs/old_designs/home_v1.php over app/views/storefront/home.php and append home_v1.css to this file. */
/* trust strip */
.trust { border-bottom: 1px solid var(--mm-line); background: var(--mm-white); }
.trust__list { list-style: none; margin: 0 auto; padding-block: var(--sp-5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-4); }
.trust__list li { display: flex; align-items: flex-start; gap: var(--sp-3); min-width: 0; }
.trust__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mm-teal-tint); color: var(--mm-teal-ink); }
.trust__list strong { display: block; font: 600 var(--fs-sm)/1.3 var(--font-heading); }
.trust__list small { display: block; margin-top: 2px; color: var(--mm-muted); font-size: var(--fs-xs); line-height: 1.4; }
@media (min-width: 860px) {
  .trust__list { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); padding-block: var(--sp-6); }
  .trust__list strong { font-size: var(--fs-md); }
  .trust__list small { font-size: var(--fs-sm); }
}

/* blocks */
.block { padding-block: var(--sp-7); scroll-margin-top: 90px; }
.block--soft { background: var(--mm-surface); }
.block__head { margin-bottom: var(--sp-5); }
.block__head h2 { margin: 0 0 var(--sp-1); font-size: var(--fs-2xl); letter-spacing: -0.015em; }
.block__head p { margin: 0; color: var(--mm-muted); }
.block__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); }
.viewall { display: inline-flex; align-items: center; gap: var(--sp-2); flex: none; min-height: 44px; color: var(--mm-teal-ink); font-weight: 600; font-size: var(--fs-sm); }
.viewall:hover { color: var(--mm-teal-deep); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 860px) { .block { padding-block: var(--sp-8); } .block__head { margin-bottom: var(--sp-6); } }

/* department rows */
.row + .row { padding-top: 0; }
/* rails and footer sit below the fold: let the browser skip their layout/paint until they get close (intrinsic size keeps the scrollbar steady) */
.row { content-visibility: auto; contain-intrinsic-size: auto 520px; }
.rail { position: relative; }
.rail .rail__track.product-grid {
  display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) var(--sp-3); scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail .rail__track::-webkit-scrollbar { display: none; }
.rail .rail__track > .product-card { flex: 0 0 calc((100vw - var(--gutter) * 2 - var(--sp-3)) / 2.25); scroll-snap-align: start; min-width: 0; }
.rail__arrow { display: none; }
@media (min-width: 640px) {
  .rail .rail__track.product-grid { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; gap: var(--sp-4); }
  .rail .rail__track > .product-card { flex-basis: calc((100% - var(--sp-4) * 2) / 3); }
}
@media (min-width: 960px) {
  .rail .rail__track > .product-card { flex-basis: calc((100% - var(--sp-4) * 3) / 4); }
  .rail__arrow {
    display: grid; place-items: center; position: absolute; top: 34%; z-index: 4; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--mm-line); background: var(--mm-white); color: var(--mm-ink); box-shadow: var(--sh-2); cursor: pointer;
  }
  .rail__arrow:hover { border-color: var(--mm-teal-ink); color: var(--mm-teal-ink); }
  .rail__arrow--prev { left: -20px; }
  .rail__arrow--next { right: -20px; }
}

/* how ordering works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); counter-reset: none; }
.steps li { position: relative; padding: var(--sp-4) var(--sp-4) var(--sp-4) 68px; background: var(--mm-white); border: 1px solid var(--mm-line); border-radius: var(--r-md); }
.steps__n { position: absolute; left: var(--sp-4); top: var(--sp-4); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mm-teal-ink); color: var(--mm-white); font: 700 var(--fs-md)/1 var(--font-heading); }
.steps h3 { margin: 0 0 var(--sp-1); font-size: var(--fs-md); font-weight: 700; padding-top: 6px; }
.steps p { margin: 0; color: var(--mm-muted); font-size: var(--fs-sm); }
.steps__note { margin: var(--sp-5) 0 0; color: var(--mm-ink-2); font-size: var(--fs-sm); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
  .steps li { padding: 76px var(--sp-4) var(--sp-5); }
  .steps__n { left: var(--sp-4); top: var(--sp-4); width: 40px; height: 40px; }
  .steps h3 { padding-top: 0; }
}

/* ============================================================
   6. LISTINGS: breadcrumb, header, filters, toolbar, cards, pager
   ============================================================ */
.mm-page { padding-block: var(--sp-3) var(--sp-7); }
.breadcrumb { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); color: var(--mm-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.breadcrumb li + li::before { content: '/'; margin-inline: var(--sp-2); color: var(--mm-control-line); }
.breadcrumb a { color: var(--mm-muted); }
.breadcrumb a:hover { color: var(--mm-teal-ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--mm-ink); font-weight: 600; }

.mm-pagehead { margin: var(--sp-2) 0 var(--sp-5); }
.mm-pagehead h1 { margin: 0 0 var(--sp-2); font-size: var(--fs-2xl); letter-spacing: -0.02em; }
.mm-pagehead p { margin: 0; max-width: 64ch; color: var(--mm-muted); }
/* collection intro: whole text is in the HTML; with JS it is cut to a few lines (site.js) so the products show first */
.mm-intro { max-width: 64ch; }
.mm-intro__text { margin: 0; }
/* clamped from the first paint with JS on (site.js only adds the toggle): no shift when the script runs; the toggle's 44 px is reserved for long intros (.mm-intro--long) so the page head does not grow later */
html.js .mm-intro:not(.is-open) .mm-intro__text, .mm-intro.is-clamped .mm-intro__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mm-intro__toggle {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--mm-teal-ink); font: 600 var(--fs-sm)/1 var(--font-body); text-decoration: underline; text-underline-offset: 3px;
}
.mm-intro__toggle:hover { color: var(--mm-teal-deep); }
@media (min-width: 860px) { html.js .mm-intro:not(.is-open) .mm-intro__text, .mm-intro.is-clamped .mm-intro__text { -webkit-line-clamp: 3; } }
html.js .mm-intro--long:not(.is-open) { padding-bottom: 44px; }   /* room for the Read more toggle that site.js reveals (intro longer than ~200 chars is always cut off) */
html.js .mm-intro--long { position: relative; }
html.js .mm-intro--long .mm-intro__toggle { position: absolute; left: 0; bottom: 0; }
html.js .mm-intro--long.is-open { padding-bottom: 44px; }
.mm-note { margin: var(--sp-6) 0 0; padding: var(--sp-4); border-radius: var(--r-md); background: var(--mm-teal-tint); color: var(--mm-ink-2); font-size: var(--fs-sm); }

.mm-chips { display: flex; gap: var(--sp-2); overflow-x: auto; margin: 0 calc(var(--gutter) * -1) var(--sp-4); padding: 2px var(--gutter); scrollbar-width: none; }
.mm-chips::-webkit-scrollbar { display: none; }
.mm-chips a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--mm-control-line); border-radius: var(--r-pill);
  background: var(--mm-white); color: var(--mm-ink-2); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; transition: border-color .15s, background-color .15s;
}
.mm-chips a:hover { border-color: var(--mm-teal-ink); background: var(--mm-teal-tint); }
.mm-chips a[aria-current] { background: var(--mm-teal-ink); border-color: var(--mm-teal-ink); color: var(--mm-white); }
@media (min-width: 860px) { .mm-chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }

/* layout */
.mm-listing { display: block; }
@media (min-width: 960px) {
  .mm-listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
  .mm-filters { position: sticky; top: 150px; }
}

/* filters */
.mm-filters__head { display: none; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.mm-filters__head h2 { margin: 0; font-size: var(--fs-xl); }
.mm-filters__form { display: grid; gap: var(--sp-5); }
.mm-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.mm-field legend { padding: 0; margin-bottom: var(--sp-3); font: 700 var(--fs-sm)/1.2 var(--font-heading); }
.mm-field__hint { margin: var(--sp-2) 0 0; color: var(--mm-muted); font-size: var(--fs-xs); }
.mm-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-2); color: var(--mm-muted); font-size: var(--fs-sm); }
.mm-range input, .mm-sort select {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--mm-control-line); border-radius: var(--r-sm); background: var(--mm-white); color: var(--mm-ink);
  font: 400 var(--fs-md)/1 var(--font-body);
}
.mm-range input:focus, .mm-sort select:focus { outline: 2px solid var(--mm-teal-ink); outline-offset: 1px; border-color: var(--mm-teal-ink); }
.mm-check { display: flex; align-items: center; gap: var(--sp-3); min-height: 44px; cursor: pointer; font-size: var(--fs-md); }
.mm-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--mm-teal-ink); flex: none; }
.mm-filters__actions { display: grid; gap: var(--sp-2); }
.mm-filters__clear { text-align: center; min-height: 44px; display: grid; place-items: center; color: var(--mm-teal-ink); font-weight: 600; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 959px) {
  html.js .mm-filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
    padding: var(--sp-4) var(--gutter) calc(var(--sp-5) + env(safe-area-inset-bottom)); background: var(--mm-white);
    border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--sh-3);
    transform: translateY(104%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s linear .28s;
  }
  html.js .mm-filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  html.js .mm-filters__head { display: flex; }
  html:not(.js) .mm-filters { margin-bottom: var(--sp-4); padding: var(--sp-4); border: 1px solid var(--mm-line); border-radius: var(--r-md); }
  html:not(.js) .mm-toolbar__filters { display: none; }
  html:not(.js) .mm-sheet-scrim { display: none; }
}
@media (min-width: 960px) { .mm-sheet-scrim { display: none; } .mm-toolbar__filters { display: none; } }

/* toolbar */
.mm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.mm-toolbar__count { flex: 1 0 100%; margin: 0; color: var(--mm-muted); font-size: var(--fs-sm); }
.mm-toolbar__filters { flex: 1 1 0; }
.mm-sort { flex: 1 1 0; display: flex; align-items: center; gap: var(--sp-2); min-width: 0; font-size: var(--fs-sm); color: var(--mm-muted); }
.mm-sort span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mm-sort select { height: 44px; border-radius: var(--r-pill); font-size: 1rem; font-weight: 600; padding-inline: 16px; }   /* 16px: iOS Safari zooms the page when a field under 16px is focused */
@media (min-width: 960px) {
  .mm-toolbar { margin-bottom: var(--sp-5); }
  .mm-toolbar__count { flex: 1 1 auto; }
  .mm-sort { flex: 0 0 auto; }
  .mm-sort span { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; white-space: nowrap; }
  .mm-sort select { width: auto; min-width: 190px; }
}

/* product grid + card */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .mm-listing .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .mm-listing .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--mm-white);
  border: 1px solid var(--mm-line); border-radius: var(--r-md); transition: box-shadow .2s var(--ease), border-color .2s;
}
.product-card:hover { box-shadow: var(--sh-2); border-color: var(--mm-line-strong); transform: none; }
/* product photo stage (IMAGE_STYLE_GUIDE rule 2): contain on the neutral stage, never cover, nothing drawn over it */
.product-card__image { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--mm-stage); }
.product-card__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* sold-out badge still used by the sets page (bundles.php) */
.product-card__badge {
  position: absolute; top: 8px; left: 8px; z-index: 2; padding: 5px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .96); border: 1px solid var(--mm-line); color: var(--mm-ink-2);
  font: 600 var(--fs-xs)/1 var(--font-body); letter-spacing: .01em;
}
.product-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: var(--sp-3) var(--sp-3) var(--sp-4); }
.product-card__title { margin: 0; min-height: 0; font: 600 var(--fs-sm)/1.35 var(--font-heading); }
.product-card__title a {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.35em * 2); color: var(--mm-ink);
}
.product-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-md); }
.product-card__title a:focus-visible { outline: none; }
.product-card__title a:focus-visible::after { outline: 2px solid var(--mm-teal-ink); outline-offset: -2px; }
.product-card__reviews { margin: 0; color: var(--mm-muted); font-size: var(--fs-xs); }
.product-card__stars { color: var(--mm-warn-ink); }
.product-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--sp-2); margin: auto 0 0; }
.product-card__price .price { font: 700 var(--fs-md)/1.2 var(--font-heading); color: var(--mm-ink); }
.price--compare { color: var(--mm-muted); font-size: var(--fs-sm); font-weight: 400; text-decoration: line-through; }
.product-card__status { margin: 0; color: var(--mm-muted); font-size: var(--fs-xs); }
/* sold-out cards: the photo is shown as it is (no dimming or grey filter); the Sold out badge and status line say it */
.product-card--soldout:hover .product-card__image img { transform: none; }
@media (min-width: 640px) { .product-card__body { padding: var(--sp-4); } .product-card__title { font-size: var(--fs-md); } .product-card__price .price { font-size: var(--fs-lg); } }

/* ============================================================
   PRODUCT CARD v2 (design v5, Lane C; COMPONENT_SPEC section 2). Markup: partials/product_card.php.
   Photo = .mm-stage (1:1, neutral stage, object-fit: contain, nothing on top, no transform/filter). Body rows: meta 24, title 2 lines,
   price, actions 44 (pinned to the bottom, so every card in a row ends at the same line). Hover/focus lifts the CARD only.
   ============================================================ */
.mm-stage { display: block; aspect-ratio: var(--ar-product, 1 / 1); background: var(--mm-stage); overflow: hidden; }
.mm-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; }   /* contain, never cover; stage colour shows only on odd-ratio photos */

.product-card--v2 { height: 100%; border-radius: var(--r-md); transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-1); }
.product-card--v2 .product-card__image { aspect-ratio: 1 / 1; background: var(--mm-stage); }
.product-card--v2 .product-card__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-card.product-card--v2 .product-card__body { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; padding: 12px 14px 14px; }
.product-card--v2 .product-card__meta { display: flex; align-items: center; min-height: 24px; min-width: 0; }
.product-card--v2 .product-card__cat { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mm-muted); font: 500 var(--fs-xs)/1.2 var(--font-body); }
.product-card--v2 .product-card__reviews { margin: 0; color: var(--mm-muted); font: 500 var(--fs-xs)/1.2 var(--font-body); white-space: nowrap; }
.product-card.product-card--v2 .product-card__title { margin: 0; font: 600 var(--fs-card-title)/1.35 var(--font-heading); }
.product-card.product-card--v2 .product-card__title a { min-height: max(44px, calc(2 * 1.35em)); }   /* 2 lines always, and a 44 px target */
.product-card.product-card--v2 .product-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--sp-2); min-height: 28px; margin: 0; }
.product-card.product-card--v2 .product-card__price .price { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font: 700 1.0625rem/1.3 var(--font-heading); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }   /* plain price: the glass chip of glass.css is for the old card */
.product-card--v2 .price--compare { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.product-card--v2 .product-card__actions { display: flex; align-items: center; gap: var(--sp-2); margin-top: auto; min-height: 44px; position: relative; z-index: 2; }   /* above the whole-card title link */
.product-card--v2 .product-card__add { flex: 1 1 auto; min-width: 0; margin: 0; }
.product-card--v2 .product-card__cta { width: 100%; min-height: 44px; padding: 8px 12px; font-size: var(--fs-sm); line-height: 1.2; white-space: nowrap; justify-content: center; }
.product-card--v2 .product-card__actions > .product-card__cta { flex: 1 1 auto; width: auto; min-width: 0; }
.product-card--v2 .product-card__qv { flex: none; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--mm-control-line); background: var(--mm-white); color: var(--mm-ink); cursor: pointer; transition: border-color var(--dur-1), background-color var(--dur-1), color var(--dur-1); }
.product-card--v2 .product-card__qv[hidden] { display: none; }
.product-card--v2 .product-card__qv:hover { border-color: var(--mm-teal-ink); background: var(--mm-teal-tint); color: var(--mm-teal-ink); }
.product-card--v2 .product-card__qv:focus-visible { outline: 3px solid rgb(var(--mm-brand-rgb) / .55); outline-offset: 1px; }
.product-card--v2 .product-card__cta[disabled] { opacity: .55; cursor: not-allowed; }
@media (hover: hover) {
  .product-card--v2:hover, .product-card--v2:focus-within { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--mm-line-strong); }
  .product-card--soldout.product-card--v2:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .product-card--v2, .product-card--v2:hover { transition: none; transform: none; } }
@media (min-width: 640px) { .product-card.product-card--v2 .product-card__body { padding: 12px 14px 14px; } .product-card.product-card--v2 .product-card__title { font-size: var(--fs-card-title); } .product-card.product-card--v2 .product-card__price .price { font-size: 1.125rem; } }
/* narrow 2-up phone cards: the labelled button stays one line (14px, tight padding); quick view icon stays 44 */
@media (max-width: 399px) { .product-card--v2 .product-card__cta { padding-inline: 8px; } .product-card.product-card--v2 .product-card__body { padding: 10px 10px 12px; } }

/* honest badges (class family from COMPONENT_SPEC section 4; Lane B may restyle .mm-tag globally, these are the card-scoped fallbacks) */
.product-card__meta .mm-tag, .mm-qv__meta .mm-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font: 600 var(--fs-xs)/1 var(--font-body); white-space: nowrap; }
.mm-tag--best { background: var(--mm-ink); color: var(--mm-white); }
.mm-tag--best::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mm-teal); }
.mm-tag--popular { background: var(--mm-teal-tint); color: var(--mm-teal-ink-2); box-shadow: inset 0 0 0 1px var(--mm-teal-line, var(--mm-line)); }
.mm-tag--offer, .mm-tag--low { background: var(--mm-warn-bg); color: var(--mm-warn-ink); }
.mm-tag--sold { background: var(--mm-surface); color: var(--mm-muted); box-shadow: inset 0 0 0 1px var(--mm-line); }

/* pagination */
.mm-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-6); }
.mm-pager__step {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1); min-height: 46px; min-width: 46px; padding: 0 16px;
  border: 1px solid var(--mm-control-line); border-radius: var(--r-pill); color: var(--mm-ink); font-weight: 600; font-size: var(--fs-sm); background: var(--mm-white);
}
a.mm-pager__step:hover { border-color: var(--mm-teal-ink); background: var(--mm-teal-tint); }
.mm-pager__step.is-disabled { opacity: .4; }
.mm-pager__status { margin: 0; color: var(--mm-muted); font-size: var(--fs-sm); }
.mm-pager__pages { display: none; list-style: none; margin: 0; padding: 0; gap: var(--sp-1); align-items: center; }
.mm-pager__num { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 50%; color: var(--mm-ink-2); font-weight: 600; font-size: var(--fs-sm); }
a.mm-pager__num:hover { background: var(--mm-surface); }
.mm-pager__num.is-current { background: var(--mm-teal-ink); color: var(--mm-white); }
.mm-pager__gap { color: var(--mm-muted); padding: 0 4px; }
@media (max-width: 559px) { .mm-pager__step span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); } .mm-pager__step { padding: 0; } }
@media (min-width: 560px) {
  .mm-pager { justify-content: center; }
  .mm-pager__status { display: none; }
  .mm-pager__pages { display: flex; }
}

/* empty states, search form, 404 */
.mm-empty { display: grid; justify-items: center; gap: var(--sp-3); padding: var(--sp-7) var(--sp-4); text-align: center; background: var(--mm-surface); border-radius: var(--r-lg); color: var(--mm-teal-ink); }
.mm-empty h2 { margin: 0; font-size: var(--fs-xl); color: var(--mm-ink); }
.mm-empty p { margin: 0; max-width: 46ch; color: var(--mm-muted); }
.mm-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.empty-state { text-align: center; color: var(--mm-muted); padding: var(--sp-6) var(--sp-4); }
.mm-searchpage { display: flex; gap: var(--sp-2); max-width: 560px; margin: 0 0 var(--sp-5); }
.mm-searchpage input {
  flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 1px solid var(--mm-control-line); border-radius: var(--r-pill); background: var(--mm-white); font: 400 var(--fs-md)/1 var(--font-body); color: var(--mm-ink);
}
.mm-searchpage input:focus { outline: 2px solid var(--mm-teal-ink); outline-offset: 1px; border-color: var(--mm-teal-ink); }
.mm-notfound { max-width: 620px; margin: var(--sp-6) auto; text-align: center; }
.mm-notfound .mm-searchpage { margin-inline: auto; }
.mm-notfound .mm-empty__actions { margin-top: var(--sp-4); }
.mm-notfound__code { margin: 0; font: 700 clamp(4rem, 14vw, 7rem)/1 var(--font-heading); color: var(--mm-teal); letter-spacing: -0.04em; }
.mm-notfound h1 { margin: var(--sp-2) 0 var(--sp-3); font-size: var(--fs-2xl); }
.mm-notfound > p { color: var(--mm-muted); margin: 0 0 var(--sp-5); }

/* ============================================================
   7. CONTENT PAGES
   ============================================================ */
.mm-page--narrow .mm-article { max-width: 760px; }
.mm-pagehead--left { text-align: left; }
.mm-prose, .page-content__body { color: var(--mm-ink-2); font-size: var(--fs-md); line-height: 1.75; overflow-wrap: anywhere; }
.mm-prose > :first-child { margin-top: 0; }
.mm-prose p, .page-content__body p { margin: 0 0 var(--sp-4); }
.mm-prose h2, .page-content__body h2 { margin: var(--sp-6) 0 var(--sp-3); font-size: var(--fs-xl); }
.mm-prose h3, .page-content__body h3 { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-lg); }
.mm-prose ul, .mm-prose ol, .page-content__body ul, .page-content__body ol { margin: 0 0 var(--sp-4); padding-left: 1.4em; }
.mm-prose li, .page-content__body li { margin-bottom: var(--sp-2); }
.mm-prose a, .page-content__body a { color: var(--mm-teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.mm-prose a:hover, .page-content__body a:hover { color: var(--mm-teal-deep); }
.mm-prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.mm-prose th, .mm-prose td { border: 1px solid var(--mm-line); padding: 8px 12px; text-align: left; }
.mm-prose img { border-radius: var(--r-md); margin-block: var(--sp-4); }
.mm-prose blockquote { margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4); border-left: 3px solid var(--mm-teal); background: var(--mm-surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ============================================================================================
   Recommendations ("More that goes with this", cart / search rails, "Picked for you").
   Server-rendered rails need no JS; recs.js only upgrades the "Picked for you" boxes. Space for those is reserved by the
   skeleton cards (same width rules as real cards, fixed text-block height) so nothing jumps when they fill in.
   Mobile: horizontal scroller with snap, ~2.25 cards visible so the next one peeks. >= 640px: 3 cards, >= 960px: 4 cards.
   ============================================================================================ */
.rec { margin-block: var(--sp-6); }
.rec[hidden] { display: none; }
.cart-empty { grid-template-columns: minmax(0, 1fr); }   /* lets the empty-cart rail scroll inside the box instead of widening it */
.rec--empty { width: 100%; min-width: 0; margin-top: var(--sp-5); text-align: left; }
.rec--empty .cart-empty__sub { text-align: center; margin-bottom: var(--sp-3); }
.rec-rail {
  display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) var(--sp-3); scroll-padding-inline: var(--gutter);
  scrollbar-width: none; text-align: left;
}
.rec-rail::-webkit-scrollbar { display: none; }
.rec-item, .rec-skel { flex: 0 0 calc((100vw - var(--gutter) * 2 - var(--sp-3)) / 2.25); scroll-snap-align: start; min-width: 0; }
.rec-item { display: flex; flex-direction: column; gap: var(--sp-2); }
.rec-item > .product-card { flex: 0 0 auto; width: 100%; }   /* natural height: the reason chip under it may be 1 or 2 lines, the card must not absorb that difference */
/* one honest reason per card, glass chip: true for that item only (text comes from the engine, never invented here) */
.rec-reason {
  align-self: flex-start; margin: 0; padding: 4px 10px; border-radius: var(--r-pill);
  background-color: var(--mm-teal-tint); border: 1px solid var(--mm-teal-line); color: var(--mm-teal-deep);
  font: 600 var(--fs-xs)/1.3 var(--font-body);
}
.rec-gap { margin: 0 0 var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--mm-teal-tint); border: 1px solid var(--mm-teal-line); color: var(--mm-ink); font-size: var(--fs-sm); }
.rec-cats-label { margin: var(--sp-4) 0 var(--sp-2); font-weight: 600; color: var(--mm-ink); }
.rec-cats { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); max-width: 720px; }
.rec-cats a {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0 16px; border: 1px solid var(--mm-field-line, var(--mm-control-line)); border-radius: var(--r-pill);
  background-color: var(--mm-white); background-image: var(--glass-gloss-soft); box-shadow: var(--glass-hi), var(--glass-sh-soft);
  color: var(--mm-ink-2); font: 600 var(--fs-sm)/1.2 var(--font-body); transition: border-color .15s, background-color .15s;
}
.rec-cats a:hover { border-color: var(--mm-teal-ink); background-color: var(--mm-teal-tint); }
.rec-cats small { color: var(--mm-muted); font-size: var(--fs-xs); }
.rec-cats a:focus-visible, .rec-reason:focus-visible { outline: 2px solid var(--mm-teal-ink); outline-offset: 2px; }
/* skeleton: a square image block + a fixed-height text block, like a real card (no layout shift when the cards arrive) */
.rec-skel { display: flex; flex-direction: column; gap: var(--sp-2); }
.rec-skel::before, .rec-skel::after { content: ''; display: block; border-radius: var(--r-md); background: var(--mm-surface); animation: rec-pulse 1.4s ease-in-out infinite; }
.rec-skel::before { aspect-ratio: 1 / 1; }
.rec-skel::after { height: 138px; }
@keyframes rec-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .rec-skel::before, .rec-skel::after { animation: none; } }
@media (min-width: 640px) {
  .rec-rail { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; gap: var(--sp-4); }
  .rec-item, .rec-skel { flex-basis: calc((100% - var(--sp-4) * 2) / 3); }
  /* the cart column is narrow: 2 across, all four visible */
  .cart-upsells .rec-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .cart-upsells .rec-item { flex-basis: auto; }
}
@media (min-width: 960px) {
  .rec-item, .rec-skel { flex-basis: calc((100% - var(--sp-4) * 3) / 4); }
  .cart-upsells .rec-item { flex-basis: auto; }
}


/* ===== T1 polish (2026-11-04): 404 help line ===== */
.mm-notfound__help { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--sp-3); margin: var(--sp-5) 0 0; color: var(--mm-muted); font-size: var(--fs-sm); }
.mm-notfound__help a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-2); color: var(--mm-teal-ink); font-weight: 600; }


/* ============================================================
   V6 CARD CHROME (2026-11-06, docs/design/V6_CRITIQUE.md): the price is the loudest thing on a card, the button is solid, a real offer is yellow.
   Only chrome changes: the photo stage (1:1, contain, nothing on top, no transform) is untouched.
   ============================================================ */
.product-card--v2 { border-radius: 16px; border-color: var(--mm-line-strong); }
.product-card--v2 .product-card__image { border-bottom: 1px solid var(--mm-line); }
.product-card.product-card--v2 .product-card__title { font-size: var(--fs-md); line-height: 1.35; }
.product-card.product-card--v2 .product-card__price { align-items: baseline; gap: 2px 8px; min-height: 32px; }
.product-card.product-card--v2 .product-card__price .price { font: 700 1.3125rem/1.2 var(--font-heading); letter-spacing: -.015em; }
.product-card--v2 .price--compare { font-size: var(--fs-sm); color: var(--mm-muted); }
.product-card--v2 .product-card__cta:not(.btn--outline):not([disabled]) { background-color: var(--mm-teal); background-image: none; border-color: var(--mm-teal); box-shadow: none; color: var(--mm-ink); font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .product-card--v2 .product-card__cta:not(.btn--outline):not([disabled]):hover { background-color: var(--mm-ink); border-color: var(--mm-ink); color: var(--mm-white); box-shadow: none; }
}
.product-card--v2 .product-card__cta:not(.btn--outline):not([disabled]):focus-visible { box-shadow: var(--ring); }
@media (hover: hover) {
  .product-card--v2:hover, .product-card--v2:focus-within { border-color: var(--mm-teal-ink); box-shadow: var(--sh-cyan); }
  .product-card--soldout.product-card--v2:hover { border-color: var(--mm-line-strong); box-shadow: none; }
}
/* tags: a real offer = sun yellow with ink text (12.6:1); bestseller = ink; popular = cyan; low stock keeps the amber tint */
.mm-tag--offer { background: var(--mm-sun); color: var(--mm-ink); font-weight: 700; }
.mm-tag--low { background: var(--mm-warn-bg); color: var(--mm-warn-ink); }
.mm-tag--popular { background: var(--mm-teal); color: var(--mm-ink); box-shadow: none; font-weight: 700; }

/* V6 listing page head (collection, all products, search): a cyan panel with ink type, same language as the home hero. Chrome only; no layout change inside (intro clamp + Read more keep their reserved heights). */
.mm-pagehead--bold { position: relative; overflow: hidden; isolation: isolate; margin: var(--sp-2) 0 var(--sp-4); padding: 22px 18px; border-radius: var(--r-xl); background: var(--bg-hero); color: var(--mm-ink); }
.mm-pagehead--bold::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--bg-grid-white), var(--bg-hero-glow); }
.mm-pagehead--bold h1 { margin: 0 0 var(--sp-2); font: 700 var(--fs-3xl)/1.08 var(--font-heading); letter-spacing: var(--ls-display); }
.mm-pagehead--bold p, .mm-pagehead--bold .mm-intro { color: var(--mm-ink); }
.mm-pagehead--bold .mm-intro__toggle { color: var(--mm-ink); font-weight: 700; }
.mm-pagehead--bold .mm-intro__toggle:hover { color: var(--mm-ink); text-decoration-thickness: 2px; }
@media (min-width: 860px) { .mm-pagehead--bold { padding: 30px 36px; } .mm-pagehead--bold p, .mm-pagehead--bold .mm-intro { max-width: 70ch; } }
/* the sibling-category chips under it: ink for the current one (glass.css) + a bolder pill */
.mm-chips a { font-weight: 700; }
