/*
 * BakeBox storefront — base theme ("Cocoa"). Hand-written, no build step.
 * Every colour and font is a variable: a theme overrides the variables in its
 * own theme.css and inherits everything else (UI-STANDARDS §10).
 */
:root {
    --choc: #2a160d;          /* deep brand colour: header strips, dark panels, footer */
    --choc-2: #4a2918;        /* second stop of dark gradients */
    --accent: #c8782f;        /* buttons, prices, highlights */
    --accent-2: #e9a35a;      /* accent on dark backgrounds */
    --accent-ink: #ffffff;    /* text on the accent */
    --accent-soft: #fdf0e3;   /* icon tiles */
    --page: #fbf4ec;          /* page background */
    --surface: #ffffff;
    --tint: #f3dfc9;          /* picture backgrounds */
    --text: #2a1a12;
    --muted: #7a6558;
    --line: #ecdccb;
    --ok: #15803d;
    --err: #b42318;
    --star: #f2a63b;
    --wa: #1fa855;
    --display: 'Poppins', 'Inter', system-ui, sans-serif;
    --body: 'DM Sans', 'Inter', system-ui, sans-serif;
    --r: 22px;
    --r-sm: 14px;
    --shadow: 0 14px 34px -24px rgba(74, 40, 20, .5);
    --choc-3: #1d0e08;        /* deepest: footer, end of the hero gradient */
    --text-2: #4a372c;        /* softer body text: descriptions, reviews */
    --line-soft: #f1e4d6;     /* card borders */
    --on-dark: #e8d6c6;       /* paragraph text on dark panels */
    --on-dark-2: #cdb6a4;     /* small text on dark panels, footer text */
    --on-accent-2: #fff3e6;   /* paragraph text on the accent band */
    --tint-2: #fff6ec;        /* centre glow behind product pictures */
    --cream: #fffaf5;         /* soft input/option backgrounds, note card */
    --logo-bg: #ffffff;       /* tile behind an uploaded logo */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--page); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
:lang(si) { font-family: 'BakeBox Sinhala', var(--body); }
:lang(ta) { font-family: 'BakeBox Tamil', var(--body); }
/* Sinhala and Tamil: no letter-spacing or capitals (they break the letters apart), a little more line height
   for the vowel signs above and below, and long words may wrap on a phone. */
:lang(si) .eyebrow, :lang(ta) .eyebrow, :lang(si) .logo .name small, :lang(ta) .logo .name small { letter-spacing: 0; text-transform: none; }
:lang(si) h1, :lang(si) h2, :lang(si) h3, :lang(ta) h1, :lang(ta) h2, :lang(ta) h3 { letter-spacing: 0; line-height: 1.35; overflow-wrap: break-word; }
body:lang(si), body:lang(ta) { line-height: 1.7; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; margin: 0; color: var(--choc); }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic.s { width: 16px; height: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
em.ac { font-style: normal; color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 14px 24px; min-height: 48px; border: 0; border-radius: 999px; font-size: 15px; cursor: pointer; box-shadow: 0 8px 22px -10px var(--accent); text-align: center; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.05); }
.btn.dark, .btn-dark { background: var(--choc); color: #fff; box-shadow: 0 8px 22px -12px var(--choc); }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; box-shadow: none; }
.btn.line { background: transparent; border: 1.5px solid var(--line); color: var(--text); box-shadow: none; }
.btn.wa { background: var(--wa); color: #fff; box-shadow: none; }
.btn.sm { padding: 10px 18px; min-height: 42px; font-size: 14px; }
.btn.block, .btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.eyebrow.light { color: var(--accent-2); }

/* Top strip and header */
.topbar { background: var(--choc); color: var(--on-dark); font-size: 13px; }
.topbar .in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar .l, .topbar .r { display: flex; gap: 20px; align-items: center; }
.topbar .l > * { display: inline-flex; gap: 7px; align-items: center; }
.topbar form { margin: 0; }
.topbar select { background: transparent; color: inherit; border: 1px solid rgba(255, 255, 255, .2); border-radius: 99px; padding: 3px 10px; font-size: 13px; }
.topbar select option { color: #111; }
.soc { display: flex; gap: 12px; }
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.hdr .in { display: flex; align-items: center; min-height: 80px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo .mark { width: 46px; height: 46px; border-radius: 14px; background: var(--choc); display: grid; place-items: center; flex: none; overflow: hidden; }
.logo .mark img { width: 100%; height: 100%; object-fit: cover; }
.logo .mark.has-img { background: var(--logo-bg, #fff); padding: 4px; }
.logo .mark.has-img img { object-fit: contain; }
.logo .name { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--choc); line-height: 1.05; }
.logo .name small { display: block; font-family: var(--body); font-size: 10px; letter-spacing: .2em; color: var(--accent); font-weight: 700; margin-top: 4px; text-transform: uppercase; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 15px; color: var(--text-2); }
.nav a { white-space: nowrap; }
.hdr .hact .btn { white-space: nowrap; }
:lang(si) .nav, :lang(ta) .nav { gap: 20px; font-size: 14px; }
.hdr .logo { flex-shrink: 0; }
:lang(ta) .hero h1 { font-size: clamp(32px, 4.4vw, 56px); }
/* Longer menu words: the header's "Order now" gives way below 1360 px (the banner has its own button). */
@media (max-width: 1359px) { :lang(si) .hdr .hact .btn, :lang(ta) .hdr .hact .btn { display: none; } }
.nav a[aria-current] { color: var(--accent); position: relative; }
.nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--accent); border-radius: 2px; }
.hact { display: flex; align-items: center; gap: 8px; }
.icb { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--choc); position: relative; }
.count { position: absolute; top: -4px; right: -4px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; border: 2px solid #fff; padding: 0 4px; }
.search-row { display: none; }
.menu-btn { display: none; }
.mnav { display: none; }

/* Flash and demo */
.flash { margin: 18px 0; padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; }
.flash.ok { background: #e7f6ec; color: var(--ok); }
.flash.err { background: #fdecea; color: var(--err); }
.demo-bar { background: #fff4d6; color: #6b4a00; text-align: center; padding: 8px 12px; font-size: 14px; }
.demo-bar a { text-decoration: underline; margin-left: 8px; }

/* Hero */
.hero { position: relative; background: radial-gradient(ellipse at 75% 40%, var(--choc-2) 0%, var(--choc) 60%, var(--choc-3) 100%); color: #fff; overflow: hidden; padding: 64px 0 110px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 40%); }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 30px; position: relative; }
.hero h1 { font-size: clamp(38px, 5.2vw, 66px); font-weight: 800; color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent-2); display: block; }
.hero p.lead { font-size: 18px; color: var(--on-dark); max-width: 520px; margin-bottom: 32px; }
.hero .btns { display: flex; gap: 14px; margin-bottom: 44px; flex-wrap: wrap; }
.stats { display: flex; gap: 0; flex-wrap: wrap; }
.stats div { padding: 0 34px; border-left: 1px solid rgba(255, 255, 255, .15); }
.stats div:first-child { padding-left: 0; border: 0; }
.stats b { display: block; font-family: var(--display); font-size: 26px; color: #fff; }
.stats span { font-size: 13px; color: var(--on-dark-2); }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 8% 6% 14%; background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 38%, transparent), transparent 65%); filter: blur(10px); }
.hero-photo { position: relative; border-radius: 220px 220px 32px 32px; overflow: hidden; aspect-ratio: 4/5; max-width: 470px; margin-left: auto; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); border: 6px solid rgba(255, 255, 255, .06); background: var(--choc-2); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; background: #fff; color: var(--text); border-radius: 16px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.3; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); }
.float b { font-size: 14px; }
.float .ic { color: var(--accent); width: 30px; height: 30px; padding: 6px; background: var(--accent-soft); border-radius: 10px; }
.float.f1 { left: 0; bottom: 60px; }
.float.f2 { right: -10px; top: 60px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2fbf63; box-shadow: 0 0 0 5px rgba(47, 191, 99, .2); flex: none; }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; color: var(--page); }

/* Promise strip */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--r); padding: 26px 10px; margin-top: -48px; position: relative; z-index: 2; box-shadow: 0 20px 50px -25px rgba(74, 40, 20, .35); }
.feat { display: flex; gap: 14px; align-items: center; padding: 0 22px; }
.feat + .feat { border-left: 1px dashed var(--line); }
.fi { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.fi .ic { width: 26px; height: 26px; }
.feat b { display: block; font-family: var(--display); font-size: 16px; color: var(--choc); }
.feat span { font-size: 13.5px; color: var(--muted); }

/* Sections */
.sec { padding-top: 92px; }
.shead { text-align: center; max-width: 660px; margin: 0 auto 32px; }
.shead h2, h2.big { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; }
.shead p { color: var(--muted); margin: 12px 0 0; }
.chips { display: flex; gap: 10px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.chips a { padding: 10px 20px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.chips a[aria-current] { background: var(--choc); color: #fff; border-color: var(--choc); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.more-row { text-align: center; margin-top: 40px; }

/* Product card */
.card { background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .pic { position: relative; display: block; background: radial-gradient(circle at 50% 40%, var(--tint-2), var(--tint)); aspect-ratio: 1/1; overflow: hidden; }
.card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .pic img { transform: scale(1.04); }
.badge { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 99px; z-index: 1; }
.tagchip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #eaf5e6; color: #2f6b22; margin: 0 4px 4px 0; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.rate { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--choc); min-height: 20px; }
.rate span { color: var(--muted); font-weight: 500; }
.rate .ic { color: var(--star); fill: var(--star); width: 15px; height: 15px; }
.card h3 { font-size: 17px; font-weight: 600; margin: 6px 0 12px; }
.card .row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.price { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--accent); white-space: nowrap; }
.price small { font-family: var(--body); font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.price s { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.add { display: inline-flex; gap: 6px; align-items: center; border: 0; background: var(--choc); color: #fff; font-weight: 700; font-size: 13.5px; padding: 10px 15px; min-height: 44px; border-radius: 99px; cursor: pointer; }
.add:hover { background: var(--accent); color: var(--accent-ink); }
.card form { margin: 0; }

/* Build-a-box panel (home + page) */
.boxp { background: linear-gradient(135deg, var(--choc), var(--choc-2)); border-radius: 32px; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px; align-items: center; }
.boxp h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.boxp h2 em { font-style: normal; color: var(--accent-2); }
.boxp > div > p { color: var(--on-dark); margin: 12px 0 26px; }
.sizes { display: flex; gap: 12px; margin-bottom: 22px; }
.sizes a, .sizes label { flex: 1; text-align: center; padding: 12px 6px; border-radius: 16px; border: 1.5px solid rgba(255, 255, 255, .18); font-weight: 700; cursor: pointer; }
.sizes small { display: block; font-weight: 500; color: var(--on-dark-2); font-size: 13px; }
.sizes [aria-current], .sizes label:has(input:checked) { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 14%, transparent); }
.sizes label small { display: block; }
.picks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.picks li { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .06); padding: 10px 14px; border-radius: 14px; font-weight: 600; }
.picks img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.boxp-art { position: relative; display: grid; place-items: center; }
.boxp-art .ph { position: relative; width: 86%; aspect-ratio: 1/1; border-radius: 26px; overflow: hidden; transform: rotate(-3deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); border: 8px solid var(--cream); }
.boxp-art .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.note-card { position: absolute; bottom: 10px; right: 10px; background: var(--cream); color: var(--choc); font-family: var(--display); font-weight: 600; padding: 12px 16px; border-radius: 14px; transform: rotate(3deg); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); }
.note-card small { display: block; font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-art { position: relative; }
.about-art .ph { position: relative; border-radius: 200px 200px 28px 28px; overflow: hidden; aspect-ratio: 4/5; background: var(--tint); }
.about-art .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.years { position: absolute; right: -14px; bottom: 40px; background: var(--accent); color: var(--accent-ink); border-radius: 22px; padding: 18px 22px; display: flex; gap: 10px; align-items: center; box-shadow: 0 16px 30px -12px var(--accent); }
.years b { font-family: var(--display); font-size: 42px; line-height: 1; }
.years span { font-size: 13px; line-height: 1.25; font-weight: 600; }
.about h2 { font-size: clamp(28px, 3.4vw, 42px); }
.about h2 em { font-style: normal; color: var(--accent); display: block; }
.about p { color: var(--muted); margin: 16px 0 22px; }
.ticks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 30px; padding: 0; font-weight: 600; font-size: 15px; }
.ticks li { display: flex; gap: 9px; align-items: center; }
.ticks .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }

/* Custom orders band */
.band { background: linear-gradient(120deg, var(--accent), var(--accent-2)); border-radius: 32px; padding: 50px 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; color: #fff; }
.band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.band h2 em { font-style: normal; color: var(--choc); display: block; }
.band .eyebrow { color: var(--on-accent-2); }
.band p { color: var(--on-accent-2); margin: 12px 0 24px; }
.band .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.band .btn:not(.wa) { background: var(--choc); color: #fff; }

/* Forms */
.panel, .qform { background: var(--surface); color: var(--text); border-radius: var(--r); padding: 24px; border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.qform { display: grid; gap: 12px; }
.qform .field { margin-bottom: 0; }
.qform > b, .panel > h2, .panel > h3 { font-family: var(--display); font-size: 18px; color: var(--choc); }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea, .inp { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px; color: var(--text); font-weight: 500; background: var(--cream); min-height: 48px; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; border-color: var(--accent); }
.field .hint { font-weight: 500; font-size: 12.5px; }
.err-text, .field-err { color: var(--err); font-size: 13px; font-weight: 600; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; }
.held { background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; font-size: 14px; }

/* Gallery */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 18px; }
.gal figure { margin: 0; border-radius: var(--r); overflow: hidden; position: relative; background: var(--tint); min-height: 0; }
.gal figure:first-child { grid-row: span 2; grid-column: span 2; }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 600; }

/* Reviews band */
.revs { background: linear-gradient(var(--page), var(--tint)); padding: 80px 0 70px; margin-top: 92px; }
.rev { background: var(--surface); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.rev .q { font-family: var(--display); font-size: 60px; color: var(--accent); line-height: .6; height: 24px; }
.rev p { color: var(--text-2); margin-bottom: 22px; }
.who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.who b { display: block; font-size: 15px; }
.who span { font-size: 13px; color: var(--muted); }
.av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--choc); background: var(--tint); flex: none; }
.stars5 { margin-left: auto; display: flex; color: var(--star); }
.stars5 .ic { width: 15px; height: 15px; fill: var(--star); }
.rev-avg { text-align: center; margin-top: 26px; color: var(--muted); font-weight: 600; }

/* Blog cards */
.post { background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-soft); display: flex; flex-direction: column; }
.post .ph { position: relative; display: block; aspect-ratio: 16/10; background: var(--tint); overflow: hidden; }
.post .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post .tag { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--accent); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 99px; }
.post .body { padding: 20px 22px 24px; }
.post .meta { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.post h3 { font-size: 19px; font-weight: 600; margin: 8px 0 12px; }
.post .more { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--accent); font-size: 14px; }

/* Newsletter */
.news { margin-top: 92px; }
.news .in { background: var(--choc); border-radius: 28px; padding: 34px 44px; display: flex; align-items: center; gap: 24px; color: #fff; background-image: radial-gradient(circle at 90% 0, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 40%); }
.news .ni { width: 64px; height: 64px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.news .ni .ic { width: 30px; height: 30px; }
.news h3 { font-size: 24px; color: #fff; }
.news p { color: var(--on-dark-2); font-size: 15px; margin: 4px 0 0; }
.news form { margin-left: auto; display: flex; background: #fff; border-radius: 99px; padding: 6px; align-items: center; width: 440px; max-width: 100%; }
.news input[type=email] { flex: 1; border: 0; background: transparent; padding: 0 16px; font-size: 16px; min-width: 0; color: var(--text); outline: 0; }

/* Footer */
.ftr { background: var(--choc-3); color: var(--on-dark-2); margin-top: 92px; padding-top: 70px; }
.ftr .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.ftr .logo .name { color: #fff; }
.ftr .logo .mark { background: rgba(255, 255, 255, .08); }
.ftr .logo .mark.has-img { background: var(--logo-bg, #fff); }
.ftr p { margin: 16px 0 20px; font-size: 15px; max-width: 280px; }
.fsoc { display: flex; gap: 10px; }
.fsoc a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; }
.ftr h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 11px; font-size: 15px; display: flex; gap: 9px; align-items: flex-start; }
.ftr li .ic { color: var(--accent-2); margin-top: 3px; }
.ftr .bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; padding-bottom: 22px; font-size: 13.5px; }

/* WhatsApp button and the phone bar */
.wafab { position: fixed; right: 24px; bottom: 24px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .45); z-index: 30; }
.wafab .ic { width: 30px; height: 30px; }
.bar { display: none; }

/* Page heads and inner pages */
.page-top { background: radial-gradient(ellipse at 80% 30%, var(--choc-2), var(--choc)); color: #fff; padding: 48px 0 56px; }
.page-top h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); }
.page-top p { color: var(--on-dark); margin: 10px 0 0; max-width: 640px; }
.crumbs { font-size: 13px; color: var(--on-dark-2); margin-bottom: 10px; }
.crumbs a { text-decoration: underline; }
.page-h { font-size: clamp(26px, 3vw, 36px); margin: 32px 0 20px; }
.content { max-width: 760px; margin: 0 auto; font-size: 17px; }
.content h2 { font-size: 24px; margin: 1.4em 0 .5em; }
.content h3 { font-size: 20px; margin: 1.2em 0 .4em; }
.content ul, .content ol { padding-left: 1.3em; }
.content img { border-radius: var(--r); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 20px; }
.toolbar form { display: flex; gap: 8px; align-items: center; margin: 0; }
.toolbar select, .toolbar input { border: 1px solid var(--line); border-radius: 99px; padding: 10px 16px; background: var(--surface); min-height: 44px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.pager a, .pager span { padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; margin-top: 34px; align-items: start; }
.gallery-main { position: relative; border-radius: 28px; overflow: hidden; background: var(--tint); aspect-ratio: 1/1; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs a { width: 80px; height: 80px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; }
.thumbs a[aria-current] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 10px; }
.pdp .price { font-size: 28px; }
.optlist { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.optlist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.optlist li + li { border-top: 1px solid var(--line-soft); }
.optlist .l small { display: block; color: var(--muted); font-size: 13px; }
.optlist .p { font-weight: 700; color: var(--accent); }
.card .ask { font-size: 13px; font-weight: 600; color: var(--accent); }
.pdp .desc { color: var(--text-2); font-size: 16.5px; margin: 16px 0 22px; }
.opts { display: grid; gap: 10px; margin-bottom: 18px; }
.opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 16px; background: var(--surface); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input { accent-color: var(--accent); width: 18px; height: 18px; }
.opt .l { flex: 1; font-weight: 600; }
.opt .l small { display: block; color: var(--muted); font-weight: 500; }
.opt .p { font-family: var(--display); font-weight: 700; color: var(--accent); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; background: var(--surface); }
.qty button { width: 44px; height: 46px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--choc); }
.qty input { width: 48px; text-align: center; border: 0; background: transparent; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.buy .btn { flex: 1; min-width: 200px; }
.facts { display: grid; gap: 10px; margin: 22px 0; padding: 18px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.facts div { display: flex; gap: 10px; align-items: flex-start; }
.facts .ic { color: var(--accent); margin-top: 2px; }
details.more-info { border-top: 1px solid var(--line); padding: 14px 0; }
details.more-info summary { font-weight: 700; cursor: pointer; font-family: var(--display); color: var(--choc); }
details.more-info p { margin: 10px 0 0; color: var(--text-2); }

/* Box builder page */
.builder { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; margin-top: 34px; align-items: start; }
.flavours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flv { background: var(--surface); border-radius: 18px; overflow: hidden; border: 1.5px solid var(--line-soft); }
.flv.on { border-color: var(--accent); }
.flv img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--tint); }
.flv .b { padding: 12px 14px; }
.flv h3 { font-size: 15px; margin-bottom: 10px; }
.flv .qty { width: 100%; justify-content: space-between; }
.boxsum { position: sticky; top: 100px; background: linear-gradient(135deg, var(--choc), var(--choc-2)); color: #fff; border-radius: var(--r); padding: 26px; }
.boxsum h2 { color: #fff; font-size: 22px; margin-bottom: 14px; }
.sizes.v { flex-direction: column; }
.sizes input { position: absolute; opacity: 0; }
.sizes label span { display: block; padding: 2px; border-radius: 14px; }
.meter { height: 10px; background: rgba(255, 255, 255, .15); border-radius: 10px; overflow: hidden; margin: 10px 0 6px; }
.meter span { display: block; height: 100%; background: var(--accent-2); width: 0; transition: width .2s; }
.boxsum .total { font-family: var(--display); font-size: 30px; font-weight: 700; margin: 10px 0 16px; }

/* Cart and checkout */
.cart { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; margin-top: 30px; align-items: start; }
.cart-line { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.cart-line img, .cart-line .ph { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; background: var(--tint); flex: none; }
.cart-line .t { flex: 1; min-width: 0; }
.cart-line .t b { display: block; font-family: var(--display); color: var(--choc); }
.cart-line .t small { color: var(--muted); display: block; }
.cart-line form { margin: 0; display: flex; gap: 8px; align-items: center; }
.cart-line .lt { font-family: var(--display); font-weight: 700; min-width: 80px; text-align: right; }
.sumbox { background: var(--surface); border-radius: var(--r); padding: 24px; border: 1px solid var(--line-soft); box-shadow: var(--shadow); position: sticky; top: 100px; }
.sumbox h2 { font-size: 20px; margin-bottom: 14px; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.sumrow.promo { color: var(--ok); }
.sumrow.total { font-family: var(--display); font-weight: 700; font-size: 20px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.sumlines { font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.co { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; margin-top: 30px; align-items: start; }
.co .panel { margin-bottom: 20px; }
.co h2 { font-size: 20px; margin-bottom: 14px; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.way { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; background: var(--cream); }
.way:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.way input { accent-color: var(--accent); margin-top: 4px; }
.way b { display: block; }
.way small { color: var(--muted); }
.when select { font-weight: 600; }
[data-for] { display: none; }
[data-for].show { display: block; }
.sumrow[data-for].show { display: flex; }
.noscript-both [data-for] { display: block; }
/* Loyalty points at checkout: the summary shows the totals with or without points. */
form:not(.use-points) [data-points="on"], form.use-points [data-points="off"] { display: none !important; }
.usepts { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 8px 0 4px; cursor: pointer; }
.usepts input { width: 20px; height: 20px; accent-color: var(--accent); }

/* Order page */
.order-head { text-align: center; padding: 30px 0 6px; }
.order-head .ok { width: 70px; height: 70px; border-radius: 50%; background: #e7f6ec; color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.order-ref { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--choc); letter-spacing: .04em; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 26px 0; counter-reset: s; }
.steps li { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); position: relative; padding-top: 34px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--muted); display: grid; place-items: center; font-size: 13px; }
.steps li.done, .steps li.now { color: var(--choc); }
.steps li.done::before { content: "✓"; background: var(--ok); color: #fff; }
.steps li.now::before { background: var(--accent); color: var(--accent-ink); }
.order-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.kv dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kv dd { margin: 2px 0 0; font-weight: 600; }
.instructions { background: var(--accent-soft); border-radius: var(--r-sm); padding: 14px 16px; white-space: pre-line; margin: 16px 0; }

/* Reviews on the product page (kept partial) */
.block { margin-top: 60px; }
.reviews h2 { font-size: 26px; margin-bottom: 18px; }
.rv-summary { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.rv-avg strong { font-family: var(--display); font-size: 40px; margin-right: 8px; }
.stars { --r: 5; display: inline-block; font-size: 18px; letter-spacing: 2px; background: linear-gradient(90deg, var(--star) calc(var(--r) / 5 * 100%), var(--line) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "★★★★★"; }
.rv-bars { margin: 0; display: grid; gap: 4px; font-size: 13px; }
.rv-bars div { display: flex; gap: 10px; align-items: center; }
.rv-bars dd { margin: 0; display: flex; gap: 8px; align-items: center; }
.bar-track { display: inline-block; width: 140px; height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--star); }
.rv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rv { background: var(--surface); border-radius: var(--r-sm); padding: 16px 18px; border: 1px solid var(--line-soft); }
.rv-head { display: flex; gap: 10px; align-items: center; }
.rv-body { margin: 8px 0; }
.rv-by { font-size: 13px; margin: 0; }
.rv-reply { margin-top: 10px; padding: 10px 12px; background: var(--page); border-radius: 10px; font-size: 14px; }
.rv-write { margin-top: 20px; }
.rate-pick { border: 0; padding: 0; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate-pick legend { font-weight: 700; margin-bottom: 4px; }
.rate-pick input { position: absolute; opacity: 0; }
.rate-pick label { font-size: 28px; color: var(--line); cursor: pointer; }
.rate-pick input:checked ~ label, .rate-pick label:hover, .rate-pick label:hover ~ label { color: var(--star); }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
    .nav { gap: 16px; font-size: 14px; }
    .grid4 { grid-template-columns: repeat(3, 1fr); }
    .hdr .hact .btn { display: none; }
}

/* ---------- Phone (UI-STANDARDS §8) ---------- */
@media (max-width: 767px) {
    body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
    .wrap { padding: 0 18px; }
    .topbar .l > :not(:first-child), .topbar .soc { display: none; }
    .topbar .in { min-height: 36px; font-size: 12px; }
    .hdr .in { min-height: 60px; gap: 10px; }
    .nav, .hact .icb:not(.cartb), .hact .btn { display: none; }
    .hact { margin-left: auto; }
    .logo .mark { width: 38px; height: 38px; border-radius: 11px; }
    .logo .name { font-size: 18px; }
    .logo .name small { font-size: 8.5px; }
    .menu-btn { display: grid; }
    details.mnav-wrap > summary { list-style: none; }
    details.mnav-wrap > summary::-webkit-details-marker { display: none; }
    details.mnav-wrap[open] .mnav { display: grid; position: absolute; left: 0; right: 0; top: 60px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 18px 16px; gap: 2px; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3); }
    .mnav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
    .hero { padding: 26px 0 86px; }
    .hero .grid { grid-template-columns: 1fr; gap: 8px; }
    .hero-art { order: -1; }
    .hero-photo { aspect-ratio: 1/1; max-width: none; border-radius: 160px 160px 26px 26px; margin: 0 4px 12px; }
    .float.f1 { display: none; }
    .float.f2 { right: 14px; top: 14px; }
    .hero p.lead { font-size: 16px; margin-bottom: 22px; }
    .hero .btns { flex-direction: column; gap: 10px; margin-bottom: 28px; }
    .stats div { padding: 0 14px; }
    .stats b { font-size: 20px; }
    .stats span { font-size: 12px; }
    .feats { grid-template-columns: 1fr 1fr; gap: 18px 0; padding: 20px 4px; margin: -40px 0 0; }
    .feat { padding: 0 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .feat + .feat { border: 0; }
    .sec { padding-top: 64px; }
    .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -18px 24px; padding: 0 18px 4px; }
    .grid4 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .grid3 { grid-template-columns: 1fr; gap: 16px; }
    .card { border-radius: 18px; }
    .card .body { padding: 12px; }
    .card h3 { font-size: 14.5px; margin: 4px 0 10px; }
    .card .row { flex-direction: column; align-items: stretch; gap: 10px; }
    .price { font-size: 17px; }
    .add { justify-content: center; }
    .boxp { grid-template-columns: 1fr; padding: 30px 20px; border-radius: 26px; gap: 10px; }
    .boxp-art { order: -1; }
    .about { grid-template-columns: 1fr; gap: 34px; }
    .years { right: 4px; }
    .ticks { grid-template-columns: 1fr; }
    .band { grid-template-columns: 1fr; padding: 30px 20px; gap: 24px; border-radius: 26px; }
    .band .btns { flex-direction: column; }
    .gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 12px; }
    .gal figure:first-child { grid-column: span 2; grid-row: span 1; }
    .revs { margin-top: 64px; padding-top: 60px; }
    .news { margin-top: 64px; }
    .news .in { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
    .news form { width: 100%; margin: 0; }
    .ftr { margin-top: 64px; padding-top: 50px; }
    .ftr .grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .ftr .grid > :first-child, .ftr .grid > :last-child { grid-column: span 2; }
    .wafab { bottom: 84px; right: 16px; width: 52px; height: 52px; }
    .bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 40; height: calc(62px + env(safe-area-inset-bottom, 0px)); }
    .bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; min-height: 62px; }
    .bar a[aria-current] { color: var(--accent); }
    .bar .ic { width: 22px; height: 22px; }
    .bar .count { top: 6px; right: calc(50% - 22px); }
    .pdp, .builder, .cart, .co, .order-grid { grid-template-columns: 1fr; gap: 22px; }
    .flavours { grid-template-columns: 1fr 1fr; gap: 12px; }
    .boxsum, .sumbox { position: static; }
    .two, .ways { grid-template-columns: 1fr; }
    .cart-line { flex-wrap: wrap; }
    .cart-line .t { flex-basis: calc(100% - 100px); }
    .steps li { font-size: 11px; }
    .kv { grid-template-columns: 1fr; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar > * { min-width: 0; max-width: 100%; }
    .toolbar form input { flex: 1; min-width: 0; }
    .toolbar form select { flex: 1; min-width: 0; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
