/* ==========================================================================
   Khanika storefront
   Built to the Khanika Brand Identity Guidelines, Vol. 01 (Eloava Studio)
   Ivory leads, maroon grounds, gold accents. Peacock and Jamun appear only in
   small amounts, the way a contrast border sits on a saree.
   ========================================================================== */

/* ---------- Brand fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url(../fonts/cinzel-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Mulish"; src: url(../fonts/mulish.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Tiro Devanagari Marathi"; src: url(../fonts/tiro-devanagari-marathi.woff2) format("woff2"); font-weight: 400; font-display: swap; }
/* The rupee sign, borrowed from Tiro so prices render in every face */
@font-face { font-family: "Rupee"; src: url(../fonts/tiro-devanagari-marathi.woff2) format("woff2"); unicode-range: U+20B9; font-display: swap; }

/* ---------- Brand tokens (Guidelines §06, §07, §12) ---------- */
:root {
  --kh-maroon: #491416;   /* Kumkum Maroon: grounds, body text */
  --kh-gold: #B4813F;     /* Temple Gold: ornament, large display only on ivory */
  --kh-ivory: #FBF2E9;    /* Cotton Ivory: leads */
  --kh-kajal: #2A0C0D;
  --kh-haldi: #E6CB97;    /* text on maroon */
  --kh-sand: #EFE1CF;
  --kh-peacock: #1F4B4A;  /* small amounts only */
  --kh-jamun: #5B2A4A;    /* small amounts only */

  --ink: var(--kh-maroon);
  --ink-2: #754B4B;       /* secondary text, 6.5:1 on ivory */
  --ink-3: #866060;       /* tertiary text, 4.9:1 on ivory */
  --line: #E6D2BC;
  --line-gold: rgba(180,129,63,.45);
  --paper: var(--kh-ivory);
  --paper-2: var(--kh-sand);
  --white: #FFFCF8;
  --error: #9E1B1B;

  --display: "Cormorant Garamond", "Rupee", Georgia, serif;
  --caps: "Cinzel", Georgia, serif;
  --body: "Mulish", "Rupee", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mr: "Tiro Devanagari Marathi", serif;

  --t-12: 0.75rem; --t-14: 0.875rem; --t-16: 1rem; --t-18: 1.125rem;
  --t-20: 1.25rem; --t-25: 1.5625rem; --t-31: 1.953rem; --t-39: 2.441rem;
  --t-49: 3.052rem; --t-61: 3.815rem;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);   /* the Khanika ease */
  --header-h: 84px;
  --weave-gold: url(../img/brand/weave-gold.svg);
  --weave-gold-soft: url(../img/brand/weave-gold-soft.svg);
  --weave-haldi: url(../img/brand/weave-haldi.svg);
  --weave-maroon-soft: url(../img/brand/weave-maroon-soft.svg);
  --weave-ivory-soft: url(../img/brand/weave-ivory-soft.svg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--t-16); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--kh-gold); color: var(--kh-ivory); }
