:root { --gut: max(18px, 4vw); /* one side gutter for header and hero */
  --red: #8e1b1f;
  --red-dark: #6e1418;
  --charcoal: #17191b;
  --ink: #25282b;
  --muted: #6a7076;
  --line: #e6e1da;
  --paper: #f6f2ec;
  --cream: #fbf3e6;
  --white: #fff;
  --green: #0b6b45;
  --green-soft: #e1f2e9;
  --amber-soft: #fff3dc;
  --radius-sm: 10px;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 12px 32px rgb(20 10 5 / .08);
  --font-display: 'Colus', 'Trajan Pro', Georgia, serif;
  --font-body: 'Noah', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --cat: var(--red);
}
[data-cat='beef'] { --cat: #8e1b1f; }
[data-cat='chicken'] { --cat: #b4561b; }
[data-cat='goat'] { --cat: #0b6b45; }
[data-cat='lamb'] { --cat: #6a2a48; }
[data-cat='bbq'] { --cat: #1f2124; }

/* Noah by Fontfabric: only the free Regular and Bold (+ italics); weight ranges map 500 to Regular and 600-800 to Bold instead of faking weights */
@font-face { font-family: 'Noah'; src: url('/fonts/Noah-Regular.woff2') format('woff2'); font-weight: 100 549; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noah'; src: url('/fonts/Noah-Bold.woff2') format('woff2'); font-weight: 550 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noah'; src: url('/fonts/Noah-RegularItalic.woff2') format('woff2'); font-weight: 100 549; font-style: italic; font-display: swap; }
@font-face { font-family: 'Noah'; src: url('/fonts/Noah-BoldItalic.woff2') format('woff2'); font-weight: 550 1000; font-style: italic; font-display: swap; }
/* Colus by Fontfabric, free font licence (web @font-face allowed): licenses/Colus-Fontfabric-EULA.pdf */
@font-face { font-family: 'Colus'; src: url('/fonts/Colus-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 var(--font-body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { color: var(--charcoal); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3.5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* ---------- Header ---------- */
.topbar { background: var(--charcoal); color: #e9e2d8; font-size: .78rem; text-align: center; padding: 7px 12px; letter-spacing: .06em; text-transform: uppercase; }
.header { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px var(--gut); background: rgb(246 242 236 / .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; color: var(--charcoal); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav { display: flex; gap: 22px; order: 3; width: 100%; font-size: 1rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.cart-link { margin-left: auto; background: var(--charcoal); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.02rem; padding: 10px 18px; border-radius: 999px; transition: background .2s; }
.cart-link:hover { background: var(--red); }
@media (min-width: 760px) { .nav { order: 0; width: auto; margin-left: auto; font-size: 1.08rem; gap: 26px; } .nav + .cart-link { margin-left: 12px; font-size: 1.08rem; } }

main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 64px; min-height: 60vh; }
main:focus { outline: none; }
body[data-page='inner'] main { padding-top: clamp(28px, 4vw, 56px); }
.empty { display: grid; justify-items: start; gap: 6px; padding: 40px 0; }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; border: 0; cursor: pointer; font: 700 1rem var(--font-body); padding: 14px 24px; border-radius: var(--radius-sm); background: var(--red); color: #fff; text-decoration: none; text-align: center; transition: transform .15s var(--ease), background .2s, box-shadow .2s; }
.btn:hover { background: var(--red-dark); box-shadow: 0 8px 20px color-mix(in srgb, var(--red) 25%, transparent); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { background: #b9b4ad; cursor: not-allowed; box-shadow: none; }
.btn.pill { border-radius: 999px; }
.btn.light { background: var(--cream); color: var(--charcoal); }
.btn.light:hover { background: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .2); }
.btn.secondary { background: transparent; color: var(--charcoal); border: 2px solid var(--charcoal); }
.btn.secondary:hover { background: var(--charcoal); color: #fff; }
.btn.block { display: block; width: 100%; }
.btn.small { padding: 9px 14px; font-size: .9rem; }

/* ---------- Home: header over hero ---------- */
html, body { overflow-x: clip; } /* the full-bleed hero is 100vw, which includes a desktop scrollbar */
body[data-page='home'] .header { background: transparent; border-color: transparent; backdrop-filter: none; transition: background .3s, backdrop-filter .3s; }
body[data-page='home'].scrolled .header { background: rgb(23 25 27 / .82); backdrop-filter: blur(12px); }
/* light hero: dark header text until the page scrolls under the dark sticky bar */
body[data-page='home'] .brand, body[data-page='home'] .nav a { color: var(--charcoal); }
body[data-page='home'] .nav a::after { background: var(--charcoal); }
body[data-page='home'] .cart-link { background: var(--charcoal); color: var(--cream); }
body[data-page='home'].scrolled :is(.brand, .nav a) { color: var(--cream); }
body[data-page='home'].scrolled .nav a::after { background: var(--cream); }
body[data-page='home'].scrolled .cart-link { background: var(--cream); color: var(--charcoal); }

/* ---------- Hero ---------- */
/* Gelato-style ring: the current plate sits at the bottom of a marble ring hanging from the top edge; the
   neighbours peek in at the top corners. Geometry is in units of the hero height (--hh) so it holds at any size. */
.hero { --sh: clamp(600px, calc(100svh - var(--header-h, 64px) - 34px), 920px); /* stage height below the header */
  --hh: calc(var(--sh) + var(--header-h, 64px)); /* full hero height (it runs up under the transparent header) */
  --cy: calc(var(--header-h, 64px) + 8px); /* ring centre: just under the header, so the corner plates clear it */
  --R: min(var(--hh) * .43, 38vw); --D: calc(var(--R) * .94); --band: calc(var(--R) * .2);
  --ink: color-mix(in srgb, var(--hcat) 22%, #1d1410);
  position: relative; isolation: isolate; overflow: hidden; color: var(--ink); background-color: var(--hcat); transition: background-color .9s var(--ease), color .9s var(--ease);
  width: 100vw; margin: calc(-18px - var(--header-h, 64px)) calc(50% - 50vw) 0; padding-top: var(--header-h, 64px); }
.hero { --hcat: #ecdccb; } /* any category added in the admin panel */
.hero[data-cat='chicken'] { --hcat: #f2d2b0; }
.hero[data-cat='beef'] { --hcat: #efc8c2; }
.hero[data-cat='lamb'] { --hcat: #e7cfe2; }
.hero[data-cat='goat'] { --hcat: #cfe1cb; }
.hero[data-cat='bbq'] { --hcat: #ecdab4; }
/* soft light in the middle + faint wavy texture, like the reference */
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: radial-gradient(ellipse 50% 55% at 50% 45%, rgb(255 255 255 / .35), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24'%3E%3Cpath d='M0 12 Q30 2 60 12 T120 12' fill='none' stroke='%23000' stroke-opacity='.05' stroke-width='1.4'/%3E%3C/svg%3E"); }

.ring { position: absolute; z-index: 1; left: 50%; top: var(--cy); width: calc(var(--R) * 2); aspect-ratio: 1; translate: -50% -50%;
  rotate: var(--rot); transition: rotate 1.25s cubic-bezier(.7, 0, .2, 1); }
.ring-band { position: absolute; inset: calc(var(--band) * -.5); border-radius: 50%;
  background: linear-gradient(120deg, #f6f4f0, #dedad3 22%, #f7f5f1 40%, #d6d1c9 63%, #f1eee9 80%, #e2ded7),
    repeating-linear-gradient(35deg, transparent 0 22px, rgb(0 0 0 / .035) 23px, transparent 25px);
  background-blend-mode: multiply;
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--band)), #000 calc(100% - var(--band) + 1px));
  filter: drop-shadow(0 14px 22px rgb(0 0 0 / .16)); }
.plate { position: absolute; left: 50%; top: 50%; width: var(--D); aspect-ratio: 1; margin: calc(var(--D) / -2) 0 0 calc(var(--D) / -2);
  transform: rotate(var(--a)) translateY(var(--R)); }
.plate img { width: 100%; height: 100%; object-fit: contain; scale: .62; transition: scale 1s var(--ease);
  filter: drop-shadow(0 22px 24px rgb(0 0 0 / .3)) drop-shadow(0 4px 6px rgb(0 0 0 / .2)); }
.plate.on img { scale: 1; }
.plate { transition: opacity .6s ease; }
.plate.far { opacity: 0; }
.hero:not(.ready) .ring { opacity: 0; rotate: -40deg; }
.hero.ready .ring { opacity: 1; transition: rotate 1.25s cubic-bezier(.7, 0, .2, 1), opacity .8s ease; }

.props { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.prop { position: absolute; height: auto; filter: drop-shadow(0 14px 14px rgb(0 0 0 / .22)); animation: bob 8s ease-in-out infinite;
  translate: calc(var(--px, 0) * var(--d, 10px)) calc(var(--py, 0) * var(--d, 10px)); transition: translate .6s ease-out; }
.garlic { left: 5%; top: 21%; width: calc(var(--hh) * .14); --d: 14px; }
.chilli { right: 6%; top: 27%; width: calc(var(--hh) * .14); --d: 18px; rotate: 18deg; animation-delay: -3s; }
.herb-l { left: 15%; bottom: -2%; width: calc(var(--hh) * .13); --d: 8px; rotate: -38deg; animation-delay: -5s; }
.herb-r { right: 15%; bottom: -2%; width: calc(var(--hh) * .13); --d: 8px; rotate: 38deg; scale: -1 1; animation-delay: -1.5s; }

.hero-slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; z-index: 2; min-height: var(--sh); }
.slide[data-state='idle'] { visibility: hidden; }
/* wordmark: under the plate, sized by height but shrunk for long words so it never crowds the props */
.wordmark { position: absolute; left: 50%; top: calc(var(--cy) + var(--R) + var(--D) * .5 - var(--header-h, 64px) + var(--hh) * .015); translate: -50% 0; margin: 0; overflow: hidden;
  font: 400 min(var(--hh) * .155, 62vw / (var(--len) * .86)) / 1 var(--font-display); letter-spacing: 0; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.wordmark span { display: block; transform: translateY(105%); }
.slide-info { position: absolute; left: max(var(--gut), 7vw); top: calc(var(--cy) + var(--R) - var(--header-h, 64px)); translate: 0 -40%; width: 24ch; opacity: 0; transform: translateY(14px); }
.slide-info .eyebrow { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.slide-info .eyebrow::before, .slide-info .eyebrow::after { content: ''; height: 1px; width: 28px; background: currentColor; opacity: .6; }
.slide-info h2 { font: 800 1.5rem/1.15 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: inherit; margin: 10px 0 6px; }
.slide-info h2 a { color: inherit; text-decoration: none; }
.slide-info h2 a:hover { text-decoration: underline; }
.slide-info .meta { margin: 0 0 14px; font-size: 1rem; }
.slide-info .meta strong { font-size: 1.15rem; }
.slide-buy { display: flex; align-items: center; gap: 10px; }
.mini-qty { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 8px; }
.mini-qty button { width: 34px; height: 38px; background: none; border: 0; color: inherit; font-size: 1.1rem; cursor: pointer; border-radius: 8px; }
.mini-qty button:hover { background: rgb(0 0 0 / .07); }
.mini-qty output { min-width: 18px; text-align: center; font-weight: 700; }
.buy { height: 40px; padding: 0 18px; border: 1px solid currentColor; border-radius: 8px; background: transparent; color: inherit; font: 700 .86rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.buy:hover { background: var(--ink); color: var(--hcat); }

.slide[data-state='active'] .wordmark span { transform: none; transition: transform .9s var(--ease) .35s; }
.slide[data-state='out'] .wordmark span { transform: translateY(-105%); transition: transform .5s ease-in; }
.slide[data-state='active'] .slide-info { opacity: 1; transform: none; transition: transform .8s var(--ease) .45s, opacity .6s ease .45s; }
.slide[data-state='out'] .slide-info { opacity: 0; transition: opacity .3s ease; }

.hero-nav { position: absolute; z-index: 6; right: max(var(--gut), 7vw); top: calc(var(--cy) + var(--R)); translate: 0 -50%; display: grid; justify-items: end; gap: 12px; }
.count { font-size: .92rem; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.count b { font-weight: 800; }
.arrows { display: flex; gap: 10px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); background: transparent; color: inherit; font-size: 1.05rem; cursor: pointer; transition: background .2s, color .2s; }
.round:hover { background: var(--ink); color: var(--hcat); }

@media (max-width: 899px) {
  /* plate sized from the width, capped by the height so a portrait tablet keeps the arrows on screen (phones: width wins) */
  .hero { --cy: var(--header-h, 64px); --R: min(54vw, 34svh); --D: calc(var(--R) * 56 / 54); }
  .props { display: none; }
  .slide { min-height: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: calc(var(--cy) + var(--R) + var(--D) * .5 - var(--header-h, 64px) + 14px) var(--gut) 96px; }
  .wordmark { position: static; translate: none; font-size: min(15vw, 84vw / (var(--len) * .86)); }
  .slide-info { position: static; translate: none; width: auto; margin-top: 14px; display: grid; justify-items: center; }
  .hero-nav { top: auto; bottom: 26px; right: 50%; translate: 50% 0; grid-auto-flow: column; align-items: center; gap: 16px; }
  .hero-nav .count { order: 1; }
  .brand { font-size: 1.1rem; }
}
/* phones held sideways: too short for the stacked phone layout, so go back to the desktop arrangement
   (details left, ring centre, arrows right), sized from the screen height */
@media (max-width: 899px) and (max-height: 500px) and (orientation: landscape) {
  /* one-row header: the two-row phone header eats a third of a sideways screen */
  .header { padding-block: 8px; flex-wrap: nowrap; }
  .nav { order: 0; width: auto; margin-left: auto; gap: 16px; white-space: nowrap; }
  .nav + .cart-link { margin-left: 4px; }
  .hero { --sh: max(270px, calc(100svh - var(--header-h, 64px) - 34px)); --cy: calc(var(--header-h, 64px) + 6px);
    --R: min(var(--hh) * .43, 26vw); --D: calc(var(--R) * .94); }
  .slide { min-height: var(--sh); display: block; padding: 0; text-align: left; }
  .wordmark { position: absolute; translate: -50% 0; font-size: min(var(--hh) * .13, 46vw / (var(--len) * .86)); }
  .slide-info { position: absolute; left: var(--gut); translate: 0 -42%; width: min(30vw, 22ch); margin: 0; display: block; justify-items: start; }
  .slide-info h2 { font-size: 1rem; }
  .slide-info .meta { margin-bottom: 8px; font-size: .92rem; }
  .slide-info .eyebrow { font-size: .7rem; }
  .slide-info h2 { margin-block: 6px 4px; }
  .slide-buy { flex-wrap: wrap; gap: 8px; }
  .hero-nav { top: calc(var(--cy) + var(--R)); bottom: auto; right: var(--gut); translate: 0 -50%; grid-auto-flow: row; justify-items: end; gap: 10px; }
  /* product page: photo beside the details, not a full-screen photo above them */
  .pdp { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .pdp > .visual { position: sticky; top: calc(var(--header-h, 64px) + 12px); }
  .pdp h1 { font-size: 1.9rem; margin-top: 10px; }
  .pdp .price { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .ring, .plate img { transition: none !important; } }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-1.2deg); } }

/* ---------- Seal / product visual ---------- */
.visual { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(ellipse 60% 60% at 50% 45%, rgb(255 255 255 / .16), transparent 70%), radial-gradient(ellipse 90% 90% at 50% 50%, transparent 55%, rgb(0 0 0 / .22)), var(--cat); overflow: hidden; container-type: inline-size; }
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
/* edge to edge, one size on every card: --len is the longest category word (set in app.js), so that word spans the full width and the rest share its size; Colus capitals run about .645em wide. line-height .72 puts the baseline almost on the box bottom */
.watermark { position: absolute; left: -1%; bottom: 4%; font-family: var(--font-display); text-transform: uppercase; font-size: calc(101cqi / (var(--len, 7) * .645)); line-height: .72; color: rgb(255 255 255 / .09); white-space: nowrap; pointer-events: none; transition: transform .6s var(--ease); }
.stamp { position: relative; width: 58%; aspect-ratio: 1; border-radius: 50%; color: var(--cream); border: 1.5px solid rgb(251 243 230 / .55); display: grid; place-items: center; }
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.stamp text { fill: currentColor; font: 700 13px var(--font-body); letter-spacing: .12em; }
.stamp-core { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.stamp-core b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 6vw, 3.4rem); }
.stamp-core small { margin-top: 6px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Delivery checker band ---------- */
.band { margin-top: 18px; display: grid; gap: 14px; background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.band h2 { font-size: 1.6rem; margin: 0; }
.band .hint { margin: 2px 0 0; }
@media (min-width: 900px) { .band { grid-template-columns: 1fr 1.2fr; align-items: center; padding: 26px 32px; } }
.row { display: flex; gap: 8px; }
.row > input { flex: 1; min-width: 0; border-radius: 999px; padding-left: 18px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .94rem; }
input, select, textarea { width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid #d6cfc5; border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 4px var(--green-soft); }
.hint { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); margin: 12px 0; font-weight: 500; }
.notice.ok { background: var(--green-soft); color: #075c38; }
.notice.err { background: #fbe5e5; color: var(--red-dark); }
.notice.warn { background: var(--amber-soft); color: #7a4a00; }

/* ---------- Shop by cut: cover-flow deck (deck.js sets --o / --abs per card) ---------- */
.deck { --cw: clamp(210px, 22vw, 320px); --ch: calc(var(--cw) * 1.32); --step: calc(var(--cw) * .7); overflow-x: clip; padding-block: 8px 4px; }
.deck-track { position: relative; height: calc(var(--ch) + 24px); touch-action: pan-y; }
.deck-card { --o: 0; --abs: 0; position: absolute; left: 50%; top: 12px; width: var(--cw); height: var(--ch); display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--charcoal); box-shadow: 0 10px 26px rgb(0 0 0 / .12); translate: calc(-50% + var(--o) * var(--step)) 0; scale: calc(1 - var(--abs) * .13); z-index: calc(10 - var(--abs)); filter: brightness(calc(1 - var(--abs) * .07)); user-select: none; -webkit-user-drag: none; cursor: pointer; }
.deck.ready .deck-card { transition: translate .65s var(--ease), scale .65s var(--ease), filter .4s, opacity .4s, box-shadow .4s; }
.deck-card.front { box-shadow: 0 26px 50px rgb(0 0 0 / .24); }
.deck-card.far { opacity: 0; pointer-events: none; }
.deck-card:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.deck-photo { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 14px; background: radial-gradient(circle at 60% 40%, rgb(255 255 255 / .22), transparent 65%), var(--cat); }
.deck-photo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 14px rgb(0 0 0 / .35)); transition: transform .6s var(--ease); pointer-events: none; }
.deck-card.front:hover .deck-photo img { transform: translateY(-6px) rotate(-3deg) scale(1.05); }
.deck-body { flex: none; display: grid; gap: 2px; padding: 14px 18px 16px; container-type: inline-size; }
/* every word sized from the longest name (--len on .deck) so the cards match; Colus capitals run about .7em wide */
.deck-word { font-family: var(--font-display); text-transform: uppercase; font-size: min(2.4rem, 100cqi / (var(--len, 6) * .74)); line-height: 1; white-space: nowrap; color: var(--cat); }
.deck-meta { font-size: .9rem; color: var(--muted); }
.deck-card.right .deck-body { justify-items: end; text-align: right; }
.deck-go { margin-top: 6px; font-weight: 700; font-size: .92rem; color: var(--cat); opacity: 0; translate: 0 6px; transition: opacity .35s, translate .35s var(--ease); }
.deck-card.front .deck-go { opacity: 1; translate: 0 0; }
.deck-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; color: var(--charcoal); }
.deck .round:hover { color: var(--cream); }
.deck-dots { display: flex; gap: 6px; }
.deck-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .35s var(--ease), background .35s; }
.deck-dots i.on { width: 22px; background: var(--red); }
/* phones held sideways: little height, so shorter cards */
@media (max-width: 899px) and (max-height: 500px) and (orientation: landscape) { .deck { --cw: 190px; --ch: 220px; } }

/* ---------- Trust ---------- */
/* wrapping row, not a grid: the last row always stretches to fill, so no empty cell */
.trust { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.trust div { flex: 1 1 240px; background: var(--white); padding: 24px; color: var(--muted); font-size: .94rem; }
.trust .trust-brand { display: grid; place-items: center; min-height: 7.5rem; text-align: center; text-wrap: balance; background: var(--charcoal); color: var(--cream); font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.1; letter-spacing: .02em; }
.trust strong { display: block; color: var(--charcoal); font-size: 1.1rem; margin: 6px 0 4px; }
.trust .num { font-family: var(--font-display); color: var(--red); font-size: 1.4rem; }

/* ---------- Product grid ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 12px 0 22px; scrollbar-width: none; }
.chips a { white-space: nowrap; text-decoration: none; color: var(--charcoal); border: 1.5px solid #d6cfc5; padding: 9px 16px; border-radius: 999px; font-weight: 600; transition: background .2s, border-color .2s; }
.chips a:hover { border-color: var(--charcoal); }
.chips a[aria-current='true'] { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; } }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .4s var(--ease), box-shadow .4s var(--ease); box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card:hover .watermark { transform: translateY(-6%); }
.card .visual { border-radius: calc(var(--radius) - 8px); margin: 8px 8px 0; }
.card .stamp { width: 52%; }
.card .stamp-core b { font-size: clamp(1.1rem, 2.6vw, 2rem); }
.card .stamp-core small { font-size: .58rem; margin-top: 3px; }
.card .body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font: 600 1rem/1.3 var(--font-body); margin: 0; }
.card .meta { color: var(--muted); font-size: .84rem; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.card .price { font-weight: 800; color: var(--charcoal); font-size: 1.15rem; }
.pill-mini { font-size: .8rem; font-weight: 700; border: 1.5px solid var(--charcoal); border-radius: 999px; padding: 4px 12px; transition: background .2s, color .2s; }
.card:hover .pill-mini { background: var(--charcoal); color: #fff; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 28px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } .pdp > .visual { position: sticky; top: 90px; } }
.pdp > .visual { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.pdp > .visual .stamp { width: min(58%, 340px); max-width: 66cqh; }
.pdp > .visual { container-type: size; }
@media (min-width: 900px) { .pdp > .visual { aspect-ratio: 1; } }
.pdp .price { font-size: 2rem; font-weight: 800; color: var(--charcoal); letter-spacing: -.02em; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options label { margin: 0; font-weight: 500; }
.options input { position: absolute; opacity: 0; width: 1px; }
.options span { display: block; padding: 10px 16px; border: 1.5px solid #d6cfc5; border-radius: 999px; cursor: pointer; background: #fff; transition: all .2s; }
.options input:checked + span { border-color: var(--charcoal); background: var(--charcoal); color: #fff; }
.options input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.qty { justify-self: start; display: inline-flex; align-items: center; border: 1.5px solid #d6cfc5; border-radius: 999px; background: #fff; }
.qty button { border: 0; background: none; font-size: 1.3rem; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; }
.qty button:hover { background: var(--paper); }
.qty output { min-width: 30px; text-align: center; font-weight: 700; }
.info { background: var(--white); border-radius: var(--radius-sm); padding: 16px; font-size: .92rem; margin-top: 18px; border: 1px solid var(--line); }
.halal-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }

/* ---------- Cart & checkout ---------- */
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; background: var(--white); padding: 16px; border-radius: var(--radius-sm); margin-bottom: 10px; }
.cart-line h3 { font: 600 1rem var(--font-body); margin: 0; }
.cat-chip { display: inline-block; margin-bottom: 6px; padding: 3px 8px; border-radius: 999px; background: var(--cat); color: var(--cream); font: 700 .62rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.lost { padding: 24px 0 8px; }
.lost p { color: var(--muted); max-width: 46ch; }
.cart-line .meta { color: var(--muted); font-size: .88rem; }
.cart-line .line-total { font-weight: 800; text-align: right; }
.link-btn { background: none; border: 0; color: var(--red); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.progress { margin: 14px 0; }
.progress .label { font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.bar { height: 8px; background: #ebe5dc; border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--red); border-radius: 999px; transition: width .5s var(--ease); }
.bar.done span { background: var(--green); }
.totals { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.totals dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 14px; }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .grand { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; }
.two-col { display: grid; gap: 24px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.4fr 1fr; align-items: start; } .two-col > aside { position: sticky; top: 90px; } }
fieldset { border: 0; background: var(--white); border-radius: var(--radius); padding: 8px 20px 22px; margin: 0 0 16px; }
legend { float: left; width: 100%; font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; padding: 16px 0 10px; color: var(--charcoal); }
legend + * { clear: both; }
.choice { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); margin: 8px 0 0; cursor: pointer; transition: border-color .2s, background .2s; }
.choice input { width: auto; margin-top: 3px; accent-color: var(--red); }
.choice:has(input:checked) { border-color: var(--charcoal); background: #faf7f3; }
.slots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-2 { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }

/* ---------- Content pages ---------- */
/* text pages (Halal standards, FAQ): one centred reading column, sections spaced apart */
.prose { max-width: 72ch; margin-inline: auto; }
.prose h2 { margin-top: .8em; }
.prose h1 + h2 { margin-top: .6em; }
.prose .halal-badge + h1 { margin-top: 14px; }
.prose table { margin-bottom: 2.4rem; border-collapse: collapse; width: 100%; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--charcoal); color: #fff; font-weight: 600; }
details { background: var(--white); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 8px; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--red); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 2px; color: var(--muted); }
.prose details:last-of-type { margin-bottom: 2.4rem; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: #cfc8be; padding: 48px 18px 36px; font-size: .9rem; margin-top: 40px; }
.footer .inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer strong { color: #fff; display: block; margin-bottom: 8px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .03em; }

/* ---------- Motion: page changes, scroll reveals, small feedback ---------- */
/* page change (View Transitions API): only <main> slides; header and footer just cross-fade */
html[data-vt] main { view-transition-name: page; }
::view-transition-group(root) { animation-duration: .3s; }
::view-transition-group(page) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-old(page) { animation: page-out .22s ease-in both; }
::view-transition-new(page) { animation: page-in .55s var(--ease) .14s both; }
/* in-page updates (cart quantity, remove): a quick cross-fade, no slide */
html[data-vt='swap']::view-transition-old(page) { animation: fade-out .18s ease both; }
html[data-vt='swap']::view-transition-new(page) { animation: fade-in .25s ease both; }
main.enter { animation: page-in .55s var(--ease) both; } /* browsers without View Transitions */
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(22px); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
/* scroll reveal: set by revealBelowFold() in app.js, removed once shown so hover effects keep working */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .75s var(--ease) !important; }
.reveal.in { opacity: 1; transform: none; }
/* feedback */
#cart-count { display: inline-block; }
#cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 35% { transform: scale(1.6); } }
.notice { animation: notice-in .45s var(--ease) both; }
@keyframes notice-in { from { opacity: 0; transform: translateY(-8px); } }
.chips a, .options span, .choice span, .slot span, .qty button, .mini-qty button, .link-btn, .footer a { transition: background .25s, color .25s, border-color .25s, transform .2s; }
.qty button:active, .mini-qty button:active, .chips a:active, .cart-link:active { transform: scale(.94); }
/* FAQ answers open and close smoothly where supported */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.sold-out { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--charcoal); color: #fff; font: 700 .7rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }

.brand .logo { height: 40px; width: auto; max-width: 200px; object-fit: contain; display: block; }
