/* Echuca Moama Plant Farm. Mobile first. Every colour, font, space, radius and control height is a token from
   /tokens.css (src/tokens.ts); EMPForce overrides primary, secondary and action in a <style> tag. Tap targets are at
   least var(--control). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: var(--text-body); color: var(--text); background: var(--paper); }
/* viewport-fit=cover lets the Alfie sheet reach the screen edges on phones; the page itself stays clear of a notch. */
body { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, .h3, .h4 { font-family: var(--font-brand); font-weight: 700; line-height: 1.15; color: var(--secondary); }
h1 { font: var(--text-display-lg); }
h2 { font: var(--text-display-md); }
.h3 { font: var(--text-display-sm); }
.h4 { font: var(--text-heading-xs); }
.display { font-family: var(--font-brand); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 16px; }
.container.narrow, .narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.block { display: block; }
.underline { text-decoration: underline; }
.lead { font: var(--text-body-lg); margin: 8px 0 20px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--secondary); color: var(--on-secondary); border-radius: var(--radius-sm); }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.icon { width: 18px; height: 18px; fill: currentColor; flex: none; display: inline-block; vertical-align: middle; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control); padding: 10px 20px; border: 2px solid var(--secondary); border-radius: var(--radius-md); background: var(--secondary); color: var(--on-secondary); font: var(--text-label); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.btn:hover { filter: brightness(1.1); }
.btn--action { background: var(--action); border-color: var(--action); color: var(--on-action); }
.btn--action:hover { background: var(--action-hover); border-color: var(--action-hover); filter: none; }
.btn--ghost { background: transparent; color: var(--secondary); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--secondary); filter: none; }
.btn--outline { background: var(--background); color: var(--secondary); border-color: var(--secondary); }
.btn--light { background: var(--background); color: var(--secondary); border-color: #fff; }
.btn--small { min-height: var(--control-sm); padding: 8px 14px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
button.link { padding: 0; border: 0; background: none; font: inherit; color: var(--primary-ink); text-decoration: underline; cursor: pointer; min-height: 0; }
.icon-btn { display: inline-grid; place-items: center; width: var(--control); height: var(--control); padding: 0; border: 0; border-radius: var(--radius-md); background: none; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgb(0 0 0 / 5%); }

/* Forms */
label { display: block; margin: 14px 0 6px; font-weight: 700; font-size: 15px; }
label.check, .check { display: flex; align-items: center; gap: 10px; font-weight: 400; min-height: var(--control); margin: 4px 0; }
input, select, textarea { width: 100%; min-height: var(--control); padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--background); color: var(--text); font: var(--text-body); line-height: 1.3; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--primary-ink); flex: none; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; font-weight: 700; }
.stack { display: flex; flex-direction: column; }
.stack > .btn { margin-top: 18px; align-self: flex-start; }
.form-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.form-msg:empty { display: none; }
.form-msg { margin-top: 10px; font-weight: 700; color: var(--in); }
/* The bot check (public/human.js): takes no room unless Cloudflare shows a box to tick, or there's something to say. */
.human-check { margin: 12px 0 0; }
.human-check:has(.form-msg:empty) [data-turnstile]:empty { display: none; }
.human-check .form-msg { margin-top: 6px; color: var(--danger); }
[data-card-msg] { color: var(--danger); }
.flash { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--in-bg); color: var(--in); font-weight: 700; }
.flash--error { background: var(--danger-bg); color: var(--danger); }
.callout { margin-bottom: 24px; padding: 16px 18px; border-radius: var(--radius); background: var(--soft); }
.callout p { margin-bottom: 10px; }

/* Announcement bar: messages take turns */
.announce { background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 14px; }
.announce-inner { display: flex; align-items: center; justify-content: center; min-height: 40px; }
.announce-track { position: relative; flex: 1; min-height: 40px; display: grid; }
.announce-track p { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px 4px; opacity: 0; transition: opacity .5s; }
.announce-track p.is-on { opacity: 1; }
.announce-step { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: inherit; cursor: pointer; }

/* Header */
.site-header { position: relative; z-index: 30; background: var(--background); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: 'menu logo actions' 'search search search'; align-items: center; gap: 6px 8px; padding-top: 8px; padding-bottom: 10px; }
.menu-btn { grid-area: menu; }
.header-logo { grid-area: logo; }
.header-logo img { width: 72px; }
.search { grid-area: search; position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 40px; padding-right: 92px; border-radius: var(--radius-pill); background: var(--soft); border-color: transparent; }
.search input:focus { background: var(--background); border-color: var(--primary-ink); }
.search-go { position: absolute; right: 3px; min-height: 38px; border-radius: var(--radius-pill); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; max-height: 70vh; overflow: auto; padding: 6px; border-radius: var(--radius); background: var(--background); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.suggest { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 6px; border-radius: var(--radius-md); text-decoration: none; min-height: 52px; }
.suggest:hover, .suggest.is-active { background: var(--soft); }
.suggest img { width: 56px; height: 42px; object-fit: cover; border-radius: var(--radius-sm); background: var(--soft); }
.suggest strong { display: block; font-size: 15px; }
.suggest em { display: block; font-size: 13px; color: var(--muted); }
/* Price, any was price, then the stock badge: side by side with a gap, stacked on narrow screens. */
.suggest-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 10px; text-align: right; font-size: 14px; font-weight: 700; }
.suggest-price .stock-badge { white-space: nowrap; }
@media (max-width: 699px) { .suggest-price { flex-direction: column; align-items: flex-end; } }
.suggest-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 6px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.suggest-foot a { font-size: 14px; color: var(--primary-ink); }
.empty-state.suggest-empty { padding: var(--space-6) var(--space-4); }
.header-actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.action { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; min-height: var(--control); padding: 2px 6px; text-decoration: none; font-size: 12px; color: var(--text); border-radius: var(--radius-md); }
.action:hover { background: var(--soft); }
.action-label { display: none; }
/* The way into the trade shop, set apart from the shopping actions. */
.trade-link { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin-right: 4px; padding: 0 10px 0 14px; border: 1.5px solid var(--secondary); border-radius: var(--radius-pill); color: var(--secondary); font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.trade-link .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.trade-link:hover { background: var(--secondary); color: var(--on-secondary); }
.trade-link:hover .icon { transform: translateX(2px); }
.trade-link:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 2px; }
@media (max-width: 374px) {
  .header-row { column-gap: 4px; }
  .header-logo { min-width: 56px; }
  .header-logo img { width: 56px; }
  .trade-link { margin-right: 0; padding: 0 10px; }
  .trade-link .icon { display: none; }
  .action { min-width: 38px; padding: 2px 4px; }
}
.badge-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--action); color: var(--on-action); font-size: 11px; line-height: 18px; text-align: center; }
.store-picker { display: none; align-items: center; gap: 4px; }
.store-picker select { min-height: 40px; width: auto; padding: 6px 28px 6px 8px; border-color: var(--line); font-size: 14px; }
.store-picker-label { margin: 0; color: var(--primary-ink); }
.drawer-nav .store-picker { display: flex; margin: 8px 0 12px; }
.drawer-nav .store-picker select { width: 100%; }

/* Mega menus */
.mega-nav { display: none; border-top: 1px solid var(--line); }
.mega-row { display: flex; flex-wrap: wrap; gap: 0 4px; }
.mega-btn { display: inline-flex; align-items: center; gap: 6px; min-height: var(--control); padding: 8px 12px; border: 0; background: none; font: 700 14px var(--font-body); color: var(--text); text-decoration: none; cursor: pointer; border-radius: var(--radius-sm); }
.mega-btn:hover, .mega-btn[aria-expanded=true] { color: var(--primary-ink); background: var(--soft); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--background); border-top: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px 0 24px; }
.mega-grid { display: grid; grid-template-columns: 220px 1fr 280px; gap: 24px; align-items: start; }
.mega-grid ul { columns: 3 180px; column-gap: 24px; }
.mega-grid li a { display: block; padding: 8px 0; text-decoration: none; break-inside: avoid; }
.mega-grid li a:hover, .mega-all:hover { color: var(--primary-ink); text-decoration: underline; }
.mega-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; min-height: var(--control); text-decoration: none; }
.mega-picker { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--soft); text-decoration: none; color: var(--secondary); }
.mega-picker strong { display: block; }
.mega-picker span { font-size: 14px; }

