/* Creative State of Mind — storefront styles
   Built on the Creative State of Mind design system v2 (NEW DESIGN SYSTEM/tokens.json):
   a cozy, hand-labelled classroom. Cream paper alternating with white, pastel
   and tint versions of the four MIND hues (pink, yellow, green, teal), rounded
   Fredoka headings, Poppins text and a Caveat script for personal touches.
   Single light theme, as the brand defines only one.
   Fonts load from Google Fonts in each page's <head> (see docs/design-system.md). */

:root {
  /* Color: brand hues (logo and tiny marks only since v2) */
  --brand-pink: #ff1797;
  --brand-yellow: #ffc309;
  --brand-green: #a5d343;
  --brand-teal: #51c7c9;
  --brand-orange: #f6911c;
  --brand-periwinkle: #6775df;
  --brand-peach: #ffbc7d;

  /* Pastels (fills that should be noticed) and tints (quiet grounds) */
  --pastel-pink: #f6b7cf;
  --pastel-yellow: #f9d77e;
  --pastel-green: #c5e3a0;
  --pastel-teal: #a6dcdd;
  --pastel-orange: #f6ae43;
  --pastel-purple: #8c9aff;
  --tint-pink: #fde6ef;
  --tint-yellow: #fff3d1;
  --tint-green: #e6f3d6;
  --tint-teal: #ddf1f1;
  --tint-orange: #fdebd0;
  --tint-purple: #e2e6ff;

  /* Colored text (contrast-checked; see the design system) */
  --accent-rose: #b0466a;
  --accent-teal: #2f7c7b;
  --cover-pink-ink: #b0466a;
  --cover-teal-ink: #1f7d80;
  --cover-yellow-ink: #a27400;
  --cover-green-ink: #4f8a1e;
  --cover-orange-ink: #9a5000;
  --cover-purple-ink: #4652c4;
  --eyebrow-yellow: #8a6300;

  /* Ink and text */
  --ink: #2c2b2b;
  --ink-warm: #3a3430;
  --text: #545454;
  --text-muted: #6e6a64;
  --slate: #54595f;
  --on-ink: #f6f1e7;
  --on-brand: var(--ink);
  --announce-link: #f2d98a;

  /* Surfaces and rules */
  --surface: #ffffff;
  --surface-cream: #f6f1e7;
  --surface-cream-deep: #ebe2d1;
  --frame-kraft: #ebddc5;
  --surface-sunken: #f5f5f5;
  --surface-soldout: #f2f2f2;
  --rule-dashed: #cfc3ae;
  --rule-paper: #e4ecf3;
  --border: #ddd6ca;
  --border-card: #ececec;
  --border-strong: #d9d9d9;
  --badge-new: var(--pastel-pink);
  --sale: #db1215;

  /* Type */
  --font-sans: "Poppins", system-ui, sans-serif;
  --font-display: "Fredoka", "Poppins", sans-serif;
  --font-script: "Caveat", cursive;

  /* Spacing */
  --space-4: 4px; --space-6: 6px; --space-10: 10px; --space-12: 12px; --space-14: 14px;
  --space-18: 18px; --space-20: 20px; --space-24: 24px; --space-28: 28px; --space-36: 36px;
  --space-48: 48px; --space-56: 56px; --space-72: 72px; --space-80: 80px;

  /* Radius */
  --radius-none: 0; --radius-sm: 6px; --radius-pill: 20px; --radius-full: 9999px;

  /* Depth: physical objects only */
  --shadow-frame: 0 14px 30px 0 rgba(80, 60, 30, 0.15);
  --shadow-print: 0 10px 24px 0 rgba(58, 52, 48, 0.14);

  /* Sizing */
  --size-category-disc: 112px; --size-new-disc: 112px; --size-poster: 230px;
  --size-icon-button: 44px; --size-counter: 18px; --size-tape: 96px; --rule-dashed-width: 1.5px;
  --size-input: 48px; --size-button: 44px; --size-add-to-cart: 44px;

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 620px;
  --gutter: var(--space-24);

  /* Legacy v1 tokens. Still used by the admin console (admin.css, admin.js) and
     Classroom Tools (tools.css); don't use them in new storefront work. */
  --space-13: 13px; --space-15: 15px; --space-30: 30px; --space-50: 50px;
  --radius-md: 10px; --radius-badge: 100px;
  --shadow-float: 0 4px 10px 0 rgba(0, 0, 0, 0.1);
  --size-arrow: 30px; --size-social: 34px;

  color-scheme: light;
}
@media (max-width: 767px) { :root { --space-72: 56px; --space-80: 56px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 15px/24px var(--font-sans);
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-rose); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.wrap { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-72) 0; }
.section:last-child { padding-bottom: var(--space-72); }

/* Full-width bands: cream and white alternate, never two cream bands in a row */
.band { padding-block: var(--space-72); background: var(--surface); }
.band-cream { background: var(--surface-cream); }
.band-pink { background: var(--pastel-pink); }

/* Section heading: centred Fredoka title with an optional script line above */
.section-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-12); text-align: center; margin-bottom: var(--space-36); }
.heading-section, .section-head h2 { font: 600 34px/40px var(--font-display); letter-spacing: .5px; }
.heading-feature { font: 600 38px/42px var(--font-display); }
.heading-product { font: 500 28px/33.6px var(--font-sans); }
.heading-sub { font: 600 18px/24px var(--font-display); }
.script-kicker { display: inline-block; font: 700 40px/44px var(--font-script); color: var(--accent-teal); transform: rotate(-4deg); }
.script-eyebrow { display: block; font: 700 28px/32px var(--font-script); color: var(--accent-teal); margin-bottom: calc(var(--space-12) * -1); }
.script-eyebrow.rose { color: var(--accent-rose); }
.script-caption { font: 700 26px/30px var(--font-script); }
.eyebrow { font: 600 12px/16px var(--font-sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-rose); }
.lead { font-size: 16px; line-height: 26px; color: var(--ink); }
.muted { color: var(--text); }
.tnum { font-variant-numeric: tabular-nums; }
.page-head { text-align: center; max-width: 760px; margin: 0 auto; }
.page-head .lead { margin-top: var(--space-14); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) { .heading-section, .section-head h2 { font-size: 28px; line-height: 34px; } .heading-feature { font-size: 30px; line-height: 34px; } }

