/* Theme S2+S5 unified — single source. Glass + serif + hairlines + square controls. */
:root {
  /* Dark (default) */
  --paper: #0a0f0b;
  --card: #2e4a28;
  --glass: rgba(255,255,255,.07);
  --glass-soft: rgba(255,255,255,.05);
  --glass-strong: rgba(20,28,22,.94);
  --ink: #f5efdc;
  --muted: #c3c9a4;
  --leaf: #8fce7e;
  --gold: #e8c85a;
  --gold-dim: rgba(232,200,90,.55);
  --gold-faint: rgba(232,200,90,.35);
  --line: rgba(255,255,255,.16);
  --topbar: #141f12;
  --danger: #e88a75;
  --focus: #7ab8ff;
  --input-bg: rgba(0,0,0,.4);
  --body-bg-img: url("../img/farm.jpg");
  --body-overlay: rgba(8,14,10,.35);
  --hero-overlay-start: rgba(8,14,10,.55);
  --hero-overlay-end: rgba(8,14,10,.78);
  --shadow: 0 8px 32px rgba(0,0,0,.35);
  --stepper-bg: rgba(0,0,0,.35);
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --header-h: 60px;
  color-scheme: dark;
}

/* Light mode — warmer, darker cream (not stark white) */
[data-theme="light"] {
  --paper: #ebeeda;
  --card: #dfe2cf;
  --glass: rgba(0,0,0,.08);
  --glass-soft: rgba(0,0,0,.05);
  --glass-strong: rgba(255,255,255,.88);
  --ink: #1f2a18;
  --muted: #546444;
  --leaf: #4d7a32;
  --gold: #a0750a;
  --gold-dim: rgba(160,117,10,.6);
  --gold-faint: rgba(160,117,10,.4);
  --line: rgba(0,0,0,.15);
  --topbar: #d9dcc8;
  --danger: #b03020;
  --focus: #205fc0;
  --input-bg: rgba(0,0,0,.1);
  --body-bg-img: url("../img/farm.jpg");
  --body-overlay: rgba(235,238,218,.65);
  --hero-overlay-start: rgba(235,238,218,.7);
  --hero-overlay-end: rgba(235,238,218,.9);
  --shadow: 0 8px 32px rgba(0,0,0,.15);
  --stepper-bg: rgba(0,0,0,.1);
  color-scheme: light;
}

/* Respect OS preference if no explicit choice */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --paper: #ebeeda;
    --card: #dfe2cf;
    --glass: rgba(0,0,0,.08);
    --glass-soft: rgba(0,0,0,.05);
    --glass-strong: rgba(255,255,255,.88);
    --ink: #1f2a18;
    --muted: #546444;
    --leaf: #4d7a32;
    --gold: #a0750a;
    --gold-dim: rgba(160,117,10,.6);
    --gold-faint: rgba(160,117,10,.4);
    --line: rgba(0,0,0,.15);
    --topbar: #d9dcc8;
    --danger: #b03020;
    --focus: #205fc0;
    --input-bg: rgba(0,0,0,.1);
    --body-overlay: rgba(235,238,218,.65);
    --hero-overlay-start: rgba(235,238,218,.7);
    --hero-overlay-end: rgba(235,238,218,.9);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { font-size: 15px; }
body {
  margin: 0; color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
  background: linear-gradient(var(--hero-overlay-start), var(--hero-overlay-end)), var(--body-bg-img) center 40% / cover no-repeat, var(--paper);
  background-attachment: fixed;
}
body::before { content: ""; position: fixed; inset: 0; background: var(--body-overlay); z-index: -1; }
a { color: var(--gold); }
footer a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: .01em; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 12px 32px; }
.page { display: flex; gap: 12px; max-width: 1220px; margin: 0 auto; padding: 0 12px 32px; align-items: flex-start; }
.page > .wrap { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0 0 8px; max-width: 880px; }

