/* ==========================================================================
   Smoke Shop AUS - site stylesheet
   Design tokens and components lifted from the approved standalone design.
   Mobile first. Verified at 360px. Tap targets 44px minimum.
   ========================================================================== */

/* --- Fonts: self hosted Archivo variable (wght 100-900), two subsets ------ */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/archivo-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: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/archivo-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --green: #1E3A2B;
  --gold: #C9A227;
  --green-line: #2C4C3A;
  --green-text: #DCE7D8;
  --green-muted: #A8BCA9;
  --green-muted-2: #8FA592;

  --white: #FFFFFF;
  --ink: #0B0B0B;
  --body: #2B2B2B;
  --muted: #6B6862;
  --ph-text: #8C8C86;
  --ph-input: #97928A;

  --bg-alt: #F3F3F1;
  --ph-bg: #EFEFEC;
  --ph-bg-2: #E1E1DC;
  --ph-bg-3: #E9E9E5;

  --line: #E3E3DF;
  --line-2: #E6E6E2;
  --line-input: #D2D2CC;
  --line-light: #C7C7C1;

  --maxw: 1360px;
  --gutter: 16px;
  --r: 3px;
  --r-card: 4px;
  --tap: 44px;
}
@media (min-width: 640px) {
  :root { --gutter: 28px; }
}

/* --- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Archivo, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; border-bottom: 1px solid var(--gold); }
.product-internal-links { margin: 0 0 26px; padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.product-internal-links strong { display: block; margin-bottom: 12px; }
.product-internal-links div { display: flex; flex-wrap: wrap; gap: 10px; }
.product-internal-links a { padding: 9px 12px; border: 1px solid var(--green); border-radius: 3px; background: #fff; font-weight: 700; }
.product-internal-links a:hover { background: var(--green); color: #fff; }
a:hover { color: #000; border-color: var(--green); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
input::placeholder, textarea::placeholder { color: var(--ph-input); }
::selection { background: var(--green); color: var(--white); }

h1, h2, h3, h4 { margin: 0; text-wrap: pretty; }
p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--green); padding: 12px 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border: 0;
}
.skip-link:focus { left: 0; }

@keyframes ssaSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* --- Layout --------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); width: 100%; }
.page { min-height: 100vh; background: var(--white); display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.section { border-bottom: 1px solid var(--line); }
.section-top { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--green); color: var(--green-text); }
.pad-lg { padding-top: 56px; padding-bottom: 56px; }
.pad-md { padding-top: 40px; padding-bottom: 40px; }

/* --- Header --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; }
.topbar {
  background: var(--green);
  color: var(--green-text);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Smoke drifting behind the header.
 *
 * Four soft radial gradients on one pseudo element, drifting on a long loop.
 * Gradients rather than an image keeps it weightless and keeps the header out
 * of the critical path, and one element rather than four keeps it to a single
 * composited layer.
 *
 * Kept at low opacity on purpose: the nav sits on top of it and the text has
 * to stay legible, so this reads as a haze rather than as a graphic.
 */
.topbar::before {
  content: "";
  position: absolute;
  inset: -60% -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 12% 58%, rgba(255, 255, 255, 0.10), transparent 70%),
    radial-gradient(30% 40% at 38% 32%, rgba(255, 255, 255, 0.07), transparent 72%),
    radial-gradient(34% 44% at 66% 62%, rgba(201, 162, 39, 0.09), transparent 70%),
    radial-gradient(26% 36% at 88% 38%, rgba(255, 255, 255, 0.06), transparent 74%);
  filter: blur(14px);
  will-change: transform;
  animation: ssaSmoke 48s ease-in-out infinite alternate;
}

@keyframes ssaSmoke {
  0%   { transform: translate3d(-3%, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.12); }
  100% { transform: translate3d(5%, 1%, 0) scale(1.04); }
}

/* Motion is decoration here, so it goes; the haze itself stays. */
@media (prefers-reduced-motion: reduce) {
  .topbar::before { animation: none; }
}

.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  position: relative;
}
.brand {
  background: none; border: 0; padding: 0; text-align: left;
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--white);
  min-height: var(--tap); display: flex; align-items: center;
}
a.brand { border-bottom: 0; }
a.brand:hover { color: var(--gold); }
.main-nav { display: none; }
@media (min-width: 880px) { .main-nav { display: flex; gap: 4px 20px; font-size: 13px; flex-wrap: wrap; } }
.main-nav a {
  padding: 10px 0; font-size: 13px; color: var(--green-text);
  border-bottom: 1px solid transparent; min-height: var(--tap);
  display: inline-flex; align-items: center;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); border-color: var(--gold); }
.main-nav .nav-cta {
  background: var(--gold); color: var(--green); font-weight: 700;
  padding: 6px 14px; border-radius: 999px; border-color: transparent;
}
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current="page"] {
  background: var(--green); color: #fff; border-color: transparent;
}
.menu-cta {
  display: flex; align-items: center; justify-content: center;
  margin: 14px 18px 4px; min-height: var(--tap); padding: 12px 16px;
  background: var(--gold); color: var(--green); font-weight: 700; font-size: 15px;
  border-radius: var(--r); border-bottom: 0;
}
.menu-cta:hover { background: var(--green); color: #fff; }
.cart-link {
  margin-left: auto; background: var(--gold); color: var(--green); border: 0;
  padding: 10px 16px; border-radius: var(--r);
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap);
}
a.cart-link { border-bottom: 0; }
.cart-link:hover { background: var(--white); color: var(--green); }
.cart-count {
  background: var(--green); color: var(--white); min-width: 18px; height: 18px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; padding: 0 5px;
}
.cart-link:hover .cart-count { background: var(--green); color: var(--white); }