/* Brand band: pastel MIND blocks with tint disc cut-outs (CSM.mindBand) */
.mind-band { display: block; width: 100%; height: 112px; }
.mind-band svg { display: block; width: 100%; height: 100%; }

/* Buttons: square-cornered, uppercase, letter-spaced */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-10);
  min-height: var(--size-button); padding: var(--space-14) var(--space-28);
  border: 0; border-radius: var(--radius-none);
  background: var(--pastel-teal); color: var(--ink);
  font: 600 13px/16px var(--font-sans); letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; text-align: center;
}
.btn:hover { color: var(--ink); }
.btn-primary { background: var(--pastel-teal); color: var(--ink); }
.btn-outline { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-accent { background: var(--pastel-pink); }
.btn-quiet { background: var(--surface-cream-deep); font-weight: 500; letter-spacing: 1px; text-transform: none; padding: 12px 30px; }
.btn-dark, .btn-dark:hover { background: var(--ink-warm); color: var(--on-ink); }
.btn-sm { min-height: 36px; padding: var(--space-10) var(--space-18); font-size: 12px; line-height: 14px; letter-spacing: 1.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.text-btn { background: none; border: 0; padding: 0; color: var(--ink); font: 500 13px/16px var(--font-sans); cursor: pointer; text-decoration: underline; }
.text-btn:hover { color: var(--accent-rose); }

/* Announcement bar */
.announce { background: var(--ink-warm); color: var(--on-ink); text-align: center; padding: 9px var(--space-18); font: 400 12px/16px var(--font-sans); letter-spacing: 1.5px; text-transform: uppercase; }
.announce a { color: var(--announce-link); text-decoration: underline; text-underline-offset: 2px; }
.announce a:hover { color: var(--on-ink); }
.announce-pink { background: var(--pastel-pink); color: var(--ink); }
.announce-yellow { background: var(--pastel-yellow); color: var(--ink); }
.announce-green { background: var(--pastel-green); color: var(--ink); }
.announce-teal { background: var(--pastel-teal); color: var(--ink); }
.announce:not(.announce-ink) a, .announce:not(.announce-ink) a:hover { color: var(--ink); }

/* Header: logo centred on cream, navigation between dashed rules */
.site-header { background: var(--surface-cream); }
.site-header .wrap { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: var(--space-28); }
.logo-type { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
/* A logo uploaded in Admin → Branding replaces the typeset one. --logo-h (set inline) is its height in the
   header; the footer shows it at 80%, phones cap it. Transparent PNG or WebP files sit straight on cream. */
.logo-link { display: inline-flex; max-width: 100%; }
.logo-img { display: block; height: var(--logo-h, 72px); width: auto; max-width: min(100%, 480px); object-fit: contain; }
.site-footer .logo-img { height: calc(var(--logo-h, 72px) * 0.8); }
@media (max-width: 767px) { .logo-img { height: min(var(--logo-h, 72px), 64px); } .site-footer .logo-img { height: min(calc(var(--logo-h, 72px) * 0.8), 56px); } }
.logo-type:hover { color: var(--ink); }
.logo-type .l1 { font: 300 28px/1 var(--font-sans); letter-spacing: 8px; margin-right: -8px; }
.logo-type .l2 { display: flex; align-items: baseline; gap: 8px; }
.logo-type .so { font: 700 36px/1 var(--font-script); }
.logo-type .mind { font: 700 36px/1 var(--font-display); }
.logo-type .m { color: var(--brand-pink); } .logo-type .i { color: var(--brand-yellow); }
.logo-type .n { color: var(--brand-green); } .logo-type .d { color: var(--brand-teal); }
.nav-row {
  align-self: stretch; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-12);
  margin-top: var(--space-18); padding-block: 6px;
  border-block: var(--rule-dashed-width) dashed var(--rule-dashed);
}
.nav { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px; }
.nav a { font: 600 13px/20px var(--font-sans); letter-spacing: 2px; text-transform: uppercase; color: var(--ink); padding-block: var(--space-12); }
.nav a:hover { color: var(--accent-rose); }
.nav a[aria-current="page"] { color: var(--accent-rose); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.header-icons { grid-column: 3; justify-self: end; display: flex; align-items: center; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: var(--size-icon-button); height: var(--size-icon-button); border-radius: var(--radius-full); background: none; border: 0; color: var(--ink); cursor: pointer; }
.icon-btn:hover { color: var(--accent-rose); }
.icon-btn svg { width: 20px; height: 20px; }
.counter { position: absolute; top: 2px; right: 0; min-width: var(--size-counter); height: var(--size-counter); padding: 0 3px; border-radius: var(--radius-full); background: var(--brand-teal); color: var(--ink); font: 500 10px/19px var(--font-sans); text-align: center; }
@media (max-width: 1024px) {
  .nav-row { grid-template-columns: 1fr; }
  .nav { grid-column: 1; gap: 0 22px; }
  .header-icons { position: absolute; top: var(--space-12); right: calc(var(--gutter) - 10px); }
}
@media (max-width: 767px) {
  .site-header .wrap { padding-top: var(--space-48); }
  .logo-type .l1 { font-size: 22px; letter-spacing: 6px; margin-right: -6px; }
  .logo-type .so, .logo-type .mind { font-size: 30px; }
  .nav { gap: 0 18px; }
  .nav a { font-size: 12px; letter-spacing: 1.5px; padding-block: var(--space-6); }
}

/* Hero: two framed posters flank a centred text stack */
.hero { position: relative; overflow: hidden; background: var(--surface-cream); padding-block: var(--space-56) var(--space-72); }
.hero-grid { display: grid; grid-template-columns: var(--size-poster) minmax(0, 1fr) var(--size-poster); gap: var(--space-48); align-items: center; }
.hero-words { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-14); }
.hero h1 { font: 600 52px/56px var(--font-display); max-width: 16ch; }
.hero .lead { max-width: 46ch; }
.hero-actions { display: flex; gap: var(--space-12); justify-content: center; flex-wrap: wrap; margin-top: var(--space-10); }
.poster { position: relative; padding: var(--space-12); background: var(--frame-kraft); box-shadow: var(--shadow-frame); transform: rotate(-3deg); }
.poster.tilt-right { transform: rotate(3deg); }
.poster .cover { border: 0; }
.new-disc { position: absolute; top: -40px; left: -40px; width: var(--size-new-disc); height: var(--size-new-disc); border-radius: var(--radius-full); background: var(--badge-new); color: var(--ink); z-index: 1; }
.new-disc svg { display: block; width: 100%; height: 100%; }
.new-disc text { font: 600 10.5px var(--font-sans); letter-spacing: 2.4px; fill: currentColor; }
.new-disc .spark { fill: var(--surface); }
/* Hero layouts (Admin → Pages → Home): posters (above), one photo, two teachers. Until the settings load
   the hero stays hidden so the original words don't flash; it shows anyway after 2.5s. */
.hero[data-loading] .hero-grid { visibility: hidden; animation: hero-show 0s 2.5s forwards; }
@keyframes hero-show { to { visibility: visible; } }
.hero[data-layout="photo"] .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.hero[data-layout="photo"] .hero-words { text-align: left; align-items: flex-start; }
.hero[data-layout="photo"] .hero-actions { justify-content: flex-start; }
.hero-photo .print { max-width: 340px; transform: rotate(3deg); }
.hero-print .print { max-width: var(--size-poster); }
.hero-print-right .print { transform: rotate(3deg); }
.hero-print-right .tape { background: var(--pastel-yellow); transform: rotate(3deg); }
.sparkle { position: absolute; width: 28px; height: 28px; pointer-events: none; }
.sparkle-yellow { color: var(--pastel-yellow); } .sparkle-teal { color: var(--pastel-teal); } .sparkle-brand { color: var(--brand-yellow); }
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--space-36) var(--space-28); }
  .hero-words { grid-column: 1 / -1; grid-row: 1; }
  .poster { width: min(var(--size-poster), 100%); justify-self: end; }
  .poster.tilt-right { justify-self: start; }
  .hero[data-layout="photo"] .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero[data-layout="photo"] .hero-words { text-align: center; align-items: center; }
  .hero[data-layout="photo"] .hero-actions { justify-content: center; }
  .hero-print .prints { justify-content: flex-end; }
  .hero-print-right .prints { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .hero h1 { font-size: 36px; line-height: 40px; }
  .script-kicker { font-size: 32px; line-height: 36px; }
  .new-disc { width: 84px; height: 84px; top: -28px; left: -24px; }
  .hero .sparkle { display: none; }
}

