/* ============================================
   Balgowlah Seafood — Design Tokens
   Swap these variables to re-brand for any shop.
   ============================================ */
:root {
  /* Palette pulled from the shop fitout: petrol-teal cabinetry, white marble
     counters, warm oak, a charcoal floor, and thin brass reveal lines. */

  /* Petrol teal — the cabinetry colour. */
  --color-primary: #185560;
  --color-primary-dark: #0e373f;
  --color-primary-light: #dbe7e6;    /* pale sea fill */
  /* Brass — the counter reveal lines. The signal/accent colour.
     Two shades: fill vs. text-safe on light. */
  --color-accent: #b28a4e;
  --color-accent-dark: #7c5c2b;      /* darkened so the eyebrow label clears 4.5:1 */
  --color-sand: #f0eee8;             /* warm marble/limestone paper (page bg) */
  --color-ink: #212e2e;              /* charcoal-teal text */
  --color-ink-soft: #5c6a68;
  --color-white: #ffffff;            /* literally white — for text on coloured fills */
  --color-surface: #ffffff;          /* elevated surfaces (cards, drawer, header); flips in dark */
  --color-border: #e2ddce;           /* warm hairline */
  --color-success: #2f7a4f;
  --color-error: #c0392b;
  --color-cream: #f4f2ea;
  --color-shell: #faf8f2;            /* marble-white card surface */

  /* Charcoal floor — dark bands & footer. */
  --color-slate: #2b3133;
  --color-chalk: #eef0ec;            /* light text on charcoal */
  --color-oak: #d8b98c;              /* warm oak accent */
  --color-gold: #c39a54;             /* brass-gold (review stars) */

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(20, 35, 42, 0.06), 0 6px 16px rgba(20, 35, 42, 0.05);
  --shadow-lift: 0 14px 34px rgba(20, 35, 42, 0.16);

  --header-height: 76px;
  --max-width: 1180px;

  /* ------------------------------------------------
     Animation controls — tweak these in one place.
     ------------------------------------------------ */
  --anim-ease: cubic-bezier(0.22, 0.61, 0.36, 1); /* easing curve for reveals/hero */
  --reveal-duration: 0.6s;   /* how long the scroll fade-in takes */
  --reveal-distance: 18px;   /* how far cards travel up as they appear */
  --hero-duration: 0.7s;     /* hero heading/copy entrance speed */
  --hover-lift: -3px;        /* how far cards rise on hover (more negative = higher) */
  --hover-speed: 0.18s;      /* hover transition speed */
  --img-fade: 0.5s;          /* photo fade-in speed once loaded */

  /* Semantic tokens that flip in dark mode (see bottom of file). */
  --color-heading: var(--color-primary-dark);  /* display headings + accented text */
  --color-header-bg: rgba(239, 233, 221, 0.88); /* sticky header wash */
}

/* Soft two-tone wash behind the whole page — blends the marble/sea tones
   instead of a flat fill. Fixed so it stays put while content scrolls. */
body {
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(24, 85, 96, 0.10) 0%, rgba(24, 85, 96, 0) 55%),
    radial-gradient(100% 70% at -10% 0%, rgba(178, 138, 78, 0.08) 0%, rgba(178, 138, 78, 0) 50%),
    var(--color-sand);
  background-attachment: fixed;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--color-ink); }
::placeholder { color: var(--color-ink-soft); opacity: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  margin: 0 0 0.5em;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  font-weight: 700;
  margin-bottom: 14px;
}
/* Hand-chalked tick before each eyebrow, like a mark on the specials board. */
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.12);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary-dark);
}
.btn-outline:hover { background: var(--color-primary-light); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--color-header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-heading);
}
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--color-primary);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 2px 6px rgba(20,35,42,0.18);
}
/* The logo mark now fills the badge, so the old coral tide-line is retired. */
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-top: 3px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-weight: 500;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--color-heading); }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
}
.cart-btn:hover { background: var(--color-primary-dark); }
.cart-count {
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 84px 0 68px;
  /* Prawns-on-ice photo washed under a teal gradient — the catch, blended
     into the brand colour, with the left kept darkest for headline contrast. */
  background:
    linear-gradient(105deg, rgba(12,50,57,0.97) 0%, rgba(13,52,60,0.93) 46%, rgba(24,85,96,0.58) 100%),
    url('../images/hero-prawns.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--color-primary-dark);
}
/* Phones get an 800px hero (55KB) instead of the 1800px one (206KB). The
   gradient sits over it so heavily that the smaller file is indistinguishable. */
@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(105deg, rgba(12,50,57,0.97) 0%, rgba(13,52,60,0.93) 46%, rgba(24,85,96,0.58) 100%),
      url('../images/hero-prawns@sm.jpg') center/cover no-repeat;
  }
}
/* Hero sits on dark teal now — lift its text and buttons to light. */
.hero .eyebrow { color: var(--color-oak); }
.hero .eyebrow::before { background: var(--color-oak); }
.hero h1 { color: var(--color-cream); }
.hero .btn-primary { background: var(--color-cream); color: var(--color-primary-dark); }
.hero .btn-primary:hover { background: #ffffff; }
.hero .btn-outline { border-color: rgba(244,242,234,0.65); color: var(--color-cream); }
.hero .btn-outline:hover { background: rgba(244,242,234,0.14); }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  max-width: 15ch;
  font-weight: 800;
}
.hero p.lead {
  font-size: 1.12rem;
  color: rgba(244,242,234,0.94);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Signature: an arched teal niche echoing the shop's seafood counter,
   with today's catch listed inside. The arch is the fitout's signature form. --- */
.hero-art.niche {
  aspect-ratio: auto;
  display: block;
  padding: 30px 34px 34px;
  /* Rounded-arch top, like the counter niches. */
  border-radius: 190px 190px var(--radius-md) var(--radius-md);
  background:
    radial-gradient(120% 90% at 50% 0%, #1e6470 0%, var(--color-primary) 55%, var(--color-primary-dark) 100%);
  color: var(--color-chalk);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(255,255,255,0.06);
  /* Brass hairline trim following the arch. */
  outline: 2px solid var(--color-accent);
  outline-offset: 6px;
  position: relative;
  text-align: center;
}
.niche-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
}
.niche-fish { font-size: 2rem; line-height: 1; }
.niche-fish img { width: 46px; height: 46px; display: block; }
.niche-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #fff;
  padding-left: 0.34em;
}
.board-head {
  display: block;
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-oak);
}
.board-head::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--color-accent);
}
.board-list {
  margin: 18px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  text-align: left;
}
.board-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 500;
  padding-bottom: 11px;
  border-bottom: 1px dotted rgba(238, 240, 236, 0.22);
}
.board-list li:last-child { border-bottom: none; padding-bottom: 0; }
.board-list .price { color: var(--color-oak); font-weight: 700; white-space: nowrap; }
.board-list .price small { font-weight: 500; opacity: 0.7; font-size: 0.72em; }
.board-foot {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(238, 240, 236, 0.72);
}

