:root {
  --bg: #0a0b10;
  --surface: #14151d;
  --surface-line: #22232f;
  --magenta: #ea1fa0;
  --pink: #ff6fb0;
  --cyan: #29e7f0;
  --text: #ececec;
  --muted: #8b8d9b;
  --success: #39e67a;
  --warning: #f5c344;
  --danger: #ff4d6a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* faint scanline / CRT texture over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 5;
}

/* sparse drifting pixels, restrained not overwhelming */
.pixel {
  position: fixed;
  width: 3px;
  height: 3px;
  background: var(--cyan);
  opacity: 0.5;
  z-index: 1;
  animation: drift linear infinite;
}
.pixel:nth-child(1) { left: 8%;  top: -5%; animation-duration: 14s; animation-delay: 0s; background: var(--cyan); }
.pixel:nth-child(2) { left: 22%; top: -5%; animation-duration: 19s; animation-delay: 3s; background: var(--pink); }
.pixel:nth-child(3) { left: 68%; top: -5%; animation-duration: 16s; animation-delay: 6s; background: var(--magenta); }
.pixel:nth-child(4) { left: 85%; top: -5%; animation-duration: 21s; animation-delay: 1s; background: var(--cyan); }
.pixel:nth-child(5) { left: 45%; top: -5%; animation-duration: 17s; animation-delay: 8s; background: var(--pink); }

@keyframes drift {
  from { transform: translateY(0); opacity: 0; }
  5%   { opacity: 0.6; }
  95%  { opacity: 0.6; }
  to   { transform: translateY(110vh); opacity: 0; }
}

main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 22px;
  opacity: 0.85;
}

.wordmark {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(22px, 6vw, 34px);
  line-height: 1.6;
  margin: 0 0 18px 0;
  animation: flicker 6s infinite;
}
.wordmark .part1 { color: var(--magenta); text-shadow: 0 0 14px rgba(234,31,160,0.55); }
.wordmark .part2, .wordmark .part3 { color: var(--cyan); text-shadow: 0 0 14px rgba(120, 217, 255, 0.45); }

@keyframes flicker {
  0%, 89%, 92%, 100% { opacity: 1; }
  90% { opacity: 0.55; }
  91% { opacity: 0.9; }
}

.tagline {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 40px 0;
  padding: 0 12px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--surface-line);
  background: var(--surface);
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn svg { flex-shrink: 0; }

.btn:hover {
  transform: translateY(-2px);
}

.btn.tradera:hover {
  border-color: var(--magenta);
  box-shadow: 0 0 22px rgba(234,31,160,0.28);
}

.btn.youtube:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(41,231,240,0.28);
}

.btn.tradera svg { color: var(--magenta); }
.btn.youtube svg { color: var(--cyan); }

footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.6;
}

/* ============================================================
   Section labels — reused above "STAFF PICKS" and "CATEGORIES"
   ============================================================ */
.section-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--cyan);
  opacity: 0.7;
  margin: 40px 0 14px 0;
  text-align: left;
}

.disclosure {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 14px 0;
  text-align: left;
}

/* ============================================================
   Product card — reusable for staff picks (horizontal) and
   category grids (vertical)
   ============================================================ */
.product-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--surface-line);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
  box-shadow: 0 0 18px rgba(255,111,176,0.22);
}

.product-image {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #1c1d27;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image .img-fallback {
  color: var(--muted);
  font-size: 11px;
}

.product-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  margin: 0 0 4px 0;
}

.product-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.delivery {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 10px 0;
}

.delivery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.delivery-dot.quick { background: var(--success); }
.delivery-dot.medium { background: var(--warning); }
.delivery-dot.long { background: var(--danger); }

.product-cta {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
}
.product-cta:hover { text-decoration: underline; }

/* horizontal variant — staff picks */
.product-card.horizontal {
  flex-direction: row;
  gap: 14px;
}
.product-card.horizontal .product-image {
  width: 88px;
  height: 88px;
  margin-bottom: 0;
}
.product-card.horizontal .product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.staff-picks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   Category grid — homepage tiles
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-tile {
  height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--surface-line);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 500;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.category-tile:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(41,231,240,0.2);
}
.category-tile svg { color: var(--cyan); width: 18px; height: 18px; }
.category-tile.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.category-tile .tile-sub {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
}

/* ============================================================
   Category listing page (category.html)
   ============================================================ */
.wide {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px 60px 24px;
  position: relative;
  z-index: 10;
}

.cat-back {
  font-size: 12px;
  color: var(--cyan);
  text-decoration: none;
}
.cat-back:hover { text-decoration: underline; }

.cat-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(18px, 5vw, 26px);
  color: var(--magenta);
  text-shadow: 0 0 12px rgba(234,31,160,0.45);
  margin: 14px 0 6px 0;
}

.cat-count {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 24px 0;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-state {
  color: var(--muted);
  font-size: 14px;
  padding: 60px 0;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .pixel { animation: none; opacity: 0; }
  .wordmark { animation: none; }
}