:focus-visible { outline: 2px solid var(--kh-maroon); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible { outline-color: var(--kh-haldi); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--kh-maroon); color: var(--kh-ivory); padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
[hidden] { display: none !important; }

/* Cinzel label: capitals, wide spacing (Guidelines §07) */
.label, .eyebrow { font-family: var(--caps); font-weight: 500; font-size: 0.72rem; letter-spacing: .3em; text-transform: uppercase; line-height: 1.6; }
.eyebrow { display: block; color: var(--ink); margin-bottom: 18px; }
.on-dark .eyebrow { color: var(--kh-haldi); }
.mr { font-family: var(--mr); }

/* ---------- Brand elements (§08) ---------- */
/* Selvedge band: the weave in gold on maroon */
.selvedge { height: 12px; background: var(--weave-gold) 0 50% / 14px 14px repeat-x, var(--kh-maroon); border-bottom: 1px solid var(--kh-gold); }
.selvedge.is-weaving { animation: weave 2.2s var(--ease) both; }
@keyframes weave { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* Woven rule: section divider */
.woven-rule { display: block; width: 200px; height: 20px; margin: 0 auto; color: var(--kh-gold); }
.woven-rule.left { margin: 0; }
/* Butti mark: bullets and price tags */
.butti { width: 22px; height: 22px; flex: none; }
/* Gold bindu */
.bindu { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--kh-gold); vertical-align: middle; }

/* ---------- Announcement ---------- */
.announce { background: var(--kh-kajal); color: var(--kh-haldi); font-family: var(--caps); font-size: 0.68rem; letter-spacing: .24em; text-transform: uppercase; text-align: center; padding: 9px var(--gutter); }

/* ---------- Header (website mock, §11) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,242,233,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .4s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: var(--header-h); }
.logo-link { display: block; text-decoration: none; }
.logo-link img { height: 64px; width: auto; }
.nav-primary { display: flex; gap: 36px; justify-self: center; }
.nav-primary a { font-family: var(--caps); font-size: 0.72rem; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--ink); position: relative; padding: 8px 0; }
.nav-primary a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--kh-gold); transition: left .4s var(--ease), right .4s var(--ease); }
.nav-primary a:hover::after, .nav-primary a[aria-current="page"]::after { left: 0; right: 0; }
.nav-tools { display: flex; gap: 4px; justify-self: end; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; color: var(--ink); text-decoration: none; font-family: var(--caps); font-size: 0.68rem; letter-spacing: .2em; text-transform: uppercase; }
.icon-btn:hover { color: var(--kh-gold); }
.icon-btn svg { width: 21px; height: 21px; flex: none; }
.bag-count { font-family: var(--body); font-size: var(--t-12); font-weight: 700; letter-spacing: 0; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--kh-gold); color: var(--kh-kajal); display: inline-flex; align-items: center; justify-content: center; }
.bag-count:empty { display: none; }
.menu-btn { display: none; }

/* Drawer menu: maroon, numbered (guidelines' contents drawer) */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--weave-gold-soft) 0 0 / 56px 56px, var(--kh-maroon); color: var(--kh-ivory); padding: 0 var(--gutter) 40px; display: flex; flex-direction: column; clip-path: circle(0% at calc(100% - 40px) 40px); visibility: hidden; transition: clip-path .8s var(--ease), visibility .8s; }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); }
.mobile-menu-top img { height: 48px; width: auto; }
.mobile-menu .icon-btn { color: var(--kh-ivory); }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 24px; counter-reset: m; }
.mobile-menu nav a { counter-increment: m; display: flex; align-items: baseline; gap: 18px; font-family: var(--display); font-weight: 500; font-size: 2.3rem; line-height: 1.3; text-decoration: none; padding: 8px 0; border-bottom: 1px solid rgba(230,203,151,.18); }
.mobile-menu nav a::before { content: counter(m, decimal-leading-zero); font-family: var(--caps); font-size: 0.72rem; letter-spacing: .2em; color: var(--kh-haldi); min-width: 28px; }
.mobile-menu .mobile-menu-foot { margin-top: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px; border-radius: 0; border: 1px solid transparent; font-family: var(--caps); font-weight: 500; font-size: 0.74rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--kh-maroon); color: var(--kh-ivory); border-color: var(--kh-maroon); }
.btn-primary:hover { background: var(--kh-kajal); border-color: var(--kh-kajal); }
.btn-primary[disabled], .btn-primary[aria-disabled="true"] { background: var(--line); border-color: var(--line); color: var(--ink-3); cursor: not-allowed; }
.btn-line { border-color: var(--kh-maroon); color: var(--kh-maroon); background: transparent; }
.btn-line:hover { background: var(--kh-maroon); color: var(--kh-ivory); }
.btn-light { background: var(--kh-ivory); color: var(--kh-maroon); border-color: var(--kh-ivory); }
.btn-light:hover { background: var(--kh-haldi); border-color: var(--kh-haldi); }
.btn-ghost-light { border-color: rgba(230,203,151,.6); color: var(--kh-ivory); background: transparent; }
.btn-ghost-light:hover { background: var(--kh-ivory); color: var(--kh-maroon); }
.btn-whatsapp { background: var(--kh-peacock); color: var(--kh-ivory); border-color: var(--kh-peacock); }
.btn-whatsapp:hover { background: #163837; }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.66rem; }
.text-link { font-family: var(--caps); font-size: 0.72rem; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--kh-gold); padding-bottom: 4px; }
.text-link:hover { color: var(--kh-gold); }
.price { font-family: var(--body); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Section rhythm ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { text-align: center; margin: 0 auto clamp(36px, 5vw, 56px); max-width: 680px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-style: italic; font-weight: 500; }
.section-head .woven-rule { margin-top: 18px; }
.section-head p { color: var(--ink-2); margin: 18px auto 0; max-width: 52ch; }
.section-foot { text-align: center; margin-top: clamp(36px, 5vw, 56px); }
.lede { font-size: var(--t-18); line-height: 1.7; color: var(--ink-2); max-width: 52ch; }

/* ---------- Hero (website mock) ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(78vh, 760px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px) clamp(48px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.hero h1 { font-size: clamp(2.8rem, 5.6vw, 4.6rem); line-height: 1.02; font-weight: 600; max-width: 13ch; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--kh-gold); }
.hero .lede { margin: 26px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-panel { position: relative; background: var(--weave-gold-soft) 0 0 / 56px 56px, var(--kh-maroon); display: grid; place-items: center; padding: clamp(36px, 6vw, 80px); overflow: hidden; }
.hero-panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 35%, rgba(42,12,13,.55) 100%); pointer-events: none; }
.hero-panel figure { position: relative; z-index: 1; margin: 0; width: min(100%, 420px); }
.hero-frame { position: relative; padding: 12px; background: var(--kh-ivory); box-shadow: 0 30px 60px rgba(20,4,5,.35); }
.hero-frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--kh-gold); pointer-events: none; z-index: 1; }
.hero-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; animation: weave 2.2s .3s var(--ease) both; }
.hero-panel figcaption { margin-top: 18px; text-align: center; color: var(--kh-haldi); }
.hero-panel figcaption a { color: var(--kh-ivory); text-decoration: none; font-family: var(--display); font-style: italic; font-size: var(--t-25); display: block; line-height: 1.2; }
.hero-panel figcaption a:hover { color: var(--kh-haldi); }
.hero-panel figcaption .price { display: block; margin-top: 4px; color: var(--kh-haldi); }
.hero-emblem { position: relative; z-index: 1; width: min(62%, 300px); }

/* ---------- Promise strip (butti bullets) ---------- */
.facts { border-bottom: 1px solid var(--line); background: var(--paper); }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 26px 24px 26px 0; display: flex; gap: 14px; align-items: flex-start; font-size: var(--t-14); color: var(--ink-2); }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { display: block; color: var(--ink); font-family: var(--caps); font-weight: 500; font-size: 0.7rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Category tiles (weave in heirloom colours) ---------- */
.cat-rail { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.cat-rail li { scroll-snap-align: start; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; padding: 18px; text-decoration: none; color: var(--kh-ivory); overflow: hidden; background-size: 56px 56px; transition: transform .6s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(230,203,151,.45); pointer-events: none; transition: inset .6s var(--ease); }
.cat-tile:hover::after { inset: 12px; }
.cat-tile .cat-name { position: relative; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.7rem; line-height: 1.1; }
.cat-tile .cat-count { position: relative; font-family: var(--caps); font-size: 0.64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--kh-haldi); margin-top: 6px; }
.tone-0 { background: var(--weave-haldi) 0 0 / 56px 56px, var(--kh-peacock); }
.tone-1 { background: var(--weave-haldi) 0 0 / 56px 56px, var(--kh-jamun); }
.tone-2 { background: var(--weave-maroon-soft) 0 0 / 56px 56px, var(--kh-gold); }
.tone-2 .cat-name { color: var(--kh-kajal); } .tone-2 .cat-count { color: var(--kh-kajal); } .tone-2::after { border-color: rgba(73,20,22,.35); }
.tone-3 { background: var(--weave-gold-soft) 0 0 / 56px 56px, var(--kh-maroon); }

/* ---------- Product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 3.4vw, 48px) clamp(14px, 2vw, 28px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; text-align: center; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.card-media img.alt { opacity: 0; }
.card-media .ph { position: absolute; inset: 0; }
@media (hover: hover) {
  .card:hover .card-media img.alt { opacity: 1; }
  .card:hover .card-media img:only-of-type { transform: scale(1.04); }
}
.card-tag { position: absolute; left: 10px; top: 10px; z-index: 2; font-family: var(--caps); font-size: 0.6rem; letter-spacing: .2em; text-transform: uppercase; padding: 5px 9px; background: var(--kh-ivory); color: var(--kh-maroon); }
.card-tag.is-sale { background: var(--kh-maroon); color: var(--kh-haldi); }
.card-tag.is-out { background: var(--kh-kajal); color: var(--kh-ivory); }
.card-save { position: absolute; right: 8px; top: 8px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(251,242,233,.92); display: flex; align-items: center; justify-content: center; color: var(--kh-maroon); }
.card-save svg { width: 18px; height: 18px; }
.card-save[aria-pressed="true"] svg path { fill: currentColor; }
.card-add { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; min-height: 46px; border: 0; background: var(--kh-maroon); color: var(--kh-ivory); font-family: var(--caps); font-size: 0.66rem; letter-spacing: .22em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); text-decoration: none; display: flex; align-items: center; justify-content: center; }
.card:hover .card-add, .card-add:focus-visible { opacity: 1; transform: none; }
.card-add.is-done { background: var(--kh-peacock); }
.card-body { padding-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.card-title { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { text-decoration: none; }
.card-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-meta { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: var(--t-14); }
.card-meta .now { font-weight: 600; font-size: var(--t-16); }
.card-meta s { color: var(--ink-3); }
.card-meta .rating { color: var(--ink-3); display: inline-flex; gap: 4px; align-items: center; }
.card-meta .rating svg { width: 12px; height: 12px; color: var(--kh-gold); }
@media (hover: none) { .card-add { display: none; } }

/* ---------- Ordering steps (maroon band) ---------- */
.band-maroon { background: var(--weave-gold-soft) 0 0 / 56px 56px, var(--kh-maroon); color: var(--kh-ivory); position: relative; }
.on-dark h2 { color: var(--kh-ivory); }
.on-dark .section-head p, .on-dark .lede { color: var(--kh-haldi); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; background: rgba(42,12,13,.55); border: 1px solid rgba(230,203,151,.25); }
.steps li { padding: 34px 28px 22px; counter-increment: step; text-align: center; }
.steps li + li { border-left: 1px solid rgba(230,203,151,.2); }
.steps li::before { content: counter(step, upper-roman); display: block; font-family: var(--display); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--kh-gold); margin-bottom: 16px; }
.steps h3 { font-family: var(--caps); font-weight: 500; font-size: 0.78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; color: var(--kh-ivory); }
.steps p { color: var(--kh-haldi); font-size: var(--t-16); max-width: 28ch; margin: 0 auto; }