/* Panels: menu drawer, mini-cart, chat, filters on phones */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / 40%); }
.panel { position: fixed; top: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; width: min(420px, 92vw); background: var(--background); box-shadow: var(--shadow); }
.panel--left { left: 0; }
.panel--right { right: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line); }
.drawer-nav { overflow: auto; padding: 8px 18px 24px; }
.drawer-nav > a, .drawer-nav summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); cursor: pointer; }
.drawer-nav > a .icon { color: var(--primary-ink); }
.drawer-nav > a { justify-content: flex-start; }
.drawer-nav details a { display: flex; align-items: center; min-height: var(--control); padding-left: 14px; text-decoration: none; }
.drawer-nav summary { list-style: none; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav hr { border: 0; margin: 12px 0; }
.minicart-body { overflow: auto; padding: 16px 18px; flex: 1; }
.minicart .free-bar { margin-bottom: 16px; }
/* An empty cart sits in the middle of the drawer, both ways, with room around it (EMP-3). */
.minicart-body:has(.empty-state:not([hidden])) { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: var(--space-8) var(--space-6); }
.minicart-body .minicart:has(> .empty-state) { width: 100%; }
.minicart-body .empty-state { max-width: 320px; margin: 0 auto; padding: 0 0 8vh; }
.free-bar p { margin-bottom: 6px; font-size: 15px; }
.free-bar-track { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.free-bar-track span { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.minicart-lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.minicart-lines li.is-new { background: var(--in-bg); border-radius: var(--radius-md); padding-inline: 6px; }
.minicart-lines img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); background: var(--soft); }
.minicart-name a { display: block; font-weight: 700; text-decoration: none; }
.minicart-name span { display: block; }
.minicart-total { display: flex; justify-content: space-between; padding: 14px 0; font-size: 17px; }
.minicart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.minicart-view { display: block; margin-top: 12px; text-align: center; padding: 10px; }
.minicart .flash { display: flex; gap: 8px; align-items: center; }

/* Alfie: a floating chat window above the button on larger screens, a full-screen sheet on phones (EMP-4). */
body { --alfie-bottom: 14px; }
.alfie-btn { position: fixed; right: 14px; bottom: calc(var(--alfie-bottom) + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 52px; padding: 6px 16px 6px 6px; border: 0; border-radius: var(--radius-pill); background: var(--secondary); color: var(--on-secondary); font: var(--text-label); box-shadow: var(--shadow); cursor: pointer; }
.alfie-btn-open { display: inline-flex; align-items: center; gap: 8px; }
.alfie-btn img { width: 40px; height: 40px; border-radius: 50%; }
.alfie-btn-close { display: none; }
.alfie-btn.is-open { padding: 0; width: 52px; }
.alfie-btn.is-open .alfie-btn-open { display: none; }
.alfie-btn.is-open .alfie-btn-close { display: grid; place-items: center; }
.chat { --chat-gap: 12px; position: fixed; z-index: 75; right: 14px; bottom: calc(var(--alfie-bottom, 14px) + env(safe-area-inset-bottom) + 52px + var(--chat-gap)); display: flex; flex-direction: column; width: min(380px, calc(100vw - 28px)); height: min(560px, calc(100vh - 14px - 52px - var(--chat-gap) - 16px)); height: min(560px, calc(100dvh - var(--alfie-bottom, 14px) - 52px - var(--chat-gap) - 16px)); overflow: hidden; border-radius: var(--radius-lg); background: var(--background); box-shadow: 0 0 0 1px rgb(0 0 0 / 5%), 0 2px 6px rgb(0 0 0 / 6%), 0 12px 32px rgb(0 0 0 / 10%); transform-origin: bottom right; animation: chat-in .18s ease-out; }
.chat[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 14px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.chat-who strong { font-size: 16px; color: var(--secondary); }
.chat-who span { font-size: 13px; color: var(--muted); }
.chat-log { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.chat-time { align-self: center; margin: 2px 0 4px; font-size: 12px; color: var(--muted); }
.msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.msg-row--user { align-self: flex-end; }
.msg-row--bot { align-self: flex-start; }
.msg-face { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.msg { min-width: 0; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.msg--user { background: var(--secondary); color: var(--on-secondary); border-bottom-right-radius: 6px; }
.msg--bot { background: var(--soft); color: var(--text); border-bottom-left-radius: 6px; }
.msg--bot a { color: var(--primary-ink); font-weight: 700; }
.msg--bot a[href^='tel:'] { white-space: nowrap; }
.msg--typing { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .35; animation: chat-dot 1.1s infinite ease-in-out; }
.msg--typing i:nth-of-type(2) { animation-delay: .15s; }
.msg--typing i:nth-of-type(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: .9; transform: translateY(-3px); } }
.chat-products { display: flex; flex-direction: column; gap: 4px; margin-left: 36px; }
.chat-products .suggest { border: 1px solid var(--line); }
.chat-again { align-self: flex-start; margin-left: 36px; }
.chat-starters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 0 14px 12px; }
.chat-starters[hidden] { display: none; }
.chat-starters button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--background); color: var(--secondary); font: var(--text-label); font-size: 14px; cursor: pointer; }
.chat-starters button:hover { border-color: var(--secondary); background: var(--soft); }
.chat-form { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--background); }
.chat-form input { min-height: 44px; padding: 10px 16px; border-radius: var(--radius-pill); border-color: var(--line); background: var(--soft); font-size: 16px; }
.chat-form input:focus { background: var(--background); border-color: var(--secondary); outline: 1px solid var(--secondary); outline-offset: 0; }
.chat-send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--secondary); color: var(--on-secondary); cursor: pointer; }
.chat-send:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .chat { animation: none; }
  .msg--typing i { animation: none; opacity: .6; }
}
/* Phones: the whole screen, sized to what's visible so the input stays above the keyboard (site.js sets --chat-h). */
@media (max-width: 639px) {
  .chat { inset: var(--chat-top, 0) 0 auto 0; width: 100%; height: 100vh; height: var(--chat-h, 100dvh); border-radius: 0; box-shadow: none; padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); animation-name: chat-up; }
  @keyframes chat-up { from { transform: translateY(24px); opacity: 0; } }
  .chat-form { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .chat-is-open, .chat-is-open body { overflow: hidden; }
  .chat-is-open .alfie-btn { display: none; }
}

/* Breadcrumbs, pages */
.page { padding: 18px 0 56px; }
.crumbs { margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary-ink); }
.empty { padding: 32px 0; }
.empty .row { margin-top: 14px; }

/* Empty states (src/empty-state.tsx): centred on the page with the icon in a soft grey disc, smaller in drawers and columns. */
.empty-state { display: flex; flex-direction: column; align-items: center; margin: var(--space-6) 0; padding: var(--space-8) var(--space-4); text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: var(--space-4); border-radius: 50%; background: var(--surface); color: var(--primary-ink); }
.empty-state-icon svg { width: 32px; height: 32px; }
.empty-state-title { margin: 0; font: var(--text-display-md); color: var(--secondary); }
.empty-state-text { max-width: 42ch; margin: var(--space-2) 0 0; color: var(--muted); }
.empty-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
.empty-state--compact { margin: 0; padding: var(--space-8) var(--space-4); }
.empty-state--compact .empty-state-icon { width: 60px; height: 60px; margin-bottom: var(--space-3); }
.empty-state--compact .empty-state-icon svg { width: 26px; height: 26px; }
.empty-state--compact .empty-state-title { font: var(--text-display-sm); color: var(--secondary); }
.empty-state--compact .empty-state-text { font: var(--text-body-sm); }
.empty-state--compact .empty-state-actions { margin-top: var(--space-4); }

/* Stock badges, one per card */
.stock-badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; line-height: 1.4; }
.stock-badge--in_stock { background: var(--in-bg); color: var(--in); }
.stock-badge--low_stock { background: var(--low-bg); color: var(--low); }
.stock-badge--special_order { background: var(--special-bg); color: var(--special); }
.stock-badge--out_of_stock { background: var(--out-bg); color: var(--out); }

