:root {
  --bg: #070815;
  --surface: #0D1126;
  --paper: #121736;
  --ink: #F2F5FF;
  --muted: #A5B0DC;
  --accent: #8B5CF6;
  --accent-hover: #38BDF8;
  --moss: #22D3EE;
  --border: rgba(139, 92, 246, 0.34);
  --glow: 0 0 18px rgba(139, 92, 246, 0.45), 0 0 28px rgba(56, 189, 248, 0.25);
  --radius: 10px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 64ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: #38BDF8; margin-bottom: .6rem; display: block; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.2rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-head p { margin: 0; }

/* Header & Collapsible Mobile Menu */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(7, 8, 21, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .85rem; min-height: 72px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; display: flex; flex-direction: column; line-height: 1.1; color: var(--ink); }
.brand small { font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #A78BFA; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--muted); padding: .35rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover, .nav-links a.active { color: #38BDF8; border-bottom-color: #8B5CF6; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.cart-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--paper); color: var(--ink); font-size: .86rem; font-weight: 600; cursor: pointer; }
.cart-btn:hover { border-color: #38BDF8; color: #38BDF8; }
.cart-count { background: #8B5CF6; color: #fff; font-size: .72rem; min-width: 1.2rem; height: 1.2rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .35rem; }
.cart-count:empty { display: none; }

.menu-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--paper); color: #38BDF8; font-size: 1.2rem; cursor: pointer; }
.menu-toggle:hover { border-color: #38BDF8; box-shadow: var(--glow); }

@media (max-width: 900px) {
  .header-inner { padding: .6rem 0; }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 .25rem; border-top: 1px solid var(--border); margin-top: .5rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .65rem .25rem; border-bottom: 1px solid rgba(139, 92, 246, 0.14); }
  .nav-links a:last-child { border-bottom: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .72rem 1.35rem; border-radius: 999px; font-family: var(--sans); font-size: .9rem; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-primary { background: linear-gradient(135deg, #6366F1, #A855F7); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: linear-gradient(135deg, #38BDF8, #8B5CF6); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-secondary { background: rgba(18, 23, 54, 0.8); border-color: var(--border); color: var(--ink); }
.btn-secondary:hover { border-color: #38BDF8; color: #38BDF8; }
.btn-sm { padding: .45rem .9rem; font-size: .84rem; }
.text-link { font-size: .9rem; font-weight: 600; color: #38BDF8; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: #A78BFA; }

/* Hero */
.hero { padding: 4.2rem 0 3.8rem; border-bottom: 1px solid var(--border); background: radial-gradient(circle at 80% 15%, rgba(56, 189, 248, 0.12), transparent 45%), radial-gradient(circle at 20% 25%, rgba(139, 92, 246, 0.16), transparent 50%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 0 28px rgba(139, 92, 246, 0.18); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Grids & Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-2px); border-color: #38BDF8; box-shadow: 0 10px 26px rgba(56, 189, 248, 0.14); }
.card-media { aspect-ratio: 4/3; background: var(--surface); overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.card-title { font-family: var(--serif); font-size: 1.4rem; margin: 0; color: var(--ink); }
.card-foot { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(139, 92, 246, 0.16); color: #C4B5FD; border: 1px solid var(--border); }
.ribbon { position: absolute; top: .75rem; left: .75rem; background: linear-gradient(135deg, #6366F1, #A855F7); color: #fff; font-size: .72rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; box-shadow: var(--glow); }

/* Chips & Controls */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip { padding: .42rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--paper); color: var(--ink); font-size: .86rem; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"], .chip.active { background: linear-gradient(135deg, #6366F1, #A855F7); color: #fff; border-color: #A855F7; }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.swatch { width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--border); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { border-color: #38BDF8; box-shadow: 0 0 0 2px var(--bg) inset; }
.swatch-dot { width: 12px; height: 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); display: inline-block; }
.price-row { display: flex; align-items: baseline; gap: .5rem; font-weight: 600; color: #38BDF8; }
.price-was { text-decoration: line-through; color: var(--muted); font-weight: 400; font-size: .9rem; }

/* Forms & Inputs */
.form-stack { display: flex; flex-direction: column; gap: 1.15rem; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); font-family: var(--sans); font-size: .95rem; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #38BDF8; outline-offset: 1px; }
.field-err, .alert { color: #F87171; font-size: .86rem; margin: .2rem 0 0; }
.success-box { background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.45); color: #67E8F9; padding: 1.25rem; border-radius: var(--radius); }
.status-msg { padding: 1.5rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* Detail layouts */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.prose { max-width: 70ch; }
.prose p { color: var(--ink); margin-bottom: 1.1rem; }
.prose blockquote { border-left: 3px solid #8B5CF6; margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: #C4B5FD; }
.cover-band { border-radius: var(--radius); overflow: hidden; max-height: 460px; margin: 1.5rem 0 2rem; border: 1px solid var(--border); }
.cover-band img { width: 100%; height: 100%; object-fit: cover; }

/* Cart Drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(4, 5, 15, 0.72); display: flex; justify-content: flex-end; }
.drawer-backdrop[hidden] { display: none; }
.drawer { width: min(420px, 100%); background: var(--surface); height: 100%; display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.drawer-head { padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.drawer-body { padding: 1.2rem 1.4rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.drawer-foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--border); background: var(--paper); display: flex; flex-direction: column; gap: .75rem; }
.cart-line { display: grid; grid-template-columns: 64px 1fr; gap: .9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--surface); }
.qty-row { display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.qty-row button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); background: var(--paper); color: var(--ink); cursor: pointer; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-links { display: flex; flex-direction: column; gap: .45rem; font-size: .92rem; color: var(--muted); }
.footer-links a:hover { color: #38BDF8; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 900px) {
  .hero-grid, .detail-grid, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .cover-band { max-height: 260px; }
}