/* Sri Balaji Dhall & Oil Mill — public site. Green theme: deep leaf greens, turmeric gold, cream paper. */
:root {
  --g900: #06261c; --g800: #0b3b2c; --g700: #0f4a36; --g600: #166045; --g500: #1f7a55; --g300: #7cc35b; --g100: #e7f2e3;
  --gold: #f2b33d; --gold-2: #ffd56a;
  --cream: #fbf7ee; --paper: #fffdf8; --ink: #17251f; --muted: #5c6b63; --line: #e6e1d2;
  --up: #ff8a8e; --up-bg: rgba(229, 72, 77, .18); --down: #6ee7a0; --down-bg: rgba(74, 222, 128, .15);
  --shadow: 0 12px 32px -14px rgba(6, 38, 28, .35);
  --font: 'Plus Jakarta Sans', 'Noto Sans Tamil', system-ui, sans-serif;
  --display: 'Fraunces', 'Noto Sans Tamil', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--font); overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h2 { font: 800 clamp(1.9rem, 3.6vw, 2.8rem)/1.1 var(--display); letter-spacing: -.01em; color: var(--g800); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px;
  border: 0; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--g800); color: #fff; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; }
.btn-gold { background: var(--gold); color: var(--g900); box-shadow: 0 10px 26px -10px rgba(242, 179, 61, .8); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-wa { background: #25d366; color: #052e16; }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.stock-in, .slot-open { background: #dcf5e5; color: #146c3c; }
.stock-low, .slot-busy { background: #fff1cc; color: #865600; }
.stock-out, .slot-closed { background: #fde2e2; color: #a32424; }
.ask { font-weight: 700; color: var(--muted); font-size: .9rem; }

.eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--g500); }
.eyebrow::before { content: '❖ '; color: var(--gold); }
.sec-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.sec-head > p:last-child { color: var(--muted); margin: 12px 0 0; }
.sec-head.left { text-align: left; margin-left: 0; }
section { padding: 84px 0; }

/* ---------- news ticker ---------- */
.ticker { display: flex; align-items: center; gap: 12px; background: var(--g900); color: #e8f5e0; font-size: .86rem; height: 38px; padding-left: 12px; overflow: hidden; }
.ticker-tag { flex: none; background: var(--gold); color: var(--g900); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-run { display: inline-flex; gap: 56px; white-space: nowrap; width: max-content; animation: marquee 38s linear infinite; }
.ticker-run span::before { content: '●'; color: var(--g300); margin-right: 10px; font-size: .6em; vertical-align: middle; }
.ticker:hover .ticker-run { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 238, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(15, 74, 54, .08); }
.top-in { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex: 0 1 auto; }
.brand > span { min-width: 0; }
.logo { width: auto; height: 42px; flex: none; }
.brand b { display: block; font: 800 1.08rem/1.15 var(--display); color: var(--g800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: none; margin-left: auto; gap: 2px; flex: none; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--g700); }
.nav a:hover { background: var(--g100); }
.lang { margin-left: auto; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--g500); color: var(--g700); text-decoration: none; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.cart-btn { position: relative; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--g800); color: #fff; cursor: pointer; display: none; place-items: center; }
.cart-btn svg { width: 22px; height: 22px; }
.count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--g900); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.count.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.5); } }
@media (min-width: 960px) {
  .nav { display: flex; }
  .lang { margin-left: 4px; }
  .cart-btn { display: grid; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 0; display: grid; align-items: center;
  min-height: min(88vh, 760px);
  background: radial-gradient(1100px 620px at 78% 18%, #1f7350 0%, transparent 62%), linear-gradient(160deg, #0d4433, #06261c 72%);
}
.hero .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 38, 28, .88) 0%, rgba(6, 38, 28, .55) 45%, rgba(6, 38, 28, .05) 85%), linear-gradient(0deg, rgba(6, 38, 28, .6), transparent 30%); }
.hero-in { position: relative; z-index: 1; display: grid; gap: 40px; padding-top: 56px; padding-bottom: 72px; }
.live { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .84rem; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }
.hero h1 { font: 800 clamp(2.5rem, 6vw, 4.7rem)/1.02 var(--display); letter-spacing: -.02em; }
.hero h1 em { font-style: italic; background: linear-gradient(90deg, var(--gold), #ffe7a3 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.lead { max-width: 34rem; margin: 20px 0 28px; font-size: 1.08rem; opacity: .9; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin: 36px 0 0; padding: 0; font-size: .82rem; opacity: .85; }
.facts b { display: block; font: 800 1.6rem/1.1 var(--display); color: var(--gold-2); }
.hero-board {
  align-self: center; width: 100%; max-width: 420px; justify-self: end; padding: 18px 20px; border-radius: 24px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.hero-board header { display: flex; justify-content: space-between; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; padding-bottom: 6px; }
.hero-board ul { list-style: none; margin: 0; padding: 0; }
.hero-board li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); font-size: .93rem; animation: rollIn .6s calc(.3s + var(--i) * 90ms) both; }
.hero-board .px { white-space: nowrap; text-align: right; }
.hero-board a { display: inline-block; margin-top: 12px; color: var(--gold-2); font-weight: 700; text-decoration: none; font-size: .9rem; }
@keyframes rollIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.px b { font-variant-numeric: tabular-nums; color: var(--gold-2); font-size: 1.08rem; text-shadow: 0 0 14px rgba(255, 213, 106, .35); }
.px small { opacity: .7; font-size: .78rem; }
.tr { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 6px; font: 700 .74rem/1.5 var(--font); white-space: nowrap; }
.tr.up { background: var(--up-bg); color: var(--up); }
.tr.down { background: var(--down-bg); color: var(--down); }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.25fr .85fr; gap: 56px; padding-top: 72px; padding-bottom: 96px; }
  /* shade only the copy column, so the dal pouring between copy and board keeps its colour */
  .hero::after { background: linear-gradient(90deg, rgba(6, 38, 28, .88) 0%, rgba(6, 38, 28, .6) 40%, rgba(6, 38, 28, .12) 58%, rgba(6, 38, 28, .05) 85%), linear-gradient(0deg, rgba(6, 38, 28, .45), transparent 22%); }
}
@media (max-width: 899px) { .hero-board { justify-self: stretch; max-width: none; } }