@media (min-width: 880px) {
  .topbar-inner { gap: 28px; padding: 15px var(--gutter); }
  .main-nav { order: 0; width: auto; margin-left: auto; }
  .cart-link { margin-left: 0; }
}

/* Notification bar, above the header rather than inside it.
 *
 * It sat under the topbar and inside the sticky header, so it held a strip of
 * the viewport on every scroll while saying the same two things. Above the
 * header it scrolls away once read and the header alone stays pinned.
 *
 * Gold on green rather than the old grey: a discount nobody notices is not
 * worth the space it occupies. */
.announce {
  background: var(--gold); color: var(--green);
  padding: 10px var(--gutter);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  list-style: none; margin: 0;
  text-align: center;
}
.announce li { position: relative; }
.announce li + li::before {
  content: ""; position: absolute; left: -9px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 11px; background: rgba(30, 58, 43, 0.35);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 14px 28px; border-radius: var(--r);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border: 0; text-align: center;
}
a.btn { border-bottom: 0; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--gold); color: var(--green); }
.btn-gold { background: var(--gold); color: var(--green); font-weight: 700; letter-spacing: 0.12em; }
.btn-gold:hover { background: var(--green); color: var(--white); }
.btn-ghost { background: none; color: var(--green); border: 1px solid var(--line-light); }
.btn-ghost:hover { border-color: var(--green); background: var(--bg-alt); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 11px; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line-2); color: var(--ph-input); cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.link-btn {
  background: none; border: 0; padding: 0;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); border-bottom: 1px solid var(--gold);
}
a.link-btn { display: inline-block; }
.link-btn:hover { color: #000; }

/* --- Typography blocks ---------------------------------------------------- */
.eyebrow { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); }
.eyebrow-gold { color: var(--gold); }
.h1 { font-size: clamp(34px, 5.2vw, 62px); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; color: var(--green); }
.h2 { font-size: clamp(26px, 3.6vw, 46px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--green); }
.h2-sm { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.03em; color: var(--green); }
.h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; color: var(--green); }
.lede { font-size: 16px; line-height: 1.65; color: var(--body); }
.lede-lg { font-size: 18px; line-height: 1.6; color: var(--ink); }
.tagline { font-size: 19px; font-weight: 500; color: var(--green); }

/* Hero smoke.
 *
 * The hero sits on white, so the header's white haze would be invisible here.
 * These are tinted in the brand green and gold instead, larger and slower
 * than the header's, with two layers drifting in opposite directions so the
 * shapes pull apart rather than sliding as one block.
 *
 * Everything sits behind the text on a negative z-index, the container clips
 * it, and the copy keeps its own stacking context, so contrast is untouched.
 */
.hero {
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}

.hero::before {
  inset: -40% -25% auto -25%;
  height: 150%;
  background:
    radial-gradient(42% 48% at 22% 42%, rgba(30, 58, 43, 0.10), transparent 70%),
    radial-gradient(34% 40% at 58% 30%, rgba(201, 162, 39, 0.10), transparent 72%),
    radial-gradient(30% 38% at 84% 55%, rgba(30, 58, 43, 0.07), transparent 74%);
  filter: blur(26px);
  animation: ssaHeroSmokeA 64s ease-in-out infinite alternate;
}

.hero::after {
  inset: auto -20% -50% -20%;
  height: 120%;
  background:
    radial-gradient(38% 44% at 32% 60%, rgba(30, 58, 43, 0.07), transparent 72%),
    radial-gradient(30% 36% at 72% 45%, rgba(201, 162, 39, 0.07), transparent 74%);
  filter: blur(32px);
  animation: ssaHeroSmokeB 82s ease-in-out infinite alternate;
}

@keyframes ssaHeroSmokeA {
  0%   { transform: translate3d(-4%, 2%, 0) scale(1); }
  50%  { transform: translate3d(3%, -3%, 0) scale(1.14); }
  100% { transform: translate3d(6%, 0, 0) scale(1.06); }
}

@keyframes ssaHeroSmokeB {
  0%   { transform: translate3d(5%, -2%, 0) scale(1.08); }
  50%  { transform: translate3d(-3%, 3%, 0) scale(1); }
  100% { transform: translate3d(-6%, -1%, 0) scale(1.12); }
}

/* The drift is decoration; the haze itself carries the look, so it stays. */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after { animation: none; }
}
.hero .eyebrow { margin-bottom: 18px; }
.hero .h1 { margin-bottom: 14px; }
.hero .tagline { margin-bottom: 18px; }
.hero .lede { max-width: 44ch; margin-bottom: 28px; }
@media (min-width: 640px) { .hero { padding: 76px 0 68px; } }

