/* TrendyTreasures&Trinkets — jewel-box palette, one typeface (Bricolage Grotesque), price-tag motif */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url("/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url("/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
[hidden] { display: none !important; }
:root {
  --paper: #f4f2f7;
  --surface: #ffffff;
  --ink: #2a1733;
  --ink-2: #5d5066;
  --ink-3: #8a7f92;
  --line: #e3dde9;
  --line-2: #d3cadb;
  --plum: #4b2559;
  --plum-hover: #3a1b46;
  --save: #0b7a57;
  --save-deep: #075c41;
  --save-bg: #e2f3eb;
  --gold: #a87a1c;
  --gold-bg: #f8eed7;
  --heart: #d0356a;
  --danger: #b42318;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(42, 23, 51, .06), 0 8px 28px -12px rgba(42, 23, 51, .22);
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.55;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -.02em; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid #8e5fd6; outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-hover); }
.btn-shop { background: var(--ink); color: #fff; width: 100%; }
.btn-shop:hover { background: var(--plum); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn:hover { background: var(--paper); }

/* ---------------- Header ---------------- */
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(244, 242, 247, .92); backdrop-filter: saturate(1.4) blur(10px); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em; min-width: 0; }
.wordmark span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wordmark .amp { color: var(--gold); font-weight: 500; padding: 0 1px; }
.mark { width: 28px; height: 28px; color: var(--plum); transform: rotate(-8deg); }
.saved-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 600;
}
.saved-toggle:hover { border-color: var(--ink); }
.saved-toggle svg { width: 20px; height: 20px; fill: var(--heart); }
.saved-toggle .count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--paper); display: grid; place-items: center; font-size: .9rem; font-variant-numeric: tabular-nums; }
.saved-toggle .count.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.25); background: #fbe1ea; } }

/* ---------------- Hero & search ---------------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(36px, 6vw, 64px); }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); font-weight: 750; letter-spacing: -.045em; max-width: 13ch; font-variation-settings: "opsz" 96; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 44ch; margin: 18px 0 32px; }
.search {
  position: relative; display: flex; align-items: center; gap: 8px; max-width: 860px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 8px 8px 22px;
  box-shadow: 6px 6px 0 var(--ink);
}
.search:focus-within { box-shadow: 6px 6px 0 var(--plum); border-color: var(--plum); }
.search-icon { width: 24px; height: 24px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 56px; border: 0; outline: none; background: transparent; font-size: clamp(1.05rem, 2.2vw, 1.3rem); }
.search input::placeholder { color: var(--ink-3); }
.search .btn { height: 56px; padding: 0 30px; font-size: 1.06rem; }
.hint { color: var(--ink-3); font-size: .95rem; margin: 18px 0 0; }
.form-error { color: var(--danger); font-weight: 600; margin: 12px 0 0; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; color: var(--ink-2); font-size: .95rem; }
.example { border: 1px dashed var(--line-2); background: transparent; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.example:hover { border-style: solid; border-color: var(--ink); background: var(--surface); }

/* Compact hero once results are showing: the search stays, the pitch steps aside */
.has-results .hero { padding: 28px 0 32px; }
.has-results .hero h1, .has-results .lede, .has-results .examples, .has-results .hint { display: none; }

/* ---------------- Section heads & chips ---------------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.cat-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface); text-decoration: none; font-weight: 550; font-size: .95rem; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"], .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------- Price tag motif ---------------- */
.tag {
  --tag-bg: var(--save); position: relative; display: inline-flex; flex-direction: column; align-items: flex-start;
  background: var(--tag-bg); color: #fff; padding: 8px 14px 8px 26px; line-height: 1;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); border-radius: 0 8px 8px 0;
}
.tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.tag .pct { font-weight: 800; font-size: 1.7rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 96; }
.tag .lbl { font-size: .78rem; font-weight: 600; opacity: .92; margin-top: 3px; }
.tag-xl { padding: 12px 22px 12px 38px; clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%); }
.tag-xl::before { left: 16px; width: 10px; height: 10px; margin-top: -5px; }
.tag-xl .pct { font-size: clamp(2.6rem, 5vw, 3.6rem); }
.tag-xl .lbl { font-size: .95rem; margin-top: 6px; }

