:root {
  --maroon: #5a0f1c;
  --maroon-2: #7a1a2a;
  --maroon-3: #3d0912;
  --gold: #e0a83a;
  --gold-soft: #f2d18b;
  --cream: #fbf4e6;
  --cream-2: #f4e8d0;
  --ink: #2a1a14;
  --muted: #6b5548;
  --wa: #1b7f4b;
  --line: #e4d3b4;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(61, 9, 18, 0.10);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ta: "Mukta Malar", "Poppins", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
html[lang="ta"] body, [lang="ta"] { font-family: var(--font-ta); }
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--maroon); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--maroon-2); }
a:hover { color: var(--maroon-3); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { top: 8px; }

/* Demo banner */
.demo-banner {
  background: var(--ink); color: #fff7e6; font-size: 0.82rem; text-align: center;
  padding: 6px 16px;
}
.demo-banner p { margin: 0; }
.demo-banner a { color: var(--gold-soft); margin-left: 6px; font-weight: 600; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--maroon); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 30px; color: var(--gold); }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: 0.2px; }
.brand small { display: block; font-size: 0.72rem; color: var(--gold-soft); }
.main-nav { display: none; gap: 18px; }
.main-nav a { color: #fbeacb; text-decoration: none; font-size: 0.92rem; }
.main-nav a:hover { color: #fff; text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; align-items: center; gap: 2px; color: var(--gold-soft); font-size: 0.85rem; }
.lang button {
  background: none; border: 0; color: #fbeacb; font: inherit; padding: 6px 6px;
  cursor: pointer; border-radius: 6px; min-height: 36px;
}
.lang button[aria-pressed="true"] { color: var(--ink); background: var(--gold); font-weight: 600; }
.order-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  background: var(--cream); color: var(--maroon); border: 0; border-radius: 999px;
  padding: 6px 12px; font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer;
}
.order-btn svg { width: 20px; height: 20px; }
.order-btn > span:not(.count) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.count {
  background: var(--maroon); color: #fff; border-radius: 999px; min-width: 22px;
  padding: 0 6px; text-align: center; font-size: 0.78rem; line-height: 22px;
}

/* Hero */
.hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(224, 168, 58, 0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(224, 168, 58, 0.18), transparent 40%),
    linear-gradient(160deg, var(--maroon-2), var(--maroon-3));
  padding: 48px 0 56px;
}
.hero-grid { display: grid; gap: 24px; align-items: center; }
.eyebrow { color: var(--gold-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 3rem); color: #fff; }
.lead { font-size: 1.05rem; color: #f8e6c9; max-width: 36rem; }
.occasions { list-style: none; padding: 0; margin: 16px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.occasions li {
  border: 1px solid rgba(242, 209, 139, 0.55); color: var(--gold-soft);
  padding: 4px 12px; border-radius: 999px; font-size: 0.88rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { display: none; }
.hero-art svg { width: 100%; max-width: 300px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); color: var(--ink); }
.btn-ghost { border-color: var(--gold-soft); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: var(--maroon-2); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #156a3e; color: #fff; }
.btn-link { background: none; color: var(--maroon-2); text-decoration: underline; min-height: 40px; }

/* Sections */
.section { padding: 48px 0; }
.section.alt { background: var(--cream-2); }

/* Filters and grid */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; margin: 8px -16px 0; padding-left: 16px; padding-right: 16px; scrollbar-width: thin; }
.filters button {
  flex: 0 0 auto; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: 0.9rem; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.result-count { font-size: 0.88rem; color: var(--muted); margin: 4px 0 12px; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.vis { height: 130px; display: grid; place-items: center; color: #fff8e8; }
.vis svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vis-sound { background: radial-gradient(circle at 30% 30%, #b8323f, #5a0f1c); }
.vis-sparkler { background: radial-gradient(circle at 60% 30%, #f6c453, #a0611a); }
.vis-flowerpot { background: radial-gradient(circle at 50% 20%, #f08a4b, #7a1a2a); }
.vis-rocket { background: linear-gradient(160deg, #2c3e72, #141c38); }
.vis-aerial { background: radial-gradient(circle at 50% 40%, #8a3fa0, #2b0f3a); }
.vis-gift { background: linear-gradient(135deg, #c9962b, #7a1a2a); }
.vis-kids { background: radial-gradient(circle at 50% 40%, #3fa38a, #135546); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tag { font-size: 0.75rem; color: var(--maroon-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.pack { font-size: 0.88rem; color: var(--muted); margin: 0; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.price .mrp { color: var(--muted); font-size: 0.85rem; }
.price strong { font-size: 1.25rem; color: var(--maroon); }
.price .off { background: #fdebc4; color: #6a4300; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.actions .btn { font-size: 0.85rem; padding: 8px 10px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 16px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.step-n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-weight: 700; margin-bottom: 8px;
}

/* Licences */
.lic-grid { display: grid; gap: 16px; margin-top: 16px; }
.lic-card { border: 2px dashed var(--gold); border-radius: var(--radius); padding: 18px; background: #fffaf0; }
.placeholder { color: var(--muted); font-style: italic; margin: 0; }

/* Safety */
.tips { padding-left: 1.2rem; margin: 12px 0 0; display: grid; gap: 8px; }
.tips li::marker { color: var(--maroon-2); }

/* Forms */
.form { display: grid; gap: 14px; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 10px 12px; min-height: 44px; border-radius: 10px;
  border: 1.5px solid #c9b48f; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--maroon-2); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.form-error { color: #b3261e; font-weight: 600; margin: 0; min-height: 1px; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style-position: inside; }
details p { padding: 0 16px 14px; margin: 0; }

/* Footer */
.site-footer { background: var(--maroon-3); color: #f3dfbf; padding: 32px 0; font-size: 0.92rem; }
.site-footer a { color: var(--gold-soft); }
.foot-brand { font-weight: 700; color: #fff; font-size: 1.1rem; }
.footer-grid { display: grid; gap: 16px; }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(20, 6, 8, 0.55); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(420px, 100%); background: var(--cream); display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.25); transform: translateX(100%); transition: transform 0.25s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--maroon); color: #fff; }
.drawer-head h2 { color: #fff; font-size: 1.2rem; margin: 0; }
.icon-btn { background: none; border: 0; color: inherit; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.icon-btn svg { width: 22px; height: 22px; }
.drawer-demo { font-size: 0.78rem; background: var(--ink); color: #fff7e6; padding: 6px 16px; margin: 0; }
.order-list { list-style: none; margin: 0; padding: 8px 16px; overflow-y: auto; flex: 1; }
.order-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-list .oi-name { font-weight: 600; }
.order-list .oi-meta { font-size: 0.82rem; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button {
  width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--line);
  background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--maroon);
}
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.oi-line { text-align: right; font-weight: 600; color: var(--maroon); }
.empty { padding: 24px 16px; color: var(--muted); text-align: center; }
.drawer-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: #fff; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-weight: 600; }
.total strong { font-size: 1.3rem; color: var(--maroon); }
.drawer-foot .field input { min-height: 40px; padding: 8px 10px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 120px); z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 0.9rem;
  transition: transform 0.25s ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* Larger screens */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .order-btn > span:not(.count) { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .steps, .lic-grid { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr 1fr; }
  .form .full { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .lic-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .hero-art { display: block; }
  .filters { flex-wrap: wrap; overflow: visible; margin: 8px 0 0; padding-left: 0; padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
