/* Srinikesh Fireworks: shop pages (collection, category, estimate, privacy). Calm, charcoal, fixed gold accent. */
.page-shop { --bg: #0b0b0d; --accent: var(--gold); }
.page-shop main { padding-top: 108px; min-height: 70vh; }
.page-head { padding: 28px 0 28px; }
.page-head h1 { font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -.045em; font-weight: 700; margin-bottom: 14px; text-wrap: balance; }
html:lang(ta) .page-head h1 { font-size: clamp(32px, 5vw, 64px); line-height: 1.35; letter-spacing: 0; }
.head-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.section-title { font-size: 22px; letter-spacing: -.02em; margin: 8px 0 20px; }
.js .all-products .section-title { display: none; }
.deal { margin-top: 14px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.deal strong { color: var(--gold); font-weight: 600; }
.quick { margin-bottom: 64px; }
.filtering #quick { display: none; }
.min-note { font-size: 14px; color: var(--gold); margin: 0 0 12px; }
.net { font: 600 11px/1 var(--sans); padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(245, 196, 81, .5); color: var(--gold); letter-spacing: .02em; }

/* ---------- filters */
.filters { display: grid; gap: 16px; padding-bottom: 28px; }
.search input, .tool select { width: 100%; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); font-size: 16px; }
.search input::placeholder { color: var(--dim); }
.search input:focus-visible, .tool select:focus-visible, .field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.filters .search { max-width: 520px; }
.filter { display: grid; gap: 6px; min-width: 0; }
.filter-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
html:lang(ta) .filter-label { letter-spacing: 0; font-size: 13px; }
.filter-status { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.filter-status .link { min-height: 36px; }
.occ-note { color: var(--gold); font-weight: 500; }
.js:not(.filtering) .all-products { display: none; }
.filtering #tiles { display: none; }
.none { padding: 40px 0; color: var(--muted); }

/* ---------- product grid + card */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 22px; }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; cursor: pointer; }
.no-js .card { cursor: default; }
.card .slot { transition: border-color .5s var(--ease); }
.card:hover .slot { border-color: rgba(255, 255, 255, .3); }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 12px/1.4 var(--mono); color: var(--dim); }
.unit { padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; color: var(--muted); }
.card-name { font-size: 17px; line-height: 1.25; letter-spacing: -.015em; font-weight: 600; }
.card-open { text-align: left; font: inherit; letter-spacing: inherit; }
.card-open:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.name-ta { font-size: 15px; color: var(--muted); line-height: 1.6; }
.card-note { font-size: 13px; color: var(--dim); line-height: 1.35; }
.rates { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; align-items: end; margin-top: 4px; font-variant-numeric: tabular-nums; }
.rate { display: flex; align-items: baseline; gap: 6px; grid-column: 1; flex-wrap: wrap; }
.rate-label { font-size: 12px; color: var(--dim); }
.rate-market s { color: var(--dim); font-size: 14px; }
.rate-actual strong { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.save { grid-column: 2; grid-row: 1 / span 2; align-self: end; font: 600 12px/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: rgba(245, 196, 81, .14); color: var(--gold); white-space: nowrap; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.btn-add { min-height: 40px; padding: 8px 18px; background: var(--text); color: #000; flex: 1; min-width: 84px; }
.btn-add:hover { background: #fff; }
.btn-add.is-added { background: var(--gold); }
.btn-primary.btn-add { background: var(--gold); }
.enquiry { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; align-self: flex-start; padding: 6px 0; }
.enquiry:hover { color: var(--text); }
.no-js .card-actions { display: none; }

/* ---------- category page */
.crumbs { font-size: 13px; color: var(--dim); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--dim); }
.crumbs a { color: var(--muted); padding: 6px 0; display: inline-block; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.cat-head { padding-top: 14px; }
.cat-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.subnav { position: sticky; top: 76px; z-index: 40; margin: 28px 0 8px; transition: top .7s var(--ease); pointer-events: none; }
.nav-hidden .subnav { top: 10px; }
.subnav-inner { pointer-events: auto; position: relative; display: flex; gap: 2px; width: max-content; max-width: calc(100% - 24px); margin-inline: auto; padding: 4px; border-radius: 999px; background: rgba(28, 28, 31, .82); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); border: 1px solid rgba(255, 255, 255, .1); overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .4s var(--ease); }
.subnav a:hover, .subnav a.is-active { color: var(--text); }
.subnav .n { font: 11px/1 var(--mono); color: var(--muted); }
.no-js .subnav a.is-active { background: rgba(255, 255, 255, .16); }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; padding: 22px 0 26px; }
.tool-count { font: 13px/1.4 var(--mono); color: var(--muted); }
html:lang(ta) .tool-count { font-family: var(--sans); font-size: 14px; }
.tools { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; }
.tool { display: grid; gap: 4px; font-size: 12px; color: var(--dim); min-width: 0; }
.tool select { min-height: 42px; padding: 8px 14px; font-size: 14px; background-color: #1c1c1f; }
.tool.search { width: 220px; }
.tool.search input { min-height: 42px; font-size: 15px; }
.tool-range { width: 220px; }
.tool-range output { color: var(--text); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 42px; margin: 0; accent-color: var(--gold); background: none; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 88px; padding-top: 28px; border-top: 1px solid var(--line); }
.pn { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 6px 0; }
.pn-next { justify-content: flex-end; text-align: right; }
.pn-text { min-width: 0; }
.pn-dir { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
html:lang(ta) .pn-dir { letter-spacing: 0; }
.pn-name { display: block; font-size: clamp(17px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
html:lang(ta) .pn-name { letter-spacing: 0; line-height: 1.5; font-size: 16px; }
.pn:hover .pn-name { color: var(--gold); }

/* ---------- quick view */
.qv .drawer-head h2 { font-size: 13px; }
.qv-main { display: grid; gap: 8px; padding-bottom: 26px; }
.qv-main .slot { margin-bottom: 8px; cursor: default; }
.qv-name { font-size: 28px; line-height: 1.12; letter-spacing: -.03em; font-weight: 700; }
.qv-name:focus { outline: none; }
.qv-main .rate-actual strong { font-size: 34px; }
.qv-main .card-actions { padding-top: 12px; }
.also { display: grid; margin-top: 8px; }
.also-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; text-align: left; border-bottom: 1px solid var(--line); }
.also li:last-child .also-item { border-bottom: 0; }
.also-text { display: grid; gap: 2px; min-width: 0; }
.also-name { font-weight: 600; line-height: 1.25; }
.also-item:hover .also-name { text-decoration: underline; text-underline-offset: 3px; }
.also-price { font-variant-numeric: tabular-nums; display: flex; gap: 8px; align-items: baseline; }
.also-price s { color: var(--dim); font-size: 13px; }

/* ---------- the Tour */
.tour { position: fixed; inset: 0; z-index: 130; display: grid; grid-template-rows: auto 1fr auto; background: #0b0b0c; opacity: 0; transition: opacity .5s var(--ease); }
.tour.is-open { opacity: 1; }
.tour-head { display: flex; align-items: center; gap: 16px; padding: 12px 12px 6px 24px; }
.tour-label { margin-left: auto; font-size: 12px; color: var(--dim); }
html:lang(ta) .tour-label { font-family: var(--sans); }
.tour-stage { position: relative; overflow: hidden; }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 22px; padding: 12px 0 8px; overflow-y: auto; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.scene.from-right { transform: translateX(8%); opacity: 0; }
.scene.from-left { transform: translateX(-8%); opacity: 0; }
.scene.to-left { transform: translateX(-8%); opacity: 0; pointer-events: none; }
.scene.to-right { transform: translateX(8%); opacity: 0; pointer-events: none; }
.scene-head { flex: none; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: center; padding-inline: clamp(20px, 5vw, 72px); }
.scene-text { display: grid; gap: 8px; justify-items: start; }
.scene-title { font-size: clamp(34px, 5.4vw, 76px); line-height: 1; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
.scene-title:focus { outline: none; }
html:lang(ta) .scene-title { font-size: clamp(26px, 3.6vw, 48px); line-height: 1.35; letter-spacing: 0; }
.scene-count { font-size: 12px; color: var(--dim); }
html:lang(ta) .scene-count { font-family: var(--sans); font-size: 13px; }
.scene-desc { color: var(--muted); max-width: 56ch; }
.tour-row { flex: none; display: flex; gap: 18px; overflow-x: auto; padding: 4px clamp(20px, 5vw, 72px) 18px; scroll-padding-inline: clamp(20px, 5vw, 72px); scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.card-compact { flex: none; width: 216px; scroll-snap-align: start; }
.card-compact .card-name { font-size: 15px; }
.card-compact .rate-actual strong { font-size: 20px; }
.scene-summary { align-items: center; justify-content: center; text-align: center; gap: 14px; padding-inline: 20px; }
.scene-total { display: grid; gap: 2px; }
.scene-total strong { font-size: clamp(48px, 9vw, 112px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.scene-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; margin-top: 16px; }
.tour-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); }
.tour-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.tour-dots button { position: relative; width: 24px; height: 24px; display: grid; place-items: center; }
.tour-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .28); transition: background-color .4s var(--ease), transform .4s var(--ease); }
.tour-dots button[aria-current]::before { background: var(--gold); transform: scale(1.5); }

/* ---------- estimate */
.est-notice { color: var(--text); border-left: 2px solid var(--gold); padding-left: 16px; }
.est-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 12px; }
.est-cols h2 { font-size: 26px; letter-spacing: -.025em; margin-bottom: 14px; }
html:lang(ta) .est-cols h2 { letter-spacing: 0; font-size: 21px; }
.est-summary .totals { padding: 8px 0 4px; }
.row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 14px; }
.row .link { min-height: 36px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--muted); }
.field .opt { color: var(--dim); font-weight: 400; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); font-size: 16px; }
.field textarea { resize: vertical; line-height: 1.45; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--red); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background-color: #1c1c1f; font-size: 16px; }
.field.is-bad select { border-color: var(--red); }
.ok-contact { color: var(--text); font-size: 19px; font-weight: 600; margin-top: 6px; }
.ok-numbers { display: grid; gap: 10px; margin: 4px 0 10px; }
.ok-numbers li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ok-numbers .mono { font-size: 22px; min-width: 190px; }
.hint { font-size: 13px; color: var(--dim); }
.hint a { text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.err { font-size: 14px; color: #ff8d86; }
.counter { font-size: 12px; color: var(--dim); text-align: right; }
.radios { display: grid; gap: 6px; }
.radios legend { margin-bottom: 6px; }
.radios label, .consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--text); padding: 8px 0; cursor: pointer; }
.radios input, .consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--gold); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send-title { font-size: 18px; margin: 26px 0 12px; }
.send { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.send .btn { padding-inline: 12px; }
.send.is-failed { grid-template-columns: 1fr 1fr; }
.send.is-failed [data-send="email"] { grid-column: 1 / -1; order: 5; }
.send-fail { border: 1px solid rgba(255, 90, 82, .5); background: rgba(255, 90, 82, .08); border-radius: 14px; padding: 14px 16px; margin: 18px 0 0; }
.send-fail h3 { font-size: 17px; margin-bottom: 4px; }
.est-success { padding: 8px 0 40px; display: grid; gap: 12px; max-width: 720px; }
.est-success h2 { font-size: clamp(36px, 6vw, 72px); letter-spacing: -.04em; line-height: 1; }
html:lang(ta) .est-success h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.35; letter-spacing: 0; }
.est-success:focus { outline: none; }
.ref { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; color: var(--muted); }
.ref strong { font-size: 24px; color: var(--gold); }