/* ---------- Story split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.weave-panel { position: relative; aspect-ratio: 4 / 5; background: var(--weave-haldi) 0 0 / 56px 56px, var(--kh-peacock); display: grid; place-items: center; }
.weave-panel::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(230,203,151,.5); }
.weave-panel .mr { position: relative; z-index: 1; font-size: clamp(5rem, 12vw, 9.5rem); line-height: 1; color: var(--kh-ivory); text-align: center; }
.weave-panel .mr small { display: block; font-family: var(--caps); font-size: 0.72rem; letter-spacing: .3em; color: var(--kh-haldi); margin-top: 18px; }
.split h2 { font-size: clamp(2rem, 4vw, 3rem); font-style: italic; font-weight: 500; margin-bottom: 22px; max-width: 16ch; }
.split p { color: var(--ink-2); font-size: var(--t-18); line-height: 1.75; max-width: 56ch; }
.name-story { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.name-story span { text-align: center; }
.name-story b { display: block; font-family: var(--mr); font-weight: 400; font-size: 1.9rem; line-height: 1.2; color: var(--kh-maroon); }
.name-story small { font-family: var(--caps); font-size: 0.62rem; letter-spacing: .22em; color: var(--ink-2); }
.name-story i { font-family: var(--display); font-style: normal; font-size: 1.6rem; color: var(--kh-gold); }
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.ledger div { padding: 18px 18px 0 0; }
.ledger dt { font-family: var(--caps); font-size: 0.64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.ledger dd { margin: 6px 0 0; font-family: var(--display); font-weight: 600; font-size: 2.2rem; line-height: 1; }

/* ---------- Reviews ---------- */
.reviews { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); text-align: center; }
.reviews blockquote { margin: 14px 0 18px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.45rem; line-height: 1.35; }
.reviews footer, .review-by { font-size: var(--t-14); color: var(--ink-2); }
.reviews footer strong, .review-by strong { color: var(--ink); font-family: var(--caps); font-weight: 500; font-size: 0.7rem; letter-spacing: .2em; text-transform: uppercase; }
.stars { display: inline-flex; gap: 3px; color: var(--kh-gold); }
.stars svg { width: 13px; height: 13px; }
.stars .off { color: var(--line); }