/* Tagline band: pastel pink, one line of copy and the proof numbers */
.tagline { text-align: center; padding-block: var(--space-48); }
.tagline .lead { max-width: 60ch; margin: 0 auto; }
.tagline .script-caption { display: inline-block; transform: rotate(-2deg); }
.proof { display: flex; gap: var(--space-28) var(--space-56); justify-content: center; flex-wrap: wrap; margin-top: var(--space-24); }
.proof div { display: flex; flex-direction: column; align-items: center; }
.stat { font: 700 28px/32px var(--font-display); color: var(--ink); }

/* Hue helpers for categories, tags, link page buttons and blog posts: the four MIND hues plus orange
   and purple (added 2026-10-10). Older names map on: peach is pink, periwinkle is purple.
   --c (legacy) is the pastel fill; --tint, --pastel and --cover-ink drive covers and discs. */
.c-pink, .c-peach { --c: var(--pastel-pink); --pastel: var(--pastel-pink); --tint: var(--tint-pink); --cover-ink: var(--cover-pink-ink); }
.c-yellow { --c: var(--pastel-yellow); --pastel: var(--pastel-yellow); --tint: var(--tint-yellow); --cover-ink: var(--cover-yellow-ink); }
.c-green { --c: var(--pastel-green); --pastel: var(--pastel-green); --tint: var(--tint-green); --cover-ink: var(--cover-green-ink); }
.c-teal { --c: var(--pastel-teal); --pastel: var(--pastel-teal); --tint: var(--tint-teal); --cover-ink: var(--cover-teal-ink); }
.c-orange { --c: var(--pastel-orange); --pastel: var(--pastel-orange); --tint: var(--tint-orange); --cover-ink: var(--cover-orange-ink); }
.c-purple, .c-periwinkle { --c: var(--pastel-purple); --pastel: var(--pastel-purple); --tint: var(--tint-purple); --cover-ink: var(--cover-purple-ink); }

