/* Digital Madhav Store: the show's navy world (palette "Amdavad Suryoday"), Rozha One + Hanken Grotesk.
   Saffron only as discs, lines and small accents; no purple, red, green or pink. */
:root {
  --navy: #0f1528; --surface: #171d33; --hair: #263252; --ink: #f3f6fb; --rich: #dce3f0; --muted: #98a4c2;
  --royal: #2547e8; --sky: #5b84ff; --saffron: #e96a28; --outline: #0b1020; --paper: #eef1f7;
  --display: "Rozha One", "Hind", Georgia, serif;
  --sans: "Hanken Grotesk", "Hind", system-ui, sans-serif;
  --mono: "Spline Sans Mono", "Hind", ui-monospace, monospace;
  --r: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
html[lang="hi"] body { font-size: 18px; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px); background: rgba(15, 21, 40, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .sun, .foot .sun { width: 40px; height: 23px; }
.brand .word { font-family: var(--display); font-size: 24px; line-height: 1; }
.brand .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--hair); border-radius: 6px; padding: 3px 7px; }
.lang { display: flex; border: 1px solid var(--hair); border-radius: 999px; padding: 3px; }
.lang button { font: 600 14px var(--sans); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--royal); color: var(--ink); }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 24px; max-width: 1180px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px) 0; }
.strap { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; color: var(--rich);
  border: 1px solid var(--hair); background: var(--surface); border-radius: 8px; padding: 8px 14px 8px 10px; }
.stripe { width: 4px; height: 18px; border-radius: 2px; background: var(--saffron); }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 84px); line-height: 1.05; margin: 0 0 18px; }
html[lang="hi"] h1 { line-height: 1.3; }
html[lang="hi"] .strap, html[lang="hi"] .brand .tag { font-family: var(--sans); letter-spacing: 0; font-weight: 600; }
.lede { color: var(--rich); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: clamp(32px, 6vw, 72px); }
.hero-art { position: relative; justify-self: center; width: min(100%, 460px); }
.hero-art img { position: relative; z-index: 1; width: 100%; height: auto; }
.hero-sun { position: absolute; left: 50%; bottom: 0; width: 120%; aspect-ratio: 2 / 1; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: var(--surface); border: 6px solid var(--saffron); border-bottom: 0; }
.hero-line { position: absolute; z-index: 2; left: -12%; right: -12%; bottom: -4px; height: 8px; border-radius: 4px; background: var(--rich); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; font: 700 15px var(--sans);
  text-decoration: none; border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--royal); color: var(--ink); }
.btn.ghost { border-color: var(--hair); color: var(--ink); }
.btn.in { background: var(--saffron); color: var(--outline); }
.btn.world { background: var(--ink); color: var(--navy); }
.btn[aria-disabled="true"] { background: var(--surface); color: var(--muted); border-color: var(--hair); pointer-events: none; }

/* ---- sections ---- */
.block { max-width: 1180px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 48px) 8px; scroll-margin-top: 70px; }
.block > h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.25; margin: 0 0 20px; }
html[lang="hi"] .block > h2 { line-height: 1.4; }
.hero + .block { border-top: 8px solid var(--rich); margin-top: 0; }

.shelves { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shelf { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 10px 12px 12px; font: inherit; }
.shelf .thumb { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--navy); overflow: hidden; margin-bottom: 6px; }
.shelf .thumb img { max-width: 86%; max-height: 86%; object-fit: contain; }
.shelf .label { font-weight: 700; font-size: 15px; line-height: 1.3; }
.shelf .count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
html[lang="hi"] .shelf .count { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 13px; }
.shelf[aria-pressed="true"] { border-color: var(--saffron); box-shadow: inset 0 -4px 0 var(--saffron); }

.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.who-card { display: flex; align-items: flex-end; gap: 14px; text-align: left; cursor: pointer; color: var(--ink); font: inherit;
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 16px 16px 0; overflow: hidden; }
.who-card img { width: 34%; max-width: 130px; flex: none; }
.who-text { display: flex; flex-direction: column; gap: 6px; padding-bottom: 18px; }
.who-text strong { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.25; }
.who-text span { color: var(--rich); font-size: 14.5px; }
.who-card.genz { box-shadow: inset 0 -6px 0 var(--sky); }
.who-card.alpha { box-shadow: inset 0 -6px 0 var(--saffron); }
.who-card.family { box-shadow: inset 0 -6px 0 var(--royal); }
.who-card[aria-pressed="true"] { border-color: var(--rich); }

.life { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; }
.life figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.life img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.life .wide img { aspect-ratio: auto; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--hair); padding-bottom: 12px; }
.tabs button { font: 700 16px var(--sans); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--royal); color: var(--ink); }
.tab-lede { color: var(--rich); margin: 14px 0 6px; }
.episodes { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0 12px; scrollbar-width: thin; }
.ep-chip { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer; color: var(--ink); font: inherit;
  background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; padding: 8px 14px; min-width: 120px; }
