:root {
  --bg: #0b0d10;
  --bg-2: #12161c;
  --panel: #171c24;
  --line: #2a3340;
  --text: #f4f1ea;
  --muted: #9aa4b2;
  --accent: #e8a838;
  --accent-2: #ffd27a;
  --danger: #ff6b6b;
  --ok: #5ad08a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(232, 168, 56, 0.12), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(80, 120, 180, 0.1), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(11, 13, 16, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), #b76b12);
  display: grid;
  place-items: center;
  color: #1a1204;
  font-weight: 800;
}
.nav-links { display: flex; gap: 22px; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 8px 14px;
}
.badge {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1204;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0 48px;
}
.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
}
h1, h2, h3 { font-family: "Barlow Condensed", "DM Sans", sans-serif; margin: 0 0 12px; }
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 0.95; letter-spacing: 0.02em; }
.lead { color: var(--muted); font-size: 18px; max-width: 52ch; }
.hero-card {
  background: linear-gradient(180deg, #1d2430, #141920);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card strong { color: var(--accent-2); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}
.btn-primary { background: var(--accent); color: #1a1204; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }

.section { padding: 28px 0 64px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.muted { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: #3d4b5e; }
.thumb {
  aspect-ratio: 4 / 3;
  background: #0f1318;
  display: grid;
  place-items: center;
  position: relative;
}
.thumb svg { width: 72%; height: 72%; }
.thumb .ship-badge { position: absolute; left: 10px; bottom: 10px; }
.ship-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 8px;
}
.ship-badge.ultra { background: #e8a838; color: #1a1204; }
.ship-badge.standard { background: #2a3a52; color: #d7e4ff; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}
.chip.active { border-color: var(--accent); background: #2a2316; }
.chip span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  background: #0f1318;
  font-size: 12px;
}
.meta { color: var(--muted); font-size: 13px; margin: 0; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price { font-size: 22px; font-weight: 700; color: var(--accent-2); }
.card-actions { display: flex; gap: 8px; margin-top: auto; }

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}
.product-visual {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty button, .qty input {
  background: transparent;
  color: var(--text);
  border: 0;
  width: 42px;
  height: 42px;
  text-align: center;
}

.cart-table { display: grid; gap: 12px; }
.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}
.summary {
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  display: grid;
  gap: 10px;
}
.row { display: flex; justify-content: space-between; }

.status {
  max-width: 560px;
  margin: 80px auto;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 28px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #1e2631;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
}
.toast.show { display: block; }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 0 40px;
}
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .hero, .product { grid-template-columns: 1fr; padding-top: 36px; }
  .nav-links { display: none; }
  .cart-row { grid-template-columns: 72px 1fr; }
}
