/* ═══════════════════════════════════════════════════════════════════════════
   DOODLE BAZAAR 2.0 — "INK ON PAPER"
   Warm hand-drawn storefront. Light theme only.
   Palette + shapes match the town art pack (static/town3d/). No dark mode.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand palette (matches the art exactly) ── */
  --ink: #26231E;
  --paper: #FCFAF3;
  --cream: #F3E9D4;
  --red: #C6482F;
  --gold: #D99A2B;
  --green: #5E7B45;
  --brown: #8A5A33;
  --blue: #3F6C94;

  /* ── Aliases so product.html / index.html / cart.html (built against
     dark.css's variable names) render correctly against the new palette
     without touching those templates' markup. ── */
  --bg: var(--paper);
  --surface: #ffffff;
  --surface-raised: var(--cream);
  --surface-hover: #ece0c6;
  --border: #26231E;
  --border-glow: rgba(198, 72, 47, 0.18);
  --text-primary: var(--ink);
  --text-secondary: #55503f;
  --text-muted: #85806c;
  --text-tertiary: #85806c;
  --text: var(--ink);
  --accent: var(--red);
  --accent-glow: rgba(198, 72, 47, 0.28);
  --accent-hover: #a53a26;
  --danger: #b5341c;
  --danger-glow: rgba(181, 52, 28, 0.22);
  --success: var(--green);
  --card-bg: #ffffff;
  --card-border: var(--ink);
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;

  /* ── Signature hand-drawn shapes ── */
  --wobble: 16px 11px 19px 12px/12px 19px 11px 16px;
  --wobble-lg: 22px 46px 22px 40px/40px 22px 46px 22px;
  --ink-shadow: 3px 3px 0 var(--ink);
  --ink-shadow-sm: 2px 2px 0 var(--ink);
  --ink-shadow-lg: 5px 5px 0 var(--ink);
}

/* This design system is light-only, by decision: the storefront's identity is
   warm paper + ink, not a light/dark toggle. The existing .theme-toggle button
   (store.js) still flips data-theme without error — we simply never define a
   [data-theme="dark"] block, so paper stays paper regardless. */