.prose { display: flex; flex-direction: column; gap: 15px; font-size: 15px; line-height: 1.7; color: var(--body); }
.prose-lg { font-size: 16px; }
.prose h2, .prose h3 { margin-top: 10px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
}

/* --- Category tiles ------------------------------------------------------- */
/* Two across on a phone, four across from tablet up. A fixed column count
   rather than auto-fit, so eight tiles land as a clean 4 x 2 block instead of
   reflowing to whatever the viewport width happens to allow. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 880px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.tile {
  background: var(--bg-alt); border: 0; border-radius: var(--r-card); overflow: hidden;
  padding: 0; text-align: left; display: flex; flex-direction: column;
}
a.tile { border-bottom: 0; color: inherit; }
.tile:hover { background: var(--ph-bg-3); }
.tile-media {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; width: 100%; aspect-ratio: 4 / 3; background: var(--ph-bg-2); padding: 20px;
}
.tile-body { display: flex; flex-direction: column; gap: 9px; padding: 20px 22px 24px; }
.tile-count { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); }
.tile-name { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--green); }
.tile-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tile-cta {
  margin-top: 6px; display: inline-flex; align-self: flex-start; align-items: center;
  background: var(--green); color: var(--white); padding: 10px 16px; border-radius: var(--r);
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  min-height: var(--tap);
}

/* --- Placeholder media ---------------------------------------------------- */
.ph {
  background: var(--ph-bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center;
}
.ph-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ph-text); }
.ph-text { font-size: 14px; color: var(--muted); line-height: 1.4; max-width: 22ch; }