/* ---------- rates board ---------- */
.rates { background: var(--paper); }
.board {
  border-radius: 26px; padding: 18px; color: #e9f3ea; box-shadow: 0 30px 60px -30px rgba(6, 38, 28, .55);
  background: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.2px) 0 0 / 6px 6px, linear-gradient(180deg, var(--g800), #072c21);
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { border: 0; border-radius: 999px; padding: 7px 14px; font-size: .86rem; font-weight: 700; cursor: pointer; background: rgba(255, 255, 255, .08); transition: background .2s, color .2s; }
.tabs button[aria-pressed="true"] { background: var(--gold); color: var(--g900); }
.board table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.board thead th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; font-weight: 700; padding: 10px 12px; }
.board tbody th, .board td { padding: 14px 12px; border-top: 1px solid rgba(255, 255, 255, .07); text-align: left; vertical-align: middle; }
.board tbody th { font-weight: 700; }
.board tbody tr:hover { background: rgba(255, 255, 255, .04); }
.spark { width: 110px; height: 30px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--gold-2); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
html.js .board tbody tr { opacity: 0; }
html.js .board.in tbody tr { animation: rollIn .5s calc(var(--i) * 45ms) forwards; }
@media (max-width: 719px) {
  .board { padding: 14px; border-radius: 20px; }
  .board thead { display: none; }
  .board tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px 4px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .board tbody th, .board td { padding: 0; border: 0; }
  .board tbody th { grid-column: 1 / -1; font-size: 1.02rem; }
  .board td[data-label]::before { content: attr(data-label); display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
  .board td:nth-child(4) { align-self: center; }
  .board .tr { margin-left: 0; }
  .board .trend-cell { align-self: center; }
}

/* ---------- shop ---------- */
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; padding: 9px 20px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--g700); }
.seg button[aria-pressed="true"] { background: var(--g800); color: #fff; }
.shop .tabs button { background: #fff; color: var(--g700); box-shadow: inset 0 0 0 1px var(--line); }
.shop .tabs button[aria-pressed="true"] { background: var(--g800); color: #fff; box-shadow: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 14px; border-radius: 22px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(6, 38, 28, .45); }
.card-img { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, hsl(var(--h), 95%, 93%), hsl(var(--h), 70%, 80%)); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img svg { width: 64%; height: 84%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img svg { transform: scale(1.07) rotate(-3deg); }
.card-img .chip { position: absolute; top: 10px; left: 10px; }
.card h3 { font-size: 1.02rem; padding: 0 4px; }
.card h3 small { display: block; margin-top: 2px; font-weight: 500; font-size: .84rem; color: var(--muted); }
.price { margin: 0; padding: 0 4px; }
.price b { font-variant-numeric: tabular-nums; font-size: 1.3rem; color: var(--g800); }
.price small { color: var(--muted); }
.price em { display: block; font-style: normal; font-size: .78rem; color: var(--muted); }
body[data-mode="retail"] .for-wholesale, body[data-mode="wholesale"] .for-retail { display: none; }
.buy { display: flex; gap: 8px; margin-top: auto; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.qty button { width: 34px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--g700); }
.qty input { width: 46px; border: 0; background: none; text-align: center; font: 700 1rem var(--font); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.btn-add { flex: 1; padding: 10px 12px; }
.btn-add.done { background: #1f9d55; }

/* ---------- services ---------- */
.services { background: var(--g100); }
.svc-in { display: grid; gap: 36px; align-items: start; }
.scene-frame { position: relative; margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 400 / 340; background: radial-gradient(500px 300px at 30% 20%, #1c6b4b, transparent 70%), linear-gradient(160deg, var(--g800), var(--g900)); box-shadow: 0 30px 60px -30px rgba(6, 38, 28, .55); }
.scene-frame .scene { width: 100%; height: 100%; }
.scene-frame figcaption { position: absolute; left: 14px; bottom: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff; font-size: .8rem; backdrop-filter: blur(6px); }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px; margin-bottom: 14px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.svc h3 { font-size: 1.08rem; color: var(--g800); }
.svc p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.svc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.svc-side .rate { margin: 0; white-space: nowrap; }
.svc-side .rate b { font-size: 1.2rem; color: var(--g800); font-variant-numeric: tabular-nums; }
.svc-side small { color: var(--muted); font-size: .76rem; }
@media (min-width: 960px) {
  .svc-in { grid-template-columns: 1fr 1.05fr; gap: 48px; }
  .scene-frame { position: sticky; top: 96px; }
}
@media (max-width: 520px) {
  .svc { grid-template-columns: 1fr; }
  .svc-side { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; }
  .svc-side .btn { margin-left: auto; }
}

/* ---------- process + oil ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.steps li { padding: 20px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); transition-delay: calc(var(--i) * 90ms); }
.steps b { display: block; margin: 14px 0 4px; color: var(--g800); }
.steps span:not(.step-ico) { color: var(--muted); font-size: .9rem; }
.step-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--g800); color: var(--gold); animation: bob 3.2s ease-in-out calc(var(--i) * .4s) infinite; }
.step-ico svg { width: 26px; height: 26px; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.oil { display: grid; margin-top: 48px; border-radius: 28px; overflow: hidden; color: #fdf3df; background: radial-gradient(600px 400px at 30% 40%, #7a4a1f, transparent 70%), linear-gradient(135deg, #2b1a0c, #4a2c13); box-shadow: 0 30px 60px -30px rgba(43, 26, 12, .7); }
.oil .scene { width: 100%; aspect-ratio: 400 / 340; }
.oil-copy { padding: 8px 24px 32px; }
.oil-copy .eyebrow { color: var(--gold-2); }
.oil-copy h3 { font: 800 clamp(1.7rem, 3vw, 2.4rem)/1.1 var(--display); }
.oil-copy p { opacity: .85; }
@media (min-width: 860px) {
  .oil { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .oil-copy { padding: 40px 48px 40px 8px; }
}

/* ---------- contact + footer ---------- */
.contact { background: var(--paper); }
.contact-in { display: grid; gap: 36px; align-items: stretch; }
.contact h2 { margin-bottom: 18px; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; }
.contact-list li { display: flex; gap: 12px; padding: 8px 0; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--g500); margin-top: 2px; }
.reg { color: var(--muted); font-size: .84rem; }
.map { min-height: 320px; border-radius: 26px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, var(--g600), var(--g900)); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.map-art { width: 55%; padding: 5% 6%; border-radius: 22px; background: #fbf7ee; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .4)); }
@media (min-width: 860px) { .contact-in { grid-template-columns: 1fr 1fr; } }
.foot { background: var(--g900); color: rgba(255, 255, 255, .7); padding: 28px 0; font-size: .85rem; }

/* ---------- floating WhatsApp, phone tab bar ---------- */
.fab-wa { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7); animation: ping-wa 2.4s infinite; }
.fab-wa svg { width: 30px; height: 30px; }
@keyframes ping-wa { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 253, 248, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border: 0; background: none; color: var(--g700); text-decoration: none; font-size: .68rem; font-weight: 700; cursor: pointer; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar .count { top: 2px; right: calc(50% - 22px); }
@media (max-width: 959px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .fab-wa { bottom: calc(76px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
}
@media (min-width: 960px) { .tabbar { display: none; } }

/* ---------- cart + booking sheets ---------- */
.sheet { border: 0; padding: 0; margin: 0 0 0 auto; width: min(460px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100%; border-radius: 26px 0 0 26px; background: var(--paper); color: var(--ink); box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .4); overflow-y: auto; overscroll-behavior: contain; }
.sheet[open] { animation: slideIn .32s cubic-bezier(.2, .8, .2, 1); }
.sheet::backdrop { background: rgba(6, 38, 28, .5); backdrop-filter: blur(2px); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
@media (max-width: 600px) {
  .sheet { margin: auto 0 0; width: 100%; height: auto; max-height: 92dvh; border-radius: 26px 26px 0 0; }
  @keyframes slideIn { from { transform: translateY(60px); opacity: 0; } }
}
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.4rem; }
.sheet-head small { font: 600 .9rem var(--font); color: var(--muted); }
.x { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--cream); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cart-lines { padding: 4px 20px; }
.line { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line small { display: block; color: var(--muted); font-size: .8rem; }
.line .amt { font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.qty.sm button { width: 30px; height: 32px; }
.qty.sm span { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.rm { border: 0; background: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; width: 28px; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; }
.cart-total { display: flex; justify-content: space-between; margin: 0; padding: 14px 20px 4px; font-size: 1.1rem; }
.cart-total b { color: var(--g800); }
.hint { margin: 0; padding: 0 20px; color: var(--muted); font-size: .82rem; }
.sheet-form { padding: 16px 20px 28px; }
.sheet-form label { display: grid; gap: 6px; margin-bottom: 12px; font-size: .85rem; font-weight: 700; color: var(--g700); }
.sheet-form input, .sheet-form select, .sheet-form textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: 400 16px var(--font); color: var(--ink); }
.sheet-form input:focus, .sheet-form select:focus, .sheet-form textarea:focus { outline: 0; border-color: var(--g500); box-shadow: 0 0 0 3px rgba(31, 122, 85, .15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.sheet-form .btn { width: 100%; padding: 14px; margin-top: 4px; }
.form-msg { margin: 12px 0 0; font-weight: 700; font-size: .92rem; min-height: 1.4em; }
.form-msg.err { color: #a32424; }
.form-msg.ok { color: #146c3c; }

/* ---------- scroll reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Tamil: longer words, taller glyphs ---------- */
html[lang="ta"] .hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.2; }
html[lang="ta"] h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.3; }
html[lang="ta"] .nav a { font-size: .84rem; padding: 8px 9px; }
html[lang="ta"] .brand b { font-size: .98rem; }
html[lang="ta"] .hero h1 em { font-style: normal; }
/* letter-spacing splits Tamil letter clusters apart */
html[lang="ta"] *, html[lang="ta"] *::before { letter-spacing: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-reveal], html.js .board tbody tr { opacity: 1; transform: none; }
}