/* ---------- Brand line ---------- */
.brand-line { text-align: center; padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.brand-line img { width: 72px; margin: 0 auto 22px; }
.brand-line p { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--kh-maroon); color: rgba(251,242,233,.85); }
.site-footer .selvedge { border-bottom: 0; border-top: 1px solid var(--kh-gold); }
.footer-grid { display: grid; grid-template-columns: 5fr 2fr 2fr 2fr; gap: 40px; padding: clamp(56px, 7vw, 96px) 0 52px; }
.footer-brand img { width: 220px; height: auto; }
.footer-brand p { margin: 22px 0 26px; max-width: 36ch; font-family: var(--display); font-style: italic; font-size: var(--t-20); color: var(--kh-haldi); line-height: 1.4; }
.footer-brand .btn + .btn { margin-left: 8px; }
.site-footer h2 { font-family: var(--caps); font-weight: 500; font-size: 0.7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--kh-haldi); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--kh-ivory); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid rgba(230,203,151,.2); font-family: var(--caps); font-size: 0.64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--kh-haldi); }
.footer-base a { color: var(--kh-ivory); text-decoration: underline; }

/* ---------- Page headers ---------- */
.page-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(28px, 4vw, 44px); text-align: center; }
.page-head h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); max-width: 18ch; margin: 0 auto; }
.page-head .lede { margin: 18px auto 0; }
.page-head .woven-rule { margin-top: 22px; }
.crumbs { font-family: var(--caps); font-size: 0.64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-gold); text-underline-offset: 4px; }
.crumbs span[aria-hidden] { margin: 0 10px; color: var(--kh-gold); }