/* --- Product cards -------------------------------------------------------- */
/* Two across on phones, matching the tile grid.
 *
 * auto-fill with a 240px minimum fell to a single column below about 500px,
 * so one product filled the whole screen and a range of thirty five was an
 * enormous scroll. Two up is the shape people expect from a shop on a phone,
 * and the card holds together down to roughly 150px wide. */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
}
.card {
  background: var(--white); border: 1px solid var(--green); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column;
}
.card:hover { border-color: #000; }
.card-link {
  background: none; border: 0; padding: 0; text-align: left;
  display: flex; flex-direction: column; flex: 1; color: inherit;
}
a.card-link { border-bottom: 0; }
.card-media { aspect-ratio: 1; position: relative; }
.badge-new {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--green);
  font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 2px;
}
.card-body { padding: 15px 16px 10px; display: flex; flex-direction: column; gap: 5px; }
.card-maker { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.card-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.card-price { font-size: 15px; font-weight: 700; color: var(--green); }
.card-add {
  margin: 0 16px 16px; background: var(--green); border: 1px solid var(--green);
  padding: 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); border-radius: var(--r); min-height: var(--tap);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.card-add:hover { background: var(--gold); color: var(--green); border-color: #000; }
.card-add[data-added="1"] { background: var(--gold); color: var(--green); }

/* --- Breadcrumbs ---------------------------------------------------------- */
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { font-size: 12px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }

/* --- Filters and sort ----------------------------------------------------- */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.chip {
  background: transparent; color: var(--body); border: 1px solid var(--line-input);
  padding: 9px 15px; border-radius: var(--r); font-size: 12px; min-height: var(--tap);
  display: inline-flex; align-items: center;
}
a.chip { border-bottom: 1px solid var(--line-input); }
.chip:hover { border-color: var(--green); }
.chip[aria-current="true"] { background: var(--green); color: var(--white); border-color: var(--green); }
/* Filter bar as a disclosure on phones.
 *
 * The bar can hold twenty chips, which at phone width is several screens of
 * links above the products. <details> collapses it to one control with no
 * JavaScript, and the summary carries the current selection so the bar still
 * says where you are while closed. From 880px the summary is dropped and the
 * chips lay out exactly as before. */
.filter-dd { flex: 1 1 100%; min-width: 0; }

.filter-dd > summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: var(--tap); padding: 10px 14px;
  border: 1px solid var(--line-input); border-radius: var(--r);
  font-size: 13px; font-weight: 600; color: var(--green);
  cursor: pointer;
}
.filter-dd > summary::-webkit-details-marker { display: none; }
.filter-dd > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.filter-dd[open] > summary { border-color: var(--green); margin-bottom: 12px; }
.filter-dd[open] > summary svg { transform: rotate(180deg); }
.filter-dd > summary svg { transition: transform 160ms ease; flex: none; }

.filter-dd .chip-list { display: flex; gap: 10px; flex-wrap: wrap; }

@media (min-width: 880px) {
  .filter-dd { flex: 1 1 auto; }
  .filter-dd > summary { display: none; }
  /* Beats the user agent rule that hides a closed details' contents. */
  .filter-dd:not([open]) .chip-list,
  .filter-dd .chip-list { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .filter-dd > summary svg { transition: none; }
}

.filter-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.count { font-size: 12px; color: var(--muted); }
.sort-select {
  background: var(--white); border: 1px solid var(--line-input); padding: 9px 12px;
  font-size: 12px; color: var(--ink); border-radius: var(--r); min-height: var(--tap);
}

/* --- Tables --------------------------------------------------------------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-card); overflow-x: auto; background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
table.data caption { text-align: left; font-size: 13px; color: var(--muted); padding: 0 0 10px; caption-side: top; }
table.data th {
  background: var(--green); color: var(--green-muted-2); text-align: left;
  font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 16px; white-space: nowrap;
}
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); color: var(--body); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 600; color: var(--ink); }
.table-note { font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 14px; }

/* --- Trust / info grids --------------------------------------------------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px; }
.info-grid h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; color: var(--green); margin-bottom: 10px; }
.info-grid p { font-size: 14px; line-height: 1.6; color: var(--body); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px; align-items: start; }
.split-wide { gap: 52px; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 44px; }
.guide-grid h3 { margin-bottom: 12px; }
.guide-grid p { font-size: 15px; line-height: 1.7; color: var(--body); }

/* --- Makers --------------------------------------------------------------- */
.maker-row {
  padding: 18px 0; border-bottom: 1px solid var(--green-line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
}
.maker-name { font-size: 16px; font-weight: 600; color: var(--white); }
.maker-craft { font-size: 13px; color: var(--green-muted-2); margin-top: 4px; }
.maker-place { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--gold); }

.maker-card { border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 24px; background: var(--white); }
.maker-card h3 { font-size: 19px; margin-bottom: 4px; }
.maker-card .craft { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.maker-card p { font-size: 14px; line-height: 1.65; color: var(--body); }

/* --- FAQ ------------------------------------------------------------------ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 30px 52px; }
.faq-item { border-top: 1px solid var(--line-2); padding-top: 18px; }
.faq-item h3 { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ink); margin-bottom: 10px; letter-spacing: 0; }
.faq-item p { font-size: 14px; line-height: 1.7; color: var(--body); }
.section-dark .faq-item { border-color: var(--green-line); }
.section-dark .faq-item h3 { color: var(--white); }
.section-dark .faq-item p { color: var(--green-muted); }
.section-dark .h2, .section-dark .h3 { color: var(--white); }
.section-dark .lede, .section-dark p { color: var(--green-muted); }
.section-dark a { color: var(--gold); border-color: var(--green-line); }
.section-dark a:hover { color: var(--white); border-color: var(--gold); }

/* --- Product detail ------------------------------------------------------- */
.product-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main { aspect-ratio: 1; border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 32px; }
.gallery-main .ph-text { font-size: 18px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
.thumb {
  aspect-ratio: 1; background: var(--ph-bg); border: 1px solid var(--line-2); border-radius: var(--r-card);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ph-text);
}
.product-meta { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.product-title { font-size: clamp(28px, 3.8vw, 46px); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; color: var(--green); margin-bottom: 14px; }
.product-price { font-size: 25px; font-weight: 700; color: var(--ink); }
.product-price-note { font-size: 12px; color: var(--muted); margin: 6px 0 26px; }
.product-blurb { font-size: 16px; line-height: 1.7; color: var(--body); margin-bottom: 28px; }
.field-label { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 11px; }
.variant-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 26px; }
.variant {
  background: var(--white); color: var(--body); border: 1px solid var(--line-input);
  padding: 10px 16px; font-size: 13px; border-radius: var(--r); min-height: var(--tap);
  cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.variant strong { font-size: 12px; color: var(--green); }
.variant[aria-pressed="true"] strong { color: inherit; }
.variant:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.variant[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-input); border-radius: var(--r); background: var(--white); }
.qty button {
  background: none; border: 0; padding: 0; width: var(--tap); min-height: var(--tap);
  font-size: 16px; color: var(--green); display: flex; align-items: center; justify-content: center;
}
.qty button:hover { background: var(--bg-alt); }
.qty output { min-width: 30px; text-align: center; font-size: 15px; font-weight: 600; }
.buy-row .btn { flex: 1; min-width: 200px; }
.stock-note { font-size: 12px; color: var(--muted); margin-bottom: 32px; }

table.specs { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
table.specs caption { text-align: left; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
table.specs th {
  text-align: left; width: 130px; padding: 13px 20px 13px 0; border-bottom: 1px solid var(--line-2);
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  vertical-align: top;
}
table.specs td { padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--ink); line-height: 1.5; }

/* --- Checkout ------------------------------------------------------------- */
.steps {
  display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px; list-style: none; padding: 0;
}
.steps a { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.steps [aria-current="step"] { color: var(--green); border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 960px) { .checkout-layout { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 44px; } }
.checkout-main { display: flex; flex-direction: column; gap: 32px; }
.panel { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 22px; }
@media (min-width: 640px) { .panel { padding: 26px; } }
.panel-step { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.panel-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--green); margin-bottom: 18px; }
.fields { display: grid; gap: 14px; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields-3 { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,0.8fr); gap: 14px; }
@media (max-width: 520px) { .fields-2, .fields-3 { grid-template-columns: 1fr; } }
.input, select.input {
  background: var(--white); border: 1px solid var(--line-input); border-radius: var(--r);
  padding: 13px 14px; color: var(--ink); width: 100%; min-height: var(--tap);
}
.input:invalid:not(:placeholder-shown) { border-color: #A2342C; }
.field-note { font-size: 12px; color: var(--muted); line-height: 1.6; }

.option {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  text-align: left; background: var(--white); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 15px 16px; width: 100%; min-height: var(--tap);
}
.option[aria-pressed="true"] { background: var(--bg-alt); border-color: var(--green); }
.option-dot { width: 15px; height: 15px; border-radius: 999px; border: 1px solid var(--line-input); background: transparent; display: inline-block; }
.option[aria-pressed="true"] .option-dot { border-color: var(--green); background: var(--green); }
.option-name { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.option-note { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.option-price { font-size: 14px; font-weight: 700; color: var(--green); }
.option-list { display: grid; gap: 10px; }

.pay-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.pay {
  background: var(--white); color: var(--body); border: 1px solid var(--line-input);
  padding: 12px 18px; font-size: 13px; font-weight: 500; border-radius: var(--r); min-height: var(--tap);
}
.pay[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }
.pay-note { background: var(--bg-alt); border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px; font-size: 13px; color: var(--body); line-height: 1.6; }

.ack { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 13px; align-items: start; cursor: pointer; }
.ack input { position: absolute; opacity: 0; width: 0; height: 0; }
.ack-box { width: 18px; height: 18px; border-radius: 3px; border: 1px solid var(--line-input); background: var(--white); margin-top: 2px; }
.ack input:checked + .ack-box { background: var(--green); border-color: var(--green); }
.ack input:focus-visible + .ack-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.ack-text { font-size: 14px; color: var(--ink); line-height: 1.55; }

.summary { background: var(--green); color: var(--green-text); padding: 24px; border-radius: var(--r-card); }
@media (min-width: 960px) { .summary { padding: 28px; position: sticky; top: 130px; } }
.summary h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--white); margin-bottom: 20px; }
.summary-lines { display: flex; flex-direction: column; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--green-line); list-style: none; margin: 0; }
.summary-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.summary-thumb { aspect-ratio: 1; background: var(--green-line); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-muted-2); }
.summary-name { font-size: 13px; font-weight: 600; color: var(--white); line-height: 1.3; }
.summary-variant { font-size: 11px; color: var(--green-muted-2); margin-top: 2px; }
.summary-total { font-size: 13px; font-weight: 600; white-space: nowrap; }
.totals { display: flex; flex-direction: column; gap: 12px; font-size: 14px; padding: 18px 0; border-bottom: 1px solid var(--green-line); }
.totals-row { display: flex; justify-content: space-between; gap: 16px; }
.totals-row dt { color: var(--green-muted-2); }
.totals-row dd { margin: 0; }
.grand { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 4px; font-size: 21px; font-weight: 700; color: var(--white); }
.summary-fine { font-size: 11px; color: var(--green-muted-2); }

/* --- Cart drawer ---------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(20, 38, 28, 0.5); border: 0; padding: 0; cursor: default; }
.drawer-panel {
  position: relative; width: 430px; max-width: 100%; background: var(--white);
  border-left: 1px solid var(--line); display: flex; flex-direction: column;
  box-shadow: -18px 0 50px rgba(20, 38, 28, 0.18);
  animation: ssaSlide 260ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@media (prefers-reduced-motion: reduce) { .drawer-panel { animation: none; } }
.drawer-head { background: var(--green); color: var(--green-text); padding: 20px 24px; display: flex; align-items: center; gap: 16px; }
.drawer-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--white); }
.drawer-sub { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-muted-2); margin-top: 4px; }
.drawer-close {
  margin-left: auto; background: none; border: 1px solid var(--green-line); color: var(--green-text);
  width: var(--tap); height: var(--tap); border-radius: var(--r); font-size: 16px; line-height: 1;
}
.drawer-close:hover { border-color: var(--gold); color: var(--gold); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 20px; }
.drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 48px 28px; text-align: center; }
.drawer-empty p { font-size: 16px; color: var(--body); line-height: 1.6; }
.drawer-lines { list-style: none; margin: 0; padding: 0; }
.drawer-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.drawer-thumb { aspect-ratio: 1; background: var(--ph-bg); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ph-text); }
.drawer-maker { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.drawer-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.drawer-variant { font-size: 12px; color: var(--muted); margin-top: 4px; }
.drawer-controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.drawer-line-total { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.remove { background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line-input); min-height: var(--tap); }
.remove:hover { color: var(--green); border-color: var(--green); }
.drawer-foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 20px 24px 24px; }
.drawer-totals { display: flex; flex-direction: column; gap: 9px; font-size: 14px; margin-bottom: 14px; }
.drawer-grand { display: flex; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 700; color: var(--green); border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 4px; }
.drawer-fine { font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.drawer-ship-note { font-size: 12px; color: var(--body); line-height: 1.6; margin-bottom: 16px; }

/* --- Age gate ------------------------------------------------------------- */
.gate { position: fixed; inset: 0; z-index: 90; background: rgba(20, 38, 28, 0.95); display: flex; align-items: center; justify-content: center; padding: 24px; }
.gate[hidden] { display: none; }
.gate-card { background: var(--white); max-width: 470px; width: 100%; padding: 32px 24px; border-radius: var(--r-card); text-align: center; }
@media (min-width: 640px) { .gate-card { padding: 42px 38px; } }
.gate-card h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; color: var(--green); margin-bottom: 24px; }
.gate-card p { font-size: 15px; line-height: 1.65; color: var(--body); margin-bottom: 28px; }
.gate-actions { display: flex; gap: 10px; flex-direction: column; }
.gate-note { font-size: 12px; color: var(--muted); margin-top: 20px; line-height: 1.6; }

/* --- Confirmation --------------------------------------------------------- */
.confirm-hero { background: var(--green); color: var(--green-text); border-radius: var(--r-card); padding: 32px 24px; margin-bottom: 28px; }
@media (min-width: 640px) { .confirm-hero { padding: 44px 36px; } }
.confirm-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; color: var(--white); margin-bottom: 16px; }
.confirm-hero > p { font-size: 16px; line-height: 1.65; color: var(--green-muted); margin-bottom: 26px; max-width: 52ch; }
.confirm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; border-top: 1px solid var(--green-line); padding-top: 24px; margin: 0; }
.confirm-facts dt { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-muted-2); margin-bottom: 6px; }
.confirm-facts dd { font-size: 16px; font-weight: 600; color: var(--white); margin: 0; }
.confirm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 32px; }
.confirm-card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 22px; }
.confirm-card h2 { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.confirm-card p { font-size: 14px; line-height: 1.6; color: var(--body); }
.order-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.order-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.order-thumb { aspect-ratio: 1; background: var(--ph-bg); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ph-text); }
.order-name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.order-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.order-total { font-size: 15px; font-weight: 700; color: var(--green); white-space: nowrap; }
.order-totals { display: flex; flex-direction: column; gap: 10px; font-size: 14px; padding-top: 16px; max-width: 320px; margin-left: auto; }
.order-totals .grand-row { display: flex; justify-content: space-between; gap: 20px; font-size: 18px; font-weight: 700; color: var(--green); border-top: 1px solid var(--line-2); padding-top: 12px; }