.theme-toggle {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform 0.15s ease;
  padding: 0;
  line-height: 1;
  box-shadow: var(--ink-shadow-sm);
}
.theme-toggle:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.theme-toggle:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.62;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .brand { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: var(--font-body); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ── Layout utilities ──────────────────────────────────────────────────── */
.wrapb { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ── Navigation (product.html's .nav) ─────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(252, 250, 243, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2.5px solid var(--ink);
}
.nav .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
}
.nav .brand {
  font-size: 26px;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 700;
}
.nav .brand b { color: var(--red); }
.nav .cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble);
  padding: 9px 16px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  box-shadow: var(--ink-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.nav .cart:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.nav .cart:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.nav .cart svg { stroke: var(--ink); }
.nav .cart svg.dico.cart { width: 20px !important; height: 18px !important; flex: none; }

/* ── Topbar (index.html) ───────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 28px 0;
  position: relative;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { font-size: 30px; line-height: 1; font-weight: 700; }
.brand b { color: var(--red); }
.util { display: flex; gap: 20px; align-items: center; font-size: 14px; color: var(--text-secondary); font-weight: 700; }
.uitem { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.uitem:hover { color: var(--red); }
.uico { width: 21px; height: 21px; stroke: var(--text-secondary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.uitem:hover .uico { stroke: var(--red); }
.searchwrap { display: flex; align-items: center; position: relative; }
.searchinput {
  width: 0; opacity: 0; padding: 0;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  font: inherit; font-size: 13px;
  background: #ffffff;
  color: var(--ink);
  transition: width 0.35s ease, opacity 0.25s, padding 0.35s;
  outline: none;
}
.searchinput::placeholder { color: var(--text-muted); }
.searchinput.open { width: 210px; opacity: 1; padding: 8px 12px; margin-right: 9px; }
.cart-count {
  background: var(--red); color: #fff; border-radius: 50%;
  font-size: 11px; padding: 1px 5px; margin-left: -6px; margin-top: -10px; font-weight: 700;
  border: 1.5px solid var(--ink);
}

/* ── Language selector ─────────────────────────────────────────────────── */
.lang { position: relative; }
.langbtn {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 14px 5px 14px 5px;
  padding: 7px 12px; font: inherit; font-size: 13px;
  color: var(--ink);
  transition: transform 0.15s;
}
.langbtn:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); }
.langbtn svg { width: 18px; height: 18px; stroke: var(--text-secondary); fill: none; stroke-width: 1.8; }
.langmenu {
  position: absolute; top: 46px; right: 0;
  background: #ffffff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 6px; display: none;
  grid-template-columns: 1fr 1fr; gap: 4px;
  z-index: 80; min-width: 230px;
  box-shadow: var(--ink-shadow-lg);
}
.langmenu.open { display: grid; }
.langmenu button {
  font: inherit; font-size: 14px; text-align: left; cursor: pointer;
  background: transparent; color: var(--text-secondary);
  border: 1.5px solid transparent; border-radius: 9px; padding: 8px 10px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.langmenu button:hover { background: var(--cream); color: var(--ink); border-color: var(--ink); }
.langmenu button.sel { background: var(--red); color: #fff; border-color: var(--ink); }
[dir="rtl"] .langmenu { left: 0; right: auto; }

/* ── Aisle navigation ──────────────────────────────────────────────────── */
nav.aisles {
  max-width: 1280px; margin: 18px auto 0; padding: 0 28px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
nav.aisles a {
  font-size: 13.5px; font-weight: 700;
  padding: 8px 14px;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: var(--ink-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}
nav.aisles a:hover {
  transform: translate(-1px, -1px);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
nav.aisles a.shopall { background: var(--red); color: #fff; }
nav.aisles a.active { background: var(--gold); color: var(--ink); }
/* WP6: the five brand aisles, a second row right under the department nav -
   same ink styling, tighter top margin since it follows immediately. */
nav.aisles.brand-aisles { margin-top: 8px; }

/* ── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  max-width: 1280px; margin: 40px auto 16px; padding: 40px 28px 76px;
  text-align: left;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}
/* Plaza emblem watermark — one placement, faded, behind the hero copy. */
.hero::before {
  content: '';
  position: absolute;
  top: 50%; right: -60px;
  width: 420px; height: 420px;
  transform: translateY(-50%);
  background: url('/static/town3d/dressing/plaza_emblem.png') center/contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 0 0 16px;
  line-height: 0.98;
  text-wrap: balance;
  max-width: 780px;
  color: var(--ink);
  position: relative; z-index: 1;
}
.hero p {
  margin: 0;
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
  position: relative; z-index: 1;
}
.hero2col {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 56px;
  text-align: left;
  align-items: center;
  margin-top: 20px;
}
.hero2col p { margin: 0; }
.hkicker {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 15px 5px 15px 5px;
  padding: 5px 14px;
  margin-bottom: 16px;
  background: var(--gold);
  position: relative; z-index: 1;
  transform: rotate(-1deg);
}
.hctas { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; position: relative; z-index: 1; }
.hbtn {
  display: inline-block;
  background: var(--red); color: #fff;
  padding: 14px 28px;
  font-weight: 700; font-size: 15px;
  font-family: var(--font-body);
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  box-shadow: var(--ink-shadow);
}
.hbtn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.hbtn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.hbtn.ghost {
  background: #ffffff; color: var(--ink);
  border: 2.5px solid var(--ink);
}
.hbtn.ghost:hover { background: var(--cream); }
.hdoors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px; margin-top: 24px;
  max-width: 580px;
  position: relative; z-index: 1;
}
.hdoors a {
  font-size: 13px;
  border: 2px solid var(--ink);
  background: #ffffff;
  padding: 11px 14px 11px 30px;
  position: relative;
  border-radius: 5px 17px 5px 17px;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.hdoors a::before {
  content: '';
  position: absolute;
  left: 10px; top: 14px;
  width: 8px; height: 12px;
  border: 2px solid var(--red);
  border-radius: 6px 6px 0 0;
  border-bottom: none;
}
.hdoors a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.hdoors .dlabel { display: block; font-weight: 700; font-size: 14px; }
.hdoors small { display: block; color: var(--text-secondary); line-height: 1.35; margin-top: 2px; }
.hstage {
  display: block; position: relative;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  padding: 10px;
  border-radius: var(--wobble-lg);
  box-shadow: var(--ink-shadow-lg);
  transition: transform 0.2s ease;
  z-index: 1;
}
.hstage:hover { transform: translate(-2px, -2px); }
.hstage video {
  display: block; width: 100%; max-height: 460px;
  object-fit: cover;
  border-radius: 14px 42px 14px 42px / 42px 14px 42px 14px;
  border: 2px solid var(--ink);
}
.hstamp {
  position: absolute; left: -14px; bottom: 18px;
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 8px 14px;
  border-radius: 14px 4px 14px 4px;
  max-width: 78%;
  box-shadow: 2px 2px 0 var(--ink);
}
.hstamp span { display: block; font-size: 11px; color: var(--red); font-weight: 700; letter-spacing: 0; }
.hstamp b { display: block; font-size: 14px; line-height: 1.25; color: var(--ink); }
.hstamp i { font-style: normal; font-size: 13px; color: var(--text-secondary); }

/* ── Ground line + walking Bazzy (hero) ───────────────────────────────── */
.hero-ground {
  position: absolute;
  left: 28px; right: 28px; bottom: 34px;
  height: 2px;
  background: var(--ink);
  opacity: 0.55;
  border-radius: 2px;
  z-index: 1;
}
/* Travel lives on the element (animated `left`, % of the hero), the
   6-frame walk cycle lives on ::after — so hover can pause the stroll and
   swap ::after to the wave cell without fighting a running animation. */
.hero-bazzy {
  position: absolute;
  bottom: 34px; left: 28px;
  width: 90px; height: 90px;
  z-index: 2;
  cursor: pointer;
  animation: bazzy-walk-across 34s linear infinite;
}
.hero-bazzy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/static/town3d/doodles/bazzy.png') no-repeat 0 0;
  background-size: 800% 100%; /* 8 cells */
  animation: bazzy-walk-cycle 0.7s steps(6) infinite;
}
@keyframes bazzy-walk-across {
  0%    { left: 28px; transform: scaleX(1); }
  49.9% { left: calc(100% - 118px); transform: scaleX(1); }
  50%   { left: calc(100% - 118px); transform: scaleX(-1); }
  99.9% { left: 28px; transform: scaleX(-1); }
  100%  { left: 28px; transform: scaleX(1); }
}
@keyframes bazzy-walk-cycle {
  /* steps(6) holds cells 0-5; cell 6 starts at 6/7 of the percent range */
  from { background-position-x: 0; }
  to   { background-position-x: 85.7143%; }
}
.hero-bazzy:hover,
.hero-bazzy:focus-visible {
  animation-play-state: paused;
}
.hero-bazzy:hover::after,
.hero-bazzy:focus-visible::after {
  animation: none;
  background-position: 100% 0; /* cell 8: wave */
}
@media (prefers-reduced-motion: reduce) {
  .hero-bazzy { animation: none; }
  .hero-bazzy::after {
    animation: none;
    background-position: 85.7143% 0; /* cell 7: idle */
  }
}

/* ── Product Grid ──────────────────────────────────────────────────────── */
.grid {
  max-width: 1280px;
  margin: 44px auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: #ffffff;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-lg);
  padding: 14px;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column;
  box-shadow: var(--ink-shadow);
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
}
.card.hidden { display: none; }
.card .thumb {
  aspect-ratio: 4/3; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 14px 5px 14px 5px;
  background: var(--cream);
  margin-bottom: 12px; position: relative;
  border: 2px solid var(--ink);
}
/* Awning stripe caps the card image area, per the brand's dressing kit. */
.card .thumb::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 14px;
  background-image: url('/static/town3d/dressing/awning.png');
  background-repeat: repeat-x;
  background-size: 56px 14px;
  z-index: 1;
  border-bottom: 2px solid var(--ink);
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mbadges { position: absolute; top: 20px; left: 7px; display: flex; gap: 5px; z-index: 2; }
.mb {
  display: inline-flex; align-items: center; gap: 4px;
  background: #ffffff; border: 1.5px solid var(--ink);
  border-radius: 10px 4px 10px 4px / 4px 10px 4px 10px;
  padding: 3px 8px; font-size: 11px; font-weight: 700;
  color: var(--ink);
}
.mb svg { width: 13px; height: 13px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mb-vid svg .ply { fill: var(--red); stroke: var(--red); }
.card:hover .mb { animation: mbpop 0.5s ease; }
@keyframes mbpop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.card h3 {
  margin: 0 0 7px; font-size: 16.5px; line-height: 1.28; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--ink);
}
.card .meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; color: var(--text-secondary); font-size: 12.5px; margin-top: auto;
}
.card .rating { color: var(--ink); font-weight: 700; }
.card .price {
  color: var(--red); font-weight: 700; font-size: 19px;
  margin-top: 7px; font-variant-numeric: tabular-nums;
}
.card .cta {
  margin-top: 13px; display: inline-block; cursor: pointer;
  background: var(--red); color: #fff;
  border: 2px solid var(--ink); font-family: var(--font-body); font-size: 14px; font-weight: 700;
  padding: 10px 18px; text-align: center;
  border-radius: var(--wobble);
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card .cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.card .cta:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }
.card .view {
  margin-top: 8px; font-size: 12px; color: var(--text-secondary);
  border-bottom: 1px solid var(--text-secondary);
  align-self: flex-start;
}
.card .view:hover { color: var(--red); border-color: var(--red); }

/* ── Trust strip ───────────────────────────────────────────────────────── */
.strip {
  max-width: 1280px; margin: 12px auto 0; padding: 0 28px;
  display: flex; gap: 32px; flex-wrap: wrap;
  color: var(--text-secondary); font-size: 13px; font-weight: 700;
}

/* ── Bunting — hangs beneath the header on every store page ──────────── */
.bunting-strip {
  width: 100%;
  height: 44px;
  background-image: url('/static/town3d/dressing/bunting.png');
  background-repeat: repeat-x;
  background-size: 176px 44px;
  background-position: top center;
  pointer-events: none;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  max-width: 1280px;
  margin: 56px auto 0;
  padding: 40px 28px 28px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: left;
  border-top: 3px solid var(--ink);
  border-image: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 14px) 3;
  background: var(--cream);
}
footer .flinks { margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
footer .flinks a {
  border-bottom: 1.5px solid var(--text-secondary);
  color: var(--text-secondary);
}
footer .flinks a:hover { color: var(--red); border-color: var(--red); }
.bz-footer-inner {
  display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap;
  justify-content: space-between;
}
.bz-footer-origin {
  max-width: 520px; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary);
}
.bz-footer-cast {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
}
.bz-footer-emblem {
  width: 72px; height: 72px; flex: none;
  background-image: url('/static/town3d/dressing/plaza_emblem.png');
  background-size: contain; background-repeat: no-repeat; background-position: center;
}

/* ── Doodle cast — idle sprite crops (56-90px, static cell 7) ────────────
   8-cell sheet at background-size 800% 100%: background-position PERCENTAGE
   p aligns p% of the image with p% of the box, so cell N (0-indexed) sits
   at N/7 * 100%. Cell 6 (idle) = 85.7143%, cell 7 (wave) = 100%. */
.bz-sprite {
  display: inline-block;
  width: 56px; height: 56px;
  background-repeat: no-repeat;
  background-size: 800% 100%;
  flex: none;
}
.bz-sprite.idle { background-position: 85.7143% 0; } /* cell 7 (0-indexed 6) */
.bz-sprite.wave { background-position: 100% 0; }     /* cell 8 (0-indexed 7) */
.bz-sprite-cat    { background-image: url('/static/town3d/doodles/cat.png'); }
.bz-sprite-dog    { background-image: url('/static/town3d/doodles/dog.png'); }
.bz-sprite-grandma{ background-image: url('/static/town3d/doodles/grandma.png'); }
.bz-sprite-grandpa{ background-image: url('/static/town3d/doodles/grandpa.png'); }
.bz-sprite-bazzy  { background-image: url('/static/town3d/doodles/bazzy.png'); }
.bz-sprite-shopper-a { background-image: url('/static/town3d/doodles/shopper_a.png'); }
.bz-sprite-shopper-b { background-image: url('/static/town3d/doodles/shopper_b.png'); }
.bz-sprite-shopper-c { background-image: url('/static/town3d/doodles/shopper_c.png'); }
.bz-sprite-shopper-d { background-image: url('/static/town3d/doodles/shopper_d.png'); }

/* ── Department / section signs (hanging wooden signs) ───────────────── */
.bz-sign {
  width: 130px; height: auto; display: block; margin: 0 auto 6px;
}
.bz-signhead {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 4px;
}
.bz-signhead h2, .bz-signhead h3 { margin: 0; }

/* ── Department tiles (sign-led section tiles) ──────────────────────── */
.depttiles-wrap { max-width: 1180px; margin: 48px auto 0; padding: 0 28px; text-align: center; }
.depttiles-title { font-family: var(--font-display); font-size: 26px; margin: 0 0 4px; color: var(--ink); font-weight: 700; }
.depttiles-sub { color: var(--text-secondary); margin: 0 0 24px; font-size: 14px; }
.depttiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.dtile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 16px 12px 16px; background: #ffffff; border: 2.5px solid var(--ink);
  border-radius: var(--wobble-lg); transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--ink-shadow);
}
.dtile:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.dtile-ico { width: 84px; height: 63px; display: flex; align-items: center; justify-content: center; }
.dtile-ico img { width: 100%; height: 100%; object-fit: contain; }
.dtile-label { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.dtile-blurb { font-size: 11.5px; color: var(--text-secondary); line-height: 1.32; max-width: 16ch; }
@media (max-width: 880px) { .depttiles { grid-template-columns: repeat(2, 1fr); } }

/* Sign-led district tiles (six world sections, mapped to store routes). */
.bz-districts {
  max-width: 1180px; margin: 44px auto 0; padding: 0 28px;
}
.bz-districts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px;
}
@media (max-width: 880px) { .bz-districts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bz-districts-grid { grid-template-columns: 1fr; } }
.bz-district-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 4px; padding: 8px 16px 18px;
  background: #ffffff; border: 2.5px solid var(--ink);
  border-radius: var(--wobble-lg);
  box-shadow: var(--ink-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bz-district-tile:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.bz-district-tile img.bz-sign { width: 112px; margin-top: -6px; }
.bz-district-tile b { font-family: var(--font-display); font-size: 16px; color: var(--ink); font-weight: 700; }
.bz-district-tile span { font-size: 12.5px; color: var(--text-secondary); }

/* ── Live buyers / low stock (kept for product.html helper output) ─────── */
.low-stock {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ffffff;
  border: 2px solid var(--danger);
  border-radius: 8px 3px 8px 3px;
  padding: 5px 10px; font-size: 12px; font-weight: 700;
  color: var(--danger);
  margin-top: 10px;
}
.low-stock .pulse {
  width: 6px; height: 6px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.live-buyers {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ffffff;
  border: 2px solid var(--green);
  border-radius: 8px 3px 8px 3px;
  padding: 5px 10px; font-size: 12px; font-weight: 700;
  color: var(--green);
  margin-top: 6px;
}
.live-buyers .live-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* ── Dramatic Finale Section ───────────────────────────────────────────── */
.finale {
  max-width: 1280px;
  margin: 80px auto 20px;
  padding: 0 28px;
}
.finale-timeline {
  border-left: 3px solid var(--ink);
  padding-left: 28px;
  margin: 32px 0;
}
.finale-timeline .tl-item {
  position: relative;
  padding: 8px 0 24px 0;
}
.finale-timeline .tl-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 8px;
  width: 12px; height: 12px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.finale-timeline .tl-date {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-weight: 700;
}
.finale-timeline .tl-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.finale-closer {
  margin-top: 40px;
  padding: 40px 32px;
  background: #ffffff;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-lg);
  box-shadow: var(--ink-shadow);
}
.finale-closer h2 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 0.98;
  margin: 0 0 16px;
  text-wrap: balance;
  max-width: 680px;
  color: var(--ink);
}
.finale-closer p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 500px;
  margin: 0 0 24px;
}
.finale-closer .btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-body);
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-lg);
  text-decoration: none;
  box-shadow: var(--ink-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.finale-closer .btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.finale-closer .btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

/* ── PRODUCT PAGE ──────────────────────────────────────────────────────── */
.crumb { font-size: 13px; color: var(--text-secondary); padding: 18px 0 0; }
.crumb a { border-bottom: 1.5px solid transparent; }
.crumb a:hover { color: var(--ink); border-color: var(--red); }
.ptop {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 54px; padding: 22px 0 54px; align-items: start;
}
@media (max-width: 900px) {
  .ptop { grid-template-columns: 1fr; gap: 28px; padding-bottom: 38px; }
  .wrapb { padding: 0 18px; }
}
.gallery { position: sticky; top: 92px; }
@media (max-width: 900px) { .gallery { position: static; } }
.stage {
  background: #ffffff;
  border: 2.5px solid var(--ink);
  border-radius: 28px 80px 26px 70px / 70px 26px 78px 28px;
  overflow: hidden; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  box-shadow: var(--ink-shadow-lg);
  transform: rotate(-0.6deg);
  transition: transform 0.3s ease;
}
.stage:hover { transform: rotate(0deg); }
.stage img { width: 100%; height: 100%; object-fit: contain; }
.stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 11px; margin-top: 18px;
}
.thumb {
  aspect-ratio: 1/1;
  border: 2px solid var(--ink);
  border-radius: 14px 5px 14px 5px;
  overflow: hidden; cursor: pointer;
  background: var(--cream);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.thumb:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); }
