:root {
  --ink: #070b16;
  --ink-2: #0d1324;
  --surface: #141b31;
  --surface-2: #1b2440;
  --line: rgba(232, 200, 114, 0.22);
  --line-strong: rgba(232, 200, 114, 0.55);
  --gold: #e8c872;
  --gold-2: #f4d98a;
  --gold-dim: #b8963f;
  --ivory: #f6f1e6;
  --muted: #9aa3b8;
  --muted-2: #7b8499;
  --cyan: #7dd3fc;
  --danger: #f87171;
  --ok: #34d399;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --header-h: 72px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Syne", "Source Sans 3", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(232, 200, 114, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(125, 211, 252, 0.08), transparent 50%),
    linear-gradient(180deg, var(--ink-2), var(--ink) 40%);
  color: var(--ivory);
  min-height: 100vh;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  left: 12px;
  top: 12px;
  padding: 8px 12px;
  background: var(--gold);
  color: var(--ink);
  z-index: 1000;
}
main.container { padding-top: 28px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 22, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner, .container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
}
.brand:hover { color: var(--ivory); }
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  color: var(--ivory);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"] {
  background: rgba(232, 200, 114, 0.12);
  color: var(--gold-2);
}
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  padding: 7px 14px !important;
}
.cart-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-badge[hidden] { display: none; }

.hero {
  padding: 72px 0 36px;
}
.hero-kicker {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}
.hero p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0 0 22px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(20, 27, 49, 0.7);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 28px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn, .btn, .qty-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ivory);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 650;
  transition: 0.15s ease;
}
.filter-btn[aria-pressed="true"], .filter-btn:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold);
}
.search {
  flex: 1 1 220px;
  max-width: 360px;
  position: relative;
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ivory);
  border-radius: 999px;
  padding: 10px 14px 10px 40px;
  outline: none;
}
.search input:focus { border-color: var(--gold); }
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  padding-bottom: 72px;
}
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card-media {
  position: relative;
  aspect-ratio: 1;
  background: #0b1020;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge, .sold-banner, .price-note {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 11, 22, 0.82);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 999px;
}
.sold-banner {
  inset: 0;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 11, 22, 0.62);
  color: var(--ivory);
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  border-radius: 0;
  border: 0;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { color: var(--gold-dim); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.card h2 { font-size: 1.08rem; margin: 0; line-height: 1.3; font-family: var(--display); }
.card h2 a { color: var(--ivory); }
.card h2 a:hover { color: var(--gold-2); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-weight: 800; font-size: 1.2rem; color: var(--gold-2); }
.stock { color: var(--muted); font-size: 0.88rem; }
.stock.out { color: var(--danger); }
.price-placeholder { color: var(--cyan); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; }
.card-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 800;
}
.btn-primary:hover { background: var(--gold-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-block { width: 100%; }
.card-actions .btn { flex: 1; padding: 9px 10px; }

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  margin-bottom: 64px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  padding: 40px 0 80px;
  align-items: start;
}
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #0b1020;
  aspect-ratio: 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button {
  width: 76px;
  height: 76px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface);
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.product-copy h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 8px 0 12px;
  line-height: 1.15;
}
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.product-price { font-size: 2rem; font-weight: 800; color: var(--gold-2); margin: 0 0 6px; }
.product-desc { color: #d5d8e2; white-space: pre-wrap; }
.buy-box {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20, 27, 49, 0.7);
}
.qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-control button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ivory);
}
.qty-control input {
  width: 52px;
  text-align: center;
  border: 0;
  background: transparent;
  color: var(--ivory);
  padding: 8px 0;
}
.crumbs { color: var(--muted); font-size: 0.9rem; margin: 0 0 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }

.cart-table, .summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 24px;
  padding: 32px 0 80px;
  align-items: start;
}
.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-row:last-child { border-bottom: 0; }
.cart-row img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.cart-row h2 { margin: 0 0 4px; font-size: 1rem; font-family: var(--display); }
.cart-row h2 a { color: var(--ivory); }
.remove {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
  font-size: 0.85rem;
}
.remove:hover { color: var(--danger); }
.summary-card { padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary-card h2 { margin: 0 0 14px; font-family: var(--display); }
.summary-line, .totals-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  color: var(--muted);
}
.totals-line.total {
  color: var(--ivory);
  font-size: 1.2rem;
  font-weight: 800;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.page-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 36px 0 8px;
}
.lede { color: var(--muted); margin: 0; }

.checkout-layout { padding-bottom: 80px; }
.sandbox-note {
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: rgba(125, 211, 252, 0.08);
  color: #d7f0fe;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 18px 0 22px;
  font-size: 0.95rem;
}
.paypal-box { min-height: 54px; margin-top: 16px; }
.thank-you {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.thank-you h1 { font-family: var(--display); margin: 8px 0 10px; }
.order-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--gold-2);
  font-size: 1.15rem;
  word-break: break-all;
}
.error-note { color: var(--danger); margin-top: 12px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.site-footer h2 {
  color: var(--ivory);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.disclaimer { margin-top: 28px; font-size: 0.82rem; color: var(--muted-2); max-width: 70ch; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--ivory);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 80;
  box-shadow: var(--shadow);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .product-layout, .cart-layout, .footer-grid { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .hero { padding-top: 40px; }
  .brand-sub { display: none; }
}
@media (max-width: 560px) {
  .card-actions { flex-direction: column; }
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-row .line-total { grid-column: 2; }
}

.sandbox-note[hidden]{display:none !important}
