/* ══════════════════════════════════════════════
   SECKAR KOI: SHARED STYLESHEET
   Type floor: 16px for reading text, 14px for labels.
   Section rhythm: --gap between sections, 16px eyebrow to heading,
   12px heading to subtitle, 40px to content.
   ══════════════════════════════════════════════ */

/* ─── FONTS ─── served from this site (assets/fonts). Written by scripts/fonts-seckar-koi.mjs: do not edit by hand.
   font-display: swap shows text straight away in a fallback face, then swaps. Each file only
   downloads if the page uses characters from its unicode-range. */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/cormorant-garamond-italic-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/cormorant-garamond-italic-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('assets/fonts/cormorant-garamond-italic-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('assets/fonts/cormorant-garamond-italic-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/manrope-400-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/manrope-400-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Zen Old Mincho'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/zen-old-mincho-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Zen Old Mincho'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/zen-old-mincho-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Zen Old Mincho'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/zen-old-mincho-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Zen Old Mincho'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/zen-old-mincho-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ─── END FONTS ─── */

/* ─── TOKENS ─── */
:root {
  --washi: #f3ecdc;
  --washi-2: #ece2cd;
  --washi-3: #e3d6ba;
  --paper: #fffbf0;
  --sumi: #1a1612;
  --sumi-2: #2b2520;
  --ink: #3a3128;
  --muted: #5f5547;      /* quiet labels: 6:1 on the cream page */
  --hi: #b91d1d;
  --hi-deep: #8b1313;
  --gold: #b08831;
  --gold-soft: #d4ae5a;
  --gold-ink: #7a5c14;   /* gold dark enough for text on cream */
  --cream: #f4ecde;      /* text over the hero video */
  --rule: rgba(26,22,18,0.12);
  --rule-strong: rgba(26,22,18,0.3);
  --ff-display: 'Zen Old Mincho', serif;
  --ff-accent: 'Cormorant Garamond', serif;
  --ff-body: 'Manrope', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1280px;
  --pad: 32px;
  --gap: 96px;           /* space between sections */
  --radius: 4px;         /* photos and panels */
  --nav-h: 99px;         /* height of the sticky nav: things that stick under it use this */
}
@media (max-width: 767px) {
  :root { --pad: 24px; --gap: 72px; --nav-h: 77px; --radius: 8px; }   /* phones: 24px at the sides, 72px between sections, 8px photo corners, everything else in steps of 8 */
}

/* ─── BASE ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--washi); color-scheme: light only; }
body {
  font-family: var(--ff-body);
  background: var(--washi);
  color: var(--sumi);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 450;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  html, body { background: var(--washi) !important; color: var(--sumi) !important; }
}
img { max-width: 100%; }
section { position: relative; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--sumi);
  color: var(--washi);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--hi); outline-offset: 2px; }
/* Anything Tom still has to confirm is highlighted so it cannot be missed */
/* Something Tom has still to confirm. The page source keeps the full "[TOM TO CONFIRM: ...]" note beside it; on the page it is plain, quiet wording. */
.todo { color: var(--muted); }
.footer .todo { color: rgba(243,236,220,0.62); }

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243,236,220,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; padding: 4px 0; text-decoration: none; }
.brand-mark { position: relative; display: block; flex: none; overflow: hidden; }
.brand-logo { height: 66px; width: auto; max-width: none; display: block; transition: opacity 0.25s ease; }
.brand-logo--light { position: absolute; left: 0; top: 0; opacity: 0; }
.brand-word { display: none; }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: var(--sumi);
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--hi); }
/* How many koi are for sale right now */
.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: var(--hi);
  color: var(--washi);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
/* Basket and menu: quiet 44px circles, no outline */
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(26,22,18,0.07);
  color: var(--sumi);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s var(--ease);
}
.icon-btn:hover { background: var(--sumi); color: var(--washi); }
.icon-btn:active { transform: scale(0.94); }
.menu-toggle { display: none; }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
}
@media (max-width: 720px) {
  .nav-inner { padding-top: 10px; padding-bottom: 10px; }
  .brand-logo { height: 48px; }
}

/* Home only: the nav sits clear over the water, with cream text, and becomes the frosted
   cream bar only while a panel is underneath it (script.js adds .is-solid).
   html.nav-over is set by the head script, so without JavaScript the solid bar stays. */
html.nav-over .nav--overlay { position: fixed; left: 0; right: 0; }
html.nav-over .nav--overlay.is-solid { box-shadow: 0 1px 0 rgba(26,22,18,0.05), 0 12px 24px -20px rgba(26,22,18,0.55); }
html.nav-over .nav--overlay:not(.is-solid) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* A soft shade behind the clear nav, so it reads over any frame of the video and over anything passing beneath */
html.nav-over .nav--overlay::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% + 64px);
  z-index: -1;
  background: linear-gradient(180deg, rgba(6,13,11,0.74) 0%, rgba(6,13,11,0.46) 50%, rgba(6,13,11,0) 100%);
  pointer-events: none;
  transition: opacity 0.25s ease;
}
html.nav-over .nav--overlay.is-solid::before { opacity: 0; }
/* Over the water the nav has no logo (the large one is in the hero). It fades in on the left with the frosted bar, after 80px of scrolling. */
html.nav-over .nav--overlay .brand { transition: opacity 0.4s ease; }
html.nav-over .nav--overlay:not(.is-solid) .brand { opacity: 0; pointer-events: none; }
html.nav-over .nav--overlay:not(.is-solid) .brand-logo { opacity: 0; }
html.nav-over .nav--overlay:not(.is-solid) .brand-logo--light { opacity: 1; }
html.nav-over .nav--overlay:not(.is-solid) .nav-links a { color: var(--cream); }
/* Frosted glass over the water */
html.nav-over .nav--overlay:not(.is-solid) .icon-btn {
  color: var(--cream);
  background: rgba(244,236,222,0.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
html.nav-over .nav--overlay:not(.is-solid) .icon-btn:hover { background: var(--cream); color: var(--sumi); }
html.nav-over .nav--overlay:not(.is-solid) a:focus-visible,
html.nav-over .nav--overlay:not(.is-solid) button:focus-visible { outline-color: var(--cream); }
@media (max-width: 720px) {
  /* Phones, over the water: a stronger shade, and only the logo's mark (the circle and koi)
     with the name set small in cream, so the red lettering never sits on a fish */
  html.nav-over .nav--overlay::before { height: calc(100% + 72px); background: linear-gradient(180deg, rgba(6,13,11,0.86) 0%, rgba(6,13,11,0.58) 48%, rgba(6,13,11,0) 100%); }
  html.nav-over .nav--overlay:not(.is-solid) .brand-mark { width: 53px; }   /* the mark is the left half of the 48px-high logo */
  html.nav-over .nav--overlay:not(.is-solid) .brand-word {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--cream);
  }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--washi);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 600;
  text-decoration: none;
  color: var(--sumi);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
}
.mobile-menu a:hover { color: var(--hi); }
.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--sumi);
}

/* ─── BUTTONS ───
   Two styles across the site. Primary (.btn): a deep ink fill. Secondary (.btn.ghost):
   a 1px line. Both are pills, 48px tall, in sentence case at normal letter spacing, and only
   as wide as their words. On hover the two swap (fill to line, line to fill). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 28px;
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--sumi);
  border-radius: 999px;
  background: var(--sumi);
  color: var(--washi);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s var(--ease);
}
.btn:hover { background: transparent; color: var(--sumi); }
.btn:active { transform: scale(0.985); }
.btn.ghost { background: transparent; border-color: rgba(26,22,18,0.45); color: var(--sumi); }
.btn.ghost:hover { background: var(--sumi); border-color: var(--sumi); color: var(--washi); }
.btn:disabled { background: transparent; border-color: var(--rule-strong); color: var(--muted); cursor: default; transform: none; }
/* Buttons on dark bands */
.on-dark .btn { background: var(--washi); border-color: var(--washi); color: var(--sumi); }
.on-dark .btn:hover { background: transparent; color: var(--washi); }
.on-dark .btn.ghost { background: transparent; color: var(--washi); border-color: rgba(243,236,220,0.55); }
.on-dark .btn.ghost:hover { background: var(--washi); border-color: var(--washi); color: var(--sumi); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--sumi);
  border-bottom: 1px solid var(--sumi);
  transition: gap 0.3s var(--ease), color 0.3s ease, border-color 0.3s ease;
}
.text-link:hover { gap: 16px; color: var(--hi); border-color: var(--hi); }

/* ─── FOCUS ─── */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; }
.on-dark a:focus-visible,
.on-dark button:focus-visible,
.footer a:focus-visible { outline-color: var(--gold-soft); }

/* ─── SECTIONS AND SECTION HEADERS ───
   One pattern everywhere: eyebrow, heading, optional subtitle, all on the
   same left edge as the content below. No rules, no boxes. */