/* ============================================
   How it works
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.step-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* ============================================
   About section
   ============================================ */
.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* About photo gallery — slide/swipe only (no buttons), up to 8 photos */
.about-gallery { position: relative; cursor: grab; touch-action: pan-y; }
.about-gallery.dragging { cursor: grabbing; }
.ag-track { display: flex; transition: transform 0.4s ease; will-change: transform; }
.ag-track img { flex: 0 0 100%; user-select: none; -webkit-user-drag: none; }
.ag-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(11, 54, 62, 0.62);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.ag-nav:hover { background: rgba(11, 54, 62, 0.9); }
.ag-prev { left: 12px; }
.ag-next { right: 12px; }
.ag-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  gap: 6px;
  justify-content: center;
  z-index: 2;
}
.ag-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.ag-dot.active { background: #fff; }
@media (pointer: coarse) { .ag-nav { width: 44px; height: 44px; } }

/* ============================================
   Contact page
   ============================================ */
.contact-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; }
.contact-form-card h2 { font-size: 1.2rem; margin-bottom: 4px; }
.contact-form-card input, .contact-form-card textarea { width: 100%; }
.contact-form-card textarea { resize: vertical; min-height: 120px; }
.contact-info h2 { font-size: 1.2rem; margin-bottom: 12px; }
.contact-address { color: var(--color-ink-soft); line-height: 1.65; margin: 0 0 6px; }
.contact-detail { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-top: 1px solid var(--color-border); }
.contact-detail .ct-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ink-soft); font-weight: 700; }
.contact-detail a, .contact-detail .ct-value { color: var(--color-ink); font-weight: 500; }
.contact-detail a:hover { color: var(--color-primary); }
.contact-map { margin-top: 22px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.contact-map iframe { width: 100%; height: 300px; border: 0; display: block; }
.contact-success { text-align: center; padding: 8px 0 4px; }
.contact-success .cs-check { width: 46px; height: 46px; color: var(--color-primary); margin: 0 auto 10px; }
.contact-success h3 { font-size: 1.3rem; margin-bottom: 6px; }
.contact-success .cs-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================
   Options chooser popup (item variants)
   ============================================ */
.opts-overlay { position: fixed; inset: 0; background: rgba(11, 54, 62, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.2s; z-index: 60; }
.opts-overlay.open { opacity: 1; visibility: visible; }
.opts-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%);
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-lift);
  padding: 24px; z-index: 61; opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s;
}
.opts-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.opts-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 1.7rem; line-height: 1; color: var(--color-ink-soft); cursor: pointer; }
.opts-title { font-size: 1.2rem; margin: 0 30px 18px 0; }
.opt-group { margin-bottom: 16px; }
.opt-label { font-size: 0.85rem; font-weight: 700; color: var(--color-ink-soft); margin-bottom: 8px; }
.opt-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip { position: relative; }
.opt-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.opt-chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--color-border); border-radius: 999px; font-size: 0.9rem; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.opt-chip input:checked + span { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.opt-chip input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.opts-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; border-top: 1px solid var(--color-border); padding-top: 18px; }
.opts-price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--color-primary-dark); }
.cart-line-opts { font-size: 0.78rem; color: var(--color-ink-soft); margin: 1px 0 2px; }
.about-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(11, 54, 62, 0.82);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
}
.about-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 18ch; }
.about-body p { color: var(--color-ink-soft); margin: 0 0 16px; max-width: 56ch; }
.about-signature { margin-top: 24px; display: flex; flex-direction: column; gap: 2px; }
.about-name { font-family: var(--font-display); font-weight: 700; color: var(--color-primary-dark); font-size: 1.1rem; }
.about-role { font-size: 0.82rem; color: var(--color-ink-soft); }

@media (max-width: 760px) {
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-media { max-width: 340px; }
}

