/* Sekhar Sweets — homemade: red-oxide floor with rice-flour muggu, banana leaf, kraft box,
   handmade paper, jaggery brown, brass gold. Day (light) and night (dark) looks. */
:root {
  /* "peacock-*" names kept for the dark surfaces; they are jaggery browns now */
  --peacock-950: #1E120B;
  --peacock-900: #2A180F;
  --peacock-800: #3A2216;
  --peacock-700: #4B2D1D;
  --peacock-600: #5E3A25;
  --floor: #8E3B2A;        /* red-oxide floor */
  --floor-deep: #6E2A1D;
  --rice: #FBF3E4;         /* rice-flour muggu */
  --leaf: #3F7A3A;
  --kraft: #A9784A;
  --zari: #D4AF55;
  --zari-soft: #E9D67F;
  --kumkum: #B4233C;
  --veg: #2E7A32;
  --egg: #9A3B1F;

  --bg: #F6EDDD;
  --surface: #FFFAF1;
  --surface-2: #EFE3CC;
  --ink: #2A1A12;
  --muted: #6A5545;
  --line: rgba(74, 45, 29, .16);
  --gold-ink: #7A4E12;
  --primary: var(--floor);
  --primary-ink: #FFF8EC;
  --glass: rgba(255, 248, 236, .78);
  --glass-line: rgba(74, 45, 29, .14);
  --focus: #8E3B2A;
  --shadow-lift: 0 18px 50px -20px rgba(42, 24, 15, .4);
  --paper-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .11 0'/%3E%3C/filter%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .35' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .13 -.03'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --font-hand: 'Kalam', 'Hind Guntur', cursive;
  --font-te-hand: 'Gurajada', 'Tiro Telugu', serif;

  --font-body: 'Hind Guntur', system-ui, sans-serif;
  --font-display: 'Rozha One', Georgia, serif;
  --font-te: 'Tiro Telugu', 'Hind Guntur', serif;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.3, .5, 1);
  --head-h: 66px;
  --head-gap: 12px;
  --head-total: calc(var(--head-h) + var(--head-gap));
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1B110B;
  --surface: #26180F;
  --surface-2: #322015;
  --ink: #F3E8D8;
  --muted: #BFA992;
  --line: rgba(255, 236, 210, .14);
  --gold-ink: #E2C670;
  --primary: var(--zari);
  --primary-ink: #1E120B;
  --glass: rgba(38, 24, 15, .7);
  --glass-line: rgba(255, 236, 210, .12);
  --focus: #E9D67F;
  --shadow-lift: 0 18px 50px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B110B; --surface: #26180F; --surface-2: #322015; --ink: #F3E8D8; --muted: #BFA992;
    --line: rgba(255, 236, 210, .14); --gold-ink: #E2C670; --primary: var(--zari); --primary-ink: #1E120B;
    --glass: rgba(38, 24, 15, .7); --glass-line: rgba(255, 236, 210, .12); --focus: #E9D67F;
    --shadow-lift: 0 18px 50px -20px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-total) + 70px); }
body {
  margin: 0; background: var(--paper-tex) var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 400; }
