/* ============================================================
   TheTuningChoice design system
   White, cream, shades of black. Montserrat. Premium, quiet.
   ============================================================ */

:root {
  --bg: #faf8f4;
  --bg-2: #f4f0e8;
  --surface: #ffffff;
  --ink: #14110c;
  --ink-2: #403a30;
  --muted: #847a6c;
  --line: #eae4d8;
  --line-2: #ddd5c5;
  --accent: #14110c;
  --gold: #b3945a;
  --on-ink: #f6f1e7;               /* text/icons sitting on an ink background */
  --header-glass: rgba(255, 255, 255, 0.82);
  --header-solid: rgba(255, 255, 255, 0.97);
  --radius: 16px;
  --shadow-1: 0 1px 2px rgba(20, 17, 12, 0.05), 0 4px 14px rgba(20, 17, 12, 0.05);
  --shadow-2: 0 2px 6px rgba(20, 17, 12, 0.07), 0 18px 44px rgba(20, 17, 12, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* dark mode: deep charcoal with a trace of warmth. Opt-in via the footer
   toggle; default (and fallback when JS/storage are unavailable) stays light. */
html[data-theme='dark'] {
  --bg: #1a1a1d;
  --bg-2: #1f2023;
  --surface: #252629;
  --ink: #e9e9e8;
  --ink-2: #c9c9c7;
  --muted: #9a9a9e;
  --line: #35363a;
  --line-2: #434449;
  --accent: #e9e9e8;
  --gold: #c9a76a;
  --on-ink: #171719;
  --header-glass: rgba(24, 25, 28, 0.82);
  --header-solid: rgba(24, 25, 28, 0.97);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.4), 0 18px 44px rgba(0, 0, 0, 0.55);
}

/* reduced hero gradient: the light-mode fade (cream -> dark brown) would
   swallow the title's lower half on a dark background, so dark mode fades
   late and only down to a warm mid-tone */
html[data-theme='dark'] .hero-h {
  background: linear-gradient(180deg, #f4f0e6 62%, #ab9f85);
  -webkit-background-clip: text; background-clip: text;
}

/* barely-there warm glow in dark mode */
html[data-theme='dark'] body {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(190, 195, 210, 0.04), transparent 60%),
    var(--bg);
}

* { box-sizing: border-box; }

/* custom scrollbar: slim, rounded, brand-toned (flips with dark mode) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 8px;
  border: 3px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-corner { background: var(--bg-2); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) var(--bg-2); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  /* sticky footer: short pages (empty /compare) keep the footer at the
     viewport bottom instead of riding up under the header */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(179, 148, 90, 0.07), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--on-ink); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
[hidden] { display: none !important; } /* .offer etc. use display:flex, which would beat the UA hidden rule */
button, input, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.banner {
  background: var(--ink);
  color: var(--on-ink);
  text-align: center;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* header */
.site-header {
  display: flex; align-items: flex-start; gap: 22px;
  padding: 9px 26px 12px;
  background: var(--header-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  flex-wrap: wrap;
}
/* mobile-only bar: wordmark + hamburger (the nav collapses under 760px) */
.hdr-bar, .nav-burger { display: none; }
.brand { display: flex; align-items: center; gap: 11px; transition: opacity 0.2s var(--ease); }
.brand:hover { opacity: 0.85; }
.brand-img { height: 42px; width: auto; display: block; }
.brand-mark {
  font-weight: 800; font-size: 22px; letter-spacing: -1px;
  background: var(--ink); color: var(--on-ink);
  border-radius: 11px; padding: 5px 10px;
}
.brand-c { color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.2px; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.2px; }
.hsearch { position: relative; flex: 1 1 260px; max-width: 440px; }
.hsearch input {
  width: 100%; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 15.5px; background: var(--bg); color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.hsearch input:focus {
  outline: none; border-color: var(--ink); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(20, 17, 12, 0.06);
}
.q-results {
  position: absolute; top: 112%; left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-2);
  overflow-y: auto; max-height: min(62vh, 560px);
  z-index: 60;
}
.q-results a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 15px; font-size: 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s var(--ease);
}
.q-results a:last-child { border-bottom: 0; }
.q-results a:hover { background: var(--bg-2); text-decoration: none; }
.q-results .qr-price { color: var(--muted); white-space: nowrap; }
.q-results .q-see-all {
  justify-content: center; font-weight: 700; font-size: 13px;
  color: var(--ink); background: var(--bg-2);
}
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 17.5px; font-weight: 600; margin-left: auto; margin-top: 4px; }
.nav-link { color: var(--ink-2); position: relative; padding: 2px 0; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--ink); transition: width 0.22s var(--ease);
}
.nav-link:hover { color: var(--ink); text-decoration: none; }
.nav-link:hover::after { width: 100%; }
/* the section you're in keeps the underline */
.nav-link.on { color: var(--ink); }
.nav-link.on::after { width: 100%; }

/* section head: page title left, search bar right (category pages) */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.section-head .h1 { margin: 4px 0 0; font-size: 34px; font-weight: 700; }
.section-head .hsearch { flex: 0 1 360px; }
.section-head .hsearch input { background: var(--surface); }
.h1-full { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; white-space: nowrap; }

/* category pages: title + search sit high, less top space */
.cat-section { margin-top: 14px; }
.crumbs { margin-top: 8px; }

.main { max-width: 1100px; margin: 0 auto; padding: 10px 26px 70px; position: relative; flex: 1 0 auto; width: 100%; }
.main > * { position: relative; z-index: 1; }
.section { margin: 36px 0; }
.h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; margin: 14px 0 10px; }
.h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin: 12px 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.lede { font-size: 17.5px; color: var(--ink-2); }