/* ============================================
   Category / Featured cards
   ============================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.category-card {
  background: var(--color-shell);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.category-card:hover { transform: translateY(var(--hover-lift)); box-shadow: var(--shadow-lift); border-color: #cfc6b2; }
.category-thumb {
  aspect-ratio: 1 / 1;
  margin: 18px 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  /* Arched top, echoing the shop's seafood niches. */
  border-radius: 90px 90px var(--radius-sm) var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(33,46,46,0.06);
}
.category-thumb.c1 { background: #d3e2e0; }   /* sea mist */
.category-thumb.c2 { background: #e7d8bf; }   /* oak */
.category-thumb.c3 { background: #dae4cd; }   /* garden */
.category-thumb.c4 { background: #e5ded0; }   /* marble */
.category-thumb { overflow: hidden; border-radius: 12px; }
.category-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.category-card:hover .category-thumb img { transform: scale(1.06); }
.category-card .card-body { padding: 16px 18px 20px; }
.category-card h3 { font-size: 1.08rem; margin-bottom: 4px; }
.category-card p { color: var(--color-ink-soft); font-size: 0.88rem; margin: 0; }

/* ============================================
   Order page layout
   ============================================ */
.order-header {
  padding: 40px 0 8px;
}
.order-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding-bottom: 80px;
  align-items: start;
}
/* Let the 1fr content column shrink instead of forcing horizontal overflow
   (grid items default to min-width:auto). */
.order-layout > * { min-width: 0; }
.filter-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.filter-panel h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-soft);
  margin-bottom: 14px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--color-shell);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  background: var(--color-primary-light);
  overflow: hidden;
}

/* Product photo fills the thumbnail; the emoji sits behind it as a fallback
 * that is only revealed when the image fails to load (.thumb-fallback). */
.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-emoji {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.thumb-fallback .thumb-emoji { display: flex; }

/* Designed name tile — used for species we have no honest photo of, so the
   card shows the fish's name in the counter's own lettering rather than a
   stand-in picture of a different fish. See js/product-images.js. */
.thumb-tile {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  background: radial-gradient(125% 100% at 50% 0%, #1e6470 0%, var(--color-primary) 58%, var(--color-primary-dark) 100%);
  color: var(--color-cream);
}
.thumb-tile > span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.8rem, 2.6vw, 1rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 14ch;
}
/* Brass rules above and below, echoing the counter's reveal lines. */
.thumb-tile > span::before,
.thumb-tile > span::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  margin: 0 auto;
  background: var(--color-accent);
  opacity: 0.85;
}
.thumb-tile > span::before { margin-bottom: 8px; }
.thumb-tile > span::after { margin-top: 8px; }

/* In the 44px cart thumb the name can't be read, and the line name sits right
   beside it anyway — so it becomes a plain teal chip with the brass rule. */
.cart-line-thumb .thumb-tile { padding: 0; }
.cart-line-thumb .thumb-tile > span { font-size: 0; max-width: none; }
.cart-line-thumb .thumb-tile > span::before { margin-bottom: 5px; width: 16px; }
.cart-line-thumb .thumb-tile > span::after { margin-top: 5px; width: 16px; }