.thumb.sel { outline: 3px solid var(--gold); outline-offset: 1px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(38, 35, 30, 0.5);
}
.thumb .play svg { width: 25px; height: 25px; fill: #fff; stroke: #fff; }

/* ── Buy Box ───────────────────────────────────────────────────────────── */
.buy {
  background: #ffffff;
  border: 2.5px solid var(--ink);
  border-radius: 20px 54px 20px 54px / 54px 20px 54px 20px;
  padding: 30px;
  box-shadow: var(--ink-shadow);
}
.buy h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06; margin: 0 0 12px;
  text-wrap: balance;
  color: var(--ink);
}
.rate { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; flex-wrap: wrap; }
.rate .st { color: var(--gold); font-size: 17px; letter-spacing: 0; }
.rate a { border-bottom: 1.5px solid var(--text-secondary); }
.pricebox { display: flex; align-items: baseline; gap: 13px; flex-wrap: wrap; margin: 18px 0 12px; }
.pricebox .now { font-size: 38px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.pricebox .was { color: var(--text-secondary); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.save {
  background: var(--gold);
  color: var(--ink); font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 9px 3px 9px 3px;
  border: 1.5px solid var(--ink);
}
.deliv {
  background: var(--cream);
  border: 2px dashed var(--ink);
  border-radius: 15px 5px 15px 5px;
  padding: 12px 14px; font-size: 14px;
  margin: 12px 0 18px;
  display: flex; align-items: center; gap: 9px;
  color: var(--text-secondary);
}
.deliv svg { flex: none; }
.qty {
  display: inline-flex; align-items: center;
  border: 2.5px solid var(--ink);
  border-radius: 13px; overflow: hidden;
  margin: 2px 0 18px;
  background: #ffffff;
}
.qty button {
  font-size: 18px; width: 40px; height: 44px;
  background: transparent; border: none; cursor: pointer;
  color: var(--ink);
}
.qty button:hover { background: var(--cream); }
.qty input {
  width: 50px; height: 44px; text-align: center;
  border: none; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink);
  font-size: 16px; font-weight: 700; background: transparent; color: var(--ink);
}
.acts { display: flex; flex-direction: column; gap: 13px; }
.btn {
  font-family: var(--font-body); cursor: pointer;
  border: none;
  text-align: center; font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--red); color: #fff;
  font-size: 17px; padding: 16px;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-lg);
  box-shadow: var(--ink-shadow);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn-buy {
  background: #ffffff; color: var(--ink);
  border: 2.5px solid var(--ink);
  font-size: 16px; padding: 14px;
  border-radius: 15px 5px 15px 5px;
  box-shadow: 2px 2px 0 var(--ink);
}
.btn-buy:hover { background: var(--cream); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.secure { font-size: 12.5px; color: var(--text-secondary); margin-top: 3px; display: flex; align-items: center; gap: 7px; }
.varbox { margin: 6px 0 18px; }
.varlabel { font-size: 14px; color: var(--text-secondary); margin-bottom: 9px; }
.varlabel b { color: var(--ink); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw {
  width: 46px; height: 46px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  background-size: cover; background-position: center;
  background-color: #ffffff;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  padding: 0; color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sw:hover { transform: translateY(-2px) scale(1.05); }
.sw.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); }
.varrow { display: flex; align-items: center; gap: 12px; margin: 9px 0; }
.varaxis { font-size: 12px; color: var(--text-secondary); min-width: 54px; text-transform: uppercase; letter-spacing: 0; font-weight: 700; }
.sw.swtxt { width: auto; min-width: 46px; height: 38px; border-radius: 11px 4px 11px 4px; padding: 0 13px; white-space: nowrap; }

/* ── Trust badges ──────────────────────────────────────────────────────── */
.trust { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.tb, .trust-badge {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  flex: 1; min-width: 96px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 18px 60px 18px 60px / 60px 18px 60px 18px;
  padding: 13px 10px;
  transition: transform 0.15s ease;
}
.tb:hover, .trust-badge:hover { transform: translateY(-2px); }
.tb span, .trust-badge span { font-size: 12px; color: var(--text-secondary); line-height: 1.25; }
.trust-badge svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.8; }

/* ── Recommendations ───────────────────────────────────────────────────── */
.recs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 900px) { .recs { grid-template-columns: repeat(2, 1fr); } }
.rcard {
  background: #ffffff;
  border: 2.5px solid var(--ink);
  border-radius: 22px 54px 22px 54px / 54px 22px 54px 22px;
  padding: 12px;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column; gap: 9px;
  text-decoration: none;
  box-shadow: var(--ink-shadow-sm);
}
.rcard:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.rthumb {
  aspect-ratio: 4/3;
  border-radius: 12px 5px 12px 5px;
  overflow: hidden; background: var(--cream);
  border: 2px solid var(--ink);
}
.rthumb img { width: 100%; height: 100%; object-fit: cover; }
.rname { font-size: 14px; margin: 0; line-height: 1.3; font-weight: 700; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rprice { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.sec {
  padding: 50px 0;
  border-top: 2px dashed var(--ink);
}
.sec h2 {
  font-size: 28px; margin: 0 0 22px;
  color: var(--ink);
}
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 34px;
  list-style: none; padding: 0; margin: 0;
}
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
.about li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: 15.5px; color: var(--text-secondary); }
.about li svg { flex: none; margin-top: 2px; color: var(--red); }
.tags { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.tag {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px; font-size: 13px;
  color: var(--text-secondary);
  background: var(--cream);
}

/* ── The dog rides shotgun on shipping lines ───────────────────────────── */
.bz-shipline { display: flex; align-items: center; gap: 10px; }
.bz-shipline .bz-sprite { width: 44px; height: 44px; }

/* ── The cat sits by search ─────────────────────────────────────────────── */
.bz-search-cat {
  width: 30px; height: 30px;
  flex: none;
}

/* ── 3D Immersive Section ──────────────────────────────────────────────── */
.imm { position: relative; }
.imm .tall { height: 300vh; position: relative; }
.imm .pin {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--ink);
}
.imm model-viewer { width: 100%; height: 84vh; --poster-color: transparent; }
.imm .badge3d {
  position: absolute; top: 6vh; left: 26px;
  border: 2px solid #fff;
  background: rgba(252, 250, 243, 0.14);
  border-radius: 13px 5px 13px 5px;
  padding: 7px 13px; font-size: 12px; font-weight: 700;
  display: flex; gap: 7px; align-items: center;
  color: #fff;
}
.imm .capwrap {
  position: absolute; left: 0; right: 0; bottom: 8vh; height: 42px;
  text-align: left; pointer-events: none; padding-left: 26px;
}
.imm .mv-cap {
  font-family: var(--font-display);
  position: absolute; left: 26px; right: 0;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s, transform 0.4s;
  font-size: 26px; font-weight: 600;
  color: #fff;
}
.imm .mv-cap.on { opacity: 1; transform: none; }
.imm .prog {
  position: absolute; top: 6vh; right: 26px;
  font-size: 12px; color: #fff; font-weight: 700;
}