/* Category discs */
.cat-discs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--space-28) var(--space-20); }
.cat-disc { display: flex; flex-direction: column; align-items: center; gap: var(--space-12); text-align: center; color: var(--ink); }
.cat-disc .disc { width: var(--size-category-disc); height: var(--size-category-disc); border-radius: var(--radius-full); background: var(--tint); display: grid; place-items: center; transition: transform .2s ease; }
.cat-disc svg { width: 48px; height: 48px; stroke: var(--ink); }
.cat-disc .fill { fill: var(--pastel); } .cat-disc .paper { fill: var(--surface); }
.cat-disc .disc img { width: 58%; height: 58%; object-fit: contain; }   /* an owner's own icon (Admin → Categories) */
.cat-disc span { font: 600 13px/17px var(--font-sans); letter-spacing: 1.5px; text-transform: uppercase; max-width: 16ch; }
.cat-disc:hover .disc { transform: scale(1.05); }

/* Product covers: the uploaded image, or a tint block with a script line and title */
.cover { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tint, var(--tint-yellow)); container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-6); padding: 10%; text-align: center; }
.cover > * { flex: none; max-width: 100%; }
.cover:has(img) { padding: 0; background: var(--surface); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-kicker { font: 700 clamp(16px, 10cqi, 22px)/1.15 var(--font-script); color: var(--ink); }
.cover-title { font: 700 clamp(17px, 12cqi, 26px)/1.08 var(--font-display); color: var(--cover-ink, var(--ink)); width: 100%; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cover-grade { margin-top: 2cqi; font: 600 11px/14px var(--font-sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); }
/* Cover inks only meet contrast at 24px and up; small covers set the title in ink. */
@container (max-width: 220px) { .cover-title { color: var(--ink); } }

/* Product cards: a square image in a white frame, then the name and price */
/* 220px minimum, at most four across */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(220px, calc((100% - 3 * var(--space-20)) / 4)), 1fr)); gap: var(--space-28) var(--space-20); }
@media (max-width: 767px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-24) var(--space-12); } }
.card { display: flex; flex-direction: column; gap: var(--space-10); min-width: 0; }
.card-media { position: relative; padding: var(--space-18); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-card); }
.band-cream .card-media { box-shadow: none; }
.card-media > a { display: block; overflow: hidden; }
.card-media .cover { transition: transform .4s ease; }
.card:hover .card-media .cover { transform: scale(1.04); }
.card-media .badges { position: absolute; right: var(--space-10); bottom: var(--space-10); display: flex; gap: var(--space-6); z-index: 1; }
.add-disc { position: absolute; top: var(--space-10); right: var(--space-10); z-index: 1; width: var(--size-add-to-cart); height: var(--size-add-to-cart); border-radius: var(--radius-full); border: 0; background: var(--pastel-teal); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.add-disc svg { width: 20px; height: 20px; }
.add-disc:hover { background: var(--pastel-pink); }
.add-disc.added { background: var(--ink-warm); color: var(--on-ink); }
.card h3 { font: 500 14px/21px var(--font-sans); }
.card h3 a:hover { color: var(--accent-rose); }
.card-cat { font: 600 12px/16px var(--font-sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-rose); }
.card-cat a { color: inherit; }
.card-foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--space-6); font-size: 14px; line-height: 21px; }
.price { font: 600 14px/21px var(--font-sans); color: var(--ink); }
.price s { color: var(--text-muted); font-weight: 400; margin-right: var(--space-6); }
.price .sale { color: var(--ink); }
.rating { color: var(--ink); white-space: nowrap; }
.rating::before { content: "· "; }
.grid-more { display: flex; justify-content: center; margin-top: var(--space-36); }
@media (max-width: 767px) { .card-media { padding: var(--space-10); } .add-disc { width: 36px; height: 36px; top: var(--space-6); right: var(--space-6); } .add-disc svg { width: 18px; height: 18px; } }

/* Badges: the Sale pill and its siblings */
.badge { display: inline-block; padding: 2px var(--space-12); border-radius: var(--radius-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink); font: 400 12px/16px var(--font-sans); }
.badge-sale, .badge-bundle, .badge-free { background: var(--surface); }
.badge-soft { background: var(--surface-cream); box-shadow: none; }

/* Feature section: title and copy beside the covers */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-56); align-items: center; }
.feature p { margin-top: var(--space-14); font-size: 16px; line-height: 26px; max-width: 52ch; }
.feature .btn { margin-top: var(--space-28); }
.feature .covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); }
@media (max-width: 1024px) { .feature { grid-template-columns: 1fr; gap: var(--space-36); } }

/* The wave that closes a cream band onto white */
.wave { display: block; width: 100%; height: 40px; color: var(--surface-cream); background: var(--surface); }