/* Header */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--topbar); color: var(--ink); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; min-height: 58px; }
.brand, .brand-core, .brand-center { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand { font-size: 1rem; }
.brand svg { width: 24px; height: 24px; flex: none; }
.brand strong { font-weight: 800; font-family: inherit; }
.brand .tag { display: block; font-size: .68rem; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.brand-center { position: absolute; left: 50%; transform: translateX(-50%); font-size: 1.1rem; }
.brand-center svg { width: 28px; height: 28px; flex: none; }
.brand-center .tag { display: block; font-size: .7rem; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.top-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.top-actions > a:not(.signup-link) { color: var(--ink); }
.admin-link { min-height: 44px; display: inline-flex; align-items: center; font-size: .9rem; }
.signup-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; background: var(--gold); color: #14231a; font-size: .9rem; font-weight: 800; border-radius: var(--r-xs); text-decoration: none; }
.signup-link:hover { background: var(--gold); filter: brightness(1.08); }
.lang-toggle { display: flex; gap: 4px; }
.lang-toggle button { min-height: 44px; min-width: 46px; padding: 0 10px; border: 1px solid var(--line); background: transparent; border-radius: var(--r-sm); cursor: pointer; font-size: .9rem; font-weight: 700; color: var(--muted); }
.lang-toggle button[aria-pressed="true"] { background: var(--gold); color: #14231a; border-color: var(--gold); }
header.top .tag { color: var(--muted); }
header.top .lang-toggle button[aria-pressed="false"] { color: var(--muted); }

/* Theme toggle */
.theme-toggle {
  min-height: 44px; min-width: 44px; padding: 0; border: 1px solid var(--line);
  background: transparent; border-radius: var(--r-sm); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.theme-toggle:hover { background: var(--glass); }
.theme-toggle svg { width: 22px; height: 22px; display: block; }
.theme-toggle .theme-icon-sun { display: none; }
.theme-toggle[aria-pressed="true"] .theme-icon-sun { display: block; }
.theme-toggle[aria-pressed="true"] .theme-icon-moon { display: none; }

/* Sidebar + drawers */
#sidebar { flex: 0 0 300px; position: sticky; top: 64px; max-height: calc(100vh - 76px); overflow-y: auto; padding: 0; background: transparent; border: none; }
.side-box { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 12px; margin-bottom: 12px; box-shadow: var(--shadow); }
#sidebar h2, .side-box h2 { margin: 0 0 6px; font-size: 1.1rem; }
#sidebar h3 { margin: 14px 0 4px; font-size: 1rem; color: var(--gold); font-family: inherit; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
#sidebar p { font-size: .92rem; }
#sidebar .btn { width: 100%; }
#zones-toggle { width: 100%; min-height: 44px; padding: 0 14px; cursor: pointer; background: var(--glass); backdrop-filter: blur(14px); color: var(--gold); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--gold); border-radius: var(--r-xs); font-family: inherit; }
#zones-toggle[aria-expanded="true"] { background: var(--gold); color: #14231a; }
.edge-tab, .edge-drawer { display: none; }
#scrim { position: fixed; inset: 0; background: var(--body-overlay); z-index: 25; }
#scrim[hidden] { display: none; }

/* Hero */
.hero { text-align: center; display: flex; align-items: center; justify-content: center; background: linear-gradient(var(--hero-overlay-start), var(--hero-overlay-end)), var(--body-bg-img) center 60% / cover no-repeat; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 16px; margin: 12px 0; min-height: 110px; box-shadow: var(--shadow); }
.hero-center { flex-direction: column; min-height: 220px; }
.hero .eyebrow { margin: 0 0 4px; font-size: .68rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.hero h1 { margin: 0 0 4px; font-size: 1.15rem; line-height: 1.25; }
.hero .sub { font-style: italic; margin: 4px 0; color: var(--muted); font-size: .9rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-xs); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--gold-dim); white-space: nowrap; box-shadow: none; }
.badge svg { width: 13px; height: 13px; flex: none; }

/* Cards + varieties */
section.card { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 11px 12px; margin: 10px 0; }
section.card > h1, section.card > h2 { margin: 0 0 2px; font-size: 1.1rem; }
.section-rule { height: 1px; width: 56px; border-radius: 2px; background: var(--gold-dim); margin: 6px 0 8px; }
.variety-head { display: flex; align-items: center; gap: 14px; }
.variety-img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; flex: none; cursor: zoom-in; border: 1px solid var(--gold-dim); }
.variety-desc { color: var(--muted); margin: 0 0 2px; font-size: .9rem; }
.stock-pill { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--gold); background: transparent; border: 1px solid var(--gold); border-radius: var(--r-xs); text-transform: uppercase; letter-spacing: .06em; padding: 2px 10px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }

/* Products: hairline rows */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 10px; }
.product { flex-direction: row; align-items: center; gap: 14px; background: transparent; border: none; border-top: 1px solid var(--gold-faint); border-radius: 0; box-shadow: none; padding: 16px 4px; display: flex; }
.product-grid .product:last-child { border-bottom: 1px solid var(--gold-faint); }
.product .pthumb { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); flex: none; border: 1px solid var(--line); }
.product .mid { flex: 1; min-width: 0; }
.product h3 { margin: 0; font-size: 1.05rem; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.product .price { font-size: 1.3rem; font-weight: 800; color: var(--gold); text-shadow: none; font-variant-numeric: tabular-nums; }
.product .per { font-size: .75rem; font-weight: 400; color: var(--muted); }
.product .unit { font-size: .75rem; color: var(--muted); font-style: italic; }
.product .ctl { display: flex; flex-direction: column; gap: 6px; min-width: 120px; }
.product .row { display: flex; flex-direction: column; gap: 3px; align-items: stretch; margin-top: auto; padding-top: 2px; }
.product input[type="number"] { width: 100%; min-height: 44px; font-size: 1rem; }
.product .stepper { display: flex; gap: 0; align-items: stretch; border: 1px solid var(--gold-faint); border-radius: var(--r-xs); overflow: hidden; background: var(--stepper-bg); }
.product .stepper button { flex: 1; min-height: 44px; border: none; background: transparent; border-radius: 0; color: var(--ink); font-size: 1.1rem; font-weight: 800; cursor: pointer; }
.product .stepper .q { flex: 1.2; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; border-left: 1px solid var(--gold-faint); border-right: 1px solid var(--gold-faint); }

/* Buttons */
button.btn, a.btn { min-height: 44px; padding: 0 18px; border: none; border-radius: var(--r-xs); background: var(--gold); color: #14231a; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-family: inherit; box-shadow: none; }
button.btn:hover, a.btn:hover { background: var(--gold); filter: brightness(1.08); }
button.btn.secondary { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
button.btn.danger { background: var(--danger); color: #14231a; }
button.btn:disabled { opacity: .5; cursor: not-allowed; }
#place-order { width: 100%; }
.btn-sm { height: 34px; }
.btn-xs { height: 32px; font-size: 12px; letter-spacing: .06em; }
.copy-btn { min-height: 44px; padding: 0 12px; border: 1px solid var(--gold); border-radius: var(--r-xs); background: transparent; color: var(--gold); font-weight: 800; font-size: .8rem; cursor: pointer; font-family: inherit; letter-spacing: .06em; text-transform: uppercase; }
.copy-btn:active { background: var(--gold); color: #14231a; }
.qty-btn { min-width: 44px; min-height: 44px; font-size: 1.05rem; font-weight: 700; border: 1px solid var(--line); background: var(--input-bg); color: var(--ink); border-radius: var(--r-xs); cursor: pointer; padding: 0 8px; }
.drawer-x { display: block; margin: 0 0 8px auto; min-width: 44px; min-height: 44px; padding: 0 14px; background: var(--leaf); color: #14231a; font-size: 1.4rem; font-weight: 800; line-height: 1; border: none; border-radius: var(--r-sm); cursor: pointer; font-family: inherit; }
.row-flex { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.row-flex.tight { gap: 8px; margin-bottom: 8px; }

/* Tables + totals */
table.cart { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: .92rem; }
table.cart td, table.cart th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--gold-faint); }
table.cart td.qty { white-space: nowrap; }
table.admin { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.admin th, table.admin td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--gold-faint); vertical-align: middle; }
table.admin input, table.admin select { min-height: 44px; }
table.admin select { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 6px; font-size: .88rem; background: var(--input-bg); color: var(--ink); }
.totals { margin-left: auto; max-width: 300px; font-size: .92rem; }
.totals .line { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; }
.totals .grand { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--gold); margin-top: 5px; padding-top: 7px; }

/* Forms */
fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; margin: 10px 0; background: var(--glass-soft); }
legend { font-weight: 700; padding: 0 8px; font-size: .95rem; letter-spacing: .06em; }
label.field { display: block; margin: 8px 0; font-weight: 600; font-size: .92rem; }
label.field > span:first-child { display: block; margin-bottom: 4px; }
label.field small { display: block; font-weight: 400; color: var(--muted); margin-bottom: 4px; font-size: .82rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"], input[type="date"], select, textarea { width: 100%; min-height: 44px; font-size: 1rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--input-bg); color: var(--ink); font-family: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: 3px solid rgba(122,184,255,.4); outline-offset: 1px; }
textarea { min-height: 72px; resize: vertical; }
.radio-row { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 10px; margin: 6px 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--glass-soft); font-size: .92rem; }
.radio-row:has(input:checked) { border-color: var(--gold); background: rgba(232,200,90,.1); }
.radio-row:has(input:disabled) { opacity: .55; }
.radio-row input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--gold); }
.radio-row small { color: var(--muted); }

