/* JevFilter store demo. Same paper, ink and chartreuse as the rest of the site. */

:root {
  color-scheme: light;
  --paper: #f5f4ee;
  --paper-2: #eceae1;
  --sheet: #fcfcf8;
  --ink: #15181b;
  --ink-2: #3b4148;
  --muted: #5f666d;
  --line: rgba(21, 24, 27, 0.12);
  --line-2: rgba(21, 24, 27, 0.22);
  --signal: #c6f432;
  --signal-ink: #1a2303;
  --signal-text: #4a6600;
  --sale: #b42323;
  --refuse: #5f45b8;
  --refuse-soft: rgba(95, 69, 184, 0.1);
  --clar: #8f5c00;
  --clar-soft: rgba(196, 128, 0, 0.12);
  --tile: #efeee6;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-lg: 14px;
  --r: 10px;
  --r-sm: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0d0f12; --paper-2: #13161a; --sheet: #111418; --ink: #eceee9; --ink-2: #c3c8cd; --muted: #9aa2a9;
    --line: rgba(236, 238, 233, 0.1); --line-2: rgba(236, 238, 233, 0.2); --signal-text: #c6f432; --sale: #ff8080;
    --refuse: #b3a2ff; --refuse-soft: rgba(179, 162, 255, 0.12); --clar: #f5c14b; --clar-soft: rgba(245, 193, 75, 0.12); --tile: #1a1d22;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d0f12; --paper-2: #13161a; --sheet: #111418; --ink: #eceee9; --ink-2: #c3c8cd; --muted: #9aa2a9;
  --line: rgba(236, 238, 233, 0.1); --line-2: rgba(236, 238, 233, 0.2); --signal-text: #c6f432; --sale: #ff8080;
  --refuse: #b3a2ff; --refuse-soft: rgba(179, 162, 255, 0.12); --clar: #f5c14b; --clar-soft: rgba(245, 193, 75, 0.12); --tile: #1a1d22;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal-text); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-inner { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.mark { width: 26px; height: 26px; padding: 4px; border-radius: 7px; background: var(--ink); stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.brand-sub { color: var(--muted); font-weight: 400; padding-left: 10px; border-left: 1px solid var(--line-2); }
.bar-actions { display: flex; align-items: center; gap: 6px; }
.ghost { color: var(--ink-2); font-size: 14px; text-decoration: none; padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid transparent; }
.ghost:hover { border-color: var(--line-2); }
.icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--sheet); border-radius: var(--r-sm); }
.icon svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 1.8; fill: none; }
.icon svg path { fill: var(--ink); stroke: none; }

.page { max-width: 1240px; margin: 0 auto; padding: 36px 20px 40px; display: grid; gap: 28px; }

.hero { max-width: 820px; }
.hero h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 650; }
.lede { margin: 10px 0 20px; color: var(--ink-2); font-size: 17px; max-width: 62ch; }
.ask { display: flex; gap: 10px; }
.ask input { flex: 1; min-width: 0; font-size: clamp(17px, 1.8vw, 20px); padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--sheet); }
.ask input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 45%, transparent); }
.go { border: 0; border-radius: var(--r); padding: 0 22px; background: var(--ink); color: var(--paper); font-weight: 600; }
.go:disabled { opacity: 0.55; cursor: progress; }
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.examples button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 13.5px; color: var(--ink-2); }
.examples button:hover { border-color: var(--ink); color: var(--ink); }

.understood { margin-top: 18px; display: grid; gap: 10px; min-height: 40px; }
.verdict { color: var(--ink-2); font-size: 15px; }
.verdict.warn { color: var(--clar); }
.verdict.refused { color: var(--refuse); }
.thinking { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal-text); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.7); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; }
.chip button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; color: color-mix(in srgb, var(--paper) 70%, transparent); display: grid; place-items: center; font-size: 15px; line-height: 1; }
.chip button:hover { background: color-mix(in srgb, var(--paper) 18%, transparent); color: var(--paper); }
.stats { display: flex; flex-wrap: wrap; gap: 6px; }
.stat { font: 500 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.stat.good { color: var(--signal-text); border-color: color-mix(in srgb, var(--signal-text) 40%, transparent); }

.store { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }

.side { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); position: sticky; top: 72px; }
.side summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-weight: 600; cursor: default; }
.side summary::-webkit-details-marker { display: none; }
.count { font: 500 12px var(--mono); background: var(--signal); color: var(--signal-ink); border-radius: 999px; padding: 1px 8px; }
.count:empty { display: none; }
.filters { padding: 0 16px 16px; display: grid; gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.opts { display: grid; gap: 2px; }
.opt { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: var(--r-sm); font-size: 14px; cursor: pointer; }
.opt:hover { background: var(--paper); }
.opt input { accent-color: var(--ink); margin: 0; }
.opt.flash, .sw.flash, select.flash, .range input.flash, .tri.flash { animation: flash 900ms ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--signal); } 100% { box-shadow: 0 0 0 3px transparent; } }
.excl { font-size: 13px; color: var(--refuse); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.excl button { border: 0; background: transparent; color: inherit; text-decoration: underline; padding: 0; font-size: 13px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); padding: 0; position: relative; }
.sw[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); }
select, .range input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range label { display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); }
.flags { display: grid; gap: 8px; }
.flag { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.tri { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; }
.tri button { border: 0; background: transparent; padding: 3px 9px; font-size: 12.5px; color: var(--muted); }
.tri button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.clear { border: 1px solid var(--line-2); background: transparent; border-radius: var(--r-sm); padding: 8px; font-size: 14px; }

.shelf-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.shelf-head h2 { margin: 0; font-size: 18px; }
.shelf-head p { margin: 0; color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; }
.pic { aspect-ratio: 4 / 3; background: var(--tile); display: grid; place-items: center; position: relative; }
.pic svg { width: 62%; height: 62%; }
.badge { position: absolute; top: 10px; left: 10px; font: 600 11.5px var(--mono); padding: 2px 8px; border-radius: 999px; background: var(--sale); color: #fff; }
.badge.out { background: var(--ink-2); left: auto; right: 10px; }
.card-body { padding: 12px 14px 14px; display: grid; gap: 2px; }
.card-name { font-weight: 600; }
.card-meta { color: var(--muted); font-size: 13px; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.price { font: 600 16px var(--mono); }
.rating { font-size: 13px; color: var(--ink-2); }
.empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--muted); background: var(--sheet); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

.note { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 22px 24px; max-width: 820px; }
.note h2 { margin: 0 0 10px; font-size: 18px; }
.note ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.note p { margin: 0; color: color-mix(in srgb, var(--paper) 75%, transparent); }
.note a { color: var(--signal); }

.foot { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; color: var(--muted); font-size: 13.5px; }
.foot p { margin: 0 0 6px; }
.foot a { margin-right: 14px; }

@media (max-width: 860px) {
  .store { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .side summary { cursor: pointer; }
  .side summary::after { content: "Show"; font-size: 13px; color: var(--muted); font-weight: 400; margin-left: auto; padding-left: 10px; }
  .side[open] summary::after { content: "Hide"; }
}
@media (max-width: 560px) {
  .page { padding: 24px 16px 32px; }
  .bar-inner { padding: 10px 16px; }
  .brand-sub { display: none; }
  .ask { flex-direction: column; }
  .go { padding: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