/* About: taped photo print beside the lined note card */
.about-home { max-width: 1100px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-56); align-items: center; }
.about-home.duo { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
.about-home.no-photo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.print { position: relative; width: 100%; max-width: 280px; margin: 0; background: var(--surface); padding: 16px 16px 56px; box-shadow: var(--shadow-print); transform: rotate(-3deg); justify-self: center; }
.print-photo { aspect-ratio: 4 / 5; background: var(--tint-yellow); display: grid; place-items: center; overflow: hidden; }
.print-photo img { width: 100%; height: 100%; object-fit: cover; }
.print .caption { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font: 700 28px/1 var(--font-script); }
.tape { position: absolute; top: -12px; left: 34%; width: var(--size-tape); height: 26px; background: var(--pastel-pink); opacity: .9; transform: rotate(-4deg); }
/* CSM.printsHTML(): one print, or two side by side (the second tilts the other way, a little lower, with yellow tape) */
.prints { display: flex; justify-content: center; align-items: flex-start; gap: var(--space-20); width: 100%; }
.prints .print { flex: 0 1 280px; min-width: 0; }
.prints.duo .print { flex-basis: 240px; }
.prints.duo .print:nth-child(2) { transform: rotate(3deg); margin-top: var(--space-36); }
.prints.duo .print:nth-child(2) .tape { background: var(--pastel-yellow); transform: rotate(3deg); }
@media (max-width: 520px) { .prints.duo { gap: var(--space-12); } .prints.duo .print { padding: 10px 10px 44px; } .prints.duo .caption { font-size: 22px; bottom: 10px; } }
.note-card { border-radius: var(--radius-sm); padding: var(--space-28) 32px; background: repeating-linear-gradient(var(--surface) 0 31px, var(--rule-paper) 31px 32px); line-height: 32px; }
.note-card h3 { font: 700 40px/1.1 var(--font-script); color: var(--accent-rose); }
.note-card p { margin-block: var(--space-6); }
.note-card .sig { font: 700 28px/32px var(--font-script); }
.note-card .btn { margin-top: var(--space-12); }
@media (max-width: 767px) { .about-home, .about-home.duo { grid-template-columns: minmax(0, 1fr); gap: var(--space-36); } .print { max-width: 240px; } .note-card { padding: var(--space-20); } .note-card h3 { font-size: 32px; } }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-28) var(--space-20); }
@media (max-width: 767px) { .posts { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; gap: var(--space-14); color: var(--ink); }
.post-card:hover { color: var(--ink); }
.post-card:hover h3 { color: var(--accent-rose); }
.post-swatch { aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint-teal); }
.post-swatch svg { display: block; width: 100%; height: 100%; }
.post-card .body { display: flex; flex-direction: column; gap: var(--space-10); }
.post-card .eyebrow { display: block; }
.post-card h3 { font: 600 21px/26px var(--font-display); transition: color .15s ease; }
.post-card p { color: var(--text); }
.post-date { color: var(--text-muted); font-size: 13px; }

.article { max-width: 720px; margin: 0 auto; }
.article-head { text-align: center; }
.article h1 { font: 600 clamp(32px, 4.5vw, 44px)/1.12 var(--font-display); margin-top: var(--space-14); }
.article .mind-band { margin-top: var(--space-28); height: 72px; }
.prose { margin-top: var(--space-28); font-size: 17px; line-height: 29px; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; line-height: 32px; margin-top: 1.6em; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose h3 { font-size: 21px; line-height: 26px; margin-top: 1.4em; }
.prose blockquote { margin: 1.2em 0; padding: var(--space-6) 0 var(--space-6) var(--space-20); border-left: 4px solid var(--pastel-yellow); }
.prose a { color: var(--ink); text-decoration: underline; }
.prose a:hover { color: var(--accent-rose); }
.signoff { margin-top: var(--space-28); font: 700 28px/32px var(--font-script); color: var(--ink); }

/* Shop */
.shop { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-48); align-items: start; }
.shop > * { min-width: 0; }
.filters { position: sticky; top: var(--space-24); display: flex; flex-direction: column; gap: var(--space-28); }
.filters h3 { font: 600 12px/16px var(--font-sans); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: var(--space-10); }
.filter-list { display: flex; flex-direction: column; }
.filter-list button { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); color: var(--ink); font: 400 14px/22px var(--font-sans); padding: 8px 0; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-10); }
.filter-list button:hover { color: var(--accent-rose); }
.filter-list button[aria-pressed="true"] { font-weight: 600; }
.filter-list .count { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.field-input, .search { width: 100%; height: var(--size-input); padding: var(--space-14) 16px; border: 0; box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: var(--radius-none); background: var(--surface); color: var(--ink); font: 400 14px/20px var(--font-sans); }
.field-input:focus, .search:focus { outline: none; }
.field-input:focus-visible, .search:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-14); flex-wrap: wrap; margin-bottom: var(--space-28); }
.select { height: 40px; padding: 0 var(--space-12); border-radius: var(--radius-none); border: 0; box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--surface); color: var(--ink); font: 400 14px var(--font-sans); }
.empty { padding: var(--space-48) var(--space-20); text-align: center; background: var(--surface-cream); }
@media (max-width: 1024px) {
  .shop { grid-template-columns: 1fr; gap: var(--space-28); }
  .filters { position: static; gap: var(--space-14); }
  .filters h3 { margin-bottom: var(--space-6); }
  .filter-list { flex-direction: row; gap: var(--space-6); overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filter-list button { flex: none; white-space: nowrap; border: 0; box-shadow: inset 0 0 0 1px var(--border); padding: 8px 14px; }
  .filter-list button[aria-pressed="true"] { background: var(--pastel-teal); box-shadow: none; }
}

/* Product page */
.breadcrumb { margin-bottom: var(--space-28); font-size: 13px; }
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--accent-rose); }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-48); align-items: start; }
.pdp .cover { max-width: 600px; box-shadow: inset 0 0 0 1px var(--border-card); }
.pdp .card-cat { margin-bottom: var(--space-10); }
.pdp .price-lg { display: block; margin-top: var(--space-20); font: 500 28px/28px var(--font-sans); color: var(--ink); }
.pdp .price-lg .sale { color: var(--sale); }
.pdp .price-lg s { font-size: 18px; color: var(--text-muted); margin-left: var(--space-10); }
/* Highlights: beside the images, the product's label and value rows with its tags underneath */
.pdp-highlights { margin-top: var(--space-36); }
.pdp-highlights > h2 { font: 600 20px/26px var(--font-display); }
.pdp-highlights .facts { margin-top: var(--space-12); }
.pdp-actions { display: flex; gap: var(--space-12); margin-top: var(--space-28); flex-wrap: wrap; }
.facts { margin: var(--space-28) 0 0; border-top: 1px solid var(--border); }
.facts div { display: flex; justify-content: space-between; gap: var(--space-14); padding: var(--space-12) 0; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--text); }
.facts dd { margin: 0; color: var(--ink); text-align: right; }
.bundle-callout { margin-top: var(--space-28); padding: var(--space-20); background: var(--tint-yellow); display: flex; justify-content: space-between; gap: var(--space-14); align-items: center; flex-wrap: wrap; }
.notice { background: var(--surface-cream); padding: var(--space-12) var(--space-20); color: var(--ink); }
@media (max-width: 767px) { .pdp { grid-template-columns: 1fr; gap: var(--space-28); } }

/* Cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(44, 43, 43, .4); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 50; background: var(--surface-cream); display: flex; flex-direction: column; padding: calc(var(--space-20) + env(safe-area-inset-top, 0px)) var(--space-20) calc(var(--space-20) + env(safe-area-inset-bottom, 0px)); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: var(--space-14); border-bottom: var(--rule-dashed-width) dashed var(--rule-dashed); }
.drawer-head h2 { font-size: 26px; line-height: 30px; }
.drawer-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-14); padding-block: var(--space-14); }
.line-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--space-12); align-items: center; }
.line-item .cover { width: 64px; padding: 0; }
.line-item .cover-kicker, .line-item .cover-title, .line-item .cover-grade { display: none; }
.line-item h4 { font: 500 14px/18px var(--font-sans); }
.line-item .text-btn { font-size: 12px; margin-top: var(--space-4); color: var(--text); }
.drawer-foot { border-top: var(--rule-dashed-width) dashed var(--rule-dashed); padding-top: var(--space-14); display: flex; flex-direction: column; gap: var(--space-12); }
.total-row { display: flex; justify-content: space-between; font: 600 18px/18px var(--font-sans); color: var(--ink); }
.drawer .empty { background: var(--surface); }

/* Checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-48); align-items: start; }
.panel { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-card); padding: var(--space-28); }
.panel h2 { font-size: 26px; line-height: 30px; margin-bottom: var(--space-20); }
.field label { display: block; margin-bottom: var(--space-6); }
.form-stack { display: flex; flex-direction: column; gap: var(--space-20); }
@media (max-width: 1024px) { .checkout { grid-template-columns: 1fr; } }

/* About page */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-48); align-items: center; }
.about-photos { display: flex; justify-content: center; padding-block: var(--space-20); }
.about-grid.no-photo { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
.facts-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); margin-top: var(--space-28); }
.facts-list div { padding: var(--space-14); background: var(--tint); }
.facts-list b { display: block; font: 700 28px/32px var(--font-display); color: var(--ink); }
@media (max-width: 1024px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts-list { grid-template-columns: 1fr; } }
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--border); padding-block: var(--space-14); }
.faq summary { font: 600 18px/28px var(--font-display); color: var(--ink); cursor: pointer; }
.faq details p { margin-top: var(--space-10); font-size: 15px; line-height: 24px; }

/* Newsletter band */
.newsletter { max-width: var(--container-narrow); margin: 0 auto; text-align: center; padding-block: var(--space-56); }
.newsletter h2 { display: inline-block; font: 700 60px/60px var(--font-script); transform: rotate(-3deg); }
.newsletter p { margin-top: var(--space-14); }
.newsletter form { display: flex; gap: var(--space-10); margin-top: var(--space-24); }
.newsletter .field-input { flex: 1; min-width: 0; box-shadow: none; }
.newsletter .ok { margin-top: var(--space-12); }
@media (max-width: 767px) { .newsletter h2 { font-size: 48px; line-height: 50px; } .newsletter form { flex-direction: column; } }

/* Footer */
.site-footer { margin-top: var(--space-72); background: var(--surface-cream); border-top: var(--rule-dashed-width) dashed var(--rule-dashed); }
/* Pages that end on a full-width band run straight into the footer */
body[data-page="home"] .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(var(--footer-cols, 3), 1fr); gap: var(--space-28); padding-block: var(--space-56); }
.site-footer .logo-type { align-items: flex-start; }
.site-footer .logo-type .l1 { font-size: 20px; letter-spacing: 6px; }
.site-footer .logo-type .so, .site-footer .logo-type .mind { font-size: 26px; }
.site-footer h4 { font: 600 12px/16px var(--font-sans); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: var(--space-12); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.site-footer ul a { color: var(--ink); }
.site-footer ul a:hover { color: var(--accent-rose); }
.socials { display: flex; gap: var(--space-10); margin-top: var(--space-14); }
.social { width: var(--size-icon-button); height: var(--size-icon-button); border-radius: var(--radius-full); box-shadow: inset 0 0 0 1.5px var(--ink); display: grid; place-items: center; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom { padding-block: var(--space-20); border-top: var(--rule-dashed-width) dashed var(--rule-dashed); font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; gap: var(--space-10); flex-wrap: wrap; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.toast { position: fixed; left: 50%; bottom: calc(var(--space-20) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink-warm); color: var(--on-ink); padding: 12px var(--space-20); z-index: 60; max-width: calc(100% - 32px); }

/* ---------- Product details: gallery, lightbox, Quick View, tag chips (see docs/components.md) ---------- */
.gallery { display: flex; flex-direction: column; gap: var(--space-12); max-width: 600px; }
.gallery-main { position: relative; display: block; width: 100%; padding: var(--space-18); border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-card); color: var(--ink); }
button.gallery-main { cursor: zoom-in; }
.gallery-main img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery-zoom { position: absolute; top: var(--space-10); right: var(--space-10); width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); display: grid; place-items: center; }
.gallery-zoom svg { width: 20px; height: 20px; }
.gallery-main:hover .gallery-zoom { background: var(--pastel-teal); box-shadow: none; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: var(--space-10); }
.gallery-thumb { width: 72px; height: 72px; padding: 4px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-card); cursor: pointer; }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.gallery-thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.gallery > .cover { box-shadow: inset 0 0 0 1px var(--border-card); }
@media (max-width: 767px) { .gallery-main { padding: var(--space-10); } .gallery-thumb { width: 60px; height: 60px; } }

