/* CAP· — Vice / Y2K / vintage minimal design system
   Palette: GTA-VI-style sunset — hot pink → orange → gold over dusk purple, on warm sand. */
:root {
  --paper: #f6ecdf;      /* warm sand */
  --ink: #241436;        /* dusk purple-black */
  --pink: #ff2d7e;
  --orange: #ff7a3c;
  --gold: #ffc46b;
  --teal: #19c3b8;
  --muted: #7d6f86;
  --line: #e4d5c2;
  --card: #fdf8ef;
  --radius: 20px;
  --sunset: linear-gradient(100deg, var(--pink) 0%, var(--orange) 55%, var(--gold) 100%);
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-script: 'Yellowtail', cursive;
  --font-body: 'Space Grotesk', 'Helvetica Neue', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html { background: #180b2b; }
body {
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* full-page digital sky behind everything */
.sky {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 110%, #4a1d5e 0%, #2c1244 45%, #180b2b 100%);
}
.sky-glow {
  position: absolute; left: 50%; bottom: -35%;
  width: 130%; height: 75%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,45,126,0.45) 0%, rgba(255,122,60,0.25) 45%, transparent 75%);
  filter: blur(10px);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }

/* film grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
}

/* ---- header ---- */
header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
/* ---- brandmark: one line, speed tilt (Oakley/FOX energy) ---- */
.brandmark {
  font-family: var(--font-display);
  display: inline-flex; align-items: baseline;
  transform: skewX(-12deg);
  letter-spacing: 0.01em; line-height: 1; white-space: nowrap;
  position: relative;
}
.brandmark .bm-the { font-size: 1em; margin-right: 0.14em; }
.brandmark .bm-cap { font-size: 1em; }
.brandmark .bm-dot {
  font-size: 1em; width: 0;
  transform: translateX(-0.34em);
}
.brandmark .bm-co  { font-size: 0.42em; margin-left: 0.08em; }
.brandmark-sm { font-size: 22px; color: var(--ink); }
.brandmark-sm .bm-cap, .brandmark-sm .bm-dot { color: var(--pink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; border: 2px solid var(--ink); border-radius: 99px; padding: 3px; background: var(--card); }
.lang-switch button {
  border: none; background: none; padding: 4px 11px; border-radius: 99px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.lang-switch button.active { background: var(--ink); color: var(--gold); }
.cart-btn {
  border: 2px solid var(--ink); background: var(--card); border-radius: 99px;
  padding: 8px 18px; font-weight: 700; font-size: 14px; position: relative;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.cart-btn:hover { background: var(--ink); color: var(--gold); transform: translateY(-1px); }
.cart-btn .count {
  position: absolute; top: -9px; right: -9px; background: var(--pink); color: #fff;
  border-radius: 99px; font-size: 11px; min-width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  border: 2px solid var(--paper);
}
.cart-btn .count[hidden] { display: none; }

/* ---- marquee ticker (MTV vibes) ---- */
.ticker {
  overflow: hidden; white-space: nowrap;
  background: var(--ink); color: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 8px 0; font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticker-track { display: inline-block; animation: ticker 28s linear infinite; }
.ticker-track em { font-style: normal; color: var(--gold); padding: 0 14px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- hero: transparent over the sky ---- */
.hero {
  position: relative;
  min-height: min(64vh, 560px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
}
.stars {
  position: absolute; inset: -100% 0 0 0;
  background-repeat: repeat;
  animation: starfall linear infinite;
}
.stars-a {
  background-image: radial-gradient(1.4px 1.4px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 140px 90px, #ffd9ec 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 80px 160px, #fff 50%, transparent 51%);
  background-size: 200px 200px;
  animation-duration: 60s; opacity: 0.9;
}
.stars-b {
  background-image: radial-gradient(2px 2px at 60px 50px, var(--gold) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 180px 140px, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 120px 220px, #ffc0da 50%, transparent 51%);
  background-size: 260px 260px;
  animation-duration: 38s; opacity: 0.85;
}
.stars-c {
  background-image: radial-gradient(2.6px 2.6px at 100px 80px, #fff 50%, transparent 51%),
    radial-gradient(2.2px 2.2px at 220px 200px, var(--teal) 50%, transparent 51%);
  background-size: 320px 320px;
  animation-duration: 24s; opacity: 0.8;
}
@keyframes starfall {
  from { transform: translateY(0); }
  to { transform: translateY(50%); }
}
.scanlines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) { .stars { animation: none; } }

/* ---- floating digital paper sheet ---- */
.paper {
  max-width: 1280px;
  margin: 0 auto 70px;
  width: calc(100% - clamp(24px, 6vw, 120px));
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; color: #fff; }
.brandmark-hero {
  font-size: clamp(40px, 8.4vw, 120px);
  color: #fff;
  filter: drop-shadow(0.05em 0.06em 0 var(--pink)) drop-shadow(0 14px 40px rgba(0,0,0,0.55));
}
.brandmark-hero .bm-cap, .brandmark-hero .bm-dot {
  background: var(--sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tagline {
  margin-top: 26px; font-size: clamp(15px, 2.2vw, 20px); font-weight: 500;
  color: #f3e9ff; text-shadow: 0 1px 12px rgba(36,20,54,0.7);
}
.hero .cta {
  display: inline-block; margin-top: 30px;
  background: var(--sunset); color: var(--ink);
  font-weight: 700; font-size: 16px; letter-spacing: 0.04em;
  padding: 14px 34px; border-radius: 99px; border: 2px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero .cta:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--ink); }

/* ---- collections ---- */
.collection { max-width: 1200px; margin: 0 auto; padding: 70px 28px 30px; }
.collection-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.collection-head .script {
  font-family: var(--font-script); font-size: clamp(26px, 4vw, 42px); color: var(--pink);
}
.collection-head h2 {
  font-family: var(--font-display); font-size: clamp(40px, 7vw, 76px);
  letter-spacing: 0.01em; text-transform: uppercase; line-height: 1;
}
.collection-tagline { color: var(--muted); font-size: 15.5px; margin-bottom: 26px; }
.collection-rule {
  height: 5px; border: none; border-radius: 99px; background: var(--sunset);
  margin-bottom: 30px;
}

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translate(-2px, -4px) rotate(-0.4deg); box-shadow: 10px 12px 0 var(--ink); }
.card .imgwrap { position: relative; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-bottom: 2px solid var(--ink); }
.card .price-tag {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--sunset); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 99px;
  font-weight: 700; font-size: 15px; padding: 5px 14px;
  transform: rotate(-3deg);
}
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.02em; text-transform: uppercase; }
.card-body .desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 26px; height: 26px; border-radius: 99px; border: 2px solid var(--ink); padding: 0;
  transition: transform 0.15s;
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--pink); }
.swatch:disabled { opacity: 0.25; cursor: not-allowed; }
.stock-note { font-size: 12.5px; color: var(--muted); min-height: 16px; font-weight: 600; }
.stock-note.low { color: var(--pink); }
.add-btn {
  border: 2px solid var(--ink); background: var(--ink); color: var(--gold); border-radius: 12px;
  padding: 12px; font-weight: 700; font-size: 14.5px; letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
}
.add-btn:hover { background: var(--sunset); color: var(--ink); }
.add-btn:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }

/* next drop teaser */
.teaser {
  max-width: 1200px; margin: 40px auto 0; padding: 0 28px 80px; text-align: center;
}
.teaser-inner {
  border: 2px dashed var(--ink); border-radius: var(--radius); padding: 46px 20px;
  background: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,45,126,0.05) 18px 36px);
}
.teaser .script { font-family: var(--font-script); font-size: 34px; color: var(--orange); }
.teaser h3 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 46px); text-transform: uppercase; margin-top: 2px; }
.teaser p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* ---- cart drawer ---- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(36, 20, 54, 0.5); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 100;
  background: var(--paper); border-left: 2px solid var(--ink);
  transform: translateX(100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
body.cart-open .drawer { transform: translateX(0); }
body.cart-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 2px solid var(--ink); }
.drawer-head h2 { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; }
.drawer-head button { border: none; background: none; font-size: 28px; line-height: 1; color: var(--ink); }
.drawer-items { flex: 1; overflow-y: auto; padding: 14px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-line { display: flex; gap: 12px; align-items: center; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 10px; }
.cart-line img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cart-line .info { flex: 1; }
.cart-line .info b { font-size: 14.5px; }
.cart-line .info small { display: block; color: var(--muted); font-size: 12.5px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--ink); background: var(--card); font-weight: 700; }
.qty button:hover { background: var(--gold); }
.drawer-foot { padding: 18px 22px; border-top: 2px solid var(--ink); }
.total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.checkout-btn {
  width: 100%; border: 2px solid var(--ink); background: var(--sunset); color: var(--ink);
  border-radius: 14px; padding: 15px; font-weight: 700; font-size: 16px; letter-spacing: 0.03em;
  box-shadow: 0 4px 0 var(--ink); transition: transform 0.15s, box-shadow 0.15s;
}
.checkout-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.checkout-btn:disabled { background: var(--line); color: var(--muted); box-shadow: none; border-color: var(--line); }
.empty-cart { text-align: center; color: var(--muted); margin-top: 40px; font-size: 15px; }

/* ---- checkout modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(36, 20, 54, 0.6); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; padding: 28px;
  width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px;
  box-shadow: 8px 8px 0 var(--ink);
}
.modal h2 { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; }
.modal label { font-size: 13px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 5px; }
.modal input, .modal textarea {
  width: 100%; border: 2px solid var(--ink); border-radius: 12px; padding: 11px 13px;
  font: inherit; font-size: 15px; background: var(--card); color: var(--ink);
}
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,45,126,0.2); }
.form-error { color: var(--pink); font-size: 13.5px; font-weight: 700; min-height: 17px; }
.modal .checkout-btn { margin-top: 4px; }
.success-box { text-align: center; padding: 10px 0 6px; }
.success-box .big { font-size: 52px; }
.success-box h2 { margin: 8px 0 6px; }
.success-box p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---- footer: floats on the sky, closes the loop ---- */
footer {
  color: var(--paper);
  text-align: center; padding: 20px 24px 70px;
}
.brandmark-foot { font-size: 34px; color: var(--paper); }
.brandmark-foot .bm-cap, .brandmark-foot .bm-dot {
  background: var(--sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
footer p { color: #b9a9c9; font-size: 13px; margin-top: 14px; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 640px) {
  header { padding: 12px 16px; }
  .collection { padding: 50px 16px 20px; }
  .grid { gap: 18px; }
}