/* ── Reviews ───────────────────────────────────────────────────────────── */
.revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .revs { grid-template-columns: 1fr; } }
.rev {
  background: #fffdf6;
  border: 2px solid var(--ink);
  border-radius: 4px 18px 4px 18px / 18px 4px 18px 4px;
  padding: 18px 20px;
  box-shadow: 2px 2px 0 var(--ink);
}
.rev .who { font-weight: 700; margin-bottom: 2px; color: var(--ink); }
.rev .st { color: var(--gold); font-size: 15px; letter-spacing: 0; }
.rev p { font-size: 14.5px; margin: 9px 0 0; color: var(--text-secondary); }
.soldbar {
  margin-top: 24px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 16px 6px 16px 6px;
  padding: 14px 17px; font-size: 15px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-secondary);
}

/* Rich review header/breakdown (from _reviews_html / _review_stars_breakdown) */
.revs-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 18px;
}
.revs-header h2 { margin: 0; }
.revs-sort {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-secondary);
}
.rsbtn {
  background: #ffffff; border: 1.5px solid var(--ink);
  color: var(--text-secondary); padding: 5px 12px;
  border-radius: 20px; cursor: pointer; font-size: 11px;
  font-family: inherit; font-weight: 700; transition: all 0.15s;
}
.rsbtn:hover { background: var(--cream); color: var(--ink); }
.rsbtn.sel { background: var(--red); color: #fff; border-color: var(--ink); }
.sbreakdown {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 20px; padding: 14px 16px;
  background: var(--cream); border: 2px solid var(--ink);
  border-radius: 12px; max-width: 360px;
}
.sbr { display: flex; align-items: center; gap: 8px; }
.sbl { font-size: 11px; color: var(--text-secondary); width: 32px; flex: none; text-align: right; }
.sbtrack {
  flex: 1; height: 8px; background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 4px; overflow: hidden;
}
.sbb {
  height: 100%; background: var(--gold); border-radius: 4px;
  transition: width 0.5s ease; min-width: 2px;
}
.sbn { font-size: 11px; color: var(--text-secondary); width: 32px; flex: none; }
.revtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.revwho { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rname { font-weight: 700; font-size: 14px; }
.vbadge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--green); font-weight: 700;
  background: #eef2e6; padding: 2px 8px;
  border-radius: 4px; border: 1px solid var(--green);
}
.revmeta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-secondary); flex-shrink: 0; }
.rdate { color: var(--text-secondary); }
.rloc { color: var(--text-tertiary); font-size: 11px; }
.rtitle { font-weight: 700; margin: 6px 0 4px; font-size: 14px; }
.rbody { color: var(--text-secondary); font-size: 13px; line-height: 1.6; margin: 0 0 8px; }
.rphoto { margin: 8px 0; }
.rphoto img {
  max-width: 180px; max-height: 180px; border-radius: 8px;
  border: 2px solid var(--ink); object-fit: cover;
}
.rhelpful {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-secondary);
  background: var(--cream); padding: 5px 10px;
  border-radius: 6px; margin-top: 4px;
}

