/* Kroniclez Vape storefront. Design tokens first; components after. */

:root {
  /* Colour */
  --bg: #FBFBF9;
  --surface: #FFFFFF;
  --fog: #EFF2ED;
  --fog-2: #E6EBE3;
  --ink: #15171A;
  --ink-2: #474D49;
  --ink-3: #686F6A;
  --line: #DFE4DC;
  --brand: #0E7A3E;
  --brand-hover: #0B6432;
  --brand-soft: #E2F1E8;
  --brand-ink: #0A552B;
  --sale: #B4261B;
  --warn-bg: #FFF6E0;
  --warn-ink: #6B4A00;
  --ok-bg: #E6F4EA;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.3125rem;
  --fs-xl: clamp(1.625rem, 2.6vw, 2.25rem);
  --fs-2xl: clamp(2rem, 4.2vw, 3.25rem);
  --fs-display: clamp(2.5rem, 6.4vw, 5rem);

  /* Space (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Shape */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(21, 23, 26, 0.06);
  --shadow-2: 0 12px 40px rgba(21, 23, 26, 0.10);
  --border: 1px solid var(--line);

  --page: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 60px;
  --bottom-nav-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-md)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; 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: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }
main { display: block; min-height: 60vh; outline: none; }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 22px; border-radius: var(--r-pill);
  border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--brand-hover); }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: #2B2F33; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-small { min-height: 36px; padding: 0 16px; font-size: var(--fs-xs); }
.btn-large { min-height: 52px; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.link-quiet { color: var(--brand-ink); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); }
.link-quiet:hover { text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-3); text-decoration: underline; cursor: pointer; font-size: var(--fs-sm); min-height: 44px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 0; background: transparent; color: var(--ink); cursor: pointer; position: relative; text-decoration: none;
}
.icon-btn:hover { background: var(--fog); }
.icon-btn svg { width: 22px; height: 22px; }
.round-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill);
  border: var(--border); background: var(--surface); color: var(--ink); cursor: pointer;
}
.round-btn:hover { border-color: var(--ink-3); }
.round-btn svg { width: 18px; height: 18px; }
.round-btn[disabled] { opacity: .35; cursor: default; }