/* ---------- prose (privacy, 404) */
.prose { max-width: 720px; padding-top: 28px; display: grid; gap: 14px; }
.prose h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -.045em; }
html:lang(ta) .prose h1 { font-size: clamp(32px, 5vw, 60px); line-height: 1.35; letter-spacing: 0; }
.prose h2 { font-size: 20px; letter-spacing: -.01em; margin-top: 18px; }
.prose p { color: var(--muted); }
.prose p:last-child { margin-top: 18px; }

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .page-shop main { padding-top: 88px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 14px; }
  .card-name { font-size: 15px; }
  .rate-actual strong { font-size: 21px; }
  .rates { grid-template-columns: 1fr; }
  .save { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .card-actions .stepper { width: 100%; grid-template-columns: 40px 1fr 40px; }
  .subnav { top: 72px; }
  .toolbar { align-items: stretch; }
  .tools { width: 100%; }
  .tool.search, .tool-range { width: 100%; }
  .tool:first-child { width: 100%; }
  .prevnext { grid-template-columns: 1fr; margin-top: 64px; }
  .pn-next { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
  .est-cols { grid-template-columns: 1fr; gap: 44px; }
  .send, .send.is-failed { grid-template-columns: 1fr; }
  .send.is-failed [data-send="email"] { grid-column: auto; }
  .scene-head { grid-template-columns: 1fr; gap: 14px; }
  .scene-head .slot { aspect-ratio: 21 / 8; }
  .scene-head .slot .slot-cap { display: none; }
  .card-compact { width: 178px; }
  .tour-foot { padding-inline: 12px; gap: 6px; }
  .tour-foot .btn { padding-inline: 14px; min-height: 40px; }
  .tour-dots button { width: 11px; height: 24px; }
  .tour-dots button::before { width: 5px; height: 5px; }
  .tour-head { padding-left: 16px; }
}
.est-success { max-width: none; }
.est-success > * { max-width: 760px; }
@media (max-width: 820px) {
  .field-pair { grid-template-columns: 1fr; }
  .ok-numbers .mono { min-width: 0; font-size: 18px; width: 100%; }
  .ok-numbers li { margin-bottom: 8px; }
}

.celebrate { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; }

/* ---------- a product that is in the estimate: gold quantity box and its line total */
.card-line { display: none; flex: 1; min-width: 84px; text-align: right; font-weight: 700; font-size: 17px; color: var(--gold); font-variant-numeric: tabular-nums; }
.in-cart .card-line { display: block; }
.in-cart [data-add] { display: none; }
.in-cart .stepper { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.in-cart .stepper input { color: var(--gold); }
.card.in-cart .slot { border-color: rgba(245, 196, 81, .55); }

/* ---------- running total at the middle right of the product pages */
.tally { position: fixed; right: 0; top: 50%; z-index: 55; transform: translateY(-50%); display: grid; gap: 8px; padding: 14px 16px 14px 18px; border-radius: 18px 0 0 18px; background: rgba(24, 24, 27, .9); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border: 1px solid rgba(245, 196, 81, .5); border-right: 0; color: var(--text); }
.tally:hover { border-color: var(--gold); }
.tally-row { display: grid; gap: 1px; }
.tally-k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html:lang(ta) .tally-k { letter-spacing: 0; font-size: 12px; text-transform: none; }
.tally-v { font-size: 20px; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tally-row:first-child .tally-v { color: var(--gold); font-size: 22px; }
@media (min-width: 821px) { .page-shop .grid, .page-shop .tiles { padding-right: 0; } }
@media (max-width: 820px) {
  .card-line { text-align: left; width: 100%; }
  .tally { padding: 9px 10px 9px 12px; gap: 5px; border-radius: 14px 0 0 14px; }
  .tally-v { font-size: 15px; }
  .tally-row:first-child .tally-v { font-size: 16px; }
  .tally-k { font-size: 9px; }
}