/* ---- Product image gallery (multiple photos per item) ---- */
.product-thumb[data-gallery] { cursor: pointer; }
.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-primary-dark);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-card);
  z-index: 2;
}
.gal-prev { left: 8px; }
.gal-next { right: 8px; }
.product-thumb:hover .gal-nav { opacity: 1; }
.gal-nav:hover { background: #fff; }

.gal-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.gal-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease, transform 0.15s ease;
}
.gal-dot.active { background: #fff; transform: scale(1.3); }

/* On touch devices, keep the arrows visible since there's no hover. */
@media (hover: none) {
  .product-thumb .gal-nav { opacity: 1; }
}
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 1rem; margin: 0; }
.product-unit { font-size: 0.78rem; color: var(--color-ink-soft); }
.product-desc { font-size: 0.85rem; color: var(--color-ink-soft); flex: 1; margin: 4px 0 10px; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-price { font-weight: 700; color: var(--color-heading); font-size: 1.05rem; }
.add-btn {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}
.add-btn:hover { background: var(--color-primary-dark); }

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary-light);
  border-radius: 999px;
  padding: 5px 10px;
}
.qty-stepper button {
  background: var(--color-surface);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-stepper span { min-width: 16px; text-align: center; font-weight: 600; font-size: 0.9rem; }

/* ============================================
   Cart Drawer
   ============================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 48, 46, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 92vw;
  background: var(--color-surface);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 30px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--color-border);
}
.drawer-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-ink-soft);
  line-height: 1;
}
.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 22px;
}
.cart-line {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-line-thumb {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-line-thumb .thumb-emoji { font-size: 1.3rem; }
.cart-line-name { font-weight: 600; font-size: 0.92rem; }
.cart-line-price { font-size: 0.82rem; color: var(--color-ink-soft); }
.cart-line-remove {
  background: none;
  border: none;
  color: var(--color-error);
  font-size: 0.78rem;
  text-decoration: underline;
  padding: 0;
  margin-top: 4px;
}
.cart-empty {
  text-align: center;
  color: var(--color-ink-soft);
  padding: 60px 20px;
}
.drawer-footer {
  padding: 18px 22px 24px;
  border-top: 1px solid var(--color-border);
}
.drawer-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

/* ============================================
   Checkout
   ============================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  padding: 32px 0 80px;
}
.checkout-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 28px 32px;
  margin-bottom: 22px;
}
.checkout-card h2 { font-size: 1.15rem; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--color-ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  background: var(--color-sand);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
}
.fulfillment-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.fulfillment-option {
  flex: 1;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  color: var(--color-ink-soft);
}
.fulfillment-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-heading);
}
.field-error {
  color: var(--color-error);
  font-size: 0.78rem;
  display: none;
}
.form-field.invalid input, .form-field.invalid select { border-color: var(--color-error); }
.form-field.invalid .field-error { display: block; }

.summary-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px 24px 26px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}
.summary-card h2 { font-size: 1.05rem; }
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 8px 0;
  color: var(--color-ink-soft);
}
.summary-line.total {
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
  padding-top: 14px;
  font-weight: 700;
  color: var(--color-ink);
  font-size: 1.05rem;
}
.summary-note {
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  background: var(--color-sand);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 14px;
}

.confirmation {
  text-align: center;
  padding: 90px 20px;
}
.confirmation .badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success);
  color: var(--color-white);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.confirmation h1 { font-size: 1.7rem; }
.confirmation p { color: var(--color-ink-soft); max-width: 46ch; margin: 0 auto 28px; }
.order-ref {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-heading);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

/* Payment instructions on the confirmation screen. Left-aligned inside the
   centred confirmation block: an account number read down a centred column is
   easy to mis-transcribe, and mis-transcribing this one loses someone's
   money. */
.pay-panel {
  text-align: left;
  max-width: 30rem;
  margin: 0 auto 28px;
  padding: 22px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface, #fff);
}
.pay-panel h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.confirmation .pay-panel p {
  margin: 0 0 12px;
  max-width: none;
  text-align: left;
}
.pay-panel .pay-note {
  font-size: 0.86rem;
  line-height: 1.5;
}
.pay-panel .pay-verify {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
}
.bank-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
}
.bank-details dt {
  color: var(--color-ink-soft);
  font-size: 0.86rem;
}
.bank-details dd {
  margin: 0;
  font-weight: 700;
  color: var(--color-heading);
  /* Digits in a fixed-width face so a transposed pair is visible. */
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-slate);
  color: #cfd8d4;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.site-footer p, .site-footer li { font-size: 0.88rem; color: #a9c2bc; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.78rem;
  color: #8fabA4;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .order-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .filter-list button { width: auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; }
}

/* ============================================
   Motion & Animation
   ============================================ */

/* Scroll reveal — elements start slightly down & faded, ease in when
   they enter the viewport (class toggled by js/ui.js). */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) var(--anim-ease),
              transform var(--reveal-duration) var(--anim-ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Product photos fade in once the image has loaded (.loaded set in cart.js). */
.thumb-img { opacity: 0; transition: opacity var(--img-fade) ease; }
.thumb-img.loaded { opacity: 1; }

/* Hero heading + copy rise in on first paint. */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.hero h1 { animation: fadeUp var(--hero-duration) var(--anim-ease) both; }
.hero p.lead { animation: fadeUp var(--hero-duration) var(--anim-ease) 0.1s both; }
.hero .eyebrow { animation: fadeUp var(--hero-duration) var(--anim-ease) both; }
.hero-actions { animation: fadeUp var(--hero-duration) var(--anim-ease) 0.2s both; }
.hero-art { animation: fadeUp calc(var(--hero-duration) + 0.1s) var(--anim-ease) 0.15s both; }

/* Card hover lift (product cards match the category cards' feel). */
.product-card { transition: transform var(--hover-speed) ease, box-shadow var(--hover-speed) ease; }
.product-card:hover { transform: translateY(var(--hover-lift)); box-shadow: var(--shadow-lift); }

/* Button press feedback. */
.btn:active, .add-btn:active, .cart-btn:active { transform: translateY(1px) scale(0.98); }
.add-btn { transition: transform 0.12s ease, background 0.15s ease; }

/* Cart badge pulse when an item is added. */
@keyframes cartPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.cart-count.pulse { animation: cartPulse 0.4s ease; }

/* "Added" flash on the Add button. */
@keyframes addedFlash {
  0%, 100% { background: var(--color-primary); }
  50%      { background: var(--color-success); }
}
.add-btn.added { animation: addedFlash 0.45s ease; }

/* Respect users who prefer reduced motion — turn everything off. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .thumb-img { opacity: 1; }
}

/* ============================================
   Mobile nav (hamburger)
   ============================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  padding: 9px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 24px 16px;
    box-shadow: var(--shadow-card);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 39;
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--color-border); font-size: 1rem; }
  .main-nav a:last-child { border-bottom: none; }
}

/* ============================================
   Sticky mobile cart bar
   ============================================ */
.mobile-cart-bar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 45;
  background: var(--color-primary-dark);
  color: var(--color-white);
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lift);
  transform: translateY(120%);
  transition: transform 0.28s ease;
}
.mobile-cart-bar.visible { transform: none; }
.mobile-cart-bar .mcb-total { font-weight: 700; }
@media (max-width: 760px) {
  .mobile-cart-bar { display: flex; }
}

/* ============================================
   Shop toolbar: search + sort
   ============================================ */
.shop-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.shop-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.shop-search input {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 11px 16px 11px 40px;
  background: var(--color-surface);
}
.shop-search input:focus { outline: none; border-color: var(--color-primary); }
.shop-search::before {
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.6;
}
.shop-sort select {
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--color-surface);
}
.shop-sort select:focus { outline: none; border-color: var(--color-primary); }
.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-ink-soft);
  padding: 60px 20px;
}