/* --- Contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list dt { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.6; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px; padding-top: 52px; padding-bottom: 30px; }
.footer-brand { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; color: var(--green); }
.footer-grid p { font-size: 13px; color: var(--body); line-height: 1.6; margin-top: 10px; }
.footer-about { max-width: 46ch; }
.footer-col h2 { font-size: 9px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-col a { font-size: 13px; color: var(--body); border-bottom: 0; display: inline-flex; align-items: center; min-height: 34px; }
.footer-col a:hover { color: var(--green); border-bottom: 1px solid var(--gold); }
.footer-legal { border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.7; padding-top: 18px; padding-bottom: 38px; }

/* --- 404 ------------------------------------------------------------------ */
.notfound { padding: 72px 0; text-align: center; }
.notfound .h1 { margin-bottom: 16px; }
.notfound p { max-width: 52ch; margin: 0 auto 28px; }

/* --- No JS ---------------------------------------------------------------- */
.nojs-note {
  background: var(--bg-alt); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 14px 16px; font-size: 13px; color: var(--body); line-height: 1.6; margin-bottom: 20px;
}

/* ===================================================================
   Home hero: centred
   =================================================================== */
.hero { text-align: center; }
.hero .lede { max-width: 52ch; margin-left: auto; margin-right: auto; }
.hero .btn-row { justify-content: center; }