/* ── Mobile CTA ────────────────────────────────────────────────────────── */
.mcta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  background: var(--paper);
  border-top: 2.5px solid var(--ink);
  display: none;
  justify-content: space-between; align-items: center;
  padding: 11px 18px;
}
.mcta b { font-size: 19px; color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .mcta { display: flex; }
  body { padding-bottom: 78px; }
  .buy { padding: 22px; }
}

/* ── Scroll reveal ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

/* ── Doodle animated icons (product.html trust icons; kept functional) ──── */
.dico {
  width: 40px; height: 40px;
  stroke: var(--text-secondary); fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.dico.sm { width: 17px; height: 17px; display: inline-block; vertical-align: -3px; stroke-width: 2.6; }
.tb:hover .dico { animation: dwiggle 0.55s ease-in-out; }
@keyframes dwiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}
.lock .shk { transform-origin: 19px 15px; animation: lockbob 2.8s ease-in-out infinite; }
@keyframes lockbob { 0%, 68%, 100% { transform: translateY(0); } 80% { transform: translateY(-3px); } }
.lock .spark { opacity: 0; transform-origin: 31px 10px; animation: dspark 2.8s ease-in-out infinite; }
@keyframes dspark { 0%, 70%, 100% { opacity: 0; transform: scale(0.4); } 82% { opacity: 1; transform: scale(1); } }
.truck { animation: drive 2.2s ease-in-out infinite; }
@keyframes drive { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
.truck .whl { transform-box: fill-box; transform-origin: center; animation: dspin 1.1s linear infinite; }
@keyframes dspin { to { transform: rotate(360deg); } }
.truck .puff { animation: dpuff 2.2s ease-in-out infinite; }
@keyframes dpuff { 0% { opacity: 0.55; transform: translateX(0); } 100% { opacity: 0; transform: translateX(-7px); } }
.ret { transform-origin: center; animation: dret 3s ease-in-out infinite; }
@keyframes dret { 0%, 58%, 100% { transform: rotate(0); } 80% { transform: rotate(-26deg); } }
.chk path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: ddraw 1.5s ease forwards; }
@keyframes ddraw { to { stroke-dashoffset: 0; } }
.cart .whl { transform-box: fill-box; transform-origin: center; animation: dspin 1.4s linear infinite; }
.burst { width: 64px; height: 64px; }
.burst .core { transform-origin: center; animation: dpop 0.6s ease both; }
@keyframes dpop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.burst .rays path { stroke-dasharray: 12; stroke-dashoffset: 12; animation: ddraw 0.5s ease 0.25s forwards; }

/* ── Account Menu ──────────────────────────────────────────────────────── */
.acct, .acct-signin { position: relative; font-family: var(--font-body); }
.acct-signin { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--text-secondary); }
.acct-signin:hover { color: var(--ink); }
.acctbtn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: #ffffff; border: 2px solid var(--ink);
  border-radius: 14px 5px 14px 5px;
  padding: 6px 12px; font: inherit; font-size: 14px;
  color: var(--ink);
}
.acctmenu {
  position: absolute; right: 0; top: 46px;
  background: #ffffff; border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--ink-shadow-lg);
  min-width: 170px; padding: 6px; display: none; z-index: 90;
}
.acctmenu.open { display: block; }
.acctmenu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text-secondary); }
.acctmenu a:hover { background: var(--cream); color: var(--ink); }
#g_id_onload { position: fixed; top: 64px; right: 14px; z-index: 120; }

/* ── Cookie Jar ────────────────────────────────────────────────────────── */
.cookiejar {
  position: fixed; right: 22px; bottom: 30px; z-index: 75;
  max-width: 340px;
  background: #ffffff;
  border: 2.5px solid var(--ink);
  border-radius: 18px; padding: 16px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center;
  box-shadow: var(--ink-shadow-lg);
}
.cookiejar.hide { display: none; }
.cookiejar .jar { width: 54px; height: 54px; flex: none; }
.cookiejar .cktext { flex: 1; min-width: 160px; font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.cookiejar .cktext b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 3px; }
.cookiejar .cktext a { color: var(--red); border-bottom: 1.5px solid var(--red); }
.cookiejar .ckbtns { display: flex; gap: 8px; width: 100%; justify-content: flex-end; }
.cookiejar .btn {
  cursor: pointer; background: var(--red); color: #fff;
  border: 2px solid var(--ink); font-family: var(--font-body);
  font-size: 13px; padding: 8px 14px;
  border-radius: var(--wobble);
}
.cookiejar .btn.ghost { background: transparent; color: var(--text-secondary); border: 2px solid var(--ink); }
.cookiejar .btn:active { transform: translateY(1px); }

/* ── Mascot Stage (existing generic SVG doodles — kept, re-inked) ───────── */
.ground {
  position: fixed; left: 0; right: 0; bottom: 24px;
  border-top: 2px solid var(--ink);
  opacity: 0.15; z-index: 39; pointer-events: none;
}
#stage { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: visible; }
#annot { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dwrap { position: absolute; width: 120px; height: 160px; left: 0; top: 0; will-change: transform; transform: translate(-160px, 0); }
.mascot { overflow: visible; width: 120px; height: 160px; display: block; }
.mascot.facing-left { transform: scaleX(-1); }
.mascot .leg { transform-origin: 60px 122px; }
.mascot .arm { transform-origin: 60px 82px; }
.mascot.walking .leg.front { animation: wf 0.4s ease-in-out infinite; }
.mascot.walking .leg.back { animation: wb 0.4s ease-in-out infinite; }
.mascot.walking .arm.front { animation: wb 0.4s ease-in-out infinite; }
.mascot.walking .arm.back { animation: wf 0.4s ease-in-out infinite; }
@keyframes wf { 0% { transform: rotate(20deg); } 50% { transform: rotate(-20deg); } 100% { transform: rotate(20deg); } }
@keyframes wb { 0% { transform: rotate(-20deg); } 50% { transform: rotate(20deg); } 100% { transform: rotate(-20deg); } }
.awrap { position: absolute; width: 90px; height: 70px; left: 0; top: 0; will-change: transform; transform: translate(-160px, 0); }
.animal { overflow: visible; width: 90px; height: 70px; display: block; }
.animal.facing-left { transform: scaleX(-1); }
.animal.trot { animation: trot 0.3s ease-in-out infinite; }
.animal.facing-left.trot { animation: trotL 0.3s ease-in-out infinite; }
@keyframes trot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes trotL { 0%, 100% { transform: scaleX(-1) translateY(0); } 50% { transform: scaleX(-1) translateY(-3px); } }
#sweep { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; }
#sweep .bar { position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: var(--red); transform: skewX(-12deg); filter: blur(1px); }
#sweep.go { opacity: 1; }
#sweep.go .bar { animation: sweepbar 0.6s ease-in-out forwards; }
@keyframes sweepbar { 0% { left: -80px; } 100% { left: 110%; } }

