:root {
  --bg: #0f172a;
  --surface: #111827;
  --surface-2: #1f2937;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --danger: #f87171;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 12px 30px rgba(0,0,0,0.25);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: var(--text);
}
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-wrap, .footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.tagline, .site-footer p { color: var(--muted); margin: 0.25rem 0 0; }
.header-actions { display: flex; gap: 0.75rem; align-items: center; }
input[type="search"] {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  min-width: 280px;
}
button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
}
.cart-button, .filter, .primary-button {
  background: var(--surface-2);
  color: var(--text);
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
}
.filter.active { background: var(--accent); color: #082f49; font-weight: 700; }
.hero { padding: 3rem 0 2rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.hero h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0.5rem 0 1rem; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; }
.hero-card, .card, .cart-panel, .message {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.hero-card { padding: 1.25rem 1.25rem 1rem; }
.hero-points { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.hero-points span {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.filters { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}
.card { overflow: hidden; }
.card img {
  width: 100%; height: 220px; object-fit: cover; display: block; background: #0b1120;
}
.card-content { padding: 1rem; }
.card h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.price-row {
  display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem;
}
.price { font-size: 1.15rem; font-weight: 800; }
.stock.low { color: #fde68a; }
.stock.out { color: var(--danger); }
.primary-button { background: var(--accent-2); color: #052e16; font-weight: 700; }
.primary-button:disabled { background: #334155; color: #94a3b8; cursor: not-allowed; }
.message { padding: 1rem; margin-bottom: 1rem; }
.hidden { display: none !important; }
.cart-drawer {
  position: fixed; inset: 0; background: rgba(2, 6, 23, 0.7); display: flex; justify-content: flex-end;
}
.cart-panel {
  width: min(420px, 100vw);
  min-height: 100vh;
  padding: 1rem;
  border-radius: 0;
  border-left: 1px solid var(--border);
}
.cart-header, .summary-row { display: flex; justify-content: space-between; align-items: center; }
.icon-button { background: transparent; color: var(--text); font-size: 1.2rem; }
.cart-items { display: grid; gap: 0.75rem; margin: 1rem 0; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.cart-item-meta { color: var(--muted); font-size: 0.9rem; }
.qty-wrap { display: flex; gap: 0.4rem; align-items: center; }
.qty-wrap button {
  width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); color: var(--text);
}
.cart-summary {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}
.site-footer { border-top: 1px solid var(--border); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .header-wrap, .footer-wrap { flex-direction: column; align-items: flex-start; }
  input[type="search"] { min-width: 0; width: 100%; }
  .header-actions { width: 100%; flex-direction: column; align-items: stretch; }
}