/* Plant cards (4:3) */
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.pcard { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pcard-media { position: relative; margin-bottom: 6px; }
.pcard-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.pcard-img--art { object-fit: contain; padding: 12%; }
.pcard-name { font-weight: 700; line-height: 1.3; text-decoration: none; color: var(--text); }
.pcard-name:hover { color: var(--primary-ink); text-decoration: underline; }
.pcard-price { font-size: 15px; }
.pcard-price span { color: var(--muted); }
.pcard-facts { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--muted); }
.pcard-facts li { display: inline-flex; align-items: center; gap: 4px; }
.pcard-facts .icon { width: 15px; height: 15px; }
.pcard .stock-badge { align-self: flex-start; margin-top: 4px; }
.wish-btn { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--secondary); cursor: pointer; }
.wish-btn[aria-pressed=true] { color: #c0392b; }
.wish-btn[aria-pressed=true] .icon { fill: currentColor; }
.wish-btn .icon { fill: none; }
.pcard-actions { position: absolute; inset: auto 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.pcard-actions .btn { min-height: 40px; padding: 6px 10px; font-size: 13px; width: 100%; }
/* Out of stock: the picture fades, the text stays readable (contrast), the buttons stay full strength. */
.pcard--out .pcard-img { opacity: .5; }
.pcard--out .pcard-name, .pcard--out .pcard-price, .pcard--out .pcard-price span, .pcard--out .pcard-facts { color: #5f625b; }

/* Archive */
.archive-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.store-inline { display: flex; align-items: center; gap: 8px; }
.store-inline label { margin: 0; font-weight: 400; font-size: 14px; color: var(--muted); }
.store-inline select { width: auto; min-width: 150px; }
.archive-intro { max-width: 70ch; margin: 6px 0 14px; color: var(--muted); }
.subcats { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin: 10px 0 16px; scroll-snap-type: x mandatory; }
.subcats li { flex: none; width: 128px; scroll-snap-align: start; }
.subcats a { display: block; text-decoration: none; font-weight: 700; font-size: 14px; }
.subcats img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 4px; }
.picker-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 18px; padding: 12px 16px; border-radius: var(--radius); background: var(--in-bg); color: var(--in); text-decoration: none; font-weight: 700; }
.picker-banner-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.picker-banner:hover { filter: brightness(.97); }
.archive-body { display: block; }
.archive-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.result-count { margin-right: auto; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort label { margin: 0; font-weight: 400; font-size: 14px; color: var(--muted); }
.sort select { width: auto; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--special-bg); color: var(--special); font-size: 14px; font-weight: 700; text-decoration: none; }
.chip .icon { width: 14px; height: 14px; }
.chip:hover { background: #cfe0f8; }
.chips-reset { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; color: var(--muted); }
.filters-panel { position: fixed; inset: auto 0 0 0; z-index: 70; max-height: 88vh; display: flex; flex-direction: column; background: var(--background); border-radius: 16px 16px 0 0; box-shadow: var(--shadow); transform: translateY(105%); transition: transform .25s; visibility: hidden; }
.filters-panel.is-open { transform: none; visibility: visible; }
.filters-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 18px; border-bottom: 1px solid var(--line); }
.filters { overflow: auto; padding: 4px 18px 0; }
.facet { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facet legend { margin-bottom: 4px; font-size: 15px; }
.facet-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; font-weight: 400; cursor: pointer; }
.facet-opt span:first-of-type { flex: 1; }
.facet-count { color: var(--muted); font-size: 14px; }
.facet-opt.is-empty { color: var(--muted); }
.more-filters summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 700; cursor: pointer; list-style: none; color: var(--primary-ink); text-decoration: underline; }
.more-filters summary::-webkit-details-marker { display: none; }
.filters-foot { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 12px 0 16px; background: var(--background); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.archive-copy { max-width: 75ch; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.archive-copy p + p { margin-top: 12px; }
.is-loading .archive-main { opacity: .55; transition: opacity .15s; }

/* Plant page */
.plant-top { display: grid; gap: 18px; }
.plant-top > * { min-width: 0; }
.gallery { position: relative; min-width: 0; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; }
.gallery-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.gallery-slide img.art { object-fit: contain; padding: 10%; }
.gallery-zoom { position: absolute; top: 8px; right: 8px; background: rgb(255 255 255 / 92%); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumbs button { flex: none; padding: 0; border: 2px solid transparent; border-radius: var(--radius-md); background: none; cursor: pointer; min-height: var(--control); }
.gallery-thumbs button[aria-current=true] { border-color: var(--primary-ink); }
.gallery-thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius-sm); }
.plant-info h1 { margin-bottom: 2px; }
.botanical { font-style: italic; color: var(--muted); }
.plant-price { margin: 6px 0 10px; font: var(--text-price); font-variant-numeric: tabular-nums; color: var(--text); }
.fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.fact-strip li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: var(--radius-md); background: var(--soft); font-size: 12px; text-align: center; line-height: 1.25; }
.fact-strip .icon { color: var(--primary-ink); }
/* Pot sizes: one row each with its stock and price. Out of stock sizes stay listed and choosable (they lead to
   Notify me or a special order), drawn faint with a dashed edge. */
