:root {
  --bg: #f7f7f5; --card: #fff; --text: #1d1d1b; --muted: #6b6b66; --line: #e3e3de;
  --accent: #ffcf00; --accent-ink: #1d1d1b; --red: #d01012; --good: #1a7f37;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141413; --card: #1f1f1d; --text: #ececea; --muted: #a3a39d; --line: #33332f; --good: #4ac26b; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--accent); color: var(--accent-ink); padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; color: inherit; line-height: 1.1; }
.brand img { flex: none; }
.tagline { margin: 8px 0 0; max-width: 46ch; }
.tagline strong { display: block; font-size: 1.15rem; }
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px; }
.top .brand, .top .tagline { grid-column: 1; }
.nav-link { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px;
  border-radius: 999px; background: #d01012; color: #fff; font-size: 1.15rem; font-weight: 700; text-decoration: none;
  white-space: nowrap; box-shadow: 0 4px 0 #8f0b0c, 0 6px 14px rgba(0, 0, 0, 0.25); transition: transform 0.1s, box-shadow 0.1s; }
.nav-link::before { content: "🔥"; }
.nav-link:hover, .nav-link:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 0 #8f0b0c, 0 10px 18px rgba(0, 0, 0, 0.3); outline: none; }
.nav-link:active { transform: translateY(3px); box-shadow: 0 1px 0 #8f0b0c; }
/* fixed colors: the bar must stand out the same way in the light and the dark theme */
.quick { background: #1d1d1b; padding: 12px 0 14px; border-bottom: 1px solid #000; }
.quick .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.quick-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: #006cb7; color: #fff;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 3px 0 #00467a; transition: transform 0.1s, box-shadow 0.1s, background 0.1s; }
.quick-btn:hover, .quick-btn:focus-visible { background: #ffcf00; color: #1d1d1b; box-shadow: 0 3px 0 #b39100; transform: translateY(-2px); outline: none; }
.quick-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #00467a; }
@media (max-width: 760px) {
  .top .wrap { grid-template-columns: 1fr; }
  .nav-link { grid-column: 1; grid-row: 3; justify-self: center; margin-top: 14px; }
}
.deal { display: inline-block; align-self: flex-start; margin-top: auto; padding: 2px 6px; border-radius: 4px; background: #c62828; color: #fff; font-size: 0.8rem; font-weight: 700; }
.deal + .price { margin-top: 4px; }
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } }
.filters { align-self: start; position: sticky; top: 16px; }
.filters-body { display: flex; flex-direction: column; gap: 16px; }
.filters summary { display: none; }
@media (max-width: 760px) {
  .filters { position: static; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
  .filters summary { display: list-item; font-weight: 600; cursor: pointer; }
  .filters details[open] summary { margin-bottom: 12px; }
}
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.field > span, legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
input, select, button { font: inherit; color: inherit; }
input[type=search], input[type=number], select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card);
}
.hint { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.chips button[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.range { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.check { display: flex; gap: 8px; align-items: center; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--muted); align-self: start; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.bar select { width: auto; margin-left: 6px; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; height: 100%; }
.card:hover, .card:focus-visible { border-color: var(--accent); outline: none; }
.card .img { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; }
.card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h2 { font-size: 0.95rem; margin: 0; line-height: 1.3; }
.meta { color: var(--muted); font-size: 0.85rem; }
.price { margin-top: auto; font-weight: 700; font-size: 1.1rem; }
.price.none { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.price.check { font-weight: 600; font-size: 0.85rem; color: var(--red); }
.more[hidden] { display: none; }
.more { display: block; margin: 20px auto; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
dialog { border: 0; border-radius: 14px; padding: 0; width: min(720px, calc(100vw - 32px)); background: var(--card); color: var(--text); }
dialog::backdrop { background: rgb(0 0 0 / 0.5); }
.detail { padding: 20px; }
.detail header { display: flex; gap: 16px; align-items: start; }
.detail header img { width: 160px; max-width: 40%; object-fit: contain; background: #fff; border-radius: 8px; }
.detail h2 { margin: 0 0 6px; }
.close { margin-left: auto; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.best td { color: var(--good); font-weight: 600; }
.chart { margin-top: 16px; }
.chart svg { width: 100%; height: 120px; }
.foot { color: var(--muted); font-size: 0.85rem; padding-bottom: 32px; }
a.card { text-decoration: none; color: inherit; }
.page { padding-top: 16px; padding-bottom: 32px; }
.page h1 { font-size: 1.6rem; margin: 8px 0; }
.lead { color: var(--muted); max-width: 70ch; }
.crumbs { color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: inherit; }
.set-head { display: flex; gap: 20px; align-items: start; flex-wrap: wrap; }
.set-head img { width: 280px; max-width: 100%; object-fit: contain; background: #fff; border-radius: 12px; }
.set h2, .page > h2 { margin-top: 28px; }
.more-link { font-weight: 600; }
.browse { padding-bottom: 16px; font-size: 0.95rem; }
.browse a { margin-right: 10px; white-space: nowrap; }
.shop-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.shop-btn { display: inline-block; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.shop-btn:hover { filter: brightness(0.95); }
