/* ==========================================================
   PixelPantheon — premium mythology pixel-art store
   ========================================================== */

:root {
  --bg: #0a0908;
  --bg-2: #110f0c;
  --surface: #17140f;
  --surface-2: #1f1b14;
  --line: rgba(217, 164, 65, 0.18);
  --line-strong: rgba(217, 164, 65, 0.42);
  --text: #f4ecdc;
  --muted: #b3a68d;
  --gold: #d9a441;
  --gold-light: #f5d27e;
  --ember: #ff8a2a;
  --energy: #5cc2ff;
  --purple: #7b4bd6;
  --midnight: #101a3a;
  --danger: #ff6b5b;
  --ok: #7ed492;

  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --glow: 0 0 40px rgba(255, 158, 54, 0.25);
  --max: 1220px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* stepped "pixel" corners used on buttons and frames */
  --px: 6px;
  --pixel-clip: polygon(
    0 var(--px), var(--px) var(--px), var(--px) 0,
    calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px),
    100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%,
    var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px))
  );
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 138, 42, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(92, 194, 255, 0.06), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(123, 75, 214, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--energy); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; background: var(--gold);
  box-shadow: 10px 0 0 var(--gold), 20px 0 0 rgba(217,164,65,.4);
  margin-right: 20px;
}
.gold-text {
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--gold) 40%, var(--ember) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 56ch; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, #b9812a);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; min-height: 48px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  color: #1a1206; background: var(--btn-bg);
  border: 0; cursor: pointer;
  clip-path: var(--pixel-clip);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { color: #1a1206; transform: translateY(-2px); filter: brightness(1.08) drop-shadow(0 6px 18px rgba(255,158,54,.35)); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.btn--ghost {
  --btn-bg: transparent;
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  background: rgba(217,164,65,.06);
}
.btn--ghost:hover { color: #fff; background: rgba(217,164,65,.14); }
.btn--sm { padding: 10px 16px; min-height: 40px; font-size: .85rem; --px: 4px; }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; }
.logo:hover { color: var(--gold-light); }
.logo svg { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 0 8px rgba(255,158,54,.35)); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted); font-weight: 500; font-size: .95rem;
  padding: 10px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a[aria-current="page"] { color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(217,164,65,.08); border: 1px solid var(--line); cursor: pointer;
  color: var(--gold-light); transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(217,164,65,.16); border-color: var(--line-strong); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--ember); color: #1a0d02; font-size: .72rem; font-weight: 800;
  transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.cart-count.has-items { transform: scale(1); }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 22px;
    background: #0c0a08; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.6);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.05); border-radius: 0; }
  .header-actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 420px at 72% 45%, rgba(255, 150, 50, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--gold); }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: end; }
.hero-art .frame {
  position: absolute; overflow: hidden; border-radius: 12px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line-strong);
  background: var(--surface);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .frame--main { inset: 6% 12% 6% 12%; z-index: 3; box-shadow: var(--shadow), 0 0 0 1px var(--gold), 0 0 80px rgba(255,150,50,.35); }
.hero-art .frame--left { width: 46%; aspect-ratio: 1; left: -4%; top: 18%; z-index: 2; transform: rotate(-8deg); filter: brightness(.7); }
.hero-art .frame--right { width: 46%; aspect-ratio: 1; right: -4%; bottom: 14%; z-index: 2; transform: rotate(8deg); filter: brightness(.7); }
.hero-art:hover .frame--left { transform: rotate(-11deg) translateX(-10px); }
.hero-art:hover .frame--right { transform: rotate(11deg) translateX(10px); }
.hero-art .frame--main::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
  transform: translateX(-100%); animation: sheen 6s ease-in-out infinite 1.5s;
}
@keyframes sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hero-caption {
  position: absolute; left: 50%; bottom: -2%; z-index: 4; transform: translateX(-50%);
  padding: 8px 16px; white-space: nowrap;
  background: rgba(10,9,8,.85); border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .82rem; color: var(--muted);
}
.hero-caption strong { color: var(--gold-light); font-family: var(--font-display); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 460px; order: -1; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero .eyebrow::before { display: none; }
}