.section { padding: var(--gap) 0; }
.section--flush { padding-top: 0; }   /* follows a section with the same background */
.section-head { margin-bottom: 40px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hi);
}
.eyebrow::before { content: ''; flex: none; width: 24px; height: 1px; background: currentColor; }
.section-head h2,
.h-display {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.accent { font-family: var(--ff-accent); font-style: italic; font-weight: 500; color: var(--hi); }
.section-sub {
  margin-top: 12px;
  max-width: 46ch;
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
}
.section-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
@media (max-width: 767px) {
  .section-actions { justify-content: center; }
  .section-actions .btn:only-child { background: transparent; border-color: rgba(26,22,18,0.45); color: var(--sumi); }   /* "View all koi": an outlined pill, centred */
  .section-sub { display: none; }              /* phones: eyebrow and headline only */
}

/* ─── TRUST LINE (home) ─── one calm line of cream text straight on the water, gold dots between.
   Desktop: one centred row. Phones: a slow ticker that loops without a seam (the list is in the
   page twice; the copy is hidden from screen readers), pauses under a finger, and with reduced
   motion stands still on two centred lines. */
.trust { padding: 6px 0 10px; color: var(--cream); overflow: hidden; }
.trust-track { display: flex; justify-content: center; }
.trust-row { list-style: none; display: flex; flex: none; align-items: center; }
.trust-row li {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(6,13,11,0.6);
}
.trust-row li::before { content: ''; flex: none; width: 4px; height: 4px; margin: 0 22px; border-radius: 50%; background: var(--gold-soft); }
.trust-row[aria-hidden="true"] { display: none; }
.trust-row:first-child li:first-child::before { display: none; }
@media (max-width: 900px) {
  .trust-track { justify-content: flex-start; width: max-content; animation: trust-ticker 34s linear infinite; }
  .trust-track.is-paused { animation-play-state: paused; }
  .trust-row[aria-hidden="true"] { display: flex; }
  .trust-row:first-child li:first-child::before { display: block; }
  .trust-row li::before { margin: 0 18px; }
  /* The Google rating leads the ticker, so it is on screen as soon as the ticker is */
  .trust-row .trust-rating { order: -1; }
}
@keyframes trust-ticker { to { transform: translateX(-50%); } }
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .trust-track { width: auto; justify-content: center; animation: none; }
  .trust-row { flex-wrap: wrap; justify-content: center; row-gap: 6px; padding: 0 var(--pad); }
  .trust-row[aria-hidden="true"] { display: none; }
  .trust-row li:nth-child(odd)::before { display: none; }
  .trust-row li::before { margin: 0 12px; }
}

/* The Google rating: in the trust line, on its own line after the featured koi, in the footer and by Add to basket */
.trust-row a { color: inherit; text-decoration: none; }
.trust-row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.trust-row a span,
.rating-star { color: var(--gold-soft); }
.rating-line { margin: clamp(28px, 4vw, 44px) auto 0; padding: 0 var(--pad); text-align: center; font-size: 17px; line-height: 1.5; color: var(--cream); text-shadow: 0 1px 12px rgba(6,13,11,0.6); }
.rating-line a { display: inline-block; padding: 10px 6px; color: inherit; text-decoration: none; }
.rating-line a:hover { text-decoration: underline; text-underline-offset: 5px; }
.rating-line strong { font-family: var(--ff-display); font-size: 22px; font-weight: 600; }
.rating-line + .section.panel { margin-top: clamp(28px, 4vw, 44px) !important; }
@media (max-width: 767px) {
  .rating-line { margin-top: 20px; }
}
.footer-rating { margin-top: 14px; }
.footer-rating a { color: var(--washi); text-underline-offset: 3px; }
.footer-rating .google-rating { text-decoration: none; }
.footer-rating .google-rating span { color: var(--gold-soft); }

/* ─── CARD GRIDS ─── koi and products share one grid: 4 across, then 2, then 1 on the narrowest phones */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 52px 28px;
}
.shop-grid[aria-busy="true"] { min-height: 320px; }
/* In the shops the list fills the screen while it loads, so the footer is never on screen and then pushed away */
.shop-page .shop-grid[aria-busy="true"] { min-height: 100vh; }
@media (max-width: 900px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 20px; } }
@media (max-width: 767px) { .shop-grid { gap: 32px 16px; } }
@media (max-width: 360px) { .shop-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* A card is a link (the whole card opens its quick view) with, on phones in the shops, a "+" beside it */
.shop-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.shop-card > a { flex: 1 1 auto; }
.koi-card-photo { position: absolute; inset: 0; }
.koi-card-by { display: none; }                      /* phones only: the breeder joins the title there */

/* ─── KOI CARDS ─── photo; variety; breeder; size and age; then price left, availability right */
.koi-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--sumi);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.koi-card-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
  background: var(--washi-3);
}
/* Photos fade in as they arrive (script.js switches this on, and marks each photo when it has loaded) */
html.img-fade .koi-card-img img,
html.img-fade .product-card-img img,
html.img-fade .qv-slide img { opacity: 0; transition: opacity 0.5s ease, transform 0.7s var(--ease); }
html.img-fade .koi-card-img img.is-loaded,
html.img-fade .product-card-img img.is-loaded,
html.img-fade .qv-slide img.is-loaded { opacity: 1; }
.koi-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
/* Framed by script.js: width, height, left and top are set inline so baked-in bars are cropped out */
img.is-framed { inset: auto; object-fit: fill; }
/* Photos shown whole sit on a blurred copy of themselves */
.koi-card-img img.photo-backdrop,
.variety-photo img.photo-backdrop { filter: blur(16px) saturate(1.05); transform: scale(1.18); }
.koi-card:hover .koi-card-img img:not(.photo-backdrop),
.koi-card:active .koi-card-img img:not(.photo-backdrop) { transform: scale(1.04); }
/* A light press state on touch */
.koi-card:active,
.product-card:active { opacity: 0.86; }
.koi-card, .product-card { transition: opacity 0.2s ease; }
/* On the photo: Sold or New arrival (top left), rating (top right), overwintering (bottom left), video (bottom right) */
.koi-card-badge,
.koi-card-stars {
  position: absolute;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  background: rgba(14,20,18,0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fffbf0;
}
.koi-card-badge,
.koi-card-stars { left: 10px; top: 10px; }
.koi-card-stars { font-variant-numeric: tabular-nums; }
/* A small play mark in the corner when the koi has a video */
.koi-card-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 1px;
  background: rgba(14,20,18,0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fffbf0;
}
.koi-card-play svg { width: 11px; height: 11px; }
.koi-card.is-sold .koi-card-img img { filter: saturate(0.5) brightness(0.92); }
.koi-card-name {
  margin-top: 16px;
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Breeder (and a product's category): small spaced capitals */
.koi-card-breeder {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.koi-card-meta { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Its own row: price on the left, availability on the right. Never wraps. */
.koi-card-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.koi-card-price,
.product-card-price {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.koi-card-price small,
.product-card-price small,
.qv-price small { font-family: var(--ff-body); font-size: 14px; font-weight: 600; color: var(--ink); margin-right: 4px; }
.koi-card-left { font-size: 14px; font-weight: 500; color: var(--muted); }
.koi-card.is-sold .koi-card-price { color: var(--muted); }
.koi-card:focus-visible,
.product-card:focus-visible { outline-offset: 6px; }
@media (max-width: 560px) {
  .koi-card-name { margin-top: 12px; font-size: 18px; }
  .koi-card-price, .product-card-price { font-size: 20px; }
  .koi-card-badge, .koi-card-stars { left: 8px; top: 8px; }
  .koi-card-play { right: 8px; bottom: 8px; }        /* two-up on a phone: just "Overwintering"; the date and price are in the quick view */
}
@media (max-width: 360px) {
  .koi-card-name { font-size: 20px; }
}

/* ─── PRODUCT CARDS (Dry Goods) ─── packshots sit whole in the same 4:5 tile */
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--sumi);
  text-decoration: none;
  cursor: pointer;
}
.product-card-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
  background: var(--washi-2);
}
.product-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10%;
  object-fit: contain;
  mix-blend-mode: multiply;   /* blends the white studio background into the tile */
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-card-img img,
.product-card:active .product-card-img img { transform: scale(1.05); }
/* Product names are longer than koi names: two lines at most */
.product-card-name {
  margin-top: 16px;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.product-card-name { min-height: 2.7em; }
.product-card .koi-card-breeder { margin-top: 5px; }
.product-card .koi-card-foot { padding-top: 12px; }
.product-card.is-out .product-card-img img { opacity: 0.55; }
@media (max-width: 560px) {
  .product-card-name { margin-top: 12px; font-size: 16px; }
}

/* ─── SHOP FILTER BAR ───
   Desktop: every control is a cell of one grid. Phone: search and the
   availability toggle stay above the grid; the rest opens as a bottom sheet. */
.shop-page { padding: 32px 0 var(--gap); }
.shop-bar { margin-bottom: 40px; }
.shop-bar-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(170px, 220px) minmax(170px, 210px) auto;
  gap: 16px 18px;
  align-items: end;
}
.shop-sheet,
.shop-sheet-body { display: contents; }
.shop-sheet-head,
.shop-sheet-foot,
.shop-sheet-open { display: none; }
.shop-search { position: relative; display: block; }
.shop-status { grid-column: 1 / -1; }
/* Only on phones: the bar that holds search and Filter, the sheet's handle and its own category list */
.shop-strip { display: contents; }
.shop-sheet-handle,
.shop-sheet-group,
.card-add-box,
.koi-card-line,
.product-card .koi-card-badge { display: none; }
/* The row above the bar: the age tabs */
.shop-top { margin-bottom: 20px; }
.shop-top[hidden] { display: none; }
.shop-top .shop-tabs { margin-bottom: 0; }
.shop-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--muted);
}
.shop-search svg { position: absolute; left: 14px; bottom: 15px; color: var(--ink); pointer-events: none; }
.shop-bar input[type="search"],
.shop-bar select {
  width: 100%;
  height: 48px;
  background-color: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0 14px;
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--sumi);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}
.shop-bar input[type="search"] { padding-left: 42px; }
.shop-bar input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.shop-bar select {
  padding-right: 36px;
  cursor: pointer;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233a3128' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.shop-bar input[type="search"]:hover,
.shop-bar select:hover { border-color: var(--sumi); }
.shop-bar select.is-set { border-color: var(--sumi); font-weight: 700; }

/* Available / Sold / All */
.shop-seg { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--rule-strong); background: var(--paper); min-width: 0; }
.shop-seg label { position: relative; flex: 1; cursor: pointer; }
.shop-seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.shop-seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.shop-seg b { font-weight: 500; font-variant-numeric: tabular-nums; }
.shop-seg label:hover span { background: rgba(26,22,18,0.06); }
.shop-seg input:checked + span { background: var(--sumi); color: var(--washi); }
.shop-seg input:focus-visible + span { outline: 2px solid var(--hi); outline-offset: 2px; }

