@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  /* Afromart red theme with kente gold accents */
  --ink: #2a1414;
  --ink-soft: #4a2626;
  --muted: #7d5656;
  --clay: #c0192b;
  --clay-deep: #7f0d18;
  --clay-soft: #d43a3a;
  --ochre: #e0a12f;
  --gold: #f4cf7a;
  --green: #3c6b45;
  --green-deep: #2c5234;
  --indigo: #22385f;
  --cream: #fdeeee;
  --paper: #fff8f8;
  --sand: #f7dcdc;
  --line: #f0c9c9;
  --shadow: 0 16px 34px rgb(120 12 24 / 14%);
  --shadow-sm: 0 6px 16px rgb(120 12 24 / 10%);
  --serif: 'Fraunces', 'DM Serif Display', Georgia, serif;
  --sans: 'Plus Jakarta Sans', 'DM Sans', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 15px/1.55 var(--sans);
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-optical-sizing: auto; }
.sprite { position: absolute; }
.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; }

/* A woven kente band reused as a border / divider. */
.kente {
  background: repeating-linear-gradient(90deg,
    var(--clay) 0 26px, var(--ochre) 26px 38px, var(--green) 38px 64px,
    var(--indigo) 64px 76px, var(--gold) 76px 88px);
}

.announcement { position: relative; min-height: 0; background: #0f2418; color: #f2ead8; transition: opacity .2s ease; }
.announcement::before { content: ''; display: block; height: 4px; background: repeating-linear-gradient(90deg, var(--clay) 0 26px, var(--ochre) 26px 38px, var(--green) 38px 64px, var(--indigo) 64px 76px, var(--gold) 76px 88px); }
.announcement-inner { min-height: 28px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 3px 40px 2px 18px; font-size: 11px; font-weight: 600; letter-spacing: .01em; text-align: center; }
.announcement-inner span[aria-hidden] { color: var(--gold); font-size: 13px; }
.announcement-dot { color: var(--ochre); }
.announce-close { position: absolute; top: 4px; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 0; border-radius: 999px; background: transparent; color: #f2ead8; font-size: 12px; cursor: pointer; opacity: .7; }
.announce-close:hover, .announce-close:focus-visible { opacity: 1; background: rgb(255 255 255 / 12%); }
.announcement.closed { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0;
  background: linear-gradient(120deg, #20482f 0%, #16331f 58%, #0f2418 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgb(6 18 11 / 35%);
  border-bottom: 1.5px solid rgb(244 207 122 / 35%);
}
.mobile-menu-btn { display: none; gap: 6px; align-items: center; background: rgb(244 207 122 / 14%); border: 1px solid rgb(244 207 122 / 45%); color: #ffd98f; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.site-header.is-scrolled .announcement { display: none; }
.site-header.is-scrolled .service-nav { display: block; max-height: 0; padding-block: 0; overflow: hidden; }
.header-bar {
  min-height: 66px;
  padding: 8px max(40px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: 1fr minmax(260px, 480px) 1fr;
  align-items: center;
  gap: 32px;
  transition: min-height .2s ease;
}
.site-header.is-scrolled .header-bar { min-height: 56px; }
@media (max-width: 980px) {
  .mobile-menu-btn { display: inline-flex; align-items: center; }
  .service-nav { display: none; padding: 10px 16px 14px; }
  .service-nav.open { display: block; }
  .service-nav-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .header-bar { grid-template-columns: auto 1fr auto; gap: 10px; padding: 9px 14px; }
  .site-header.is-scrolled .service-nav { display: none; }
  .site-header.is-scrolled .service-nav.open { display: block; }
  .mobile-menu-btn { grid-column: 3; grid-row: 1; }
  .brand { grid-column: 1; grid-row: 1; }
  .search-box { grid-column: 1 / -1; grid-row: 2; order: 3; }
  .header-actions { grid-column: 2; grid-row: 1; justify-content: flex-end; }
}
.header-bar {
  min-height: 72px;
  padding: 10px max(40px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: 1fr minmax(260px, 480px) 1fr;
  align-items: center;
  gap: 32px;
}
.site-header .brand-words { color: #fff8ec; }
.site-header .brand small { color: var(--gold); }
.site-header #acct a, .site-header #acct span { color: #f2ead8; }
.site-header #acct button { color: var(--gold); }
.site-header .install-app { border-color: rgb(244 207 122 / 60%); color: #ffd98f; }
.site-header .track-link { border-color: #fff; color: #f2ead8; }
.site-header .track-link:hover { background: #f2ead8; color: #16331f; }
.site-header .cart-link { background: var(--gold); color: #5c2a12; }
.site-header .cart-link #cart-count { background: var(--clay); color: #fff7ec; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font: 26px/.9 var(--serif); }
.brand-mark { width: 44px; height: 44px; flex: none; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand-words { display: flex; flex-direction: column; }
.brand-light { color: var(--ink-soft); }
.brand small { margin-top: 5px; color: var(--clay); font: 600 8px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.brand-bold { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.brand-red { color: #e41e24; }
.search-box { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-sm); }
.search-icon { color: var(--green); font: 26px/1 var(--sans); transform: rotate(-20deg); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-box input::placeholder { color: #a08c74; }
.search-box kbd { color: var(--muted); font: 600 9px var(--sans); letter-spacing: .12em; }
.search-go { flex: none; margin: 0 -9px 0 2px; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--clay); color: #fff7ec; font: 700 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.search-go:hover { background: var(--clay-deep); }
.search-go:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; min-width: 0; font-size: 12px; }
#acct { display: flex; align-items: center; gap: 10px; text-align: right; }
#acct a { text-decoration: underline; text-underline-offset: 3px; }
#acct button { border: 0; padding: 0; background: none; color: var(--clay); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.cart-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--clay); color: #fff7ec; font-size: 11px; font-weight: 700; box-shadow: var(--shadow-sm); }
.cart-icon { font-size: 14px; }
#cart-count { min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; background: var(--gold); color: var(--clay-deep); font-size: 10px; }
.install-app { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; border: 1px solid var(--green); border-radius: 999px; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; }
.install-app[hidden] { display: none; }
.install-app span { font-size: 16px; }

.service-nav { border-top: none; padding: 9px max(40px, calc((100vw - 1240px) / 2)); background: transparent; }
.service-nav-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; }
.service-nav a {
  color: #f5eddc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 7px 16px;
  border: 1px solid rgb(245 237 220 / 18%);
  border-radius: 999px;
  background: transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.service-nav a:hover, .service-nav a:focus-visible {
  color: #5c2a12;
  background: var(--gold);
  border-color: var(--gold);
}

/* Departments: a parallel grid of category tiles below the hero. */
.departments-section { padding: 8px 0 44px; }
.department-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.department-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.department-tile:hover { border-color: var(--ochre); transform: translateY(-3px); box-shadow: var(--shadow); }
.department-tile:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.department-tile.is-active { border-color: var(--clay); background: linear-gradient(180deg, #fff8ee, #fdeeda); }
.department-art { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(150deg, #f7e8d4, #edd5b4); }
.department-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.department-tile:hover .department-art img { transform: scale(1.05); }
.department-emoji { font-size: 44px; line-height: 1; filter: drop-shadow(0 6px 8px rgb(37 54 37 / 16%)); }
.department-arrow { position: absolute; top: 9px; right: 9px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px; background: rgb(255 253 248 / 90%); color: var(--clay-deep); font-size: 13px; font-weight: 700; box-shadow: var(--shadow-sm); }
.department-text { display: flex; flex-direction: column; gap: 2px; padding: 12px 15px 14px; }
.department-name { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.2; }
.department-tile.is-active .department-name { color: var(--clay); }
.department-sub { color: var(--muted); font-size: 11px; line-height: 1.4; }
.department-meta { color: var(--muted); font-size: 10.5px; font-weight: 600; }

/* Packs: curated bundles between the departments and the promise strip. */
.packs-section { padding: 0 0 48px; }
.bundle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.bundle-grid .bundle-card { height: 100%; }

main { max-width: 1320px; padding: 0 40px; margin: 0 auto; }
.message { min-height: 0; margin: 0; color: var(--clay); font-size: 13px; font-weight: 600; }
.message:not(:empty) { padding: 10px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; width: 100%; overflow: hidden; display: block; margin: 0 0 44px; padding-bottom: 52px; background: radial-gradient(1100px 640px at 22% 0%, #27563e 0%, #16301f 55%, #0f2418 100%); color: #fff; }
.hero-photo { display: block; width: min(1240px, calc(100% - 80px)); margin: 0 auto; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgb(5 14 9 / 45%); }
.hero-photo img { display: block; width: 100%; height: clamp(240px, 38vw, 520px); object-fit: cover; object-position: center 38%; }
.hero-copy { position: relative; z-index: 2; width: min(1240px, calc(100% - 80px)); margin: 0 auto; padding: 60px 0 34px; }
.eyebrow { margin: 0 0 10px; color: var(--clay); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { max-width: 720px; margin: 0; font: 700 clamp(44px, 5.6vw, 74px)/1.02 var(--serif); letter-spacing: -.015em; color: #fff8ec; }
.hero-sub { max-width: 520px; margin: 20px 0 26px; color: #e6efe1; font-size: 15px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--gold); color: var(--clay-deep); font-size: 12px; font-weight: 700; letter-spacing: .02em; box-shadow: var(--shadow-sm); }
.hero-cta::after { content: '→'; font-size: 15px; }
.hero-cta.ghost::after { content: ''; }
.hero-cta:hover { background: #ffdb92; }
.hero-cta.ghost { background: transparent; color: #fdf6ea; box-shadow: inset 0 0 0 1.5px rgb(253 246 234 / 60%); }
.hero-cta.ghost:hover { background: rgb(253 246 234 / 12%); }
.hero-offer { margin: 18px 0 0; color: #d7e4d1; font-size: 12px; font-weight: 600; }
.hero-note { position: absolute; z-index: 2; right: max(40px, calc((100vw - 1240px) / 2)); bottom: 20px; margin: 0; color: #dbe7d3; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero-note span { margin-right: 7px; color: var(--gold); }

/* ---------- Section headings ---------- */
.shop-section { padding-bottom: 68px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.section-heading h2, .account-section h2, .orders-section h2 { margin: 0; font: 600 38px/1.05 var(--serif); letter-spacing: -.01em; }
.section-heading.centered { flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-bottom: 30px; }
.section-heading.centered .shop-caption { max-width: 560px; }
.shop-caption { max-width: 360px; margin: 0 0 3px; color: var(--muted); font-size: 12.5px; }
.product-count { flex: none; margin-bottom: 3px; color: var(--clay); font-size: 11px; font-weight: 700; }

/* ---------- Roots strip ---------- */
.roots { padding: 8px 0 66px; }
.roots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.root-card { padding: 26px 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm); }
.root-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 16px; background: linear-gradient(150deg, #fbe8c9, #f4d49a); font-size: 26px; }
.root-card:nth-child(2) .root-icon { background: linear-gradient(150deg, #e2eede, #c6ddc0); }
.root-card:nth-child(3) .root-icon { background: linear-gradient(150deg, #f6ddd2, #eec0ab); }
.root-card h3 { margin: 0 0 8px; font: 600 22px/1.15 var(--serif); }
.root-card p { margin: 0; color: var(--muted); font-size: 13px; }
.bundle-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.bundle-cats .chip { padding: 6px 10px; border-radius: 999px; background: var(--paper); border: 2px solid var(--line); font-size: 11px; font-weight: 600; }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); animation: reveal .45s ease both; transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease; }
.product-card:hover { transform: translateY(-5px); border-color: #ddbfa4; box-shadow: var(--shadow); }
.product-card:nth-child(2) { animation-delay: 40ms; }
.product-card:nth-child(3) { animation-delay: 80ms; }
.product-card:nth-child(4) { animation-delay: 120ms; }
.product-card:nth-child(5) { animation-delay: 160ms; }
.product-card:nth-child(6) { animation-delay: 200ms; }
.product-art { height: 158px; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(150deg, #f6e6d2, #ecd4b4); }
.product-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-art img { transform: scale(1.05); }
.product-art::before { position: absolute; z-index: 1; inset: auto 0 0; height: 45%; content: ''; background: linear-gradient(0deg, rgb(43 23 12 / 28%), transparent); }
.product-art span { position: relative; z-index: 1; font-size: 62px; filter: drop-shadow(0 8px 6px rgb(37 54 37 / 18%)); transition: transform .25s ease; }
.product-card:hover .product-art span { transform: scale(1.08) rotate(-4deg); }
.product-art[data-tone="spices"] { background: linear-gradient(150deg, #f7ddd0, #eebba6); }
.product-art[data-tone="beverages"] { background: linear-gradient(150deg, #e6eef2, #cbdee7); }
.product-art[data-tone="frozen"] { background: linear-gradient(150deg, #e2eff1, #c6e1e5); }
.product-art[data-tone="fresh"] { background: linear-gradient(150deg, #e8f0dd, #cbe0bc); }
.product-art[data-tone="pantry"] { background: linear-gradient(150deg, #f6e6d2, #ecd4b4); }
.product-info { flex: 1; display: flex; flex-direction: column; padding: 15px 16px 16px; }
.product-category { margin: 0 0 5px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.product-info h3 { min-height: 44px; margin: 0; font: 600 19px/1.15 var(--serif); }
.product-description { min-height: 36px; margin: 6px 0 15px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.product-buy { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.product-price { font-size: 14px; font-weight: 700; }
.stock-label { flex-basis: 100%; color: var(--clay); font-size: 10px; font-weight: 600; }
.bundle-items-line { margin: 7px 0 0; color: var(--green); font-size: 10px; font-weight: 600; }
.strike { margin-right: 5px; color: var(--muted); font-size: 11px; font-weight: 400; text-decoration: line-through; }
.bundle-card { border-color: #e4c9a6; background: linear-gradient(180deg, #fffdf8, #fdf3e0); }
.add-button, .checkout-button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--clay); color: #fff7ec; font-size: 11px; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.add-button:hover, .checkout-button:hover { background: var(--clay-deep); transform: translateY(-1px); }
.add-button:disabled { cursor: not-allowed; background: #b9ab9a; }
.empty-state { grid-column: 1 / -1; padding: 30px; border: 1px dashed #cdb79c; border-radius: 18px; color: var(--muted); text-align: center; }

/* ---------- Story band ---------- */
.story { margin: 4px 0 64px; border-radius: 26px; overflow: hidden; background: radial-gradient(120% 140% at 85% 15%, #93401c 0%, #6d2a10 55%, #4f1d0a 100%); color: #fdeede; }
.story-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); gap: 30px; align-items: center; padding: 44px 46px; }
.story .eyebrow { color: var(--gold); }
.story h2 { margin: 0 0 14px; font: 600 34px/1.08 var(--serif); letter-spacing: -.01em; }
.story p { margin: 0 0 20px; max-width: 560px; color: #f3ddc6; font-size: 14px; }
.region-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 26px; list-style: none; }
.region-tags li { padding: 6px 13px; border-radius: 999px; border: 1px solid rgb(244 207 122 / 48%); color: var(--gold); font-size: 11px; font-weight: 600; }
.story-art { position: relative; display: grid; place-items: center; min-height: 220px; }
.story-art svg { width: 176px; height: 176px; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 34%)); }
.story-band { position: absolute; bottom: 8px; left: 0; right: 0; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--clay) 0 20px, var(--ochre) 20px 30px, var(--green) 30px 50px, var(--indigo) 50px 60px, var(--gold) 60px 70px); }

/* ---------- Cart & account ---------- */
.shopping-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 54px; padding: 40px 0 68px; border-top: 1px solid var(--line); }
.compact-heading { align-items: center; margin-bottom: 18px; }
.compact-heading h2 { font-size: 32px; }
.compact-heading > span { color: var(--muted); font-size: 11px; }
.cart-table-wrap { width: 100%; overflow-x: auto; }
#cart { width: 100%; border-collapse: collapse; text-align: left; }
#cart th { padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
#cart td { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
#cart td:first-child { font-weight: 600; }
.quantity-controls { display: flex; align-items: center; gap: 7px; }
.quantity-controls button, .remove-item { border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--clay); }
.quantity-controls button { width: 27px; height: 27px; padding: 0; font-size: 15px; }
.remove-item { padding: 5px 9px; font-size: 10px; }
.empty-cart { color: var(--muted); text-align: center; }
.cart-bottom { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; padding-top: 18px; }
.cart-bottom > label { grid-column: 1 / -1; font-size: 11px; font-weight: 700; }
.cart-bottom > input, .cart-bottom > select, .account-section > input { width: 100%; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline-color: var(--green); background: var(--paper); color: var(--ink); font-size: 12px; }
.cart-bottom > input { grid-column: 1 / -1; }
.fulfillment-fieldset { min-width: 0; grid-column: 1 / -1; padding: 0; margin: 0; border: 0; }
.fulfillment-fieldset legend { margin-bottom: 8px; font-size: 11px; font-weight: 700; }
.fulfillment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fulfillment-option { min-width: 0; position: relative; cursor: pointer; }
.fulfillment-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fulfillment-tile { min-height: 68px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.fulfillment-icon { font-size: 15px; }
.fulfillment-tile strong { color: var(--clay); font-size: 12px; }
.fulfillment-tile small { color: var(--muted); font-size: 9.5px; }
.fulfillment-option input:checked + .fulfillment-tile { border-color: var(--clay); background: #faebdf; box-shadow: inset 0 0 0 1.5px var(--clay); }
.fulfillment-option input:focus-visible + .fulfillment-tile { outline: 2px solid var(--green); outline-offset: 2px; }
.fulfillment-panel { grid-column: 1 / -1; display: grid; gap: 6px; }
.fulfillment-panel[hidden] { display: none; }
.fulfillment-panel label { font-size: 11px; font-weight: 700; }
.fulfillment-panel input, .fulfillment-panel select { width: 100%; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline-color: var(--green); background: var(--paper); color: var(--ink); font-size: 12px; }
.fee-line { grid-column: 1 / -1; margin: 0; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--green); font-size: 11px; font-weight: 600; }
.grand-total { border-top: 1px solid var(--line); }
.courier-fieldset { min-width: 0; grid-column: 1 / -1; padding: 0; margin: 0; border: 0; }
.courier-fieldset legend { margin-bottom: 8px; font-size: 11px; font-weight: 700; }
.courier-fieldset legend span { margin-left: 4px; color: var(--muted); font-size: 10px; font-weight: 400; }
.courier-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.courier-option { min-width: 0; position: relative; cursor: pointer; }
.courier-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.courier-tile { min-height: 62px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.courier-tile strong { color: var(--clay); font-size: 12px; }
.courier-tile small { color: var(--muted); font-size: 9px; }
.courier-option input:checked + .courier-tile { border-color: var(--clay); background: #faebdf; box-shadow: inset 0 0 0 1.5px var(--clay); }
.courier-option input:focus-visible + .courier-tile { outline: 2px solid var(--green); outline-offset: 2px; }
.delivery-note { grid-column: 1 / -1; margin: -3px 0 2px; color: var(--muted); font-size: 10px; }
.cart-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 12px 0 3px; font-size: 12px; }
.cart-total strong { font-size: 20px; font-family: var(--serif); }
.checkout-button { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 46px; padding: 0 18px; }
.checkout-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; }
.guest-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 14px; border: 1px dashed var(--line); border-radius: 16px; background: #fffdf8; }
.guest-fields label { font-size: 11px; font-weight: 700; }
.guest-fields label span { color: var(--muted); font-weight: 400; }
.guest-fields input { width: 100%; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline-color: var(--green); background: var(--paper); color: var(--ink); font-size: 12px; }
.promo-row { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.promo-row label { font-size: 11px; font-weight: 700; }
.promo-input { display: flex; gap: 8px; }
.promo-input input { flex: 1 1 auto; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline-color: var(--green); background: var(--paper); color: var(--ink); font-size: 12px; text-transform: uppercase; }
.promo-input .secondary-button { flex: none; min-height: 42px; }
.promo-note { margin: 0; color: var(--muted); font-size: 10px; }
.discount-line { color: #b3261e; }
@media (max-width: 560px) { .guest-fields { grid-template-columns: 1fr; } }
.account-section { align-self: start; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(170deg, #fdf1e2, #f7e3cd); box-shadow: var(--shadow-sm); }
.account-section h2 { font-size: 30px; }
.account-intro { margin: 8px 0 18px; color: var(--muted); font-size: 11.5px; }
.account-section > label { display: block; margin: 10px 0 5px; font-size: 10px; font-weight: 700; }
.account-section > label span { color: var(--muted); font-weight: 400; }
.account-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.secondary-button { min-height: 40px; padding: 0 15px; border: 1.5px solid var(--clay); border-radius: 999px; background: transparent; color: var(--clay); font-size: 11px; font-weight: 700; }
.text-button { padding: 8px 0; border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; }
.brand-bold { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.brand-red { color: #e41e24; }
.track-link { padding: 6px 12px; border: 1.5px solid var(--clay); border-radius: 999px; color: var(--clay); font-size: 11px; font-weight: 700; text-decoration: none; }
.track-link:hover { background: var(--clay); color: #fff; }
.payment-fieldset { min-width: 0; grid-column: 1 / -1; padding: 0; margin: 0; border: 0; }
.payment-fieldset legend { margin-bottom: 8px; font-size: 11px; font-weight: 700; }
.payment-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.payment-option { min-width: 0; position: relative; cursor: pointer; }
.payment-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.payment-tile { min-height: 66px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.payment-icon { font-size: 16px; }
.payment-tile strong { color: var(--clay); font-size: 12px; }
.payment-tile small { color: var(--muted); font-size: 9px; }
.payment-option input:checked + .payment-tile { border-color: var(--green); background: #eef6ee; box-shadow: inset 0 0 0 1.5px var(--green); }
.payment-option input:focus-visible + .payment-tile { outline: 2px solid var(--green); outline-offset: 2px; }
.payment-note { grid-column: 1 / -1; margin: 2px 0 4px; color: var(--muted); font-size: 10px; }
.payment-option.is-unavailable { cursor: not-allowed; opacity: .45; }
.payment-option.is-unavailable .payment-tile { background: #f4f0e8; }
.payment-panel { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 8px; padding: 18px; border: 1.5px solid var(--green); border-radius: 18px; background: #f3f8f2; }
.payment-panel[hidden] { display: none; }
.payment-panel-title { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--green); }
.payment-panel-summary { margin: 0; font-size: 13px; font-weight: 700; }
.payment-panel-method { margin: 0; color: var(--muted); font-size: 11px; }
.payment-panel-subtitle { margin: 4px 0 0; font-size: 13px; color: var(--clay); }
.payment-panel-note { margin: 0; color: var(--ink-soft); font-size: 12px; }
.payment-panel-reference { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; word-break: break-all; }
.payment-panel-button { text-decoration: none; }
.payment-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.payment-bank { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; padding: 12px; border-radius: 12px; background: #fffdf8; font-size: 12px; }
.payment-bank dt { color: var(--muted); font-weight: 700; }
.payment-bank dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.tracker-pay { margin-top: 8px; }
.tracker { padding: 12px 4px 4px; }
.tracker-stages { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0 0 8px; padding: 0; list-style: none; counter-reset: stage; }
.tracker-stages li { position: relative; padding: 0 18px 0 0; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tracker-stages li::before { content: '○ '; color: var(--muted); }
.tracker-stages li.is-done { color: var(--green); }
.tracker-stages li.is-done::before { content: '● '; color: var(--green); }
.tracker-eta { margin: 0; color: var(--ink-soft); font-size: 11px; }
.tracker-courier, .tracker-reference { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.tracker-cancelled { margin: 0; color: var(--clay); font-size: 11px; font-weight: 700; }
.track-row td { background: #fdf6ea; }
.track-section { margin: 34px 0 8px; padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-sm); }
.track-intro { margin: 0 0 16px; color: var(--muted); font-size: 13px; max-width: 60ch; }
.track-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 10px 14px; }
.track-form label { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.track-form input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.track-form .checkout-button { grid-column: auto; align-self: end; }
.track-result { margin-top: 16px; }
.track-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
.tracker-order { margin: 0 0 6px; color: var(--clay); font-size: 15px; }
.tracker-items { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 12px; }
.tracker-loading { margin: 0; color: var(--muted); font-size: 12px; }
@media (max-width: 720px) {
  .track-form { grid-template-columns: 1fr; }
  .track-form .checkout-button { width: 100%; }
}

/* ---------- Recipes ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.recipe-card { min-width: 0; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #fffdf8, #fbf0dd); box-shadow: var(--shadow-sm); }
.recipe-head { display: flex; align-items: center; gap: 12px; }
.recipe-emoji { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(150deg, #fbe8c9, #f4d49a); font-size: 24px; }
.recipe-head h3 { margin: 0; font: 600 19px/1.15 var(--serif); }
.recipe-meta { margin: 3px 0 0; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.recipe-description { margin: 12px 0; color: var(--muted); font-size: 12px; }
.recipe-ingredients { flex: 1; display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.recipe-ingredients li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 9px; background: rgb(255 255 255 / 62%); font-size: 11.5px; }
.recipe-ingredients li.is-out { color: var(--muted); text-decoration: line-through; }
.recipe-qty { color: var(--clay); font-weight: 700; }
.recipe-method { margin: 0 0 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.recipe-method summary { cursor: pointer; color: var(--clay); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.recipe-method summary:hover { color: var(--clay-deep); }
.recipe-steps { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.recipe-steps li { color: var(--muted); font-size: 11.5px; line-height: 1.5; }

/* ---------- Trust strip / benefits bar ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 42px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #fffdf8, #fbf2e2); box-shadow: var(--shadow-sm); }
.benefits-bar { border-top: 3px solid var(--gold); }
.trust-item { display: flex; align-items: center; gap: 11px; min-width: 0; }
.trust-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(150deg, #fbe8c9, #f4d49a); font-size: 19px; }
.trust-item div { display: flex; flex-direction: column; min-width: 0; }
.trust-item strong { font-size: 12.5px; }
.trust-item span { color: var(--muted); font-size: 11px; }

/* ---------- Contact ---------- */
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.contact-button { min-height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; border-radius: 999px; background: var(--clay); color: #fff7ec; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.contact-button:hover { background: var(--clay-deep); transform: translateY(-1px); }
.contact-button.ghost { background: transparent; border: 1.5px solid var(--clay); color: var(--clay); }
.contact-button.ghost:hover { background: #faebdf; }
.contact-note { flex: 1 1 200px; margin: 0; color: var(--muted); font-size: 11.5px; }
@media (max-width: 480px) {
  .trust-strip { grid-template-columns: 1fr; gap: 12px; padding: 14px 16px; }
  .contact-button { flex: 1 1 100%; justify-content: center; }
}

/* ---------- AI kitchen assistant ---------- */
.assistant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.assistant-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); }
.assistant-card > label { font: 600 15px var(--serif); color: var(--ink); }
.assistant-card textarea, .assistant-card input[type="number"], .assistant-chat-form input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; background: #fffdfd; color: var(--ink); font: 400 13px var(--sans); }
.assistant-card textarea { resize: vertical; min-height: 72px; }
.assistant-controls { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.assistant-guests { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; }
.assistant-guests input { width: 96px; }
.assistant-controls .checkout-button { margin-left: auto; }
.assistant-status { min-height: 16px; margin: 0; color: var(--muted); font-size: 11.5px; }
.assistant-results { display: flex; flex-direction: column; gap: 14px; }
.assistant-tip { margin: 0; padding: 12px 14px; border-radius: 14px; background: linear-gradient(150deg, #fdf0d8, #f8e0b6); color: var(--clay-deep); font-size: 12.5px; line-height: 1.5; }
.assistant-match { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #fffdf8, #fbf0dd); }
.assistant-match-head { display: flex; align-items: center; gap: 12px; }
.assistant-match-titles { flex: 1; min-width: 0; }
.assistant-match-head h3 { margin: 0; font: 600 17px/1.15 var(--serif); }
.assistant-coverage { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.assistant-have, .assistant-subhead { margin: 0; font-size: 11.5px; }
.assistant-have { color: var(--green-deep); }
.assistant-subhead { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.assistant-missing { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.assistant-missing li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 9px; background: rgb(255 255 255 / 62%); font-size: 11.5px; }
.assistant-missing li.out { color: var(--muted); }
.assistant-match .product-buy { flex-wrap: wrap; }
.assistant-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.assistant-badge { padding: 4px 10px; border-radius: 999px; background: #ecdfd6; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.assistant-badge.on { background: var(--clay); color: #fff7ec; }
.assistant-chat { flex: 1; display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; padding: 4px; }
.assistant-chat:empty::before { content: '👋'; opacity: .35; font-size: 22px; margin: auto; }
.assistant-bubble { max-width: 88%; padding: 10px 13px; border-radius: 15px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.assistant-bubble.from-user { align-self: flex-end; background: var(--clay); color: #fff7ec; border-bottom-right-radius: 5px; }
.assistant-bubble.from-shop { align-self: flex-start; background: var(--cream); color: var(--ink); border-bottom-left-radius: 5px; }
.assistant-bubble.thinking { opacity: .6; font-style: italic; }
.assistant-chat-form { display: flex; gap: 8px; }
.assistant-chat-form input { flex: 1; }
.assistant-suggestions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.assistant-suggestion { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 13px; background: #fffdf8; }
.assistant-suggestion-photo { width: 40px; height: 40px; flex: none; border-radius: 10px; object-fit: cover; }
.assistant-suggestion .recipe-emoji { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; }
.assistant-suggestion-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.assistant-suggestion-body strong { font-size: 12.5px; }
.assistant-suggestion .product-price, .assistant-suggestion .recipe-meta { margin: 0; font-size: 12px; }
.assistant-suggestion .add-button { flex: none; }
@media (max-width: 1080px) { .assistant-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .assistant-card { padding: 18px; } .assistant-chat { max-height: 260px; } }

/* ---------- Bundle subscribe ---------- */
.bundle-buy { align-items: flex-start; }
.bundle-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.subscribe-button { min-height: 34px; padding: 0 13px; border: 1.5px solid var(--green); border-radius: 999px; background: transparent; color: var(--green); font-size: 10.5px; font-weight: 700; transition: background .2s ease; }
.subscribe-button:hover { background: #e7f0e5; }

/* ---------- Member rewards ---------- */
.member-section { padding: 0 0 64px; }
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.member-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); }
.member-card h3 { margin: 0 0 14px; font: 600 20px var(--serif); }
.referral-lead { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.referral-code-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.referral-code { padding: 10px 16px; border: 1.5px dashed var(--clay); border-radius: 12px; background: #faebdf; color: var(--clay-deep); font: 700 20px/1 var(--sans); letter-spacing: .16em; }
.referral-hint { margin: 14px 0 0; color: var(--muted); font-size: 11.5px; }
.subs-list { display: flex; flex-direction: column; gap: 10px; }
.sub-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.sub-details { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.sub-details strong { font-size: 13px; }
.sub-meta { color: var(--muted); font-size: 10.5px; }
.sub-status { padding: 3px 9px; border-radius: 999px; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sub-active { background: #dceadb; color: var(--green-deep); }
.sub-paused { background: #f4e2c4; color: #8a5a12; }
.sub-cancelled { background: #ecdfd6; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Orders ---------- */
.orders-section { padding: 0 0 64px; }
.orders-section h2 { margin-bottom: 14px; }
.orders-section table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.orders-section td, .orders-section th { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
.orders-section th { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Footer ---------- */
footer { min-height: 118px; padding: 26px max(32px, calc((100vw - 1176px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--clay-deep); color: #f4ecdf; }
.footer-brand { color: #fff; font-size: 23px; }
.footer-brand .brand-mark { width: 38px; height: 38px; }
.footer-brand small { color: var(--gold); }
footer p { margin: 0; color: #e9b9b9; max-width: 760px; line-height: 1.6; }
.footer-brand .brand-light { color: var(--gold); }
.footer-pref { flex: none; display: inline-flex; align-items: center; gap: 8px; color: #e9b9b9; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.footer-pref select { min-height: 34px; padding: 0 26px 0 11px; border: 1px solid var(--line); border-radius: 999px; background-color: var(--paper); background-image: linear-gradient(45deg, transparent 50%, var(--clay) 50%), linear-gradient(135deg, var(--clay) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; color: var(--ink-soft); font-size: 11px; font-weight: 600; appearance: none; }
footer p, footer > span { margin: 0; color: #e0c1c1; font-size: 10px; }

/* ---------- Staff dashboard ---------- */
.admin-page { background: var(--cream); }
.admin-page header { min-height: 72px; padding: 12px max(18px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; background: var(--clay); color: white; }
.admin-page header h1 { margin: 0; font: 600 26px var(--serif); }
.admin-page header a { color: var(--gold); font-size: 12px; }
.admin-page main { padding-top: 20px; }
.admin-page section { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.admin-page section h2 { margin: 0 0 12px; font: 600 24px var(--serif); }
.admin-page .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.admin-page .card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.admin-page .card small { color: var(--muted); }
.admin-page .card h3 { margin: 7px 0 0; font: 600 24px var(--serif); }
.admin-page .err { color: var(--clay); }
.admin-page table { width: 100%; border-collapse: collapse; background: var(--paper); }
.admin-page td, .admin-page th { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
.admin-page th { color: var(--muted); font-weight: 600; }
.admin-page button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--clay); color: white; font-size: 11px; }
.admin-page input { min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
#login[hidden], #setup[hidden], #dash[hidden] { display: none !important; }
.admin-auth { margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf8; }
.admin-auth h2 { margin: 0 0 8px; }
.admin-auth .muted { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.admin-auth form, .admin-auth-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.admin-auth input, .admin-auth-inline input { flex: 1 1 190px; min-width: 0; }

/* Grouped dashboard: a fixed section list next to one visible panel. */
.admin-page main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 20px 20px 56px; }
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-nav { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 16px; padding: 18px 14px; border: 1px solid var(--line); border-radius: 18px; background: #fffdf8; box-shadow: var(--shadow-sm); }
.admin-nav-group { display: flex; flex-direction: column; gap: 3px; }
.admin-nav-group strong { padding: 0 8px 4px; color: var(--muted); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.admin-nav button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-soft); font-size: 12px; font-weight: 600; text-align: left; }
.admin-nav button:hover { background: var(--cream); color: var(--clay); }
.admin-nav button.is-active { background: var(--clay); color: #fff7ec; }
.admin-content { min-width: 0; }
.admin-page .admin-panel { display: none; margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fffdf8; box-shadow: var(--shadow-sm); }
.admin-page .admin-panel.is-active { display: block; }
.admin-page .admin-panel h2 { margin: 0 0 10px; }
.admin-page .admin-panel > .muted { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table-wrap table { border-radius: 12px; overflow: hidden; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 12px; }
.admin-toolbar input { flex: 1 1 220px; min-width: 0; }
.admin-toolbar select { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink-soft); font-size: 12px; }
.admin-page button.secondary-button { border: 1px solid var(--line); background: var(--paper); color: var(--clay); }
.admin-page button.danger-button { background: var(--clay); color: #fff7ec; }
.admin-page button:disabled { opacity: .5; cursor: not-allowed; }
.state-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.state-pill.is-visible { background: #dceadb; color: var(--green-deep); }
.state-pill.is-hidden { background: #ecdfd6; color: var(--muted); }
.state-pill.is-out { background: #f7ddd0; color: var(--clay-deep); }
.admin-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: #f0d9c9; font-size: 12px; }
.admin-page header button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 18%); color: white; font-size: 11px; }
.admin-page header button:hover { background: rgb(255 255 255 / 30%); }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; gap: 16px; }
  .admin-nav { position: static; flex-direction: row; gap: 10px; overflow-x: auto; padding: 12px; }
  .admin-nav-group { flex: 0 0 auto; }
  .admin-nav-group strong { padding: 0 6px 4px; }
  .admin-nav button { white-space: nowrap; }
}
@media (max-width: 600px) {
  .admin-page main { padding: 14px 12px 44px; }
  .admin-page header { flex-wrap: wrap; gap: 8px; min-height: 0; padding: 10px 12px; }
  .admin-page header h1 { font-size: 20px; }
  .admin-header-actions { gap: 8px; font-size: 11px; }
  .admin-page .admin-panel { padding: 16px 14px; }
}

/* ---------- Preferences (language & currency) ---------- */
.pref-select { display: inline-flex; }
.pref-select select { min-height: 34px; padding: 0 26px 0 11px; border: 1px solid var(--line); border-radius: 999px; background-color: var(--paper); background-image: linear-gradient(45deg, transparent 50%, var(--clay) 50%), linear-gradient(135deg, var(--clay) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; color: var(--ink-soft); font-size: 11px; font-weight: 600; appearance: none; }

/* ---------- Discovery bar ---------- */
.discover-section { padding-bottom: 58px; }
.discover-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 30px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #fffdf8, #fbf0dd); box-shadow: var(--shadow-sm); }
.discover-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.discover-label { color: var(--muted); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: 11px; font-weight: 600; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.chip:hover { border-color: var(--clay-soft); color: var(--clay); }
.chip.is-active { border-color: var(--clay); background: var(--clay); color: #fff7ec; }
.discover-sort { flex-direction: row; align-items: center; gap: 10px; margin-left: auto; }
.discover-sort select { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 11px; }

/* ---------- Discovery badges ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 4px; }
.badge { padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.badge-origin { background: #fbe8c9; color: #8a5a12; }
.badge-cuisine { background: #e2eede; color: var(--green-deep); }
.badge-diet { background: #e6eef2; color: var(--indigo); text-transform: capitalize; }
.badge-spice { background: #f7ddd0; color: var(--clay-deep); letter-spacing: 0; }
.price-wrap { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.wholesale-tag { padding: 2px 7px; border-radius: 999px; background: var(--green); color: #f2f8ef; font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Catering, party & wholesale ---------- */
.catering-section { padding-bottom: 68px; }
.catering-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.catering-grid-single { max-width: 640px; grid-template-columns: 1fr; margin: 0 auto; }
.catering-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); }
.catering-card h2, .catering-card h3 { margin: 0 0 14px; font: 600 20px var(--serif); }
.party-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.party-controls input { width: 110px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); font-size: 13px; }
.party-results { display: flex; flex-direction: column; gap: 9px; }
.party-result { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.party-details { flex: 1; min-width: 150px; display: flex; flex-direction: column; }
.party-details strong { font-size: 12.5px; }
.party-meta { color: var(--muted); font-size: 10px; }
.party-packs { color: var(--green); font-size: 11px; font-weight: 700; }
.party-total { font-size: 13px; }
.quote-form { display: flex; flex-direction: column; gap: 9px; }
.quote-form input, .quote-form textarea { width: 100%; min-height: 40px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; outline-color: var(--green); background: var(--cream); color: var(--ink); font-size: 12px; }
.quote-form textarea { resize: vertical; }
.quote-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.wholesale-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #eef3ea; color: var(--green-deep); font-size: 11px; }
.wholesale-note strong { display: block; margin-bottom: 3px; }

@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catering-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-inner { grid-template-columns: 1fr; }
  .story-art { min-height: 160px; }
}
@media (max-width: 760px) {
  .header-bar { grid-template-columns: auto 1fr auto; gap: 10px; padding: 9px 14px; min-height: 58px; }
  .search-box { grid-column: 1 / -1; grid-row: 2; height: 40px; padding: 0 10px; gap: 8px; }
  .search-go { padding: 8px 13px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .mobile-menu-btn { grid-column: 3; grid-row: 1; }
  .service-nav { padding: 8px 14px 12px; }
  .service-nav.open { max-height: 60vh; overflow-y: auto; }
  .service-nav .pref-select { display: inline-flex; width: 100%; }
  .service-nav .pref-select select { width: 100%; }
  .department-grid { grid-auto-flow: column; grid-auto-columns: minmax(152px, 38%); grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .department-grid::-webkit-scrollbar { display: none; }
  .department-tile { scroll-snap-align: start; }
  main { padding: 0 18px; }
  .hero { margin-bottom: 34px; padding-bottom: 40px; }
  .hero-copy { width: calc(100% - 36px); padding: 40px 0 26px; }
  .hero h1 { font-size: clamp(36px, 9vw, 50px); }
  .hero-sub { font-size: 14px; }
  .hero-photo { width: calc(100% - 36px); border-radius: 16px; }
  .hero-photo img { height: clamp(300px, 92vw, 500px); object-position: center 42%; }
  .hero-note { right: 18px; font-size: 8px; }
  .bundle-grid { grid-auto-flow: column; grid-auto-columns: minmax(232px, 74%); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .bundle-grid::-webkit-scrollbar { display: none; }
  .bundle-grid .bundle-card { scroll-snap-align: start; }
  .roots-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
  .product-art { height: 146px; }
  .product-info { padding: 13px; }
  .product-info h3 { font-size: 18px; }
  .story-inner { padding: 32px 26px; }
  .story h2 { font-size: 28px; }
  .shopping-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 30px; }
  .account-section { max-width: none; }
  .member-grid { grid-template-columns: 1fr; }
  .discover-bar { padding: 16px; gap: 14px 20px; }
  .discover-sort { margin-left: 0; }
  footer { padding: 24px 18px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .announcement-inner { font-size: 10px; gap: 6px; padding-right: 34px; }
  .announcement-dot { display: none; }
  .header-bar { min-height: 56px; padding: 8px 12px; gap: 8px; }
  .service-nav { padding: 8px 12px 12px; }
  .service-nav a { font-size: 11px; padding: 6px 14px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand small { font-size: 6.5px; letter-spacing: .14em; }
  .mobile-menu-btn { padding: 6px 11px; font-size: 11px; }
  .header-actions { gap: 7px; }
  .search-box { height: 38px; }
  .search-go { padding: 8px 11px; font-size: 10px; }
  #acct { max-width: 120px; font-size: 10px; }
  #acct button { font-size: 10px; }
  .cart-link { padding: 6px 10px; }
  .install-app { min-height: 32px; padding: 0 9px; font-size: 10px; }
  #acct { max-width: 140px; font-size: 10px; }
  #acct button { font-size: 10px; }
  .cart-link { padding: 6px 11px; }
  .department-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .department-tile { border-radius: 15px; }
  .department-emoji { font-size: 28px; }
  .department-name { font-size: 13.5px; }
  .department-sub { font-size: 10px; }
  .hero h1 { font-size: 44px; }
  .hero-copy > p:not(.eyebrow) { max-width: 420px; font-size: 14px; }
.hero-welcome { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.hero-welcome span { padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 2px solid var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-offer { display: inline-block; padding: 8px 14px; margin: 10px 0 18px; background: var(--green); color: #fff; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-sm); letter-spacing: .02em; }
  .hero-photo { border-radius: 14px; }
  .hero-actions { gap: 9px; }
  .hero-cta { padding: 11px 16px; font-size: 11px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading.centered { align-items: center; }
  .shop-caption { font-size: 11.5px; }
  .root-card { padding: 22px 20px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-art { height: 120px; }
  .product-art span { font-size: 46px; }
  .product-info { padding: 11px; }
  .product-info h3 { min-height: 40px; font-size: 16px; }
  .product-description { min-height: 34px; font-size: 10.5px; }
  .product-buy { align-items: start; flex-direction: column; gap: 9px; }
  .add-button { width: 100%; }
  .story { border-radius: 20px; }
  .story-inner { padding: 28px 20px; }
  .compact-heading { flex-direction: row; align-items: center; }
  .compact-heading h2 { font-size: 26px; }
  .compact-heading > span { max-width: 105px; text-align: right; }
  .courier-options { gap: 5px; }
  .courier-tile { min-height: 58px; padding: 7px 6px; }
  .courier-tile strong { font-size: 11px; }
  .courier-tile small { font-size: 8px; }
  #cart th, #cart td { padding-right: 5px; padding-left: 5px; }
  .cart-bottom { grid-template-columns: 1fr; }
  .recipe-grid { grid-template-columns: 1fr; }
  .referral-code { font-size: 17px; }
  footer { align-items: start; flex-direction: column; gap: 12px; }
}

/* ---------- Product detail modal, ratings & reviews ---------- */
.rating-stars { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 4px; font-size: 11px; }
.stars-glyphs { color: var(--ochre); letter-spacing: 1px; font-size: 13px; }
.rating-count { color: var(--muted); font-weight: 700; }

.modal-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgb(42 20 20 / 62%); overflow-y: auto; }
.product-modal { position: relative; width: min(920px, 100%); max-height: 92vh; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); background: var(--paper); border-radius: 24px; box-shadow: 0 24px 60px rgb(42 20 20 / 30%); }
.modal-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 34px; height: 34px; border: none; border-radius: 50%; background: rgb(255 255 255 / 85%); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: #fff; }
.modal-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: linear-gradient(160deg, #fbe8c9, #f4c9a0); }
.modal-photo { width: 100%; height: auto; max-height: 340px; object-fit: cover; border-radius: 18px; }
.modal-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.modal-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; opacity: 0.72; cursor: pointer; transition: opacity 0.15s ease, border-color 0.15s ease; }
.modal-thumb:hover, .modal-thumb.is-active { opacity: 1; border-color: var(--clay); }
.modal-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 8px; }
.modal-body h2 { margin: 2px 0 0; font: 600 26px/1.15 var(--serif); }
.modal-description { margin: 6px 0 2px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.modal-price { margin: 4px 0 10px; font: 700 22px/1 var(--serif); color: var(--clay); }

.modal-reviews { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.modal-reviews h3 { margin: 0 0 10px; font: 600 17px/1.2 var(--serif); }
.review-list { display: flex; flex-direction: column; gap: 10px; }
.review-card { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; }
.review-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.review-head strong { font-size: 12.5px; }
.verified-badge { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: rgb(60 107 69 / 14%); color: var(--green-deep); font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.review-title { margin: 6px 0 2px; font-weight: 700; font-size: 13px; }
.review-body { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.review-photo { margin-top: 8px; max-width: 160px; border-radius: 10px; }

.review-form { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.review-form h4 { margin: 0; font: 600 15px/1.2 var(--serif); }
.review-form select, .review-form input, .review-form textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 13px; background: #fff; }
.review-form textarea { resize: vertical; }

.stock-alert-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 8px; }
.stock-alert-note { flex: 1 1 100%; margin: 0; color: var(--clay-deep); font-size: 12px; font-weight: 700; }
.stock-alert-email { flex: 1 1 180px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 13px; }

@media (max-width: 720px) {
  .product-modal { grid-template-columns: 1fr; }
  .modal-photo { max-height: 240px; }
}

/* ---------- Admin: product image manager ---------- */
.admin-page .muted { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.image-manager { display: flex; flex-direction: column; gap: 10px; }
.image-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.image-thumb { width: 54px; height: 54px; flex: none; border-radius: 10px; object-fit: cover; background: #f3dede; }
.image-meta { flex: none; width: 170px; display: flex; flex-direction: column; }
.image-meta small { color: var(--muted); }
.image-url { flex: 1 1 220px; }
.image-file { flex: 0 1 190px; font-size: 11px; }
.image-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.image-tools label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.image-row.needs-photo { border-color: var(--ochre); background: #fffaf1; }
@media (max-width: 760px) {
  .image-row { flex-wrap: wrap; }
  .image-meta { width: auto; }
}

/* ---------- Admin: AI copywriter ---------- */
.ai-copy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ai-copy select { min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 12px; }
.ai-copy input { flex: 1 1 260px; }
.ai-copy-out { display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 12px; }
.ai-locale { display: flex; align-items: flex-start; gap: 10px; }
.ai-locale small { flex: none; width: 26px; padding-top: 10px; color: var(--muted); font-weight: 700; }
.ai-text { flex: 1; min-height: 74px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: 400 12px var(--sans); resize: vertical; }
.ai-locale button { flex: none; align-self: flex-start; }
@media (max-width: 760px) {
  .ai-locale { flex-wrap: wrap; }
  .ai-locale small { width: auto; padding-top: 0; }
}

/* ---------- Phone header: give the bag its own space ---------- */
/* On a narrow phone the full-size bag pill used to run over the right-hand
   end of the brand tagline. Keep the wordmark flexible, and collapse the bag,
   install and menu actions to their icons so nothing overlaps. */
@media (max-width: 560px) {
  .header-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 12px; }
  .brand { order: 1; flex: 1 1 0; width: auto; min-width: 0; gap: 9px; }
  .brand-words { min-width: 0; }
  .brand small { white-space: normal; overflow-wrap: anywhere; }
  .header-actions { order: 2; flex: 0 0 auto; gap: 8px; }
  .mobile-menu-btn { order: 3; flex: 0 0 auto; }
  .search-box { order: 4; flex: 1 1 100%; width: 100%; }
  .cart-link { gap: 6px; padding: 6px 9px; }
  .cart-label, .install-label, .menu-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  #cart-count { min-width: 19px; height: 19px; }
}

/* Phones and small tablets: keep the header bag extra compact so it can never
   crowd the brand tagline ("… right to your door"). */
@media (max-width: 980px) {
  .cart-link { gap: 4px; padding: 5px 7px; }
  .cart-icon { font-size: 13px; }
  .cart-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  #cart-count { min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; }
}

/* ---------- Consent banner + legal pages ---------- */
/* The banner is injected by public/tracking.js. It is fixed to the bottom so a
   visitor can accept or decline before any ad network is contacted. */
.consent-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 1200;
  padding: 10px max(16px, calc((100vw - 1176px) / 2));
  background: rgb(20 12 12 / 92%);
  color: #fdf4f4;
  box-shadow: 0 -6px 18px rgb(0 0 0 / 20%);
}
.consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  max-width: 1176px;
  margin: 0 auto;
}
.consent-text { flex: 1 1 420px; min-width: 0; }
.consent-title { display: block; margin-bottom: 2px; font: 600 14px var(--serif); color: var(--gold); }
.consent-body { margin: 0; color: #f0dada; font-size: 11px; line-height: 1.4; }
.consent-links { margin: 6px 0 0; font-size: 11px; }
.consent-links a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.consent-accept { background: var(--gold); color: var(--ink); }
.consent-accept:hover, .consent-accept:focus-visible { background: #ffe4a3; }
.consent-essential { background: transparent; border-color: rgb(244 207 122 / 55%); color: #f4ecdf; }
.consent-essential:hover, .consent-essential:focus-visible { border-color: var(--gold); }

/* Footer legal links, added to the storefront footer. */
.footer-legal { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 10px; }
.footer-legal a, .footer-legal button {
  padding: 0;
  border: 0;
  background: none;
  color: #e0c1c1;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.footer-legal a:hover, .footer-legal button:hover, .footer-legal a:focus-visible, .footer-legal button:focus-visible { color: var(--gold); }

/* ---------- Legal documents (/impressum, /datenschutz) ---------- */
.legal-body { background: var(--paper); }
.legal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px max(20px, calc((100vw - 820px) / 2));
  background: var(--clay-deep);
  color: #f4ecdf;
}
.legal-brand { color: #fff; font: 700 22px var(--serif); letter-spacing: .04em; }
.legal-brand span { color: var(--gold); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; }
.legal-nav a { color: #f0dada; text-decoration: underline; text-underline-offset: 3px; }
.legal-nav a:hover, .legal-nav a:focus-visible { color: var(--gold); }
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px max(20px, 4vw) 56px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.legal-page h1 { margin: 0 0 18px; color: var(--ink); font: 600 34px var(--serif); }
.legal-page h2 { margin: 30px 0 8px; color: var(--ink); font: 600 20px var(--serif); }
.legal-page p { margin: 0 0 12px; }
.legal-page ul { margin: 0 0 14px; padding-left: 20px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
.legal-warning {
  margin: 0 0 26px;
  padding: 14px 16px;
  border: 1px solid var(--ochre);
  border-left-width: 5px;
  border-radius: 10px;
  background: #fff6e2;
  color: #6b4a09;
  font-size: 13px;
  line-height: 1.6;
}
.legal-warning strong { display: block; margin-bottom: 4px; color: #5a3d05; }
.legal-updated { margin-top: 30px; color: var(--muted); font-size: 12px; }
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 20px max(20px, calc((100vw - 820px) / 2));
  background: var(--clay-deep);
  color: #e0c1c1;
  font-size: 11px;
}
.legal-footer nav { display: flex; gap: 16px; }
.legal-footer a { color: #f0dada; text-decoration: underline; text-underline-offset: 3px; }
.legal-footer a:hover, .legal-footer a:focus-visible { color: var(--gold); }

@media (max-width: 720px) {
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: flex-end; }
  footer { flex-wrap: wrap; }
  .legal-page h1 { font-size: 27px; }
}