.variants { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); min-width: 0; }
.variants legend { margin-bottom: var(--space-2); font: var(--text-label); }
.variant { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 0 var(--space-3); min-height: 56px; margin: 0; padding: var(--space-2) var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--background); font-weight: 400; cursor: pointer; }
.variant:hover { border-color: var(--secondary); }
.variant:has(input:checked) { border-color: var(--secondary); box-shadow: inset 0 0 0 1px var(--secondary); }
.variant input { grid-row: span 2; margin: 0; accent-color: var(--secondary); }
.variant-name { font: var(--text-label); }
.variant-note { grid-column: 2; font: var(--text-body-sm); color: var(--muted); }
.variant-note--in_stock { color: var(--in); }
.variant-note--low_stock { color: var(--low); }
.variant-note--special_order { color: var(--special); }
.variant-price { grid-column: 3; grid-row: 1 / span 2; font: var(--text-label); font-variant-numeric: tabular-nums; text-align: right; }
.variant-price .was { display: block; }
/* Sale prices: the price now in the sale colour, the usual price struck through beside it. */
.sale { color: var(--sale); }
.was { font-weight: 400; font-size: .85em; color: var(--muted); }
.suggest-price .was { display: block; }
.plant-price .was { font-size: 18px; }
.variant.is-out { border-style: dashed; border-color: var(--border-strong); }
.variant.is-out .variant-name, .variant.is-out .variant-price { color: var(--muted); }
.qty-stepper { display: flex; flex: none; height: var(--control); border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; background: var(--background); }
.qty-stepper button { display: grid; place-items: center; width: 40px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.qty-stepper button:hover { background: var(--surface); }
.qty-stepper .icon { width: 16px; height: 16px; }
.qty-stepper input { width: 48px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; font: var(--text-label); font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.specs { margin-top: var(--space-4); border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; color: var(--muted); }
.pickup { margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.pickup-title { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 4px; }
.pickup-list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; }
.pickup-state { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.pickup-state--in_stock { color: var(--in); }
.pickup-state--low_stock { color: var(--low); }
.pickup-state--none { color: var(--muted); font-weight: 400; }
.buy-row { display: flex; gap: var(--space-2); }
.buy-row[hidden] { display: none; }
.low-note { margin-top: 6px; color: var(--low); font-weight: 700; font-size: 14px; }
.special-buy, .sold-out { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--radius); }
.special-buy { background: var(--special-bg); color: var(--special); }
.sold-out { background: var(--out-bg); }
.delivery-line { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.plant-extra { margin-top: 12px; }
.trust { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.special-panel { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 8px; padding: 12px 16px; border-radius: var(--radius); background: var(--special-bg); color: var(--special); }
.special-panel button.link { color: var(--special); font-weight: 700; }
.accordions { margin-top: 16px; border-top: 1px solid var(--line); }
.accordions details { border-bottom: 1px solid var(--line); }
.accordions summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 700; cursor: pointer; list-style: none; }
.accordions summary::-webkit-details-marker { display: none; }
.accordions details[open] summary .icon { transform: rotate(45deg); }
.prose { padding-bottom: 16px; max-width: 75ch; }
.prose p + p { margin-top: 10px; }
.about h3 { margin: var(--space-4) 0 var(--space-1); font: var(--text-label); }
.about > h3:first-child { margin-top: 0; }
.about > ul { margin: 10px 0; padding-left: 1.25em; list-style: disc; }
.about > ul li + li { margin-top: 4px; }
.about > ul + p, .about > p + ul { margin-top: 10px; }
.facts { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin-top: 12px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.plain-list li { padding: 4px 0; }
.row-section { margin-top: 36px; }
.row-section h2 { margin-bottom: 6px; }
.row-section .muted { margin-bottom: 14px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--background); box-shadow: 0 -2px 12px rgb(0 0 0 / 10%); }
.sticky-buy-text { flex: 1; min-width: 0; }
.sticky-buy-text strong, .sticky-buy-text span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy-text span { font-size: 14px; color: var(--muted); }
body.has-sticky { --alfie-bottom: 84px; }

/* Dialogs */
dialog.modal { width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 20px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgb(0 0 0 / 45%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 22px; }
dialog.modal--image { width: min(1100px, calc(100vw - 16px)); padding: 8px; }
dialog.modal--image .icon-btn { position: absolute; top: 12px; right: 12px; background: var(--background); }
dialog.modal--image img { width: 100%; height: auto; max-height: calc(100vh - 60px); object-fit: contain; }

/* Plant Picker */
.picker-card { padding: 20px; border-radius: 16px; background: var(--background); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.picker-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.picker-brand { display: flex; align-items: center; gap: 6px; color: var(--secondary); }
.picker-brand .icon { color: var(--primary-ink); }
.picker-count strong { font-size: 18px; }
.picker-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0 18px; }
.picker-progress span:not(.sr-only) { height: 6px; border-radius: 3px; background: var(--line); }
.picker-progress span.is-done { background: var(--primary); }
.picker-step { font-size: 14px; color: var(--muted); }
.picker h1 { margin: 2px 0 16px; }
.picker-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.picker-option { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 112px; padding: 14px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--background); text-align: center; font-weight: 700; text-decoration: none; color: var(--text); cursor: pointer; margin: 0; }
.picker-option:hover { border-color: var(--primary-ink); }
.picker-option .icon { color: var(--primary-ink); }
.picker-option.is-picked, .picker-option:has(input:checked) { border-color: var(--special); background: var(--special-bg); color: var(--special); }
.picker-option input { position: absolute; top: 10px; left: 10px; }
.picker-option-count { font-weight: 400; font-size: 13px; color: var(--muted); }
.picker-option--any { border-style: dashed; }
.picker-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 20px; }
.picker-results-head { margin-bottom: 22px; }
.picker-results-head h1 { margin: 6px 0 10px; }

/* Home */
.hero { position: relative; overflow: hidden; background: var(--secondary); color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.hero-media img.is-on, .hero-media video { opacity: 1; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / 35%); pointer-events: none; }
/* Slider: a swipeable strip; site.js adds a copy at each end so it loops both ways. */
.hero-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; outline: 0; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-media .hero-track img { position: static; flex: 0 0 100%; height: 100%; opacity: 1; scroll-snap-align: start; scroll-snap-stop: always; }
.hero--slider .hero-inner { pointer-events: none; }
.hero--slider .hero-text { pointer-events: auto; }
.hero-step { position: absolute; bottom: var(--space-4); z-index: 2; display: none; place-items: center; width: var(--control); height: var(--control); padding: 0; border: 1px solid rgb(255 255 255 / 60%); border-radius: var(--radius-pill); background: rgb(0 0 0 / 25%); color: #fff; cursor: pointer; }
.hero-step:hover { background: rgb(0 0 0 / 45%); }
.hero-step--prev { right: calc(var(--space-6) + var(--control) + var(--space-2)); }
.hero-step--next { right: var(--space-6); }
.hero-inner { position: relative; display: flex; align-items: flex-end; min-height: 380px; padding-top: 40px; padding-bottom: 40px; }
.hero-text { max-width: 640px; }
.hero-text h1 { color: #fff; font: var(--text-display-xl); text-shadow: 0 1px 12px rgb(0 0 0 / 30%); }
.hero-text p { margin-top: 10px; font-size: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-dots { position: absolute; left: 50%; bottom: 10px; z-index: 2; transform: translateX(-50%); display: flex; justify-content: center; gap: 4px; }
.hero-dots button { width: var(--control); height: var(--control); border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 55%); }
.hero-dots button[aria-current=true]::before { background: var(--background); }
.hero--promo img { width: 100%; height: auto; }
.home-section { padding: 40px 0; }
.home-section h2 { margin-bottom: 6px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-sub { color: var(--muted); margin-bottom: 18px; }
.slider-btns { display: none; gap: 4px; }
.review-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
/* Our top special buys (home.tsx, TopBuys): square photo cards in a row that scrolls and snaps, like the old site's.
   About 1.3 cards on a phone so the next one peeks in, 3 on tablets, 4 on computers. site.js (data-buys) adds the
   arrows and dots. The accent is the old site's Heritage script, cut down to the letters of "special". */
@font-face { font-family: 'Heritage'; src: url('/fonts/heritage-special.woff2') format('woff2'); font-display: swap; unicode-range: U+41, U+43, U+45, U+49, U+4C, U+50, U+53, U+61, U+63, U+65, U+69, U+6C, U+70, U+73; }
.top-buys { padding-bottom: 32px; }
.top-buys-title { text-align: center; margin-bottom: 22px; }
.top-buys-accent { display: inline-block; margin: 0 .12em; font-family: 'Heritage', var(--font-brand); font-weight: 400; font-size: 1.6em; line-height: .8; text-transform: capitalize; color: var(--primary-ink); transform: translateY(.08em); }
.top-buys-frame { position: relative; }
.top-buys-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 0 6px; }
.top-buys-row::-webkit-scrollbar { display: none; }
.top-buy { flex: 0 0 76%; scroll-snap-align: start; min-width: 0; }
.top-buy a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; color: var(--text); border-radius: var(--radius); }
.top-buy a:focus-visible { outline: 3px solid var(--primary-ink); outline-offset: 3px; }
.top-buy-media { display: block; width: 100%; margin-bottom: 8px; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.top-buy-media .art-frame { border-radius: 0; }
.top-buy-img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.top-buy-img.is-art { padding: 38%; object-fit: contain; }
.top-buy a:hover .top-buy-img:not(.is-art) { transform: scale(1.03); }
.top-buy a:hover .top-buy-name { text-decoration: underline; }
.top-buy-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 30ch; font: var(--text-label); font-size: 16px; line-height: 1.35; }
.top-buy-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 8px; font-variant-numeric: tabular-nums; }
.top-buy-price strong { font-size: 17px; }
.top-buy .stock-badge { margin-top: 2px; }
.top-buys-step { display: none; position: absolute; top: calc(50% - 60px); z-index: 1; place-items: center; width: var(--control-lg); height: var(--control-lg); padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--background); color: var(--text); box-shadow: var(--shadow); cursor: pointer; transform: translateY(-50%); }
.top-buys-step:hover { color: var(--primary-ink); border-color: var(--border-strong); }
.top-buys-step:focus-visible { outline: 3px solid var(--primary-ink); outline-offset: 2px; }
.top-buys-step--prev { left: -12px; }
.top-buys-step--next { right: -12px; }
.top-buys-step:disabled { opacity: 0; pointer-events: none; }
.top-buys-dots[hidden] { display: none; }
.top-buys-dots { display: flex; justify-content: center; gap: 0; margin-top: 10px; }
.top-buys-dots button { display: grid; place-items: center; width: 28px; height: var(--control); padding: 0; border: 0; background: none; cursor: pointer; }
.top-buys-dots button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); transition: background .2s, transform .2s; }
.top-buys-dots button[aria-current=true]::before { background: var(--primary-ink); transform: scale(1.2); }
.top-buys-dots button:focus-visible { outline: 3px solid var(--primary-ink); outline-offset: -6px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) {
  .top-buy-img, .top-buys-dots button::before { transition: none; }
  .top-buy a:hover .top-buy-img:not(.is-art) { transform: none; }
}
.about { background: var(--soft); }
.about-grid { display: grid; gap: 18px; }
.about-text p { margin: 10px 0 18px; }
.about-store img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; border-radius: var(--radius); }
.about-store figcaption { display: flex; flex-direction: column; margin-top: 8px; font-size: 15px; }
.style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.style-grid a { display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: 16px; border-radius: var(--radius); background: var(--soft); text-decoration: none; }
.style-grid a:hover { background: var(--in-bg); }
.style-grid strong { font: 700 19px/1.2 var(--font-brand); color: var(--secondary); }
.style-grid span { font-size: 14px; color: var(--muted); }
.club-grid { display: grid; gap: 14px; }
.club-panel { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); color: #fff; text-decoration: none; }
.club-panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.club-panel::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / 45%); }
.club-panel-text { position: absolute; inset: auto 16px 16px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.club-panel-text strong { font: 700 24px/1.1 var(--font-brand); }
.reviews-grid { display: grid; gap: 16px; }
.reviews-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.reviews-source { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.google-g { flex: none; display: block; }
.reviews-rating { display: flex; align-items: center; gap: 10px; }
.reviews-score { font: 700 40px/1 var(--font-body); color: var(--text); }
.reviews-rating .stars .icon { width: 22px; height: 22px; }
.reviews-count { font-size: 14px; color: var(--muted); }
.reviews-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
.reviews-all { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--primary-ink); }
.reviews-all .icon { width: 16px; height: 16px; }
.stars { display: flex; gap: 2px; }
.stars .icon { width: 18px; height: 18px; }
.star { position: relative; display: inline-flex; }
.star .icon { display: block; }
.star-fill { position: absolute; inset: 0 auto 0 0; width: 100%; overflow: hidden; }
.star-on { color: #f5b301; }
.star-off { color: #dadce0; }
.review-row li { flex: 0 0 82%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--background); border: 1px solid var(--line); }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-by { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.review-src { font-size: 13px; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 24px; background: var(--footer); color: var(--on-footer); padding: 0 0 90px; }
.site-footer a { color: inherit; }
.site-footer .btn--action { color: var(--on-action); }
.site-footer h2 { color: inherit; margin-bottom: 8px; }
.footer-care { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 28px; padding-bottom: 24px; border-bottom: 1px solid rgb(255 255 255 / 15%); }
.footer-care p { font-size: 17px; max-width: 60ch; }
.footer-grid { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.footer-brand img { width: 130px; }
.social { display: flex; gap: 4px; margin-top: 10px; }
.social a { display: grid; place-items: center; width: var(--control); height: var(--control); }
.social .icon { width: 22px; height: 22px; }
.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand, .footer-visit { grid-column: 1 / -1; }
.footer-grid { align-items: start; }
.footer-visit > p { grid-column: 1 / -1; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links a { display: flex; align-items: center; min-height: var(--control-sm); text-decoration: none; }
.footer-links a:hover, .footer-visit a:hover { text-decoration: underline; }
.footer-visit { display: grid; gap: var(--space-4) var(--space-6); align-content: start; }
.footer-visit h2 { margin-bottom: 0; }
.footer-store h3 { font: var(--text-label); margin-bottom: var(--space-1); }
.footer-store p { margin-bottom: 2px; }
.footer-store p.small { color: var(--on-footer-muted); }
.footer-legal { font-size: 14px; color: var(--on-footer-muted); }
.footer-legal a { margin-left: 10px; }

/* Cart, checkout and account (server-rendered forms) */
table.cart { width: 100%; border-collapse: collapse; font-size: 15px; }
.cart th { padding: 10px 8px; border-bottom: 2px solid var(--line); font-size: 13px; text-align: left; color: var(--muted); }
.cart td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart .num { text-align: right; white-space: nowrap; }
.cart tfoot td { border-bottom: 0; font-weight: 700; }
.cart-item { display: flex; align-items: center; gap: 12px; font-weight: 700; text-decoration: none; }
.cart-item img { flex: none; width: 64px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--soft); }
.cart-item .stock { display: block; font-weight: 400; font-size: 13px; color: var(--danger); }
.qty { display: inline-flex; align-items: center; gap: 10px; }
.page .qty input { width: 76px; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 8px; }
.checkout { display: grid; gap: 0 40px; align-items: start; }
.checkout fieldset { margin: 0 0 24px; }
/* Sign in or carry on as a guest: a line on its own, with room before Your details. */
.checkout-signin { margin: 0 0 32px; }
.checkout legend { margin-bottom: 4px; font: 700 20px/1.3 var(--font-brand); color: var(--secondary); }
.when-collect, .when-delivery { padding-left: 30px; }
.summary { padding: 20px; border-radius: var(--radius); background: var(--soft); }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.summary .total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; }
.summary .btn { margin-top: 14px; }
.summary .stock { display: block; font-size: 13px; color: var(--danger); }
.unavailable p { margin: 0 0 10px; }
.unavailable ul { margin: 0 0 14px; padding: 0; list-style: none; font-weight: 400; }
.unavailable li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 20%, transparent); }
.unavailable form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.unavailable .btn { margin: 0; }
/* Address suggestions under an address box (public/address.js). */
.addr { display: block; position: relative; }
.addr-list { position: absolute; z-index: 35; top: calc(100% + 4px); left: 0; right: 0; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--background); box-shadow: var(--shadow); }
.addr-option { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: var(--control); padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.addr-option[aria-selected=true] { background: var(--surface); }
.addr-main { font: var(--text-label); }
.addr-secondary { font: var(--text-body-sm); color: var(--muted-foreground); }
.addr-searching { padding: 10px 12px; font: var(--text-body-sm); color: var(--muted-foreground); }
.addr-credit { margin: 0; padding: 6px 12px 4px; font-size: 12px; color: var(--muted-foreground); }
.addr-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel-form { display: flex; flex-direction: column; margin-bottom: 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-form .btn { align-self: flex-start; margin: 16px 0 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Sign in or create an account (src/account.tsx): one centred card, one form at a time. */
.auth { max-width: 520px; }
.auth-card { padding: var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.auth-form { display: flex; flex-direction: column; }
.auth-form[hidden] { display: none; }
.auth-title { margin: 0 0 var(--space-4); font: var(--text-display-lg); color: var(--secondary); }
.auth-form > .muted.small { margin: 0 0 var(--space-2); }
.auth-form .flash { margin: 0 0 var(--space-2); }
.auth-label-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 14px 0 6px; }
.auth-label-row label { margin: 0; }
.auth-form .btn { margin: var(--space-6) 0 0; }
.auth-swap { margin: var(--space-6) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--line); text-align: center; }
.auth-swap a { font-weight: 700; color: var(--primary-ink); }
.form-msg--error { margin: 6px 0 0; color: var(--danger); }
@media (max-width: 699px) { .auth-card { padding: var(--space-6) var(--space-4); } }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
/* My account, signed in (src/account.tsx): a header, the Garden Club, purchases, Help, then the settings as rows. One
   column, no boxes inside boxes: sections are split by a hairline. Numbers are in the body font with tabular figures,
   because the heading font has no glyphs for some characters. */
.acct-wrap { max-width: 800px; }
.acct-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-4); margin-bottom: var(--space-6); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface); }
.acct-head h1 { font: var(--text-display-lg); }
.acct-email { margin-top: var(--space-1); color: var(--muted); overflow-wrap: anywhere; }
.acct-h2 { font: var(--text-display-sm); }
.acct-section { padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.acct-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.acct-row .muted.small { margin-top: var(--space-1); }
.acct-more { display: inline-flex; align-items: center; gap: var(--space-1); margin-top: var(--space-3); font-weight: 700; color: var(--primary-ink); text-decoration: none; }
.acct-more:hover { text-decoration: underline; }
.acct .flash { margin-bottom: var(--space-6); }
.acct .callout { margin-bottom: var(--space-6); }

.acct-points { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--secondary); color: var(--on-secondary); }
.acct-points-title { font: var(--text-heading-xs); color: var(--primary); }
.acct-points-stat { display: flex; align-items: baseline; gap: var(--space-2); font: 700 18px/1.2 var(--font-body); }
.acct-points-stat strong { font: 700 clamp(44px, 9vw, 56px)/1 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.acct-points-text { max-width: 52ch; color: rgb(255 255 255 / 85%); }
.acct-points-lead { display: block; margin-bottom: var(--space-1); font: 700 20px/1.3 var(--font-body); color: var(--on-secondary); }
.acct-points-link { display: inline-flex; align-items: center; gap: var(--space-1); justify-self: start; margin-top: var(--space-2); font-weight: 700; color: var(--on-secondary); text-decoration: underline; text-underline-offset: 3px; }

.purchases { display: grid; }
.purchase { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.purchases .purchase:last-child { border-bottom: 0; }
.purchase-main { min-width: 0; }
.purchase-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.purchase-meta { margin-top: 2px; font-size: 14px; color: var(--muted); }
.purchase-items { margin-top: var(--space-1); font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.purchase-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); flex: none; text-align: right; }
.purchase-total { font-variant-numeric: tabular-nums; font-size: 17px; }
.purchase-help { font-size: 14px; color: var(--primary-ink); }
.more { border-top: 1px solid var(--line); }
.more > summary { display: inline-flex; align-items: center; min-height: var(--control); margin-top: var(--space-2); padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); font-weight: 700; cursor: pointer; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { display: none; }

.status-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--in-bg); color: var(--in); font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-tag--waiting { background: var(--low-bg); color: var(--low); }
.status-tag--closed { background: var(--out-bg); color: var(--out); }