/* hero */
.hero { text-align: center; padding: 148px 0 10px; }
.hero-h {
  font-size: 46px; font-weight: 800; letter-spacing: -1.6px; line-height: 1.08; margin: 0 0 16px;
  background: linear-gradient(180deg, var(--ink) 55%, #4a4235);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); max-width: 640px; margin: 0 auto 56px; font-size: 29px; }
.hero-search { max-width: 540px; margin: 0 auto; position: relative; }
.hero-search input {
  width: 100%; padding: 16px 24px; font-size: 15.5px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero-search input:focus {
  outline: none;
  box-shadow: 0 0 0 5px rgba(20, 17, 12, 0.07), var(--shadow-2);
  transform: translateY(-1px);
}

/* tiles */
body.home .tiles { display: flex; flex-wrap: wrap; justify-content: center; }
/* totals line under the browse tiles: the hero tagline's voice, sized to sit under the grid */
.hero-sub.browse-count { font-size: 18px; margin: 18px auto 0; }
body.home .tile { flex: 0 0 auto; min-width: 158px; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 11px; }
.tile {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px;
  font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tile:hover {
  border-color: var(--ink); text-decoration: none;
  transform: translateY(-2px); box-shadow: var(--shadow-2);
}
.tile-n { color: var(--muted); font-weight: 500; font-size: 13.5px; }
/* buttons do not inherit text colour: without this the signature
   preset labels render in the browser's default black, invisible on
   the dark-mode surface */
button.tile { cursor: pointer; text-align: left; color: var(--ink); }

/* drops */
.drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 11px; }
.drop {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 15px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.drop:hover { border-color: var(--ink); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-2); }
.drop-pct {
  background: var(--ink); color: var(--on-ink);
  font-weight: 800; font-size: 13px;
  border-radius: 9px; padding: 6px 9px; white-space: nowrap;
}
.drop-name { flex: 1; font-weight: 600; font-size: 14px; min-width: 0; }
.drop-price { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* facts */
.facts-strip {
  display: flex; gap: 30px; flex-wrap: wrap; justify-content: center;
  color: var(--muted); font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.facts-strip strong { color: var(--ink); font-size: 17px; font-weight: 800; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 11px; margin: 16px 0; }
.fact {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 15px;
  display: flex; flex-direction: column; gap: 3px;
  box-shadow: var(--shadow-1);
}
.fact-k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.9px; color: var(--muted); font-weight: 700; }
.fact-v { font-size: 13px; font-weight: 600; }
.fact-d { font-size: 12px; color: var(--muted); }
.fact strong { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 15px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}
.card-img {
  height: 160px;
  background: linear-gradient(180deg, var(--bg-2), var(--surface));
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.card-img img { max-height: 100%; object-fit: contain; transition: transform 0.3s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.mono-tile {
  font-weight: 800; font-size: 28px; letter-spacing: -1px;
  color: var(--ink); background: var(--line);
  border-radius: 12px; padding: 14px 18px;
}
.mono-lg { font-size: 56px; padding: 36px 46px; }
.card-body { padding: 12px 14px 14px; }
.card-brand { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.card-name { font-weight: 600; font-size: 15.5px; margin: 3px 0 7px; line-height: 1.35; }
.card-meta { font-size: 14px; color: var(--muted); }
.card-meta strong { color: var(--ink); }
.card-meta .wl-count { color: var(--ink-2, var(--ink)); font-weight: 600; }

/* product */
.crumbs { font-size: 15px; color: var(--muted); margin-top: 18px; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 34px; margin: 18px 0; }
.p-media {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: sticky; top: 90px; align-self: start;
}
.p-img {
  width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); object-fit: contain;
  padding: 20px; box-shadow: var(--shadow-1);
  min-height: 300px;
}
.p-img .p-img-img {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--radius) - 4px); object-fit: contain;
}
.credit { font-size: 11.5px; color: var(--muted); text-align: center; }
.credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.credit a:hover { color: var(--ink); }
.p-info .h1 { margin-top: 2px; font-size: 27px; font-weight: 700; }

.offers { display: flex; flex-direction: column; gap: 10px; }
.offer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 18px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.offer:hover { box-shadow: var(--shadow-1); }
.offer-best { border: 2px solid var(--ink); }
.offer-oos { opacity: 0.78; }
/* Out of stock: classic gray price with a line struck through it. */
.oos-price { color: var(--muted); font-weight: 700; font-size: 15px; }
.oos-price s {
  text-decoration: line-through;
  text-decoration-color: #a83a2e;
  text-decoration-thickness: 2px;
}
.oos-tag {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1.5px solid var(--line);
  background: var(--bg-2, #efe9dc);
  color: var(--muted);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px;
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.oos-x { color: #a83a2e; font-weight: 900; }
.store-chip { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1 1 210px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.store-logo { height: 20px; width: auto; max-width: 96px; object-fit: contain; }
.store-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.best-tag {
  background: var(--ink); color: var(--on-ink);
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
  border-radius: 7px; padding: 4px 8px; white-space: nowrap;
}
/* gold variant: cheapest offer from an India-region store */
.best-tag.tag-india { background: var(--gold); color: #ffffff; }
.offer-price strong { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.offer-rating:empty { display: none; }
.mrp { color: var(--muted); font-size: 12.5px; margin-left: 8px; }
.orig { display: inline-block; margin-left: 8px; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.offer-note { font-size: 12.5px; color: var(--muted); }

.btn {
  display: inline-block;
  background: #3a3a3a; color: #f6f1e7;
  font-weight: 700; font-size: 13.5px;
  border: 0; border-radius: 999px;
  padding: 10px 20px; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), opacity 0.18s var(--ease);
  box-shadow: var(--shadow-1);
}
.btn:hover { background: #3a3a3a; transform: translateY(-1px); box-shadow: var(--shadow-2); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: #3a3a3a; border: 1.5px solid #3a3a3a; box-shadow: none; }
.btn-ghost:hover { background: #3a3a3a; color: #f6f1e7; }
html[data-theme='dark'] .btn-ghost { color: var(--ink-2); border-color: var(--ink-2); }
html[data-theme='dark'] .btn-ghost:hover { background: #3a3a3a; color: #f6f1e7; border-color: #3a3a3a; }
/* out-of-stock "View at store" — quieter than a buy button, still one click away */
.offers .btn-oos { background: transparent; color: var(--muted); border: 1.5px solid var(--line); box-shadow: none; }
.offers .btn-oos:hover { background: var(--muted); color: var(--bg); border-color: var(--muted); }
.buy-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; max-width: 660px; }

/* sparks */
.sparks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 13px; }
.spark-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 15px;
  box-shadow: var(--shadow-1);
}
.spark-head { font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.spark { width: 100%; height: auto; }

/* tables */
.tbl {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; font-size: 14px;
}
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); padding: 11px 15px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 15px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--bg-2); }
/* /compare: out-of-stock store cell — gray struck-through last price. */
.tbl .cell-oos { color: var(--muted); white-space: nowrap; }
.tbl .cell-oos s {
  text-decoration: line-through;
  text-decoration-color: #a83a2e;
  text-decoration-thickness: 2px;
}

/* legal + forms */
.legal { max-width: 780px; }
.legal h2 { margin-top: 30px; }
.admin-login form { display: flex; gap: 10px; max-width: 380px; }
.admin-login input, #bc-text, .aff-in {
  flex: 1; padding: 10px 14px; font: inherit; font-size: 13.5px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.admin-login input:focus, #bc-text:focus, .aff-in:focus { outline: none; border-color: var(--ink); }
#bc-form { display: flex; gap: 10px; max-width: 540px; }
.aff-in { width: 140px; flex: none; }

/* toolbar + pagination */
.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap; margin: 4px 0 18px;
}
.sortform { display: flex; align-items: center; gap: 9px; }
.sortform select {
  font-size: 13.5px; font-weight: 600;
  padding: 8px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.sortform select:hover { border-color: var(--line-2); }
.sortform select:focus { outline: none; border-color: var(--ink); }
.pager { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.pg {
  min-width: 38px; text-align: center;
  padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-1);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.pg:hover { border-color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.pg-cur { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pg-gap { color: var(--muted); padding: 8px 2px; }

/* policies */
.policies {
  margin-top: 16px;
  border-left: 3px solid var(--line-2);
  padding: 4px 0 4px 14px;
  display: flex; flex-direction: column; gap: 7px;
}

/* gallery */
.g-nav { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; }
.g-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink);
  font-size: 19px; line-height: 1; cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.g-btn:hover { background: var(--ink); color: var(--bg); transform: scale(1.06); }
.g-count { font-size: 12.5px; color: var(--muted); font-weight: 700; letter-spacing: 0.5px; }
.spark { width: 100%; height: auto; }
.orig { display: inline-block; margin-left: 8px; font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* lightbox */
.p-img.zoomable { cursor: zoom-in; }
#lightbox {
  position: fixed; inset: 0;
  background: rgba(16, 13, 9, 0.95);
  display: none; align-items: center; justify-content: center;
  z-index: 500; flex-direction: column; gap: 16px;
  animation: lbIn 0.2s var(--ease);
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 92vw; max-height: 80vh; object-fit: contain;
  background: #fff; padding: 16px; border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
#lightbox .lb-bar { display: flex; gap: 20px; align-items: center; }
#lightbox .lb-btn {
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--on-ink); color: var(--ink); font-size: 23px; font-weight: 700;
  transition: transform 0.15s var(--ease);
}
#lightbox .lb-btn:hover { transform: scale(1.08); }
#lightbox .lb-count { color: #f6f1e7; font-weight: 700; letter-spacing: 1px; }
#lightbox .lb-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; color: #f6f1e7; font-size: 38px; cursor: pointer; line-height: 1;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

/* sliders */
.sliders { display: flex; gap: 20px; flex-wrap: wrap; margin: 14px 0; }
.sliders label { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; }
.sliders input[type='range'] { accent-color: #3a3a3a; width: 170px; min-width: 0; }
/* stacked variant: one slider per row (home labs) */
.sliders.stack {
  flex-direction: column; gap: 12px; align-items: stretch;
  justify-content: flex-start;
  max-width: 480px; width: 100%;
  margin: 16px auto;
}
.sliders.stack[hidden] { display: none; }
.sliders.stack label { gap: 13px; }
.sliders.stack .sl-name { flex: 0 0 96px; text-align: left; }
.sliders.stack input[type='range'] { flex: 1 1 auto; width: auto; min-width: 120px; }
.sliders.stack label b { flex: 0 0 76px; min-width: 76px; text-align: left; font-variant-numeric: tabular-nums; }

/* store logos in chips */
.store-logo { height: 20px; width: auto; max-width: 96px; object-fit: contain; }

/* back link */
.btn-back {
  display: inline-block; margin: 12px 0 0;
  font-size: 15px; font-weight: 600;
  color: var(--muted);
  padding: 0;
}
.btn-back:hover { color: var(--ink); text-decoration: none; }

/* category filters: the form submits natively; JS only auto-submits */
.apply-btn { align-self: flex-end; padding: 8px 16px; font-size: 14.5px; }

/* footer: toggle | copyright | links, center column always centered */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 26px;
  text-align: left;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.foot-copy { justify-self: start; }
.foot-tag { justify-self: center; color: var(--muted); }
.foot-links { justify-self: end; display: flex; align-items: center; gap: 8px; }
.foot-sep { color: var(--line-2); }
.foot-links a { color: var(--ink-2); }
.theme-toggle {
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-2); background: none;
  border: 1.5px solid var(--line-2); border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); color: var(--ink); }
/* the toggle lives at the end of the header nav: pushed to the right edge
   of the nav's last line, level with Deals / Compare */
.nav .theme-toggle {
  align-self: center;
  font-size: 15px;
  font-weight: 200;            /* extra thin */
  border-width: 1px;
  padding: 4px 11px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .site-footer {
    grid-template-columns: 1fr; justify-items: center; text-align: center;
    gap: 6px; padding: 16px 14px; font-size: 13.5px;
  }
  .foot-links { justify-self: center; flex-wrap: wrap; }
}

/* youtube demo mini player (one embed, bottom-right) */
.yt-card {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  width: min(300px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-2);
}
.yt-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; font-size: 12px; font-weight: 600; color: var(--ink-2);
  text-align: left;
}
.yt-close {
  background: none; border: none; color: var(--muted);
  font-size: 16px; cursor: pointer; line-height: 1; padding: 2px 4px;
  flex: none;
}
.yt-close:hover { color: var(--ink); }
.yt-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* youtube search (test with any song) */
.yt-search { margin-top: 10px; text-align: left; }
.yt-search-label { display: block; margin-bottom: 6px; color: var(--muted); }
.yt-search-row { display: flex; gap: 8px; }
.yt-search-row input {
  flex: 1; min-width: 0; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px;
}
.yt-search-row input:focus { outline: none; border-color: var(--ink); }
.yt-results {
  margin-top: 8px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1);
}
.yt-result {
  display: flex; flex-direction: column; gap: 2px; width: 100%;
  padding: 10px 14px; text-align: left; cursor: pointer;
  background: none; border: none; border-bottom: 1px solid var(--line);
  color: var(--ink); font: inherit;
}
.yt-result:last-child { border-bottom: none; }
.yt-result:hover { background: var(--bg-2); }
.yt-result strong { font-size: 13px; font-weight: 600; line-height: 1.35; }
.yt-result span { font-size: 11.5px; color: var(--muted); }
.yt-empty { margin: 0; padding: 12px 14px; font-size: 13px; color: var(--muted); }

/* tune search: banner + match badges on category pages */
.tune-banner {
  background: var(--surface); border: 1px solid var(--gold);
  border-radius: 12px; padding: 12px 16px; margin: 0 auto 18px;
  max-width: 860px; font-size: 14.5px; color: var(--ink-2);
  box-shadow: var(--shadow-1);
}
.tune-banner strong { color: var(--ink); }
.match-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: #3a3a3a; color: #f6f1e7;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.3px;
  padding: 4px 9px; border-radius: 999px;
}
.card { position: relative; }

/* bullet-point explainers under each graph */
.point-list {
  list-style: none; margin: 18px auto 0; max-width: 780px;
  padding: 0; text-align: left;
  display: flex; flex-direction: column; gap: 9px;
}
.point-list li {
  position: relative; padding-left: 22px;
  color: var(--ink-2); font-size: 14.5px; line-height: 1.55;
}
.point-list li::before {
  content: ''; position: absolute; left: 3px; top: 0.5em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.point-list strong { color: var(--ink); }
.bench-main .graph-box { margin-bottom: 26px; }
span.bench-label.own-label { text-transform: none; letter-spacing: 0.2px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }

/* breathing room inside the player panel: dropdown / own-file / transport */
.bench-side .song-select { margin-bottom: 16px; }
.bench-side .own-label { display: block; margin-bottom: 8px; }
.bench-side input[type='file'] { margin-bottom: 16px; }
.bench-side .transport { margin-top: 2px; }

/* product page: larger reading type */
/* title sits a bit higher: tighter gap under the back link + breadcrumbs */
body.product-page .crumbs { margin-top: 8px; }
body.product-page .product { margin-top: 8px; }
body.product-page .card-brand { font-size: 16px; }
body.product-page .credit { font-size: 14px; }
body.product-page .listen-section p.small,
body.product-page .listen-section .small { font-size: 15px; }
body.product-page .policies p { font-size: 15px; line-height: 1.6; }
body.product-page .buy-note { font-size: 15.5px; max-width: 820px; }

/* gear note toast (first play) */

.btn.reset-btn { padding: 3px 10px; font-size: 11.5px; }

/* "just listen" YouTube row under each EQ demo row */
.listen-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px;
}
.listen-row .btn { padding: 6px 14px; font-size: 12.5px; }

/* tuning bench: graph on the left, player panel on the right */
.bench {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px;
  align-items: start; margin-top: 18px;
}
.bench-side {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 16px; display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 110px;
}
.bench-label {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.bench-side input[type='range'] { accent-color: #3a3a3a; width: 100%; }
.bench-block { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.bench-block:last-child { border-bottom: none; padding-bottom: 0; }
.song-select {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px;
}
.song-select:focus { outline: none; border-color: var(--ink); }
.own-file { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.transport { display: flex; gap: 8px; margin-top: 10px; }
.transport .btn { flex: 1; padding: 9px 8px; font-size: 13px; }
.ab-seg {
  display: flex; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden;
}
.ab-seg button {
  flex: 1; border: none; background: none; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 700; padding: 9px 6px; cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.ab-seg button.on { background: #3a3a3a; color: #f6f1e7; }
@media (max-width: 980px) {
  .bench { grid-template-columns: minmax(0, 1fr); }
  .bench-side { position: static; }
}

/* responsive */
@media (max-width: 760px) {
  .hero-h { font-size: 32px; }
  .hero { padding-top: 110px; }
  .hero-sub { font-size: 23px; }
  .hero-sub.browse-count { font-size: 14px; }
  .scroll-cue { width: 36px; height: 36px; margin-top: 26px; }
  .product { grid-template-columns: 1fr; }
  .p-media { max-width: 300px; position: static; }
  .offer .buy { width: 100%; text-align: center; margin-left: 0; }
  /* mobile header: sticky bar (wordmark + burger) over a dropdown nav */
  .site-header { display: block; position: sticky; padding: 0; }
  .hdr-bar {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 10px; padding: 10px 14px;
  }
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 4px;
    background: none; border: 1.5px solid var(--line-2); border-radius: 10px;
    padding: 10px 11px; cursor: pointer;
  }
  .nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink-2); border-radius: 2px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--header-solid); border-bottom: 1px solid var(--line);
    padding: 4px 0 10px;
    /* 18 links cannot fit a phone screen: the panel scrolls, the bar stays */
    max-height: calc(100dvh - 60px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav .nav-link { padding: 12px 18px; font-size: 16px; }
  /* the desktop underline spans the full-width panel row - on mobile the
     line follows the text length instead (hover + current section) */
  .nav .nav-link::after { display: none; }
  .nav .nav-link:hover, .nav .nav-link.on {
    text-decoration: underline; text-underline-offset: 4px;
  }
  .nav .wl-nav { margin-left: 0; margin-right: 0; align-self: auto; }
  .nav .theme-toggle { margin: 10px 18px 2px; align-self: flex-start; }
  .section-head .hsearch { flex: 1 1 100%; }
  .main { padding: 8px 18px 50px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.notify { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.notify input { padding: 9px 12px; font: inherit; font-size: 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.notify input:focus { outline: none; border-color: var(--ink); }

/* home: everything centered */
body.home .section { text-align: center; }
body.home .sliders { justify-content: center; }
.edu-lede { max-width: 700px; margin-left: auto; margin-right: auto; }

/* home: each section reads as its own chapter - big type, real separation */
body.home .section { margin: 0 0 110px; }
/* hero + Browse own the first screen, without a big void before the bench */
body.home section:nth-of-type(2) { min-height: min(420px, calc(100vh - 460px)); }
body.home section:nth-of-type(2) .browse-row { margin-top: 44px; }
.scroll-cue {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-top: 12px;
  color: var(--muted); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 50%;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  animation: cue-bob 2.6s var(--ease) infinite;
}
.scroll-cue:hover { color: var(--ink); border-color: var(--ink); animation-play-state: paused; }
.scroll-cue svg { display: block; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
.browse-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 0;
}
body.home .section:last-of-type { margin-bottom: 40px; }
body.home .h2 { font-size: 30px; margin: 12px 0 18px; }
body.home .edu-lede { font-size: 18.5px; max-width: 780px; }
body.home .lab-note { font-size: 16px; max-width: 800px; }
body.home .tile { font-size: 15px; }
body.home .tile { padding: 11px 16px; }
body.home .tile .tile-n { font-size: 16px; }
body.home .point-list li { font-size: 17px; }
body.home .section .small { font-size: 15.5px; }
body.home .sl-name { font-size: 16px; font-weight: 600; }
body.home .sliders.stack .sl-name { flex-basis: 112px; }
body.home .term-desc { font-size: 16.5px; }
body.home .chip { font-size: 15px; }
body.home .bench-side .small { font-size: 14px; }
body.home .bench-main .sliders label b { font-size: 16px; }
body.home .bench-main .sliders input[type='range'] { height: 22px; }
body.home .bench-label { font-size: 12px; }
body.home .bench-label.own-label { font-size: 14px; }
body.home .song-select { font-size: 14.5px; }
body.home .btn { font-size: 14.5px; }
body.home .ab-seg button { font-size: 14px; }
body.home .gloss-card b { font-size: 18px; }
body.home .gloss-card span { font-size: 18px; }

/* graphs + tuning term chips */
.graph-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 10px 12px 4px;
  max-width: 860px;
  margin: 0 auto;
}
.lab-note {
  color: var(--muted); font-size: 13.5px;
  max-width: 720px; margin: 10px auto 4px;
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 6px 0 10px; }
.chip {
  padding: 8px 17px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-family: inherit; font-weight: 600; font-size: 13.5px;
  cursor: pointer; box-shadow: var(--shadow-1);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.chip:hover { border-color: #3a3a3a; transform: translateY(-1px); }
.chip.on { background: #3a3a3a; color: #f6f1e7; border-color: #3a3a3a; }
.term-desc { min-height: 24px; color: var(--muted); font-size: 13.5px; max-width: 640px; margin: 0 auto 14px; }

/* audio row */
.play-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center; justify-content: center;
  margin: 12px 0 8px;
}

/* gear glossary */
.gloss { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1120px; margin: 0 auto; }
.gloss-card {
  flex: 1 1 440px;
  display: flex; flex-direction: column; gap: 5px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 17px 18px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.gloss-card:hover { border-color: var(--ink); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-2); }
.gloss-card b { font-size: 15px; letter-spacing: 0.3px; }
.gloss-card span { font-size: 13px; color: var(--ink-2); line-height: 1.55; }


/* store-brand colored text/dots: the brand color ships as --sc; dark mode
   mixes too-dark colors toward the page ink so black-on-black can't happen */
.sc-c { color: var(--sc, var(--ink)); }
.sc-c.dot { background: var(--sc, var(--ink)); }
html[data-theme='dark'] .sc-c { color: color-mix(in srgb, var(--sc, var(--ink)) 55%, #f6f1e7); }
html[data-theme='dark'] .sc-c.dot { background: color-mix(in srgb, var(--sc, var(--ink)) 55%, #f6f1e7); }

/* stars + rating rows */
.stars { color: #e3b666; font-weight: 700; white-space: nowrap; letter-spacing: 1px; }
html[data-theme='dark'] .stars { color: var(--gold); }
.stars-n { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.card-rating { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; font-size: 15px; }
.card-rating .stars { font-size: 16.5px; }
.card-rating .stars-n { white-space: normal; }
.p-rating { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; }
.p-rating .stars { font-size: 17px; }
.offer-rating { min-width: 88px; font-size: 13.5px; }

/* rate-on-site strip: a whisper of green, quiet enough to read */
.review-cta {
  display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 20px; margin: 6px 0 8px;
}
html[data-theme='dark'] .review-cta { background: var(--surface); border-color: var(--line); }
html[data-theme='dark'] .review-stars button { color: rgba(246, 241, 231, 0.25); }
.review-cta .review-copy { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.review-cta .review-copy strong { font-weight: 600; }
.review-cta .review-copy span { color: var(--ink-2); font-size: 13px; }
.review-stars { display: flex; gap: 2px; }
.review-stars button {
  background: none; border: none; cursor: pointer;
  font-size: 27px; line-height: 1; color: rgba(20, 17, 12, 0.25);
  padding: 0 2px;
  transition: color 0.12s var(--ease), transform 0.12s var(--ease);
}
.review-stars button:hover { transform: scale(1.15); color: #e3b666; }
.review-stars button.rv-hover { color: #e3b666; }
.review-stars button.rv-on { color: #e3b666; }
html[data-theme='dark'] .review-stars button:hover,
html[data-theme='dark'] .review-stars button.rv-hover,
html[data-theme='dark'] .review-stars button.rv-on { color: var(--gold); }
.review-stars button:disabled { cursor: default; }

/* category filters */
.filters {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px;
  box-shadow: var(--shadow-1);
  margin: 4px 0 8px;
}
.filters label { display: flex; flex-direction: column; gap: 3px; font-weight: 600; font-size: 14px; }
.filters select {
  font-size: 15px; font-weight: 500; font-family: inherit;
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.filters select:hover { border-color: var(--line-2); }
.filters select:focus { outline: none; border-color: var(--ink); }
.clear-filters { align-self: flex-end; padding-bottom: 8px; }
.filter-note { margin: 0 0 16px; font-size: 14px; }

/* magnifier lens */
.magnifier { position: relative; display: block; width: 100%; }
.magnifier .lens {
  position: absolute;
  width: 190px; height: 190px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  box-shadow: 0 10px 34px rgba(20, 17, 12, 0.35), inset 0 0 0 3px rgba(255, 255, 255, 0.65);
  background-color: #fff;
  background-repeat: no-repeat;
  display: none;
  pointer-events: none;
  z-index: 10;
}

/* gallery crossfade: the next photo fades in over the current one, so the
   arrows feel instant even while a cold store photo is still downloading */
.p-img { transition: opacity 0.18s var(--ease); }
.p-img.img-loading { opacity: 0.3; }
.magnifier .stage-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 20px;
  background: var(--surface); border-radius: var(--radius);
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s var(--ease);
}
.magnifier .stage-img.show { opacity: 1; }

/* ============ restored rules (dropped in the design-system rewrite) ============ */

.magnifier { position: relative; display: block; width: 100%; }
.magnifier .lens {
  position: absolute;
  width: 190px; height: 190px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  box-shadow: 0 10px 34px rgba(20, 17, 12, 0.35), inset 0 0 0 3px rgba(255, 255, 255, 0.65);
  background-color: #fff;
  background-repeat: no-repeat;
  display: none;
  pointer-events: none;
  z-index: 10;
}

.notify { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.notify input {
  padding: 9px 12px; font: inherit; font-size: 13px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
}
.notify input:focus { outline: none; border-color: var(--ink); }

.store-logo { height: 20px; width: auto; max-width: 96px; object-fit: contain; }
.orig { display: inline-block; margin-left: 8px; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.policies {
  margin-top: 16px;
  border-left: 3px solid var(--line-2);
  padding: 4px 0 4px 14px;
  display: flex; flex-direction: column; gap: 7px;
}

/* header: solid, crisp, nothing bleached */
.site-header { background: var(--header-solid); }
.brand-text { line-height: 1.2; }
.brand-mark { background: var(--ink); color: #ffffff; font-size: 24px; padding: 6px 11px; }
.brand-name { color: var(--ink); font-weight: 800; font-size: 17px; }
.brand-sub { color: var(--muted); font-size: 11.5px; font-weight: 500; margin-top: 2px; letter-spacing: 0.3px; }

.nav-home { color: var(--gold) !important; }
.nav-home::after { background: var(--gold) !important; }

/* product spec chips */
.spec-row { display: flex; gap: 7px; flex-wrap: wrap; margin: 4px 0 8px; }
.spec-chip {
  background: var(--bg-2); color: var(--ink-2);
  font-size: 11px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 10px; white-space: nowrap;
}

/* listen section: centered heading with breathing room above */
.listen-h { text-align: center; margin: 56px 0 12px; }
.listen-lede { text-align: center; }

/* price alert intro: left-aligned with the form below it */
.notify-intro { text-align: left; max-width: none; margin: 0 0 10px; }

/* curve provenance badges (Measured / Estimated) */
.curve-tag {
  display: inline-block; vertical-align: middle;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
  border-radius: 999px; padding: 4px 12px; margin-left: 6px;
  background: var(--gold); color: #fff;
}
.est-tag {
  display: inline-block; vertical-align: middle;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
  border-radius: 999px; padding: 4px 12px; margin-left: 6px;
  background: var(--bg-2); color: var(--ink-2); border: 1.5px solid var(--line-2);
}

/* product page readability (every category) */
.review-cta .review-copy { font-size: 17px; }
.review-cta .review-copy span { font-size: 15px; }
.orig { font-size: 14px; }
body.product-page .policies { gap: 3px; }
body.product-page .policies p { font-size: 16px; line-height: 1.5; margin: 0; }
body.product-page .policies p a { font-size: 17px; font-weight: 600; }
body.product-page .listen-h { font-size: 26px; }
body.product-page .listen-lede { font-size: 17.5px; }
body.product-page .overseas-note { font-size: 15px; }
body.product-page .notify-note { font-size: 15px; }

/* notify row: spread out horizontally, larger controls */
.notify { gap: 14px 20px; justify-content: flex-start; }
.notify input, .notify select { font-size: 15px; padding: 11px 16px; }
.notify .btn { font-size: 15px; padding: 11px 24px; }
body.product-page .stores-h, body.product-page .notify-h { font-size: 24px; }

/* title actions row (wishlist / compare / share): one line under the title,
   lighter + a bit larger */
body.product-page .title-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 2px 0 6px;
}
body.product-page .title-actions .btn {
  font-size: 16px;
  font-weight: 400;
  padding: 8px 20px;
  white-space: nowrap;
}

/* Wishlist and Account links sit beside the theme toggle, quiet weight */
.nav .wl-nav { margin-left: auto; align-self: center; margin-right: 14px; font-weight: 400; font-size: 17px; color: var(--muted); }
.nav .acct-nav { font-weight: 400; font-size: 17px; color: var(--muted); }
/* still visible which page you are on, without going bold again */
.nav .acct-nav.on { color: var(--ink); }

/* /sound page readability */
.sound-intro .lede { font-size: 18.5px; }
.sound-intro .point-list li { font-size: 16.5px; margin: 7px 0; }
.words-list li { font-size: 16px; }
.sound-hear .h2, .find-tune-sec .h2 { font-size: 24px; }
.sound-hear .muted, .find-tune-sec .muted { font-size: 15.5px; }
#preset-desc { font-size: 15.5px; }
/* "What the words mean": flush left, not floating centered */
.words-list { font-size: 16px; margin: 18px 0 0; max-width: 640px; }
.words-list li { margin: 7px 0; }

/* search highlights: the words the visitor searched for */
mark {
  background: #ffd66b; color: var(--ink);
  padding: 0 1px; border-radius: 3px;
}
/* dark mode: a deeper gold so highlights read as emphasis, not a flashbang */
html[data-theme='dark'] mark {
  background: #8a6a14; color: #fff8e7;
}

/* /sound: section headings match the other bumped sizes */
body.sound-page .section > .h2,
body.sound-page .sound-hear .h2 { font-size: 24px; }

/* ---------- /account ---------- */
.auth-wrap { max-width: 480px; }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 20px 22px;
  margin: 16px 0;
}
.auth-row { display: flex; flex-direction: column; gap: 10px; align-items: stretch; margin: 12px 0; }
.auth-row input {
  padding: 11px 14px; font: inherit; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
}
.auth-row input:focus { outline: none; border-color: var(--ink); }
.auth-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.auth-google { margin: 6px 0 2px; }
.btn-google {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #3a3a3a; border: 1.5px solid #dadce0;
  font-weight: 600; font-size: 14px; border-radius: 999px; padding: 10px 20px;
  box-shadow: var(--shadow-1); cursor: pointer;
}
.btn-google:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-2); }
html[data-theme='dark'] .btn-google { background: #232323; color: var(--ink); border-color: #4a4a4a; }
.auth-note {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 13.5px; margin: 10px 0;
}
.auth-forgot { margin-top: 12px; }
.auth-forgot summary { cursor: pointer; width: fit-content; font-size: 15px; }
.auth-free-note { font-size: 15px; text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- admin dashboard: roomier type throughout ---------- */
body.admin { font-size: 16.5px; }
body.admin .h1 { font-size: 34px; }
body.admin .h2 { font-size: 23px; }
body.admin .h3 { font-size: 19px; }
body.admin .muted { font-size: 15px; }
body.admin .small { font-size: 14px; }
body.admin .muted.small { font-size: 14px; }
body.admin .tbl { font-size: 15.5px; }
body.admin .tbl th { font-size: 12.5px; }
body.admin .btn { font-size: 14.5px; padding: 9px 16px; }
body.admin .btn.reset-btn { font-size: 13px; }
body.admin .fact-k { font-size: 12.5px; }
body.admin .fact strong { font-size: 21px; }
body.admin .fact-d { font-size: 13.5px; }
body.admin .offer { font-size: 15.5px; }
body.admin .aff-in { font-size: 14.5px; }
body.admin select { font-size: 15px; }
body.admin input[type='text'], body.admin input[type='email'] { font-size: 15px; }
body.admin .store-logo { width: 26px; height: 26px; }
body.admin .admin-login input { font-size: 16px; }

/* ---------- suggestions box (end-of-page trigger + popup) ---------- */
/* the trigger sits at the end of every page, right side, just above the footer */
.fb-end { display: flex; justify-content: flex-end; padding: 6px 26px 14px; font-size: 14.5px; font-style: italic; }
.fb-end .fb-trigger { font-style: italic; }
.fb-trigger {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
}
.fb-trigger:hover { color: var(--ink); text-decoration: underline; }
.fb-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(20, 17, 12, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fb-box {
  position: relative;
  width: min(440px, 100%);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 20px;
  animation: fb-pop 0.18s var(--ease);
}
@keyframes fb-pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.fb-x {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.fb-x:hover { color: var(--ink); }
.fb-h { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.fb-sub { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.fb-text {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 12px;
}
.fb-text:focus { outline: none; border-color: var(--gold); }
.fb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.fb-status { font-size: 13px; color: var(--muted); }
body.fb-lock { overflow: hidden; }
@media (max-width: 640px) {
  .fb-row { flex-direction: column-reverse; align-items: stretch; }
  .fb-send { width: 100%; }
}


/* ---------- responsive hardening (whole-web sweep 2026-09-11) ---------- */
/* bitmaps and media never push a page wider than the screen */
canvas, img, video, select { max-width: 100%; }
/* the compare table is genuinely wide: it scrolls inside its own box
   instead of stretching the whole page */
#compare-box { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* grid children must be allowed to shrink below their content size */
.product > * { min-width: 0; }
@media (max-width: 760px) {
  /* the sound bench is two columns on desktop - stack it on phones */
  .bench { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .hero-sub.browse-count { font-size: 13.5px; }
  .scroll-cue { width: 32px; height: 32px; }
  /* category filter selects size to their longest option: force a
     comfortable two-per-row layout instead of overflowing */
  .filters label { flex: 1 1 40%; min-width: 0; }
  .filters select { width: 100%; }
  .filters { gap: 10px; }
  /* stacked sliders (sound bench + find-your-tune): name and dB value
     share the first line, the range input takes the full line below -
     the desktop 96+120+76px row cannot fit a 320px screen */
  .sliders.stack label { flex-wrap: wrap; row-gap: 2px; }
  .sliders.stack .sl-name { flex: 1 1 auto; }
  .sliders.stack input[type='range'] { flex: 1 1 100%; width: 100%; min-width: 0; }
  .sliders.stack label b { flex: 0 0 auto; min-width: 0; }
}

/* ---------- mobile polish: header quick bar, offers, footer, media ---------- */
/* the quick actions live in the mobile bar only; desktop keeps them in the nav */
.hdr-right { display: none; }
.nav-return { display: none; }
@media (max-width: 760px) {
  /* bar: menu left, quick actions right. The dropdown panel lists the
     sections only - one link per line, left aligned. */
  .hdr-bar { justify-content: flex-start; gap: 2px; }
  .hdr-right { display: flex; align-items: center; gap: 0; margin-left: auto; }
  /* same thin style as the desktop nav's Wishlist/Account, a bit larger */
  .hdr-quick {
    font-size: 17px; font-weight: 400; color: var(--muted);
    padding: 10px 9px; text-decoration: none; white-space: nowrap;
  }
  .hdr-quick:hover { color: var(--ink); }
  .hdr-bar .theme-toggle { border: none; padding: 8px 6px; font-size: 17px; }
  .nav .nav-link { display: block; width: 100%; white-space: nowrap; text-align: left; }
  /* "Return" row: closes the menu without leaving the page */
  .nav .nav-return {
    display: block; width: 100%; text-align: left;
    font: inherit; font-size: 16px; font-weight: 600; color: var(--ink-2);
    background: none; border: none; border-bottom: 1px solid var(--line);
    padding: 12px 18px; cursor: pointer;
  }
  .nav .nav-return:hover { color: var(--ink); }

  /* stacked offers: the store chip must not stretch into a tall empty box */
  .store-chip { flex: none; align-content: flex-start; }
  /* wishlist/account/theme live in the bar on mobile - never in the panel */
  .nav .nav-link.wl-nav, .nav .acct-nav, .nav .theme-toggle { display: none; }

  /* the stats line reads comfortably on a phone */
  .hero-sub.browse-count { font-size: 20px; }

  /* product media uses the full phone width, not a 300px column */
  .p-media { max-width: none; width: 100%; position: static; }
  .p-img { padding: 12px; min-height: 240px; }

  /* offers stack: store block, then price, then the full-width button -
     the store name wraps instead of ellipsising away */
  .offer { flex-direction: column; align-items: stretch; gap: 9px; padding: 14px; }
  .store-chip { flex-wrap: wrap; row-gap: 4px; }
  .store-name { white-space: normal; overflow: visible; text-overflow: clip; }
  .offer-price { display: flex; align-items: baseline; gap: 8px; }
  .offer .buy { margin-left: 0; }

  /* footer: stacked, centered, nothing squeezed onto one line */
  .site-footer {
    grid-template-columns: 1fr; justify-items: center; text-align: center;
    gap: 9px; padding: 20px 16px;
  }
  .foot-copy { justify-self: center; }
  .foot-links { justify-self: center; flex-wrap: wrap; row-gap: 2px; }
  .fb-trigger { max-width: 100%; text-align: center; white-space: normal; }
}

/* 404 page: destination buttons under the message */
.nf-browse { justify-content: flex-start; margin: 22px 0 0; }

/* ---------- signed-in identity: header avatar + account card ---------- */
.nav-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
.nav-avatar-init, .acct-avatar-init {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--on-ink);
  font-size: 12px; font-weight: 700;
}
.acct-user { display: inline-flex; align-items: center; gap: 7px; }
.acct-name { white-space: nowrap; }
.hdr-quick { display: inline-flex; align-items: center; gap: 6px; }
.acct-id { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.acct-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--line-2);
  flex: none;
}
.acct-avatar-init { font-size: 22px; }
.acct-stats {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 10px 0; padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px; color: var(--ink-2);
}
.acct-stats strong { color: var(--ink); font-weight: 700; }

/* ---------- stores dropdown (home stats line) ---------- */
.stores-open {
  background: none; border: none; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
}
.stores-open:hover { text-decoration: underline; }
.stores-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(20, 17, 12, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.stores-box {
  position: relative; width: min(430px, 100%);
  max-height: min(78vh, 640px); overflow-y: auto;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-2);
  padding: 20px;
  animation: fb-pop 0.18s var(--ease);
}
.stores-rows { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.store-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 12px;
  text-decoration: none; color: var(--ink);
  transition: background 0.15s var(--ease);
}
.store-row:hover { background: var(--bg-2); }
.store-row img { width: 30px; height: 30px; object-fit: contain; flex: none; background: #fff; border-radius: 7px; border: 1px solid var(--line); padding: 2px; }
.store-row .sr-name { font-weight: 700; font-size: 14.5px; }
.store-row .sr-meta { font-size: 12px; color: var(--muted); display: block; }
.store-row .sr-offers { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
