/* ---------- Tokens ---------- */
:root {
  --bg: #0F1115;
  --surface: #151920;
  --surface-2: #1B2029;
  --border: #262C37;
  --border-hover: #3B4452;
  --text: #F8FAFC;
  --muted: #98A2B3;
  --accent: #E0892B;       /* burnt amber: CTAs and interactive states only */
  --accent-ink: #1A0F02;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 999px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Type scale (1.25) */
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --t-hero: clamp(2.5rem, 1.5rem + 5vw, 4.75rem);
  --space-section: clamp(4rem, 3rem + 6vw, 8rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--t-base)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 0.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: var(--t-sm); border: 1px solid transparent;
  cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #EE9A3C; }
.btn--accent:active { transform: scale(.98); }
.btn--ghost { border-color: var(--border-hover); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(15, 17, 21, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -0.02em; }
.logo svg { color: var(--accent); }
.nav__links {
  position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column;
  padding: .5rem 1.25rem 1.25rem; background: rgba(15,17,21,.96); border-bottom: 1px solid var(--border);
}
.nav__links.is-open { display: flex; }
.nav__links a { padding: .85rem 0; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; gap: .25rem; }
.icon-btn {
  position: relative; width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  background: none; border: 1px solid transparent; border-radius: 50%; cursor: pointer; transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--border-hover); background: var(--surface); }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem;
  display: grid; place-items: center; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700;
  transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.badge.has-items { transform: scale(1); }
.badge.bump { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* Search dialog */
.search {
  width: min(560px, 100% - 2rem); margin-top: 6rem; padding: 1.25rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-hover); border-radius: var(--radius-lg);
}
.search::backdrop { background: rgba(8, 9, 12, .6); backdrop-filter: blur(4px); }
.search form { display: flex; gap: .6rem; }
.search input, .news input {
  flex: 1; min-width: 0; padding: .85rem 1.1rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .2s;
}
.search input:focus, .news input:focus { outline: none; border-color: var(--accent); }
.search__hint { margin-top: .75rem; font-size: var(--t-sm); color: var(--muted); }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 3.5rem; padding-top: 8rem; padding-bottom: var(--space-section); }
.pill {
  display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem; margin-bottom: 1.5rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  font-size: var(--t-sm); font-weight: 500; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(224, 137, 43, .18); }
h1 { font-size: var(--t-hero); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; max-width: 14ch; }
.lead { margin-top: 1.5rem; max-width: 46ch; font-size: var(--t-lg); color: var(--muted); line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero__stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.hero__stats dt { font-size: var(--t-sm); color: var(--muted); }
.hero__stats dd { font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.02em; }

.showcase {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); padding: .6rem; align-self: start;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.showcase img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: calc(var(--radius-lg) - .5rem); background: var(--surface-2); }
.showcase__info {
  position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1.1rem; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,.12);
  background: rgba(15,17,21,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: var(--t-sm);
}
.showcase__info strong { font-size: var(--t-base); }
.chip {
  position: absolute; padding: .45rem .85rem; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600;
  background: rgba(21,25,32,.78); border: 1px solid var(--border-hover); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite; /* the one ambient motion on the page */
}
.chip--a { top: 12%; left: -4%; }
.chip--b { top: 38%; right: -3%; animation-delay: -2s; }
.chip--c { bottom: 26%; left: 5%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding-bottom: var(--space-section); }
.section__head { margin-bottom: 2.5rem; }
.section__head h2 { font-size: var(--t-xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.section__head p { margin-top: .6rem; color: var(--muted); }
.section__head--row { display: flex; flex-direction: column; gap: 1.5rem; }

/* Category grid: staggered heights, not a uniform grid */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.cat {
  position: relative; overflow: hidden; display: block; min-height: 14rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2);
  transition: border-color .25s;
}
.cat:hover { border-color: var(--accent); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.cat:hover img { transform: scale(1.07); opacity: .95; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,17,21,.85), transparent 55%); }
.cat__label { position: absolute; left: 1.25rem; bottom: 1.1rem; z-index: 1; display: flex; flex-direction: column; }
.cat__label b { font-size: var(--t-lg); letter-spacing: -0.02em; }
.cat__label small { color: var(--muted); font-size: var(--t-sm); }
.cat--tall { grid-row: span 2; min-height: 22rem; }
.cat--wide { grid-column: span 2; min-height: 12rem; }