.acct-details { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-2) var(--space-4); }
.acct-details dt { color: var(--muted); }
.acct-details dd { margin: 0; overflow-wrap: anywhere; }

/* The emails switch: a real button, so it works without JavaScript. */
.switch { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control); padding: 0 var(--space-1); border: 0; background: none; color: var(--text); font: var(--text-label); cursor: pointer; }
.switch-track { position: relative; width: 48px; height: 28px; border-radius: var(--radius-pill); background: var(--border-strong); transition: background .2s; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 20%); transition: transform .2s; }
.switch[aria-checked='true'] .switch-track { background: var(--primary-ink); }
.switch[aria-checked='true'] .switch-thumb { transform: translateX(20px); }
.switch-text { min-width: 2.2em; text-align: left; }

dialog.acct-modal { width: min(520px, calc(100vw - 24px)); padding: var(--space-6); }
dialog.acct-modal[open]:not(:modal) { position: static; margin: var(--space-6) 0; box-shadow: 0 0 0 1px var(--line); }
.acct-modal .modal-head { margin-bottom: var(--space-2); }
.acct-modal .flash { margin: var(--space-3) 0 0; }
.modal-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.field-note { margin-top: var(--space-1); }
.file-input { padding: 8px; font-size: 15px; }

/* Help */
.back-link { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--control); margin-bottom: var(--space-2); color: var(--primary-ink); font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.tickets { display: grid; }
.ticket-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'subject status' 'when when'; align-items: center; gap: 2px var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.tickets li:last-child .ticket-row { border-bottom: 0; }
.ticket-row:hover .ticket-subject { text-decoration: underline; }
.ticket-subject { grid-area: subject; font-weight: 700; overflow-wrap: anywhere; }
.ticket-row .status-tag { grid-area: status; justify-self: end; }
.ticket-when { grid-area: when; font-size: 14px; color: var(--muted); }
.acct > .acct-wrap > .tickets { border-top: 1px solid var(--line); }
.help-call { margin-top: var(--space-6); }
.ticket-head { margin-bottom: var(--space-6); }
.ticket-head h1 { font: var(--text-display-lg); overflow-wrap: anywhere; }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-2); color: var(--muted); font-size: 15px; }
.thread { display: grid; gap: var(--space-4); }
.bubble-row { display: flex; }
.bubble-row--you { justify-content: flex-end; }
.bubble { max-width: min(560px, 85%); padding: var(--space-3) var(--space-4); border-radius: 16px; background: var(--surface); }
.bubble--us { border-bottom-left-radius: 4px; }
.bubble--you { border-bottom-right-radius: 4px; background: var(--secondary); color: var(--on-secondary); }
.bubble-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-1); font-size: 13px; }
.bubble-meta span { opacity: .75; }
.bubble-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-photo { display: block; margin-top: var(--space-2); }
.bubble-photo img { max-width: 100%; max-height: 260px; border-radius: var(--radius-md); object-fit: cover; }
.thread-note { margin-top: var(--space-4); text-align: center; color: var(--muted); font-size: 14px; }
.reply { display: flex; flex-direction: column; margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.reply > .btn { align-self: flex-start; margin-top: var(--space-4); }

/* Get help on the Contact page: Help in My account, or sign in. */
.get-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-4); margin: 0 0 var(--space-6); padding: var(--space-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.get-help p { flex: 1 1 320px; }
.faqs + .get-help { margin-top: var(--space-6); }

@media (max-width: 699px) {
  .acct-head { padding: var(--space-4); }
  .acct-points { padding: var(--space-4) var(--space-4) var(--space-6); }
  .acct-details { grid-template-columns: 1fr; gap: 0; }
  .acct-details dd { margin-bottom: var(--space-3); }
  .acct-details dd:last-child { margin-bottom: 0; }
  .acct-row { align-items: flex-start; }
  .bubble { max-width: 92%; }
  dialog.acct-modal { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: var(--space-4) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom)); }
  .acct-modal .pair { grid-template-columns: 1fr; gap: 0; }
}
.postcode-check { margin: 16px 0 24px; }
.postcode-check input { width: 120px; }
/* /design-system */
.design h2 { margin: var(--space-12) 0 var(--space-4); }
.ds-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-6) var(--space-4); }
.ds-swatches li { display: flex; flex-direction: column; gap: 2px; }
.ds-swatch { height: 56px; margin-bottom: var(--space-2); border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%); }
.ds-table { width: 100%; border-collapse: collapse; }
.ds-table th, .ds-table td { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ds-table th { width: 200px; font-weight: 400; }
.ds-table th span { display: block; }
.ds-bar { display: block; height: 12px; border-radius: 2px; background: var(--primary); }
.ds-radius { display: block; width: 64px; height: 40px; border: 2px solid var(--secondary); }
.ds-parts { display: grid; gap: var(--space-6); max-width: 480px; }
.faqs { margin-top: var(--space-2); }
.info-main > .form-card + h2 { margin-top: var(--space-12); }
/* Information pages: content on the left, a box on the right (below on phones) */
.info-head { max-width: var(--prose); margin-bottom: var(--space-6); }
.info-head h1 { margin-bottom: var(--space-2); }
.info-head .lead { margin: 0; }
.info { display: grid; gap: var(--space-8); align-items: start; }
.info-main { min-width: 0; max-width: var(--prose); }
.info-main > h2 { margin: var(--space-8) 0 var(--space-2); }
.info-main > h2:first-child { margin-top: 0; }
.info-main > p { margin-bottom: var(--space-3); }
.info-main a { color: var(--primary-ink); }
.side-box { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-md); background: var(--surface); }
.side-box h2 { margin: 0; }
.visit h3 { font: var(--text-label); margin-bottom: var(--space-1); }
.visit p, .visit li { margin-bottom: 2px; }
.visit a { color: var(--primary-ink); }
.visit .visit-special { font: var(--text-label); margin: var(--space-3) 0 var(--space-1); }
/* Lowest price guarantee (/best-price/) */
.bullets { margin: 0 0 var(--space-3); padding-left: 1.25em; list-style: disc; }
.bullets li + li { margin-top: var(--space-1); }
.bullets .bullets { margin: var(--space-2) 0 0; list-style: circle; }
.guarantee-example { padding-top: var(--space-4); border-top: 1px solid var(--line); }
.guarantee-box h3 { margin: 0; }
.pct { font-family: var(--font-body); font-weight: 700; }
/* Garden Club (/garden-club/): a split hero (deep green words beside a nursery photo), what you get, three steps, the
   join form beside a farm photo, then questions. Phones stack everything with the photo first. */