.pdp-badges { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-12); }
.rating-line { margin-top: var(--space-12); color: var(--ink); font-size: 14px; }
.rating-line .star { color: var(--brand-yellow); }
.tag-chips { list-style: none; margin: var(--space-18) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-6); }
.tag-chip { display: inline-block; padding: var(--space-4) var(--space-12); border-radius: var(--radius-pill); background: var(--tint, var(--tint-pink)); box-shadow: inset 0 0 0 1px var(--pastel, var(--pastel-pink)); color: var(--ink); font: 500 13px/18px var(--font-sans); }
.tag-chip:hover { background: var(--pastel, var(--pastel-pink)); color: var(--ink); }
.pdp-sections { max-width: 760px; margin-top: var(--space-56); display: flex; flex-direction: column; gap: var(--space-36); }
.pdp-section > h2 { font: 600 26px/32px var(--font-display); padding-bottom: var(--space-10); border-bottom: 1.5px dashed var(--rule-dashed); }
.pdp-section > p { margin-top: var(--space-14); }
.pdp-section .prose { margin-top: var(--space-18); font-size: 16px; line-height: 26px; }
.pdp-signature > * + * { margin-top: 1em; }

/* Reviews: summary, list (stars are tiny marks in --brand-yellow), and the Write a Review form */
.reviews-summary, .reviews-empty { margin-top: var(--space-14); font-size: 16px; }
.reviews-summary .star, .review .stars { color: var(--brand-yellow); }
.review-list { list-style: none; margin: var(--space-10) 0 var(--space-18); padding: 0; }
.review { padding: var(--space-18) 0; border-bottom: 1px solid var(--border); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6) var(--space-10); }
.review .stars { letter-spacing: 2px; }
.review .stars-off { color: var(--border); }
.review-date { margin-top: var(--space-4); font-size: 13px; line-height: 18px; color: var(--text-muted); }
.review-body { margin-top: var(--space-10); white-space: pre-line; overflow-wrap: anywhere; }
.review-form { margin-top: var(--space-28); padding: var(--space-24); background: var(--surface-cream); display: flex; flex-direction: column; gap: var(--space-18); }
.review-form h3 { font: 600 20px/26px var(--font-display); }
.review-form textarea.field-input { height: auto; min-height: 120px; resize: vertical; }
.rv-stars { border: 0; padding: 0; margin: 0; min-width: 0; }
.rv-stars legend { padding: 0; margin-bottom: var(--space-6); }
.rv-star-row { display: inline-flex; gap: var(--space-4); vertical-align: middle; }
.rv-star-row label { padding: var(--space-4); font-size: 30px; line-height: 1; color: var(--text-muted); cursor: pointer; }
.rv-star-row label.on { color: var(--brand-yellow); }
.rv-star-row input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.rv-star-text { margin-left: var(--space-10); font-size: 14px; }
.review-msg:empty { display: none; }
.review-msg.err, .error-text { font-weight: 600; }
.field-input[aria-invalid="true"] { box-shadow: inset 0 0 0 2.5px var(--ink); }
.review-thanks { margin-top: var(--space-28); }
.review-form .check { display: flex; gap: var(--space-10); align-items: flex-start; cursor: pointer; }
.review-form .check input { margin-top: 5px; accent-color: var(--ink); }
.review-signin { gap: var(--space-12); }

/* Quick View: an eye disc on every card (top left, opposite add to cart) opens a window */
.qv-disc { position: absolute; top: var(--space-10); left: var(--space-10); z-index: 1; width: var(--size-add-to-cart); height: var(--size-add-to-cart); border-radius: var(--radius-full); border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s ease; }
.qv-disc svg { width: 20px; height: 20px; }
.qv-disc:hover { background: var(--pastel-teal); box-shadow: none; }
.card:hover .qv-disc, .card:focus-within .qv-disc, .qv-disc:focus-visible { opacity: 1; }
@media (hover: none) { .qv-disc { opacity: 1; } }
@media (max-width: 767px) { .qv-disc { width: 36px; height: 36px; top: var(--space-6); left: var(--space-6); opacity: 1; } .qv-disc svg { width: 18px; height: 18px; } }
dialog.qv { width: min(920px, calc(100% - 2 * var(--gutter))); max-height: calc(100dvh - 2 * var(--space-24)); padding: var(--space-36) var(--space-28) var(--space-28); border: 0; border-radius: var(--radius-none); background: var(--surface-cream); color: var(--ink); overflow: auto; }
dialog.qv::backdrop { background: color-mix(in srgb, var(--ink) 55%, transparent); }
.qv-close { position: absolute; top: var(--space-6); right: var(--space-6); }
.qv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-28); align-items: start; }
.qv-title { font: 600 24px/30px var(--font-display); margin-top: var(--space-6); }
.qv .price-lg { display: block; margin-top: var(--space-14); font: 500 24px/28px var(--font-sans); color: var(--ink); }
.qv .price-lg .sale { color: var(--sale); }
.qv .price-lg s { font-size: 16px; color: var(--text-muted); margin-left: var(--space-10); }
.qv-info .facts { margin-top: var(--space-18); }
@media (max-width: 767px) { .qv-grid { grid-template-columns: 1fr; gap: var(--space-18); } dialog.qv { padding: var(--space-48) var(--space-18) var(--space-20); } }