/* ============================================
   Sold-out state
   ============================================ */
.product-card.is-sold-out .product-thumb { filter: grayscale(0.7); }
.sold-out-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 1;
}
.add-btn.disabled, .add-btn:disabled {
  background: var(--color-border);
  color: var(--color-ink-soft);
  cursor: not-allowed;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.testimonial {
  background: var(--color-shell);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial .stars { color: var(--color-gold); letter-spacing: 2px; }
.testimonial p { margin: 0; color: var(--color-ink); font-size: 0.95rem; }
.testimonial .who { font-weight: 600; color: var(--color-ink-soft); font-size: 0.85rem; }

/* Sustainability band — styled as a chalkboard panel */
.sustain {
  background:
    radial-gradient(120% 100% at 85% 0%, #1c333c 0%, var(--color-slate) 60%);
  color: #d6ded9;
}
.sustain h2 { color: var(--color-white); }
.sustain .eyebrow { color: var(--color-oak); }
.sustain .eyebrow::before { background: var(--color-accent); }
.sustain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.sustain-item .ic { color: #a7dcd8; margin-bottom: 12px; line-height: 0; }
.sustain-item .ic svg { width: 30px; height: 30px; }
.sustain-item h3 { color: var(--color-white); font-size: 1.05rem; }
.sustain-item p { color: #a9c2bc; font-size: 0.9rem; margin: 0; }

@media (max-width: 760px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .sustain-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Order page — grouped browse sidebar (jump-links)
   ============================================ */
html { scroll-behavior: smooth; }
.filter-panel { max-height: calc(100vh - var(--header-height) - 48px); overflow-y: auto; }
.jump-group { margin-bottom: 6px; }
.jump-group:last-child { margin-bottom: 0; }
/* Main-category button — the only thing shown until a category is picked. */
.group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--color-heading);
  padding: 10px 10px;
  letter-spacing: -0.01em;
  transition: background 0.14s ease;
}
.group-btn:hover { background: var(--color-primary-light); }
.group-btn.active { background: var(--color-primary-light); }
.group-chevron {
  font-size: 0.7rem;
  color: var(--color-ink-soft);
  transition: transform 0.18s ease;
}
.jump-group.expanded .group-chevron { transform: rotate(180deg); }
.jump-group .jump-link { margin-left: 6px; }
.jump-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  border-left: 2px solid transparent;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.jump-link:hover { background: var(--color-primary-light); color: var(--color-heading); }
.jump-link.active {
  background: var(--color-primary-light);
  color: var(--color-heading);
  border-left-color: var(--color-accent);
  font-weight: 600;
}
.jump-count {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-ink-soft);
  background: var(--color-sand);
  border-radius: 999px;
  padding: 1px 8px;
  min-width: 22px;
  text-align: center;
}
.jump-link.active .jump-count { color: var(--color-heading); }

/* ============================================
   Order page — stacked groups & sections
   ============================================ */
.shop-group { margin-bottom: 44px; scroll-margin-top: calc(var(--header-height) + 16px); }
.shop-group:last-child { margin-bottom: 0; }
.group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--color-border);
}
.group-head h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.group-emoji {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 60px 60px var(--radius-sm) var(--radius-sm);
  background: var(--color-primary-light);
  box-shadow: inset 0 0 0 1px rgba(33, 46, 46, 0.06);
}
.shop-section { margin-bottom: 34px; scroll-margin-top: calc(var(--header-height) + 12px); }
.shop-section:last-child { margin-bottom: 0; }
.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--color-heading);
}
.section-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-ink-soft);
  background: var(--color-shell);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 2px 9px;
}

/* ============================================
   Responsive — grouped browse sidebar
   ============================================ */
@media (max-width: 960px) {
  /* Main-category buttons become a horizontal chip strip; sub-links hide. */
  .filter-panel { max-height: none; overflow: visible; }
  .filter-list { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .jump-group { flex: 0 0 auto; margin: 0; }
  .group-btn {
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 8px 14px;
    white-space: nowrap;
    font-size: 0.88rem;
  }
  .group-btn.active { border-color: var(--color-primary); background: var(--color-primary-light); }
  .group-chevron { display: none; }
  .jump-group .jump-link { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .group-head h2 { font-size: 1.4rem; }
  .product-body { padding: 12px 12px 14px; }
  .product-body h3 { font-size: 0.92rem; }
}

/* Sold-by-weight disclaimer under the order heading. */
.price-note {
  max-width: 62ch;
  margin: 14px 0 0;
  padding: 11px 14px;
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-ink);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ============================================
   Recipes
   ============================================ */
.recipes-intro { padding-bottom: 24px; }

/* Tag filter strip above the list. */
.recipe-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}
.rf-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-shell);
  color: var(--color-ink);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--hover-speed) ease, border-color var(--hover-speed) ease,
    color var(--hover-speed) ease;
}
.rf-btn:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.rf-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.rf-count {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(33, 46, 46, 0.08);
  color: var(--color-ink-soft);
}
.rf-btn.active .rf-count { background: rgba(255, 255, 255, 0.22); color: var(--color-white); }

.recipe-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.recipe-list > * { min-width: 0; }

