/* Bethel Enterprises storefront. Colours come from admin settings via CSS variables on :root. */
:root {
  --primary: #1F4D3A; --secondary: #5E9E4A; --accent: #E07B24; --bg: #FBF8F2; --text: #262626; --line: #E4DFD5;
  --surface: #FFFFFF; --muted: #6B675F; --danger: #B3261E; --ok: #2E7D32;
  --radius-s: 6px; --radius: 12px; --radius-l: 20px;
  --font: "Figtree", "Noto Sans Sinhala", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Figtree", "Noto Sans Sinhala", system-ui, sans-serif;
  --wrap: 1240px;
  --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; }
body.lang-si { line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: color-mix(in srgb, var(--primary) 75%, var(--accent)); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; color: color-mix(in srgb, var(--text) 85%, var(--primary)); }
.lang-si h1, .lang-si h2, .lang-si h3 { font-family: "Noto Sans Sinhala", var(--display); letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: var(--radius-s); z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.ico { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }

/* Top bar */
.topbar { background: var(--primary); color: #fff; font-size: .85rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__note { margin: 0; display: flex; align-items: center; gap: 6px; opacity: .95; }
.topbar__links { display: flex; align-items: center; gap: 16px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.topbar a:hover { text-decoration: underline; }
.langs { display: flex; gap: 2px; background: rgba(255,255,255,.12); border-radius: 99px; padding: 2px; }
.langs a { padding: 2px 10px; border-radius: 99px; font-weight: 600; font-size: .8rem; }
.langs a[aria-current] { background: #fff; color: var(--primary); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); flex: none; }
.brand img { height: 44px; width: auto; }
.brand__mark { width: 40px; height: 40px; border-radius: 50% 50% 50% 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font: 800 1.3rem/1 var(--display); }
.brand__name { font: 800 1.2rem/1.1 var(--display); letter-spacing: -.01em; max-width: 12ch; }
.search { flex: 1; display: flex; max-width: 560px; margin: 0 auto; border: 1.5px solid var(--line); border-radius: 99px; background: var(--bg); overflow: hidden; }
.search:focus-within { border-color: var(--primary); }
.search input { flex: 1; border: 0; background: transparent; padding: 10px 18px; font: inherit; font-size: 16px; min-width: 0; color: var(--text); }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--primary); color: #fff; padding: 0 18px; cursor: pointer; }
.header__actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--radius-s); color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .92rem; }
.icon-btn:hover { background: var(--bg); color: var(--primary); }
.badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.nav-toggle { display: none; }

.mainnav { border-top: 1px solid var(--line); }
.mainnav__in { display: flex; align-items: center; gap: 4px; min-height: 46px; }
.mainnav a, .mainnav summary { padding: 8px 14px; border-radius: var(--radius-s); text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; cursor: pointer; }
.mainnav a:hover, .mainnav summary:hover { background: var(--bg); color: var(--primary); }
.mainnav a.is-accent { color: var(--accent); }
.mainnav__cats { position: relative; }
.mainnav__cats summary { list-style: none; }
.mainnav__cats summary::-webkit-details-marker { display: none; }
.mainnav__cats summary::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.mainnav__drop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(30, 40, 30, .35); padding: 8px; display: grid; z-index: 50; }
.mainnav__drop a { padding: 9px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 99px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; min-height: 44px; line-height: 1.2; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: color-mix(in srgb, var(--primary) 85%, #000); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 85%, #000); color: #fff; }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--ghost[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.btn--ghost[aria-pressed="true"] .ico { fill: currentColor; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--danger { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, #fff); }
.btn--lg { padding: 14px 26px; font-size: 1.02rem; min-height: 52px; }
.btn--small { padding: 6px 12px; min-height: 34px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 8px 12px; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }

/* Flash and notices */
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--radius-s); margin: 0 0 12px; border: 1px solid; }
.flash--success { background: #edf7ee; border-color: #b9dcbc; color: #1b5e20; }
.flash--error { background: #fdecea; border-color: #f2c1bc; color: #8a1c12; }
.flash--info { background: #fff6e8; border-color: #f0d2a3; color: #6b4300; }
.notice { display: flex; gap: 8px; align-items: flex-start; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-radius: var(--radius-s); padding: 10px 12px; }
.error-text { color: var(--danger); font-size: .86rem; margin: 4px 0 0; display: block; }

/* Hero */
.hero { background: var(--primary); color: #fff; overflow: hidden; position: relative; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(36px, 6vw, 72px); }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 16ch; }
.lang-si .hero h1 { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.7rem); line-height: 1.3; }
.hero .lead { font-size: 1.12rem; max-width: 46ch; opacity: .92; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; opacity: .9; }
.hero__facts li { display: flex; align-items: center; gap: 7px; }
.hero__art img { border-radius: var(--radius-l); aspect-ratio: 8 / 7; object-fit: cover; width: 100%; }
/* Spice plate: concentric heaps of ground spice seen from above. The single decorative moment of the page. */
.spice-plate { position: relative; aspect-ratio: 1; width: min(100%, 460px); margin-left: auto; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #f6efe2 0 58%, #e9dfcc 58.5% 61%, #f6efe2 61.5% 100%); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 0 0 10px rgba(255,255,255,.35); }
.spice-plate span { position: absolute; border-radius: 50%; filter: saturate(1.05); box-shadow: inset -6px -8px 14px rgba(0,0,0,.18), inset 4px 5px 10px rgba(255,255,255,.25); }
.spice-plate span:nth-child(1) { width: 30%; height: 30%; left: 35%; top: 35%; background: #b5651d; }
.spice-plate span:nth-child(2) { width: 20%; height: 20%; left: 20%; top: 16%; background: #d9a400; }
.spice-plate span:nth-child(3) { width: 20%; height: 20%; left: 60%; top: 16%; background: #9b2d1f; }
.spice-plate span:nth-child(4) { width: 20%; height: 20%; left: 70%; top: 50%; background: #e8dcc0; }
.spice-plate span:nth-child(5) { width: 20%; height: 20%; left: 46%; top: 70%; background: #5a3a22; }
.spice-plate span:nth-child(6) { width: 20%; height: 20%; left: 14%; top: 58%; background: #c84b1a; }
.spice-plate span:nth-child(7) { width: 12%; height: 12%; left: 8%; top: 38%; background: #4f7a2e; }
@media (prefers-reduced-motion: no-preference) {
  .spice-plate { animation: plate-in .9s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes plate-in { from { transform: rotate(-25deg) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Sections */
.section { padding: clamp(32px, 5vw, 56px) 0 0; }
.section:last-of-type { padding-bottom: clamp(32px, 5vw, 56px); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section__head h2 { margin: 0; }
.section__head a { font-weight: 600; white-space: nowrap; }
.section--band { padding-bottom: clamp(32px, 5vw, 56px); }
.band { background: color-mix(in srgb, var(--primary) 92%, #000); color: #fff; border-radius: var(--radius-l); padding: clamp(24px, 4vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; }
.band p { max-width: 56ch; opacity: .9; margin: 0; }
.band__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Category tiles */
.cats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; justify-content: flex-end; min-height: 128px; padding: 16px; border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color .15s, transform .15s; }
.cat::before { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -24px; top: -24px; background: var(--chip, #e9dfcc); opacity: .9; }
.cat img { position: absolute; right: 8px; top: 8px; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.cat:hover { border-color: var(--primary); color: var(--primary); }
.cat__name { font-weight: 700; line-height: 1.25; position: relative; }
.cat__count { font-size: .82rem; color: var(--muted); position: relative; }
.cat--0 { --chip: #f2c88e; } .cat--1 { --chip: #c9dfbd; } .cat--2 { --chip: #f0b7a0; } .cat--3 { --chip: #e8dcc0; } .cat--4 { --chip: #d6c4a6; } .cat--5 { --chip: #f5d97a; }

/* Product grid and cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; background: color-mix(in srgb, var(--bg) 60%, #fff); aspect-ratio: 1; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.tag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.tag--sale { background: var(--accent); color: #fff; }
.tag--cold { left: auto; right: 10px; background: #e3f0fb; color: #0d4a7a; display: grid; place-items: center; padding: 5px; }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.card__title { font: 600 1rem/1.3 var(--font); margin: 0; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--primary); text-decoration: underline; }
.card__meta { font-size: .85rem; color: var(--muted); margin: 0; }
.card__actions { margin-top: auto; padding-top: 8px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 0; }
.price__now { font: 800 1.18rem/1.1 var(--display); color: var(--primary); }
.price__was { color: var(--muted); font-size: .9rem; }
.price--lg .price__now { font-size: 1.9rem; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, var(--secondary) 18%, #fff); color: color-mix(in srgb, var(--secondary) 70%, #000); font-size: .78rem; font-weight: 700; }
.stock { font-size: .84rem; margin: 0; color: var(--ok); font-weight: 600; }
.stock--low { color: #a35f00; } .stock--out { color: var(--danger); }

/* Page layouts */
.page { padding-top: 24px; padding-bottom: 56px; }
.narrow { max-width: 820px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.listing { display: grid; grid-template-columns: 230px 1fr; gap: 32px; }
.filters ul { list-style: none; padding: 0; margin: 0; }
.filters a { display: block; padding: 6px 10px; border-radius: var(--radius-s); text-decoration: none; color: var(--text); }
.filters a[aria-current] { background: var(--surface); color: var(--primary); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary); }
.h-small { font-size: 1rem; }
.listing__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.listing__head h1 { margin: 0; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
select, input, textarea { font: inherit; font-size: 16px; color: var(--text); }
.sort select { padding: 8px 10px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); }
.pager a[aria-current] { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.lead-sm { font-size: 1.05rem; color: color-mix(in srgb, var(--text) 85%, var(--bg)); }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pdp__main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); aspect-ratio: 1; overflow: hidden; }
.pdp__main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.pdp__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pdp__thumbs button { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-s); padding: 2px; cursor: pointer; flex: none; }
.pdp__thumbs button[aria-current="true"] { border-color: var(--primary); }
.pdp__thumbs img { width: 64px; height: 64px; object-fit: contain; }
.pdp__info h1 { margin-bottom: .25em; }
.buy { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; background: var(--surface); overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--text); display: grid; place-items: center; }
.qty button:hover { background: var(--bg); }
.qty input { width: 52px; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.foodinfo { border-top: 2px solid var(--primary); padding-top: 16px; margin-top: 8px; }
.foodinfo h2 { font-size: 1.15rem; }
.foodinfo dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 12px; }
.foodinfo dt { font-weight: 700; font-size: .9rem; }
.foodinfo dd { margin: 0; font-size: .95rem; }
.foodinfo .allergens { font-weight: 600; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }

/* Panels, forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 24px); margin: 0 0 16px; }
.panel--accent { border: 2px solid var(--accent); }
.panel--soft { background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
fieldset.panel { min-width: 0; }
legend { font: 700 1.1rem/1.3 var(--display); padding: 0 4px; color: var(--primary); }
.fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.field { grid-column: span 2; display: flex; flex-direction: column; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field--sm { grid-column: span 1; }
fieldset.field { border: 0; padding: 0; margin: 0; }
label { font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; padding: 11px 13px; border: 1.5px solid #d4cdbf; border-radius: var(--radius-s); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .92rem; margin: 10px 0; }
.check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; }
.stack { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two--wide { grid-template-columns: 1.4fr 1fr; }
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; }

/* Choices */
.choice { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; margin-bottom: 8px; cursor: pointer; font-weight: 500; }
.choice:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, #fff); }
.choice input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.choice__label { flex: 1; display: flex; flex-direction: column; font-weight: 600; }
.choice__label small { font-weight: 400; }
.choice__price { font-weight: 700; white-space: nowrap; }
.choice--disabled { opacity: .7; cursor: not-allowed; }
.ship-address { margin-top: 12px; }

/* Cart and checkout */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart__lines { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.line { display: grid; grid-template-columns: 88px 1fr auto auto auto; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line--issue { background: #fff8f6; }
.line img { width: 88px; height: 88px; object-fit: contain; background: var(--bg); border-radius: var(--radius-s); }
.line__name { font-weight: 700; color: var(--text); text-decoration: none; }
.line__info p { margin: 2px 0 0; }
.line__total { font-weight: 800; margin: 0; min-width: 80px; text-align: right; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.summary--sticky { position: sticky; top: calc(var(--header-h) + 60px); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 12px 0; }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { font: 800 1.25rem/1.2 var(--display); color: var(--primary); padding-top: 8px; border-top: 1px solid var(--line); }
.summary__items { list-style: none; margin: 0; padding: 0 0 8px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.summary__items li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.summary__items small { display: block; }
.summary .btn { margin-top: 10px; }
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }

/* Order */
.thanks { background: color-mix(in srgb, var(--secondary) 14%, #fff); border-radius: var(--radius-l); padding: 24px; margin-bottom: 16px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.status { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .82rem; font-weight: 700; background: #eee9df; }
.status--paid, .status--delivered { background: #e3f3e4; color: #1b5e20; }
.status--awaiting_payment, .status--pending, .status--new { background: #fff1d9; color: #6b4300; }
.status--cancelled, .status--failed, .status--refunded { background: #fde4e1; color: #8a1c12; }
.status--shipped, .status--out_for_delivery { background: #e2eefb; color: #0d4a7a; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .82rem; color: var(--muted); font-weight: 600; }
.table .num { text-align: right; white-space: nowrap; }
.table tfoot td { border-bottom: 0; padding: 6px 8px; }
.table tfoot .total td { font-weight: 800; font-size: 1.1rem; color: var(--primary); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; align-items: center; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--text); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { border-color: var(--primary); color: var(--primary); }
.tabs form { margin-left: auto; }
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding: 6px 0 6px 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 12px; height: 7px; border-left: 2.5px solid var(--secondary); border-bottom: 2.5px solid var(--secondary); transform: rotate(-45deg); }

/* Footer */
.site-footer { background: #1d2a22; color: #d7dcd5; margin-top: 24px; padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); font-size: .93rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-top: 0; }
.footer__brand { font-size: 1.3rem !important; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0 0 16px; }
.footer__grid li { padding: 3px 0; }
.site-footer address { font-style: normal; display: flex; gap: 6px; }
.site-footer .muted { color: #a9b2a7; }
.social { margin-right: 10px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; color: #a9b2a7; }
.footer__bottom a { color: #a9b2a7; }

/* Floating WhatsApp, bottom nav, toast */
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); z-index: 45; }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.bottomnav { display: none; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); background: #1d2a22; color: #fff; padding: 12px 20px; border-radius: 99px; z-index: 60; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); max-width: calc(100vw - 40px); }
.toast--error { background: var(--danger); }

/* Responsive */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .checkout, .cart { grid-template-columns: 1fr; }
  .summary--sticky { position: static; }
  .hide-md { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: inline-flex; }
  .header__in { gap: 8px; flex-wrap: wrap; padding-bottom: 10px; }
  .brand__name { font-size: 1.05rem; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header__actions { margin-left: auto; }
  .mainnav { display: none; border-top: 1px solid var(--line); max-height: calc(100vh - 140px); overflow-y: auto; }
  .mainnav.is-open { display: block; }
  .mainnav__in { flex-direction: column; align-items: stretch; padding-top: 8px; padding-bottom: 12px; }
  .mainnav a, .mainnav summary { padding: 12px 10px; font-size: 1rem; }
  .mainnav__drop { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .listing { grid-template-columns: 1fr; gap: 12px; }
  .filters ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .filters li { flex: none; }
  .filters a { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; white-space: nowrap; }
  .filters a[aria-current] { box-shadow: none; border-color: var(--primary); }
  .filters .h-small { display: none; }
  .pdp { grid-template-columns: 1fr; }
  .two, .two--wide, .auth { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
  .bottomnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; font-size: .72rem; font-weight: 600; color: var(--text); text-decoration: none; }
  .bottomnav .badge { right: calc(50% - 22px); }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .wa-float { bottom: calc(76px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .topbar__note { display: none; }
  .topbar__in { justify-content: flex-end; }
  .topbar__links { gap: 12px; }
  .topbar__links > a span { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 10px; }
  .card__actions .btn { padding: 9px 10px; font-size: .86rem; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field { grid-column: 1 / -1; }
  .field--sm { grid-column: span 1; }
  .line { grid-template-columns: 64px 1fr auto; grid-template-areas: "img info remove" "img qty total"; gap: 8px 12px; }
  .line img { grid-area: img; width: 64px; height: 64px; }
  .line__info { grid-area: info; } .line__qty { grid-area: qty; } .line__total { grid-area: total; } .line__remove { grid-area: remove; justify-self: end; }
  .footer__grid { grid-template-columns: 1fr; }
  .foodinfo dl, .kv { grid-template-columns: 1fr; gap: 2px; }
  .foodinfo dd, .kv dd { margin-bottom: 8px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .site-footer, .wa-float, .bottomnav { display: none !important; } }
