:root {
  --bg: #0b0b0b;
  --surface: #151515;
  --surface-2: #1d1d1d;
  --line: #2a2a2a;
  --text: #f4f4f2;
  --muted: #a3a39d;
  --yellow: #ffd001;
  --yellow-ink: #141100;
  --danger: #ff6b5b;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(11, 11, 11, .82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: .04em; font-size: 18px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand em { font-style: normal; color: var(--yellow); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-weight: 600;
  transition: border-color .2s, transform .2s;
}
.cart-btn:hover { border-color: var(--yellow); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--yellow); color: var(--yellow-ink); font-size: 12px; font-weight: 800;
  display: inline-grid; place-items: center;
}
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.08); } }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  max-width: 1200px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) clamp(16px, 4vw, 40px) 48px;
}
.kicker { margin: 0 0 16px; color: var(--yellow); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.hero h1 { margin: 0; font-size: clamp(42px, 7vw, 84px); line-height: .98; letter-spacing: -.03em; font-weight: 900; }
.hero h1 span { color: var(--yellow); }
.lead { margin: 20px 0 32px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 32ch; }
.deadline { margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.deadline strong { color: var(--text); }
.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% -4% -6% 6%;
  background: radial-gradient(closest-side, rgba(255, 208, 1, .35), transparent);
  filter: blur(30px); z-index: 0;
}
.hero-art img { position: relative; z-index: 1; width: 100%; border-radius: 28px; box-shadow: var(--shadow); transform: rotate(2deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--yellow); color: var(--yellow-ink); }
.btn-primary:hover { background: #ffdc3d; }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--yellow); }
.btn-block { width: 100%; }

/* Steps */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px);
}
.steps li { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps span {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: var(--yellow-ink); font-weight: 900;
}
.steps strong { display: block; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

/* Collection */
.collection { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.loading, .closed-note { color: var(--muted); }
.closed-note { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: #3a3a3a; }
.card-media { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 1; background: #fff; overflow: hidden; cursor: zoom-in; }
.zoom {
  position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(11, 11, 11, .72); color: #fff; font-size: 18px;
  opacity: 0; transform: scale(.9); transition: opacity .2s, transform .2s;
}
.card-media:hover .zoom, .card-media:focus-visible .zoom { opacity: 1; transform: none; }
@media (hover: none) { .zoom { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px;
  background: rgba(0, 0, 0, .86); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; cursor: zoom-out;
}
.lightbox.show { opacity: 1; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(92vw, 900px); }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.lightbox figcaption { color: var(--muted); font-size: 14px; text-align: center; }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.tag {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(11, 11, 11, .78); color: #fff; font-size: 12px; font-weight: 600;
}
.card-body { display: flex; flex-direction: column; gap: 14px; padding: 18px; flex: 1; }
.card-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card-title h3 { margin: 0; font-size: 19px; }
.price { font-weight: 800; color: var(--yellow); white-space: nowrap; }
.detail { margin: -8px 0 0; color: var(--muted); font-size: 14px; }
.price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.unit-note { margin: 0; color: var(--muted); font-size: 13px; }

.sizes { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.sizes legend { font-size: 12px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; }
.sizes span {
  display: inline-grid; place-items: center; min-width: 46px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.sizes input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.sizes input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.sizes span:hover { border-color: var(--yellow); }
.card-actions { display: flex; gap: 10px; margin-top: auto; }
.card-actions .btn { flex: 1; padding: 12px 16px; white-space: nowrap; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 36px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--text); border-radius: 999px; }
.qty button:hover { color: var(--yellow); }
.qty output { min-width: 22px; text-align: center; font-weight: 700; }
.qty.small button { width: 30px; height: 32px; font-size: 16px; }

/* Footer */
.footer {
  display: flex; align-items: center; gap: 16px; justify-content: center;
  padding: 40px 16px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.footer img { border-radius: 12px; }
.footer strong { color: var(--text); }

/* Drawer */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.drawer {
  position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 20px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; margin: 0; }

.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #fff; }
.line-name { font-weight: 700; }
.line-meta { color: var(--muted); font-size: 13px; }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line-price { font-weight: 700; }
.remove { border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.remove:hover { color: var(--danger); }
.lines.compact .line { grid-template-columns: 1fr auto; padding: 10px 14px; text-align: left; }

.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px; border-top: 1px solid var(--line); font-size: 18px; }
.total-row strong { font-size: 24px; color: var(--yellow); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input {
  padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  font-weight: 400; transition: border-color .2s;
}
.form input:focus { outline: none; border-color: var(--yellow); }
.form input.invalid { border-color: var(--danger); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }
.captcha { min-height: 65px; }
.terms { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; cursor: pointer; }
.terms input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--yellow); }
.terms a { color: var(--yellow); }
.terms.invalid span { color: var(--danger); }
.footer a { color: var(--yellow); }

/* AGB */
.back-btn { padding: 9px 16px; font-size: 14px; }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 40px) 64px; }
.legal h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.02em; line-height: 1.05; }
.legal-meta { margin: 0 0 32px; color: var(--muted); }
.legal h2 { margin: 32px 0 8px; font-size: 19px; }
.legal p { margin: 0 0 12px; color: #d6d6d0; }
.error { margin: 0; color: var(--danger); font-size: 14px; font-weight: 600; }

.done { text-align: center; align-items: stretch; }
.done h3 { margin: 0; font-size: 24px; }
.check { width: 64px; height: 64px; margin: 8px auto 0; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.check svg { width: 32px; height: 32px; stroke: var(--yellow-ink); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.order-id { margin: 0; color: var(--muted); }
.order-id strong { color: var(--text); font-size: 18px; letter-spacing: .04em; }
.pay-card { text-align: left; padding: 18px; border-radius: 16px; background: var(--yellow); color: var(--yellow-ink); }
.pay-title { margin: 0 0 10px; font-weight: 800; font-size: 17px; }
.pay-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 14px; }
.pay-card dt { opacity: .7; }
.pay-card dd { margin: 0; font-weight: 800; }
.pay-card .btn-ghost { border-color: rgba(20, 17, 0, .35); color: var(--yellow-ink); }
.pay-card .btn-ghost:hover { border-color: var(--yellow-ink); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.locked { overflow: hidden; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; order: -1; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cart-label { display: none; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