.recipe-card {
  /* Clears the sticky header when a card is scrolled to via a #deep-link. */
  scroll-margin-top: 96px;
  background: var(--color-shell);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--hover-speed) ease, box-shadow var(--hover-speed) ease,
    border-color var(--hover-speed) ease;
}
.recipe-card:hover { transform: translateY(var(--hover-lift)); box-shadow: var(--shadow-lift); border-color: #cfc6b2; }

/* An open card takes the full row and switches to a two-column reading layout. */
.recipe-card.open {
  grid-column: 1 / -1;
  transform: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lift);
}

/* --- Card header (the whole thing is the toggle) --- */
.recipe-head {
  display: block;
  width: 100%;
  padding: 0 0 18px;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  font: inherit;
}
.recipe-thumb {
  display: block;
  margin: 18px 18px 16px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  /* Arched top — the fitout's signature niche shape. */
  border-radius: 120px 120px var(--radius-sm) var(--radius-sm);
  background: var(--color-primary-light);
  box-shadow: inset 0 0 0 1px rgba(33, 46, 46, 0.06);
}
.recipe-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.recipe-card:not(.open) .recipe-head:hover .recipe-thumb img { transform: scale(1.05); }

.recipe-head-body { display: block; padding: 0 18px; }

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-accent-dark);
}
.recipe-meta > span { position: relative; padding-right: 8px; }
.recipe-meta > span + span::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

.recipe-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--color-heading);
  margin-bottom: 7px;
}
.recipe-blurb {
  display: block;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}
.recipe-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--color-primary);
}
.recipe-more svg { width: 15px; height: 15px; transition: transform 0.22s ease; }
.recipe-card.open .recipe-more svg { transform: rotate(180deg); }

/* An open card puts the photo beside the heading instead of above it. */
.recipe-card.open .recipe-head {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0 26px;
  align-items: center;
  padding-bottom: 6px;
}
.recipe-card.open .recipe-thumb { margin: 18px 0 18px 18px; aspect-ratio: 16 / 11; }
.recipe-card.open .recipe-head-body { padding-right: 26px; }
.recipe-card.open .recipe-title { font-size: 1.6rem; }
.recipe-card.open .recipe-blurb { font-size: 0.98rem; max-width: 60ch; }

/* --- Expanded body --- */
.recipe-body { border-top: 1px solid var(--color-border); }
.recipe-body-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0 26px;
  padding: 26px 26px 30px 18px;
}

.ri-head {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin: 0 0 11px;
}
.recipe-ingredients .ri-head + .ri-list { margin-bottom: 16px; }
.recipe-ingredients .ri-head ~ .ri-head { margin-top: 24px; }

.ri-list { font-size: 0.92rem; }
.ri-list li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--color-border);
  color: var(--color-ink);
}
.ri-list li:last-child { border-bottom: 0; }
.ri-counter .ri-name { display: block; font-weight: 700; color: var(--color-heading); }
.ri-counter .ri-note { display: block; font-size: 0.84rem; color: var(--color-ink-soft); }

.recipe-ingredients .btn { margin-top: 4px; }
.recipe-ingredients .btn.added { background: var(--color-success); }
.ri-fineprint {
  margin: 9px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-ink-soft);
}

.method-list {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.method-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 16px 42px;
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 68ch;
}
.method-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
}
/* Hairline connecting the steps, like a numbered list on a counter card. */
.method-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 6px;
  width: 1px;
  background: var(--color-border);
}

.recipe-tip {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  border-left: 3px solid var(--color-accent);
}
.recipe-tip + .recipe-tip { margin-top: 10px; }
.recipe-tip-counter { background: #f3ece0; }
.recipe-tip .tip-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 4px;
}
.recipe-tip p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--color-ink); }

/* --- Homepage teaser --- */
/* Three across on desktop. On a phone these become a swipeable strip rather
   than three 95px cards — a full-width card is readable, a third of a phone
   screen is not. */
.recipe-teaser-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 760px) {
  .recipe-teaser-grid {
    grid-template-columns: repeat(3, 78vw);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Bleed to the screen edges so the next card peeks in and invites a swipe. */
    margin-inline: -24px;
    padding: 4px 24px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .recipe-teaser-grid::-webkit-scrollbar { display: none; }
  .recipe-teaser-grid > * { scroll-snap-align: center; }
}

.recipe-teaser-card .recipe-teaser-thumb {
  aspect-ratio: 4 / 3;
  margin: 18px 18px 0;
  overflow: hidden;
  border-radius: 120px 120px var(--radius-sm) var(--radius-sm);
  background: var(--color-primary-light);
  box-shadow: inset 0 0 0 1px rgba(33, 46, 46, 0.06);
}
.recipe-teaser-card .recipe-teaser-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.recipe-teaser-card:hover .recipe-teaser-thumb img { transform: scale(1.06); }
.recipe-teaser-card .card-body { padding: 14px 18px 20px; }
.recipe-teaser-card .recipe-meta { margin-bottom: 7px; }
.recipe-teaser-card h3 { font-size: 1.02rem; line-height: 1.2; margin-bottom: 5px; }

@media (max-width: 980px) {
  .recipe-list { grid-template-columns: repeat(2, 1fr); }
  .recipe-card.open .recipe-head { grid-template-columns: 240px 1fr; }
  .recipe-body-inner { grid-template-columns: 240px 1fr; }
}
@media (max-width: 760px) {
  .recipe-list { grid-template-columns: 1fr; gap: 18px; }
  .recipe-card.open .recipe-head {
    display: block;
    padding-bottom: 14px;
  }
  .recipe-card.open .recipe-thumb { margin: 18px 18px 16px; aspect-ratio: 4 / 3; }
  .recipe-card.open .recipe-head-body { padding: 0 18px; }
  .recipe-card.open .recipe-title { font-size: 1.35rem; }
  .recipe-body-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 22px 18px 26px;
  }
  .method-list li { font-size: 0.94rem; }
}

