/* CyberMoon Shop — black / red dossier theme */

:root {
  --bg: #0b0b0a;
  --bg-2: #121211;
  --bg-3: #191917;
  --line: #2a2926;
  --line-2: #3d3b35;
  --bone: #ece7d8;
  --ash: #a09b8f;
  --dim: #6e6a60;
  --red: #e8322b;
  --red-2: #c9241d;
  --on-red: #160403;
  --ok: #8fcf8f;

  --mono: 'Courier Prime', 'Courier New', Courier, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --nav-h: 64px;
  --max: 1200px;
  --r: 2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--bone);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--mono); font-weight: 700; line-height: 1.2; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.page { display: none; }
.page.active { display: block; }

/* ─── Marquee ─── */
.marquee {
  background: var(--red);
  color: var(--on-red);
  height: 34px;
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marquee-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 45s linear infinite; }
.marquee-track span { padding-right: 56px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 4px; }
.nav-right { justify-content: flex-end; gap: 6px; }
.nav-link {
  font-family: var(--mono); font-size: 13px; color: var(--ash);
  padding: 6px 10px; border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--bone); }
.nav-link.active { color: var(--bone); border-bottom-color: var(--red); }
.logo { font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; white-space: nowrap; }
.logo span { color: var(--red); }
.nav-search {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 5px 10px; width: 150px; color: var(--dim);
}
.nav-search input {
  background: none; border: 0; outline: 0; width: 100%;
  font-family: var(--mono); font-size: 12px; color: var(--bone);
}
.nav-search input::placeholder { color: var(--dim); }
.nav-search:focus-within { border-color: var(--bone); }
.cart-btn {
  position: relative; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: var(--r); color: var(--bone);
}
.cart-btn:hover { border-color: var(--red); }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--red); color: var(--on-red);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-strip { display: none; }