/* Doodle mascots: paper body + ink outline + dot eyes (re-inked for 2.0). */
.mascot [fill="#111"], .animal [fill="#111"] { fill: #fbf3e4; }
.mascot > g[stroke], .animal > g[stroke] { stroke: var(--ink); }
.mascot .pupil, .animal .pupil { fill: var(--ink); }

/* ── FAQ Accordion ─────────────────────────────────────────────────────── */
.faq-section { margin-top: 38px; }
.faq-section h3 { font-size: 22px; margin: 0 0 14px; color: var(--ink); }
.faq-item {
  border: 2px solid var(--ink);
  border-radius: 12px 32px 12px 32px / 32px 12px 32px 12px;
  margin-bottom: 10px;
  background: #ffffff;
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }
.faq-item summary:hover { background: var(--cream); }
.faq-item summary::after {
  content: '+';
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--red); font-weight: 700;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.faq-item .faq-body p { margin: 0 0 10px; }

/* ── Specifications ────────────────────────────────────────────────────── */
.specs-wrap {
  border: 2px solid var(--ink); border-radius: 14px;
  overflow: hidden; margin-top: 0;
}
.specs-wrap .specs-body { display: none; }
.specs-wrap.open .specs-body { display: block; }
.specs-wrap.open .specs-arrow { transform: rotate(180deg); }
.specs-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; cursor: pointer; user-select: none;
  font-weight: 700; font-size: 14px; background: var(--cream);
  transition: background 0.15s;
}
.specs-header:hover { background: #ece0c6; }
.specs-arrow { font-size: 12px; transition: transform 0.3s; color: var(--text-secondary); }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td { padding: 10px 16px; border-top: 1.5px solid var(--ink); font-size: 13px; vertical-align: top; }
.specs-table .sk { font-weight: 700; color: var(--ink); width: 140px; flex-shrink: 0; }
.specs-table .sv { color: var(--text-secondary); }

/* ── Variant availability indicators ────────────────────────────────────── */
.sbtn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; font-size: 12px; font-weight: 700;
  border-radius: 6px; position: relative;
}
.sdot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sdot.green { background: var(--green); }
.sdot.grey { background: #9ca3af; }
.csw {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--ink); padding: 0;
  position: relative; box-sizing: border-box;
}
.csw.sel { box-shadow: 0 0 0 2px var(--red); }
.csw.instock { opacity: 1; }
.csw.lowstock { opacity: 0.55; }
.vurg {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 9px; color: var(--danger); white-space: nowrap;
  font-weight: 700; pointer-events: none;
}
.sbtn.lowstock { border-color: rgba(181,52,28,0.4); }
.size-guide-link:hover { text-decoration: underline; }

/* ── Image Lightbox ────────────────────────────────────────────────────── */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 2001;
  background: rgba(38, 35, 30, 0.92); backdrop-filter: blur(6px);
  justify-content: center; align-items: center; cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: 12px; cursor: default; }
.lightbox-overlay .lb-close {
  position: absolute; top: 24px; right: 28px; z-index: 10;
  background: none; border: none; color: #fff; font-size: 36px;
  cursor: pointer; line-height: 1; opacity: 0.7; transition: opacity 0.2s;
}
.lightbox-overlay .lb-close:hover { opacity: 1; }
.lightbox-overlay .lb-prev, .lightbox-overlay .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: 2px solid #fff;
  color: #fff; font-size: 32px; width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: background 0.2s; z-index: 10;
}
.lightbox-overlay .lb-prev:hover, .lightbox-overlay .lb-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-overlay .lb-prev { left: 20px; }
.lightbox-overlay .lb-next { right: 20px; }