.gc-hero { display: grid; background: var(--secondary); color: var(--on-secondary); }
.gc-hero-img { order: -1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gc-hero-text { display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); padding: var(--space-8) var(--space-4) var(--space-12); }
.gc-hero h1 { color: var(--on-secondary); font: var(--text-display-xl); }
.gc-hero p { max-width: 520px; font: var(--text-body-lg); }
.gc-hero .gc-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.gc-hero .gc-points { display: flex; align-items: baseline; gap: var(--space-3); margin-top: var(--space-2); font: 700 22px/1 var(--font-brand); color: var(--on-secondary); }
.gc-hero .gc-points strong { font: 700 clamp(56px, 9vw, 88px)/1 var(--font-brand); color: var(--primary); }
.gc-hero .gc-hero-note { font: var(--text-body); opacity: .85; }
.gc-section { padding: var(--space-12) 0; }
.gc-section h2 { margin-bottom: var(--space-6); }
.gc-perks { display: grid; gap: var(--space-6); }
.gc-perks li { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-content: start; gap: 2px var(--space-4); }
.gc-perk-icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-pill); background: var(--in-bg); color: var(--primary-ink); }
.gc-perks h3, .gc-steps h3 { font: 700 20px/1.2 var(--font-brand); color: var(--secondary); }
.gc-perks p, .gc-steps p { color: var(--muted); }
.gc-how { background: var(--soft); }
.gc-steps { display: grid; gap: var(--space-6); counter-reset: gc-step; }
.gc-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-content: start; gap: 2px var(--space-4); counter-increment: gc-step; }
.gc-steps li::before { content: counter(gc-step); grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-pill); background: var(--secondary); color: var(--on-secondary); font: 700 22px/1 var(--font-brand); }
.gc-join-grid { display: grid; gap: var(--space-6); align-items: stretch; }
.gc-join-img { width: 100%; height: 100%; min-height: 180px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius-lg); }
.gc-join-box h2 { margin-bottom: var(--space-2); }
.gc-form { margin-top: var(--space-2); }
.gc-consent { margin: var(--space-4) 0; }
.gc-done { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.gc-done h2 { margin: 0; }
.gc-faq { padding-top: 0; }
.gc-faq h2 { margin-bottom: 0; }
.gc-faq details p { padding: 0 0 var(--space-4); color: var(--muted); max-width: var(--prose); }
@media (min-width: 700px) {
  .gc-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
  .gc-hero-text { padding: var(--space-12) var(--space-6); }
}
@media (min-width: 1000px) {
  .gc-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 480px; }
  .gc-hero-img { order: 0; height: 100%; aspect-ratio: auto; }
  .gc-hero-text { padding: var(--space-16) var(--space-12) var(--space-16) max(var(--space-6), calc((100vw - var(--container)) / 2 + var(--space-6))); }
  .gc-section { padding: var(--space-16) 0; }
  .gc-perks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gc-perks li { grid-template-columns: 1fr; gap: var(--space-2); }
  .gc-perk-icon { grid-row: auto; margin-bottom: var(--space-2); }
  .gc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
  .gc-join-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); }
  .gc-join-img { aspect-ratio: auto; }
  .gc-faq { padding-top: 0; }
}
.delivery-line a { color: inherit; }
.delivery-line + .delivery-line { margin-top: var(--space-1); }
.steps { display: grid; gap: var(--space-4); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px var(--space-3); counter-increment: step; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--secondary); color: var(--on-secondary); font: var(--text-label); }
.steps strong { padding-top: 5px; }
.steps span { color: var(--muted); font: var(--text-body-sm); }
.cost-table { width: 100%; margin-top: var(--space-4); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cost-table th, .cost-table td { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cost-table th { font: var(--text-label); border-bottom-width: 2px; }
.cost-table .num { text-align: right; white-space: nowrap; }
.cost-table th:last-child, .cost-table td:last-child { padding-right: 0; }
.notfound { padding: 60px 0; }
.notfound .btn { margin-top: 18px; }
.notfound-search { display: flex; gap: 8px; max-width: 520px; margin-top: 22px; }
.notfound-search input { flex: 1; min-width: 0; }
.notfound-search .btn { margin-top: 0; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; }

/* A plant with no photo: a quiet tile, the soft surface with a small faint drawing for its kind of plant in the middle.
   The padding keeps the drawing about a fifth of the tile wide at any size. */
.art-frame { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
img.is-art { object-fit: contain; background: transparent; mix-blend-mode: multiply; filter: grayscale(1); opacity: .3; }
/* So a photo swapped for a drawing (it failed to load) sits on the same surface. */
.pcard-media > a, .gallery-slide { display: block; border-radius: var(--radius); background: var(--soft); }
.pcard-img.is-art { padding: 26% 39%; }
.gallery-slide img.is-art { padding: 28% 41%; }
.art-frame--large { margin: 0; }
.art-frame--large img { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 28% 41%; }

@media (max-width: 699px) {
  /* Phones: big rows to tap, a line between each. */
  .addr-list { padding: 4px 0; }
  .addr-option { min-height: 56px; padding: 10px 14px; border-radius: 0; }
  .addr-option + .addr-option { border-top: 1px solid var(--border); }
  .addr-main { font-size: 16px; }
  .addr-secondary { font-size: 14px; }
  .addr-searching, .addr-credit { padding-inline: 14px; }
}

@media (max-width: 699px) {
  .cart thead { display: none; }
  .cart tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart td { padding: 0; border: 0; }
  .cart td:first-child { grid-column: 1 / -1; }
  .cart td.num { text-align: left; }
  .cart tfoot tr { display: flex; justify-content: space-between; }
}

@media (min-width: 700px) {
  .container { padding-inline: 24px; }
  .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
  .picker-options { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .top-buy { flex-basis: calc((100% - 32px) / 3); }
  .top-buys-step:not([hidden]) { display: grid; }
  .top-buys-row { gap: 16px; }
  .review-row li { flex-basis: 46%; }
  .style-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .club-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-visit { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-visit h2 { grid-column: 1 / -1; }
  .footer-care { flex-direction: row; align-items: center; justify-content: flex-start; gap: 32px; }
  /* The care sheet button sits beside its text, clear of the floating Ask Alfie button at the bottom right. */
  .slider-btns { display: flex; }
  .checkout { grid-template-columns: minmax(0, 1fr) 300px; }
  .checkout fieldset { grid-column: 1; }
  .summary { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 20px; }
  .hero-inner { min-height: 460px; }
  .hero-step { display: grid; }
}

@media (min-width: 1000px) {
  .header-row { grid-template-columns: auto minmax(280px, 1fr) auto; grid-template-areas: 'logo search actions'; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
  .menu-btn { display: none; }
  .header-logo img { width: 92px; }
  .search input { min-height: 48px; }
  .action-label { display: block; }
  .store-picker { display: flex; margin-right: 8px; }
  .mega-nav { display: block; }
  body { --alfie-bottom: 24px; }
  .alfie-btn { right: 24px; }
  .chat { right: 24px; }
  .archive-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
  .filters-panel { position: sticky; top: 12px; inset: auto; z-index: 1; max-height: calc(100vh - 24px); transform: none; visibility: visible; box-shadow: none; border-radius: 0; background: none; transition: none; }
  .filters-panel-head, .filters-open { display: none; }
  .filters { padding: 0; }
  .filters-foot { grid-template-columns: 1fr; }
  .filters-foot [data-show-count] { display: none; }
  .js .filters-foot .btn--ghost { justify-self: start; }
  .plant-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .gallery { position: sticky; top: 12px; }
  .info--aside { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: var(--space-12); }
  .info-aside { position: sticky; top: var(--space-6); }
  .about-grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 28px; align-items: center; }
  .reviews-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1.6fr; gap: var(--space-8); }
  .footer-visit { grid-column: auto; }
  .top-buy { flex-basis: calc((100% - 3 * 24px) / 4); }
  .top-buys-row { gap: 24px; }
  .top-buys { padding-top: 56px; padding-bottom: 48px; }
  .top-buys-title { margin-bottom: 32px; }
  .top-buys-step--prev { left: -22px; }
  .top-buys-step--next { right: -22px; }
  .review-row li { flex-basis: 32%; }
  .pcards { gap: 32px 22px; }
  .sticky-buy { display: none !important; }
  body.has-sticky { --alfie-bottom: 24px; }
}

@media (min-width: 1240px) {
  .archive .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Plant page on phones: gallery, name, price, size, stock and Add to cart fit on one screen. */
@media (max-width: 999px) {
  .plant .crumbs { margin-bottom: 6px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .plant { padding-top: 10px; }
  .plant-top { gap: 10px; }
  .gallery-slide img { aspect-ratio: 16 / 10; }
  .gallery-thumbs { display: none; }
  .plant-info h1 { font-size: 24px; }
  .plant-price { margin: 2px 0 6px; font-size: 22px; }
  .fact-strip { margin-bottom: 8px; gap: 4px; }
  .fact-strip li { flex-direction: row; justify-content: center; gap: 4px; padding: 6px 2px; font-size: 11px; }
  .fact-strip .icon { width: 16px; height: 16px; }
  .variants { gap: 6px; margin-bottom: var(--space-2); }
  .variants legend { margin-bottom: var(--space-1); font-size: 14px; }
  .variant { min-height: 50px; padding: 6px var(--space-3); }
  .pickup { margin-bottom: 8px; padding: 8px 12px; }
  .pickup-title { margin-bottom: 0; font-size: 14px; }
  .pickup-list li { padding: 1px 0; font-size: 14px; }
}
.page > .container > h1, .page > .container.narrow > h1 { margin-bottom: 14px; }

/* Garden design band on the home page (src/home.tsx): the pitch, a nursery photo and the three steps. */
.design-band { display: grid; margin: var(--space-6) 0; }
.design-band-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--space-3); padding: var(--space-8) var(--space-4); background: var(--secondary); color: var(--on-secondary); }
.design-band-text h2 { color: var(--on-secondary); font: var(--text-display-lg); }
.design-band-text p { max-width: 440px; font: var(--text-body-lg); }
.design-band-text .btn { margin-top: var(--space-2); }
.design-band-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.design-band-steps { display: grid; align-content: center; gap: var(--space-6); padding: var(--space-8) var(--space-4); background: var(--soft); }
.design-band-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px var(--space-3); }
.design-band-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--background); color: var(--action-hover); }
.design-band-steps h3 { font: 700 20px/1.2 var(--font-brand); color: var(--secondary); padding-top: 2px; }
.design-band-steps p { color: var(--muted); }
@media (min-width: 700px) {
  .design-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .design-band-text { padding: var(--space-12) var(--space-8); }
  .design-band-img { height: 100%; aspect-ratio: auto; }
  .design-band-steps { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: var(--space-8); }
}
@media (min-width: 1100px) {
  .design-band { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); min-height: 340px; }
  .design-band-text { padding: var(--space-12) var(--space-8) var(--space-12) max(var(--space-6), calc((100vw - var(--container)) / 2 + var(--space-6))); }
  .design-band-steps { grid-column: auto; grid-template-columns: 1fr; padding: var(--space-8) max(var(--space-6), calc((100vw - var(--container)) / 2 + var(--space-6))) var(--space-8) var(--space-8); }
}