.user-btn {
  display: none; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 5px 10px;
}
.avatar {
  width: 22px; height: 22px; background: var(--red); color: var(--on-red);
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.account-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg-2); border: 1px solid var(--line-2);
  min-width: 170px; padding: 6px; z-index: 200;
}
.account-dropdown button {
  display: block; width: 100%; text-align: left;
  font-family: var(--mono); font-size: 12px; padding: 8px 10px; color: var(--ash);
}
.account-dropdown button:hover { background: var(--bg-3); color: var(--bone); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-weight: 700; font-size: 13px; line-height: 1.2;
  padding: 10px 18px; border: 1px solid transparent; border-radius: var(--r);
  white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-red { background: var(--red); color: var(--on-red); border-color: var(--red); }
.btn-red:hover { background: var(--red-2); border-color: var(--red-2); }
.btn-line { border-color: var(--line-2); color: var(--bone); }
.btn-line:hover { border-color: var(--bone); }
.btn-ghost { color: var(--ash); }
.btn-ghost:hover { color: var(--bone); }
.btn-lg { padding: 13px 26px; font-size: 14px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ─── Hero ─── */
.hero { padding: 24px 0 40px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner {
  position: relative; max-width: 860px; margin: 0 auto; padding: 32px 40px; text-align: center;
}
.hero-inner::before, .hero-inner::after {
  content: ''; position: absolute; width: 28px; height: 28px; border: 2px solid var(--red);
}
.hero-inner::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-inner::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero-kicker { font-family: var(--mono); font-size: 13px; color: var(--red); margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 20px; }
.redact { position: relative; display: inline-block; background: var(--red); color: #000; padding: 0 0.3em; }
.redact-size { visibility: hidden; }
.redact-type { position: absolute; left: 0; right: 0; top: 0; text-align: center; white-space: nowrap; }
.redact-type::after {
  content: ''; display: inline-block; width: 0.3em; height: 0.7em;
  background: #000; margin-left: 0.05em; margin-right: -0.35em; vertical-align: -0.04em;
  animation: blink 1s steps(1) infinite;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { max-width: 520px; margin: 0 auto 30px; color: var(--ash); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.stamp {
  position: absolute; top: -6px; right: -24px; transform: rotate(7deg);
  border: 2px solid var(--red); color: var(--red); background: var(--bg);
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 3px 12px;
  pointer-events: none;
}

/* ─── Trust strip ─── */
.trust { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  padding: 16px 24px; border-right: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--ash);
  display: flex; align-items: center; gap: 10px;
}
.trust-item:last-child { border-right: 0; }
.trust-item::before { content: ''; width: 7px; height: 7px; background: var(--red); flex-shrink: 0; }

/* ─── Category chips ─── */
.cats-bar { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: var(--nav-h); z-index: 90; }
.cats-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 54px;
  display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.cats-inner::-webkit-scrollbar { display: none; }
.chip {
  font-family: var(--mono); font-size: 12px; white-space: nowrap;
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 6px 12px; color: var(--ash); transition: border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--bone); color: var(--bone); }
.chip.active { background: var(--bone); border-color: var(--bone); color: var(--bg); }

/* ─── Section headers ─── */
.section-head { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; margin-bottom: 6px; }
.section-head p { color: var(--ash); max-width: 520px; }

.promo {
  border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--bg-2);
  padding: 16px 20px; margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.promo strong { font-family: var(--mono); display: block; font-size: 14px; }
.promo span { color: var(--ash); font-size: 13px; }

/* ─── Product cards ─── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; cursor: pointer; transition: border-color 0.15s;
}
.card:hover { border-color: var(--red); }
.thumb {
  position: relative; aspect-ratio: 16 / 9; background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-code { font-family: var(--mono); font-size: 22px; letter-spacing: 0.08em; color: var(--line-2); }
.thumb.ph::before, .thumb.ph::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid var(--red); }
.thumb.ph::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.thumb.ph::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--red); color: var(--on-red);
  font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 8px;
}
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.card-name { font-family: var(--mono); font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.card-desc {
  color: var(--ash); font-size: 13px; line-height: 1.55; margin-bottom: 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.price { font-family: var(--mono); font-size: 18px; font-weight: 700; }
.price .old { display: block; font-size: 12px; font-weight: 400; color: var(--dim); text-decoration: line-through; }
.card-actions { display: flex; align-items: center; gap: 10px; }
.rating { font-family: var(--mono); font-size: 12px; color: var(--ash); }
.add-btn {
  width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: var(--r);
  font-family: var(--mono); font-size: 18px; line-height: 1; color: var(--bone);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.add-btn:hover { background: var(--red); border-color: var(--red); color: var(--on-red); }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--ash); border: 1px dashed var(--line-2); }
.empty strong { font-family: var(--mono); display: block; color: var(--bone); margin-bottom: 6px; }

/* ─── Spotlight ─── */
.spotlight {
  border: 1px solid var(--line-2); background: var(--bg-2);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 40px 44px;
}
.spotlight-label { font-family: var(--mono); font-size: 12px; color: var(--red); margin-bottom: 10px; }
.spotlight h3 { font-size: 28px; margin-bottom: 10px; }
.spotlight p { color: var(--ash); max-width: 460px; margin-bottom: 20px; }
.spotlight-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.spotlight-price { text-align: right; }
.spotlight-price .amount { font-family: var(--mono); font-size: 44px; font-weight: 700; }
.spotlight-price .old { color: var(--dim); text-decoration: line-through; font-family: var(--mono); }

.cta { text-align: center; border-top: 1px solid var(--line); }
.cta h2 { font-size: 32px; margin-bottom: 10px; }
.cta p { color: var(--ash); max-width: 440px; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ─── Store layout ─── */
.store-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.sidebar {
  position: sticky; top: calc(var(--nav-h) + 54px + 20px);
  background: var(--bg-2); border: 1px solid var(--line); padding: 20px;
}
.side-sec { margin-bottom: 24px; }
.side-sec:last-child { margin-bottom: 0; }
.side-title { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--bone); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.side-link { display: flex; justify-content: space-between; width: 100%; text-align: left; font-size: 13px; color: var(--ash); padding: 5px 0; }
.side-link:hover, .side-link.active { color: var(--bone); }
.side-link.active { font-weight: 600; }
.check { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 13px; color: var(--ash); }
.check label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { accent-color: var(--red); }
.check small { color: var(--dim); font-size: 11px; }
.price-row { display: flex; align-items: center; gap: 8px; }
.filter-toggle { display: none; margin-bottom: 16px; }
.overlay-filter { display: none; position: fixed; inset: 0; z-index: 190; background: rgba(0, 0, 0, 0.7); }
.overlay-filter.open { display: block; }
.sort-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.results { font-family: var(--mono); font-size: 13px; color: var(--ash); }
.sort-bar label { font-size: 13px; color: var(--ash); margin-right: 8px; }

/* ─── Forms ─── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-family: var(--mono); font-size: 12px; color: var(--ash); }
.input {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 10px 12px; font-family: var(--sans); font-size: 14px; color: var(--bone); outline: 0;
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--red); }
.input::placeholder { color: var(--dim); }
.input.err { border-color: var(--red); }
select.input { cursor: pointer; }
textarea.input { resize: vertical; min-height: 140px; }
.field-err { color: var(--red); font-size: 12px; display: none; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }

/* ─── Product detail ─── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--dim); padding: 4px 0 8px; }
.breadcrumb button:hover { color: var(--bone); }
.detail-title { font-size: 32px; margin: 12px 0 22px; }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.detail-thumb { aspect-ratio: 16 / 9; }
.detail-thumb.thumb { border: 1px solid var(--line); margin-bottom: 14px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tag { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-2); color: var(--ash); padding: 2px 10px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab-btn { font-family: var(--mono); font-size: 13px; font-weight: 700; padding: 10px 18px; color: var(--dim); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-btn.active { color: var(--bone); border-bottom-color: var(--red); }
.tab-btn:hover { color: var(--bone); }
.tab-content { display: none; color: var(--ash); line-height: 1.75; }
.tab-content.active { display: block; }
.tab-content p { margin-bottom: 14px; }
.tab-content strong { color: var(--bone); }
.feature-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feature-list li::before { content: ''; width: 7px; height: 7px; background: var(--red); margin-top: 8px; flex-shrink: 0; }
.notice {
  border: 1px solid var(--line-2); background: var(--bg-2);
  padding: 12px 16px; font-size: 13px; color: var(--ash); margin-bottom: 20px;
}
.notice strong { font-family: var(--mono); color: var(--bone); }
.notice.warn { border-left: 3px solid var(--red); }
.detail-side { position: sticky; top: calc(var(--nav-h) + 20px); }
.detail-card { background: var(--bg-2); border: 1px solid var(--line-2); padding: 24px; }
.detail-price { font-family: var(--mono); font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.detail-old { font-size: 13px; color: var(--dim); text-decoration: line-through; margin-bottom: 18px; }
.detail-card .btn { margin-bottom: 10px; }
.meta-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.meta-row span:first-child { color: var(--dim); }
.small-note { font-size: 12px; color: var(--dim); line-height: 1.6; margin-top: 14px; }

/* ─── Checkout ─── */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.panel { background: var(--bg-2); border: 1px solid var(--line); padding: 28px; margin-bottom: 16px; }
.panel-title { font-family: var(--mono); font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.summary { position: sticky; top: calc(var(--nav-h) + 20px); }
.order-item { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.order-thumb { width: 52px; height: 52px; flex-shrink: 0; background: var(--bg-3); border: 1px solid var(--line); overflow: hidden; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-name { font-size: 13px; font-weight: 500; line-height: 1.4; }
.order-cat { font-size: 11px; color: var(--dim); }
.order-price { font-family: var(--mono); font-weight: 700; margin-left: auto; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.order-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ash); margin-bottom: 8px; }
.order-total { display: flex; justify-content: space-between; font-family: var(--mono); font-weight: 700; font-size: 20px; margin-top: 12px; }
.coupon-row { display: flex; gap: 10px; }
.coupon-msg { font-size: 12px; margin-top: 8px; min-height: 18px; }

.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.pay-card {
  border: 1px solid var(--line-2); background: var(--bg); padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  transition: border-color 0.15s;
}
.pay-card:hover { border-color: var(--red); }
.pay-card.disabled { opacity: 0.5; }
.pay-card.disabled:hover { border-color: var(--line-2); }
.pay-icon { width: 34px; height: 34px; color: var(--red); }
.pay-icon svg { width: 100%; height: 100%; }
.pay-title { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.pay-desc { font-size: 12px; color: var(--ash); line-height: 1.5; min-height: 48px; }

.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; margin: 0 auto 14px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Page headers / prose ─── */
.page-head { border-bottom: 1px solid var(--line); padding: 56px 0 40px; text-align: center; }
.page-head h1 { font-size: 34px; margin-bottom: 8px; }
.page-head p { color: var(--ash); }
.page-head .kicker { font-family: var(--mono); font-size: 13px; color: var(--red); margin-bottom: 12px; }
.prose { max-width: 720px; margin: 0 auto; color: var(--ash); line-height: 1.85; }
.prose h2 { font-size: 18px; color: var(--bone); margin: 34px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul { padding-left: 20px; margin-bottom: 16px; list-style: square; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--red); }
.prose strong { color: var(--bone); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.info-card { background: var(--bg-2); border: 1px solid var(--line); padding: 22px; }
.info-card h3 { font-size: 15px; margin-bottom: 8px; }
.info-card p { font-size: 13px; color: var(--ash); }

.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--bg-2); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-family: var(--mono); font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 18px 16px; color: var(--ash); font-size: 14px; line-height: 1.75; }
.contact-wrap { max-width: 600px; margin: 0 auto; }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.8);
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 20px 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
#welcome-popup, #checkout-choice-modal { align-items: center; padding: 20px; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  position: relative; width: 100%; max-width: 420px; max-height: 88vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); padding: 36px;
  transform: translateY(14px); transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: none; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; color: var(--ash); font-size: 18px; }
.modal-close:hover { color: var(--bone); }
.modal h2 { font-size: 22px; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--ash); margin-bottom: 22px; }
.modal-tabs { display: flex; border: 1px solid var(--line-2); margin-bottom: 20px; }
.modal-tab { flex: 1; padding: 8px; text-align: center; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ash); cursor: pointer; }
.modal-tab.active { background: var(--bone); color: var(--bg); }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-foot { font-size: 12px; color: var(--dim); text-align: center; margin-top: 14px; }
.modal-foot button { color: var(--ash); text-decoration: underline; font-size: 12px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 60px; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; color: var(--ash); }
.welcome-list { margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ash); }
.welcome-list li { display: flex; gap: 10px; }
.welcome-list li::before { content: ''; width: 7px; height: 7px; background: var(--red); margin-top: 8px; flex-shrink: 0; }

/* ─── Cart drawer ─── */
.cart-overlay { position: fixed; inset: 0; z-index: 190; background: rgba(0, 0, 0, 0.7); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 200; width: 380px; max-width: 100vw;
  background: var(--bg-2); border-left: 1px solid var(--line-2);
  transform: translateX(100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: none; }
.cart-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cart-head h3 { font-size: 16px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-item { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 52px; height: 52px; flex-shrink: 0; background: var(--bg-3); border: 1px solid var(--line); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 500; }
.cart-item-price { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.cart-remove { color: var(--dim); font-size: 16px; padding: 4px; }
.cart-remove:hover { color: var(--red); }
.cart-empty { text-align: center; padding: 64px 16px; color: var(--ash); font-size: 13px; }
.cart-foot { padding: 18px 22px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--mono); font-weight: 700; font-size: 18px; margin-bottom: 14px; }

/* ─── Toast ─── */
.toasts { position: fixed; top: 90px; left: 50%; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--bone); color: var(--bg); font-family: var(--mono); font-size: 13px; font-weight: 700; padding: 10px 18px; border-radius: var(--r); animation: toastIn 0.2s ease both; }
.toast.error { background: var(--red); color: var(--on-red); }
.toast.info { background: var(--bg-3); color: var(--bone); border: 1px solid var(--line-2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 13px; color: var(--ash); max-width: 290px; margin-top: 12px; }
.footer-col h4 { font-size: 13px; margin-bottom: 14px; }
.footer-col button, .footer-col a { display: block; text-align: left; font-size: 13px; color: var(--ash); margin-bottom: 10px; }
.footer-col button:hover, .footer-col a:hover { color: var(--bone); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }

/* ─── Responsive ─── */
@media (max-width: 1000px) {
  .nav-search { display: none; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-price { text-align: left; }
}
@media (max-width: 900px) {
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-left { display: none; }
  .nav-right .nav-link { display: none; }
  .nav-strip {
    display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
    padding: 0 12px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-strip::-webkit-scrollbar { display: none; }
  .stamp { position: static; display: inline-block; margin-bottom: 16px; transform: rotate(-3deg); }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .store-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  #filter-drawer {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 200; width: 290px; overflow-y: auto;
    transform: translateX(-100%); transition: transform 0.25s ease;
  }
  #filter-drawer.open { transform: none; }
  .detail-grid, .checkout-layout { grid-template-columns: 1fr; }
  .detail-side, .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .hero { padding: 40px 0 44px; }
  .hero-inner { padding: 36px 20px; }
  .grid { grid-template-columns: 1fr; }
  .spotlight { padding: 28px 22px; }
  .panel { padding: 20px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .btn-ghost.hide-sm, .nav-right .btn-line.hide-sm { display: none; }
  .cart-btn { position: fixed; bottom: 18px; right: 16px; z-index: 150; width: 54px; height: 54px; background: var(--bg-2); border-color: var(--red); }
  .modal { padding: 28px 22px; }
  .pay-options { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .modal, .cart-drawer, .toast { transition: none; animation: none; }
}