/* Filter tabs */
.tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: .55rem 1.1rem; border-radius: var(--radius-sm); cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--muted); font-size: var(--t-sm); font-weight: 600;
  transition: color .2s, border-color .2s, background .2s;
}
.tab:hover { color: var(--text); border-color: var(--border-hover); }
.tab.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Product grid with staggered offsets on larger screens */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card {
  display: flex; flex-direction: column; padding: .6rem .6rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04); transition: border-color .25s;
}
.card:hover { border-color: var(--border-hover); }
.card__media { overflow: hidden; border-radius: calc(var(--radius-lg) - .5rem); background: var(--surface-2); aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem .75rem 0; flex: 1; }
.card__cat { font-size: .72rem; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.stars { display: flex; align-items: center; gap: .4rem; font-size: var(--t-sm); color: var(--muted); }
.stars__row { color: var(--accent); letter-spacing: 2px; }
.specs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .25rem 0 0; padding: 0; }
.specs li { padding: .25rem .65rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .78rem; color: var(--muted); }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.price { font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.02em; }
.add {
  padding: .6rem 1.1rem; border-radius: var(--radius-sm); cursor: pointer; font-size: var(--t-sm); font-weight: 600;
  background: transparent; border: 1px solid var(--border-hover); transition: background .2s, color .2s, border-color .2s;
}
.add:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.add.is-added { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.card.is-hidden { display: none; }
.empty { padding: 3rem 0; color: var(--muted); text-align: center; }

/* ---------- Trust bar ---------- */
.trust { display: grid; gap: 2rem; padding-block: 2.5rem; margin-bottom: var(--space-section); border-block: 1px solid var(--border); }
.trust__item { display: flex; gap: 1rem; align-items: flex-start; }
.trust__item svg { flex: none; color: var(--accent); margin-top: .15rem; }
.trust__item h3 { font-size: var(--t-base); font-weight: 700; }
.trust__item p { margin-top: .2rem; font-size: var(--t-sm); color: var(--muted); max-width: 30ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding-top: 4rem; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; padding-bottom: 3rem; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand > p { margin: 1rem 0 1.75rem; color: var(--muted); max-width: 36ch; }
.footer h4 { margin-bottom: 1rem; font-size: var(--t-sm); font-weight: 700; }
.footer nav { display: flex; flex-direction: column; gap: .6rem; }
.footer nav a { color: var(--muted); font-size: var(--t-sm); transition: color .2s; }
.footer nav a:hover, .footer__legal a:hover { color: var(--text); }
.news label { display: block; margin-bottom: .6rem; font-size: var(--t-sm); font-weight: 600; }
.news__row { display: flex; gap: .5rem; max-width: 26rem; }
.news__msg { min-height: 1.5rem; margin-top: .5rem; font-size: var(--t-sm); color: var(--muted); }
.news__msg.is-error { color: #F08A7A; }
.news__msg.is-ok { color: #7FD1A0; }
.footer__legal {
  display: flex; flex-direction: column; gap: .75rem; padding-block: 1.5rem;
  border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted);
}
.footer__legal a { margin-right: 1.25rem; }

/* ---------- Responsive (mobile-first, scaling up) ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .footer__legal { flex-direction: row; justify-content: space-between; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .cat--tall { grid-column: 1; }
  .cat--wide { grid-column: span 2; }
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav__links { position: static; display: flex; flex-direction: row; gap: 2rem; padding: 0; background: none; border: 0; }
  .nav__links a { padding: 0; border: 0; font-size: var(--t-sm); }
  .hero { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 4rem; }
  .showcase { margin-top: 3rem; } /* offset against the copy column for asymmetry */
  .section__head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); align-items: start; }
  /* Stagger: every even visible card drops down for vertical rhythm */
  .card:nth-child(even) { margin-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}