/* Spice Charm — kraft-pouch palette: warm paper ground, chilli red action, curry-leaf green trust.
   Single light theme by design (the brand is the kraft pouch); every colour is a token. */
/* Fonts are self-hosted (SIL Open Font License): Fraunces, Manrope, Noto Sans Malayalam. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/fraunces.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(fonts/manrope.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans Malayalam'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/noto-sans-malayalam.woff2) format('woff2');
  unicode-range: U+0307, U+0323, U+0951-0952, U+0964-0965, U+0D00-0D7F, U+1CDA, U+1CF2, U+200C-200D, U+20B9, U+25CC, U+A830-A832; }
:root {
  --paper: #FBF7F0;      /* page ground */
  --sand: #F2EADC;       /* section band, image wells */
  --line: #E3D8C6;       /* hairlines */
  --ink: #1E1A16;        /* text, dark bands */
  --muted: #5C5247;      /* secondary text */
  --chilli: #A30715;     /* primary action */
  --chilli-dark: #7A0510;
  --leaf: #2E5A36;       /* trust, WhatsApp, in-stock */
  --leaf-soft: #EEF3EC;
  --turmeric: #E9B949;   /* eyebrow on dark */
  --note: #FFF4D6;       /* batch / to-do notes */
  --note-ink: #6B4E00;
  --white: #FFFFFF;
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-ml: 'Noto Sans Malayalam', 'Manrope', sans-serif;
  --wrap: 1180px;
  --r: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chilli); }