/* Touch sizing for the size chooser, keyed to viewport as well as pointer type
   — some mobile browsers don't report `pointer: coarse` reliably. */
@media (max-width: 760px) {
  .opt-chip span { min-height: 44px; display: inline-flex; align-items: center; }
  .opts-close { width: 44px; height: 44px; }
  .cart-btn { min-height: 44px; }
  .nav-toggle { min-height: 44px; min-width: 44px; }
  .rf-btn { min-height: 44px; }
}

/* ============================================
   Accessibility pass (ui-ux-pro-max review)
   ============================================ */

/* Visible keyboard focus ring on every interactive control (never remove
   focus without a replacement). Only shows for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.fulfillment-option:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* Round controls get a matching round focus ring. */
.cart-btn:focus-visible,
.add-btn:focus-visible,
.qty-stepper button:focus-visible,
.gal-dot:focus-visible,
.gal-nav:focus-visible {
  outline-offset: 3px;
  border-radius: 999px;
}

/* Touch targets: on touch/coarse pointers, guarantee a ≥44px hit area for
   small controls (WCAG / platform minimum). Desktop keeps the compact look. */
@media (pointer: coarse) {
  .add-btn { min-height: 44px; padding-inline: 18px; }
  .qty-stepper { padding: 4px; }
  .qty-stepper button { width: 40px; height: 40px; }
  .drawer-close { width: 44px; height: 44px; margin: -8px; }
  .cart-line-remove { min-height: 24px; padding: 4px 0; }
  .gal-nav { width: 40px; height: 40px; }
  .gal-dot { width: 10px; height: 10px; position: relative; }
  /* Expand the dot's tappable area without enlarging the visual dot. */
  .gal-dot::after { content: ""; position: absolute; inset: -12px; }
  .group-btn { min-height: 44px; }
  .jump-link { min-height: 40px; }
  .rf-btn { min-height: 44px; }
  /* The size chooser is now on nearly every item — its chips and close
     button are among the most-tapped controls in the shop. */
  /* The label is inline; the visible pill is the span, so size that. */
  .opt-chip span { min-height: 44px; display: inline-flex; align-items: center; }
  .opts-close { width: 44px; height: 44px; }
  /* Header controls are the most-tapped things on the site. */
  .cart-btn { min-height: 44px; }
  .nav-toggle { min-height: 44px; min-width: 44px; }
  .main-nav a { min-height: 44px; display: flex; align-items: center; }
}

/* ============================================
   Legal pages (privacy.html, terms.html)
   Long-form prose. Narrow measure, generous
   leading — these are read, not scanned.
   ============================================ */
.legal-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 54px 0 44px;
}
.legal-hero h1 { color: var(--color-white); margin-bottom: 10px; }
.legal-hero .eyebrow { color: var(--color-oak); }
.legal-hero .eyebrow::before { background: var(--color-oak); }
.legal-updated {
  font-size: 0.9rem;
  color: var(--color-primary-light);
  margin: 0;
}

.legal-body { padding: 44px 0 72px; }
.legal-body .container { max-width: 74ch; }

/* Table of contents */
.legal-toc {
  background: var(--color-shell);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.legal-toc h2 {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin: 0 0 12px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.25em;
  columns: 2;
  column-gap: 32px;
}
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }
.legal-toc a { color: var(--color-heading); text-decoration: none; font-size: 0.94rem; }
.legal-toc a:hover { text-decoration: underline; }

.legal-body h2 {
  font-size: 1.22rem;
  margin: 40px 0 12px;
  padding-top: 8px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
  color: var(--color-ink);
}
.legal-body p { margin-bottom: 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 1.3em; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--color-accent-dark); }

/* Callout for the things that genuinely matter — allergens, consumer
   guarantees, the fact that no payment is taken online. */
.legal-note {
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.95rem;
}
.legal-note strong { color: var(--color-primary-dark); }
.legal-note :last-child { margin-bottom: 0; }

.legal-contact {
  border-top: 1px solid var(--color-border);
  margin-top: 44px;
  padding-top: 24px;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal-hero { padding: 38px 0 32px; }
}

/* ============================================
   404 page
   ============================================ */
