:root {
  --bg: #0d0b12;
  --panel: #17141f;
  --panel-2: #211c2c;
  --text: #f4f1ea;
  --muted: #a39cb3;
  --gold: #f5c518;
  --purple: #7b2cbf;
  --red: #e63946;
  --green: #2ecc71;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: radial-gradient(1200px 600px at 80% -10%, #2a1446 0%, transparent 60%), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
h1, h2, h3, .logo { font-family: Bungee, Impact, sans-serif; font-weight: 400; letter-spacing: .5px; }
.accent { color: var(--gold); }
[hidden] { display: none !important; }

.event-bar {
  background: repeating-linear-gradient(45deg, var(--purple) 0 20px, #5a1d91 20px 40px);
  text-align: center;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
}

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 11, 18, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid #ffffff12;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; text-decoration: none; }
.logo-hat { font-size: 26px; }
.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.site-header nav a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 800 15px Inter, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .1s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: #111; }
.btn-primary:hover:not(:disabled) { background: #ffd84a; }
.btn-ghost { border-color: #ffffff40; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }
.btn-block { width: 100%; }
.cart-btn {
  background: var(--panel-2); color: var(--text); border: 1px solid #ffffff20;
  padding: 10px 16px; border-radius: 999px; font: 700 14px Inter, sans-serif; cursor: pointer;
}
.cart-count {
  display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 6px;
  background: var(--gold); color: #111; border-radius: 999px; text-align: center;
}
.icon-btn { background: none; border: 0; color: var(--text); font-size: 20px; cursor: pointer; padding: 6px; }

.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 48px);
  max-width: 1200px; margin: 0 auto;
}
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; margin: 0 0 16px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 480px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art svg { width: 100%; max-width: 440px; display: block; margin: 0 auto; filter: drop-shadow(0 30px 40px #0008); animation: bob 4s ease-in-out infinite; }
.hero-art img { width: 100%; max-width: 440px; display: block; margin: 0 auto; border-radius: 24px; box-shadow: 0 30px 60px #0009; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

.sp-marquee {
  display: block; overflow: hidden; margin: 8px -12px 32px; padding: 14px 0;
  background: linear-gradient(90deg, #0051c8, #007aff 50%, #0051c8);
  border-top: 3px solid #050b1f; border-bottom: 3px solid #050b1f;
  box-shadow: 0 12px 40px #007aff40; transform: rotate(-1.5deg);
  color: #fff; text-decoration: none;
}
.sp-marquee-track { display: flex; width: max-content; animation: sp-scroll 28s linear infinite; }
.sp-marquee:hover .sp-marquee-track { animation-play-state: paused; }
.sp-marquee-group { display: flex; flex-shrink: 0; }
.sp-marquee-item {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; white-space: nowrap;
  font-family: Bungee, sans-serif; font-size: clamp(16px, 2vw, 22px); letter-spacing: .02em;
}
.sp-marquee-item::after { content: "✦"; margin-left: 56px; color: #ffffffaa; font-size: .8em; }
.sp-marquee-item strong { font-weight: 400; color: #fff; text-shadow: 0 2px 0 #050b1f; }
.sp-marquee-item img { width: 28px; height: 28px; filter: drop-shadow(0 2px 4px #050b1f80); }
@keyframes sp-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sp-marquee-track { animation: none; } }

.shop, .how { max-width: 1200px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 64px; }
.shop h2, .how h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid #ffffff10; border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: #f5c51855; }
.card-art { background: var(--panel-2); aspect-ratio: 1; display: grid; place-items: center; padding: 12px; }
.card-art svg, .card-art img { width: 100%; height: 100%; object-fit: contain; }
.card-art img { border-radius: 10px; }
.cart-thumb img { border-radius: 6px; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card-title h3 { margin: 0; font-size: 17px; }
.price { color: var(--gold); font-weight: 800; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.size {
  min-width: 40px; padding: 6px 8px; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid #ffffff30; font: 700 13px Inter, sans-serif;
}
.size.active { background: var(--text); color: #111; border-color: var(--text); }
.size.unavailable { opacity: .35; text-decoration: line-through; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid #ffffff30; box-shadow: inset 0 0 0 2px var(--panel);
}
.swatch.active { border-color: var(--gold); }
.add-btn { padding: 12px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { background: var(--panel); border-radius: var(--radius); padding: 22px; border: 1px solid #ffffff10; }
.step span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: #111; font-weight: 800;
}
.step h3 { margin: 12px 0 6px; }
.step p { margin: 0; color: var(--muted); }
.fine { color: var(--muted); font-size: 13px; margin-top: 18px; }

.site-footer { text-align: center; padding: 32px 16px; color: var(--muted); border-top: 1px solid #ffffff12; font-size: 14px; }
.site-footer p { margin: 4px 0; }

.sp-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff;
  box-shadow: 0 4px 14px #007aff33; text-decoration: none; font-size: 14px; line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.sp-badge:hover { transform: translateY(-1px); box-shadow: 0 6px 18px #007aff55; }
.sp-badge img { width: 24px; height: 24px; display: block; }
.sp-badge-by { color: #5b6478; font-weight: 500; }
.sp-badge-name { color: #007aff; font-weight: 800; letter-spacing: -0.03em; }
.sp-badge-row { text-align: center; }
.sp-badge-sm { font-size: 12px; padding: 5px 11px 5px 6px; gap: 6px; }
.sp-badge-sm img { width: 18px; height: 18px; }

.overlay { position: fixed; inset: 0; background: #000a; z-index: 20; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--panel); z-index: 21; display: flex; flex-direction: column;
  border-left: 1px solid #ffffff15; animation: slide .2s ease;
}
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head, .drawer-foot { padding: 18px 20px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ffffff12; }
.drawer-head h2 { margin: 0; font-size: 22px; }
.drawer-foot { border-top: 1px solid #ffffff12; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-empty { color: var(--muted); text-align: center; margin-top: 40px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #ffffff0d; }
.cart-thumb { width: 64px; height: 64px; background: var(--panel-2); border-radius: 10px; padding: 4px; }
.cart-thumb svg, .cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line h4 { margin: 0; font-size: 14px; }
.cart-line small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.qty button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid #ffffff30; background: none; color: var(--text); cursor: pointer; }
.total-row { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 14px; }

.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: #000c; padding: 16px; overflow-y: auto; }
.modal-card {
  position: relative; width: min(480px, 100%); background: var(--panel); border-radius: 20px;
  padding: 28px; border: 1px solid #ffffff15; max-height: calc(100vh - 32px); overflow-y: auto;
}
.modal-card h2 { margin: 0 0 18px; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-card label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.modal-card input, .modal-card select, .modal-card textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px; border-radius: 10px;
  border: 1px solid #ffffff25; background: var(--panel-2); color: var(--text); font: 15px Inter, sans-serif;
}
.summary { background: var(--panel-2); border-radius: 12px; padding: 14px; margin: 6px 0 18px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; padding: 2px 0; }
.summary .grand { border-top: 1px solid #ffffff20; margin-top: 8px; padding-top: 8px; font-weight: 800; font-size: 16px; }

.modal-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.order-id { text-align: center; font-family: Bungee, sans-serif; color: var(--gold); font-size: 20px; margin: 0 0 14px; }
.status { text-align: center; padding: 10px; border-radius: 10px; background: var(--panel-2); font-weight: 600; margin-bottom: 14px; }
.status.err { background: #e6394622; color: var(--red); }
.payment-placeholder { border: 2px dashed #ffffff30; border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); }
.payment-placeholder p { margin: 0 0 12px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #111; padding: 12px 20px; border-radius: 999px;
  font-weight: 800; z-index: 40; animation: pop .2s ease;
}
@keyframes pop { from { transform: translate(-50%, 20px); opacity: 0; } }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art svg, .hero-art img { max-width: 260px; }
  .site-header nav a { display: none; }
}