.ep-chip[aria-pressed="true"] { border-color: var(--saffron); box-shadow: inset 0 -3px 0 var(--saffron); }
.ep-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--saffron); text-transform: uppercase; }
html[lang="hi"] .ep-no { font-family: var(--sans); letter-spacing: 0; font-weight: 700; font-size: 13px; }
.ep-title { font-weight: 600; font-size: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.pill { font: 600 13px var(--sans); color: var(--navy); background: var(--rich); border: 0; border-radius: 999px; padding: 7px 13px; cursor: pointer; }
.empty { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
.card[hidden] { display: none; }
.tile { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 8%; background: var(--royal); }
.tile.light { background: var(--paper); }
.tile.navy { background: var(--navy); }
.tile.wide { padding: 4%; }
.tile.tall { padding: 6% 30%; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--outline); background: var(--saffron); border-radius: 6px; padding: 3px 7px; }
.badge[hidden] { display: none; }
.tile img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(4, 7, 18, 0.25)); }
.body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.25; margin: 0; }
.blurb { margin: 0; color: var(--rich); font-size: 15px; }
.products { margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
html[lang="hi"] .products { font-family: var(--sans); letter-spacing: 0; font-size: 14px; text-transform: none; }
.opts { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 2px; }
.tones { display: flex; gap: 8px; }
.tones button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--hair); cursor: pointer; padding: 0; }
.tones button[data-tone="dark"] { background: var(--royal); }
.tones button[data-tone="light"] { background: var(--paper); }
.tones button[aria-pressed="true"] { border-color: var(--saffron); box-shadow: 0 0 0 2px var(--navy) inset; }
.langs { display: flex; gap: 4px; }
.langs button { font: 600 12px var(--sans); color: var(--muted); background: none; border: 1px solid var(--hair); border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.langs button[aria-pressed="true"] { color: var(--ink); border-color: var(--sky); }
.buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 8px; }
.buy .btn { min-height: 44px; padding: 8px 10px; font-size: 14px; }

/* ---- how ---- */
.how { margin-top: 48px; border-top: 1px solid var(--hair); }
.how h2 { font-family: var(--display); font-weight: 400; font-size: 36px; margin: 0 0 16px; }
.how ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; color: var(--rich); }
.how strong { color: var(--ink); }
.fine { color: var(--muted); font-size: 14px; margin: 18px 0 0; }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; max-width: 1180px; margin: 40px auto 0; padding: 28px clamp(16px, 4vw, 48px) 48px; border-top: 8px solid var(--rich); color: var(--muted); }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; }
.foot a { color: var(--rich); font-size: 15px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { width: min(80%, 340px); }
  .cta { padding-bottom: 8px; }
  .who { grid-template-columns: 1fr; }
  .life { grid-template-columns: 1fr 1fr; }
  .life .wide { grid-column: 1 / -1; }
  .brand .word { font-size: 20px; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---- shop bar: search + product strip (sticky under the header) ---- */
.shopbar { position: sticky; top: 61px; z-index: 9; background: rgba(15, 21, 40, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair);
  padding: 10px clamp(16px, 4vw, 48px) 8px; }
.search { display: flex; align-items: center; gap: 10px; max-width: 1180px; margin: 0 auto 10px; background: var(--surface); border: 1px solid var(--hair);
  border-radius: 999px; padding: 0 16px; color: var(--muted); }
.search:focus-within { border-color: var(--sky); }
.search svg { width: 20px; height: 20px; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 500 16px var(--sans); padding: 12px 0; }
.search input::placeholder { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.strip { display: flex; gap: 10px; max-width: 1180px; margin: 0 auto; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 78px; cursor: pointer;
  background: none; border: 0; padding: 0; color: var(--rich); font: 600 12px var(--sans); }
.chip-photo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: #e8ecf3; border: 2px solid transparent; }
.chip-photo img { width: 100%; height: 100%; object-fit: cover; }
.chip-all { width: 30px; height: 15px; border-radius: 30px 30px 0 0; background: var(--saffron); box-shadow: 0 3px 0 var(--rich); }
.chip:has(.chip-all) .chip-photo { background: var(--surface); }
.chip[aria-pressed="true"] .chip-photo { border-color: var(--saffron); }
.chip[aria-pressed="true"] .chip-label { color: var(--ink); }
.chip-label { text-align: center; line-height: 1.2; }

/* ---- product cards: the photo is the product ---- */
.card .tile { padding: 0; background: #e8ecf3; }
.card .tile img { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none; }
.kind { margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--saffron); }
html[lang="hi"] .kind { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-weight: 700; font-size: 13.5px; }
.who-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; }
.who-label { color: var(--muted); font-size: 14px; }
.ep-chip.small { min-width: 0; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.result-count { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.more { display: flex; margin: 24px auto 0; }
.more[hidden] { display: none; }
@media (max-width: 760px) {
  .shopbar { top: 57px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .body { padding: 12px; }
  .card h3 { font-size: 19px; }
  .blurb { display: none; }
  .buy { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .brand .tag { display: none; }
  .top { gap: 8px; }
  .lang button { padding: 6px 11px; }
}

/* ---- filters + sort, in the search bar ---- */
.filters { display: flex; gap: 8px; max-width: 1180px; margin: 0 auto 10px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.filters::-webkit-scrollbar { display: none; }
.select { flex: none; display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--hair); border-radius: 999px; padding: 0 6px 0 14px; color: var(--muted); font: 600 12px var(--sans); }
.select[hidden] { display: none; }
.select select { appearance: none; -webkit-appearance: none; background: none; border: 0; color: var(--ink); font: 700 14px var(--sans); padding: 9px 22px 9px 2px; cursor: pointer; max-width: 230px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 11px) 52%, calc(100% - 6px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.select select option { color: #0f1528; }
.select:focus-within { border-color: var(--sky); }
.clear { flex: none; background: none; border: 0; color: var(--saffron); font: 700 13px var(--sans); cursor: pointer; padding: 8px 6px; }
.clear[hidden] { display: none; }
.shop-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.shop-head .result-count { margin: 0; }
.shop-head .active-filters { margin: 0; }
.tab-lede:empty { display: none; }

/* ---- footer: every Digital Madhav handle ---- */
.foot .socials { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-left: auto; }
.foot .socials a { color: var(--rich); font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 2px; }
.foot .socials a:hover { color: var(--ink); border-color: var(--saffron); }
@media (max-width: 760px) { .foot .socials { margin-left: 0; } }