/* The booking page (/book-design/, src/booking.tsx, public/booking.js). */
.bk-grid { display: grid; gap: var(--space-8); align-items: start; }
.bk-about h2 { margin-bottom: var(--space-3); }
.bk-desc p + p { margin-top: var(--space-3); }
.bk-desc { color: var(--text); max-width: var(--prose); }
.bk-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-6) 0 var(--space-3); padding: var(--space-4) 0; border-block: 1px solid var(--line); }
.bk-facts dt { color: var(--muted); font: var(--text-body-sm); }
.bk-facts dd { margin: 2px 0 0; font: var(--text-label); }
.bk-note { color: var(--muted); font: var(--text-body-sm); margin-bottom: var(--space-6); }
.bk-about h3 { margin-bottom: var(--space-2); }
.bk-bring { display: grid; gap: var(--space-2); }
.bk-bring li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-2); align-items: start; }
.bk-bring .icon { margin-top: 3px; color: var(--primary-ink); }
.bk-form { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--background); }
.bk-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.bk-form legend { padding: 0; margin-bottom: var(--space-3); }
.bk-form[data-ready] fieldset[data-step-panel]:not([data-current]) { display: none; }
.bk-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); margin-bottom: var(--space-6); counter-reset: none; }
.bk-steps li { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-2); border-top: 3px solid var(--line); color: var(--muted); font: var(--text-body-sm); }
.bk-steps li span { font: var(--text-label); }
.bk-steps li[data-done] { border-top-color: var(--primary); }
.bk-steps li[aria-current] { border-top-color: var(--secondary); color: var(--secondary); font-weight: 700; }
.bk-label { margin: var(--space-4) 0 var(--space-2); font: var(--text-label); }
.bk-choices { display: grid; gap: var(--space-2); }
.bk-choice { display: flex; align-items: flex-start; gap: var(--space-3); margin: 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-md); font-weight: 400; cursor: pointer; }
.bk-choice input { margin-top: 2px; }
.bk-choice > span { display: flex; flex-direction: column; gap: 2px; }
.bk-choice:has(input:checked) { border-color: var(--secondary); box-shadow: inset 0 0 0 1px var(--secondary); background: var(--soft); }
.bk-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-6); }
.bk-nav [data-next], .bk-nav [data-submit] { margin-left: auto; }
.bk-sub { margin-top: var(--space-8); }
.bk-questions { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--space-3); }
.bk-review { display: grid; gap: 0; margin-bottom: var(--space-4); }
.bk-review > div { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.bk-review dt { color: var(--muted); }
.bk-review dd { margin: 0; overflow-wrap: anywhere; }
.cal { margin-top: var(--space-2); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.cal-title { font: var(--text-display-sm); color: var(--secondary); }
.cal-head .icon-btn:disabled { opacity: .35; cursor: default; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week span { padding: var(--space-1) 0; text-align: center; color: var(--muted); font: var(--text-body-sm); }
.cal-days button, .cal-days span { display: grid; place-items: center; aspect-ratio: 1; min-height: 40px; max-height: 56px; border-radius: var(--radius-md); font: var(--text-body); font-variant-numeric: tabular-nums; }
.cal-days span { color: var(--border-strong); }
.cal-days button { border: 1px solid var(--line); background: var(--in-bg); color: var(--secondary); font-weight: 700; cursor: pointer; }
.cal-days button:hover { border-color: var(--secondary); }
.cal-days button[aria-pressed="true"] { background: var(--secondary); border-color: var(--secondary); color: var(--on-secondary); }
.cal-days .today { text-decoration: underline; text-underline-offset: 3px; }
.cal-msg { min-height: 1.5em; margin-top: var(--space-2); }
.cal[aria-busy="true"] .cal-days { opacity: .5; }
.slots { margin-top: var(--space-2); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--space-2); }
.slot-grid button { min-height: var(--control); border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--background); color: var(--secondary); font: var(--text-label); cursor: pointer; }
.slot-grid button:hover { border-color: var(--secondary); }
.slot-grid button[aria-pressed="true"] { background: var(--secondary); border-color: var(--secondary); color: var(--on-secondary); }
.bk-photo-list { display: grid; gap: var(--space-1); margin-top: var(--space-2); font: var(--text-body-sm); }
.bk-done { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-6) 0; }
.bk-done .lead { margin: 0; }
.bk-done .bk-review { width: 100%; }
.bk-done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--in-bg); color: var(--in); }
@media (max-width: 459px) {
  .bk-steps li { font-size: 0; gap: 0; }
  .bk-steps li span { font-size: 15px; }
  .bk-steps li[aria-current] { font-size: 13px; }
  .bk-facts { grid-template-columns: 1fr 1fr; }
  .bk-facts div:last-child { grid-column: 1 / -1; }
}
@media (min-width: 560px) {
  .bk-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-form { padding: var(--space-6); }
}
@media (min-width: 1000px) {
  .bk-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); }
  .bk-about { position: sticky; top: var(--space-6); }
}