/* ── Size Guide Modal ───────────────────────────────────────────────────── */
.sg-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(38,35,30,0.8); backdrop-filter: blur(6px);
  justify-content: center; align-items: center;
}
.sg-overlay.open { display: flex; }
.sg-modal {
  background: #ffffff; border: 2.5px solid var(--ink);
  border-radius: 16px; padding: 28px; max-width: 620px; width: 92%;
  max-height: 85vh; overflow-y: auto; position: relative;
  box-shadow: var(--ink-shadow-lg);
}
.sg-modal h3 { margin: 0 0 16px; font-size: 20px; color: var(--ink); }
.sg-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 28px; color: var(--text-secondary);
  cursor: pointer; line-height: 1; padding: 0;
}
.sg-close:hover { color: var(--ink); }
.sg-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.sg-tab {
  background: transparent; border: 1.5px solid var(--ink);
  color: var(--text-secondary); padding: 7px 16px; border-radius: 8px;
  cursor: pointer; font-size: 13px; font-family: inherit; font-weight: 700;
  transition: all 0.15s;
}
.sg-tab:hover { background: var(--cream); color: var(--ink); }
.sg-tab.sel { background: var(--red); color: #fff; border-color: var(--ink); }
.sg-pane table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sg-pane th, .sg-pane td { padding: 7px 10px; text-align: center; border-bottom: 1.5px solid var(--ink); }
.sg-pane th { font-weight: 700; color: var(--ink); font-size: 11px; background: var(--cream); }
.sg-pane td { color: var(--text-secondary); }
.sg-note { font-size: 11px; color: var(--text-tertiary); margin-top: 10px; }

/* ── Recently viewed / trending strips ──────────────────────────────────── */
.recently-viewed { max-width: 1280px; margin: 40px auto 0; padding: 0 28px; }
.recently-viewed h3 { font-size: 20px; margin: 0 0 14px; color: var(--ink); }
.trending-wrap { max-width: 1280px; margin: 40px auto 0; padding: 0 28px; }
.trending-title { font-family: var(--font-display); font-size: 24px; margin: 0 0 16px; color: var(--ink); font-weight: 700; }
.trending { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.trending::-webkit-scrollbar { height: 4px; }
.trending::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 4px; }
.tcard {
  flex: 0 0 180px;
  background: #ffffff; border: 2px solid var(--ink);
  border-radius: 16px 40px 16px 40px / 40px 16px 40px 16px;
  padding: 10px; transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 2px 2px 0 var(--ink);
}
.tcard:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.tthumb { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--cream); border: 1.5px solid var(--ink); }
.tthumb img { width: 100%; height: 100%; object-fit: cover; }
.tinfo { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.tname { font-size: 13px; font-weight: 700; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.tprice { font-size: 14px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.trating { font-size: 11px; color: var(--text-secondary); }
@media (max-width: 880px) { .tcard { flex: 0 0 150px; } }

/* ── Skeleton Loading ──────────────────────────────────────────────────── */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton {
  background: linear-gradient(90deg, var(--cream) 25%, #ffffff 50%, var(--cream) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
.skel-card { background: #ffffff; border: 2px solid var(--ink); border-radius: var(--wobble-lg); padding: 14px; }
.skel-img {
  aspect-ratio: 4/3; width: 100%; border-radius: 14px 5px 14px 5px; margin-bottom: 12px;
  background: linear-gradient(90deg, var(--cream) 25%, #ffffff 50%, var(--cream) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite;
}
.skel-line {
  height: 14px; margin-bottom: 8px;
  background: linear-gradient(90deg, var(--cream) 25%, #ffffff 50%, var(--cream) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: 4px;
}
.skel-line.short { width: 60%; }
.skel-line.price { width: 35%; height: 18px; }

/* ── Exit intent overlay ───────────────────────────────────────────────── */
.exit-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(38,35,30,0.85); backdrop-filter: blur(6px);
  justify-content: center; align-items: center;
}
.exit-overlay.show { display: flex; }
.exit-popup {
  background: #ffffff; border: 2.5px solid var(--ink);
  border-radius: var(--wobble-lg); padding: 32px; max-width: 420px; width: 90%;
  text-align: left; box-shadow: var(--ink-shadow-lg);
}
.exit-popup h3 { font-size: 24px; margin: 0 0 8px; color: var(--ink); }
.exit-popup p { color: var(--text-secondary); margin: 0 0 20px; font-size: 14px; }
.exit-popup .btn { width: 100%; }

/* ── CART PAGE ─────────────────────────────────────────────────────────── */
.cart-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 100px;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
}
.cart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.cart-brand { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--ink); text-decoration: none; }
.cart-brand b { color: var(--red); }
.cart-steps { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.cart-steps .step { padding: 6px 14px; border-radius: 20px; background: var(--cream); color: var(--text-muted); border: 1.5px solid transparent; }
.cart-steps .step.active { background: var(--red); color: #fff; border-color: var(--ink); }
.cart-empty { text-align: center; padding: 56px 20px 24px; }
.cart-empty h2 { font-size: 28px; margin-bottom: 10px; color: var(--ink); font-family: var(--font-display); }
.cart-empty p { color: var(--text-secondary); margin-bottom: 8px; font-size: 16px; }
.cart-empty-shopper {
  width: 84px; height: 84px; margin: 0 auto 18px;
  background-image: url('/static/town3d/doodles/shopper_a.png');
  background-repeat: no-repeat;
  background-size: 800% 100%;
  background-position: -600% 0; /* idle cell */
}
.cart-empty .btn {
  display: inline-block; margin-top: 20px;
  padding: 14px 32px;
  background: var(--red); color: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-lg);
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  box-shadow: var(--ink-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cart-empty .btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.cart-empty .btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

.cart-item {
  display: flex; gap: 16px; padding: 18px 0;
  border-bottom: 2px dashed var(--ink);
  align-items: center;
  animation: cartFadeIn 0.3s ease;
}
@keyframes cartFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.cart-item-img {
  width: 90px; height: 90px; border-radius: 10px 3px 10px 3px;
  object-fit: cover; background: var(--cream); flex-shrink: 0;
  border: 2px solid var(--ink);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-weight: 700; font-size: 15px; line-height: 1.3; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--ink);
}
.cart-item-meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.cart-qty {
  display: flex; align-items: center; gap: 0;
  border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; width: fit-content;
}
.cart-qty button {
  width: 32px; height: 32px; border: none; background: #ffffff; color: var(--ink);
  font-size: 18px; cursor: pointer; font-weight: 700; transition: background 0.15s;
}
.cart-qty button:hover { background: var(--cream); }
.cart-qty span { width: 36px; text-align: center; font-weight: 700; font-size: 14px; color: var(--ink); }
.cart-item-price { text-align: right; flex-shrink: 0; }
.cart-item-price .price { font-weight: 700; font-size: 18px; color: var(--ink); }
.cart-item-remove {
  display: block; font-size: 11px; color: var(--text-muted); cursor: pointer; margin-top: 4px;
  text-decoration: none; transition: color 0.15s;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-summary {
  margin-top: 26px; padding: 0 0 20px;
  background: #ffffff; border-radius: 18px 46px 18px 46px / 46px 18px 46px 18px;
  border: 2.5px solid var(--ink);
  box-shadow: var(--ink-shadow);
  overflow: hidden;
  position: relative;
}
/* Awning strip on top of the summary box, per the brief. */
.cart-summary::before {
  content: '';
  display: block;
  height: 14px;
  background-image: url('/static/town3d/dressing/awning.png');
  background-repeat: repeat-x;
  background-size: 56px 14px;
  border-bottom: 2px solid var(--ink);
}
.cart-summary-body { padding: 20px 24px 0; }
.cart-summary h3 { font-size: 18px; margin-bottom: 16px; font-family: var(--font-display); color: var(--ink); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--text-secondary); }
.summary-row.total { border-top: 2px dashed var(--ink); margin-top: 8px; padding-top: 14px; font-size: 20px; font-weight: 700; color: var(--ink); }
.summary-row .free { color: var(--green); font-weight: 700; }

.ship-selector { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.ship-selector select {
  padding: 10px 14px; background: #ffffff; border: 2px solid var(--ink); border-radius: 10px;
  color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.ship-selector label { color: var(--text-secondary); font-size: 12px; font-weight: 700; }

.cart-checkout-btn {
  display: block; width: calc(100% - 48px); margin: 20px 24px 0;
  padding: 17px; background: var(--red); color: #fff;
  border: 2.5px solid var(--ink); border-radius: var(--wobble-lg);
  font-weight: 700; font-size: 17px; cursor: pointer; text-align: center;
  text-decoration: none; letter-spacing: 0.3px;
  box-shadow: var(--ink-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cart-checkout-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.cart-checkout-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

.trust-strip { display: flex; justify-content: center; gap: 24px; margin-top: 16px; font-size: 11px; color: var(--text-muted); font-weight: 700; }

@media (max-width: 600px) {
  .cart-item { gap: 12px; }
  .cart-item-img { width: 64px; height: 64px; }
  .cart-item-name { font-size: 13px; }
  .cart-item-price .price { font-size: 15px; }
  .cart-steps { display: none; }
  .cart-summary-body { padding: 16px 16px 0; }
  .cart-checkout-btn { width: calc(100% - 32px); margin: 16px 16px 0; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero2col { grid-template-columns: 1fr; }
  .hctas { justify-content: flex-start; }
  .hdoors { grid-template-columns: 1fr; }
  .hstage { margin: 0; max-width: 420px; }
  .hero::before { width: 300px; height: 300px; right: -100px; }
}
@media (max-width: 720px) {
  .topbar { align-items: flex-start; gap: 16px; }
  .util { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .hero { margin-top: 24px; padding: 32px 20px 88px; }
  .hero h1 { font-size: 34px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; padding: 0 16px; }
  nav.aisles { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .card { padding: 11px; }
  .bunting-strip { height: 32px; background-size: 128px 32px; }
  .bz-footer-inner { flex-direction: column; }
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .imm .tall { height: auto; }
  .imm .pin { position: static; height: auto; padding: 26px 0; }
  .imm model-viewer { height: 70vh; }
  .mascot.walking .leg, .mascot.walking .arm, .animal.trot { animation: none !important; }
  .dwrap, .awrap { transition: none !important; }
  .dico, .dico * { animation: none !important; }
  /* WP6: mascot guardrail - paused entirely under reduced motion. Belt and
     suspenders alongside the JS load-guard in templates/_mascot.html and
     the hard-stop at the top of static/js/mascot.js. */
  #stage, #sweep { display: none !important; }
  /* WP9 fix: the WP3 free-ship progress bar was the one new animated element
     this sprint added that the reduced-motion block didn't cover. */
  .freeship-fill { transition: none !important; }
}

/* ── Ultrawide centering ───────────────────────────────────────────────── */
.wrapb, .nav .row, .topbar, nav.aisles, .hero, .grid, .strip, footer, .finale,
.recently-viewed, .trending-wrap {
  margin-left: auto;
  margin-right: auto;
}

/* ── Search dropdown (live results) ───────────────────────────────────── */
.searchdrop {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: auto;
  width: 320px; max-height: 380px; overflow-y: auto;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 15px 10px 17px 11px / 11px 17px 10px 15px;
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 100; margin-top: 8px;
}
.searchdrop.open { display: block; }
.searchdrop .sri {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; text-decoration: none;
  border-bottom: 1.5px dashed var(--cream);
}
.searchdrop .sri:last-child { border-bottom: none; }
.searchdrop .sri:hover,
.searchdrop .sri.active { background: var(--cream); }
.searchdrop .sri img {
  width: 40px; height: 40px; object-fit: cover;
  border-radius: 9px 6px 10px 7px / 7px 10px 6px 9px;
  border: 1.5px solid var(--ink); flex: none;
}
.searchdrop .sri .sinfo { flex: 1; min-width: 0; }
.searchdrop .sri .siname {
  font-size: 13px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.searchdrop .sri .siprice { font-size: 12.5px; color: var(--red); font-weight: 700; }

/* ── Cart AOV: qty stepper links, free-ship bar, bundle nudge, discount row,
   success/upsell page ─────────────────────────────────────────────────── */
.cart-qty a {
  width: 32px; height: 32px; border: none; background: #ffffff; color: var(--ink);
  font-size: 18px; font-weight: 700; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.cart-qty a:hover { background: var(--cream); }
.cart-qty a.disabled { color: var(--text-muted); pointer-events: none; }

.summary-row.discount { color: var(--green); font-weight: 700; }

.freeship-bar {
  margin: 18px 0 22px;
  padding: 14px 16px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 14px 34px 14px 34px / 34px 14px 34px 14px;
  box-shadow: var(--ink-shadow-sm);
}
.freeship-msg { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.freeship-msg.unlocked { color: var(--green); }
.freeship-track {
  height: 10px; border-radius: 999px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  overflow: hidden;
}
.freeship-fill {
  height: 100%; background: var(--red);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.freeship-fill.unlocked { background: var(--green); }

.bundle-nudge {
  margin: 18px 0 22px;
  padding: 16px;
  background: var(--cream);
  border: 2px dashed var(--ink);
  border-radius: 14px 34px 14px 34px / 34px 14px 34px 14px;
}
.bundle-nudge h4 {
  font-family: var(--font-display); font-size: 16px; margin: 0 0 4px;
  color: var(--ink);
}
.bundle-nudge .bundle-sub { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 12px; }
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.bundle-card {
  background: #ffffff; border: 2px solid var(--ink); border-radius: 10px 4px 10px 4px;
  text-align: center; text-decoration: none; color: var(--ink);
  padding: 10px 8px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bundle-card:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.bundle-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px 2px 6px 2px;
  border: 1.5px solid var(--ink); margin-bottom: 6px; background: var(--cream);
}
.bundle-card .bc-name {
  font-size: 12px; font-weight: 700; line-height: 1.25; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bundle-card .bc-price { font-size: 12.5px; color: var(--red); font-weight: 700; }
.bundle-card .bc-add {
  display: block; margin-top: 6px; font-size: 11px; font-weight: 700;
  color: #fff; background: var(--red); border: 1.5px solid var(--ink);
  border-radius: 999px; padding: 4px 0;
}

/* ── Success page ─────────────────────────────────────────────────────── */
.success-hero { text-align: center; padding: 40px 20px 8px; }
.success-hero .burst { margin: 0 auto 14px; }
.success-hero h1 { font-family: var(--font-display); font-size: 30px; margin-bottom: 8px; color: var(--ink); }
.success-hero p { color: var(--text-secondary); font-size: 15px; }
.success-fulfil {
  max-width: 460px; margin: 20px auto; padding: 18px 22px;
  background: #ffffff; border: 2px solid var(--ink);
  border-radius: 14px 34px 14px 34px / 34px 14px 34px 14px;
}
.success-fulfil h3 { font-family: var(--font-display); font-size: 16px; margin-bottom: 10px; color: var(--ink); }
.success-fulfil ul { list-style: none; padding: 0; margin: 0; font-size: 13.5px; color: var(--text-secondary); }
.success-fulfil li { padding: 4px 0; border-bottom: 1px dashed var(--cream); }
.success-fulfil li:last-child { border-bottom: none; }
.success-upsell {
  max-width: 460px; margin: 24px auto 8px; padding: 18px 22px;
  background: var(--cream); border: 2px dashed var(--ink);
  border-radius: 14px 34px 14px 34px / 34px 14px 34px 14px;
  display: flex; gap: 14px; align-items: center;
}
.success-upsell img {
  width: 72px; height: 72px; object-fit: cover; flex-shrink: 0;
  border-radius: 8px 3px 8px 3px; border: 1.5px solid var(--ink); background: #fff;
}
.success-upsell .su-body { flex: 1; min-width: 0; text-align: left; }
.success-upsell .su-eyebrow { font-size: 11.5px; color: var(--text-muted); font-weight: 700; margin-bottom: 3px; }
.success-upsell .su-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.success-upsell .su-price { font-size: 13.5px; color: var(--red); font-weight: 700; margin-bottom: 8px; }
.success-upsell .su-add {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: #fff;
  background: var(--red); border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 6px 16px; text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   WP2 — PDP Trust Layer (guarantee / shipping / secure checkout, reviews)
   Additive only — new class names, no existing rules touched.
   ═══════════════════════════════════════════════════════════════════════ */
.pdp-trust {
  margin: 18px 0 4px; padding: 16px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 14px 28px 14px 28px / 28px 14px 28px 14px;
  background: var(--surface-raised);
}
.pdp-trust-row { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.pdp-trust-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; color: var(--text-secondary);
  flex: 1 1 220px; min-width: 200px;
}
.pdp-trust-item svg {
  width: 22px; height: 22px; flex: none; margin-top: 1px;
  stroke: var(--ink); fill: none; stroke-width: 1.8;
}
.pdp-trust-links {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--text-secondary);
  display: flex; gap: 8px; font-size: 12.5px; color: var(--text-secondary);
}
.pdp-trust-links a { color: var(--text-secondary); border-bottom: 1.5px solid var(--text-secondary); }
.pdp-trust-links a:hover { color: var(--accent); border-color: var(--accent); }

/* Honest empty state for products with no reviews yet — never fake content. */
.rev-empty {
  padding: 22px 18px; border: 1.5px dashed var(--text-secondary); border-radius: 14px;
  color: var(--text-secondary); font-size: 14.5px; text-align: center;
}

/* Review submission form */
.review-form-wrap {
  margin-top: 26px; padding: 18px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 16px 30px 16px 30px / 30px 16px 30px 16px;
  background: var(--surface);
}
.review-form-wrap h3 { margin: 0 0 12px; }
.review-form-wrap label {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--text-secondary);
  margin: 10px 0 4px;
}
.review-form-wrap input[type="text"],
.review-form-wrap input[type="email"],
.review-form-wrap textarea {
  width: 100%; box-sizing: border-box; padding: 9px 11px;
  border: 1.5px solid var(--ink); border-radius: 8px;
  font-family: var(--font-body); font-size: 14px; background: var(--surface); color: var(--text-primary);
}
.review-form-wrap textarea { min-height: 90px; resize: vertical; }
.review-stars-input { display: flex; gap: 10px; flex-wrap: wrap; }
.review-stars-input label {
  display: inline-flex; align-items: center; gap: 4px; font-weight: 600;
  margin: 0; color: var(--text-primary);
}
.review-form-wrap button { margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.success-keepshopping { display: block; text-align: center; margin: 28px auto 0; font-weight: 700; }