/* ---------- Health warning ---------- */
.health-warning { background: var(--ink); color: #fff; text-align: center; font-size: var(--fs-sm); font-weight: 600; padding: 10px var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 251, 249, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { max-width: var(--page); margin: 0 auto; height: var(--header-h); padding: 0 var(--gutter); display: flex; align-items: center; gap: var(--s5); }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo-img { height: 32px; width: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.wordmark-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: 0;
}
.wordmark-mark.large { width: 56px; height: 56px; border-radius: 16px; font-size: 1.75rem; margin: 0 auto var(--s4); font-family: var(--font-display); }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(12px, 2.2vw, 30px); }
.main-nav a { text-decoration: none; font-size: var(--fs-sm); color: var(--ink-2); padding: 8px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.cart-count, .bn-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.menu-btn { display: none; }
.mobile-menu { position: fixed; inset: var(--header-h) 0 auto 0; z-index: 39; background: var(--surface); border-bottom: var(--border); box-shadow: var(--shadow-2); }
.mobile-menu ul { list-style: none; margin: 0; padding: var(--s2) var(--gutter) var(--s4); }
.mobile-menu a { display: block; padding: 14px 0; font-size: var(--fs-lg); font-weight: 600; text-decoration: none; border-bottom: var(--border); letter-spacing: -0.01em; }
.mobile-menu li:last-child a { border-bottom: 0; }

/* ---------- Search ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(21, 23, 26, 0.28); display: flex; justify-content: center; padding: 10vh var(--gutter) 0; }
.search-panel { width: min(680px, 100%); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: var(--s3); align-self: flex-start; max-height: 76vh; overflow: auto; }
.search-form { display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s2); }
.search-icon svg { width: 22px; height: 22px; color: var(--ink-3); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: var(--fs-lg); padding: 14px 4px; outline: none; }
.search-form input:focus-visible { outline: none; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results:not(:empty) { border-top: var(--border); margin-top: var(--s2); padding-top: var(--s2); }
.search-results a { display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s2); border-radius: var(--r-sm); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { background: var(--fog); }
.search-results img, .search-results .sr-ph { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: var(--fog); flex: none; }
.search-results .sr-name { font-weight: 600; }
.search-results .sr-meta { color: var(--ink-3); font-size: var(--fs-xs); }
.search-results .sr-price { margin-left: auto; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.search-results .sr-all a { justify-content: center; color: var(--brand-ink); font-weight: 600; }

/* ---------- Layout primitives ---------- */
.section { max-width: var(--page); margin: 0 auto; padding: var(--s8) var(--gutter) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.section-title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.section-tools { display: flex; align-items: center; gap: var(--s2); flex: none; }
.section-tools .link-quiet { margin-right: var(--s2); }
.page-title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 var(--s4); }
.display { font-family: var(--font-display); font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; margin: 0 0 var(--s4); }
.lede { font-size: var(--fs-lg); color: var(--ink-2); margin: 0 0 var(--s5); max-width: 60ch; line-height: 1.4; }
.sub-h { font-size: var(--fs-lg); font-weight: 650; letter-spacing: -0.015em; margin: var(--s6) 0 var(--s3); }
.prose { max-width: 68ch; color: var(--ink-2); }
.prose p { margin: 0 0 var(--s4); }
.fine { font-size: var(--fs-xs); color: var(--ink-3); margin: var(--s3) 0 0; }
.empty, .empty-state { color: var(--ink-3); padding: var(--s7) 0; }
.empty-state { text-align: center; }
.empty-state p { font-size: var(--fs-lg); margin: 0 0 var(--s4); }
.intro { padding-top: var(--s9); padding-bottom: var(--s7); }

/* ---------- Hero slider ---------- */
.hero { position: relative; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s3) var(--gutter) 0; }
.hero-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); background: var(--fog); }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; scroll-snap-align: start; min-height: clamp(420px, 58vw, 640px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.hero-copy { position: relative; padding: clamp(28px, 5vw, 72px); max-width: 680px; }
.hero-preview-tag { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--warn-bg); color: var(--warn-ink); font-size: var(--fs-xs); font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.hero-title { overflow-wrap: anywhere; font-family: var(--font-display); font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; margin: 0 0 var(--s4); }
.hero-text { font-size: var(--fs-lg); line-height: 1.4; margin: 0 0 var(--s5); color: var(--ink-2); max-width: 46ch; }
.tone-light .hero-title, .tone-light .hero-text { color: #fff; }
.tone-light .hero-copy::before { content: ""; position: absolute; inset: -40% -40% -10% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.38), transparent); }
.hero-controls { display: flex; align-items: center; justify-content: center; gap: var(--s3); padding-top: var(--s4); }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; padding: 0; border-radius: var(--r-pill); border: 0; background: var(--line); cursor: pointer; transition: width .25s var(--ease), background-color .25s; }
.hero-dot[aria-selected="true"] { width: 26px; background: var(--ink); }
.hero-dot::after { content: ""; position: absolute; }
.pause-glyph { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
[data-slider-pause][aria-pressed="true"] .pause-glyph { border: 0; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }

/* ---------- Product card ---------- */
.product-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--fog); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform .45s var(--ease); }
.product-card:hover .card-media img { transform: scale(1.035); }
/* Branded placeholder: fills the same square frame as a product photo, so grids never shift. */
img.is-placeholder { object-fit: cover !important; padding: 0 !important; background: var(--fog); }
.card-media img.is-placeholder, .gallery-main img.is-placeholder { width: 100%; height: 100%; }
.product-card:hover .card-media img.is-placeholder { transform: none; }
.hero-media img.is-placeholder { display: none; }
.img-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #B8C1B6; }
.img-placeholder svg { width: 30%; max-width: 72px; height: auto; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--surface); color: var(--brand-ink); font-size: var(--fs-xs); font-weight: 650; padding: 4px 10px; border-radius: var(--r-pill); box-shadow: var(--shadow-1); }
.badge + .badge-sale, .badge-sale { left: auto; right: 12px; color: var(--sale); }
.badge-inline { position: static; display: inline-block; background: var(--brand-soft); box-shadow: none; margin-bottom: var(--s3); }
.card-body { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s4) var(--s4) var(--s4); flex: 1; }
.card-title { font-size: var(--fs-md); font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-flavours { margin: 0; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: var(--s2); }
.price { font-weight: 650; font-variant-numeric: tabular-nums; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price-sale { color: var(--sale); font-weight: 650; }
.price-was { color: var(--ink-3); font-weight: 400; font-size: 0.9em; }
.price-na { color: var(--ink-3); font-weight: 500; font-size: var(--fs-sm); }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; padding-top: var(--s3); }
.card-add { margin: 0; }
.card-unavailable { font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------- Carousel ---------- */
.carousel {
  display: grid; grid-auto-flow: column; gap: var(--s4);
  grid-auto-columns: calc((100% - 3 * var(--s4)) / 4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 2px 2px var(--s4); margin: 0 -2px; scrollbar-width: thin; overscroll-behavior-x: contain;
}
.carousel-item { scroll-snap-align: start; min-width: 0; }

/* ---------- Grid & listings ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--s4); }
.listing-head { margin-bottom: var(--s5); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.filters input, .filters select, .field input, .field select, .field textarea, .dob-fields input {
  min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 0 14px; font-size: 16px;
}
.filters input[type="search"] { flex: 1 1 220px; }
.field select { width: 100%; }
.field textarea { padding: 12px 14px; min-height: 96px; resize: vertical; width: 100%; }
.result-count { color: var(--ink-3); font-size: var(--fs-sm); margin: 0 0 var(--s4); }
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--s4); padding: var(--s6) 0 0; color: var(--ink-3); font-size: var(--fs-sm); }

/* ---------- Categories ---------- */
.category-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--s4); }
.category-tile { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--fog); border-radius: var(--r-md); padding: var(--s4); transition: background-color .2s var(--ease); }
.category-tile:hover { background: var(--fog-2); }
.category-media { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: var(--s3); color: #B8C1B6; }
.category-media img { max-height: 100%; width: auto; object-fit: contain; }
.category-media svg { width: 40px; height: 40px; }
.category-name { font-weight: 650; font-size: var(--fs-md); letter-spacing: -0.01em; }
.category-count { font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------- Split & text sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.split-right .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 5 / 4; object-fit: cover; background: var(--fog); }
.split-copy .section-title { margin-bottom: var(--s4); }
.text-section .prose { margin-top: var(--s4); }

/* ---------- Product detail ---------- */
.breadcrumbs { max-width: var(--page); margin: 0 auto; padding: var(--s5) var(--gutter) 0; display: flex; gap: var(--s2); font-size: var(--fs-sm); color: var(--ink-3); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.product-detail { max-width: var(--page); margin: 0 auto; padding: var(--s4) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main { background: var(--fog); border-radius: var(--r-lg); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.gallery-placeholder { min-height: 100%; }
.gallery-thumbs { display: flex; gap: var(--s2); margin-top: var(--s3); overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 72px; height: 72px; border-radius: 14px; border: 2px solid transparent; background: var(--fog); padding: 4px; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-pressed="true"] { border-color: var(--ink); }
.brand { margin: 0 0 var(--s1); color: var(--ink-3); font-size: var(--fs-sm); font-weight: 500; }
.product-title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 var(--s3); overflow-wrap: anywhere; }
.product-price { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 var(--s5); font-variant-numeric: tabular-nums; }
.buy-form { display: grid; gap: var(--s4); }
.flavour-picker { border: 0; padding: 0; margin: 0; }
.flavour-picker legend { font-weight: 650; margin-bottom: var(--s3); padding: 0; }
.flavour-options { display: flex; flex-wrap: wrap; gap: var(--s2); border: 0; padding: 0; margin: 0; }
.flavour-option { position: relative; }
.flavour-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.flavour-option span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.flavour-option:hover span { border-color: var(--ink-3); }
.flavour-option input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.flavour-option input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.flavour-option.is-unavailable span { color: var(--ink-3); text-decoration: line-through; cursor: not-allowed; background: var(--bg); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.qty-row label { font-weight: 650; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: var(--r-pill); }
.stepper button:hover { background: var(--fog); }
.stepper button svg { width: 16px; height: 16px; }
.stepper input { width: 48px; height: 44px; border: 0; background: transparent; text-align: center; font-weight: 600; font-size: 16px; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-small button, .stepper-small input { height: 38px; }
.stepper-small button { width: 38px; }
.notice { background: var(--fog); border-radius: var(--r-sm); padding: var(--s4); }
.product-description { margin-top: var(--s6); border-top: var(--border); }

/* ---------- Quick add dialog ---------- */
.quick-add { border: 0; border-radius: var(--r-lg); padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: var(--shadow-2); background: var(--surface); color: var(--ink); }
.quick-add::backdrop { background: rgba(21, 23, 26, 0.32); }
.quick-add form { padding: var(--s5); display: grid; gap: var(--s4); }
.qa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.qa-head h2 { margin: 0; font-size: var(--fs-lg); letter-spacing: -0.015em; line-height: 1.25; }
.quick-add .flavour-options { max-height: 46vh; overflow: auto; }

/* ---------- Cart & checkout ---------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: var(--border); }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--s4); padding: var(--s5) 0; border-bottom: var(--border); align-items: start; }
.cart-thumb { display: block; width: 96px; height: 96px; border-radius: 16px; background: var(--fog); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-name { font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.cart-name:hover { text-decoration: underline; }
.cart-flavour, .cart-unit { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--ink-3); }
.cart-controls { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s3); flex-wrap: wrap; }
.inline-form { margin: 0; display: inline-flex; align-items: center; gap: var(--s2); }
.cart-line-total { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary { background: var(--surface); border: var(--border); border-radius: var(--r-md); padding: var(--s5); position: sticky; top: calc(var(--header-h) + 16px); }
.summary .sub-h { margin-top: 0; }
.summary-lines { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; font-size: var(--fs-sm); border-bottom: var(--border); }
.summary-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals { margin: 0 0 var(--s4); }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; font-size: var(--fs-sm); }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .total { border-top: var(--border); margin-top: var(--s2); padding-top: var(--s3); font-size: var(--fs-lg); font-weight: 700; }
.totals .total dt { color: var(--ink); }
.checkout-form { display: grid; gap: var(--s4); }
.checkout-form .sub-h:first-of-type { margin-top: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field .optional { color: var(--ink-3); font-weight: 400; }
.field input { width: 100%; }
.field.has-error input, .field.has-error textarea { border-color: var(--sale); }
.field-error { margin: 0; color: var(--sale); font-size: var(--fs-xs); }
.field.check label { display: flex; gap: var(--s3); align-items: flex-start; font-weight: 400; line-height: 1.45; }
.field.check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.payment-note { background: var(--brand-soft); color: var(--brand-ink); border-radius: var(--r-sm); padding: var(--s4); font-weight: 500; }
.payment-note p { margin: 0; }
.alert { border-radius: var(--r-sm); padding: var(--s4); margin-bottom: var(--s5); }
.alert p { margin: 0 0 var(--s2); }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); }
.confirmation { max-width: 760px; }
.confirmation .summary { position: static; margin: var(--s5) 0; }
.order-number { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.contact-card { margin-top: var(--s6); background: var(--fog); border-radius: var(--r-md); padding: var(--s5); max-width: 520px; }
.contact-card .sub-h:first-child { margin-top: 0; }
.contact-card address { font-style: normal; }
.page { max-width: 860px; }

/* ---------- Age gate ---------- */
body.bare { background: var(--fog); }
.age-gate { min-height: 100vh; display: grid; place-items: center; padding: var(--s6) var(--gutter); }
.age-card { width: min(460px, 100%); background: var(--surface); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 44px); box-shadow: var(--shadow-2); text-align: center; }
.age-card h1 { font-family: var(--font-display); font-size: var(--fs-xl); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 var(--s3); }
.age-card > p { color: var(--ink-2); margin: 0 0 var(--s5); }
.dob-form fieldset { border: 0; padding: 0; margin: 0 0 var(--s5); }
.dob-form legend { font-weight: 650; margin: 0 auto var(--s3); }
.dob-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s2); text-align: left; }
.dob-fields label { display: block; font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: 4px; }
.dob-fields input { width: 100%; text-align: center; }
.age-card .fine a { margin: 0 6px; color: var(--ink-3); }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--s9); background: var(--fog); padding: var(--s8) var(--gutter) var(--s6); }
.footer-grid { max-width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); }
.footer-brand p { color: var(--ink-2); font-size: var(--fs-sm); max-width: 36ch; }
.footer-h { font-size: var(--fs-sm); font-weight: 650; margin: 0 0 var(--s3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--s2); }
.site-footer a { text-decoration: none; color: var(--ink-2); font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer address, .site-footer p { font-style: normal; color: var(--ink-2); font-size: var(--fs-sm); margin: 0 0 var(--s2); }
.footer-legal { max-width: var(--page); margin: var(--s7) auto 0; padding-top: var(--s5); border-top: 1px solid var(--fog-2); font-size: var(--fs-xs); color: var(--ink-3); }
.footer-legal p { font-size: var(--fs-xs); color: var(--ink-3); }
.footer-legal a { margin-right: var(--s4); font-size: var(--fs-xs); }
.age-notice { font-weight: 600; color: var(--ink-2) !important; }

/* ---------- Bottom nav & toast ---------- */
.bottom-nav { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500;
  box-shadow: var(--shadow-2); max-width: calc(100vw - 32px);
}
.toast a { color: #fff; font-weight: 650; margin-left: 10px; }


/* ---------- Announcement ticker ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; font-size: var(--fs-xs); font-weight: 550; height: 36px; display: flex; align-items: center; position: relative; }
.ticker-track { display: flex; width: max-content; animation: ticker-left var(--ticker-duration, 40s) linear infinite; will-change: transform; }
.ticker-right .ticker-track { animation-name: ticker-right; }
.ticker.speed-slow { --ticker-duration: 60s; }
.ticker.speed-normal { --ticker-duration: 40s; }
.ticker.speed-fast { --ticker-duration: 24s; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-list { list-style: none; margin: 0; padding: 0; display: flex; flex-shrink: 0; }
.ticker-list li { padding: 0 var(--s6); white-space: nowrap; position: relative; }
.ticker-list li::after { content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.45); transform: translateY(-50%); }
.ticker a { color: #fff; text-underline-offset: 3px; }
@keyframes ticker-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.ticker.is-static .ticker-track { animation: none; width: 100%; }
.ticker-pause { position: absolute; right: 0; top: 0; bottom: 0; width: 40px; border: 0; background: linear-gradient(90deg, rgba(21,23,26,0), var(--ink) 40%); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0 0 0 10px; }
.ticker-pause span { width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.ticker-pause[aria-pressed="true"] span { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; border-right: 0; }
.ticker.is-static .ticker-list[aria-hidden] { display: none; }
.ticker.is-static .ticker-list { flex-wrap: wrap; justify-content: center; width: 100%; }

/* ---------- Store selection ---------- */
.store-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 10px; border-radius: var(--r-pill); background: var(--fog); color: var(--ink); text-decoration: none; font-size: var(--fs-xs); white-space: nowrap; margin-right: var(--s2); }
.store-pill:hover { background: var(--fog-2); }
.store-pill svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.store-pill-label { color: var(--ink-3); }
.store-pill-name { font-weight: 650; }
.preview-banner { background: var(--warn-bg); color: var(--warn-ink); padding: 10px var(--gutter); font-size: var(--fs-sm); text-align: center; }
.preview-banner a { color: inherit; font-weight: 650; }
.status-tag { display: inline-block; font-size: 12px; font-weight: 650; line-height: 1; padding: 5px 9px; border-radius: var(--r-pill); background: var(--fog); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.status-open, .status-confirmed, .status-ready_for_pickup, .status-completed { background: var(--brand-soft); color: var(--brand-ink); }
.status-coming_soon, .status-pending_review { background: var(--warn-bg); color: var(--warn-ink); }
.status-closed, .status-cancelled { background: #FBE9E7; color: var(--sale); }
.store-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--s4); }
.store-card { background: var(--surface); border: var(--border); border-radius: var(--r-md); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.store-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.store-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.store-card h3 { font-size: var(--fs-lg); letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.store-card address { font-style: normal; color: var(--ink-2); }
.store-card p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.store-card form { margin-top: auto; padding-top: var(--s3); }
.store-note { background: var(--fog); border-radius: var(--r-sm); padding: var(--s3); }
.stores-section .store-cards { margin-top: var(--s5); }
.store-context { font-size: var(--fs-sm); color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin: var(--s2) 0 0; }
.store-context svg { width: 16px; height: 16px; }
.store-context a { color: var(--ink-2); }
.pickup-box { background: var(--fog); border-radius: var(--r-md); padding: var(--s4); margin-bottom: var(--s4); font-size: var(--fs-sm); }
.pickup-box address { font-style: normal; color: var(--ink-2); }
.pickup-box p { margin: 0 0 var(--s1); }
.pickup-title { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.pickup-title svg { width: 18px; height: 18px; color: var(--brand); }
.discount-line dd { color: var(--brand-ink); font-weight: 600; }
.fine-inline { font-size: var(--fs-xs); }
.site-footer .hours { white-space: normal; }
.footer-links a { margin-right: var(--s4); }

/* ---------- Content pages ---------- */
.cms-page { max-width: 880px; }
.cms-page > * + * { margin-top: var(--s5); }
.block-image { margin: 0; }
.block-image img { width: 100%; border-radius: var(--r-md); }
.block-image figcaption { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s2); }
.error-page { text-align: center; max-width: 640px; }
.plain-list { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.plain-list li { margin-bottom: var(--s2); }

/* ---------- Customer accounts ---------- */
.auth-page { display: block; }
.auth-card { width: 100%; max-width: 480px; margin: 0 auto; background: var(--surface); border: var(--border); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 40px); }
.auth-card .page-title { margin-top: 0; }
.stack-form { display: grid; gap: var(--s4); margin: var(--s4) 0; }
.stack-form .field { margin: 0; }
.auth-links { font-size: var(--fs-sm); color: var(--ink-2); margin: var(--s2) 0 0; text-align: center; }
.alert-ok { background: var(--ok-bg); color: var(--brand-ink); }
.field-note { color: var(--warn-ink); background: var(--warn-bg); border-radius: var(--r-sm); padding: 6px 10px; font-size: var(--fs-xs); margin: 6px 0 0; }
.flash-bar { max-width: var(--page); margin: var(--s4) auto 0; padding: 0 var(--gutter); }
.flash-bar .alert { margin: 0; }
.btn-danger { color: var(--sale); }
.btn-danger:hover { background: #FBE9E7; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.account-head .page-title { margin: 0; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s7); margin-top: var(--s6); align-items: start; }
.account-side details { border-top: var(--border); padding: var(--s3) 0; }
.account-side summary { cursor: pointer; font-weight: 600; }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-list li + li { margin-top: var(--s2); }
.order-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s4); padding: var(--s4); border: var(--border); border-radius: var(--r-md); text-decoration: none; color: var(--ink); background: var(--surface); }
.order-list a:hover { border-color: var(--ink-3); }
.order-list-number { font-weight: 650; font-variant-numeric: tabular-nums; }
.order-list .muted { grid-column: 1; font-size: var(--fs-sm); }
.order-list-meta { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .carousel { grid-auto-columns: calc((100% - 2 * var(--s4)) / 3); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .product-detail { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .split { grid-template-columns: 1fr; }
  .split-right .split-media { order: 0; }
}
@media (max-width: 720px) {
  :root { --header-h: 56px; }
  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  body.bare { padding-bottom: 0; }
  .header-actions [data-search-open], .header-actions .cart-link, .header-actions .account-link { display: none; }
  .store-pill { padding: 0 10px; margin-right: 0; }
  .store-pill-label { display: none; }
  .account-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .ticker-list li { padding: 0 var(--s5); }
  .section { padding-top: var(--s7); }
  .section-head { align-items: center; }
  .section-tools .round-btn { display: none; }
  .carousel { grid-auto-columns: 62%; gap: var(--s3); margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .category-media { aspect-ratio: 1 / 1; }
  .card-body { padding: var(--s3); }
  .card-actions { flex-direction: column; align-items: stretch; }
  .card-actions .link-quiet { display: none; }
  .card-actions .btn { width: 100%; }
  .hero { padding-top: var(--s2); }
  .hero-slide { min-height: min(132vw, 600px); }
  .hero-copy { padding: var(--s5); }
  .hero-controls .round-btn { width: 40px; height: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .site-footer { margin-top: var(--s8); padding-top: var(--s7); }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-thumb { width: 72px; height: 72px; }
  .cart-line-total { grid-column: 2; }
  .toast { bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
    border-top: var(--border);
  }
  .bn-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 600; cursor: pointer; min-height: 44px; }
  .bn-item svg { width: 24px; height: 24px; }
  .bn-item[aria-current="page"] { color: var(--brand-ink); }
  .bn-count { top: 6px; right: calc(50% - 22px); }
  .search-overlay { padding-top: 12px; }
}
@media (max-width: 380px) {
  .product-grid { gap: var(--s2); }
  .card-title { font-size: var(--fs-sm); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .ticker { height: auto; min-height: 36px; padding: 8px 0; }
  .ticker-track { width: 100%; }
  .ticker-list[aria-hidden] { display: none; }
  .ticker-list { flex-wrap: wrap; justify-content: center; width: 100%; row-gap: 4px; }
}

/* Page builder sections */
.pb { margin: 0 auto; }
.pb-space-sm { padding-block: 8px; } .pb-space-md { padding-block: 20px; } .pb-space-lg { padding-block: 44px; }
.pb-w-narrow { max-width: 680px; } .pb-w-normal { max-width: 1040px; } .pb-w-wide { max-width: none; }
.pb-align-center { text-align: center; } .pb-align-center .pb-actions, .pb-align-center .pb-cols { justify-content: center; }
.pb-bg-light { background: var(--surface-2, #f2f4f1); padding-inline: 20px; border-radius: 16px; }
.pb-bg-dark { background: #15171a; color: #fff; padding-inline: 20px; border-radius: 16px; }
.pb-bg-dark a:not(.btn) { color: #fff; }
.pb-bg-brand { background: var(--brand, #0e7a3e); color: #fff; padding-inline: 20px; border-radius: 16px; }
@media (max-width: 720px) { .pb-hide-mobile { display: none !important; } }
@media (min-width: 721px) { .pb-hide-desktop { display: none !important; } }
.pb-hero { position: relative; display: grid; min-height: 280px; border-radius: 18px; overflow: hidden; background: #15171a; color: #fff; }
.pb-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.pb-hero-copy { position: relative; align-self: end; padding: 28px; max-width: 720px; }
.pb-hero-h { font-size: clamp(28px, 4vw, 44px); margin: 0 0 8px; }
.pb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pb-cols img, .pb-gallery img { width: 100%; height: auto; border-radius: 12px; }
.pb-features { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pb-features li { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line, #dadfd7); border-radius: 12px; }
.pb-gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.pb-gallery figure { margin: 0; }
.pb-faq details { border-bottom: 1px solid var(--line, #dadfd7); padding: 12px 0; }
.pb-faq summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.pb-cta { padding: 24px; border-radius: 16px; border: 1px solid var(--line, #dadfd7); }
.pb-quote { margin: 0; padding: 12px 20px; border-left: 4px solid var(--brand, #0e7a3e); font-size: 1.15em; }
.pb-quote footer { font-size: .85em; opacity: .75; margin-top: 6px; }
.pb-hours { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pb-spacer-sm { height: 16px; } .pb-spacer-md { height: 40px; } .pb-spacer-lg { height: 80px; }
.pb-divider { border: 0; border-top: 1px solid var(--line, #dadfd7); margin: 16px 0; }
.pb-social, .footer-social { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.alert-info { background: #eef4fb; color: #1d3b5a; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-stack .field { display: grid; gap: 6px; margin-bottom: 12px; }
.form-stack input, .form-stack select, .form-stack textarea { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line, #dadfd7); border-radius: 10px; font: inherit; }