h1, h2 { font-family: var(--font-display); letter-spacing: .005em; }
h3 { font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[lang="te"], .te { font-family: var(--font-te); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--zari); color: var(--peacock-950); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section h2, .cake-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.text-link { background: none; border: 0; padding: 0; color: var(--gold-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2.5px; }

/* ── Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(180deg, #E4C46C, #C99E3F); color: var(--peacock-950); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 24px -10px rgba(212,175,85,.8); }
.btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 30px -10px rgba(212,175,85,.95); }
.btn-ghost { color: #F3EBD0; background: transparent; border-color: rgba(233,214,127,.55); }
.btn-ghost[disabled] { opacity: .7; cursor: default; }
.btn-ghost:hover { background: rgba(233,214,127,.1); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary[disabled] { opacity: .55; cursor: progress; }
.btn-line { border-color: var(--line); background: var(--surface); }
.btn-line:hover { border-color: var(--gold-ink); }
.btn-block { width: 100%; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 1.5rem; line-height: 1; display: grid; place-items: center; transition: border-color .2s; }
.round-btn:hover { border-color: var(--gold-ink); }

/* ── Title bar: floating glass pill, centred nav with a sliding highlight, live search, scroll progress */
.masthead {
  position: sticky; top: 0; z-index: 40; height: var(--head-total);
  padding: var(--head-gap) 12px 0; pointer-events: none; color: #F4EFDD;
}
.masthead-inner {
  pointer-events: auto; position: relative;
  height: var(--head-h); width: min(1240px, 100%); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 10px 0 16px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(58, 34, 22, .78), rgba(30, 18, 11, .82));
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(233, 214, 127, .24);
  box-shadow: 0 14px 40px -14px rgba(20, 8, 2, .6), inset 0 1px 0 rgba(255, 240, 200, .14);
  transition: height .35s var(--ease), background-color .3s, box-shadow .3s, width .35s var(--ease);
}
.masthead.scrolled .masthead-inner { height: calc(var(--head-h) - 10px); box-shadow: 0 18px 44px -14px rgba(20, 8, 2, .75), inset 0 1px 0 rgba(255, 240, 200, .14); }
.scroll-progress { position: absolute; left: 28px; right: 28px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--zari), var(--zari-soft)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: .9; }
.brand { justify-self: start; }
.masthead-actions { justify-self: end; }
.mainnav { position: relative; }
.nav-pill { position: absolute; top: 50%; left: 0; height: 40px; width: 0; translate: 0 -50%; border-radius: 999px; background: rgba(233, 214, 127, .15); box-shadow: inset 0 0 0 1px rgba(233, 214, 127, .25); opacity: 0; transition: left .45s var(--spring), width .45s var(--spring), opacity .25s; pointer-events: none; }
.mainnav a { position: relative; z-index: 1; }
.head-search { position: relative; display: flex; align-items: center; gap: 8px; height: 42px; width: 220px; padding: 0 10px 0 14px; border-radius: 999px; background: rgba(255, 240, 210, .08); border: 1px solid rgba(233, 214, 127, .22); transition: width .35s var(--ease), background-color .2s, border-color .2s; }
.head-search:focus-within { width: 290px; background: rgba(255, 240, 210, .14); border-color: rgba(233, 214, 127, .55); }
.head-search svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .8; }
.head-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #FFF6E6; font-size: .95rem; }
.head-search input::placeholder { color: rgba(244, 239, 221, .6); }
.head-search input::-webkit-search-cancel-button { display: none; }
.head-search kbd { font: 600 .75rem var(--font-body); padding: 1px 7px; border-radius: 6px; border: 1px solid rgba(233, 214, 127, .35); color: rgba(244, 239, 221, .7); }
.icon-btn.search-icon, .icon-btn.call-icon { display: none; }
.brand-name { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 36px; height: auto; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--zari-soft); }
.brand-te { font-size: .8rem; color: rgba(244, 239, 221, .7); margin-top: 2px; }
.mainnav { display: flex; gap: 2px; }
.mainnav a { text-decoration: none; padding: 8px 15px; border-radius: 999px; font-weight: 500; color: rgba(244,239,221,.86); transition: color .2s; white-space: nowrap; }
.mainnav a:hover { color: #fff; }
.mainnav a[aria-current="page"] { color: var(--zari-soft); }
.masthead-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: inherit; transition: background-color .2s; }
.icon-btn:hover { background: rgba(233,214,127,.12); }
.icon-btn svg { width: 21px; height: 21px; fill: currentColor; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; border: 1.5px solid rgba(233,214,127,.45); background: transparent; color: var(--zari-soft); font-weight: 600; margin-left: 6px; transition: background-color .2s; }
.bag-btn:hover { background: rgba(233,214,127,.1); }
.bag-btn svg { width: 20px; height: 20px; }
.bag-count, .tab-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--zari); color: var(--peacock-950); font-size: .78rem; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.bag-count.bump, .tab-count.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ── Hero */
/* Red-oxide floor, swept smooth, with faint rice-flour muggu all over */
.hero {
  position: relative; color: #FFF3E2; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23FBF3E4' stroke-opacity='.13' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M60 60Q46 42 60 22Q74 42 60 60ZM60 60Q78 46 98 60Q78 74 60 60ZM60 60Q74 78 60 98Q46 78 60 60ZM60 60Q42 74 22 60Q42 46 60 60Z'/%3E%3Cpath d='M0 0Q14 18 0 38M0 0Q18 14 38 0M120 0Q106 18 120 38M120 0Q102 14 82 0M0 120Q14 102 0 82M0 120Q18 106 38 120M120 120Q106 102 120 82M120 120Q102 106 82 120'/%3E%3C/g%3E%3Cg fill='%23FBF3E4' fill-opacity='.18'%3E%3Ccircle cx='32' cy='32' r='2.2'/%3E%3Ccircle cx='88' cy='32' r='2.2'/%3E%3Ccircle cx='32' cy='88' r='2.2'/%3E%3Ccircle cx='88' cy='88' r='2.2'/%3E%3C/g%3E%3C/svg%3E"),
    var(--paper-tex),
    radial-gradient(ellipse 70% 80% at 72% 50%, #A84A34, transparent 70%),
    radial-gradient(ellipse 120% 90% at 10% 0%, #9A4230, transparent 60%),
    linear-gradient(170deg, var(--floor), var(--floor-deep));
  margin-top: calc(var(--head-total) * -1);
  padding-top: var(--head-total);
}
.hero::after { /* hand-torn paper edge into the page below */
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
  background: var(--paper-tex) var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14 L9 10 L17 15 L26 8 L34 13 L41 9 L52 16 L60 11 L69 14 L77 7 L88 13 L95 10 L104 15 L113 9 L121 13 L130 8 L138 14 L149 10 L157 16 L166 9 L174 12 L183 7 L192 14 L200 11 L209 15 L218 9 L226 13 L234 10 L240 13 L240 26 L0 26Z'/%3E%3C/svg%3E") 0 0 / 480px 100% repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14 L9 10 L17 15 L26 8 L34 13 L41 9 L52 16 L60 11 L69 14 L77 7 L88 13 L95 10 L104 15 L113 9 L121 13 L130 8 L138 14 L149 10 L157 16 L166 9 L174 12 L183 7 L192 14 L200 11 L209 15 L218 9 L226 13 L234 10 L240 13 L240 26 L0 26Z'/%3E%3C/svg%3E") 0 0 / 480px 100% repeat-x;
}
.hero-note { font-family: var(--font-te-hand); font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.2; color: var(--rice); opacity: .92; margin-top: 4px; margin-bottom: 14px; }
.box-stage { position: relative; }
.muggu { position: absolute; left: 50%; top: 50%; width: 132%; max-width: 640px; aspect-ratio: 1; transform: translate(-50%, -50%); color: var(--rice); opacity: .62; pointer-events: none; }
.leaf { position: absolute; left: 50%; top: 52%; width: 128%; max-width: 640px; transform: translate(-50%, -50%) rotate(-16deg); filter: drop-shadow(0 24px 30px rgba(40, 10, 4, .45)); pointer-events: none; }
.kitchen-note { position: absolute; right: -6px; bottom: -10px; z-index: 3; font-family: var(--font-hand); font-size: 1.15rem; color: var(--rice); transform: rotate(-5deg); display: flex; align-items: center; gap: 6px; opacity: 0; animation: note-in .6s var(--ease) 2.1s forwards; }
.kitchen-note svg { width: 46px; height: 34px; }
@keyframes note-in { from { opacity: 0; transform: rotate(-5deg) translateY(8px); } to { opacity: .95; transform: rotate(-5deg); } }
.hero-inner { width: min(1180px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 5vw, 72px); padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-te { font-size: clamp(3.2rem, 8.4vw, 6.6rem); line-height: 1.25; color: var(--zari-soft); text-shadow: 0 2px 30px rgba(212,175,85,.25); margin-bottom: 6px; }
.hero h1 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); color: #FFFDF4; max-width: 18ch; }
.hero-lede { margin-top: 18px; max-width: 46ch; font-size: 1.125rem; color: rgba(244,239,221,.82); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-hours { margin-top: 22px; font-size: .95rem; color: rgba(244,239,221,.72); display: flex; align-items: center; gap: 10px; }
.hero-hours .dot { width: 9px; height: 9px; border-radius: 50%; background: #5BD17B; box-shadow: 0 0 0 4px rgba(91,209,123,.2); }
.hero-hours .dot.closed { background: #E58A5C; box-shadow: 0 0 0 4px rgba(229,138,92,.2); }

/* The sweet box: lid lifts once on load */
.box-stage { perspective: 1400px; display: grid; place-items: center; padding: 30px 0; }
.sweet-box {
  position: relative; z-index: 2; width: min(420px, 86%); aspect-ratio: 1;
  transform: rotateX(16deg) rotateZ(-4deg); transform-style: preserve-3d;
}
.box-tray { /* brass plate */
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 14px;
  border-radius: 22px; background: radial-gradient(circle at 30% 20%, #F1DC8E, #C9A048 55%, #8C6922);
  box-shadow: 0 40px 70px -30px rgba(40,10,4,.7), inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 8px rgba(80,50,10,.4);
}
.compartment { position: relative; border-radius: 12px; overflow: hidden; background: #F6EED8; box-shadow: inset 0 3px 10px rgba(60,30,10,.35); }
.compartment img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.compartment img.is-loaded { opacity: 1; }
.box-lid { /* kraft card box, tied with jute twine */
  position: absolute; inset: -6px; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: var(--paper-tex), radial-gradient(circle at 35% 30%, #C08D5A, var(--kraft) 55%, #8A5E36);
  box-shadow: inset 0 0 0 1px rgba(255,235,200,.25), inset 0 0 30px rgba(70,40,15,.45), 0 30px 60px -20px rgba(40,10,4,.6);
  transform-origin: 50% 0%;
  animation: lid-open 1.5s var(--ease) .65s forwards;
}
.lid-silk { position: absolute; inset: 0; }
.lid-silk::before, .lid-silk::after { /* twine */
  content: ''; position: absolute; background: repeating-linear-gradient(135deg, #E8D3A8 0 3px, #B99868 3px 6px); box-shadow: 0 2px 3px rgba(60,30,10,.35);
}
.lid-silk::before { top: 0; bottom: 0; left: 70%; width: 9px; }
.lid-silk::after { left: 0; right: 0; top: 68%; height: 9px; }
.lid-knot { position: absolute; left: calc(70% - 16px); top: calc(68% - 18px); width: 42px; height: 44px; z-index: 1; }
.lid-logo { position: relative; width: 40%; height: auto; filter: brightness(.32) sepia(.7) saturate(1.6); opacity: .82; mix-blend-mode: multiply; }
@keyframes lid-open {
  0% { transform: translate3d(0,0,0) rotateX(0); }
  35% { transform: translate3d(0,-14px,40px) rotateX(-8deg); }
  100% { transform: translate3d(48%,-118%,0) rotateX(-58deg) rotateZ(10deg); opacity: .0; visibility: hidden; }
}

/* ── Category mosaic */
.cat-mosaic { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 170px; }
.cat-tile { position: relative; border-radius: var(--r-m); overflow: hidden; text-decoration: none; color: #fff; background: var(--peacock-800); isolation: isolate; grid-column: span 2; }
.cat-tile.big { grid-column: span 3; grid-row: span 2; }
.cat-tile.wide { grid-column: span 3; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease), opacity .4s; opacity: 0; }
.cat-tile img.is-loaded { opacity: 1; }
.cat-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(6,33,36,.88)); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-label { position: absolute; left: 18px; right: 18px; bottom: 14px; display: grid; }
.cat-label b { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.cat-tile.big .cat-label b { font-size: 2rem; }
.cat-label span { font-size: .95rem; color: var(--zari-soft); }

/* ── Product cards (shop counter, not boxed cards) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 22px; }
.card { position: relative; display: flex; flex-direction: column; }
.card-hit { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; border-radius: var(--r-m); }
.card-img { position: relative; aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .45s, transform .6s var(--ease); }
.card-img img.is-loaded { opacity: 1; transform: none; }
.card:hover .card-img img.is-loaded { transform: scale(1.04); }
.img-fallback { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 50% 45%, rgba(212,175,85,.35), transparent 60%), var(--peacock-800); }
.card .mark { position: absolute; top: 10px; left: 10px; }
.card-tag { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(6,33,36,.78); color: var(--zari-soft); font-size: .78rem; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card-body { padding: 12px 2px 0; display: grid; gap: 1px; }
.card-body h3 { font-size: 1.08rem; }
.card-body .te { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.price { font-size: .95rem; color: var(--muted); }
.price b { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--ink); margin-right: 4px; }
.add-btn { position: relative; z-index: 2; height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .95rem; transition: background-color .2s, border-color .2s, color .2s, transform .15s; }
.add-btn:hover { border-color: var(--primary); }
.add-btn:active { transform: scale(.94); }
.add-btn.added { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* Veg / egg marks (FSSAI style) */
.mark { width: 20px; height: 20px; border: 2px solid var(--veg); border-radius: 3px; background: #fff; display: inline-grid; place-items: center; flex-shrink: 0; }
.mark::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--veg); }
.mark.egg { border-color: var(--egg); }
.mark.egg::after { background: var(--egg); border-radius: 0; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--egg); background: none; }

/* ── Rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(16px, calc((100% - 1180px) / 2)) 16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }

/* ── Cake band */
.cake-band { /* dark wooden kitchen table */
  background:
    var(--paper-tex),
    repeating-linear-gradient(92deg, rgba(255,220,180,.035) 0 2px, transparent 2px 9px, rgba(0,0,0,.05) 9px 11px, transparent 11px 23px),
    linear-gradient(160deg, var(--peacock-700), var(--peacock-950));
  color: #F4EFDD; padding: clamp(56px, 8vw, 100px) 0; position: relative; overflow: hidden;
}
.cake-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cake-copy h2 { color: #FFFDF4; max-width: 16ch; }
.cake-copy p { margin-top: 16px; max-width: 46ch; color: rgba(244,239,221,.8); }
.cake-facts { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; }
.cake-facts li { display: flex; align-items: baseline; gap: 12px; color: rgba(244,239,221,.85); }
.cake-facts b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--zari-soft); min-width: 3.4em; }
.cake-stack { position: relative; height: 420px; }
.cake-stack a { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 4px solid rgba(233,214,127,.8); box-shadow: 0 30px 60px -25px rgba(0,0,0,.7); transition: transform .5s var(--ease); background: var(--peacock-700); }
.cake-stack a:nth-child(1) { left: 0; top: 4%; }
.cake-stack a:nth-child(2) { right: 0; top: 0; width: 46%; }
.cake-stack a:nth-child(3) { left: 30%; bottom: 0; width: 50%; }
.cake-stack a:hover { transform: translateY(-6px) rotate(-2deg); }
.cake-stack img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.cake-stack img.is-loaded { opacity: 1; }
.cake-stack span { position: absolute; inset: auto 0 12% 0; text-align: center; font-weight: 600; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.8); }

/* ── Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-ink); border: 1.5px solid var(--gold-ink); background: var(--bg); z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 23px; left: 46px; right: -28px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--gold-ink) 0 6px, transparent 6px 12px); opacity: .5; }
.steps li:last-child::after { display: none; }
.steps p { margin-top: 8px; color: var(--muted); }

/* ── Promise */
.promise { background: var(--paper-tex) var(--surface-2); }
.promise-inner { max-width: 760px; text-align: center; }
.promise-inner p { margin: 18px auto 28px; color: var(--muted); max-width: 58ch; }
.stamps { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.stamp { /* rubber-stamp labels */
  width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 14px;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.05rem; line-height: 1.15; color: var(--floor);
  border: 2.5px solid currentColor; box-shadow: inset 0 0 0 5px var(--surface-2), inset 0 0 0 6.5px currentColor;
  transform: rotate(var(--r, -6deg)); opacity: .88;
}
.stamp:nth-child(2) { --r: 4deg; color: var(--leaf); }
.stamp:nth-child(3) { --r: -2deg; color: var(--gold-ink); }
:root[data-theme="dark"] .stamp { color: #E58A6C; }
:root[data-theme="dark"] .stamp:nth-child(2) { color: #8BC57D; }
:root[data-theme="dark"] .stamp:nth-child(3) { color: var(--gold-ink); }
.hand { font-family: var(--font-hand); }

/* ── Visit */
.visit-hours { margin-top: 10px; color: var(--muted); }
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.branch { padding: 26px 28px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.branch h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.branch p { color: var(--muted); }
.branch .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.branch .btn { min-height: 44px; padding: 0 18px; }
.bulk { margin-top: 20px; display: flex; gap: 24px; align-items: center; padding: 22px 28px; border-radius: var(--r-l); border: 1.5px dashed color-mix(in srgb, var(--gold-ink) 55%, transparent); }
.bulk img { width: 96px; height: 96px; object-fit: contain; }
.bulk p { color: var(--muted); margin: 4px 0 8px; }

/* ── Footer */
.footer { background: var(--paper-tex) var(--peacock-950); color: rgba(244,239,221,.8); padding: 64px 0 120px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr .8fr; gap: 32px; }
.footer h2 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--zari-soft); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 64px; height: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; font-size: .95rem; }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(233,214,127,.15); font-size: .88rem; color: rgba(244,239,221,.55); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Menu page */
.page-title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); padding-top: 34px; }
.menu-top { position: sticky; top: var(--head-total); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.menu-top .page-title { padding-top: 22px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.menu-tools { display: flex; gap: 12px; align-items: center; margin: 14px 0 12px; flex-wrap: wrap; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); transition: border-color .2s; }
.search:focus-within { border-color: var(--focus); }
.search svg { width: 19px; height: 19px; color: var(--muted); flex-shrink: 0; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 500; font-size: .95rem; transition: all .2s; }
.filter[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.chips-bar { overflow-x: auto; scrollbar-width: none; }
.chips-bar::-webkit-scrollbar { display: none; }
.chips { display: flex; gap: 4px; width: max-content; padding: 0 max(16px, calc((100vw - 1180px) / 2)) 0; }
.chip { position: relative; padding: 10px 14px 12px; text-decoration: none; white-space: nowrap; color: var(--muted); font-weight: 500; transition: color .2s; }
.chip::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold-ink); transform: scaleX(0); transition: transform .3s var(--ease); }
.chip:hover { color: var(--ink); }
.chip.is-active { color: var(--ink); }
.chip.is-active::after { transform: scaleX(1); }
.menu-section { padding: 44px 0 10px; }
.menu-section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.menu-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.menu-section-head .te { color: var(--gold-ink); font-size: 1.15rem; }
.menu-section > p { color: var(--muted); margin-bottom: 24px; }
.empty-search { padding: 60px 0; text-align: center; color: var(--muted); }

/* ── Product sheet */
.sheet { border: 0; padding: 0; width: min(920px, 100% - 32px); max-height: min(88vh, 760px); border-radius: var(--r-l); background: var(--surface); color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0,0,0,.6); overflow: hidden; }
.sheet::backdrop { background: rgba(6, 25, 27, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in .38s var(--ease); }
.sheet[open]::backdrop { animation: fade-in .3s; }
.sheet.closing { animation: sheet-out .22s ease-in forwards; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-inner { display: grid; grid-template-columns: 1fr 1.1fr; max-height: inherit; }
.sheet-media { position: relative; background: var(--surface-2); min-height: 100%; }
.sheet-media img, .sheet-media .img-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.sheet-media img.is-loaded, .sheet-media .img-fallback { opacity: 1; }
.sheet-body { overflow-y: auto; padding: 30px 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(6,33,36,.7); color: #fff; font-size: 1.6rem; line-height: 1; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet-title h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.sheet-title .te { color: var(--gold-ink); font-size: 1.1rem; }
.diet { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); margin-bottom: 8px; }
.opt-label { font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { position: relative; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant span { display: grid; gap: 0; min-width: 92px; padding: 9px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, background-color .2s; line-height: 1.3; }
.variant span small { color: var(--muted); font-size: .85rem; }
.variant input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); box-shadow: inset 0 0 0 1px var(--primary); }
.variant input:focus-visible + span { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.buy-row { display: flex; gap: 12px; align-items: center; }
.qty { display: inline-flex; align-items: center; height: 50px; border-radius: 999px; border: 1.5px solid var(--line); }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.3rem; border-radius: 999px; }
.qty output { min-width: 26px; text-align: center; font-weight: 600; }
.buy-row .btn { flex: 1; }
.facts { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.facts h3 { font-size: .95rem; margin-bottom: 2px; }
.facts p { color: var(--muted); font-size: .98rem; }
.allergens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.allergens span { padding: 2px 12px; border-radius: 999px; background: var(--surface-2); font-size: .88rem; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .95rem; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); outline: 0; transition: border-color .2s; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--focus); }
.field.invalid input, .field.invalid textarea { border-color: var(--kumkum); }
.field .err { color: var(--kumkum); font-size: .88rem; }
.counter { font-size: .85rem; color: var(--muted); justify-self: end; }

/* ── Drawer (bag) */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(6,25,27,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.scrim.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  border-left: 1px solid var(--glass-line); box-shadow: -30px 0 80px -30px rgba(0,0,0,.4);
  transform: translateX(104%); transition: transform .45s var(--ease); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.7rem; }
.drawer .close { font-size: 1.8rem; color: var(--ink); }
.drawer .close:hover { background: var(--surface-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 8px 26px; }
.drawer-foot { padding: 18px 26px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.line-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.line-img img.is-loaded { opacity: 1; }
.line h3 { font-size: 1rem; }
.line p { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.line .line-end { display: grid; justify-items: end; gap: 6px; }
.line .amount { font-weight: 600; }
.qty.small { height: 36px; }
.qty.small button { width: 34px; font-size: 1.1rem; }
.row { display: flex; justify-content: space-between; gap: 12px; }
.row.total { font-size: 1.15rem; font-weight: 600; }
.empty { text-align: center; padding: 56px 12px; color: var(--muted); display: grid; gap: 16px; justify-items: center; }
.empty p:first-child { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.removed { opacity: 0; transform: translateX(20px); transition: opacity .25s, transform .25s; }

/* ── Checkout */
.back { display: inline-block; margin-top: 26px; color: var(--muted); text-decoration: none; font-weight: 500; }
.back::before { content: '‹ '; }
.back:hover { color: var(--ink); }
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; margin: 24px 0 40px; }
.checkout-main { display: grid; gap: 18px; }
.block { margin: 0; border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px 24px 24px; background: var(--surface); display: grid; gap: 16px; min-width: 0; }
.block legend { float: left; width: 100%; padding: 0; font-family: var(--font-display); font-size: 1.45rem; display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.block legend + * { clear: both; }
.num { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--gold-ink); color: var(--gold-ink); display: inline-grid; place-items: center; font-size: 1rem; flex-shrink: 0; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); gap: 4px; flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 10px 20px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.segmented input:checked + span { background: var(--surface); box-shadow: 0 2px 10px -2px rgba(0,0,0,.18); color: var(--ink); }
.segmented input:focus-visible + span { outline: 2.5px solid var(--focus); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, background-color .2s; height: 100%; }
.choice span b { font-weight: 600; }
.choice span small { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.choice input:checked + span { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.choice input:focus-visible + span { outline: 2.5px solid var(--focus); }
.days, .hours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.hours { flex-wrap: wrap; overflow: visible; }
.slot { position: relative; flex-shrink: 0; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: grid; min-width: 76px; text-align: center; padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; line-height: 1.3; font-weight: 500; transition: all .2s; }
.slot span small { color: var(--muted); font-size: .82rem; font-weight: 400; }
.slot input:checked + span { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.slot input:checked + span small { color: inherit; opacity: .85; }
.slot input:disabled + span { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.slot input:focus-visible + span { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.date-pick { position: relative; }
.date-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.hint { color: var(--muted); font-size: .93rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.summary { position: sticky; top: calc(var(--head-total) + 20px); border-radius: var(--r-l); padding: 24px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.summary h2 { font-size: 1.6rem; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: .98rem; padding: 6px 0; }
.sum-line span:first-child { color: var(--muted); }
.sum-line b { color: var(--ink); font-weight: 600; }
.totals { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals .grand { font-size: 1.25rem; padding-top: 8px; }
.totals .grand dt { color: var(--ink); font-weight: 600; }
.totals .grand dd { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.form-error { color: var(--kumkum); font-weight: 500; }
.fine { font-size: .85rem; color: var(--muted); }

/* ── Confirmation + tracking */
.confirm-head { text-align: center; padding: 48px 0 24px; display: grid; justify-items: center; gap: 12px; }
.tick { width: 84px; height: 84px; }
.tick circle { fill: none; stroke: var(--veg); stroke-width: 3; stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw .7s var(--ease) forwards; }
.tick path { fill: none; stroke: var(--veg); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm-head h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.confirm-head p { color: var(--muted); max-width: 46ch; }
.order-id { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px 10px 20px; border-radius: 999px; border: 1.5px dashed var(--gold-ink); font-size: 1.05rem; }
.order-id b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .06em; color: var(--gold-ink); }
.copy-btn { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface-2); font-weight: 600; font-size: .88rem; }
.actions-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 6px 0 10px; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-l); padding: 24px 26px; margin-top: 18px; }
.panel > h2 { font-size: 1.5rem; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h2 { font-size: 1.5rem; }
.updated { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; padding-bottom: 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 16px; top: 30px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--veg); }
.t-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; position: relative; z-index: 1; }
.timeline li.done .t-dot { background: var(--veg); border-color: var(--veg); }
.timeline li.done .t-dot::after { content: ''; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-2px) rotate(-45deg); }
.timeline li.current .t-dot { border-color: var(--veg); }
.timeline li.current .t-dot::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--veg); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .5; } }
.timeline h3 { font-size: 1.05rem; }
.timeline p { color: var(--muted); font-size: .94rem; }
.timeline li:not(.done):not(.current) h3 { color: var(--muted); font-weight: 500; }
.timeline li.current h3 { color: var(--veg); }
.timeline time { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.cancelled-note { padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--kumkum) 10%, var(--surface)); color: var(--kumkum); font-weight: 500; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.track-form { display: grid; gap: 14px; }
.track-form .btn { justify-self: start; }
.my-orders { display: grid; gap: 10px; margin-top: 10px; }
.my-order { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.my-order:hover { border-color: var(--gold-ink); }
.my-order b { font-family: var(--font-display); font-weight: 400; letter-spacing: .04em; font-size: 1.15rem; }
.my-order span { color: var(--muted); font-size: .92rem; }
.demo-note { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .9rem; }

/* ── Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; transition: transform .45s var(--spring), visibility 0s .45s; padding: 12px 18px 12px 16px; border-radius: 16px; background: var(--peacock-900); color: #F4EFDD; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--spring), visibility 0s; }
.toast button { background: none; border: 0; color: var(--zari-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Chat helper */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 50; height: 56px; padding: 0 22px 0 18px; border-radius: 999px; border: 0;
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem;
  background: linear-gradient(180deg, #E4C46C, #C99E3F); color: #2A180F;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 14px 30px -10px rgba(60,30,10,.55);
  transition: transform .25s var(--spring), box-shadow .2s;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 22px; height: 22px; fill: currentColor; }
.chat-fab.is-open { transform: scale(.92); }
.chat {
  position: fixed; right: 22px; bottom: 92px; z-index: 55; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 130px));
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: var(--paper-tex) var(--bg); border: 1px solid var(--glass-line); box-shadow: 0 30px 80px -24px rgba(40,20,8,.55);
  transform-origin: 100% 100%; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .25s, transform .35s var(--ease);
}
.chat.show { opacity: 1; transform: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 10px 14px 18px; background: var(--paper-tex) var(--peacock-900); color: #F4EFDD; }
.chat-head img { width: 30px; height: auto; }
.chat-head div { flex: 1; min-width: 0; }
.chat-head h2 { font-size: 1.25rem; color: var(--zari-soft); }
.chat-head p { font-size: .82rem; color: rgba(244,239,221,.72); }
.chat-head .icon-btn { font-size: 1.7rem; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.5; font-size: .98rem; animation: msg-in .3s var(--ease); overflow-wrap: anywhere; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.bot.wide { max-width: 100%; width: 100%; padding: 6px; display: grid; gap: 4px; }
.msg.me { align-self: flex-end; background: var(--primary); color: var(--primary-ink); border-bottom-right-radius: 6px; }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dots 1s infinite ease-in-out; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.msg a { color: var(--gold-ink); font-weight: 600; }
.msg-chips { display: flex; flex-wrap: wrap; gap: 6px; animation: msg-in .3s var(--ease); }
.msg-chips button, .chat-link { padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.msg-chips button:hover, .chat-link:hover { border-color: var(--gold-ink); }
.chat-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 6px; border-radius: 14px; }
.chat-item + .chat-item { border-top: 1px solid var(--line); border-radius: 0; }
.chat-thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.chat-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.chat-thumb img.is-loaded { opacity: 1; }
.chat-item-body { display: grid; line-height: 1.3; min-width: 0; }
.chat-item-body b { font-weight: 600; font-size: .95rem; }
.chat-item-body span { font-size: .82rem; color: var(--muted); }
.chat-item-body small { font-size: .85rem; }
.chat-item-acts { display: flex; gap: 4px; }
.chat-item-acts button { height: 32px; padding: 0 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .84rem; }
.chat-item-acts button:first-child:not(:last-child) { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.price-list, .branch-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.price-list li { display: flex; justify-content: space-between; gap: 18px; }
.branch-list li + li { margin-top: 6px; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.chat-form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); outline: 0; }
.chat-form input:focus { border-color: var(--focus); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; }
.chat-form button svg { width: 20px; height: 20px; fill: currentColor; }

/* ── Tab bar (phones) */
.tabbar { display: none; }

/* ── View transitions */
.view { animation: view-in .4s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ── Responsive */
@media (max-width: 1020px) {
  .mainnav { display: none; }
  .masthead-actions { margin-left: auto; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  :root { --head-h: 58px; --head-gap: 8px; }
  body { font-size: 1rem; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .brand-te { display: none; }
  .brand-name { font-size: 1.2rem; }
  .bag-btn { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 18px; padding: 22px 0 56px; text-align: left; }
  .box-stage { order: -1; }
  .sweet-box { width: min(230px, 62vw); }
  .hero-te { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .hero h1 { font-size: 1.6rem; }
  .hero-lede { font-size: 1rem; margin-top: 12px; }
  .hero-cta { margin-top: 20px; }
  .cat-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .cat-tile, .cat-tile.wide { grid-column: span 1; }
  .cat-tile.big { grid-column: span 2; grid-row: span 1; }
  .cat-tile.big .cat-label b, .cat-label b { font-size: 1.3rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .card-body h3 { font-size: 1rem; }
  .price-row { flex-wrap: wrap; }
  .add-btn { width: 100%; }
  .rail { grid-auto-columns: 46%; gap: 14px; }
  .rail-nav { display: none; }
  .cake-band-inner { grid-template-columns: 1fr; }
  .cake-stack { height: 300px; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .branches { grid-template-columns: 1fr; }
  .bulk { flex-direction: column; align-items: start; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer { padding-bottom: 110px; }
  .two, .choice-grid { grid-template-columns: 1fr; }
  .block { padding: 18px 18px 20px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .menu-top .page-title { display: none; }
  .menu-tools { margin-top: 12px; }
  .filters { overflow-x: auto; flex-wrap: nowrap; }

  /* Product sheet becomes a bottom sheet */
  .sheet { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .sheet[open] { animation: sheet-up .42s var(--ease); }
  .sheet.closing { animation: sheet-down .25s ease-in forwards; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  @keyframes sheet-down { to { transform: translateY(100%); } }
  .sheet-inner { grid-template-columns: 1fr; overflow-y: auto; max-height: 92vh; }
  .sheet-media { aspect-ratio: auto; height: min(70vw, 340px); min-height: 0; }
  .sheet-body { overflow: visible; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
  .buy-row { position: sticky; bottom: 0; background: var(--surface); padding: 10px 0; margin: -10px 0; z-index: 2; }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45;
    height: 62px; border-radius: 22px; padding: 0 6px;
    background: linear-gradient(180deg, rgba(58, 34, 22, .86), rgba(30, 18, 11, .9)); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(233,214,127,.18); box-shadow: 0 16px 40px -16px rgba(0,0,0,.55);
  }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; font-size: .74rem; font-weight: 600; color: rgba(244,239,221,.7); text-decoration: none; background: none; border: 0; border-radius: 16px; }
  .tabbar svg { width: 22px; height: 22px; fill: currentColor; }
  .tabbar [aria-current="page"] { color: var(--zari-soft); }
  .tab-count { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 19px; height: 19px; font-size: .7rem; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .chat-fab { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); height: 50px; padding: 0 16px 0 14px; }
  .chat { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; transform-origin: 50% 100%; }
  body.chat-open { overflow: hidden; }
  body.chat-open .chat-fab, body.chat-open .tabbar { display: none; }
  .kitchen-note { right: 0; bottom: -4px; font-size: 1rem; }
  .stamps { gap: 12px; }
  .stamp { width: 104px; height: 104px; padding: 16px; font-size: .8rem; }
}


/* ═════════ v3: everything centred, live search, landing motion, today's special, gift hampers ═════════ */

/* Centred section heads */
.section-head { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; margin-bottom: 34px; }
.section-sub { color: var(--muted); max-width: 52ch; }
#howHead, #visitHead, .visit-hours { text-align: center; }
.section h2 { text-wrap: balance; }

/* Hero: one centred column, box below */
.hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; padding: clamp(36px, 6vw, 70px) 0 clamp(70px, 8vw, 110px); }
.hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 820px; }
.hero-copy > * { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 95ms + 120ms); }
@keyframes rise { from { opacity: 0; translate: 0 22px; filter: blur(4px); } }
.hero-te {
  margin: 10px 0 0; line-height: 1.3;
  background: linear-gradient(100deg, #E9D67F 0%, #E9D67F 38%, #FFF7D6 50%, #E9D67F 62%, #E9D67F 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s var(--ease) both, shimmer 3.2s ease-in-out 1.2s infinite;
  animation-delay: 215ms, 1.4s;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 55%, 100% { background-position: -60% 0; } }
.hero-note { margin: 0 0 18px; clip-path: inset(0 0 0 0); }
.hero h1 { max-width: none; font-size: clamp(1.8rem, 3.6vw, 2.9rem); text-wrap: balance; }
.hero-lede { max-width: 58ch; margin-inline: auto; }
.hero-hours { justify-content: center; margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(30, 12, 6, .28); border: 1px solid rgba(251, 243, 228, .2); font-size: .9rem; }
.hero-cta { justify-content: center; margin-top: 18px; }
.hero-search {
  position: relative; display: flex; align-items: center; gap: 10px; width: min(620px, 100%); margin-top: 26px;
  padding: 7px 7px 7px 20px; border-radius: 999px;
  background: rgba(255, 248, 236, .96); color: var(--ink);
  box-shadow: 0 18px 40px -16px rgba(40, 10, 4, .6), 0 0 0 6px rgba(251, 243, 228, .12);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.hero-search:focus-within { box-shadow: 0 22px 50px -16px rgba(40, 10, 4, .7), 0 0 0 7px rgba(233, 214, 127, .35); transform: translateY(-2px); }
.hero-search svg { width: 21px; height: 21px; color: #8E3B2A; flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; font-size: 1.05rem; color: #2A1A12; }
.hero-search input::placeholder { color: #8A7462; }
.hero-search .btn { min-height: 48px; }
.hero-quick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; font-size: .92rem; }
.hero-quick span { color: rgba(255, 243, 226, .75); }
.hero-quick button { padding: 5px 13px; border-radius: 999px; border: 1px solid rgba(251, 243, 228, .35); background: rgba(30, 12, 6, .18); color: #FFF3E2; font-weight: 500; transition: background-color .2s, border-color .2s; }
.hero-quick button:hover { background: rgba(251, 243, 228, .16); border-color: rgba(251, 243, 228, .6); }
.box-stage { width: min(560px, 100%); margin-top: 26px; }

/* Landing motion: muggu draws itself, lid lifts, sweets pop, gold dust floats */
.muggu .mg { stroke-dasharray: 1; stroke-dashoffset: 1; }
.muggu.draw .mg { animation: mg-draw 1.3s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes mg-draw { to { stroke-dashoffset: 0; } }
.muggu .mg-dots { opacity: 0; transition: opacity 1.2s ease 1.6s; }
.muggu.draw .mg-dots { opacity: 1; }
.box-lid { animation: none; }
.sweet-box.open .box-lid { animation: lid-open 1.5s var(--ease) .5s forwards; }
.compartment { opacity: 0; scale: .7; }
.sweet-box.open .compartment { animation: pop .6s var(--spring) forwards; animation-delay: calc(1.05s + var(--i, 0) * 85ms); }
@keyframes pop { to { opacity: 1; scale: 1; } }
.kitchen-note { animation: none; opacity: 0; }
.sweet-box.open ~ .kitchen-note { animation: note-in .7s var(--ease) 2.2s forwards; }
.sweet-box { transform: rotateX(calc(16deg - var(--ty, 0) * 7deg)) rotateY(calc(var(--tx, 0) * 9deg)) rotateZ(-4deg); transition: transform .5s var(--ease); }
.leaf { translate: calc(var(--tx, 0) * -14px) calc(var(--ty, 0) * -10px); transition: translate .6s var(--ease); }
.muggu { translate: calc(var(--tx, 0) * 8px) calc(var(--ty, 0) * 6px); transition: translate .6s var(--ease); }
.hero-sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-sparkles span { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #FFF6CF 0, rgba(233, 214, 127, .8) 35%, rgba(233, 214, 127, 0) 70%); opacity: 0; animation: dust var(--t) ease-in-out var(--d) infinite; }
@keyframes dust { 0% { opacity: 0; transform: translateY(24px) scale(.5); } 25% { opacity: .9; } 70% { opacity: .5; } 100% { opacity: 0; transform: translateY(-90px) scale(1.1); } }

/* Ticker of sweet names under the hero */
.ticker { overflow: hidden; padding: 18px 0 6px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 55s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--ink); }
.ticker-track span[lang="te"] { font-family: var(--font-te); color: var(--gold-ink); }
.ticker-track i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--floor); display: inline-block; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Scroll reveal (only when JS is running) */
.js-reveal [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .9s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal [data-reveal].in { opacity: 1; translate: 0 0; }

/* Category tiles: centred labels */
.cat-label { text-align: center; justify-items: center; }

/* Product cards: centred, rows line up whatever the name length */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px 24px; }
.grid > .card { flex: 0 1 calc((100% - 3 * 24px) / 4); min-width: 0; }
.card { text-align: center; }
.card-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: 14px; }
.card-body h3 { min-height: 2.6em; display: flex; align-items: center; justify-content: center; text-wrap: balance; }
.card-body .te { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.price-row { flex-direction: column; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; width: 100%; }
.add-btn { width: 100%; height: 42px; }
.card-img { box-shadow: 0 14px 30px -18px rgba(60, 30, 10, .45); }

/* Cake band: centred */
.cake-band-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.cake-copy { display: flex; flex-direction: column; align-items: center; }
.cake-copy h2 { max-width: 22ch; text-wrap: balance; }
.cake-copy p { margin-inline: auto; }
.cake-facts { display: flex; justify-content: center; gap: clamp(18px, 5vw, 56px); flex-wrap: wrap; }
.cake-facts li { flex-direction: column; align-items: center; gap: 2px; text-align: center; max-width: 170px; }
.cake-facts b { min-width: 0; font-size: 2rem; }
.cake-stack { height: auto; width: 100%; display: flex; justify-content: center; gap: clamp(16px, 4vw, 40px); margin-top: 8px; }
.cake-stack a, .cake-stack a:nth-child(1), .cake-stack a:nth-child(2), .cake-stack a:nth-child(3) { position: relative; inset: auto; left: auto; right: auto; top: auto; bottom: auto; width: clamp(130px, 22vw, 230px); flex-shrink: 0; text-decoration: none; overflow: visible; border: 0; background: none; box-shadow: none; }
.cake-stack .cake-pic { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 4px solid rgba(233, 214, 127, .8); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); background: var(--peacock-700); }
.cake-stack span.cake-name { position: static; display: block; margin-top: 12px; text-align: center; text-shadow: none; color: #F4EFDD; }

/* Steps: centred with the line running circle to circle */
.steps li { text-align: center; padding-top: 70px; }
.steps li::before { left: 50%; translate: -50% 0; }
.steps li::after { left: calc(50% + 34px); right: auto; width: calc(100% + 28px - 68px); }
.steps p { max-width: 30ch; margin-inline: auto; }

/* Visit + bulk + footer: centred */
.branch { text-align: center; justify-items: center; }
.branch .actions { justify-content: center; }
.bulk { flex-direction: column; text-align: center; justify-content: center; }
.footer-inner { text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.footer-brand p { margin-inline: auto; }
.footer-base { justify-content: center; text-align: center; }

/* Menu page: centred */
.menu-top .page-title, .page-title { text-align: center; }
.menu-tools { justify-content: center; }
.search { flex: 0 1 560px; }
.chips { margin-inline: auto; padding-inline: 16px; }
.menu-section-head { justify-content: center; text-align: center; }
.menu-section > p { text-align: center; }
.empty-search { text-align: center; }

/* Checkout / order / track: centred headings */
.back { display: table; margin: 26px auto 0; }
.block legend { justify-content: center; text-align: center; }
.block > .segmented { justify-self: center; }
.days, .hours { justify-content: center; flex-wrap: wrap; overflow: visible; }
.block .hint { text-align: center; }
.summary h2, .panel > h2 { text-align: center; }
.panel-head { justify-content: center; flex-direction: column; align-items: center; text-align: center; }
.track-form .btn { justify-self: center; }

/* Live search results */
.search-pop {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; z-index: 70; width: min(560px, calc(100vw - 32px));
  max-height: min(70vh, 520px); overflow-y: auto; padding: 8px; text-align: left; color: var(--ink);
  border-radius: 22px; background: var(--paper-tex) var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 70px -24px rgba(30, 12, 4, .55);
  animation: pop-in .22s var(--ease);
}
.head-search .search-pop { left: auto; right: -10px; translate: none; width: 440px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.search-pop.inline { position: static; translate: none; width: 100%; max-height: none; border: 0; box-shadow: none; background: transparent; animation: none; padding: 0; }
.sp-label { padding: 8px 12px 4px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.sp-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; cursor: pointer; transition: background-color .15s; }
.sp-row.is-active, .sp-row:hover { background: var(--surface-2); }
.sp-row .chat-thumb { width: 52px; height: 52px; }
.sp-row b { display: block; font-weight: 600; line-height: 1.3; }
.sp-row mark { background: color-mix(in srgb, var(--zari) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.sp-row small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.sp-row .sp-price { font-weight: 600; white-space: nowrap; text-align: right; }
.sp-row .sp-price small { font-weight: 400; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; }
.sp-chips button { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .88rem; }
.sp-all { display: block; width: 100%; margin-top: 4px; padding: 12px; border: 0; border-top: 1px solid var(--line); background: none; font-weight: 600; color: var(--gold-ink); border-radius: 0 0 14px 14px; }
.sp-empty { padding: 18px 14px; color: var(--muted); text-align: center; }
.search-overlay { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; background: var(--paper-tex) var(--bg); animation: fade-in .2s; }
.so-bar { display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.so-bar svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.so-bar input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font-size: 1.05rem; }
.so-close { border: 0; background: none; font-weight: 600; color: var(--gold-ink); padding: 8px; }
.so-results { flex: 1; overflow-y: auto; padding: 10px 8px 30px; }

/* Today's special popup */
.special { border: 0; padding: 0; width: min(440px, calc(100% - 32px)); border-radius: 30px; overflow: visible; background: transparent; color: var(--ink); }
.special::backdrop { background: rgba(30, 12, 4, .5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: fade-in .3s; }
.special[open] { animation: special-in .6s var(--spring); }
.special.closing { animation: sheet-out .22s ease-in forwards; }
@keyframes special-in { from { opacity: 0; transform: translateY(40px) scale(.9) rotate(-2deg); } }
.special-inner { position: relative; border-radius: 30px; overflow: hidden; background: var(--paper-tex) var(--surface); box-shadow: 0 40px 100px -30px rgba(30, 12, 4, .7); text-align: center; }
.special-media { position: relative; aspect-ratio: 5 / 4; background: var(--floor); overflow: hidden; }
.special-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s, transform 6s ease-out; transform: scale(1.12); }
.special-media img.is-loaded { opacity: 1; transform: scale(1); }
.special-ribbon { position: absolute; top: 16px; left: 50%; translate: -50% 0; z-index: 2; padding: 6px 18px 7px; border-radius: 999px; background: linear-gradient(180deg, #E4C46C, #C99E3F); color: #2A180F; font-weight: 700; font-size: .95rem; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); white-space: nowrap; }
.special-ribbon span[lang="te"] { font-family: var(--font-te); font-weight: 400; margin-left: 6px; }
.special-body { padding: 20px 26px 24px; display: grid; gap: 6px; justify-items: center; }
.special-body h2 { font-size: 2rem; }
.special-body .te { color: var(--gold-ink); font-size: 1.1rem; }
.special-note { font-family: var(--font-hand); font-size: 1.15rem; color: var(--floor); margin-top: 2px; }
:root[data-theme="dark"] .special-note { color: #E58A6C; }
.special-price { font-size: 1rem; color: var(--muted); }
.special-price b { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; color: var(--ink); margin-right: 4px; }
.special-acts { display: flex; gap: 10px; width: 100%; margin-top: 10px; }
.special-acts .btn { flex: 1; }
.special-later { margin-top: 4px; border: 0; background: none; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.special-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(30, 12, 4, .6); color: #fff; font-size: 1.5rem; line-height: 1; }
.special-badge { position: fixed; left: 18px; bottom: 22px; z-index: 49; display: none; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-lift); font-weight: 600; }
.special-badge.show { display: inline-flex; animation: rise .5s var(--ease); }
.special-badge img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* Gift hampers */
.gifts-hero { text-align: center; padding: 30px 0 10px; }
.gifts-hero img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto -6px; filter: drop-shadow(0 18px 24px rgba(60, 30, 10, .3)); animation: gift-float 4s ease-in-out infinite; }
@keyframes gift-float { 50% { translate: 0 -8px; } }
.gifts-hero .te { color: var(--gold-ink); font-size: 1.2rem; }
.gifts-hero .lede { color: var(--muted); max-width: 52ch; margin: 10px auto 0; }
.boxes { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 34px 0 10px; }
.giftbox { flex: 0 1 360px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 24px 24px; border-radius: var(--r-l); background: var(--paper-tex) var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.giftbox::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 10px; translate: -50% 0; background: repeating-linear-gradient(135deg, #E8D3A8 0 3px, #B99868 3px 6px); opacity: .5; }
.giftbox > * { position: relative; }
.giftbox h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; background: var(--surface); padding: 0 10px; }
.giftbox .te { color: var(--gold-ink); background: var(--surface); padding: 0 10px; }
.giftbox .for { font-family: var(--font-hand); color: var(--floor); background: var(--surface); padding: 0 10px; }
:root[data-theme="dark"] .giftbox .for { color: #E58A6C; }
.giftbox .thumbs { display: flex; justify-content: center; margin: 8px 0 4px; }
.giftbox .thumbs span { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 3px solid var(--surface); margin-left: -12px; background: var(--surface-2); box-shadow: 0 6px 14px -6px rgba(60, 30, 10, .4); }
.giftbox .thumbs span:first-child { margin-left: 0; }
.giftbox .thumbs img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.giftbox .thumbs img.is-loaded { opacity: 1; }
.giftbox ul { list-style: none; padding: 10px 14px; margin: 0; width: 100%; display: grid; gap: 4px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); font-size: .95rem; }
.giftbox li { display: flex; justify-content: space-between; gap: 10px; }
.giftbox li span:last-child { color: var(--muted); }
.giftbox .gb-total { font-size: 1.05rem; background: var(--surface); padding: 0 10px; }
.giftbox .gb-total b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.giftbox .btn { width: 100%; margin-top: auto; }
.gift-form { max-width: 720px; margin: 40px auto 20px; padding: 28px; border-radius: var(--r-l); border: 1.5px dashed color-mix(in srgb, var(--gold-ink) 55%, transparent); text-align: center; display: grid; gap: 16px; }
.gift-form h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.gift-form > p { color: var(--muted); }
.gift-form .two { text-align: left; }
.gift-form .btn { justify-self: center; }

/* Gift hampers, the special and the chat helper on phones */
@media (max-width: 1180px) {
  .head-search { display: none; }
  .icon-btn.search-icon { display: grid; }
}
@media (max-width: 1020px) {
  .masthead-inner { grid-template-columns: 1fr auto; }
}
@media (max-width: 760px) {
  .masthead { padding-inline: 8px; }
  .masthead-inner { padding: 0 6px 0 12px; }
  .icon-btn.call-icon { display: grid; }
  .scroll-progress { left: 20px; right: 20px; }
  .hero-inner { padding: 24px 0 64px; gap: 4px; }
  .hero-search { padding: 5px 5px 5px 14px; margin-top: 18px; }
  .hero-search input { height: 44px; font-size: 1rem; }
  .hero-search .btn { min-height: 44px; padding: 0 16px; }
  .hero-quick { margin-top: 12px; }
  .hero-quick span { display: none; }
  .box-stage { order: 0; margin-top: 12px; }
  .grid { gap: 26px 14px; }
  .grid > .card { flex-basis: calc((100% - 14px) / 2); }
  .card-body h3 { font-size: .98rem; }
  .cake-stack a, .cake-stack a:nth-child(1), .cake-stack a:nth-child(2), .cake-stack a:nth-child(3) { width: 30%; }
  .cake-stack span.cake-name { font-size: .85rem; }
  .steps li::after { display: none; }
  .tabbar { grid-template-columns: repeat(5, 1fr); }
  .special-badge { left: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .giftbox { flex-basis: 100%; }
  .gift-form { padding: 20px 16px; }
  .special { margin: auto auto 0; width: 100%; border-radius: 28px 28px 0 0; }
  .special-inner { border-radius: 28px 28px 0 0; }
  .special-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (min-width: 761px) and (max-width: 1020px) {
  .grid > .card { flex-basis: calc((100% - 2 * 24px) / 3); }
}


/* ═════════ v4: Telugu sampradayam — maroon pattu silk, gold zari, mamidi thoranam, banthi, deepam, pasupu-kumkuma gadapa ═════════ */
:root {
  --peacock-950: #2A0710;   /* dark surfaces are maroon pattu silk now */
  --peacock-900: #3D0B17;
  --peacock-800: #551223;
  --peacock-700: #6B1A2C;
  --peacock-600: #852538;
  --pasupu: #E3A21A;        /* turmeric */
  --kumkum: #B3192B;        /* vermilion */
  --mamidi: #2F7A2E;        /* mango leaf */
  --primary: #A61E2E;
  --focus: #A61E2E;
  --temple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 28 16'%3E%3Cpath d='M0 16L14 3L28 16' fill='none' stroke='%23E2C36B' stroke-width='1.6'/%3E%3Cpath d='M7 16L14 9.5L21 16Z' fill='%23E2C36B'/%3E%3Ccircle cx='14' cy='5.2' r='1.6' fill='%23F5DE8E'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] { --bg: #1C0A0E; --surface: #2A1117; --surface-2: #36171F; --ink: #F6E9DC; --muted: #C9AE9E; --primary: var(--zari); --focus: #E9D67F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #1C0A0E; --surface: #2A1117; --surface-2: #36171F; --ink: #F6E9DC; --muted: #C9AE9E; --primary: var(--zari); --focus: #E9D67F; }
}

/* Title bar: maroon silk with zari piping, logo in a gold seal */
.masthead-inner {
  background:
    repeating-linear-gradient(90deg, rgba(255, 220, 160, .035) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, rgba(120, 24, 44, .9), rgba(60, 10, 22, .93));
  border: 1.5px solid rgba(226, 195, 107, .75);
  box-shadow: inset 0 0 0 3px rgba(60, 10, 22, .9), inset 0 0 0 4px rgba(226, 195, 107, .45), 0 16px 40px -14px rgba(40, 4, 12, .7);
  padding-left: 8px;
}
.brand { gap: 12px; }
.brand-seal {
  position: relative; width: 54px; height: 54px; margin: 0; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #8A2238, #3D0B17 70%);
  border: 2px solid #E2C36B;
  box-shadow: 0 0 0 2px #4A0D1B, 0 0 0 3.5px rgba(226, 195, 107, .7), 0 4px 10px -4px rgba(30, 2, 8, .7);
  transition: transform .5s var(--spring);
}
.brand:hover .brand-seal { transform: rotate(-8deg) scale(1.04); }
.brand-seal img { width: 40px; height: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.brand-name { font-size: 1.5rem; color: #F5DE8E; letter-spacing: .01em; }
.brand-te { font-size: .82rem; color: rgba(255, 236, 200, .8); display: block; }
.masthead.scrolled .brand-seal { width: 46px; height: 46px; }
.masthead.scrolled .brand-seal img { width: 34px; }
.brand-seal { z-index: 2; }
.nav-pill { background: rgba(226, 195, 107, .2); box-shadow: inset 0 0 0 1px rgba(226, 195, 107, .45); }
.head-search { background: rgba(255, 230, 200, .08); border-color: rgba(226, 195, 107, .35); }
.bag-btn { border-color: rgba(226, 195, 107, .7); color: #F5DE8E; }

/* Hero: mamidi thoranam at the door, banthi garlands, deepams, gadapa at the bottom */
.thoranam { position: absolute; top: calc(var(--head-total) + 2px); left: 0; right: 0; height: 78px; z-index: 1; pointer-events: none; display: flex; justify-content: space-between; padding: 0 6px; }
.thoranam::before { /* the string */
  content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 4px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, #E9D7A8 0 4px, #B9965E 4px 8px); box-shadow: 0 2px 3px rgba(40, 8, 4, .4);
}
.thoranam .t-item { position: relative; transform-origin: 50% 6px; animation: sway var(--t, 4s) ease-in-out var(--d, 0s) infinite alternate; }
.thoranam .t-leaf { width: 22px; height: 66px; margin-top: 4px; }
.thoranam .t-flower { width: 26px; height: 26px; margin-top: 4px; }
@keyframes sway { from { rotate: -4deg; } to { rotate: 4deg; } }
.garland { position: absolute; top: calc(var(--head-total) + 6px); width: 30px; z-index: 1; display: flex; flex-direction: column; align-items: center; pointer-events: none; transform-origin: 50% 0; animation: sway 5s ease-in-out infinite alternate; }
.garland-left { left: 4%; }
.garland-right { right: 4%; animation-delay: -2.5s; }
.garland svg { width: 30px; height: 30px; margin-top: -7px; }
.garland svg:first-child { margin-top: 0; }
.te-row { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2.5vw, 26px); margin-top: 6px; }
.te-row .hero-te { animation: shimmer 3.2s ease-in-out 1.4s infinite; margin: 0; }
.deepam { width: clamp(42px, 5vw, 64px); height: auto; flex-shrink: 0; overflow: visible; filter: drop-shadow(0 6px 10px rgba(40, 6, 2, .5)); }
.deepam .flame { transform-origin: 32px 33px; animation: flicker 1.6s ease-in-out infinite; }
.deepam .glow { transform-origin: 32px 24px; animation: glow 1.6s ease-in-out infinite; }
.te-row .deepam:last-child .flame, .te-row .deepam:last-child .glow { animation-delay: -.7s; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) rotate(-2deg); } 30% { transform: scale(.92, 1.08) rotate(2deg); } 60% { transform: scale(1.05, .94) rotate(-1deg); } }
@keyframes glow { 0%, 100% { opacity: .28; transform: scale(1); } 50% { opacity: .42; transform: scale(1.12); } }
.hero::after { /* gadapa: turmeric threshold with kumkum bottus and a white muggu line */
  -webkit-mask: none; mask: none; height: 24px; bottom: 0;
  background:
    linear-gradient(var(--rice), var(--rice)) 0 0 / 100% 3px no-repeat,
    radial-gradient(circle, var(--kumkum) 0 4.2px, transparent 4.8px) 0 60% / 30px 24px repeat-x,
    linear-gradient(180deg, #EDB532, var(--pasupu) 60%, #C98A12);
  box-shadow: 0 -6px 14px rgba(40, 8, 4, .25);
}
.hero-inner { padding-top: clamp(70px, 9vw, 104px); }

/* Telugu kicker above headings, with a gold lotus ornament under them */
.te-kicker { font-family: var(--font-te-hand); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; color: var(--primary); text-align: center; margin-bottom: 2px; }
:root[data-theme="dark"] .te-kicker { color: var(--zari-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .te-kicker { color: var(--zari-soft); } }
.cake-copy .te-kicker { color: var(--zari-soft); }
.section-head h2::after, #howHead::after, #visitHead::after, .promise-inner h2::after, .cake-copy h2::after {
  content: ''; display: block; width: 190px; height: 22px; margin: 12px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 22'%3E%3Cg fill='none' stroke='%23C9973A' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M4 11H70M120 11H186'/%3E%3Cpath d='M74 11h6M110 11h6'/%3E%3C/g%3E%3Cg fill='%23C9973A'%3E%3Ccircle cx='86' cy='11' r='1.8'/%3E%3Ccircle cx='104' cy='11' r='1.8'/%3E%3Cpath d='M95 2C99 7 99 14 95 20C91 14 91 7 95 2Z'/%3E%3Cpath d='M95 20C90 17 86 13 85 8C90 9 94 14 95 20Z' opacity='.75'/%3E%3Cpath d='M95 20C100 17 104 13 105 8C100 9 96 14 95 20Z' opacity='.75'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* Pattu silk bands with temple (gopuram) zari borders */
.cake-band {
  background:
    repeating-linear-gradient(90deg, rgba(255, 210, 150, .04) 0 1px, transparent 1px 6px),
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(226, 120, 80, .18), transparent 70%),
    linear-gradient(160deg, var(--peacock-700), var(--peacock-950));
}
.cake-band::before, .cake-band::after, .footer::before {
  content: ''; position: absolute; left: 0; right: 0; height: 22px;
  background:
    linear-gradient(#E2C36B, #E2C36B) 0 0 / 100% 2px no-repeat,
    linear-gradient(#E2C36B, #E2C36B) 0 100% / 100% 2px no-repeat,
    var(--temple) 0 4px / 28px 16px repeat-x,
    #4A0D1B;
}
.cake-band::before { top: 0; }
.cake-band::after { bottom: 0; transform: scaleY(-1); }
.footer { position: relative; padding-top: 86px; background: var(--paper-tex), linear-gradient(170deg, var(--peacock-800), var(--peacock-950)); }
.footer::before { top: 0; }

/* Kumkum and pasupu accents */
.btn-primary { background: linear-gradient(180deg, #B8283A, #921626); }
:root[data-theme="dark"] .btn-primary { background: linear-gradient(180deg, #E4C46C, #C99E3F); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: linear-gradient(180deg, #E4C46C, #C99E3F); } }
.ticker-track i { border-color: var(--kumkum); background: radial-gradient(circle, var(--pasupu) 0 2px, transparent 2.5px); }
.card-tag { background: rgba(74, 13, 27, .85); }
.steps li::before { border-color: var(--kumkum); color: var(--kumkum); background: radial-gradient(circle, rgba(227, 162, 26, .18), transparent 70%), var(--bg); }
:root[data-theme="dark"] .steps li::before { border-color: var(--zari); color: var(--zari-soft); }
.tabbar { background: linear-gradient(180deg, rgba(110, 22, 42, .9), rgba(55, 9, 20, .94)) !important; border-color: rgba(226, 195, 107, .45) !important; }
.chat-fab { background: linear-gradient(180deg, #B8283A, #8E1424); color: #FFF1DE; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 3px rgba(226, 195, 107, .55), 0 14px 30px -10px rgba(60, 6, 14, .6); }
.special-ribbon { background: linear-gradient(180deg, #B8283A, #8E1424); color: #FFF1DE; box-shadow: 0 0 0 2px #E2C36B, 0 8px 20px -8px rgba(0, 0, 0, .5); }

@media (max-width: 760px) {
  .brand-seal { width: 46px; height: 46px; }
  .brand-seal img { width: 34px; }
  .brand-name { font-size: 1.15rem; }
  .brand-te { font-size: .72rem; }
  .thoranam { height: 60px; }
  .thoranam .t-leaf { width: 17px; height: 50px; }
  .thoranam .t-flower { width: 20px; height: 20px; }
  .garland { display: none; }
  .hero-inner { padding-top: 66px; }
  .te-row { gap: 8px; }
  .deepam { width: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .box-lid { display: none; }
  .compartment { opacity: 1; scale: 1; }
  .muggu .mg { stroke-dasharray: none; stroke-dashoffset: 0; }
  .muggu .mg-dots, .kitchen-note { opacity: 1; }
  .js-reveal [data-reveal] { opacity: 1; translate: none; }
  .ticker-track { animation: none; }
  .hero-sparkles { display: none; }
  .thoranam .t-item, .garland, .deepam .flame, .deepam .glow { animation: none; }
}
.garland .g-leaf { width: 18px; height: 50px; margin-top: -4px; }

/* Ingredients and best-before dates on the order and tracking pages */
.ing-panel > h2 { margin-bottom: 6px; }
.ing-panel > .hint { text-align: center; margin-bottom: 16px; }
.ing-list { display: grid; gap: 12px; }
.ing-item { padding: 16px 18px; border-radius: 18px; background: var(--paper-tex) var(--bg); border: 1px solid var(--line); display: grid; gap: 6px; font-size: .97rem; }
.ing-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.ing-top h3 { font-size: 1.08rem; }
.ing-top .te { color: var(--gold-ink); font-size: .9rem; }
.ing-qty { color: var(--muted); font-size: .9rem; }
.expiry { flex-shrink: 0; display: grid; text-align: center; padding: 6px 12px; border-radius: 12px; border: 1.5px dashed var(--mamidi); color: var(--mamidi); line-height: 1.25; }
.expiry span { font-size: .78rem; font-weight: 600; }
.expiry b { font-size: .95rem; }
.expiry.soon { border-color: var(--kumkum); color: var(--kumkum); }
:root[data-theme="dark"] .expiry { color: #8BC57D; border-color: #8BC57D; }
:root[data-theme="dark"] .expiry.soon { color: #F08A7A; border-color: #F08A7A; }
.ing-item .storage { color: var(--muted); font-size: .9rem; }
small.bb, b.bb { color: var(--mamidi); font-weight: 600; }
:root[data-theme="dark"] small.bb, :root[data-theme="dark"] b.bb { color: #8BC57D; }
.te-small { font-family: var(--font-te); font-weight: 400; color: var(--gold-ink); }
@media (max-width: 760px) { .ing-top { flex-direction: column; } .expiry { justify-self: start; } }

/* ═════════ v5: original logo in the title bar + opening logo animation ═════════ */
:root { --head-h: 80px; }
.masthead-inner { padding-left: 22px; }
.brand-logo { height: calc(var(--head-h) - 12px); width: auto; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); transition: height .35s var(--ease), opacity .4s ease; }
.masthead.scrolled .brand-logo { height: calc(var(--head-h) - 24px); }
.intro-on .brand-logo { opacity: 0; }

.intro { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; cursor: pointer; animation: intro-out .5s ease 3.6s forwards; }
.no-intro .intro { display: none; }
.intro-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(#E2C36B, #E2C36B) 0 18px / 100% 2px no-repeat,
    linear-gradient(#E2C36B, #E2C36B) 0 calc(100% - 18px) / 100% 2px no-repeat,
    var(--temple) 0 24px / 28px 16px repeat-x,
    radial-gradient(circle at 50% 45%, #7E1D31, #3D0B17 58%, #24060E);
  transition: opacity .6s ease;
}
.intro-logo { position: relative; width: min(280px, 58vw); aspect-ratio: 900 / 1050; transition: transform .75s cubic-bezier(.7, 0, .2, 1); transform-origin: 50% 50%; }
.i-part { position: absolute; inset: 0; width: 100%; height: 100%; }
.i-emb { clip-path: inset(0 0 37.3% 0); transform-origin: 50% 31%; animation: i-emb 1.1s var(--spring) .15s both; }
.i-since { clip-path: inset(65.3% 0 31% 0); animation: i-up .6s var(--ease) .95s both; }
.i-name1 { clip-path: inset(73.4% 100% 11.8% 0); animation: i-wipe1 .7s cubic-bezier(.6, 0, .2, 1) 1.2s forwards; }
.i-name2 { clip-path: inset(92.9% 100% 0 0); animation: i-wipe2 .6s cubic-bezier(.6, 0, .2, 1) 1.6s forwards; }
.i-glow { position: absolute; left: 50%; top: 31%; width: 130%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(233, 214, 127, .38), transparent 62%); animation: i-glow 1.8s ease .2s both; }
.i-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("https://static.wixstatic.com/media/a65843_e38e768318204a75b100d4c2b152cf6b~mv2.png/v1/fit/w_600,h_700,q_90/logo.png") center / 100% 100% no-repeat;
          mask: url("https://static.wixstatic.com/media/a65843_e38e768318204a75b100d4c2b152cf6b~mv2.png/v1/fit/w_600,h_700,q_90/logo.png") center / 100% 100% no-repeat;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 252, 235, .95) 50%, transparent 62%) 120% 0 / 300% 100% no-repeat;
  animation: i-shine 1s ease 2.1s forwards;
}
.intro-te { position: relative; font-family: var(--font-te); font-size: clamp(1.6rem, 4vw, 2.2rem); color: #F5DE8E; animation: i-up .7s var(--ease) 1.9s both; }
.intro-skip { position: absolute; bottom: 52px; font-size: .85rem; color: rgba(255, 236, 200, .55); animation: i-up .5s ease 1s both; }
@keyframes i-emb { from { opacity: 0; transform: scale(.35) rotate(-40deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes i-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes i-wipe1 { to { clip-path: inset(73.4% 0 11.8% 0); } }
@keyframes i-wipe2 { to { clip-path: inset(92.9% 0 0 0); } }
@keyframes i-glow { from { opacity: 0; scale: .3; } 55% { opacity: 1; } to { opacity: .55; scale: 1; } }
@keyframes i-shine { from { background-position: 120% 0; } to { background-position: -30% 0; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.intro.leaving { animation: none; cursor: default; pointer-events: none; }
.intro.leaving .intro-bg, .intro.leaving .intro-te, .intro.leaving .intro-skip { opacity: 0; transition: opacity .55s ease; }
.intro.leaving.fade { opacity: 0; transition: opacity .3s ease; }
/* the page waits behind the intro, then its own entrance plays */
.intro-on .hero-copy > *, .intro-on .te-row .hero-te { animation-play-state: paused; }

@media (max-width: 760px) {
  :root { --head-h: 64px; }
  .masthead-inner { padding-left: 16px; }
}

/* ═════════ v6: logo reveal first, then the page opens like temple doors ═════════ */
.intro { animation: intro-out .5s ease 7s forwards; perspective: 1600px; }
.door {
  position: absolute; top: 0; bottom: 0; width: 50.2%;
  background:
    linear-gradient(#E2C36B, #E2C36B) 0 18px / 100% 2px no-repeat,
    linear-gradient(#E2C36B, #E2C36B) 0 calc(100% - 18px) / 100% 2px no-repeat,
    var(--temple) 0 24px / 28px 16px repeat-x,
    radial-gradient(ellipse 140% 90% at var(--cx) 45%, #7E1D31, #3D0B17 58%, #24060E);
  box-shadow: inset 0 0 0 14px rgba(36, 6, 14, .55), inset 0 0 0 16px rgba(226, 195, 107, .45);
  transition: transform 1.05s cubic-bezier(.65, 0, .25, 1), opacity .5s ease .6s;
  backface-visibility: hidden;
}
.door-l { left: 0; --cx: 100%; transform-origin: 0 50%; border-right: 2px solid rgba(226, 195, 107, .8); }
.door-r { right: 0; --cx: 0%; transform-origin: 100% 50%; border-left: 2px solid rgba(226, 195, 107, .8); }
.door-ring { position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 3px solid #E2C36B; box-shadow: 0 0 0 3px rgba(36, 6, 14, .6), inset 0 0 6px rgba(0, 0, 0, .5); opacity: .85; }
.door-l .door-ring { right: 18px; }
.door-r .door-ring { left: 18px; }
.intro.leaving .door-l { transform: rotateY(84deg); opacity: 0; }
.intro.leaving .door-r { transform: rotateY(-84deg); opacity: 0; }
.intro.leaving .intro-te, .intro.leaving .intro-skip { opacity: 0; transition: opacity .4s ease; }
/* nothing moves until the logo picture has arrived */
.intro:not(.ready) .i-part, .intro:not(.ready) .i-glow, .intro:not(.ready) .i-shine, .intro:not(.ready) .intro-te, .intro:not(.ready) .intro-skip { animation-play-state: paused; }
.intro-fly .brand-logo { opacity: 0; }
.intro-logo, .intro-te { z-index: 1; }

/* v7: landing is text only — name with deepams, heading, two buttons, centred on the first screen */
.hero-inner { min-height: calc(100svh - var(--head-total) - 120px); align-content: center; padding-top: 110px; padding-bottom: 90px; }
.hero-copy { gap: 6px; }
.hero h1 { margin-top: 10px; }
.hero-cta { margin-top: 28px; }
@media (max-width: 760px) {
  .hero-inner { min-height: calc(100svh - var(--head-total) - 150px); padding-top: 86px; padding-bottom: 70px; }
}


/* v9: no doors. After the logo reveal the maroon screen opens as a widening circle from the centre */
@property --hole { syntax: '<length>'; inherits: false; initial-value: 0px; }
.intro.leaving .intro-bg {
  opacity: 1; transition: none;
  -webkit-mask: radial-gradient(circle at 50% 45%, transparent var(--hole), #000 calc(var(--hole) + 2px));
          mask: radial-gradient(circle at 50% 45%, transparent var(--hole), #000 calc(var(--hole) + 2px));
  animation: hole-open 1s cubic-bezier(.6, 0, .25, 1) forwards;
}
@keyframes hole-open { from { --hole: 0px; } to { --hole: 150vmax; } }