/* ---------------- Trending (server-rendered, hydrated) ---------------- */
.trending { padding: clamp(32px, 6vw, 72px) 0; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 28px 20px; }
.t-card { min-width: 0; }
.t-media { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; background: var(--line); aspect-ratio: 4 / 5; }
.t-media img { width: 100%; height: 100%; object-fit: cover; }
.save-pill { position: absolute; left: 12px; bottom: 12px; background: var(--save); color: #fff; font-weight: 750; padding: 5px 12px; border-radius: 999px; font-size: 1rem; }
.t-body { padding: 12px 2px 0; }
.t-inspired { margin: 0; color: var(--ink-3); font-size: .88rem; }
.t-name { font-size: 1.06rem; font-weight: 650; margin: 3px 0 4px; letter-spacing: -.01em; line-height: 1.25; }
.t-price { margin: 0; }
.t-price strong { font-size: 1.1rem; }
.t-price s, .price-row s { color: var(--ink-3); margin-left: 6px; }
.t-retailer { margin: 2px 0 0; color: var(--ink-2); font-size: .92rem; }

/* ---------------- How it works ---------------- */
.how { padding: clamp(40px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.how h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; color: var(--ink-2); max-width: 62ch; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 700; color: var(--ink); }
.steps strong { color: var(--ink); }

/* ---------------- Results ---------------- */
.results { padding: 8px 0 clamp(40px, 6vw, 72px); }
.results h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.original {
  display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px;
}
.original-media { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.original-media img { width: 100%; height: 100%; object-fit: cover; }
.original-kicker { margin: 0 0 4px; color: var(--ink-3); font-size: .95rem; }
.original-name { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 700; }
.original-brand { margin: 6px 0 0; color: var(--ink-2); }
.original-attrs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.attr { font-size: .84rem; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-2); }
.original-price { text-align: right; padding-right: 8px; }
.original-price .amount { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; letter-spacing: -.03em; display: block; }
.original-price .src { color: var(--ink-3); font-size: .88rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--plum); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .88rem; }
.price-edit { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.price-edit input { width: 110px; height: 40px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 10px; }
.price-edit .btn { min-height: 40px; padding: 0 14px; font-size: .92rem; }

/* Best match */
.best {
  margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0;
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--gold);
  box-shadow: var(--shadow);
}
.best-media { position: relative; background: var(--line); min-height: 100%; aspect-ratio: 4 / 5; }
.best-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.best-media .tag { position: absolute; left: 0; top: 28px; }
.best-body { padding: clamp(22px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.best-flag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--gold-bg); color: #6b4c0c; font-weight: 700; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: .95rem; }
.best-flag svg { width: 18px; height: 18px; fill: var(--gold); }
.best-name { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 750; letter-spacing: -.035em; }
.retailer { color: var(--ink-2); margin: -8px 0 0; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price-row .now { font-size: clamp(2rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.price-row s { font-size: 1.15rem; }
.you-save { width: 100%; color: var(--save-deep); font-weight: 650; }
.meter { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.meter-label { font-weight: 650; font-variant-numeric: tabular-nums; }
.meter-bar { height: 8px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--plum), #8e5fd6); border-radius: inherit; }
.reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.reasons li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.reasons svg { width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--save); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.best-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }
.best-actions .btn-shop { flex: 1; min-height: 54px; font-size: 1.06rem; }

/* Heart */
.heart {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .94); cursor: pointer; box-shadow: 0 2px 10px rgba(42, 23, 51, .16);
  transition: transform .15s;
}
.heart svg { width: 22px; height: 22px; fill: transparent; stroke: var(--ink); stroke-width: 1.8; transition: fill .15s, stroke .15s; }
.heart:hover svg { stroke: var(--heart); }
.heart[aria-pressed="true"] svg { fill: var(--heart); stroke: var(--heart); }
.heart.pop { animation: pop .35s ease; }
@keyframes pop { 45% { transform: scale(1.22); } }
.heart-wide { width: auto; height: 54px; padding: 0 20px; border-radius: 999px; gap: 8px; display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); box-shadow: none; background: var(--surface); font-weight: 650; }
.heart-wide:hover { border-color: var(--heart); }

/* Filters */
.filters {
  position: sticky; top: 68px; z-index: 20; margin: 40px 0 22px; padding: 14px 0;
  background: rgba(244, 242, 247, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.filters-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.filters .cat-chips { flex: 1 1 100%; }
.field { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--ink-2); }
.field select {
  height: 40px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 34px 0 14px; background: var(--surface);
  appearance: none; cursor: pointer; font-weight: 600; color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%232a1733' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.seg { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 2px; background: var(--surface); }
.seg button { height: 34px; padding: 0 12px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.seg button[aria-pressed="true"] { background: var(--save); color: #fff; }
.filters .reset { margin-left: auto; }

.sk-saved { height: 120px; }
.more-head { margin-top: 56px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.more-head p { margin: 0; color: var(--ink-3); }

/* Dupe cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 34px 24px; }
.card { min-width: 0; display: flex; flex-direction: column; }
.card-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media .tag { position: absolute; left: 0; top: 18px; }
.card-media .heart { position: absolute; right: 14px; top: 14px; }
.card-body { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-kicker { margin: 0; color: var(--plum); font-weight: 600; font-size: .92rem; }
.card-retailer { margin: 0; color: var(--ink-2); font-size: .95rem; }
.card-name { font-size: 1.22rem; font-weight: 680; letter-spacing: -.015em; line-height: 1.22; }
.card .price-row .now { font-size: 1.55rem; }
.card .price-row s { font-size: 1rem; }
.card .you-save { font-size: .98rem; }
.card .meter-bar { height: 6px; }
.card .meter-label { font-size: .92rem; }
.shared { display: flex; flex-wrap: wrap; gap: 6px; }
.card .btn-shop { margin-top: auto; }
.card-foot { margin-top: auto; padding-top: 8px; }

/* States */
.state { text-align: center; padding: 64px 20px; background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg); }
.state h3 { font-size: 1.4rem; margin-bottom: 8px; }
.state p { color: var(--ink-2); margin: 0 auto 18px; max-width: 48ch; }
.state .cat-chips { justify-content: center; flex-wrap: wrap; }
.skeleton { background: linear-gradient(100deg, #ebe7f0 30%, #f6f4f9 50%, #ebe7f0 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--radius-lg); }
@keyframes shimmer { to { background-position: -150% 0; } }
.sk-original { height: 210px; }
.sk-best { height: 460px; margin-top: 26px; }
.loading-note { color: var(--ink-2); margin: 0 0 16px; }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(28, 14, 34, .42); z-index: 60; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 70; background: var(--surface);
  display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(42, 23, 51, .4); animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.35rem; }
.drawer-body { overflow-y: auto; padding: 16px 24px 32px; flex: 1; }
.saved-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.saved-item img { border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 96px; }
.saved-item h3 { font-size: 1.02rem; font-weight: 650; line-height: 1.25; }
.saved-item p { margin: 2px 0; font-size: .92rem; color: var(--ink-2); }
.saved-item .now { font-weight: 750; color: var(--ink); font-size: 1.05rem; }
.saved-item .save-chip { display: inline-block; background: var(--save-bg); color: var(--save-deep); font-weight: 700; border-radius: 999px; padding: 2px 10px; font-size: .85rem; }
.saved-actions { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.saved-actions a { font-weight: 650; font-size: .92rem; }
.saved-empty { text-align: center; padding: 48px 8px; color: var(--ink-2); }
.saved-empty svg { width: 44px; height: 44px; fill: none; stroke: var(--line-2); stroke-width: 1.6; margin: 0 auto 12px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 80; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* Footer */
.site-footer { background: var(--ink); color: #e8e1ee; padding: 48px 0 56px; margin-top: 24px; }
.footer-row { display: grid; gap: 20px; }
.wordmark-sm { font-weight: 750; font-size: 1.2rem; margin: 0; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { text-decoration: none; color: #e8e1ee; }
.footer-links a:hover { text-decoration: underline; }
.fineprint { color: #b3a7bd; font-size: .88rem; margin: 0; max-width: 72ch; }

.notfound { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 20px; padding: 24px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .best { grid-template-columns: 1fr; }
  .best-media { aspect-ratio: 1 / 1; }
  .how-grid { grid-template-columns: 1fr; }
  .original { grid-template-columns: 112px minmax(0, 1fr); }
  .original-price { grid-column: 1 / -1; text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 0; }
  .price-edit { justify-content: flex-start; width: 100%; }
}
@media (max-width: 640px) {
  .header-row { height: 60px; }
  .filters { position: static; }
  .wordmark { font-size: .98rem; }
  .saved-toggle span:not(.count) { display: none; }
  .saved-toggle { padding: 0 6px 0 10px; }
  .search { flex-wrap: wrap; border-radius: 22px; padding: 10px; box-shadow: 4px 4px 0 var(--ink); }
  .search-icon { margin-left: 10px; }
  .search input { height: 48px; }
  .search .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .filters-row { gap: 10px; }
  .field { flex: 1 1 auto; }
  .filters .reset { margin-left: 0; }
  .best-actions { flex-direction: column; }
  .heart-wide { justify-content: center; }
  .tag .pct { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