/* ---------- Energy divider ---------- */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), rgba(92,194,255,.4), var(--line-strong), transparent); }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid--featured { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid--featured { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--featured { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow), var(--glow); }
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #000; cursor: zoom-in; border: 0; padding: 0; width: 100%; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.045); }
.card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(10,9,8,.55));
}
.card-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(10,9,8,.72); color: var(--gold-light); border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1; }
.card h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.card-foot .kind { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--energy); }
.card-tag--digital { left: auto; right: 12px; color: #cfe9ff; border-color: rgba(92,194,255,.45); }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--gold-light); }
.card .subtitle { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0; }
.card .desc { color: var(--muted); font-size: .92rem; margin: 4px 0 12px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--gold-light); white-space: nowrap; }
.card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  padding: 10px 18px; min-height: 42px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--muted);
  font-weight: 600; font-size: .9rem; transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: linear-gradient(180deg, rgba(245,210,126,.22), rgba(217,164,65,.12)); color: var(--gold-light); border-color: var(--gold); }
.chip .n { opacity: .6; font-weight: 500; margin-left: 4px; }
.result-count { color: var(--muted); font-size: .9rem; margin: -16px 0 24px; }

/* ---------- Page header ---------- */
.page-hero { padding: clamp(48px, 7vw, 90px) 0 clamp(24px, 4vw, 40px); position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 260px at 50% 0%, rgba(255,150,50,.16), transparent 70%);
}
.page-hero .container { position: relative; }

