/* TokShoppe — TikTok-inspired shopper UI (not a TikTok app clone). */
:root {
  --bg: #0a0a0b;
  --bg-elev: #141416;
  --bg-card: #1a1a1e;
  --ink: #f6f6f8;
  --muted: #9a9aa3;
  --cyan: #00f2ea;
  --magenta: #ff0050;
  --line: #2a2a30;
  --radius: 18px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Outfit", "Manrope", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(0, 242, 234, 0.16), transparent 55%),
    radial-gradient(800px 380px at 96% 0%, rgba(255, 0, 80, 0.18), transparent 50%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.45;
  font-size: 15px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(var(--wrap), calc(100% - 1.5rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }
.muted { color: var(--muted); }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), #fff 48%, var(--magenta));
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem 1rem;
  align-items: center;
  padding: .7rem 0;
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 242, 234, 0.35);
}
.brand-lockup { height: 36px; width: auto; object-fit: contain; }
.search { display: flex; gap: .35rem; }
.search input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem 1rem; background: var(--bg-elev); color: var(--ink); font: inherit;
}
.search input:focus { outline: 2px solid var(--cyan); border-color: transparent; }
.search button, .btn {
  border: 0; border-radius: 999px; padding: .55rem 1.05rem;
  font: inherit; font-weight: 800; cursor: pointer;
}
.search button, .btn.primary {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  color: #0a0a0b; text-decoration: none; display: inline-block; text-align: center;
}
.search button:hover, .btn.primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); text-decoration: none;
  display: inline-flex; align-items: center;
}
.btn.ghost:hover { border-color: var(--cyan); text-decoration: none; }
.btn.lg { padding: .8rem 1.25rem; font-size: 1rem; }
.nav { display: flex; gap: .85rem; }
.nav a { color: var(--muted); font-weight: 700; text-decoration: none; }
.nav a.is-active, .nav a:hover { color: var(--ink); }

.hero { padding: 1.75rem 0 1.75rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.25rem 1.5rem; align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy > * { margin-top: 0; }
.kicker {
  margin: 0 0 .35rem;
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem;
  color: var(--cyan);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 .55rem;
}
.lede { color: var(--muted); font-size: 1.02rem; max-width: 38rem; margin: 0 0 .75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.hero-note { color: var(--muted); font-size: .85rem; margin: 1.85rem 0 0; }
.hero-art { justify-self: stretch; width: 100%; max-width: none; }
.hero-art img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(255, 0, 80, 0.16), 0 0 0 1px rgba(0, 242, 234, 0.2);
}

.foryou-bar {
  display: flex; gap: .45rem; flex-wrap: nowrap; overflow-x: auto;
  padding: 0; margin: 0 0 1.6rem; scrollbar-width: none;
}
.foryou-bar::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: .4rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink);
  background: var(--bg-elev); font-weight: 700; font-size: .88rem;
  text-decoration: none;
}
.chip:hover { border-color: var(--cyan); text-decoration: none; }
.chip.is-active {
  background: var(--ink); color: #0a0a0b; border-color: var(--ink);
}

.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin: 1.5rem 0 1rem; }
#latest .section-head { margin: 0 0 1rem; }
.section-head h2 { font-family: var(--display); font-size: 1.45rem; margin: 0; letter-spacing: -0.03em; }
.section-head p { margin: 0; color: var(--muted); }
.more { margin: 1rem 0 2rem; }

.fyp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
}
.fyp-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card-media {
  position: relative; aspect-ratio: 3 / 4; background: #111;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--display); font-size: 3rem; color: var(--magenta);
}
.play-hint {
  position: absolute; right: .55rem; bottom: .55rem;
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(10, 10, 11, 0.72);
  box-shadow: 0 0 0 2px var(--cyan);
}
.play-hint::after {
  content: "";
  position: absolute; left: 13px; top: 10px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--cyan);
}
.card-body { padding: .75rem .8rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-title { margin: 0; font-size: .95rem; line-height: 1.25; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--cyan); }
.card-brand { margin: 0; color: var(--muted); font-size: .8rem; }
.price-stack { display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline; }
.price-now { font-weight: 800; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.save-chip {
  background: var(--magenta); color: #fff; border-radius: 999px;
  padding: .1rem .45rem; font-size: .72rem; font-weight: 800;
}
.btn-deal {
  margin-top: auto;
  display: block; text-align: center;
  background: var(--ink); color: #0a0a0b;
  border-radius: 999px; padding: .5rem .7rem;
  font-weight: 800; text-decoration: none;
}
.btn-deal:hover { background: var(--cyan); text-decoration: none; }

.empty-feed { text-align: center; padding: 2rem 1rem 3rem; color: var(--muted); }
.empty-art { margin: 0 auto 1rem; width: min(220px, 70%); }

.pagination {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  justify-content: center; margin: 1.5rem 0 2.5rem;
}
.page-numbers { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.page-btn, .page-num {
  border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .7rem; color: var(--ink); text-decoration: none;
}
.page-num.is-current, .page-btn:hover, .page-num:hover { border-color: var(--cyan); text-decoration: none; }
.page-btn.is-disabled { opacity: .4; }
.page-status { color: var(--muted); margin: 0; }

.cat-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.1rem; border-radius: 16px; background: var(--bg-card);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.cat-list a:hover { border-color: var(--magenta); }
.cat-list span { color: var(--cyan); font-weight: 700; font-size: .85rem; }

.prose-page { padding: 1.5rem 0; }
.prose-page h1 { font-family: var(--display); letter-spacing: -0.03em; }
.deal-detail {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem;
  padding: 1.6rem 0 2rem;
}
.deal-media { background: var(--bg-card); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.deal-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.deal-copy h1 { font-family: var(--display); font-size: 1.8rem; margin: .3rem 0 .7rem; }
.deal-price { font-size: 1.25rem; }
.deal-price .was { color: var(--muted); text-decoration: line-through; margin-left: .4rem; }
.facts { list-style: none; padding: 0; color: var(--muted); }
.facts span { display: inline-block; width: 5rem; color: var(--ink); font-weight: 700; }
.crumb { color: var(--muted); font-size: .85rem; }

.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.2rem; }
.site-footer a { display: block; color: var(--muted); margin: .25rem 0; }
.wordmark { font-family: var(--display); }
.fineprint { color: var(--muted); font-size: .82rem; }

@media (max-width: 960px) {
  .header-inner, .hero-grid, .deal-detail, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 1.5rem 0 1.5rem; }
  .hero-art { max-width: none; width: 100%; justify-self: stretch; }
  .hero-art img { height: 200px; width: 100%; }
  .fyp-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .fyp-grid { grid-template-columns: 1fr 1fr; gap: .55rem; }
}
