:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --ink: #1f1a17;
  --muted: #6b625b;
  --line: #e8dfd3;
  --berry: #7a1f2b;
  --berry-dark: #5a1520;
  --pine: #1f4d3a;
  --gold: #b8893a;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}
a { color: var(--berry); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.disclosure {
  background: var(--pine);
  color: #e9f1ec;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
}

.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(184,137,58,.25), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(255,255,255,.08), transparent 35%),
    linear-gradient(160deg, var(--berry) 0%, var(--berry-dark) 100%);
  color: #fff;
  padding: 56px 0 48px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  color: #f1d9a8;
}
.hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  margin: 0 0 12px;
}
.tagline { margin: 0 auto; max-width: 560px; font-size: 18px; color: #f6e9e0; }
.countdown {
  display: inline-flex;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.countdown span {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(241,217,168,.4);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 72px;
  font-size: 12px;
  color: #f1d9a8;
}
.countdown b { display: block; font-size: 24px; color: #fff; font-family: Fraunces, Georgia, serif; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 20px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font: 500 14px Inter, sans-serif;
  cursor: pointer;
}
.chip[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sort { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sort select {
  font: inherit;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(60,30,20,.10); }
.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.92);
}
.thumb svg { width: 56px; height: 56px; }
.thumb .rank {
  position: absolute;
  left: 12px;
  top: 12px;
  font: 700 13px Inter, sans-serif;
  background: rgba(0,0,0,.25);
  padding: 3px 9px;
  border-radius: 999px;
}
.badges { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.badge {
  font: 600 11px Inter, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #fff;
  color: var(--berry);
  padding: 3px 8px;
  border-radius: 999px;
}
.badge.drop { background: var(--gold); color: #fff; }
.cat-Toys { background: linear-gradient(140deg, #b3423c, #7a1f2b); }
.cat-Tech { background: linear-gradient(140deg, #2d5b70, #1b3644); }
.cat-Gaming { background: linear-gradient(140deg, #4b3b7a, #2a2050); }
.cat-Home { background: linear-gradient(140deg, #2e6b51, #1f4d3a); }
.cat-Beauty { background: linear-gradient(140deg, #b36b7c, #7d3d52); }
.cat-Other { background: linear-gradient(140deg, #8a6d3b, #5c4622); }

.body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.brand { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.name { font-family: Fraunces, Georgia, serif; font-size: 20px; line-height: 1.25; margin: 4px 0 8px; }
.why { font-size: 14px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-weight: 600; font-size: 15px; }
.price small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.buy {
  background: var(--berry);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  white-space: nowrap;
}
.buy:hover { background: var(--berry-dark); }
.buy:focus-visible, .chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.empty, .updated { color: var(--muted); text-align: center; grid-column: 1 / -1; }
.updated { font-size: 13px; margin: 28px 0; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- navigation ---- */
.topnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.topnav-inner { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.logo { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 19px; color: var(--berry); text-decoration: none; white-space: nowrap; }
.navlinks { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.navlinks a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.navlinks a:hover { background: var(--bg); color: var(--berry); }
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 4px; }
.crumbs a { color: var(--muted); }

/* ---- cards ---- */
.count { margin: 0; color: var(--muted); font-size: 14px; }
.thumb { text-decoration: none; }
.name a { color: inherit; text-decoration: none; }
.name a:hover { color: var(--berry); text-decoration: underline; }
h3.name { font-size: 18px; }

/* ---- collection + content pages ---- */
.pagehead { padding: 8px 0 24px; max-width: 760px; }
.pagehead h1, .gift h1, .prose h1 { font-family: Fraunces, Georgia, serif; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 8px 0 12px; }
.pagehead p { font-size: 17px; color: var(--muted); margin: 0 0 8px; }
.pagehead .meta { font-size: 13px; }
.prose { max-width: 760px; margin: 48px 0 0; }
.prose.narrow { margin: 0 auto; padding-bottom: 20px; }
.prose h2, .sectionhead, .cats h2 { font-family: Fraunces, Georgia, serif; font-size: 26px; margin: 28px 0 10px; }
.prose h3 { font-size: 16px; margin: 20px 0 8px; }
.prose.two { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.cats { margin-top: 48px; }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.catlink { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--ink); }
.catlink:hover { border-color: var(--berry); }
.catlink b { display: block; font-family: Fraunces, Georgia, serif; font-size: 18px; }
.catlink span { font-size: 13px; color: var(--muted); }
.notice { background: #fff6e0; border: 1px solid #ecd9a6; border-radius: 12px; padding: 14px 16px; margin: 12px 0; font-size: 15px; }

/* ---- gift page ---- */
.gift { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; padding: 12px 0 8px; }
.gift-art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-items: center; color: rgba(255,255,255,.92); }
.gift-art svg { width: 110px; height: 110px; }
.gift-art .rank { position: absolute; left: 14px; top: 14px; font: 700 13px Inter, sans-serif; background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 999px; }
.lead { font-size: 18px; color: var(--muted); }
.buybox { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 22px 0 10px; }
.price.big { font-size: 24px; }
.buy.big { font-size: 16px; padding: 14px 22px; }
.fine { font-size: 12px; color: var(--muted); }
.sources { padding-left: 18px; margin: 0; }
.sources li { margin: 4px 0; }
.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts th, .facts td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts th { color: var(--muted); font-weight: 500; width: 45%; }
.footlinks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px; }
.footlinks a { color: var(--muted); }

/* ---- real product photos (whole product on white, never cropped) ---- */
.thumb.has-photo, .gift-art.has-photo { overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.gift-art.has-photo { border: 1px solid var(--line); margin: 0; }
.thumb img, .gift-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.thumb .rank, .thumb .badges, .gift-art .rank { z-index: 1; }
.has-photo .rank { background: rgba(30,20,20,.72); color: #fff; }
.photo-note { position: absolute; right: 8px; bottom: 8px; z-index: 1; font: 500 10px Inter, sans-serif; color: #fff; background: rgba(30,20,20,.72); padding: 2px 7px; border-radius: 999px; }
.gift-art.has-photo { padding-bottom: 0; }
.gift-art figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; font-size: 11px; line-height: 1.35; color: #fff; background: rgba(30,20,20,.72); padding: 6px 12px; }
.gift-art figcaption a { color: #fff; }

@media (max-width: 800px) {
  .gift, .prose.two { grid-template-columns: 1fr; gap: 20px; }
  .gift-art { aspect-ratio: 16 / 5; }
  .gift-art.has-photo { aspect-ratio: 4 / 3; }
  .gift-art svg { width: 56px; height: 56px; }
  .logo { font-size: 17px; }
}

@media (max-width: 520px) {
  .hero { padding: 40px 0 36px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chip { flex: none; }
  .grid { grid-template-columns: 1fr; }
}
