:root {
  color-scheme: light dark;
  --accent: #2f7d6d;
  --bg: #fafaf8;
  --card: #ffffff;
  --text: #1d1d1b;
  --muted: #6b6b66;
  --line: #e4e4de;
  --deal: #c2410c;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151514; --card: #1f1f1d; --text: #ececea; --muted: #a3a39c; --line: #33332f; --accent: #5fb8a5; --deal: #fb923c; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
header.site, main, footer.site { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
header.site { padding-top: 2rem; }
.brand { font-size: 1.75rem; font-weight: 700; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.tagline { margin: .25rem 0 1.5rem; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; padding: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: .75rem; }
.filters label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; color: var(--muted); }
.filters .grow { flex: 1 1 14rem; }
.filters input, .filters select, .filters button { font: inherit; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--bg); color: var(--text); }
.filters button { background: var(--accent); border-color: var(--accent); color: #fff; cursor: pointer; }
.filters .reset { align-self: center; font-size: .9rem; }

.count { color: var(--muted); font-size: .9rem; margin: 1rem 0 .5rem; }
.deals { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.deal a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s; }
.deal a:hover, .deal a:focus-visible { border-color: var(--accent); }
.deal img, .deal .noimg { width: 100%; height: auto; aspect-ratio: 460 / 215; object-fit: cover; background: var(--line); display: block; }
.deal h2 { font-size: 1rem; margin: .75rem .9rem .25rem; line-height: 1.3; }
.deal .price { margin: auto .9rem .2rem; padding-top: .5rem; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.deal .price strong { font-size: 1.15rem; }
.deal .price s { color: var(--muted); font-size: .9rem; }
.badge { background: var(--deal); color: #fff; font-weight: 700; font-size: .85rem; padding: .05rem .4rem; border-radius: .35rem; }
.deal .store { margin: 0 .9rem .8rem; color: var(--muted); font-size: .85rem; }

.empty { padding: 3rem 0; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 1rem; justify-content: center; align-items: center; margin: 2rem 0; color: var(--muted); }
footer.site { margin-top: 3rem; padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

.crumbs { margin: 0 0 1rem; font-size: .9rem; }
.product h1 { font-size: 1.75rem; margin: .5rem 0; line-height: 1.25; }
.product .cover { width: 100%; max-width: 460px; height: auto; border-radius: .75rem; display: block; }
.kind { font-size: .8rem; font-weight: 600; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: .35rem; padding: .05rem .4rem; vertical-align: middle; }
.lowest { color: var(--muted); }
.lowest strong { color: var(--text); }
.offers { width: 100%; border-collapse: collapse; margin-top: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.offers th, .offers td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
.offers thead th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.offers tbody tr:last-child th, .offers tbody tr:last-child td { border-bottom: 0; }
.offers s { color: var(--muted); font-size: .9rem; margin-left: .35rem; }
.offers .unavailable { color: var(--muted); }
.buy { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: .35rem .8rem; border-radius: .5rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 30rem) { .offers th, .offers td { padding: .55rem .5rem; font-size: .9rem; } }

/* ---- hottest deals strip: horizontal scroll, no JS ---- */
.hot { margin: 0 0 1.5rem; }
.hot h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.hot-strip {
  list-style: none; margin: 0; padding: .25rem .1rem 1rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 15rem); gap: .9rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  /* fade the right edge so it's obvious the list continues */
  mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
}
.hot-strip:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: .75rem; }
.hot-strip li { scroll-snap-align: start; }
.hot-card {
  display: flex; flex-direction: column; gap: .35rem; height: 100%; min-height: 10.5rem;
  padding: 1rem 1.1rem; border-radius: .9rem; color: #fff; text-decoration: none;
  background: var(--tone); border: 1px solid transparent; transition: transform .15s, box-shadow .15s;
}
.hot-card:hover, .hot-card:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgb(0 0 0 / .18); }
.hot-cut { font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.hot-title { font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-price { margin-top: auto; }
.hot-price strong { font-size: 1.15rem; }
.hot-price s { opacity: .75; font-size: .9rem; margin-left: .25rem; }
.hot-store { font-size: .8rem; opacity: .85; }
/* six muted gradients; cards are told apart without any images */
.tone-0 { --tone: linear-gradient(135deg, #1f6f60, #2f9478); }
.tone-1 { --tone: linear-gradient(135deg, #7a3b16, #b4561f); }
.tone-2 { --tone: linear-gradient(135deg, #3b3f8f, #5a5fc0); }
.tone-3 { --tone: linear-gradient(135deg, #6b2449, #a03a6b); }
.tone-4 { --tone: linear-gradient(135deg, #2c4f6e, #3f77a3); }
.tone-5 { --tone: linear-gradient(135deg, #5a4a14, #8c7420); }
@media (prefers-reduced-motion: reduce) { .hot-card { transition: none; } .hot-card:hover { transform: none; } }