a:hover { color: var(--chilli-dark); }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--chilli); }
.muted { color: var(--muted); }
.todo { background: var(--note); color: var(--note-ink); border-radius: 4px; padding: 0 3px; }
[lang="ml"] { font-family: var(--f-ml); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 99; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 15px var(--f-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-red { background: var(--chilli); color: var(--white); }
.btn-red:hover { background: var(--chilli-dark); color: var(--white); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-leaf { border-color: var(--leaf); color: var(--leaf); background: transparent; }
.btn-leaf:hover { background: var(--leaf); color: var(--white); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-ghost-light { border-color: var(--paper); color: var(--paper); }
.btn[disabled], .btn.is-off { background: var(--sand); color: var(--muted); border-color: var(--sand); cursor: default; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; }

/* top bar + header */
.topbar { background: var(--leaf); color: var(--white); font-size: 13.5px; font-weight: 500; text-align: center; padding: 9px 16px; }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--chilli); }
.head-actions { display: flex; gap: 8px; align-items: center; }
.cart-btn { background: var(--ink); color: var(--white); border: 0; }
.cart-btn:hover { background: var(--chilli); }
.count { min-width: 22px; height: 22px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
@media (max-width: 760px) {
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 18px; font-size: 14px; padding-bottom: 4px; }
  .wa-label { display: none; }
  .logo img { height: 40px; }
}

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 48px 40px; }
.hero h1 { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -.01em; margin-top: 14px; }
.hero .lede { font-size: 18px; color: var(--muted); margin-top: 18px; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.batch-note { margin-top: 18px; font-size: 14px; background: var(--note); color: var(--note-ink); border-radius: 12px; padding: 10px 14px; max-width: 34em; }
.hero-art { position: relative; padding-bottom: 36px; min-width: 0; }
.hero-art .main { width: 86%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; }
.hero-art .inset { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 6px solid var(--paper); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 32px; } .hero-art .main { width: 100%; aspect-ratio: 4 / 3; } .hero-art { padding-bottom: 0; } .hero-art .inset { width: 34%; right: 10px; bottom: -14px; } }

/* trust strip */
.trust { background: var(--sand); border-block: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 20px; padding-block: 18px; font-weight: 600; font-size: 15px; }
.trust li { display: flex; gap: 10px; align-items: center; }
.trust svg { flex: none; color: var(--leaf); }

/* sections */
.section { padding-block: 64px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2, .h2 { font-size: clamp(30px, 3.4vw, 40px); }
.band { background: var(--sand); }
.dark { background: var(--ink); color: var(--paper); }
.dark .muted { color: #D9CFC1; }
.dark .eyebrow { color: var(--turmeric); }

/* filters + product grid */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font: 700 14px var(--f-body); color: var(--ink); cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card .img { display: block; background: var(--sand); position: relative; }
.card .img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.badge { position: absolute; left: 10px; top: 10px; background: var(--note); color: var(--note-ink); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; }
.badge.stock { background: var(--leaf-soft); color: var(--leaf); }
.card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); }
.card h3 { font-size: 21px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--chilli); }
.local { font-size: 14px; color: var(--muted); }
.desc { font-size: 14px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--leaf-soft); color: var(--leaf); }
.buy { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.per { font-size: 13px; color: var(--muted); }
.ai-note { font-size: 12px; color: var(--muted); }

/* feature rows */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.split > * { min-width: 0; }
.split figure { margin: 0; }
.split img { width: 100%; border-radius: 20px; object-fit: cover; }
.split figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.lead { font-size: 17px; color: var(--muted); margin-top: 16px; max-width: 36em; }
.dark .lead { color: #D9CFC1; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; }
.ticks svg { flex: none; color: var(--leaf); margin-top: 3px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.banner { position: relative; border-radius: 24px; overflow: hidden; background: var(--ink); }
.banner img { width: 100%; aspect-ratio: 16 / 7; min-height: 320px; object-fit: cover; }
.banner .over { position: absolute; inset: auto 0 0 0; padding: 26px 28px; background: linear-gradient(transparent, rgba(30, 26, 22, .88)); color: var(--paper); display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.banner h2 { font-size: clamp(26px, 3vw, 34px); }

.placeholder { border: 2px dashed var(--line); background: var(--sand); border-radius: 20px; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); }
.quote { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; margin: 0; font-weight: 400; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.steps li { background: var(--paper); border-radius: var(--r); padding: 24px; }
.steps .n { font-family: var(--f-display); font-size: 34px; color: var(--chilli); line-height: 1; }
.steps h3 { font-family: var(--f-body); font-size: 18px; font-weight: 700; margin: 10px 0 6px; }

.review { text-align: center; max-width: 820px; margin-inline: auto; }
.insta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.insta img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
@media (max-width: 640px) { .insta { grid-template-columns: repeat(2, 1fr); } }

/* hero spice image, recipes, pack row */
.hero-art .main.wide { width: 100%; aspect-ratio: 16 / 10; border-radius: 22px; object-fit: cover; }
.hero-art figcaption { margin: 0; }
figure.hero-art { margin: 0; padding-bottom: 0; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.recipes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.recipe { background: var(--paper); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.recipe h3 { font-size: 22px; }
.recipe .uses { font-size: 13px; font-weight: 700; color: var(--chilli); }
.recipe .muted { font-size: 14.5px; }
.pack-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pack-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--sand); }
@media (max-width: 640px) { .pack-row { grid-template-columns: repeat(2, 1fr); } }
.steps-sand li { background: var(--sand); }

/* faq */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p, .faq details > div { margin-top: 10px; color: var(--muted); }
.qr { width: 190px; height: 190px; border-radius: 12px; border: 1px solid var(--line); margin-top: 12px; }

/* footer */
.site-foot { background: var(--ink); color: #D9CFC1; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; padding-block: 48px 28px; }
.site-foot h3 { font-family: var(--f-body); font-size: 15px; color: var(--paper); margin-bottom: 10px; }
.site-foot a { color: #D9CFC1; }
.site-foot a:hover { color: var(--white); }
.foot-logo { background: var(--paper); border-radius: 12px; padding: 8px 12px; display: inline-block; }
.foot-logo img { height: 40px; width: auto; }
.foot-base { border-top: 1px solid #3A332C; padding-block: 16px 26px; font-size: 13px; }

/* product page */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding-block: 22px 56px; align-items: start; }
.pdp > * { min-width: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: var(--sand); }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { width: 80px; height: 80px; padding: 0; border-radius: 12px; border: 2px solid var(--line); background: var(--white); cursor: pointer; overflow: hidden; }
.thumbs button[aria-pressed="true"] { border-color: var(--chilli); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(34px, 4vw, 46px); }
.pdp .price { font-size: 30px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
.qty button { width: 46px; height: 46px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.buyrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.buyrow .btn-red, .buyrow .btn-leaf { flex: 1 1 200px; }
.infobox { margin-top: 22px; background: var(--sand); border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; font-size: 14px; }
.acc { margin-top: 22px; }
.acc details { border-top: 1px solid var(--line); padding: 14px 0; }
.acc details:last-child { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; font-weight: 700; }
.acc p { margin-top: 8px; color: var(--muted); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }

/* forms */
.form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
label.f { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.f input, .f textarea, .f select { min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: 16px var(--f-body); background: var(--white); color: var(--ink); width: 100%; }
.f textarea { min-height: 90px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
legend { font-weight: 700; font-size: 18px; margin-bottom: 10px; padding: 0; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--chilli); }
.opt input { margin-top: 4px; accent-color: var(--chilli); }
.err { color: var(--chilli); font-size: 14px; font-weight: 600; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 14px; }
.line-item { display: flex; gap: 12px; align-items: center; }
.line-item img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.line-item .grow { flex: 1; min-width: 0; }
.totals { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.totals .big { font-size: 19px; font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* cart drawer */
.drawer { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; background: rgba(30, 26, 22, .45); }
.drawer-panel { width: min(420px, 100%); height: 100%; background: var(--paper); display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; }
.x { width: 44px; height: 44px; border: 0; background: transparent; font-size: 26px; cursor: pointer; color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; }
.cart-row .grow { flex: 1; min-width: 0; }
.mini-qty { display: flex; align-items: center; gap: 6px; }
.mini-qty button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 17px; color: var(--ink); }
.toast { position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 60; }

/* policies */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 34px 0 10px; }
.prose ul { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 6px; }
.prose li, .prose p { color: #3D352D; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; margin-top: 16px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---- Improvements carried over from the newer build (look unchanged) ---- */
[id] { scroll-margin-top: 110px; }
.trust ul { margin-inline: auto; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
/* "the date that matters" */
.madeon { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.madeon h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 12px; }
.stamp-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 12px; }
.stamp { display: inline-grid; gap: 2px; justify-self: start; border: 2px solid var(--chilli); color: var(--chilli); border-radius: 6px; padding: 10px 14px; transform: rotate(-2deg); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.stamp small { font-size: 10.5px; letter-spacing: .14em; }
.stamp span { font-size: 18px; }
.stamp-card .row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-size: 14px; }
.stamp-card .row span:last-child { font-weight: 700; text-align: right; }
@media (max-width: 860px) { .madeon { grid-template-columns: 1fr; gap: 26px; } }
/* hyper-local: hero tag, monthly batch, kitchen vote */
.ml-tag { font-family: var(--f-ml); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; color: var(--chilli); margin-top: 10px; }
.batch-steps { margin: 18px 0 0; padding-left: 22px; display: grid; gap: 10px; font-size: 16px; }
.madeon .next { margin-top: 18px; padding: 12px 16px; background: var(--sand); border-radius: 12px; font-size: 15px; }
.vote-box { background: var(--sand); border-radius: var(--r); padding: clamp(24px, 4vw, 44px); text-align: center; }
.vote-box .lead { margin-inline: auto; }
.vote-box .pills { justify-content: center; }
.pill.vote { display: inline-flex; align-items: center; text-decoration: none; }
.pill.vote:hover { border-color: var(--chilli); color: var(--chilli); }
/* gift hero: readable text over the photo */
.gift-hero { position: relative; }
.gift-hero > img { width: 100%; height: 440px; object-fit: cover; }
.gift-hero > div { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(30,26,22,.92) 0%, rgba(30,26,22,.72) 48%, rgba(30,26,22,.1) 85%); }
.gift-hero h1, .gift-hero p { color: var(--paper); }
.gift-hero .lead { color: #E9E0D2; }
@media (max-width: 760px) { .gift-hero > img { height: 560px; } .gift-hero > div { background: rgba(30,26,22,.8); } }
/* phone: tighter cards and product grid */
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card .body { padding: 12px; }
  .card h3 { font-size: 17px; }
  .card .desc, .card .tags, .card .local { display: none; }
  .card .price { font-size: 16px; }
  .card .buy { flex-direction: column; align-items: stretch; }
}
.mrp .incl { font-family: Manrope, system-ui, sans-serif; font-size: 14px; font-weight: 500; color: var(--muted, #6b6359); }
.mrp .per + .per { margin-top: 2px; }
.nav a { display: inline-block; padding-block: 6px; }
.foot-grid a, .foot-base a { display: inline-block; padding-block: 4px; }