/* ---------- Shop toolbar ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar-inner { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.chips { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 10px 0; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); background: transparent; font-family: var(--caps); font-size: 0.64rem; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.chip:hover { border-color: var(--kh-maroon); }
.chip[aria-pressed="true"] { background: var(--kh-maroon); border-color: var(--kh-maroon); color: var(--kh-ivory); }
.tool-search { position: relative; flex: 0 1 240px; }
.tool-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.tool-search input { width: 100%; min-height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line); border-radius: 0; background: var(--white); font-size: var(--t-14); }
.tool-select select { min-height: 40px; padding: 0 32px 0 14px; border: 1px solid var(--line); border-radius: 0; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23491416' stroke-width='1.4'/%3E%3C/svg%3E") right 12px center no-repeat; -webkit-appearance: none; appearance: none; font-size: var(--t-14); }
.result-count { font-family: var(--caps); font-size: 0.64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin: 30px 0 26px; text-align: center; }

/* ---------- Empty & loading ---------- */
.empty { padding: 72px 0; max-width: 520px; margin: 0 auto; text-align: center; }
.empty h2 { font-size: 2.4rem; font-style: italic; font-weight: 500; margin-bottom: 12px; }
.empty p { color: var(--ink-2); margin-bottom: 26px; }
.skel { background: linear-gradient(90deg, var(--paper-2) 0%, #F6EBDD 50%, var(--paper-2) 100%); background-size: 200% 100%; animation: skel 1.6s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }
.skel-card .skel:first-child { aspect-ratio: 4 / 5; }
.skel-card .skel + .skel { height: 14px; margin: 16px auto 0; width: 70%; }
.skel-card .skel + .skel + .skel { width: 30%; }
.ph { display: block; background: var(--weave-maroon-soft) 0 0 / 56px 56px, var(--paper-2); }

/* ---------- Product page (swing-tag buy box) ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 8vw, 104px); }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.gallery-main { position: relative; grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-main .ph { position: absolute; inset: 0; }
.gallery-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.gallery-thumbs button { padding: 0; border: 1px solid transparent; background: var(--paper-2); aspect-ratio: 4 / 5; overflow: hidden; opacity: .6; transition: opacity .3s, border-color .3s; }
.gallery-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--kh-gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { display: none; }
.buy { position: sticky; top: calc(var(--header-h) + 24px); padding: 34px 30px 30px; background: var(--white); border: 1px solid var(--line); }
.buy::before { content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--kh-gold); }
.buy .cat-link { font-family: var(--caps); font-size: 0.66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.buy .cat-link:hover { color: var(--kh-gold); }
.buy h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 12px 0 14px; }
.buy-rating { display: flex; gap: 8px; align-items: center; font-size: var(--t-14); color: var(--ink-2); margin-bottom: 16px; }
.buy-rating a { color: inherit; }
.buy-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-family: var(--body); font-size: 1.6rem; font-weight: 600; }
.buy-price s { font-size: var(--t-18); color: var(--ink-3); font-weight: 400; }
.buy-price .save { font-family: var(--caps); font-size: 0.64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--kh-maroon); background: var(--kh-sand); padding: 4px 8px; }
.buy-note { margin: 10px 0 0; }
.buy .woven-rule { margin: 22px 0 0; width: 100%; max-width: 220px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--caps); font-size: 0.64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kh-peacock); }
.status.is-mto::before { background: var(--kh-gold); }
.status.is-out::before { background: var(--error); }
.buy-desc { color: var(--ink-2); margin: 18px 0 0; }
.opt { border: 0; margin: 26px 0 0; padding: 0; }
.opt legend { font-family: var(--caps); font-size: 0.66rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 12px; padding: 0; }
.opt legend span { font-family: var(--body); letter-spacing: 0; text-transform: none; font-size: var(--t-14); color: var(--ink-2); margin-left: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(73,20,22,.2); padding: 0; position: relative; }
.swatch[aria-checked="true"]::after { content: ""; position: absolute; inset: -6px; border: 1px solid var(--kh-gold); border-radius: 50%; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 58px; min-height: 48px; padding: 6px 14px; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 600; font-size: var(--t-14); line-height: 1.2; }
.size small { font-weight: 400; color: var(--ink-3); font-size: var(--t-12); }
.size[aria-checked="true"] { border-color: var(--kh-maroon); background: var(--kh-maroon); color: var(--kh-ivory); }
.size[aria-checked="true"] small { color: var(--kh-haldi); }
.buy-row { display: flex; gap: 10px; margin-top: 28px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--paper); height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: var(--t-20); }
.qty output, .qty span { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-row .btn-primary { flex: 1; }
.save-btn { width: 52px; height: 52px; border: 1px solid var(--line); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--kh-maroon); }
.save-btn svg { width: 20px; height: 20px; }
.save-btn[aria-pressed="true"] svg path { fill: currentColor; }
.buy-secondary { display: flex; justify-content: center; margin-top: 18px; }
.assure { list-style: none; margin-top: 26px; border-top: 1px solid var(--line); }
.assure li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--t-14); color: var(--ink-2); }
.assure li:last-child { border-bottom: 0; }
.assure svg { width: 20px; height: 20px; color: var(--kh-gold); flex: none; margin-top: 1px; }
.assure strong { color: var(--ink); font-weight: 700; }

.details { border-top: 1px solid var(--kh-maroon); max-width: 860px; margin: 0 auto; }
.details details { border-bottom: 1px solid var(--line); }
.details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.6rem; cursor: pointer; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: ""; width: 12px; height: 12px; border: solid var(--kh-gold); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-3px, -3px); transition: transform .4s var(--ease); }
.details details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.details .detail-body { padding: 0 0 28px; color: var(--ink-2); max-width: 68ch; }
.details ul { padding-left: 20px; display: grid; gap: 6px; }
.care-card { background: var(--white); border: 1px solid var(--line); padding: 22px 24px; }
.care-card .label { color: var(--ink); display: block; margin-bottom: 10px; }
.care-card .mr { display: block; margin-top: 14px; color: var(--kh-maroon); font-size: var(--t-18); }
.review { padding: 18px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; padding-top: 0; }
.review p { color: var(--ink); margin: 8px 0; font-family: var(--display); font-style: italic; font-size: 1.3rem; line-height: 1.35; }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--kh-gold); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: none; gap: 12px; align-items: center; transform: translateY(100%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s; }
.sticky-buy.is-shown { transform: none; visibility: visible; }
.sticky-buy .sb-info { flex: 1; min-width: 0; }
.sticky-buy .sb-name { font-family: var(--display); font-weight: 600; font-size: var(--t-18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .sb-price { font-weight: 600; }

dialog.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(42,12,13,.96); }
dialog.lightbox img { width: 100%; height: 100%; object-fit: contain; }
dialog.lightbox button { position: absolute; top: 16px; right: 16px; color: var(--kh-ivory); }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 8vw, 104px); }
.lines { list-style: none; border-top: 1px solid var(--kh-maroon); }
.line { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 100px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.line-name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; text-decoration: none; }
.line-name:hover { color: var(--kh-gold); }
.line-attrs { font-size: var(--t-14); color: var(--ink-2); margin: 4px 0 14px; }
.line-actions { display: flex; align-items: center; gap: 16px; }
.line-actions .qty { height: 40px; }
.line-actions .qty button { width: 36px; }
.line-remove { background: none; border: 0; font-family: var(--caps); font-size: 0.62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line-gold); padding: 6px 0 3px; }
.line-price { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.line-price small { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--t-12); }
.line-warning { font-size: var(--t-14); color: var(--error); margin: -6px 0 12px; }
.line-warning a { color: inherit; font-weight: 700; }
.summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 30px; background: var(--white); border: 1px solid var(--line); }
.summary::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-gold); pointer-events: none; }
.summary h2 { font-size: 1.9rem; font-style: italic; font-weight: 500; margin-bottom: 20px; text-align: center; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 0; margin-top: 10px; border-top: 1px solid var(--line); font-weight: 700; font-size: var(--t-20); }
.ship-meter { margin: 16px 0 20px; font-size: var(--t-14); color: var(--ink-2); }
.ship-meter .bar { height: 3px; background: var(--paper-2); margin-top: 8px; overflow: hidden; }
.ship-meter .bar span { display: block; height: 100%; background: var(--kh-gold); transition: width .6s var(--ease); }
.summary .btn { margin-top: 22px; position: relative; }
.summary .fine { font-size: var(--t-14); color: var(--ink-2); margin: 16px 0 0; text-align: center; }
.mini-lines { list-style: none; display: grid; gap: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mini-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: var(--t-14); }
.mini-line img, .mini-line .ph { width: 52px; height: 65px; object-fit: cover; background: var(--paper-2); }
.mini-line b { display: block; font-family: var(--display); font-weight: 600; font-size: var(--t-18); line-height: 1.15; }
.mini-line span { color: var(--ink-2); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.form legend { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.9rem; margin-bottom: 18px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { overflow-wrap: anywhere; font-family: var(--caps); font-size: 0.64rem; letter-spacing: .2em; text-transform: uppercase; }
.field label .opt-tag { font-family: var(--body); letter-spacing: 0; text-transform: none; color: var(--ink-3); font-size: var(--t-12); }
.field input, .field textarea, .field select { min-height: 52px; padding: 12px 14px; border: 1px solid #D9C2A8; border-radius: 0; background: var(--white); font-size: var(--t-16); transition: border-color .3s, box-shadow .3s; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--kh-maroon); box-shadow: 0 0 0 1px var(--kh-maroon); }
.field .hint { font-size: var(--t-12); color: var(--ink-3); }
.field .err { font-size: var(--t-14); color: var(--error); display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field.has-error .err { display: block; }
.notice { grid-column: 1 / -1; display: flex; gap: 14px; padding: 18px 20px; border-left: 2px solid var(--kh-gold); background: var(--white); font-size: var(--t-14); color: var(--ink-2); }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--kh-gold); }
.notice strong { color: var(--ink); }
.notice.is-error { border-left-color: var(--error); }
.notice.is-error svg { color: var(--error); }
.progress { display: flex; justify-content: center; gap: 28px; list-style: none; font-family: var(--caps); font-size: 0.62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; counter-reset: p; flex-wrap: wrap; }
.progress li { counter-increment: p; display: flex; gap: 8px; align-items: center; }
.progress li::before { content: counter(p, upper-roman); font-family: var(--display); font-size: 1rem; letter-spacing: 0; color: var(--kh-gold); }
.progress li[aria-current="step"] { color: var(--ink); }
.progress li.done { color: var(--ink-2); }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(251,242,233,.35); border-top-color: var(--kh-ivory); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Success: the thank-you card ---------- */
.confirm { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.thanks-mr { font-family: var(--mr); font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1.1; color: var(--kh-gold); margin: 0 0 6px; }
.confirm h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 18px; max-width: 16ch; }
.order-no { display: inline-flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; background: var(--white); border: 1px solid var(--line); font-variant-numeric: tabular-nums; margin: 8px 0 28px; }
.order-no span { font-family: var(--caps); font-size: 0.64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.order-no strong { font-size: var(--t-20); letter-spacing: .04em; }
.next-steps { list-style: none; counter-reset: s; margin: 30px 0 0; border-top: 1px solid var(--line); }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.next-steps li::before { content: counter(s, upper-roman); font-family: var(--display); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--kh-gold); }
.next-steps strong { color: var(--ink); display: block; }
.thank-card { margin-top: 26px; padding: 26px; text-align: center; background: var(--weave-gold-soft) 0 0 / 56px 56px, var(--kh-maroon); color: var(--kh-haldi); position: relative; }
.thank-card::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(230,203,151,.45); pointer-events: none; }
.thank-card p { margin: 0; font-family: var(--display); font-style: italic; font-size: var(--t-20); color: var(--kh-ivory); line-height: 1.4; }

/* ---------- Prose (about, legal) ---------- */
.prose { max-width: 68ch; font-size: var(--t-18); line-height: 1.8; color: var(--ink-2); }
.prose h2 { font-size: 2.1rem; font-style: italic; font-weight: 500; color: var(--ink); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--caps); font-weight: 500; font-size: 0.8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin: 32px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.prose li::marker { color: var(--kh-gold); }
.prose strong { color: var(--ink); }
.prose a { color: var(--kh-maroon); text-decoration-color: var(--kh-gold); }
.prose .placeholder { background: #F6E3B5; padding: 2px 6px; color: var(--ink); }
.legal-meta { font-family: var(--caps); font-size: 0.64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin-top: 14px; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); padding-bottom: clamp(56px, 8vw, 104px); }
.doc-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 8px; }
.doc-nav a { text-decoration: none; font-family: var(--caps); font-size: 0.66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); padding: 6px 0 6px 14px; border-left: 1px solid var(--line); }
.doc-nav a[aria-current="page"] { color: var(--ink); border-left: 2px solid var(--kh-gold); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(56px, 8vw, 104px); }
.channels { list-style: none; border-top: 1px solid var(--kh-maroon); }
.channels li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.channels .label { color: var(--ink-2); display: block; margin-bottom: 4px; }
.channels a, .channels .value { font-family: var(--display); font-weight: 600; font-size: 1.6rem; text-decoration: none; }
.channels a:hover { color: var(--kh-gold); }
.hours { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.contact-h { font-size: 1.9rem; font-style: italic; font-weight: 500; margin: 40px 0 8px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--kh-maroon); color: var(--kh-ivory); padding: 13px 20px; font-size: var(--t-14); display: flex; gap: 16px; align-items: center; transition: opacity .4s var(--ease), transform .4s var(--ease); max-width: calc(100vw - 32px); box-shadow: 0 12px 30px rgba(42,12,13,.25); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--kh-haldi); font-family: var(--caps); font-size: 0.64rem; letter-spacing: .2em; text-transform: uppercase; }
.toast.is-error { background: var(--error); }
.toast.is-error a { color: #fff; }

/* ---------- Kavya (help chat) ---------- */
.kavya-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px 0 16px; border: 1px solid var(--kh-gold); border-radius: 25px; background: var(--kh-maroon); color: var(--kh-ivory); font-family: var(--caps); font-size: 0.66rem; letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 10px 26px rgba(42,12,13,.28); }
.kavya-fab svg { width: 20px; height: 20px; color: var(--kh-haldi); }
.has-sticky-buy .kavya-fab { bottom: 92px; }
.kavya { position: fixed; right: 20px; bottom: 82px; z-index: 61; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px)); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(42,12,13,.28); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .5s; }
.kavya.is-open { opacity: 1; transform: none; visibility: visible; }
.kavya-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 14px 18px; background: var(--kh-maroon); color: var(--kh-ivory); }
.kavya-head strong { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.6rem; display: block; line-height: 1.1; }
.kavya-head span { font-size: var(--t-12); color: var(--kh-haldi); }
.kavya-head .icon-btn { color: var(--kh-ivory); }
.kavya-head + .selvedge { height: 8px; background-size: 10px 10px, auto; }
.kavya-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; font-size: var(--t-14); line-height: 1.55; }
.msg.bot { background: var(--white); border: 1px solid var(--line); align-self: flex-start; }
.msg.me { background: var(--kh-maroon); color: var(--kh-ivory); align-self: flex-end; }
.msg a { color: var(--kh-maroon); font-weight: 700; text-decoration-color: var(--kh-gold); }
.msg.typing { color: var(--ink-3); }
.kavya-suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 12px; }
.kavya-suggest button { border: 1px solid var(--line); background: transparent; padding: 7px 12px; font-size: var(--t-12); font-weight: 600; color: var(--ink); }
.kavya-suggest button:hover { border-color: var(--kh-maroon); }
.kavya-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.kavya-form input { flex: 1; min-height: 44px; border: 1px solid var(--line); padding: 0 14px; font-size: var(--t-16); background: var(--paper); }
.kavya-form input:focus { outline: none; border-color: var(--kh-maroon); }
.kavya-form button { width: 44px; height: 44px; border: 0; background: var(--kh-maroon); color: var(--kh-ivory); display: flex; align-items: center; justify-content: center; }
.kavya-form button svg { width: 18px; height: 18px; }