.notfound {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.notfound .nf-mark { width: 78px; height: auto; opacity: 0.75; margin-bottom: 22px; }
.notfound h1 { margin-bottom: 10px; }
.notfound p { color: var(--color-ink-soft); max-width: 44ch; margin-bottom: 26px; }
.notfound .hero-actions { justify-content: center; }

/* ============================================
   Checkout / contact form failure notice
   Shown when an order could not be sent. Must
   read as a problem, not as a confirmation.
   ============================================ */
.checkout-error {
  background: #fdf0ee;
  border: 1px solid rgba(192, 57, 43, 0.35);
  border-left: 3px solid var(--color-error);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 16px 0 4px;
  font-size: 0.93rem;
}
.checkout-error strong { color: var(--color-error); display: block; margin-bottom: 6px; }
.checkout-error p { margin: 0 0 10px; color: var(--color-ink); }
.checkout-error .btn { margin-top: 4px; }

/* GST / pricing disclosure under the order header. */
.price-legal {
  font-size: 0.86rem;
  color: var(--color-ink-soft);
  margin-top: 10px;
  max-width: 68ch;
}
.price-legal a { color: var(--color-accent-dark); }

/* Allergen line — deliberately not styled as a warning banner, but it must
   be findable. Sits above the checkout submit and in the order header. */
.allergen-note {
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.86rem;
  color: var(--color-primary-dark);
  margin-top: 14px;
}
.allergen-note a { color: var(--color-accent-dark); font-weight: 600; }

/* Visually hidden, still read by screen readers. For labels on controls
   that are visually self-evident but have no accessible name otherwise. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Checkout — Terms & Conditions card
   ============================================ */
.terms-summary {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  line-height: 1.55;
}
.terms-summary li {
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.terms-summary li:last-child { border-bottom: 0; }
/* Small brass tick, matching the counter reveal lines. */
.terms-summary li::before {
  content: "";
  position: absolute;
  left: 2px; top: 15px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}
.terms-summary strong { color: var(--color-ink); }
.terms-summary a { color: var(--color-accent-dark); font-weight: 600; }

.terms-full-link {
  font-size: 0.85rem;
  margin: 0 0 16px;
  color: var(--color-ink-soft);
}
.terms-full-link a { color: var(--color-accent-dark); }

.terms-agree {
  background: var(--color-shell);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-ink);
  font-weight: 400;
}
.terms-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
/* The shared .form-field rule hides .field-error until .invalid is set. */
.terms-agree.invalid {
  border-color: var(--color-error);
  background: #fdf0ee;
}
@media (pointer: coarse) {
  .terms-check input[type="checkbox"] { width: 24px; height: 24px; }
}

/* ============================================
   "At the counter" — hover-expanding options
   (homepage, below About)

   Collapsed: number, icon, title. Hover/focus
   opens the detail. The detail is never
   display:none — it is clipped with grid-rows,
   so it stays in the accessibility tree and in
   the page source for search engines.
   ============================================ */
.counter-options .opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 32px;
  /* Without this, a row's cards all stretch to match whichever one is open,
     leaving the others with a large empty area. Each card keeps its own
     height instead, so only the hovered one grows. */
  align-items: start;
}

.opt-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: transform var(--hover-speed) var(--anim-ease),
              box-shadow var(--hover-speed) var(--anim-ease),
              border-color var(--hover-speed) var(--anim-ease);
}

/* Brass reveal line that wipes across the top edge on hover — the same
   detail as the counter's trim. */
.opt-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--anim-ease);
}

.opt-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--color-accent-dark);
  opacity: 0.65;
}

.opt-icon {
  width: 38px;
  height: 38px;
  margin: 14px 0 12px;
  color: var(--color-primary);
  transition: color var(--hover-speed) var(--anim-ease),
              transform 0.4s var(--anim-ease);
}
.opt-icon svg { width: 100%; height: 100%; }

.opt-card h3 {
  font-size: 1.06rem;
  margin: 0;
  color: var(--color-heading);
}

/* The collapsing mechanism: an inner grid row animated from 0fr to 1fr.
   Unlike max-height this needs no magic number, so the text can be any
   length without being clipped or leaving a gap. */
.opt-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.42s var(--anim-ease),
              opacity 0.3s var(--anim-ease),
              margin-top 0.42s var(--anim-ease);
  margin-top: 0;
}
/* Exactly one child, so there is a single row to animate. Two children would
   leave the second row auto-sized and the card would never fully collapse. */
.opt-detail > .opt-detail-inner {
  overflow: hidden;
  min-height: 0;
}
.opt-detail p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
  min-height: 0;
}
.opt-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  min-height: 0;
}
.opt-cta span { transition: transform 0.3s var(--anim-ease); display: inline-block; }

/* ---- Open state: hover, or keyboard focus anywhere inside ---- */
.opt-card:hover,
.opt-card:focus-visible,
.opt-card:focus-within {
  transform: translateY(var(--hover-lift));
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.opt-card:hover::before,
.opt-card:focus-visible::before,
.opt-card:focus-within::before { transform: scaleX(1); }

.opt-card:hover .opt-icon,
.opt-card:focus-visible .opt-icon,
.opt-card:focus-within .opt-icon {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.opt-card:hover .opt-detail,
.opt-card:focus-visible .opt-detail,
.opt-card:focus-within .opt-detail {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 12px;
}

.opt-card:hover .opt-cta span,
.opt-card:focus-visible .opt-cta span,
.opt-card:focus-within .opt-cta span { transform: translateX(4px); }

/* ---- Touch: there is no hover, so never hide the content ---- */
@media (pointer: coarse) {
  .opt-detail {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 12px;
  }
  .opt-card::before { transform: scaleX(1); }
}

/* ---- Reduced motion: open instantly, no travel ---- */
@media (prefers-reduced-motion: reduce) {
  .opt-card,
  .opt-detail,
  .opt-icon,
  .opt-card::before,
  .opt-cta span { transition: none; }
  .opt-card:hover,
  .opt-card:focus-within { transform: none; }
}

/* ============================================
   Specials strip (admin-controlled)
   ============================================ */
.offer-banner {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.92rem;
  padding: 10px 0;
}
.offer-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}
.offer-text { font-weight: 600; }
.offer-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  white-space: nowrap;
}
.offer-link:hover { opacity: 0.85; }
