/* ====================================================
   PRODUCTS LISTING PAGE
   Requires: theme.css + cp.css loaded first
   ==================================================== */

body {
  background: var(--cp-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--cp-text);
}
main { flex: 1; padding: 2.5rem 1.5rem 4rem; }

/* ── Hero ── */
.hero-section {
  background: var(--cp-bg);
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,240,255,0.06);
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 90% at 50% -5%, rgba(0,240,255,0.09) 0%, transparent 60%);
  pointer-events: none;
}
.hero-section > * { position: relative; }
.hero-section h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.hero-section h2 i { color: var(--cp-cyan); font-size: 0.85em; }
.hero-section p {
  color: var(--cp-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Category filter ── */
.category-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0.875rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(0,240,255,0.08);
  border-radius: 4px;
}
.filter-pill {
  padding: 0.4375rem 1rem;
  border-radius: 2px;
  border: 1px solid rgba(0,240,255,0.2);
  background: transparent;
  color: rgba(216,228,255,0.5);
  font-weight: 600;
  font-size: 0.72rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms, box-shadow 200ms;
  white-space: nowrap;
}
.filter-pill:hover {
  border-color: rgba(0,240,255,0.6);
  color: #00f0ff;
  background: rgba(0,240,255,0.05);
}
.filter-pill.active {
  background: rgba(0,240,255,0.12);
  border-color: var(--cp-cyan);
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0,240,255,0.2);
}

/* ── Products grid ── */
.products-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
  gap: 1.25rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero-section h2 { font-size: 1.625rem; }
  .products-grid { grid-template-columns: 1fr; }
  main { padding: 1.5rem 1rem 3rem; }
}