/* ===================================================================
   Header actions and search
   =================================================================== */
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .cart-link { margin-left: 0; }

.icon-btn {
  background: none; border: 0; color: inherit; cursor: pointer;
  min-width: var(--tap); min-height: var(--tap);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r); padding: 0;
}
.icon-btn:hover { color: var(--gold); }

/* --- Mobile menu ---------------------------------------------------------- */
/* The brand bar wraps to nine links under the logo at phone width, which is
   most of the first screen. Below 880px it is replaced by one button. */
.menu-btn { display: inline-flex; margin-right: 4px; }
@media (min-width: 880px) { .menu-btn { display: none; } }

.menu-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(11, 11, 11, 0.5);
  display: flex; justify-content: flex-start;
}
.menu-overlay[hidden] { display: none; }
body.menu-open { overflow: hidden; }

.menu-panel {
  background: var(--white);
  width: min(86vw, 360px);
  height: 100%;
  display: flex; flex-direction: column;
  animation: ssaSlideLeft 200ms ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@keyframes ssaSlideLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .menu-panel { animation: none; } }

.menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--green); color: var(--green-text);
  position: sticky; top: 0; z-index: 1;
}
.menu-title { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.menu-head .icon-btn { color: var(--green-text); }

.menu-body { padding: 8px 0 32px; }
.menu-group { padding: 14px 18px 4px; }
.menu-group + .menu-group { border-top: 1px solid var(--line); }
.menu-group h3 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.menu-group ul { list-style: none; margin: 0; padding: 0; }
.menu-group a {
  display: flex; align-items: center; min-height: var(--tap);
  padding: 6px 0; font-size: 15px; color: var(--ink); border-bottom: 0;
}
.menu-group a:hover { color: var(--green); }
.menu-group a[aria-current="page"] { color: var(--green); font-weight: 600; }
.icon-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Search opens from the top on phones.
 *
 * It used to be a bottom sheet, which put the input where the on-screen
 * keyboard appears and where the bottom nav already sits, so the results had
 * almost nothing left to occupy. Anchored to the top it lands right under
 * the button that opened it, the keyboard pushes nothing around, and the
 * results get the rest of the screen. */
.search-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(11, 11, 11, 0.55);
  display: flex; justify-content: center;
  padding: 0;
  align-items: flex-start;
}
.search-overlay[hidden] { display: none; }
body.search-open { overflow: hidden; }

