:root {
  --ink: #0c1f14;
  --ink-soft: #166534;
  --muted: #5a7a68;
  --paper: #eef8f1;
  --paper-2: #d8ebe0;
  --paper-3: #f6fbf8;
  --navy: #14532d;
  --navy-mid: #166534;
  --navy-bright: #16a34a;
  --gold: #22c55e;
  --gold-soft: #4ade80;
  --gold-deep: #15803d;
  --blue: var(--navy-mid);
  --blue-mid: var(--navy-bright);
  --blue-bright: #4ade80;
  --blue-soft: #86efac;
  --blue-deep: var(--navy);
  --blue-glow: var(--gold-soft);
  --orange: #84cc16;
  --orange-soft: #bef264;
  --teal: var(--navy-mid);
  --teal-mid: var(--navy-bright);
  --teal-bright: var(--blue-bright);
  --teal-deep: var(--navy);
  --amber: var(--orange);
  --amber-soft: var(--orange-soft);
  --brand-grad: linear-gradient(118deg, #022c22 0%, #14532d 28%, #166534 55%, #16a34a 78%, #4ade80 100%);
  --brand-grad-soft: linear-gradient(145deg, #4ade80 0%, #22c55e 55%, #86efac 100%);
  --brand-grad-deep: linear-gradient(135deg, #022c22 0%, #14532d 45%, #166534 100%);
  --surface-grad: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  --coral: #dc2626;
  --line: rgba(20, 83, 45, 0.14);
  --shadow: 0 22px 48px rgba(20, 83, 45, 0.16);
  --shadow-sm: 0 8px 20px rgba(22, 163, 74, 0.12);
  --radius: 12px;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", "Bricolage Grotesque", system-ui, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 480px at 0% -5%, rgba(74, 222, 128, 0.28), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(22, 163, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #f6fbf8 0%, var(--paper) 45%, #cfe8d8 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100;
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip:focus { left: 8px; }

/* Header — solid navy bar */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(2, 44, 34, 0.28);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--brand-grad-soft);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--brand-grad-soft);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
  transition: transform 0.25s ease;
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.03em;
  color: #fff;
}
.brand-text em {
  font-style: normal; font-size: 0.68rem; color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.header-search {
  display: flex; align-items: center; gap: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.header-search:focus-within {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}
.header-search input {
  flex: 1; border: 0; outline: 0; padding: 12px 16px;
  background: transparent; min-width: 0; color: #fff;
}
.header-search input::placeholder { color: rgba(255, 255, 255, 0.45); }
.btn-icon {
  border: 0;
  background: var(--gold);
  color: #fff;
  width: 46px; height: 46px; cursor: pointer;
  font-weight: 800;
  transition: filter 0.15s ease;
}
.btn-icon:hover { filter: brightness(1.08); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.linkish {
  border: 0; background: transparent; color: var(--navy);
  font-weight: 600; cursor: pointer; padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.linkish:hover { background: rgba(20, 83, 45, 0.08); }
.header-actions .linkish { color: rgba(255, 255, 255, 0.85); }
.header-actions .linkish:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cart-btn {
  border: 0; cursor: pointer;
  background: var(--gold);
  color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
  text-decoration: none;
}
.cart-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.cart-count {
  background: #fff;
  color: var(--navy);
  min-width: 22px; height: 22px; border-radius: 6px;
  display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 800;
}
.menu-toggle {
  display: none; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent;
  color: #fff; width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
}
.dept-bar {
  max-width: var(--max); margin: 0 auto;
  padding: 0 20px 14px;
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none;
}
.dept-bar::-webkit-scrollbar { display: none; }
.dept-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px; padding: 8px 14px;
  font-size: 0.86rem; font-weight: 600; color: rgba(255, 255, 255, 0.82);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.dept-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(74, 222, 128, 0.4);
}
.dept-chip.on {
  background: var(--gold);
  color: #fff;
  border-color: transparent;
}

/* Layout */
#main { max-width: var(--max); margin: 0 auto; padding: 0 16px 48px; min-height: 50vh; }
.section { padding-top: 28px; }
.section-tight { padding-top: 22px; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -0.03em; color: var(--navy);
}
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.muted { color: var(--muted); }
.tight { margin: 0; }
.panel-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 11px 18px;
  font-weight: 700; cursor: pointer; text-decoration: none;
  font-family: var(--font-display);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.28);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-dark {
  background: var(--brand-grad-deep);
  color: #fff;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  color: var(--navy);
}
.btn-ghost:hover { background: #fff; box-shadow: var(--shadow-sm); }
.btn-danger { background: var(--coral); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Brand-first full-bleed hero — new aisle banner */
.hero {
  margin: 0 calc(50% - 50vw) 0;
  width: 100vw;
  min-height: min(72vh, 560px);
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(2, 44, 34, 0.92) 0%, rgba(20, 83, 45, 0.78) 42%, rgba(20, 83, 45, 0.35) 72%, rgba(34, 197, 94, 0.18) 100%),
    url("../images/hero-market-aisle.png") center / cover no-repeat,
    var(--brand-grad-deep);
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 85% 40%, rgba(34, 197, 94, 0.22), transparent 60%);
  pointer-events: none;
  animation: heroGlow 4s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 100px;
  background: linear-gradient(180deg, transparent, rgba(240, 253, 244, 0.85));
  pointer-events: none;
}
.hero-compact { min-height: min(68vh, 520px); }
@keyframes heroIn {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}
@keyframes heroGlow {
  from { opacity: 0.7; }
  to { opacity: 1; }
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(56px, 12vh, 100px) 20px clamp(48px, 9vh, 84px);
}
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  animation: riseIn 0.6s ease 0.08s both;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7.5vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
  font-weight: 800;
  animation: riseIn 0.65s ease 0.14s both;
}
.hero-brand span {
  display: block;
  color: var(--gold-soft);
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.hero p {
  margin: 0 0 26px;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  animation: riseIn 0.65s ease 0.22s both;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 10px;
  animation: riseIn 0.65s ease 0.3s both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero .btn-primary {
  background: var(--gold-soft);
  color: #14532d;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  padding: 13px 24px;
}
.hero .btn-primary:hover { filter: brightness(1.06); }
.hero-ghost {
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(6px);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.product-card {
  background: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit; color: inherit;
  text-decoration: none;
  position: relative;
}
.product-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--brand-grad-soft);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.product-card-text { min-height: 118px; }
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(34, 197, 94, 0.45);
}
.product-card:hover::before { opacity: 1; }
.product-body { padding: 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-top { display: grid; gap: 5px; }
.product-dept {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gold-deep); font-weight: 700;
}
.product-name { font-weight: 700; line-height: 1.28; margin: 0; font-size: 0.94rem; color: var(--ink); }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.price {
  font-family: var(--font-display); font-weight: 800;
  color: var(--navy);
}
.add-mini {
  border: 0;
  background: var(--navy);
  color: #fff;
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 1.1rem;
  display: inline-grid; place-items: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.add-mini:hover { transform: scale(1.06); background: var(--navy-mid); }

/* Panels / forms */
.panel {
  background: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stack { display: grid; gap: 12px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  background: #fff;
}
.tabs { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px; cursor: pointer; font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tab.on {
  background: var(--navy);
  color: #fff;
  border-color: transparent;
}

/* Cart / checkout */
.cart-layout, .checkout-layout, .account-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 16px;
  padding-top: 18px;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line-text { grid-template-columns: 1fr auto; }
.qty-ctrl { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty-ctrl button {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer;
  transition: background 0.15s ease;
}
.qty-ctrl button:hover { background: var(--paper-2); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; }
.summary-row.total {
  font-size: 1.18rem; font-weight: 800; font-family: var(--font-display);
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--navy);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-top: 18px;
  max-width: 560px;
}
.product-detail-text { grid-template-columns: 1fr; }
.detail-copy-only {
  background: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.detail-copy-only::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--brand-grad-soft);
}
.detail-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  margin: 4px 0 6px; line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.detail-price {
  font-size: 1.75rem; font-family: var(--font-display); font-weight: 800;
  color: var(--navy);
  margin: 12px 0;
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.pay-box {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.1), #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.pay-box-account {
  background: linear-gradient(145deg, rgba(20, 83, 45, 0.06), #fff);
  border-color: rgba(20, 83, 45, 0.14);
}
.pay-box-contact {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.12), #fff);
  border-color: rgba(34, 197, 94, 0.28);
  margin-top: 10px;
}
.pay-box h3 { margin: 0 0 8px; font-size: 0.95rem; font-family: var(--font-display); }
.pay-row { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0; font-size: 0.92rem; }
.pay-row-highlight {
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0;
  border: 1px dashed rgba(34, 197, 94, 0.5);
}
.pay-row a { color: var(--navy); font-weight: 700; text-decoration: none; }
.pay-note { margin: 8px 0 0; color: var(--muted); font-size: 0.88rem; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.04em; font-size: 1.05rem; }
.pay-methods { display: grid; gap: 8px; }
.pay-method {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  background: #fff; cursor: pointer; font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.pay-method:has(input:checked) {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.15), #fff);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

.receipt-wrap { max-width: 640px; margin: 0 auto; }
.receipt-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 14px; }
.receipt-brand {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  color: var(--navy);
}
.receipt-stamp {
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em;
  padding: 6px 10px; border-radius: 8px; border: 2px solid currentColor;
}
.receipt-paid .receipt-stamp { color: var(--navy-mid); }
.receipt-pending .receipt-stamp { color: #a15c12; }
.receipt-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px;
  margin-bottom: 14px; font-size: 0.88rem;
}
.receipt-meta span { display: block; color: var(--muted); font-size: 0.75rem; }
.receipt-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.receipt-table th, .receipt-table td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.receipt-table th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.receipt-totals { margin-top: 10px; }
.receipt-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 18px; align-items: center; }

.order-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px;
  background: var(--surface-grad);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.order-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.order-card h4 { margin: 0 0 4px; }
.pill {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  background: var(--brand-grad-soft); color: #14532d;
}

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 10px;
  z-index: 80; box-shadow: var(--shadow); max-width: 90vw;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.toast.has-checkout-bar { bottom: 92px; }
.toast[hidden] { display: none; }

.checkout-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.2) 0%, rgba(236, 253, 245, 0.96) 28%, #ecfdf5 100%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(20, 83, 45, 0.1);
  backdrop-filter: blur(10px);
}
.checkout-bar[hidden] { display: none; }
.checkout-bar-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.checkout-bar-copy {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.checkout-bar-copy strong {
  font-family: var(--font-display);
  font-size: 0.95rem; color: var(--ink);
}
.checkout-bar-copy span {
  font-size: 0.88rem; font-weight: 700; color: var(--navy);
}
.checkout-bar-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.checkout-bar-actions .btn { text-decoration: none; white-space: nowrap; }
.checkout-bar-cart { background: #fff; }
body.has-checkout-bar { padding-bottom: 88px; }

.site-footer {
  position: relative;
  background: var(--brand-grad-deep);
  color: rgba(255, 255, 255, 0.9);
  padding: 42px 16px 28px; margin-top: 40px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 240px at 10% 0%, rgba(34, 197, 94, 0.2), transparent 60%),
    radial-gradient(500px 220px at 100% 100%, rgba(22, 163, 74, 0.35), transparent 55%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  max-width: var(--max); margin: 0 auto 18px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px;
}
.brand-footer .brand-mark {
  background: var(--gold-soft);
  color: #14532d;
  box-shadow: none;
}
.brand-footer .brand-text strong {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #fff;
}
.brand-footer .brand-text em { color: rgba(255, 255, 255, 0.75); }
.site-footer a {
  display: block; color: rgba(255, 255, 255, 0.82); text-decoration: none; margin: 5px 0;
  transition: color 0.15s ease;
}
.site-footer a:hover { color: var(--gold-soft); }
.site-footer h3 {
  margin: 0 0 10px; color: var(--gold-soft);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--font-display);
}
.footer-copy {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.55);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-search { grid-column: 1 / -1; order: 3; }
  .menu-toggle { display: none; }
  .cart-layout, .checkout-layout, .account-layout, .footer-grid, .form-grid, .receipt-meta {
    grid-template-columns: 1fr;
  }
  .hero-compact { min-height: min(60vh, 440px); }
  .hero {
    background:
      linear-gradient(180deg, rgba(2, 44, 34, 0.88) 0%, rgba(20, 83, 45, 0.72) 50%, rgba(20, 83, 45, 0.55) 100%),
      url("../images/hero-market-aisle.png") center 40% / cover no-repeat,
      var(--brand-grad-deep);
  }
  .header-actions .linkish { display: none; }
}

@media (max-width: 560px) {
  .checkout-bar-actions .checkout-bar-cart { display: none; }
  .checkout-bar-inner { gap: 10px; }
}

@media print {
  .site-header, .site-footer, .receipt-actions, .toast, .checkout-bar { display: none !important; }
  body { background: #fff; }
  .receipt-wrap { box-shadow: none; border: 0; }
  .receipt-brand {
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    color: #000 !important;
  }
}