/* Notices, confirm, pay */
.notice { border: 1px solid var(--gold-dim); background: var(--gold-dim); border-radius: var(--r-md); padding: 10px 12px; margin: 10px 0; font-size: .9rem; }
.notice.warn { border-color: var(--danger); background: rgba(232,138,117,.1); }
.error { color: var(--danger); font-weight: 600; }
.confirm { border: 1px solid var(--gold); border-radius: var(--r-md); padding: 16px; margin: 12px 0; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.confirm h2 { margin: 0 0 4px; color: var(--ink); font-size: 1.2rem; }
.confirm p { color: var(--ink); }
.pay-box { background: var(--stepper-bg); border: 1px dashed var(--gold); border-radius: var(--r-sm); padding: 10px 14px; margin: 10px 0; }
.pay-box code { font-size: 1rem; font-weight: 700; }
.pay-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.pay-line code { background: var(--input-bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 8px; font-size: .95rem; }
.btn-confirm { display: inline-block; padding: 6px 10px; border-radius: var(--r-sm); text-decoration: none; margin-right: 6px; font-size: .85rem; background: var(--input-bg); color: var(--ink); border: 1px solid var(--gold); }
.btn-confirm.receipt { background: #8b5e3c; border-color: #a07a50; }

/* Reviews, zones, details */
.review { border-left: 1px solid var(--gold); border-radius: 0; padding: 4px 0 4px 10px; margin: 8px 0; }
.review .stars { color: var(--gold); font-size: .95rem; letter-spacing: .1em; }
.review p { margin: 4px 0; }
.review .who { color: var(--muted); font-size: .85rem; }
details summary { cursor: pointer; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; color: var(--gold); }
.zone-fee { font-size: .86rem; color: var(--muted); margin: 6px 0 0; min-height: 1.4em; }
.zone-fee.ok { color: var(--ink); font-weight: 700; }
.zone-fee.err, #su-status.err { color: #ff9d9d; }
#su-status.ok { color: #9fe6a8; }

/* Wizard + slots */
.wizard-progress {
  position: sticky;
  top: 61px;
  z-index: 14;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 6px 0 12px;
  font-size: .8rem;
  background: var(--topbar);
  border-bottom: 1px solid var(--line);
  padding: 6px 10px;
}
.wizard-progress button { background: transparent; border: none; color: var(--muted); font-family: inherit; cursor: pointer; padding: 3px 6px; }
.wizard-progress button[aria-current="step"] { color: var(--ink); }
.wizard-progress button span { display: inline-block; width: 22px; height: 22px; line-height: 22px; border-radius: 50%; background: var(--line); text-align: center; font-size: .7rem; font-weight: 700; margin-right: 2px; }
.wizard-progress button[aria-current="step"] span { background: var(--gold); color: #14231a; }
.wnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.wnav .btn { background: var(--gold); color: #14231a; font-weight: 800; border: none; }
.wnav .btn.secondary { background: var(--glass); color: var(--ink); }
.wnav .btn[disabled] { opacity: .5; cursor: not-allowed; }
[data-wstep] { scroll-margin-top: 116px; }
#slot { display: none; }
table.slot-grid { border-collapse: collapse; }
.slot-grid th { font-size: .7rem; padding: 6px; white-space: nowrap; }
.slot-grid td { padding: 2px; }
.slot-cell { min-width: 40px; min-height: 28px; width: 100%; border: 1px solid var(--line); background: var(--glass); border-radius: var(--r-sm); cursor: pointer; color: var(--ink); font-size: 1rem; font-weight: 700; transition: background .15s ease; text-align: center; padding: 2px; }
.slot-cell.open { background: rgba(232,200,90,.15); border-color: var(--gold); color: var(--ink); }
.slot-cell .tk { display: block; font-size: .7rem; font-weight: 400; color: var(--muted); }
.slot-grid-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 8px 0; }
.slot-day { display: contents; }
.slot-day-head { grid-column: 1 / -1; font-size: .75rem; font-weight: 700; color: var(--gold); margin-top: 6px; letter-spacing: .14em; text-transform: uppercase; }
.slot-pick { display: flex; flex-direction: column; gap: 2px; align-items: center; min-height: 52px; padding: 8px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--glass); color: var(--ink); cursor: pointer; font-size: .9rem; }
.slot-pick strong { font-size: 1rem; }
.slot-pick span { font-size: .72rem; color: var(--muted); }
.slot-pick:disabled { opacity: .35; cursor: not-allowed; }

/* Modal, toast, summary, bars */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: var(--body-overlay); }
.modal-content { position: relative; z-index: 1; background: var(--glass-strong); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }

[data-theme="light"] .modal-backdrop { background: var(--body-overlay); }
[data-theme="light"] .modal-content { box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; right: 12px; background: transparent; border: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-content h2 { margin: 0 0 16px; font-size: 1.1rem; color: var(--gold); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.modal-content .btn { width: 100%; margin-top: 8px; }
.modal-disclosure { font-size: .75rem; color: var(--muted); margin: 16px 0 8px; text-align: center; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; margin: 16px auto; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--glass-strong); color: var(--ink); border: 1px solid var(--gold); border-radius: var(--r-sm); padding: 10px 16px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 500; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.order-summary { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; background: var(--glass-soft); font-size: .88rem; }
.order-summary h3, #order-summary h3 { margin: 0 0 6px; font-size: .8rem; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.order-summary ul { margin: 0 0 6px; padding-left: 18px; }
.order-summary .sum-line { display: flex; justify-content: space-between; padding: 2px 0; }
.order-summary .sum-total { font-weight: 800; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }
#mobile-bar { display: none; }
#mobile-bar-info { font-size: .85rem; font-weight: 700; }
#mobile-bar .btn { min-height: 44px; }
#cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 300; background: var(--glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--gold-faint); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow); }
#cookie-banner p { margin: 6px 0; font-size: .85rem; }
footer { margin-top: 16px; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; text-align: center; }

/* Admin */
.admin-layout { display: flex; gap: 2%; align-items: flex-start; }
.wrap:has(.admin-layout) { max-width: 96%; }
.admin-main { flex: 1 1 auto; min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tabs button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); border-radius: var(--r-sm); cursor: pointer; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.tabs button[aria-current="true"] { background: var(--gold); color: #14231a; border-color: var(--gold); }
.tabpanel { display: none; }
.tabpanel.active { display: block; }
.pack-slip { border: 1px solid var(--gold); border-radius: var(--r-sm); padding: 16px; background: var(--glass); margin: 10px 0; }
.pack-slip h3 { margin-top: 0; }
#selftest { border: 1px dashed var(--focus); border-radius: var(--r-sm); padding: 10px 12px; margin: 12px 0; background: var(--stepper-bg); }
#selftest.fail { border-color: var(--danger); }
#selftest pre { white-space: pre-wrap; font-size: .82rem; }
#addr-map { height: 280px; border-radius: var(--r-sm); margin: 8px 0; z-index: 1; border: 1px solid var(--line); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; background: var(--body-overlay); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(90vw, 700px); max-height: 85vh; border-radius: var(--r-sm); border: 1px solid var(--gold); }
.lightbox .drawer-x { position: absolute; top: 16px; right: 16px; margin: 0; }

[data-theme="light"] .lightbox { background: var(--body-overlay); }

/* Responsive */
@media (min-width: 700px) {
  .hero { padding: 28px 24px; }
  .hero h1, .hero-center h1 { font-size: 1.5rem; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  #place-order { width: auto; }
}
@media (max-width: 980px) {
  .page { flex-direction: column; padding: 0 12px 32px; }
  .page > .wrap { max-width: none; padding-top: 8px; }
  #sidebar { display: none; }
  nav[aria-label="Info panels"] { display: flex; gap: 8px; position: sticky; top: 0; z-index: 15; background: var(--topbar); padding: 8px 10px; margin: 0; border-bottom: 1px solid var(--line); max-width: 100%; box-sizing: border-box; }
  header.top { position: static; flex-wrap: nowrap; height: auto; min-height: 0; }
  .brand-center { position: static; transform: none; width: auto; justify-content: flex-start; margin: 0; flex: none; }
  .top-actions { width: auto; justify-content: flex-end; margin-left: auto; }
  .wizard-progress { position: sticky; top: 61px; z-index: 14; background: var(--topbar); border-bottom: 1px solid var(--line); margin: 0 -12px 12px; padding: 6px 10px; }
  .edge-tab { display: inline-flex; flex: 1; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 3px 6px; background: transparent; border: none; color: var(--muted); font-size: .8rem; font-weight: 700; cursor: pointer; font-family: inherit; gap: 6px; }
  .edge-tab > span:first-child { font-size: .8rem; font-weight: 700; }
  .edge-tab[aria-expanded="true"] { color: var(--ink); }
  [data-wstep] { scroll-margin-top: 130px; }
  .edge-drawer { display: block; position: fixed; left: 0; top: 0; bottom: 0; z-index: 30; width: min(340px, 88vw); background: var(--glass-strong); backdrop-filter: blur(18px); color: var(--ink); border-right: 1px solid var(--gold); padding: 16px 14px; overflow-y: auto; transform: translateX(-105%); transition: transform .2s ease, visibility .2s; visibility: hidden; }
  .edge-drawer.open { transform: none; visibility: visible; }
  .edge-drawer .side-box { background: var(--glass); }
  .edge-drawer .side-box .btn { width: 100%; margin: 4px 0; }
}
@media (max-width: 700px) {
  #slot-grid-shop { display: none; }
  #slot { display: block; width: 100%; }
  .hero { padding: 12px; min-height: 0; }
  .hero h1 { font-size: 1.05rem; }
  .badge { font-size: .7rem; padding: 4px 8px; }
  section.card { padding: 8px; }
  .wizard-progress { font-size: .7rem; gap: 2px; top: 57px; }
  section.card, .hero { scroll-margin-top: 64px; }
  .wwin[hidden] { display: none; }
  body.has-cookie #mobile-bar { display: none !important; }
  .product .price { font-size: 1.1rem; }
  body.has-items #mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: var(--ink); border-top: 1px solid var(--gold); }
  body.has-items { padding-bottom: 78px; }
}
@media (max-width: 700px) {
  .product { flex-wrap: nowrap; gap: 10px; }
  .product .ctl { flex: 0 0 150px; min-width: 0; }
  .product .ctl .btn { width: 100%; }
  .product .stepper { flex-direction: row; width: 100%; }
  .product .pthumb { display: none; }
  .variety-img { width: 104px; height: 104px; }
  header.top { flex-wrap: wrap; }
  .brand .tag { display: none; }
  .brand-center { font-size: 1rem; }
  .brand-center svg { width: 24px; height: 24px; }
  .top-actions { gap: 4px; }
  .signup-link { padding: 0 10px; font-size: .8rem; white-space: nowrap; }
  .admin-link { font-size: .8rem; padding: 0 8px; }
  .lang-toggle button { min-width: 40px; min-height: 40px; font-size: .8rem; }
  #cookie-banner p:has(.btn) { display: flex; flex-direction: column; gap: 8px; }
  #cookie-banner .btn { width: 100%; }
}
@media (max-width: 480px) {
  .brand-center .tag { font-size: .6rem; }
}
@media print {
  header.top, .tabs, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
