:root {
  --red: #e3120b;
  --orange: #ff8a1f;
  --fire: linear-gradient(115deg, var(--red) 0%, #f2440f 45%, var(--orange) 100%);
  --ink: #16161a;
  --muted: #5e5e66;
  --line: #ececf0;
  --soft: #f7f7f9;
  --bg: #ffffff;
  --radius: 14px;
  --display: 'Saira Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--body);
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark {
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: 26px; letter-spacing: 0.5px; line-height: 1;
  transform: skewX(-6deg);
}
.w-red { color: var(--red); }
.w-orange { color: var(--orange); margin-left: 4px; }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600;
}
.cart-btn:hover { background: var(--red); }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--fire); font-size: 13px; line-height: 22px; text-align: center;
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(36px, 7vw, 84px) clamp(16px, 4vw, 40px) clamp(30px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.hero-text { position: relative; z-index: 1; max-width: 640px; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  padding: 4px 12px; border-radius: 999px;
  background: #fff1e6; color: #c24400;
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(44px, 8vw, 88px); line-height: 0.95; letter-spacing: -0.5px;
  text-transform: uppercase;
}
.hero h1 em {
  font-style: italic;
  /* room for the italic overhang, which background-clip would cut off */
  padding-right: 0.08em; margin-right: -0.08em;
  background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 520px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.hero-stripes {
  position: absolute; inset: 0 -10% 0 auto; width: 52%;
  display: flex; gap: 22px; justify-content: flex-end;
  transform: skewX(-18deg); pointer-events: none;
}
.hero-stripes span { width: 18%; background: var(--fire); opacity: 0.9; }
.hero-stripes span:nth-child(2) { opacity: 0.55; }
.hero-stripes span:nth-child(3) { opacity: 0.25; }

/* Filters */
.shop { padding: 24px clamp(16px, 4vw, 40px) 56px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600;
}
.chip:hover { border-color: var(--orange); }
.chip.is-on { border-color: transparent; background: var(--fire); color: #fff; }
.search { flex: 1 1 200px; max-width: 320px; margin-left: auto; }
.search input {
  width: 100%; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); font: inherit; font-size: 15px;
}
.search input:focus { outline: none; border-color: var(--orange); }
.status { color: var(--muted); }

/* Grid */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(227, 18, 11, 0.12); }
.art { position: relative; aspect-ratio: 5 / 7; background: var(--soft); }
.art img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.art.placeholder {
  display: grid; place-items: center;
  background: var(--fire); color: #fff;
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: 22px;
  text-align: center; padding: 16px; text-transform: uppercase;
}
.art.placeholder.cyberpunk { background: var(--ink); color: var(--orange); }
.tag {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 9px; border-radius: 6px;
  background: rgba(22, 22, 26, 0.85); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
}
.tag.sealed { background: var(--red); }
.info { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-family: var(--display); font-weight: 800; font-size: 22px; }
.stock { font-size: 12px; color: var(--muted); }
.stock.low { color: #c24400; font-weight: 600; }
.add {
  margin-top: 6px; padding: 9px; border: 0; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 700;
}
.add:hover:not(:disabled) { background: var(--fire); }
.add:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }

/* Footer */
.footer {
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 36px clamp(16px, 4vw, 40px);
  border-top: 4px solid transparent;
  border-image: var(--fire) 1;
  background: var(--soft); color: var(--muted); font-size: 14px;
}
.footer strong { color: var(--ink); }
.footer p { margin: 6px 0 0; }

/* Cart drawer */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(22, 22, 26, 0.35); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 21;
  width: min(420px, 100%); display: flex; flex-direction: column;
  background: #fff; box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%); transition: transform 0.22s ease;
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  margin: 0; font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: 28px; text-transform: uppercase;
}
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); font-size: 22px; }
.lines { list-style: none; margin: 0; padding: 8px 20px; overflow-y: auto; flex: 1; }
.line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.thumb { width: 52px; aspect-ratio: 5 / 7; border-radius: 6px; background: var(--fire); overflow: hidden; }
.thumb.cyberpunk { background: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-name { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.line-price { font-size: 13px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 28px; height: 28px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; }
.qty button:hover:not(:disabled) { border-color: var(--orange); }
.qty span { min-width: 18px; text-align: center; font-weight: 600; }
.empty { margin: 0; padding: 24px 20px; color: var(--muted); flex: 1; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--soft); }
.zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.zone select { padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; background: #fff; }
.ship-note { margin: 8px 0 12px; font-size: 13px; color: var(--muted); }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.subtotal strong { font-family: var(--display); font-size: 26px; }
.error { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: #fff0ee; color: #b3150b; font-size: 14px; }
.checkout-btn {
  width: 100%; margin-top: 14px; padding: 14px; border: 0; border-radius: 12px;
  background: var(--fire); color: #fff;
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: 22px; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.checkout-btn:disabled { opacity: 0.6; cursor: wait; }
.fine { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* Thank-you page */
.thanks { max-width: 560px; margin: 0 auto; padding: 64px 16px; text-align: center; }
.thanks img { margin: 0 auto 18px; }
.thanks h1 {
  margin: 0; font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(40px, 9vw, 64px); text-transform: uppercase; line-height: 1;
}
.thanks p { color: var(--muted); font-size: 17px; }
.back {
  display: inline-block; margin-top: 18px; padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
}
.back:hover { background: var(--red); }

/* Account */
.top-actions { display: flex; align-items: center; gap: 6px; }
.account-link {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.account-link:hover { background: var(--soft); }
a.cart-btn { text-decoration: none; }
.account { max-width: 640px; margin: 0 auto; padding: 32px 16px 64px; }
.account h1 {
  margin: 0 0 16px; font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(36px, 8vw, 52px); text-transform: uppercase; line-height: 1;
}
.signin p { color: var(--muted); }
.signin label span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.signin input {
  width: 100%; min-height: 48px; padding: 10px 14px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 17px;
}
.signin #code { letter-spacing: 6px; font-weight: 700; font-size: 22px; }
.link { border: 0; background: none; padding: 10px 0; color: var(--red); font-weight: 600; }
.who { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.orders > li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.orders > li.none { color: var(--muted); }
.orders .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.orders .meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.orders .items { margin: 8px 0 0; padding-left: 18px; font-size: 15px; }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--soft); }
.pill.paid { background: #fff1e3; color: #a14b00; }
.pill.shipped { background: #e3f8ea; color: #12723a; }

@media (max-width: 560px) {
  .account-link span { display: none; }
  .wordmark { font-size: 21px; }
  .cart-btn span:not(.badge) { display: none; }
  .search { max-width: none; margin-left: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-stripes { width: 60%; opacity: 0.35; }
  .price { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