/* ---------- 404 ---------- */
.lost { padding-top: clamp(56px, 10vw, 140px); padding-bottom: clamp(56px, 10vw, 140px); text-align: center; }
.lost img { width: 110px; margin: 0 auto 28px; }
.lost h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-style: italic; font-weight: 500; max-width: 16ch; margin: 0 auto; }
.lost .lede { margin: 20px auto 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid rgba(230,203,151,.2); }
  .nav-primary { gap: 24px; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .header-inner { grid-template-columns: 44px 1fr auto; gap: 8px; }
  .nav-primary { display: none; }
  .menu-btn { display: inline-flex; }
  .logo-link { justify-self: center; }
  .logo-link img { height: 56px; }
  .nav-tools .label { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 44px var(--gutter) 48px; align-items: center; text-align: center; }
  .hero h1, .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-panel { padding: 44px var(--gutter); }
  .hero-panel figure { width: min(78%, 360px); }
  .split, .pdp, .cart-layout, .confirm, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: 1fr; }
  .buy, .summary { position: static; }
  .buy { padding: 30px 20px 24px; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; display: flex; overflow-x: auto; gap: 4px; justify-content: center; }
  .doc-nav a, .doc-nav a[aria-current="page"] { border-left: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; white-space: nowrap; }
  .doc-nav a[aria-current="page"] { border-bottom: 2px solid var(--kh-gold); }
  .split-media { order: 2; }
  .weave-panel { aspect-ratio: 16 / 10; }
  .gallery { display: block; margin: 0 calc(var(--gutter) * -1); }
  .gallery-main { display: none; }
  .gallery-strip { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery-strip::-webkit-scrollbar { display: none; }
  .gallery-strip img, .gallery-strip .ph { flex: 0 0 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
  .gallery-thumbs { display: none; }
  .gallery-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 0; }
  .gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
  .gallery-dots span.on { background: var(--kh-gold); transform: scale(1.25); }
  .sticky-buy { display: flex; }
}
@media (min-width: 861px) { .gallery-strip { display: none !important; } }
@media (max-width: 560px) {
  .grid, .grid-3 { gap: 32px 12px; }
  .card-title { font-size: 1.15rem; }
  .card-meta .rating { display: none; }
  .card-save { width: 36px; height: 36px; right: 6px; top: 6px; }
  /* Keep the tag clear of the heart button on narrow cards */
  .card-tag { left: 6px; top: 6px; max-width: calc(100% - 52px); padding: 4px 7px; letter-spacing: .1em; line-height: 1.35; }
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { border-left: 0; }
  .steps li + li { border-top: 1px solid rgba(230,203,151,.2); }
  .cat-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
  .cat-rail::-webkit-scrollbar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand .btn + .btn { margin: 8px 0 0; }
  .form, .form fieldset { grid-template-columns: minmax(0, 1fr); }
  .toolbar-inner { flex-wrap: wrap; gap: 0 10px; padding-top: 10px; }
  .tool-search { flex: 1 1 100%; order: -1; }
  .tool-search input { font-size: 16px; } /* 16px stops iOS zooming on focus */
  .chips { order: 1; flex: 1 1 100%; }
  .tool-select { display: none; }
  .line { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
  .line-img { width: 80px; }
  .line-price { grid-column: 2; text-align: left; }
  .summary { padding: 24px 20px; }
  .kavya-fab { right: 14px; bottom: 14px; padding: 0 14px; }
  .kavya-fab .label { display: none; }
  .has-sticky-buy .kavya-fab { bottom: 88px; }
  .kavya { right: 12px; bottom: 76px; }
  .buy-row .btn-primary { min-width: 0; padding: 0 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
/* ==========================================================================
   Phone layout (v9): built to sell. Products on the first scroll, shorter
   sections, one idea per screen, nothing stacked that can sit side by side.
   ========================================================================== */
.sec-new, .sec-reviews { padding-top: 0; }
@media (max-width: 860px) {
  /* Home: products come straight after the hero */
  .home { display: flex; flex-direction: column; }
  .home > [data-m="1"] { order: 1; } .home > [data-m="2"] { order: 2; } .home > [data-m="3"] { order: 3; }
  .home > [data-m="4"] { order: 4; } .home > [data-m="5"] { order: 5; } .home > [data-m="6"] { order: 6; }
  .home > [data-m="7"] { order: 7; } .home > [data-m="8"] { order: 8; }
  .home .sec-new { padding-top: 40px; }
  .home .sec-reviews { padding-top: 48px; }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: 1.95rem; }
  .section-head .woven-rule { margin-top: 12px; width: 150px; height: 16px; }
  .section-head p { margin-top: 12px; font-size: var(--t-14); }
  .eyebrow { margin-bottom: 10px; font-size: 0.62rem; }
  .section-foot { margin-top: 30px; }
  .page-head { padding-top: 28px; padding-bottom: 20px; }
  .page-head h1 { font-size: 2.3rem; }
  .announce { font-size: 0.58rem; letter-spacing: .16em; padding: 7px 12px; }

  /* Hero: picture first, then a short pitch, two buttons side by side */
  .hero-panel { order: -1; padding: 24px var(--gutter) 22px; }
  .hero-panel figure { width: 58%; }
  .hero-frame { padding: 7px; }
  .hero-frame::before { inset: 3px; }
  .hero-panel figcaption { margin-top: 12px; }
  .hero-panel figcaption .label { display: none; }
  .hero-panel figcaption a { font-size: 1.2rem; }
  .hero-emblem { width: 44%; }
  .hero-copy { padding: 28px var(--gutter) 32px; }
  .hero h1 { font-size: 2.35rem; }
  .hero .lede { margin: 14px auto 22px; font-size: var(--t-16); line-height: 1.6; }
  .hero-actions { flex-wrap: nowrap; gap: 8px; width: 100%; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; min-height: 48px; font-size: 0.62rem; letter-spacing: .14em; white-space: normal; text-align: center; line-height: 1.3; }

  /* Product grid: tighter, with a visible add button (no hover on phones) */
  .grid, .grid-3 { gap: 26px 12px; }
  .card-body { padding-top: 10px; gap: 3px; }
  .card-title { font-size: 1.08rem; line-height: 1.2; }
  .card-meta { font-size: var(--t-12); gap: 6px; }
  .card-meta .now { font-size: var(--t-14); }

  /* Categories: a swipeable row of short tiles */
  .cat-rail { grid-auto-columns: 42%; gap: 10px; }
  .cat-tile { aspect-ratio: 1 / 1.1; padding: 12px; }
  .cat-tile::after { inset: 5px; }
  .cat-tile .cat-name { font-size: 1.15rem; }
  .cat-tile .cat-count { font-size: 0.55rem; letter-spacing: .16em; }

  /* Promises: a neat 2 x 2 block, titles only */
  .facts { background: var(--kh-sand); border-bottom: 0; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li, .facts li + li { padding: 16px 8px 16px 0; border: 0; gap: 10px; align-items: center; font-size: 0; }
  .facts li:nth-child(even) { padding-left: 10px; border-left: 1px solid var(--line); }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts strong { margin: 0; font-size: 0.58rem; letter-spacing: .14em; line-height: 1.5; }
  .facts .butti { width: 18px; height: 18px; }

  /* Ordering steps: four short rows instead of four tall boxes */
  .steps { background: none; border: 0; border-top: 1px solid rgba(230,203,151,.25); }
  .steps li, .steps li + li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; text-align: left; padding: 16px 0; border: 0; border-bottom: 1px solid rgba(230,203,151,.2); }
  .steps li::before { grid-row: 1 / 3; font-size: 1.7rem; margin: 0; }
  .steps h3 { margin-bottom: 4px; font-size: 0.68rem; }
  .steps p { margin: 0; max-width: none; font-size: var(--t-14); }

  /* Reviews: swipe through them */
  .reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .reviews::-webkit-scrollbar { display: none; }
  .reviews li { scroll-snap-align: center; background: var(--white); border: 1px solid var(--line); padding: 20px 18px; }
  .reviews blockquote { font-size: 1.15rem; margin: 10px 0 12px; }

  /* Story: the words carry it on a phone; the big pattern panel steps aside */
  .sec-story .split-media { display: none; }
  .sec-story h2 { font-size: 1.85rem; margin-bottom: 14px; }
  .sec-story p { font-size: var(--t-16); line-height: 1.65; }
  .name-story { justify-content: center; gap: 10px; margin: 20px 0; padding: 14px 0; }
  .name-story b { font-size: 1.5rem; }
  .ledger { grid-template-columns: repeat(3, 1fr); margin: 20px 0; }
  .ledger div { padding: 14px 8px 0 0; }
  .ledger dt { font-size: 0.52rem; letter-spacing: .14em; }
  .ledger dd { font-size: 1.6rem; }
  .brand-line { padding: 40px 0; }
  .brand-line img { width: 52px; margin-bottom: 14px; }
  .brand-line p { font-size: 1.5rem; }

  /* Footer: brand, then links in two tidy columns */
  .footer-grid { padding: 44px 0 32px; gap: 28px 18px; }
  .footer-brand { text-align: center; }
  .footer-brand img { width: 180px; margin: 0 auto; }
  .footer-brand p { margin: 12px auto 18px; font-size: var(--t-18); }
  .footer-brand .btn { min-height: 40px; padding: 0 14px; }
  .footer-brand .btn + .btn { margin: 0 0 0 6px; }
  .footer-base { justify-content: center; text-align: center; font-size: 0.56rem; }

  /* Product page: less chrome around the buy box */
  .buy { padding: 26px 16px 18px; border-left: 0; border-right: 0; margin: 0 calc(var(--gutter) * -1); }
  .buy h1 { font-size: 1.95rem; }
  .assure li { padding: 11px 0; font-size: var(--t-12); }
  .details summary { font-size: 1.35rem; padding: 16px 0; }
}
@media (max-width: 860px) and (hover: none) {
  .card-add { display: flex; opacity: 1; transform: none; left: 6px; right: 6px; bottom: 6px; min-height: 32px; font-size: 0.54rem; letter-spacing: .14em; background: rgba(251,242,233,.94); color: var(--kh-maroon); border: 1px solid rgba(73,20,22,.25); }
  .card-add.is-done { background: var(--kh-peacock); color: var(--kh-ivory); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .kavya-fab, .kavya, .sticky-buy, .announce, .selvedge { display: none !important; }
}