/* Count, and the active filters as removable chips */
.shop-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; min-height: 40px; }
.shop-count { font-size: 16px; color: var(--ink); margin-right: 4px; }
.shop-count strong { font-family: var(--ff-display); font-size: 22px; font-weight: 600; color: var(--sumi); margin-right: 3px; font-variant-numeric: tabular-nums; }
.shop-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--sumi);
  background: var(--paper);
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--sumi);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.shop-chip span[aria-hidden] { font-size: 20px; line-height: 1; }
.shop-chip:hover { background: var(--sumi); color: var(--washi); }
.shop-clear {
  background: none;
  border: none;
  border-bottom: 1px solid var(--hi);
  padding: 4px 0;
  margin-left: 6px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hi);
  cursor: pointer;
}
.shop-clear:hover { color: var(--hi-deep); border-color: var(--hi-deep); }
.shop-message {
  grid-column: 1 / -1;
  padding: 48px 0 16px;
  max-width: 46ch;
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 23px;
  line-height: 1.45;
  color: var(--ink);
}
.shop-message a,
.shop-message button {
  font: inherit;
  color: var(--hi);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.licence-line { margin-top: 48px; font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 56ch; }

/* Dry Goods: category tabs, then search, sort and the stock toggle */
.shop-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.shop-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.shop-tab b { font-weight: 500; font-variant-numeric: tabular-nums; }
.shop-tab:hover { border-color: var(--sumi); color: var(--sumi); }
.shop-tab[aria-current="true"] { background: var(--sumi); border-color: var(--sumi); color: var(--washi); }
.shop-bar--goods .shop-bar-grid { grid-template-columns: minmax(0, 1fr) 240px auto; }
.shop-bar--goods .shop-search,
.shop-bar--goods .shop-sort { grid-column: auto; }
.shop-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.shop-check input { width: 18px; height: 18px; accent-color: var(--hi); cursor: pointer; }
.shop-check:has(input:checked) { border-color: var(--sumi); color: var(--sumi); }

@media (max-width: 1100px) {
  .shop-bar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-search, .shop-seg { grid-column: 1 / -1; }
  .shop-seg { max-width: 460px; }
}
@media (min-width: 768px) {
  .shop-sheet-backdrop { display: none; }
}
/* Tabs that stay under the nav while the page scrolls (Dry Goods at every width; the koi row on phones) */
.shop-tabs--sticky,
.shop-top {
  position: sticky;
  top: var(--nav-h);
  z-index: 60;
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
  padding: 10px var(--pad);
  background: rgba(243,236,220,0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.shop-tabs--sticky { margin-bottom: 10px; }
.shop-tabs--sticky[hidden] { display: none; }
@media (min-width: 768px) {
  .shop-top { position: static; margin-left: 0; margin-right: 0; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ─── SHOP CONTROLS: SOFT PILLS AT EVERY WIDTH ───
   The tabs, the Available / Sold / All toggle, the search field, the sort and type menus and "In stock only"
   are rounded, on a pale cream fill, with no hard border: the same look as on phones. The one chosen is filled dark.
   (The phone rules below still set their own sizes.) */
.shop-tab { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #fbf8f2; box-shadow: 0 1px 2px rgba(26,22,18,0.06); }
.shop-tab:hover { background: #fffdf8; color: var(--sumi); box-shadow: 0 1px 2px rgba(26,22,18,0.06), inset 0 0 0 1px var(--rule-strong); }
.shop-tab[aria-current="true"] { background: var(--sumi); color: var(--washi); box-shadow: none; }
.shop-bar input[type="search"],
.shop-bar select { border: 0; border-radius: 999px; background-color: #fbf8f2; padding-left: 18px; box-shadow: 0 1px 2px rgba(26,22,18,0.06); transition: box-shadow 0.2s; }
.shop-bar input[type="search"] { padding-left: 46px; }
.shop-bar select { padding-right: 40px; background-position: right 18px center; }
.shop-search svg { left: 18px; }
.shop-bar input[type="search"]:hover,
.shop-bar select:hover,
.shop-bar select.is-set { box-shadow: 0 1px 2px rgba(26,22,18,0.06), inset 0 0 0 1px var(--rule-strong); }
.shop-seg { gap: 2px; padding: 4px; border: 0; border-radius: 999px; background: #fbf8f2; box-shadow: 0 1px 2px rgba(26,22,18,0.06); }
.shop-seg span { height: 40px; padding: 0 16px; border-radius: 999px; }
.shop-check { border: 0; border-radius: 999px; background: #fbf8f2; box-shadow: 0 1px 2px rgba(26,22,18,0.06); }
.shop-check:has(input:checked) { box-shadow: 0 1px 2px rgba(26,22,18,0.06), inset 0 0 0 1px var(--sumi); }

/* ─── THE SHOPS ON PHONES (under 768px) ───
   One slim bar stays under the nav: a rounded search field and a Filter pill (with a count when
   anything is set). Under it, the categories as a row of pills that scrolls sideways. Everything
   else (category or age, type, sort, stock) is in a sheet that rises from the bottom. No square
   boxes and no hard borders: soft white fills on the cream page. */
@media (max-width: 767px) {
  .shop-page { padding-top: 0; }
  .shop-page > .wrap { display: flex; flex-direction: column; }
  .shop-bar,
  .shop-bar-grid { display: contents; }
  /* While the list loads the bar is already in place (it is only marked hidden until the script is ready) */
  .shop-bar[hidden] { display: contents; }
  .shop-strip {
    order: -2;
    position: sticky;
    top: var(--nav-h);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 calc(-1 * var(--pad));
    padding: 8px var(--pad);
    background: var(--washi);
  }
  .shop-strip .shop-search { flex: 1; min-width: 0; }
  .shop-strip .shop-label { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .shop-strip .shop-search svg { left: 16px; bottom: 15px; color: var(--muted); }
  .shop-bar .shop-strip input[type="search"] {
    height: 48px;
    padding: 0 16px 0 44px;
    border: 0;
    border-radius: 24px;
    background-color: #fbf8f2;
    box-shadow: inset 0 0 0 1px rgba(26,22,18,0.06);
  }
  .shop-sheet-open {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 24px;
    background: #fbf8f2;
    box-shadow: inset 0 0 0 1px rgba(26,22,18,0.06);
    font-family: var(--ff-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--sumi);
    cursor: pointer;
  }
  .shop-sheet-open b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--sumi); color: var(--washi); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .shop-sheet-open b:empty { display: none; }

  /* Categories (Dry Goods) and ages (Koi For Sale): pills, 36px tall, the chosen one filled dark.
     The row scrolls sideways, snaps to each pill and fades out at the right edge. */
  .shop-top,
  .shop-tabs--sticky {
    order: -1;
    position: static;
    margin: 2px calc(-1 * var(--pad)) 14px;
    padding: 0;
    background: none;
  }
  /* ...and the row of pills holds its height */
  .shop-top[hidden],
  .shop-tabs--sticky[hidden] { display: block; min-height: 36px; visibility: hidden; }
  .shop-top .shop-tabs,
  .shop-tabs--sticky {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-left: var(--pad);
    padding: 0 calc(var(--pad) + 28px) 0 var(--pad);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  }
  .shop-top .shop-tabs { margin: 0; }
  .shop-tabs::-webkit-scrollbar { display: none; }
  .shop-tab {
    flex: none;
    min-height: 36px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 18px;
    background: #fbf8f2;
    font-size: 14px;
    font-weight: 600;
    scroll-snap-align: start;
  }
  .shop-tab b { color: var(--muted); }
  .shop-tab[aria-current="true"] b { color: inherit; opacity: 0.7; }
  /* The count is still announced; on screen it is on the sheet's button */
  .shop-status { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* The sheet */
  .shop-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 260;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 22px 22px 0 0;
    background: var(--washi);
    box-shadow: 0 -18px 40px -18px rgba(26,22,18,0.55);
    transform: translateY(102%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .shop-sheet.is-open { transform: translateY(0); visibility: visible; transition: transform 0.35s var(--ease); }
  .shop-sheet-handle { display: block; flex: none; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: rgba(26,22,18,0.2); }
  .shop-sheet-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 4px 20px; }
  .shop-sheet-head h3 { flex: 1; font-family: var(--ff-display); font-size: 20px; font-weight: 600; }
  .shop-sheet-head .shop-clear { margin: 0; padding: 10px 6px; border: 0; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .shop-sheet-head .shop-clear[hidden] { display: none; }
  .shop-sheet-close { width: 44px; height: 44px; background: none; border: none; font-size: 28px; line-height: 1; color: var(--sumi); cursor: pointer; }
  .shop-sheet-body { display: flex; flex-direction: column; gap: 18px; padding: 10px 20px 18px; overflow-y: auto; }
  .shop-sheet-group { display: block; }
  .shop-sheet .shop-label { margin-bottom: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
  .shop-sheet .shop-sheet-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .shop-bar .shop-sheet select { border: 0; border-radius: 14px; background-color: #fbf8f2; box-shadow: inset 0 0 0 1px rgba(26,22,18,0.06); padding-left: 16px; }
  .shop-seg { gap: 2px; padding: 4px; border: 0; border-radius: 26px; background: #fbf8f2; box-shadow: inset 0 0 0 1px rgba(26,22,18,0.06); max-width: none; }
  .shop-seg span { height: 44px; padding: 0 6px; border-radius: 22px; font-weight: 600; }
  /* "In stock only" is a switch */
  .shop-check { display: flex; justify-content: space-between; height: 52px; padding: 0; border: 0; background: none; font-size: 16px; font-weight: 600; color: var(--sumi); }
  .shop-check span { order: -1; }
  .shop-check input {
    flex: none;
    position: relative;
    width: 50px;
    height: 30px;
    margin: 0;
    border-radius: 15px;
    background: rgba(26,22,18,0.2);
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.2s;
  }
  .shop-check input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fffdf8; box-shadow: 0 1px 3px rgba(26,22,18,0.3); transition: transform 0.2s var(--ease); }
  .shop-check input:checked { background: var(--sumi); }
  .shop-check input:checked::after { transform: translateX(20px); }
  .shop-check input:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; }
  .shop-sheet-foot { display: block; padding: 10px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--washi); }
  .shop-sheet-foot .btn { width: 100%; min-height: 52px; }
  .shop-sheet-backdrop { position: fixed; inset: 0; z-index: 250; background: rgba(26,22,18,0.5); }
  .shop-sheet-backdrop[hidden] { display: none; }

  /* Cards in the two shops: two across, 12px apart. A square of soft white with the photo whole and
     centred in it; then the name, the price, and one small line of capitals. */
  .shop-page .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  /* Dry goods: a square of soft white with the packshot whole and centred in it */
  .shop-page .product-card-img { aspect-ratio: 1 / 1; border-radius: 14px; background: #fbf8f2; }
  .shop-page .product-card-img img { padding: 12%; }
  /* Koi (in the shop and on the homepage): the photo fills a 4:5 portrait frame. No mat, no bars. */
  .koi-card-img { aspect-ratio: 4 / 5; border-radius: 14px; }
  .koi-card.is-sold .koi-card-photo { opacity: 0.6; }
  .koi-card-badge,
  .koi-card-stars { left: 8px; top: 8px; padding: 3px 9px; background: rgba(14,20,18,0.72); }
  .shop-page .product-card .koi-card-badge { display: block; }
  .shop-page .koi-card-play { right: 8px; top: 8px; bottom: auto; background: rgba(14,20,18,0.72); }
  .koi-card-name,
  .shop-page .product-card-name {
    order: 1;
    min-height: 0;
    margin-top: 10px;
    font-family: var(--ff-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  /* Koi title: "Showa · Sekiguchi". The breeder never splits from its dot, and is left off if the title would pass two lines. */
  .koi-card-variety { display: inline-block; }       /* the variety stays together: a title wraps before the breeder, not inside "Doitsu Showa" */
  .koi-card-by { display: inline; white-space: nowrap; font-weight: 500; }
  .koi-card-name.is-long .koi-card-by { display: none; }
  .koi-card .koi-card-foot,
  .shop-page .koi-card-foot { order: 2; padding-top: 3px; }
  .koi-card-price,
  .shop-page .product-card-price { font-family: var(--ff-body); font-size: 16px; font-weight: 600; }
  .koi-card .koi-card-left,
  .shop-page .koi-card-left,
  .koi-card .koi-card-breeder,
  .koi-card-meta { display: none; }
  /* The small line of capitals ("55cm · Nisai", or a product's category): whole words, on two lines if it needs them */
  .koi-card-line,
  .shop-page .product-card .koi-card-breeder {
    order: 3;
    display: block;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: normal;
    overflow: visible;
  }
  /* The "+": a 32px dot in a 44px tap target, on the bottom right corner of the photo square */
  .shop-page .card-add-box { display: block; position: absolute; left: 0; top: 0; z-index: 3; width: 100%; aspect-ratio: 1 / 1; pointer-events: none; }
  .shop-page .card-add-box--koi { aspect-ratio: 4 / 5; }
  .card-add { position: absolute; right: 0; bottom: 0; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .card-add > span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sumi); color: var(--washi); box-shadow: 0 2px 8px rgba(26,22,18,0.2); transition: transform 0.2s var(--ease), background-color 0.2s; }
  .card-add:active > span { transform: scale(0.9); }
  .card-add.is-busy > span { opacity: 0.6; }
  .card-add.is-added > span { background: var(--gold-ink); }
  .card-add.is-added svg { display: none; }
  .card-add.is-added > span::after { content: '\2713'; font-size: 15px; font-weight: 700; line-height: 1; }
  .card-add:focus-visible { outline: 2px solid var(--hi); outline-offset: -4px; border-radius: 50%; }
}

/* ─── QUICK VIEW ─── the same pop-up for koi and dry goods.
   Photos (and the koi's video) are a row you can swipe; the price and Add to basket stay in a
   bar at the bottom. On phones it is a full-height sheet with full-width photos. */
.qv-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(26,22,18,0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.qv-overlay.open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.qv {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  scroll-padding-bottom: 100px;      /* keeps focused things clear of the bar */
  border-radius: var(--radius);
  background: var(--washi);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
  transform: translateY(18px);
  transition: transform 0.4s var(--ease);
}
.qv-overlay.open .qv { transform: translateY(0); }
.qv-close {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px 10px -54px 0;
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(243,236,220,0.92);
  box-shadow: 0 1px 8px rgba(26,22,18,0.2);
  font-size: 26px;
  line-height: 1;
  color: var(--sumi);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.qv-close:hover { background: var(--sumi); color: var(--washi); }
.qv-content { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); clear: both; }
.qv-media { position: sticky; top: 0; align-self: start; min-width: 0; padding: 28px 0 28px 28px; }
.qv-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.qv-slides::-webkit-scrollbar { display: none; }
.qv-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--washi-3);
}
.qv-slide--product { background: var(--washi-2); }
.qv-slide--product img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 10%; object-fit: contain; mix-blend-mode: multiply; }
/* The koi's video: a still with a play button; the player only loads when it is pressed */
.qv-slide--video { background: #0e1412; }
.qv-slide--video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
html.img-fade .qv-slide--video > img.is-loaded { opacity: 0.82; }
.qv-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  padding: 0 0 0 4px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(244,236,222,0.94);
  color: var(--sumi);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.qv-play svg { width: 26px; height: 26px; }
.qv-play:hover { transform: scale(1.06); }
.qv-play:focus-visible { outline: 2px solid var(--washi); outline-offset: 4px; }
.qv-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #0e1412; }
/* A video that cannot be played: a quiet line in its place, with a way to the listing */
.qv-video-fail { position: absolute; inset: 0; display: grid; place-content: center; padding: 24px; background: #0e1412; color: var(--washi); font-size: 16px; line-height: 1.5; text-align: center; text-wrap: balance; }
.qv-video-fail a { color: var(--gold-soft); text-underline-offset: 4px; }
.qv-count { display: none; }
.qv-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.qv-thumbs[hidden] { display: none; }
.qv-thumb { position: relative; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 3px; background: var(--washi-3); color: var(--washi); cursor: pointer; overflow: hidden; }
.qv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv-thumb[aria-pressed="true"] { border-color: var(--sumi); }
.qv-thumb--video { background: #0e1412; }
.qv-thumb--video img { filter: brightness(0.7); }
.qv-thumb--video svg { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; }
.qv-info { display: flex; flex-direction: column; min-width: 0; padding: 36px 36px 0 32px; }
.qv-info > :last-child:not(.qv-bar) { margin-bottom: 32px; }
.qv-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hi); margin-bottom: 8px; padding-right: 52px; }
.qv-eyebrow abbr { text-decoration: none; cursor: help; }
.qv-title { font-family: var(--ff-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; padding-right: 52px; text-wrap: balance; }
.qv-price { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-family: var(--ff-display); font-size: 30px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.qv-price .koi-card-left { font-family: var(--ff-body); }
.qv-specs { margin-top: 20px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; }
.qv-specs dt { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); line-height: 1.7; }
.qv-specs dd { font-size: 16px; font-weight: 600; line-height: 1.5; }
.qv-notes { margin-top: 18px; padding-left: 20px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.qv-notes li + li { margin-top: 4px; }
.qv-sub { margin-top: 22px; margin-bottom: 8px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.qv-small { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.qv-small a { color: var(--hi); }
.qv-desc { margin-top: 24px; font-size: 16px; line-height: 1.65; color: var(--ink); max-width: 54ch; }
.qv-desc p + p, .qv-desc h4 + p { margin-top: 10px; }
.qv-desc h4 { margin-top: 18px; font-family: var(--ff-display); font-size: 17px; font-weight: 600; color: var(--sumi); }
/* The bar that stays at the bottom: price (and the koi or size chosen) on the left, the button on the right */
.qv-bar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: auto -36px 0 -32px;
  padding: 14px 36px 16px 32px;
  border-top: 1px solid var(--rule);
  background: var(--washi);
}
.qv-info > .qv-small + .qv-bar,
.qv-info > .qv-desc + .qv-bar { margin-top: 28px; }
.qv-bar-price { flex: none; min-width: 84px; display: flex; flex-direction: column; }
.qv-bar-amount { font-family: var(--ff-display); font-size: 24px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qv-bar-amount small { font-family: var(--ff-body); font-size: 14px; font-weight: 600; color: var(--ink); margin-right: 4px; }
.qv-bar-note { font-size: 14px; line-height: 1.3; color: var(--muted); }
.qv-bar .btn { flex: 1; width: auto; }
/* Group listings: which koi is which */
/* "Want a photo or video of a specific koi?" with Ask on WhatsApp to its right where both fit on the row; where they
   do not, the button drops under the question. The question stays on one line from 360px up. */
.qv-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.qv-ask p { font-size: 16px; line-height: 1.5; color: var(--ink); white-space: nowrap; }
.qv-ask .btn { flex: none; margin-top: 0; min-height: 48px; }
@media (max-width: 359px) { .qv-ask p { white-space: normal; } }
.qv-ask .btn svg { width: 18px; height: 18px; fill: currentColor; }
.qv-slide-num { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 11px; border-radius: 2px; background: rgba(14,20,18,0.8); color: var(--washi); font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.qv-rating a { color: var(--ink); text-decoration: none; }
.qv-rating a:hover { text-decoration: underline; text-underline-offset: 3px; }
.qv-rating span { color: var(--gold-ink); }
.qv-qty-row { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qv-qty-row[hidden] { display: none; }
.qv-qty-row .qv-sub { margin: 0; }
@media (max-width: 760px) {
  .qv-overlay { padding: 0; place-items: end center; }
  .qv { height: 100vh; height: 100dvh; max-height: none; border-radius: 0; scroll-padding-bottom: 110px; }
  .qv-content { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100%; }
  .qv-media { position: relative; padding: 0; }
  .qv-slides { border-radius: 0; }
  .qv-thumbs { display: none; }
  .qv-count {
    display: block;
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 11px;
    border-radius: 13px;
    background: rgba(14,20,18,0.72);
    color: var(--washi);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
  }
  .qv-count[hidden] { display: none; }
  .qv-count b { font-weight: 600; }
  .qv-close { top: 12px; margin: 12px 12px -56px 0; }
  .qv-info { padding: 22px 24px 0; }
  .qv-eyebrow, .qv-title { padding-right: 0; }
  .qv-bar { gap: 16px; margin-left: -24px; margin-right: -24px; padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 24px -20px rgba(26,22,18,0.55); }
  .qv-bar .btn { padding-left: 14px; padding-right: 14px; }
}

/* ─── BASKET ───
   Quick view: choose a koi or size, then Add to basket.
   Nav: basket button with a count. Slide-out basket and checkout.html share the line styles. */
.basket-open { position: relative; }
/* The count: a 20px pill that grows sideways for two and three figures ("99+" above 99). It sits 4px out from
   the button's top right corner, which is still well inside the bar (the bar has at least 10px above the button),
   so nothing can clip it. */
.basket-count {
  position: absolute;
  top: -4px;
  right: -4px;
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  text-align: center;
  white-space: nowrap;
  background: var(--hi);
  color: var(--washi);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.basket-count[hidden] { display: none; }
/* a small pulse when the count changes */
@keyframes basket-pulse { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 100% { transform: scale(1); } }
.basket-count.is-pulse { animation: basket-pulse 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) { .basket-count.is-pulse { animation: none; } }
.mobile-menu .basket-count { position: static; }

/* Quick view: the choice of koi or size */
.qv-options { margin-top: 22px; border: 0; min-width: 0; }
.qv-options legend { padding: 0; }
.qv-option {
  border-radius: 12px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto minmax(86px, auto);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 12px;
  margin-top: 6px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.qv-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--hi); cursor: pointer; }
.qv-option span:nth-of-type(2) { font-weight: 700; font-variant-numeric: tabular-nums; }
.qv-option span:nth-of-type(3) { text-align: right; color: var(--ink); }
.qv-option:hover { border-color: var(--sumi); }
/* the chosen row: the dark fill, as on the filter pills */
.qv-option:has(input:checked) { border-color: var(--sumi); background: var(--sumi); color: var(--washi); }
.qv-option:has(input:checked) span:nth-of-type(3) { color: var(--washi); opacity: 0.82; }
.qv-option:has(input:checked) input { accent-color: var(--washi); }
.qv-option:has(input:focus-visible) { outline: 2px solid var(--hi); outline-offset: 2px; }
.qv-option.is-off { background: transparent; border-color: var(--rule); color: var(--muted); cursor: default; }
.qv-option.is-off span:nth-of-type(3) { color: var(--muted); }
.qv-option.is-off input { cursor: default; }
/* "View the full listing": a link, underlined, with an arrow */
.qv-live a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.qv-live a:hover { color: var(--sumi); text-decoration-thickness: 2px; }
.qv-arrow { display: inline-block; text-decoration: none; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.qv-live a:hover .qv-arrow { transform: translateX(4px); }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule-strong); background: var(--paper); }
.qty[hidden] { display: none; }
.qty button {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  font-family: var(--ff-body);
  font-size: 20px;
  line-height: 1;
  color: var(--sumi);
  cursor: pointer;
}
.qty button:hover:not(:disabled) { background: var(--washi-2); }
.qty button:disabled { color: rgba(26,22,18,0.3); cursor: default; }
.qty span { min-width: 30px; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Slide-out basket */
.basket-backdrop { position: fixed; inset: 0; z-index: 280; background: rgba(26,22,18,0.55); }
.basket-backdrop[hidden] { display: none; }
.basket {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 290;
  width: min(440px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--washi);
  box-shadow: -24px 0 48px -24px rgba(26,22,18,0.55);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0s 0.4s;
}
.basket.open { transform: translateX(0); visibility: visible; transition: transform 0.4s var(--ease); }
.basket-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 14px 24px; border-bottom: 1px solid var(--rule); }
.basket-head h2 { font-family: var(--ff-display); font-size: 22px; font-weight: 600; }
.basket-close { width: 48px; height: 48px; border: none; background: none; font-size: 30px; line-height: 1; color: var(--sumi); cursor: pointer; }
.basket-body { flex: 1; overflow-y: auto; padding: 4px 24px; }
.basket-foot { padding: 18px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.basket-foot[hidden] { display: none; }
.basket-foot .btn { width: 100%; margin-top: 16px; }
.basket-lines { list-style: none; }
.basket-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; }
.basket-line + .basket-line { border-top: 1px solid var(--rule); }
.basket-thumb { width: 72px; aspect-ratio: 4 / 5; position: relative; overflow: hidden; border-radius: 3px; background: var(--washi-3); }
html.img-fade .basket-thumb.koi-card-img img { opacity: 1; }
.basket-thumb--product { background: var(--washi-2); }
.basket-thumb--product img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8%; object-fit: contain; mix-blend-mode: multiply; }
.basket-line-title { font-family: var(--ff-display); font-size: 17px; font-weight: 600; line-height: 1.3; }
.basket-line-variant { margin-top: 2px; font-size: 16px; color: var(--ink); }
.basket-line-gone { margin-top: 4px; font-size: 16px; font-weight: 700; color: var(--hi); }
.basket-line-controls { margin-top: 10px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.basket-line-one { font-size: 16px; color: var(--ink); }
.basket-remove {
  background: none;
  border: none;
  padding: 10px 0;
  font-family: var(--ff-body);
  font-size: 16px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.basket-remove:hover { color: var(--hi); }
.basket-line-price { font-family: var(--ff-display); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.basket-line.is-gone .basket-thumb img { filter: saturate(0.3); opacity: 0.6; }
.basket-line.is-gone .basket-line-title,
.basket-line.is-gone .basket-line-variant { color: var(--muted); }
.basket-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.basket-subtotal strong { font-family: var(--ff-display); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.basket-note { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.basket-note a { color: var(--hi); }
.basket-empty { padding: 28px 0; }
.basket-empty p:first-child { font-family: var(--ff-accent); font-style: italic; font-size: 23px; color: var(--ink); margin-bottom: 18px; }
.basket-empty p + p { margin-top: 16px; }

/* Checkout page */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); } }
.checkout-heading { font-family: var(--ff-display); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.checkout-summary { padding: 26px 28px 30px; background: var(--washi-2); }
.checkout-summary .checkout-heading { margin-bottom: 16px; }
.checkout-agree { margin-top: 22px; display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.5; cursor: pointer; }
.checkout-agree input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--hi); cursor: pointer; }
.checkout-agree a { color: var(--hi); }
.checkout-notice { margin-top: 18px; padding: 12px 14px; background: var(--paper); font-size: 16px; line-height: 1.5; color: var(--ink); }
.checkout-summary .btn { width: 100%; margin-top: 18px; }
.checkout-result { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--sumi); font-weight: 600; }
.checkout-result[hidden] { display: none; }
.checkout-result a { color: var(--hi); }
@media (max-width: 560px) {
  .basket-body { padding: 4px 20px; }
  .basket-head { padding-left: 20px; }
  .basket-foot { padding-left: 20px; padding-right: 20px; }
  .checkout-summary { padding: 22px 20px 26px; }
  .qv-option { grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 10px; padding: 6px 10px; }
}

/* ─── SHOP TILES (home) ─── two large 4:3 tiles */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 640px) { .cat-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.cat-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sumi);
  color: var(--washi);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 2.6vw, 36px);
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.cat-card:hover img { transform: scale(1.04); }
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,22,18,0.1) 0%, rgba(26,22,18,0.6) 42%, rgba(26,22,18,0.94) 72%, rgba(26,22,18,0.96) 100%);
  z-index: 2;
}
.cat-card-content { position: relative; z-index: 3; }
.cat-card h3 { font-family: var(--ff-display); font-size: clamp(26px, 3vw, 38px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.cat-card-from { margin-top: 6px; font-size: 17px; font-weight: 500; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.cat-card-arrow { margin-top: 12px; display: inline-block; font-size: 16px; font-weight: 600; }
.cat-card:focus-visible { outline-offset: 4px; }

/* Browse by variety: every variety with koi in stock, with its count. Wraps on wide screens.
   On phones it is one row that scrolls sideways: the chip at the right edge is left half
   showing, the edge fades, and a "Swipe" hint stays until the first swipe (script.js). */
.variety-browse { margin-top: 36px; }
.variety-browse-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.variety-browse-head h3,
.swipe-hint { font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.swipe-hint { display: none; color: var(--ink); transition: opacity 0.4s ease; }
.variety-chips { display: flex; flex-wrap: wrap; gap: 8px var(--chip-gap, 8px); }
.variety-chips a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sumi);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.variety-chips a b { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; transition: color 0.2s; }
.variety-chips a:hover { background: var(--sumi); border-color: var(--sumi); color: var(--washi); }
.variety-chips a:hover b { color: var(--washi); }
/* Phones: the same pills as the shop's categories (36px, rounded, soft white, no border). The row scrolls
   sideways and fades out at the right edge; the fade goes when the end of the row is reached. */
@media (max-width: 767px) {
  .variety-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-left: var(--pad);
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad) 4px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent);
  }
  .variety-chips::-webkit-scrollbar { display: none; }
  .variety-chips a { min-height: 36px; height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: #fbf8f2; font-size: 14px; scroll-snap-align: start; }
  .variety-browse.is-at-end .variety-chips,
  .variety-browse.is-all-shown .variety-chips { -webkit-mask-image: none; mask-image: none; }
}

/* ─── REVIEWS (home) ─── hidden until real reviews are added to data/confirmed.json */
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 44px; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: minmax(0, 1fr); } }
.review blockquote p { font-family: var(--ff-accent); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink); }
.review figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ─── HOW TO BUY ─── four short steps, set as plain columns (no boxes inside the panel) */
.process-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 36px; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.process-num { font-family: var(--ff-accent); font-style: italic; font-size: 28px; line-height: 1; color: var(--hi); }
.process-step h3 { margin-top: 12px; font-family: var(--ff-display); font-size: 21px; font-weight: 600; line-height: 1.25; }
.process-step p { margin-top: 6px; max-width: 30ch; font-size: 16px; line-height: 1.55; color: var(--ink); }
@media (max-width: 480px) {
  .process-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
  .process-step h3 { margin-top: 0; }
  .process-step p { grid-column: 2; max-width: none; }
}

/* ─── STORY TEASER (home) ─── */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .story-grid { grid-template-columns: minmax(0, 1fr); } }
.story-img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--sumi); }
.story-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-text p { margin-top: 20px; max-width: 50ch; font-size: 18px; line-height: 1.7; color: var(--ink); }
.story-text .text-link { margin-top: 28px; }

/* ─── PAGE HEADER (every inner page) ───
   One header everywhere: the calm pond, softly blurred (one small pre-blurred picture), cream text. 220px on desktop, 160px on
   phones. Koi For Sale uses the compact form: a title row, so the koi start higher up. */
.page-head {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
  background: #10261f url('assets/hero/koi-hero-pond-blur.jpg') 50% 40% / cover no-repeat;
}
.page-head::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,14,0.62) 0%, rgba(8,16,14,0.38) 55%, rgba(8,16,14,0.22) 100%); }
.page-head-inner { position: relative; z-index: 2; width: 100%; padding-top: 28px; padding-bottom: 28px; }
.page-head .eyebrow { color: var(--gold-soft); margin-bottom: 10px; }
.page-head h1 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.page-head h1 .accent { color: var(--gold-soft); font-weight: 400; }
.page-head-intro { margin-top: 10px; max-width: 50ch; font-size: 17px; line-height: 1.5; color: rgba(244,236,222,0.9); }
.page-head--compact { min-height: 112px; }
.page-head--compact .page-head-inner { padding-top: 20px; padding-bottom: 20px; }
.page-head--compact h1 { font-size: clamp(26px, 3vw, 36px); }
@media (max-width: 720px) {
  .page-head { min-height: 160px; }
  .page-head-inner { padding-top: 22px; padding-bottom: 22px; }
  .page-head h1 { font-size: 30px; }
  .page-head-intro { margin-top: 6px; font-size: 16px; }
  .page-head .eyebrow { margin-bottom: 6px; }
  .page-head--compact { min-height: 68px; }
  .page-head--compact .page-head-inner { padding-top: 14px; padding-bottom: 14px; }
  .page-head--compact h1 { font-size: 24px; }
}

/* ─── VARIETIES PAGE ─── set like a printed guide: one chapter for each variety, down one long page.
   Each chapter: a number, the name in the display serif, the kanji and its meaning, one line of small
   capitals; a photo of one of Tom's koi on a deep green mat; what is in stock; the text. Photo and
   text swap sides from one chapter to the next. A huge, very faint kanji sits behind each chapter. */
.vg { padding: 0 0 var(--gap); }
.vg-layout { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 clamp(28px, 4vw, 72px); align-items: stretch; }
.vg-chapters { min-width: 0; overflow-x: clip; }

/* The index: kanji with the name under it, down the left. The chapter on screen is dark, with a short gold dash. */
.vg-index-list { position: sticky; top: calc(var(--nav-h) + 36px); display: flex; flex-direction: column; margin-top: clamp(64px, 8vw, 128px); padding-bottom: 40px; }
.vg-index-link { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 9px 0 9px 20px; color: var(--muted); text-decoration: none; transition: color 0.25s; }
.vg-index-link::before { content: ''; position: absolute; left: 0; top: 21px; width: 12px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.vg-index-jp { font-family: var(--ff-display); font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: 0.08em; white-space: nowrap; }
.vg-index-en { font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; }
.vg-index-link:hover,
.vg-index-link[aria-current="true"] { color: var(--sumi); }
.vg-index-link[aria-current="true"]::before { transform: scaleX(1); }
.vg-index-link:focus-visible { outline-offset: 4px; }

.vg-chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  grid-template-areas: 'figure head' 'figure body';
  grid-template-rows: auto 1fr;
  gap: 0 clamp(36px, 5vw, 88px);
  padding: clamp(64px, 8vw, 128px) 0;
  scroll-margin-top: var(--nav-h);
}
.vg-chapter:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); grid-template-areas: 'head figure' 'body figure'; }
.vg-head { grid-area: head; }
.vg-figure { grid-area: figure; }
.vg-body { grid-area: body; }
.vg-head, .vg-figure, .vg-body { position: relative; z-index: 1; min-width: 0; }
.vg-watermark {
  position: absolute;
  z-index: 0;
  top: clamp(20px, 3vw, 56px);
  right: -0.03em;
  font-family: var(--ff-display);
  font-size: 20vw;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--sumi);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}
.vg-chapter:nth-child(even) .vg-watermark { right: auto; left: -0.03em; }

.vg-num { font-family: var(--ff-display); font-size: 14px; font-weight: 600; letter-spacing: 0.24em; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.vg-name { margin-top: 14px; font-family: var(--ff-display); font-size: clamp(46px, 5.6vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.vg-kanji { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.vg-kanji [lang="ja"] { font-family: var(--ff-display); font-size: 24px; font-weight: 600; letter-spacing: 0.16em; color: var(--hi); }
.vg-meaning { font-family: var(--ff-accent); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--ink); }
.vg-tags { margin-top: 20px; font-size: 14px; font-weight: 700; line-height: 1.6; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.vg-tags span { margin: 0 0.35em; color: var(--gold-ink); }

/* The plate: the photo whole, on a deep pond-green mat with a gold hairline and a soft shadow. No recolouring. */
.vg-mat {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 9%;
  border-radius: 3px;
  background: #0f1f1b;
  box-shadow: 0 34px 60px -34px rgba(15,31,27,0.62), 0 3px 14px rgba(15,31,27,0.16);
}
.vg-mat::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(201,168,106,0.5); pointer-events: none; }
.vg-photo { max-width: 100%; overflow: hidden; background: #0b1714; }
.vg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vg-mat-kanji { font-family: var(--ff-display); font-size: clamp(72px, 9vw, 136px); font-weight: 600; line-height: 1.1; letter-spacing: 0.1em; writing-mode: vertical-rl; color: #c9a86a; }
.vg-figure figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* In stock now: up to four small cards (photo, size, age, price); each opens the quick view */
.vg-stock { margin-top: 32px; }
.vg-stock-head { margin-bottom: 14px; display: flex; align-items: center; gap: 12px; font-family: var(--ff-body); font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sumi); }
.vg-stock-head::before { content: ''; flex: none; width: 20px; height: 1px; background: var(--gold); }
.vg-stock-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vg-stock-card { display: flex; flex-direction: column; min-width: 0; color: var(--sumi); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.vg-stock-photo { position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 9px; overflow: hidden; border-radius: 8px; background: var(--washi-3); }
.vg-stock-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 0.6s var(--ease); }
.vg-stock-photo img.is-framed { inset: auto; object-fit: fill; }
/* A breeder's show card: closer in on the koi's head and shoulders, so the printed text is outside the frame */
.vg-stock-photo img.is-detail { object-position: 50% 92%; transform: scale(1.9); transform-origin: 50% 92%; }
.vg-stock-card:hover .vg-stock-photo img:not(.is-detail) { transform: scale(1.05); }
.vg-stock-size { font-size: 15px; font-weight: 600; line-height: 1.35; }
.vg-stock-age { font-size: 14px; line-height: 1.4; color: var(--muted); }
.vg-stock-price { margin-top: 3px; font-size: 15px; font-weight: 600; line-height: 1.35; font-variant-numeric: tabular-nums; }
.vg-stock-all { margin-top: 20px; }
.vg-stock-none { font-size: 16px; line-height: 1.6; color: var(--ink); }
.vg-stock-none a { color: var(--hi); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; }

.vg-body { padding-top: 28px; }
.vg-desc { max-width: 54ch; font-size: 17px; line-height: 1.75; color: var(--ink); }
.vg-quote { margin: 36px 0 0; max-width: 24ch; }
.vg-quote p { font-family: var(--ff-accent); font-style: italic; font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; line-height: 1.2; color: var(--sumi); text-wrap: balance; }
.vg-quote p::before { content: '“'; }
.vg-quote p::after { content: '”'; }
.vg-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.vg-look-head { margin-top: 40px; font-family: var(--ff-body); font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sumi); }
.vg-look { margin-top: 12px; max-width: 54ch; list-style: none; counter-reset: look; }
.vg-look li { counter-increment: look; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: baseline; padding: 13px 0; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.6; color: var(--ink); }
.vg-look li::before { content: counter(look); font-family: var(--ff-display); font-size: 17px; font-weight: 600; color: var(--gold-ink); }
.vg-end { padding-bottom: 8px; }

@media (max-width: 1100px) {
  .vg-layout { grid-template-columns: 88px minmax(0, 1fr); }
}
/* One column: number and name, then the plate and the stock, then the text. The index becomes a strip
   of pills that stays under the nav, in the same style as the shop's category pills. */
@media (max-width: 900px) {
  .vg-layout { grid-template-columns: minmax(0, 1fr); }
  .vg-index { position: sticky; top: var(--nav-h); z-index: 50; margin: 0 calc(-1 * var(--pad)); padding: 8px 0; background: var(--washi); }
  .vg-index-list {
    position: relative;
    top: auto;
    flex-direction: row;
    gap: 8px;
    margin: 0;
    padding: 0 calc(var(--pad) + 28px) 0 var(--pad);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-left: var(--pad);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  }
  .vg-index-list::-webkit-scrollbar { display: none; }
  .vg-index-link { flex: none; flex-direction: row; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px; background: #fbf8f2; color: var(--ink); scroll-snap-align: start; }
  .vg-index-link::before { display: none; }
  .vg-index-jp { font-size: 14px; letter-spacing: 0.04em; }
  .vg-index-en { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
  .vg-index-link[aria-current="true"] { background: var(--sumi); color: var(--washi); }
  /* 36px to look at, 44px to tap */
  .vg-index { padding: 4px 0; }
  .vg-index-link,
  .vg-index-link[aria-current="true"] { height: 44px; border: solid transparent; border-width: 4px 0; border-radius: 22px; background-clip: padding-box; }
  .vg-chapter,
  .vg-chapter:nth-child(even) { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'figure' 'body'; grid-template-rows: auto; padding: 56px 0; scroll-margin-top: calc(var(--nav-h) + 52px); }
  .vg-chapter:first-child { padding-top: 32px; }
  .vg-figure { margin-top: 28px; }
}
/* Phones: each chapter is tightened so the whole guide is a comfortable scroll. The number and the kanji
   share a line above the name; the plate is 4:5 across the page; what is in stock is one row to swipe
   (small photo, size, age, price) with its "see all" link beside the heading; the points are a compact list. */
@media (max-width: 900px) {
  .vg-chapter,
  .vg-chapter:nth-child(even) { padding: 22px 0; }
  .vg-figure figure { max-width: 440px; }            /* on a tablet held upright the plate stays a sensible size */
  .vg-chapter:first-child { padding-top: 20px; }
  .vg-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 14px; }
  .vg-num { grid-area: 1 / 1; }
  .vg-kanji { grid-area: 1 / 2; margin: 0; justify-content: flex-end; flex-wrap: nowrap; gap: 0 10px; min-width: 0; }
  .vg-kanji [lang="ja"] { font-size: 17px; letter-spacing: 0.1em; white-space: nowrap; }
  .vg-meaning { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vg-name { grid-column: 1 / -1; margin-top: 6px; font-size: 42px; }
  .vg-tags { grid-column: 1 / -1; margin-top: 8px; }
  .vg-figure { margin-top: 12px; }
  .vg-mat { padding: 7%; }
  .vg-mat::after { inset: 9px; }
  .vg-figure figcaption { margin-top: 9px; }
  .vg-stock { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-top: 4px; }
  .vg-stock-head { margin: 0; min-height: 44px; }
  .vg-stock-all { grid-area: 1 / 2; margin: 0; font-size: 14px; }
  .vg-stock-none { grid-column: 1 / -1; margin: 6px 0 0; font-size: 15px; }
  .vg-stock-cards {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad) 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-left: var(--pad);
    scrollbar-width: none;
  }
  .vg-stock-cards::-webkit-scrollbar { display: none; }
  .vg-stock-card { flex: none; display: grid; grid-template-columns: 52px auto; grid-template-rows: repeat(3, auto); align-content: center; column-gap: 12px; min-width: 146px; padding: 5px 16px 5px 5px; border-radius: 12px; background: #fbf8f2; scroll-snap-align: start; }
  .vg-stock-photo { grid-row: 1 / span 3; width: 52px; margin: 0; border-radius: 8px; }
  .vg-stock-size, .vg-stock-price { line-height: 1.25; }
  .vg-stock-age { line-height: 1.3; }
  .vg-stock-size { align-self: end; white-space: nowrap; }
  .vg-stock-age { white-space: nowrap; }
  .vg-stock-price { align-self: start; margin-top: 1px; }
  .vg-body { padding-top: 10px; }
  .vg-desc { font-size: 15px; line-height: 1.52; }
  .vg-quote { margin-top: 16px; max-width: none; }
  .vg-quote p { font-size: 23px; }
  .vg-quote cite { margin-top: 6px; }
  .vg-look-head { margin-top: 12px; }
  .vg-look { margin-top: 4px; }
  .vg-look li { grid-template-columns: 22px minmax(0, 1fr); padding: 4px 0; border-top: 0; font-size: 14.5px; line-height: 1.45; }
  .vg-look li::before { font-size: 14.5px; }
  .vg-end { margin-top: 8px; }
}
/* A tablet held upright: the plate and what is in stock on the left, the words beside them */
@media (min-width: 620px) and (max-width: 900px) {
  .vg-chapter,
  .vg-chapter:nth-child(even) { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); grid-template-areas: 'head head' 'figure body'; column-gap: 36px; padding: 32px 0; }
  .vg-figure figure { max-width: none; }
  .vg-stock-cards { margin: 0; padding: 0 0 2px; }
  .vg-body { padding-top: 12px; }
  .vg-desc { font-size: 16px; line-height: 1.6; }
  .vg-name { font-size: 56px; }
}
/* One column or two, the small capitals and the stock cards are a size down below 900px */
@media (max-width: 900px) {
  .vg-watermark,
  .vg-chapter:nth-child(even) .vg-watermark { top: 20px; left: auto; right: -0.03em; }
  .vg-tags { font-size: 11px; letter-spacing: 0.13em; }
  .vg-figure figcaption { font-size: 11px; letter-spacing: 0.12em; }
  .vg-stock-head, .vg-quote cite, .vg-look-head { font-size: 12px; }
  .vg-stock-size, .vg-stock-price { font-size: 14px; }
  .vg-stock-age { font-size: 12px; }
  .vg-stock-cards { gap: 10px; }
}

/* "What to look for": the list sits in a panel that can fold shut. It is always open on wider screens.
   On phones script.js makes the heading a button ("What to look for +") and the panel starts closed;
   it opens and closes by easing its one grid row between nothing and its own height. */
.vg-look-panel { display: grid; grid-template-rows: 1fr; }
.vg-look-clip { min-height: 0; overflow: hidden; }
@media (max-width: 767px) {
  .vg-look-head { margin-top: 10px; }
  .vg-look-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--rule);
    background: none;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .vg-look-toggle:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }
  /* a plus that becomes a minus when the list is open */
  .vg-look-sign { position: relative; flex: none; width: 14px; height: 14px; margin-right: 2px; }
  .vg-look-sign::before,
  .vg-look-sign::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform 0.35s var(--ease); }
  .vg-look-sign::after { transform: rotate(90deg); }
  .vg-look-toggle[aria-expanded="true"] .vg-look-sign::after { transform: rotate(0deg); }
  .vg-look-panel { transition: grid-template-rows 0.35s var(--ease), visibility 0s; }
  .vg-look-panel.is-closed { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.35s var(--ease), visibility 0s 0.35s; }
  .vg-look-panel .vg-look { margin-top: 0; padding-bottom: 6px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .vg-look-panel,
  .vg-look-panel.is-closed,
  .vg-look-sign::before,
  .vg-look-sign::after { transition: none; }
}

/* ─── OUR STORY PAGE ─── a lead photo, Tom's words beside a pull quote, then four steps */
.story-lead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.story-lead:has(.story-lead-portrait) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.story-lead-img,
.story-lead-portrait { overflow: hidden; border-radius: var(--radius); background: var(--sumi); }
.story-lead-img { aspect-ratio: 21 / 9; }
.story-lead-img img,
.story-lead-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .story-lead:has(.story-lead-portrait) { grid-template-columns: minmax(0, 1fr); }
  .story-lead-img { aspect-ratio: 3 / 2; }
}
.story-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .story-body { grid-template-columns: minmax(0, 1fr); } }
.prose p { max-width: 52ch; font-size: 18px; line-height: 1.75; color: var(--ink); }
.prose p + p { margin-top: 18px; }
/* The quote and the photo of the tanks stay beside the story text while it scrolls */
.story-aside { position: sticky; top: 120px; }
.story-tanks { margin-top: 32px; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius); background: var(--sumi); }
.story-tanks img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }
@media (max-width: 900px) {
  .story-aside { position: static; }
  .story-tanks { margin-top: 24px; }
}
.pull-quote p { font-family: var(--ff-accent); font-style: italic; font-size: clamp(26px, 3vw, 36px); line-height: 1.3; color: var(--sumi); text-wrap: balance; }
.pull-quote p::before { content: '“'; }
.pull-quote p::after { content: '”'; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 36px; counter-reset: step; }
.timeline li { position: relative; padding-top: 22px; }
.timeline li::before { content: ''; position: absolute; left: 0; right: -36px; top: 4px; height: 1px; background: var(--rule-strong); }
.timeline li:last-child::before { right: 0; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--hi); }
.timeline-when { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.timeline h3 { margin-top: 6px; font-family: var(--ff-display); font-size: 21px; font-weight: 600; line-height: 1.25; }
.timeline p { margin-top: 6px; max-width: 30ch; font-size: 16px; line-height: 1.55; color: var(--ink); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline li { padding: 0 0 28px 28px; }
  .timeline li::before { left: 4px; right: auto; top: 8px; bottom: -8px; width: 1px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .timeline li::after { top: 6px; }
  .timeline p { max-width: 46ch; }
}
.story-follow { margin-top: 28px; max-width: 56ch; font-size: 16px; line-height: 1.6; color: var(--ink); }
.story-follow a { color: var(--hi); }

/* ─── CONTACT ─── three large tap buttons first, then the map beside a quieter form */
.contact-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (max-width: 720px) { .contact-actions { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.contact-action {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 18px 22px;
  border: 0;
  border-radius: 16px;
  background: #fbf8f2;
  box-shadow: 0 14px 28px -22px rgba(26,22,18,0.45);
  color: var(--sumi);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}
.contact-action:hover { background: #fffdf8; box-shadow: 0 20px 34px -22px rgba(26,22,18,0.5); transform: translateY(-2px); }
.contact-action:active { transform: none; }
/* the icon sits in a soft round of the page's deeper cream */
.contact-action svg { flex: none; box-sizing: border-box; width: 50px; height: 50px; padding: 12px; border-radius: 50%; background: var(--washi-2); }
.contact-action svg:not([fill="none"]) { fill: currentColor; }
.contact-action span { display: flex; flex-direction: column; min-width: 0; }
.contact-action strong { font-family: var(--ff-display); font-size: 20px; font-weight: 600; line-height: 1.25; }
.contact-action small { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; opacity: 0.85; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-map img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.contact-map figcaption { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.contact-map figcaption strong { color: var(--sumi); font-weight: 600; }
.contact-map a,
.contact-follow a,
.contact-note a { color: var(--hi); }
.contact-follow { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.contact-form-title { margin-bottom: 18px; font-family: var(--ff-display); font-size: 24px; font-weight: 600; line-height: 1.25; }
.contact-note { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group input, .form-group textarea, .form-group select { width: 100%; min-width: 0; }
.form-group label { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 13px 16px;
  font-family: var(--ff-body);
  font-size: 17px;
  color: var(--sumi);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover { border-color: var(--sumi); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 16px; line-height: 1.6; color: var(--ink); }
.form-note[hidden] { display: none; }
.form-note a { color: var(--hi); }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink); cursor: pointer; }
.form-check input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--hi); cursor: pointer; }

/* ─── POLICY PAGES ─── contents list, numbered sections, readable measure */
.policy-layout { display: grid; grid-template-columns: 250px minmax(0, 54ch); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .policy-layout { grid-template-columns: minmax(0, 1fr); } }
.policy-contents { position: sticky; top: calc(var(--nav-h) + 28px); }
@media (max-width: 900px) { .policy-contents { position: static; } }
.policy-contents h2 { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.policy-contents ol { padding-left: 22px; font-size: 16px; line-height: 1.5; }
.policy-contents li + li { margin-top: 8px; }
.policy-contents a { color: var(--sumi); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.policy-contents a:hover { color: var(--hi); text-decoration-color: var(--hi); }
.policy-body { max-width: 68ch; font-size: 17px; line-height: 1.75; color: var(--ink); }   /* a readable measure at every width */
.policy-lead { font-family: var(--ff-accent); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink); margin-bottom: 14px; }
.policy-updated { font-size: 16px; color: var(--muted); margin-bottom: 28px; }
.policy-body section { padding: 0; scroll-margin-top: 124px; }
.policy-body section + section { margin-top: 44px; }
.policy-body h2 { font-family: var(--ff-display); font-size: 26px; font-weight: 600; line-height: 1.25; color: var(--sumi); margin-bottom: 12px; }
.policy-body h2 span { color: var(--hi); margin-right: 6px; font-variant-numeric: tabular-nums; }
.policy-body p + p,
.policy-body ul + p,
.policy-body p + ul { margin-top: 14px; }
.policy-body ul { padding-left: 22px; }
.policy-body li + li { margin-top: 6px; }
.policy-body a { color: var(--hi); }
.policy-more { margin-top: 56px; padding-top: 0; font-size: 16px; }
.policy-more a { margin-right: 18px; white-space: nowrap; }

/* ─── FOOTER ─── */
.footer { background: var(--sumi-2); color: var(--washi); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.8fr)) minmax(0, 1.5fr);
  gap: 40px;
  padding-bottom: 56px;
}
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand, .footer-details { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } .footer-policies { grid-column: 1 / -1; } }
.footer-logo { height: 72px; width: auto; display: block; margin-bottom: 14px; }
.footer p,
.footer li,
.footer a { font-size: 16px; line-height: 1.6; }
.footer-brand p { max-width: 34ch; color: rgba(243,236,220,0.82); }
.footer h3 { font-family: var(--ff-display); font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul a { display: inline-block; padding: 5px 0; color: rgba(243,236,220,0.82); text-decoration: none; transition: color 0.2s; }
.footer ul a:hover { color: var(--washi); text-decoration: underline; text-underline-offset: 4px; }
.footer-details p { color: rgba(243,236,220,0.82); max-width: 44ch; }
.footer-details p + p { margin-top: 8px; }
.footer-details strong { color: var(--washi); font-weight: 600; }
.footer-details a { color: var(--washi); text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(243,236,220,0.12); padding: 22px 0 26px; font-size: 14px; color: rgba(243,236,220,0.74); }
.footer-bottom span { font-size: 14px; }
/* the bottom bar: the copyright on the left, a discreet credit on the right (under it on phones) */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.footer a.footer-credit { font-size: 14px; line-height: 1.6; color: rgba(243,236,220,0.74); text-decoration: none; }
.footer-credit span { color: var(--gold-soft); }
.footer a.footer-credit:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .footer-bottom { flex-direction: column; align-items: center; text-align: center; } .footer a.footer-credit { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; } }

/* ─── WHATSAPP (the only one) ───
   Clear of the phone's own toolbar and home bar. On phones it is smaller, slips away while the
   page scrolls down (so it never sits on what you are reading) and comes back on the way up. */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(243,236,220,0.72);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 12px rgba(26,22,18,0.16), inset 0 0 0 1px rgba(26,22,18,0.08);
  transition: transform 0.35s var(--ease), opacity 0.3s ease, background-color 0.25s ease;
}
.wa-fab:hover,
.wa-fab:active { background: #25d366; }       /* green only under the cursor or a finger */
.wa-fab svg { width: 24px; height: 24px; fill: #1a1612; }
@media (max-width: 720px) {
  .wa-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .wa-fab svg { width: 22px; height: 22px; }
  .wa-fab.is-away { transform: translateY(calc(100% + 32px + env(safe-area-inset-bottom))); opacity: 0; pointer-events: none; }
}

/* ─── PHONES: NO BACKDROP BLUR ───
   Blurring what is behind an element means re-reading the moving video under it on every frame, which
   is what made the water stutter on iPhones. Below 768px nothing blurs its backdrop: the same things
   use a solid or nearly solid colour instead. */
@media (max-width: 767px) {
  .nav, .icon-btn, .wa-fab, .koi-card-badge, .koi-card-stars, .koi-card-play, .shop-top, .shop-tabs--sticky, .qv-close {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .nav { background: var(--washi); }                 /* solid: nothing scrolling under the bar shows through it */
  html.nav-over .nav--overlay:not(.is-solid) .icon-btn { background: rgba(20,30,27,0.6); }
  .wa-fab { background: rgba(243,236,220,0.94); }
  .koi-card-badge, .koi-card-stars, .koi-card-play { background: rgba(14,20,18,0.62); }
  .shop-top, .shop-tabs--sticky { background: var(--washi); }
}

/* ─── PHONES: EVERYTHING TAPPABLE IS AT LEAST 44px TALL ───
   Done with padding and row height, never a bigger font. Links inside a sentence get the same reach
   without moving the lines around them (the padding is cancelled by an equal negative margin). */
@media (max-width: 767px) {
  .footer ul a,
  .footer-details a,
  .footer-rating a,
  .footer-bottom a,
  .rating-line a,
  .policy-contents a { display: inline-flex; align-items: center; min-height: 44px; padding-top: 0; padding-bottom: 0; }
  .footer-rating { margin-top: 6px; }
  .footer-rating a { margin-right: 18px; }
  .policy-contents li + li { margin-top: 0; }
  /* Pills look 36px tall, as designed, but are 44px to tap: 4px of clear border above and below, outside the fill */
  .shop-tab,
  .variety-chips a { height: 44px; min-height: 44px; border: solid transparent; border-width: 4px 0; border-radius: 22px; background-clip: padding-box; }
  .shop-tab[aria-current="true"],
  .shop-tab:hover,
  .variety-chips a:hover { border-color: transparent; background-clip: padding-box; }
  .shop-top,
  .shop-tabs--sticky { margin-top: -2px; margin-bottom: 10px; }
  .shop-sheet .shop-sheet-cats { row-gap: 0; }
  .shop-sheet .shop-label + .shop-sheet-cats { margin-top: -4px; }
  .trust-row a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-policies ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .text-link { min-height: 44px; padding-bottom: 0; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
  .prose a,
  .story-follow a,
  .contact-map figcaption a,
  .contact-note a,
  .contact-follow a,
  .policy-body a,
  .shop-message a,
  .shop-message button,
  .qv-small a,
  .vg-stock-none a,
  .basket-note a,
  .checkout a:not(.btn) { display: inline-block; padding: 12px 0; margin: -12px 0; }
}

/* ─── MOTION ─── the pieces motion.js works with. Everything is visible without it. */
/* Headings arrive word by word from below a mask */
/* A word and the mask it rises from. Every mask is the same kind of box and sits on the text's own baseline, so
   a word in the italic accent face lines up with the upright words beside it exactly as it does unsplit, with
   or without the fonts loaded. That needs "overflow: clip": a box that hides its overflow any other way stops
   having a text baseline (it is aligned by its bottom edge, and the two faces have different depths below the
   line, which is what made the accent word float). Browsers without it keep the older bottom alignment. */
.mw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.14em; margin-bottom: -0.14em; line-height: inherit; }
@supports (overflow: clip) { .mw { overflow: clip; vertical-align: baseline; } }
.mwi { display: inline-block; line-height: inherit; will-change: transform; }
.mwp { line-height: inherit; }
/* Desktop: a koi card lifts 4px under the cursor, and a soft ring spreads over the photo from where the cursor came in */
@media (hover: hover) and (pointer: fine) {
  .koi-card, .product-card { transition: opacity 0.2s ease, transform 0.45s var(--ease); }
  .koi-card:hover, .product-card:hover { transform: translateY(-4px); }
}
.ripple {
  position: absolute;
  z-index: 1;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,251,240,0.85);
  pointer-events: none;
  transform: scale(0.04);
  animation: ripple 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
/* Photos that drift a little while on screen are held slightly larger, so no edge ever shows */
/* (a drifting photo's extra size is set by motion.js as part of its one transform: setting it here as well made the photo zoom a second time after it had arrived) */
/* How to buy: the gold line that draws between the steps (desktop) */
.process-grid { position: relative; }
.process-line { position: absolute; left: 0; right: 0; top: -20px; height: 1px; background: var(--gold); transform-origin: left center; }
/* Our Story: each step's line draws in */
.timeline li::before { transform: scaleX(var(--draw, 1)); transform-origin: left center; }
@media (max-width: 900px) { .timeline li::before { transform: scaleY(var(--draw, 1)); transform-origin: center top; } }
/* The nav settles into a slightly smaller mark once the page has scrolled (no change of height, so nothing below moves) */
.brand-mark { transform-origin: left center; transition: transform 0.4s var(--ease); }
html.nav-small .brand-mark { transform: scale(0.88); }
.nav { transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
html.nav-small .nav:not(.nav--overlay) { box-shadow: 0 12px 24px -22px rgba(26,22,18,0.55); }
html.lenis-on { scroll-behavior: auto !important; }

/* ─── PAGE TO PAGE ─── a quick fade through the pond colour, so moving between pages feels continuous.
   Browsers with view transitions do it here; the rest get the fade from motion.js. */
@view-transition { navigation: auto; }
::view-transition { background: #0b1513; }
::view-transition-old(root) { animation: page-out 175ms ease-in both; }
::view-transition-new(root) { animation: page-in 175ms ease-out 175ms both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } }
html.page-leaving body { opacity: 0; transition: opacity 170ms ease-in; }
html.page-leaving { background: #0b1513; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;   /* not a tiny duration: that would make every property, visibility included, lag a frame */
    scroll-behavior: auto !important;
  }
}