/* Lightbox: the product page's enlarged images */
dialog.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: var(--space-56) var(--space-72); border: 0; background: color-mix(in srgb, var(--ink) 94%, transparent); }
dialog.lightbox[open] { display: grid; place-items: center; }
dialog.lightbox::backdrop { background: transparent; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-12); max-width: 100%; }
.lb-figure img { display: block; max-width: min(1000px, 100%); max-height: calc(100dvh - 140px); object-fit: contain; background: var(--surface); }
.lb-figure figcaption { color: var(--on-ink); font-size: 14px; text-align: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: var(--radius-full); border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn:hover { background: var(--pastel-teal); }
.lb-close { top: var(--space-18); right: var(--space-18); }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: var(--space-18); }
.lb-next { right: var(--space-18); }
@media (max-width: 767px) { dialog.lightbox { padding: var(--space-72) var(--space-12); } .lb-prev, .lb-next { top: auto; bottom: var(--space-18); transform: none; } }
/* Account page (account.html): sign in, the welcome step and the account sections */
.acct-loading { text-align: center; color: var(--text); }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-48); align-items: start; margin-top: var(--space-48); }
.acct-card { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-card); padding: var(--space-28); display: flex; flex-direction: column; gap: var(--space-18); }
.acct-card h2 { font: 600 24px/30px var(--font-display); }
.acct-card h2:focus { outline: none; }
.acct-methods { display: flex; flex-direction: column; gap: var(--space-10); }
.acct-provider { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-10); }
.acct-or { display: flex; align-items: center; gap: var(--space-12); color: var(--text-muted); font-size: 13px; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; border-top: var(--rule-dashed-width) dashed var(--rule-dashed); }
.acct-email { display: flex; flex-direction: column; gap: var(--space-14); }
.acct-turnstile:empty, .acct-msg:empty { display: none; }
.acct-msg.err { font-weight: 600; }
.acct-why { padding: var(--space-28); background: var(--surface-cream); }
.acct-why h2 { font: 600 26px/32px var(--font-display); text-transform: lowercase; }
.acct-list { list-style: none; margin: var(--space-18) 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-14); }
.acct-list li { display: flex; gap: var(--space-12); align-items: flex-start; }
.acct-list svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: var(--radius-full); background: var(--pastel-teal); color: var(--ink); }
.acct-card .check { display: flex; gap: var(--space-10); align-items: flex-start; cursor: pointer; }
.acct-card .check input { margin-top: 5px; accent-color: var(--ink); }
.acct-radios { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-10); }
.acct-radios legend { padding: 0; margin-bottom: var(--space-6); }
.acct-welcome { max-width: 560px; margin: var(--space-36) auto 0; }
.acct-greeting { max-width: 760px; margin: var(--space-24) auto 0; text-align: center; }
.acct-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-36); align-items: start; margin-top: var(--space-48); }
.acct-nav { position: sticky; top: var(--space-24); display: flex; flex-direction: column; gap: var(--space-4); }
.acct-nav a { padding: var(--space-10) var(--space-14); font: 600 13px/18px var(--font-sans); letter-spacing: 1.5px; text-transform: uppercase; }
.acct-nav a:hover { background: var(--surface-cream); }
.acct-panels { display: flex; flex-direction: column; gap: var(--space-24); }
.acct-panels .acct-card { scroll-margin-top: var(--space-24); }
.acct-actions { display: flex; gap: var(--space-10); flex-wrap: wrap; }
.acct-danger { padding-top: var(--space-18); border-top: var(--rule-dashed-width) dashed var(--rule-dashed); display: flex; flex-direction: column; gap: var(--space-12); }
.my-reviews { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.my-review { padding: var(--space-14) 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--space-6); }
.my-review:last-child { border-bottom: 0; }
.my-review .review-head .stars { color: var(--brand-yellow); letter-spacing: 2px; }
.my-review .stars-off { color: var(--border); }
.my-review-form { display: flex; flex-direction: column; gap: var(--space-12); }
.acct-sub { font: 600 18px/24px var(--font-display); margin-top: var(--space-10); }
.acct-msg-form { display: flex; flex-direction: column; gap: var(--space-14); }
.acct-msg-form textarea.field-input { height: auto; min-height: 120px; resize: vertical; }
.msg-about { margin: 0; }
.my-messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.my-message { padding: var(--space-14) 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--space-6); }
.my-message:last-child { border-bottom: 0; }
.msg-status { font-size: 13px; color: var(--text); }
.msg-reply { margin-top: var(--space-6); padding: var(--space-14); background: var(--surface-cream); display: flex; flex-direction: column; gap: var(--space-6); }
.badge-new-reply { background: var(--pastel-teal); box-shadow: none; }
.pdp-ask { margin-top: var(--space-18); font-size: 14px; }
.pdp-ask a { text-decoration: underline; text-underline-offset: 2px; }
.account-link.signed-in { position: relative; }
.account-link.signed-in::after { content: ""; position: absolute; top: 9px; right: 8px; width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--pastel-teal); box-shadow: 0 0 0 2px var(--surface-cream); }
@media (max-width: 767px) {
  .acct-grid, .acct-layout { grid-template-columns: 1fr; gap: var(--space-24); margin-top: var(--space-28); }
  .acct-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .acct-card, .acct-why { padding: var(--space-20); }
}

/* Favorites: the heart on cards (bottom left), the product page and Quick View button, the header link */
.fav-disc { position: absolute; left: var(--space-10); bottom: var(--space-10); z-index: 1; width: var(--size-add-to-cart); height: var(--size-add-to-cart); border-radius: var(--radius-full); border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.fav-disc svg, .fav-btn svg { width: 20px; height: 20px; }
.fav-disc:hover { background: var(--tint-pink); }
.fav-disc.on svg, .fav-btn.on svg { fill: var(--pastel-pink); }
.fav-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-10); }
.fav-btn.on { background: var(--tint-pink); }
.fav-link { position: relative; }
.fav-grid { margin-top: var(--space-48); }
.fav-empty { margin: var(--space-48) auto 0; max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-18); }
@media (max-width: 767px) { .fav-disc { width: 36px; height: 36px; left: var(--space-6); bottom: var(--space-6); } .fav-disc svg { width: 18px; height: 18px; } .fav-grid { margin-top: var(--space-28); } }