.search-panel {
  background: var(--white); width: 100%; max-width: 640px;
  border-radius: 0 0 12px 12px;
  /* dvh so the panel shrinks to the space the keyboard leaves, rather than
     extending under it the way vh does on iOS. */
  max-height: 88vh;
  max-height: 88dvh;
  display: flex; flex-direction: column; overflow: hidden;
}
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  color: var(--muted); flex: none;
}
.search-bar input {
  flex: 1; border: 0; outline: 0; background: none;
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  color: var(--ink); min-height: var(--tap); padding: 0;
}
.search-results { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.search-hint { padding: 22px 18px; color: var(--muted); font-size: 14px; margin: 0; }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li + li { border-top: 1px solid var(--line); }
.search-list a {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 16px; border-bottom: 0; min-height: var(--tap); justify-content: center;
}
.search-list a:hover, .search-list a:focus-visible { background: var(--bg-alt); }
.search-name { font-size: 15px; font-weight: 600; color: var(--green); line-height: 1.3; }
.search-meta { font-size: 12px; color: var(--muted); }

@media (min-width: 880px) {
  .search-overlay { align-items: flex-start; padding-top: 12vh; }
  .search-panel { border-radius: 10px; max-height: 70vh; }
}

/* ===================================================================
   Mobile bottom navigation
   =================================================================== */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--green); border-top: 1px solid var(--green-line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottomnav-item {
  background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 4px 7px; min-height: 56px;
  color: var(--green-muted); font: inherit; font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase; position: relative;
}
a.bottomnav-item { border-bottom: 0; }
.bottomnav-item:hover, .bottomnav-item.is-active { color: var(--gold); }
.bottomnav-item:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.bottomnav-count {
  position: absolute; top: 4px; left: 50%; margin-left: 4px;
  background: var(--gold); color: var(--green);
  min-width: 16px; height: 16px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; padding: 0 4px;
}

/* Bottom bar is phone-only; the header nav covers larger screens. */
@media (min-width: 880px) { .bottomnav { display: none; } }
@media (max-width: 879px) {
  .page { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .drawer-panel { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

/* ===================================================================
   Mobile refinements
   =================================================================== */
@media (max-width: 879px) {
  /* The brand nav scrolls sideways rather than stacking into a block that
     pushes the page content below the fold. */
  .main-nav {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; gap: 18px; padding-bottom: 2px;
    margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; flex: none; }

  .announce { font-size: 10px; gap: 12px; padding: 9px var(--gutter); }

  /* One tile per row reads better than two cramped ones on a phone. */

  /* Wide tables scroll inside their wrapper instead of stretching the page. */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 480px; }

  .filter-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
}

@media (max-width: 520px) {
  .tile-name { font-size: 15px; }
  .tile-body { padding: 12px 12px 14px; gap: 6px; }
  .tile-count { font-size: 8px; }
  .tile-cta { font-size: 10px; }
  .hero { padding: 40px 0 36px; }
}

/* No element may force a sideways scroll on a phone. */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* An element with a display rule of its own beats the user agent's
   [hidden]{display:none}, which left the empty-cart panel on screen while the
   drawer also listed the items in it. */
[hidden] { display: none !important; }

/* Cart line thumbnails, now real images rather than a lettered placeholder. */
img.drawer-thumb { object-fit: cover; width: 72px; height: 72px; }

/* Order minimum notice */
.minimum-note {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px;
  font-size: 13px; color: var(--body); margin-bottom: 14px;
}
.minimum-note strong { color: var(--green); }

/* Free shipping progress. The fill is gold while there is ground to make up
   and green once the threshold is met, so the state reads without the label. */
.ship-bar { margin-bottom: 16px; }
.ship-bar-track {
  height: 6px; border-radius: 999px; background: var(--line);
  overflow: hidden;
}
.ship-bar-fill {
  height: 100%; border-radius: 999px; background: var(--gold);
  transition: width 240ms ease;
}
.ship-bar.is-free .ship-bar-fill { background: var(--green); }
.ship-bar-label {
  font-size: 12px; color: var(--body); line-height: 1.6;
  margin: 8px 0 0;
}
.ship-bar.is-free .ship-bar-label { color: var(--green); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .ship-bar-fill { transition: none; }
}

/* A checkout control that cannot be used yet still has to look like the
   primary action, so it dims rather than changing shape. */
/* The blocked checkout button still has to be read, because it carries the
   only instruction that gets the shopper to checkout: how much short they
   are. The default disabled grey made it look like nothing, so it stays at
   full contrast and turns red. Specificity beats .btn[disabled] above. */
.btn.btn-blocked[disabled],
.btn.btn-blocked[aria-disabled="true"],
.btn.btn-blocked {
  background: #B3261E;
  color: var(--white);
  opacity: 1;
  cursor: not-allowed;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.discount-row span:last-child { color: var(--green); font-weight: 700; }

/* ===================================================================
   Payment instructions and Order ID
   =================================================================== */
.pay-instructions { font-size: 14px; color: var(--body); line-height: 1.65; }
.pay-instructions p { margin: 0 0 10px; }
.pay-detail {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.pay-detail:last-of-type { border-bottom: 0; }
.pay-detail span { color: var(--muted); font-size: 13px; }
.pay-detail strong { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }

/* The Order ID is the payment reference, so it is the largest thing here. */
.order-id-panel {
  background: var(--green); color: var(--green-text);
  border-radius: var(--r); padding: 22px 24px; margin: 20px 0 22px; text-align: center;
}
.order-id-label {
  margin: 0 0 6px; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--green-muted);
}
.order-id {
  margin: 0; font-size: clamp(28px, 6vw, 42px); font-weight: 700;
  letter-spacing: -0.01em; color: var(--gold); font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.order-id-note { margin: 8px 0 0; font-size: 12px; color: var(--green-muted); }

.confirm-pay {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 24px; margin-bottom: 28px;
}
.confirm-pay h2 { font-size: 18px; color: var(--green); margin: 0 0 14px; }


/* --- Crypto wallet card (checkout payment step) --------------------------- */
.cx { display: grid; gap: 10px; }
.cx-step {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-top: 6px;
}
.cx-step:first-child { margin-top: 0; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chip {
  background: var(--white); color: var(--body); border: 1px solid var(--line-input);
  border-radius: var(--r); padding: 10px 16px; min-height: var(--tap);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.cx-chip.on { background: var(--green); color: var(--white); border-color: var(--green); }
.cx-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.cx-card {
  background: var(--bg-alt); border: 1px solid var(--line-2);
  border-radius: var(--r-card); padding: 18px;
}
.cx-lbl {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.cx-amt {
  font-size: 24px; font-weight: 700; color: var(--green); letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; margin-bottom: 16px;
}
.cx-amt span { display: block; font-size: 14px; font-weight: 600; color: var(--body); margin-top: 2px; }
.cx-addr {
  background: var(--white); border: 1px solid var(--line-input); border-radius: var(--r);
  padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.5; color: var(--ink); word-break: break-all;
  user-select: all; margin-bottom: 12px;
}
.cx-copy { width: 100%; }
@media (min-width: 640px) { .cx-copy { width: auto; } }
.cx-warn {
  background: #FBF3E0; border: 1px solid #E4CE8A; border-radius: var(--r);
  padding: 13px 15px; font-size: 13px; line-height: 1.6; color: #6A4E07; margin: 0;
}
.cx-warn strong { color: #3F2E00; }

/* The "buy crypto with a card" route, for customers who hold none. */
.cx-buy {
  display: grid; gap: 5px; background: var(--green); color: var(--green-text);
  border: 1px solid var(--green); border-radius: var(--r-card); padding: 17px 19px;
  text-decoration: none; margin-top: 4px;
}
.cx-buy:hover { background: #172E22; }
.cx-buy-t { font-size: 15px; font-weight: 700; color: var(--white); line-height: 1.4; }
.cx-buy-s { font-size: 12.5px; line-height: 1.6; color: var(--green-muted); }
.cx-go {
  justify-self: start; margin-top: 8px; background: var(--gold); color: #24200C;
  border-radius: var(--r); padding: 10px 18px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em;
}

/* --- Payment receipt upload ---------------------------------------------- */
.receipt {
  background: var(--white); border: 1px solid var(--line-input); border-radius: var(--r-card);
  padding: 18px; margin-top: 16px;
}
.receipt.err { border-color: #C0392B; background: #FDF4F3; }
.receipt-head {
  font-size: 15px; font-weight: 700; color: var(--green); display: flex;
  flex-wrap: wrap; align-items: center; gap: 9px;
}
.receipt-head .req {
  background: var(--gold); color: #24200C; border-radius: 2px; padding: 3px 7px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.receipt-sub { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 6px 0 14px; }
.receipt-drop {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 62px; padding: 14px 16px; background: var(--bg-alt);
  border: 1px dashed var(--line-light); border-radius: var(--r); cursor: pointer;
}
.receipt-drop:hover { border-color: var(--green); background: var(--ph-bg); }
.receipt-label { font-size: 14px; font-weight: 600; color: var(--green); }
.receipt-thumb {
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
  background: var(--bg-alt); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px;
}
.receipt-thumb img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 2px; display: block;
  border: 1px solid var(--line);
}
.receipt-thumb span { font-size: 13px; font-weight: 600; color: var(--green); }
.receipt-err:not(:empty) {
  margin-top: 10px; font-size: 13px; font-weight: 600; color: #A32A1C; line-height: 1.5;
}

/* --- Order confirmation extras ------------------------------------------- */
img.order-thumb { object-fit: cover; display: block; }
.receipt-ok {
  margin: 0 0 16px; padding: 11px 14px; border-radius: var(--r);
  background: #E7F1E9; border: 1px solid #9BBFA6; color: var(--green);
  font-size: 14px; font-weight: 600; line-height: 1.5;
}
