/* ===================================================================
   Bangali Sweets — Site stylesheet
   Direction A · Mithai Editorial
   =================================================================== */

:root {
  --bg: #f7f1e5;
  --bg-sub: #efe7d4;
  --paper: #fdfaf2;
  --ink: #1b1410;
  --ink-2: #5a4a3a;
  --ink-3: #8a7860;
  --rule: #e0d4ba;
  --rule-strong: #c9b890;
  --accent: #6b2727;
  --accent-ink: #fdfaf2;
  --gold: #b58838;
  --gold-ink: #3a2a10;
  --leaf: #2f4a2a;
  --berry: #8a2a3a;
  --danger: #b03a3a;
  --ok: #2f6a3a;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, sans-serif;
  --hindi: "Tiro Devanagari Hindi", "Hind", serif;
  --hindi-sans: "Hind", "Tiro Devanagari Hindi", serif;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(45,30,15,.06), 0 1px 1px rgba(45,30,15,.04);
  --shadow-md: 0 8px 24px -8px rgba(45,30,15,.18), 0 2px 6px rgba(45,30,15,.06);
  --header-h: 132px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

img { display: block; max-width: 100%; }

.disp { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.italic { font-style: italic; }
.hindi { font-family: var(--hindi); }
.hindi-sans { font-family: var(--hindi-sans); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.wrap-tight { max-width: 980px; margin: 0 auto; padding: 0 32px; }

/* ============================== HEADER ============================== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.bar-promo {
  background: var(--ink);
  color: #dac6a8;
  font-size: 12px;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.bar-promo .pr { display: flex; gap: 22px; }
.bar-promo a { opacity: .85; }
.bar-promo a:hover { opacity: 1; color: var(--gold); }

.bar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.logo .seal {
  width: 52px; height: 52px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 26px;
  flex: 0 0 auto;
}
.logo .nm {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.01em;
}
.logo .nm-hi {
  font-family: var(--hindi);
  font-size: 13px;
  color: var(--accent);
  margin-top: 3px;
}

.search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-size: 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--bg-sub);
  outline: none;
}
.search input:focus { border-color: var(--accent); background: var(--paper); }
.search .ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
}

.utils {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-2);
}
.utils a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.utils a:hover { color: var(--accent); }
.utils .cart-pill {
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.bar-nav {
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 32px;
  font-size: 13px;
  font-weight: 500;
  max-width: 1320px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.bar-nav::-webkit-scrollbar { display: none; }
.bar-nav a {
  color: var(--ink-2);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.bar-nav a:hover { color: var(--accent); }
.bar-nav a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.bar-nav .right { margin-left: auto; color: var(--ink-3); display: flex; gap: 22px; }

.mobile-toggle { display: none; }

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform .12s, background .12s;
}
.btn:hover { background: #531c1c; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover { background: var(--bg-sub); border-color: var(--accent); color: var(--accent); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #9b7330; }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ============================== CHIPS / TAGS ============================== */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: var(--bg-sub); color: var(--ink-2);
}
.chip-accent { background: var(--accent); color: var(--accent-ink); }
.chip-gold { background: var(--gold); color: var(--gold-ink); }
.chip-leaf { background: color-mix(in srgb, var(--leaf) 14%, transparent); color: var(--leaf); }
.chip-berry{ background: color-mix(in srgb, var(--berry) 14%, transparent); color: var(--berry); }

/* ============================== TILES / CARDS ============================== */
.tile {
  position: relative;
  background: var(--bg-sub);
  overflow: hidden;
  border-radius: var(--radius);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--rule-strong);
}
.product-card .img {
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
  background: var(--bg-sub);
}
.product-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.product-card:hover .img img { transform: scale(1.04); }
.product-card .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.product-card .hi { font-family: var(--hindi); font-size: 12px; color: var(--accent); }
.product-card .nm { font-family: var(--display); font-size: 18px; font-style: italic; margin: 2px 0 3px; line-height: 1.15; }
.product-card .meta { font-size: 11px; color: var(--ink-3); margin-bottom: 10px; }
.product-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-card .price { font-family: var(--display); font-size: 18px; }
.product-card .price .mrp { font-size: 12px; color: var(--ink-3); text-decoration: line-through; margin-left: 6px; }
.product-card .add {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
}
.product-card .add:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.product-card .tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-card .tag.gold { background: var(--gold); color: var(--gold-ink); }

/* ============================== FORMS ============================== */
.label {
  display: block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color .12s;
}
.input:focus { border-color: var(--accent); }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 12px; }
.field-row.cols-2 { grid-template-columns: 1fr 1fr; }

/* ============================== HEADINGS ============================== */
.h1 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.015em; margin: 0; }
.h2 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; margin: 0; }
.h3 { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.1; margin: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head a.more { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ============================== WARM GRADIENT BG ============================== */
.warm-grad {
  background:
    radial-gradient(900px 500px at 80% 10%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--bg);
}

/* ============================== FOOTER ============================== */
.site-footer {
  background: var(--ink);
  color: #dac6a8;
  padding: 56px 32px 24px;
  margin-top: 80px;
}
.site-footer .grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 600;
}
.site-footer a { display: block; font-size: 13px; margin-bottom: 8px; opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: var(--gold); }
.site-footer .nm { font-family: var(--display); font-size: 24px; color: var(--gold); }
.site-footer .nm-hi { font-family: var(--hindi); font-size: 13px; margin-top: 4px; }
.site-footer .blurb { font-size: 12px; line-height: 1.6; margin: 14px 0; opacity: 0.7; max-width: 280px; }
.site-footer .social { display: flex; gap: 10px; margin-top: 14px; }
.site-footer .social span {
  width: 32px; height: 32px;
  border: 1px solid #5a4a3a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.site-footer .social span:hover { color: var(--gold); border-color: var(--gold); }
.site-footer .legal {
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid #3a2a1a;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.55;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================== BREADCRUMB ============================== */
.crumb {
  font-size: 12px;
  color: var(--ink-3);
  padding: 18px 0;
  display: flex;
  gap: 8px;
}
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--rule-strong); }
.crumb .curr { color: var(--ink); font-weight: 500; }

/* ============================== ICON helpers ============================== */
.ico { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
.ico-sm { width: 14px; height: 14px; }
.ico-lg { width: 22px; height: 22px; }

/* ============================== UTILITIES ============================== */
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-36 { margin-bottom: 36px; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.text-c { text-align: center; }
.text-r { text-align: right; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }

/* ============================== TOAST ============================== */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  animation: toastIn .25s ease-out;
}
.toast .x { color: var(--gold); font-weight: 700; }
@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ============================== TABLE ============================== */
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-sub);
}
table.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
table.table tr:hover td { background: color-mix(in srgb, var(--bg) 50%, var(--paper)); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--gold); }
.dot-low { background: var(--danger); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 980px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .bar-promo .pr { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: auto; }
  .bar-promo { font-size: 11px; padding: 6px 16px; }
  .bar-main {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .logo .seal { width: 40px; height: 40px; font-size: 20px; }
  .logo .nm { font-size: 18px; }
  .logo .nm-hi { font-size: 11px; }
  .search {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
  .utils { gap: 14px; }
  .utils .lbl { display: none; }
  .utils .cart-pill { padding: 6px 10px; font-size: 12px; }
  .bar-nav { padding: 8px 16px; gap: 20px; }
  .bar-nav .right { display: none; }
  .wrap, .wrap-tight { padding: 0 16px; }
  .site-footer { padding: 40px 16px 18px; }
  .site-footer .grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
  .field-row.cols-2 { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .h1 { font-size: 44px; }
  .h2 { font-size: 28px; }
}
