:root {
  --maroon: #7b2d12;
  --maroon-dark: #5a1f0a;
  --saffron: #e8890c;
  --saffron-soft: #fdebd0;
  --cream: #fff8ef;
  --paper: #ffffff;
  --ink: #2b1d14;
  --muted: #7a6a5e;
  --line: #eadfd2;
  --green: #1faa59;
  --danger: #b3261e;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(91, 31, 10, 0.1);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.noscroll { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { color: var(--muted); text-align: center; padding: 28px 0; }
.error { color: var(--danger); }
.note.error { color: var(--danger); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 248, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 34px; width: auto; max-width: 120px; object-fit: contain; border-radius: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--maroon); font-family: var(--display); font-weight: 700; font-size: 20px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--maroon); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 18px; font: 600 15px var(--sans); cursor: pointer;
  transition: background .15s, transform .15s;
}
.cart-btn:hover { background: var(--maroon-dark); }
.cart-btn:active { transform: scale(0.97); }
.count {
  background: var(--saffron); color: #2b1d14; border-radius: 999px;
  min-width: 22px; height: 22px; padding: 0 6px; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(232, 137, 12, 0.55), transparent 60%),
    radial-gradient(700px 360px at 0% 110%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(135deg, var(--maroon-dark), var(--maroon) 60%, #a14a1c);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.08;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 22px 22px;
}
.hero-inner { position: relative; z-index: 1; padding: 72px 0 56px; }
.hero-inner > * { max-width: 760px; }
.eyebrow { letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; font-weight: 600; color: var(--saffron-soft); margin: 0 0 12px; }
.hero h1 { font-size: clamp(36px, 7vw, 64px); }
.lead { font-size: clamp(17px, 2.6vw, 21px); color: #fbe5cf; margin: 14px 0 28px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #fbe5cf; font-size: 14px; }
.trust li::before { content: "\2713"; color: var(--saffron); font-weight: 700; margin-right: 8px; }
.trust strong { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent; border-radius: 12px; padding: 10px 18px;
  font: 600 15px var(--sans); cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: scale(0.98); }
.btn.big { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--saffron); color: #2b1d14; }
.btn.primary:hover { background: #f59a1f; }
.btn.primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.sheet .btn.ghost { color: var(--ink); border-color: var(--line); }
.btn.danger { background: #fff; color: var(--danger); border-color: #f0c4c0; }
.btn.wa { background: var(--green); color: #fff; }
.btn.wa:hover { background: #17934c; }
.link { background: none; border: 0; padding: 0; font: 600 13px var(--sans); color: var(--maroon); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link.danger { color: var(--danger); }
.icon { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 6px; }
:focus-visible { outline: 3px solid rgba(232, 137, 12, 0.7); outline-offset: 2px; }

/* ---------- shop ---------- */
.shop { padding: 56px 0 24px; }
.shop-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.shop-head h2 { font-size: clamp(26px, 4vw, 34px); color: var(--maroon); }
.search { flex: 1 1 260px; max-width: 360px; }
.search input {
  width: 100%; padding: 12px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font: 500 15px var(--sans);
}
.search input:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(232, 137, 12, 0.18); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: 600 14px var(--sans); transition: all .15s;
}
.chip:hover { border-color: var(--saffron); }
.chip.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.chip.small { padding: 6px 12px; font-size: 13px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.out { opacity: 0.7; }
.thumb { aspect-ratio: 4 / 3; background: var(--saffron-soft); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  font: 700 56px var(--display); color: rgba(123, 45, 18, 0.35);
  background: linear-gradient(135deg, #fdebd0, #f8d4a4);
}
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 18px; }
.bn { color: var(--muted); font-size: 14px; }
.price { margin: 6px 0 10px; color: var(--maroon); }
.price strong { font-size: 18px; }
.price span { color: var(--muted); font-size: 14px; }
.card .btn.add { margin-top: auto; width: 100%; background: var(--saffron-soft); color: var(--maroon-dark); }
.card .btn.add:hover { background: var(--saffron); color: #2b1d14; }
.badge { margin-top: auto; text-align: center; padding: 10px; border-radius: 12px; background: #f1e9e0; color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---------- how it works ---------- */
.how { padding: 48px 0 64px; }
.how h2 { font-size: clamp(26px, 4vw, 34px); color: var(--maroon); margin-bottom: 22px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps span {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--maroon); color: #fff; font-weight: 700;
}
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.footer { background: var(--maroon-dark); color: #f3d9c0; padding: 26px 0; font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.footer strong { color: #fff; font-family: var(--display); font-size: 18px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; }
.backdrop { position: absolute; inset: 0; background: rgba(30, 14, 6, 0.55); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }

#qty-modal { align-items: flex-end; justify-content: center; }
.sheet {
  position: relative; background: #fff; width: min(440px, 100%);
  border-radius: 22px 22px 0 0; padding: 22px 20px 20px; animation: rise .22s ease-out;
}
@media (min-width: 640px) { #qty-modal { align-items: center; } .sheet { border-radius: 22px; } }
.sheet h3 { font-size: 22px; color: var(--maroon); }
.sheet .muted { margin: 4px 0 14px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stepper { display: flex; align-items: stretch; gap: 8px; }
.stepper button {
  width: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font-size: 24px; cursor: pointer; color: var(--maroon);
}
.stepper button:hover { border-color: var(--saffron); }
.stepper input {
  flex: 1; min-width: 0; text-align: center; padding: 12px; border-radius: 12px;
  border: 1.5px solid var(--line); font: 700 22px var(--sans);
}
.stepper input:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(232, 137, 12, 0.18); }
.preview { text-align: center; font-weight: 600; color: var(--maroon); margin: 14px 0; min-height: 24px; }
.sheet-actions { display: flex; gap: 8px; }
.sheet-actions .primary { flex: 1; }

#cart-drawer { justify-content: flex-end; }
.drawer {
  position: relative; background: var(--cream); width: min(440px, 100%); height: 100%;
  display: flex; flex-direction: column; animation: slide .22s ease-out;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-head h3 { font-size: 22px; color: var(--maroon); }
.drawer-body { overflow-y: auto; padding: 8px 20px 28px; flex: 1; }

.line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-name { font-weight: 600; }
.line-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.line-side { text-align: right; }
.line-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 4px; }

.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 20px; padding: 16px 0 4px; }
.total-row strong { color: var(--maroon); font-size: 24px; }
#checkout { padding-top: 4px; }
.field { margin: 14px 0 0; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.field input:not([type="radio"]), .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  font: 500 16px var(--sans); background: #fff; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(232, 137, 12, 0.18); }
.radio { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; font-weight: 500; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--maroon); background: var(--saffron-soft); }
.radio input { accent-color: var(--maroon); }
#form-error { min-height: 22px; margin: 12px 0 8px; font-weight: 600; font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80;
  max-width: min(520px, calc(100% - 32px)); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow);
  animation: rise .22s ease-out; pointer-events: none;
}

@media (max-width: 520px) {
  .hero-inner { padding: 52px 0 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card h3 { font-size: 16px; }
  .card-body { padding: 10px 10px 12px; }
  .price strong { font-size: 16px; }
  .ph { font-size: 40px; }
  .brand { font-size: 17px; }
}

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

/* photo gallery */
.thumb { position: relative; }
.thumb.zoom { cursor: zoom-in; }
.photo-count { position: absolute; right: 8px; bottom: 8px; background: rgba(30, 14, 6, 0.7); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.gal { position: relative; margin: auto; width: min(92vw, 640px); max-height: 92vh; background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: fade .2s; }
.gal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--maroon); }
.gal-main { position: relative; display: flex; align-items: center; justify-content: center; background: var(--saffron-soft); border-radius: 12px; min-height: 0; }
.gal-main img { max-width: 100%; max-height: 62vh; object-fit: contain; border-radius: 12px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.9); color: var(--maroon); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25); }
#gal-prev { left: 8px; } #gal-next { right: 8px; }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gal-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; opacity: 0.7; }
.gal-thumbs img.on { border-color: var(--maroon); opacity: 1; }

/* UPI payment */
.pay { padding: 8px 0 56px; }
.pay-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--saffron-soft); border-radius: 20px; padding: 24px; }
.pay h2 { font-size: clamp(22px, 3.5vw, 30px); color: var(--maroon); margin-bottom: 8px; }
.pay p { margin: 6px 0; max-width: 46ch; }
.upi-qr { width: 180px; height: 180px; object-fit: contain; background: #fff; border-radius: 14px; padding: 8px; }
.bank { margin: 12px 0; background: #fff; border-radius: 14px; padding: 12px 16px; max-width: 420px; }
.bank h3 { font-size: 16px; color: var(--maroon); margin-bottom: 6px; }
.bank-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 4px 0; font-size: 14px; }
.bank-row span { color: var(--muted); min-width: 108px; }
.bank-row strong { word-break: break-all; }
.desc { margin: 4px 0 8px; font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gal-desc { font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-y: auto; max-height: 20vh; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