/* ---------- Feature list (digital download info) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .info-grid { grid-template-columns: 1fr; } }
.info {
  padding: 26px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31,27,20,.9), rgba(23,20,15,.9));
  border: 1px solid var(--line);
}
.info .ico {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 16px;
  color: var(--gold-light); background: rgba(217,164,65,.1); clip-path: var(--pixel-clip); --px: 5px;
}
.info .ico svg { width: 24px; height: 24px; }
.info h3 { font-size: 1.05rem; margin-bottom: 8px; }
.info p { color: var(--muted); font-size: .92rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split-art img { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.split-art img:nth-child(2) { transform: translateY(28px); }

.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 6vw, 72px) var(--gutter); border-radius: 20px;
  background:
    radial-gradient(400px 200px at 50% 120%, rgba(92,194,255,.18), transparent 70%),
    radial-gradient(500px 260px at 50% -20%, rgba(255,150,50,.25), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-strong);
}
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }

/* ---------- Prose / about / legal ---------- */
.prose { max-width: 72ch; }
.prose p, .prose li { color: #dacfb8; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.note {
  padding: 16px 18px; border-radius: 10px; margin: 0 0 24px;
  background: rgba(92,194,255,.07); border: 1px solid rgba(92,194,255,.3); color: #cfe9ff; font-size: .92rem;
}
.note--warn { background: rgba(255,138,42,.08); border-color: rgba(255,138,42,.35); color: #ffd9b8; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  background: #0d0b09; border: 1px solid rgba(255,255,255,.1); color: var(--text);
  font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,.18); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.form-status { margin-top: 14px; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #ffb0a6; }
.hp { position: absolute; left: -9999px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.contact-list svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.socials a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .88rem; font-weight: 600; }
.socials a:hover { background: rgba(217,164,65,.12); }

/* ---------- Dialog (product detail) ---------- */
dialog.product-dialog {
  width: min(1100px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--line-strong); border-radius: 18px;
  background: var(--bg-2); color: var(--text); box-shadow: var(--shadow), 0 0 120px rgba(255,150,50,.15);
  overflow: hidden;
}
dialog.product-dialog[open] { animation: pop .3s cubic-bezier(.2,.8,.2,1); }
dialog::backdrop { background: rgba(4,3,2,.8); backdrop-filter: blur(6px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.pd { display: grid; grid-template-columns: 1.1fr 1fr; max-height: calc(100dvh - 26px); }
.pd-media { background: #000; display: grid; place-items: center; }
.pd-media img { width: 100%; height: 100%; max-height: calc(100dvh - 26px); object-fit: contain; aspect-ratio: 1; }
.pd-info { padding: clamp(22px, 3.5vw, 40px); overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.pd-info h2 { margin-bottom: 8px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.pd-kind { color: var(--energy); letter-spacing: .16em; text-transform: uppercase; font-size: .76rem; font-weight: 600; margin: 0 0 6px; }
.pd-info .price { font-size: 1.8rem; margin: 4px 0 14px; }
.pd-info .desc { color: #d7ccb4; }
.pd-specs { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.pd-specs li { display: flex; gap: 10px; font-size: .92rem; color: var(--muted); }
.pd-specs svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.pd-actions { display: grid; gap: 10px; margin-top: auto; }
.dialog-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(10,9,8,.8); border: 1px solid var(--line-strong); color: var(--text);
}
.dialog-close:hover { color: var(--gold-light); }
.dialog-close svg { width: 20px; height: 20px; }
@media (max-width: 820px) {
  dialog.product-dialog { overflow-y: auto; }
  .pd { grid-template-columns: 1fr; max-height: none; }
  .pd-media img { max-height: none; }
  .pd-info { overflow: visible; }
  .pd-actions {
    position: sticky; bottom: 0; z-index: 2;
    margin: 0 calc(-1 * clamp(22px, 3.5vw, 40px)) calc(-1 * clamp(22px, 3.5vw, 40px));
    padding: 14px clamp(22px, 3.5vw, 40px) 16px;
    background: linear-gradient(180deg, rgba(17,15,12,.85), #110f0c 30%);
    border-top: 1px solid var(--line);
  }
}

/* ---------- Cart drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(4,3,2,.7); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(440px, 100vw); display: flex; flex-direction: column;
  background: var(--bg-2); border-left: 1px solid var(--line-strong);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.4rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.cart-item img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.cart-item h3 { font-size: 1rem; margin: 0; }
.cart-item small { color: var(--muted); }
.cart-item .price { font-size: 1rem; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: .82rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--danger); }
.cart-empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.cart-empty svg { width: 48px; height: 48px; color: var(--gold); opacity: .6; margin: 0 auto 14px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.total-row .price { font-size: 1.5rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 0 0 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.drawer-msg { font-size: .85rem; margin-top: 12px; color: #ffb0a6; }
.drawer-msg:empty { display: none; }
.secure-line { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .78rem; color: var(--muted); margin-top: 12px; }
.secure-line svg { width: 14px; height: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 12px 14px 12px 18px; border-radius: 12px;
  background: #1c1811; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.2,1); font-size: .92rem;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; position: relative; border-top: 1px solid var(--line); background: #080706; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 32px; }
.site-footer ul a { overflow-wrap: anywhere; }
.footer-tag { font-family: var(--font-display); color: var(--gold-light) !important; margin-bottom: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 40ch; margin-top: 14px; }
.site-footer h3 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--muted); font-size: .94rem; }
.site-footer ul a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #7d735f; font-size: .82rem; }

/* ---------- Success page ---------- */
.download-list { display: grid; gap: 14px; margin: 24px 0; }
.download-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.download-item img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
@media (max-width: 520px) { .download-item { grid-template-columns: 64px 1fr; } .download-item img { width: 64px; height: 64px; } .download-item .btn { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- PixelPantheon additions ---------- */
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), var(--energy), var(--purple), transparent); opacity: .6; }

/* cinematic hero backdrop: the featured artwork, blurred and darkened */
.hero-backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-backdrop img { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(42px) saturate(1.3); opacity: .38; transform: scale(1.05); }
.hero-backdrop::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 8%, rgba(10,9,8,.7) 45%, rgba(10,9,8,.35)), linear-gradient(180deg, transparent 55%, var(--bg)); }
@media (max-width: 900px) { .hero-backdrop::after { background: linear-gradient(180deg, rgba(10,9,8,.3), rgba(10,9,8,.75) 55%, var(--bg)); } }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); }

/* Why PixelPantheon */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.info--blue .ico { color: #cfe9ff; background: rgba(92,194,255,.12); }
.info--purple .ico { color: #dccbff; background: rgba(123,75,214,.18); }

/* mythology strip on the homepage */
.myth-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.myth-links a.chip { display: inline-flex; align-items: center; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.form-status.info { color: #cfe9ff; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .card-actions { grid-template-columns: 1fr; } }
