/* Moonlight Apparel storefront
   night #1B2342 · deep #10152B · ink #121628 · paper #F5F6F9 · haze #D3D9E6 · dusk #5E6A8E · halo #F4E6A8 */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Neon night palette, matched to the Moonlight Apparel logo */
  --black: #050509;
  --night: #0d0d18;
  --night-2: #181828;
  --deep: #050509;
  --ink: #f1f2ff;
  --paper: #07070d;
  --surface: #10101b;
  --surface-2: #181826;
  --card: #10101b;
  --tile: #11111c;
  --haze: #262640;
  --dusk: #9da2c6;
  --mist: #b9bede;
  --purple: #a855f7;
  --violet: #7c3aed;
  --cyan: #38c8ff;
  --halo: #7fdcff;
  --halo-2: #b6ebff;
  --grad: linear-gradient(100deg, #a855f7 0%, #6d6bff 50%, #38c8ff 100%);
  --chrome: linear-gradient(180deg, #ffffff 0%, #dfe4ff 45%, #9aa3d6 55%, #eef1ff 100%);
  --glow: 0 0 24px rgba(168, 85, 247, .45), 0 0 48px rgba(56, 200, 255, .2);
  --danger: #ff5c7a;
  --ok: #4ade80;
  --radius: 14px;
  --wrap: 1280px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand .mark { width: 40px; height: 40px; color: var(--halo); flex: none; }
.brand .words { display: flex; flex-direction: column; line-height: 1; }
.brand .words b { font-weight: 850; font-stretch: 125%; font-size: 22px; letter-spacing: -0.01em; }
.brand .words span { font-weight: 600; font-size: 10px; letter-spacing: 0.62em; color: var(--halo); margin-top: 4px; padding-left: 1px; }
.brand img.logo { max-height: 44px; width: auto; }
.moon { /* small dot moon used by admin */
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbe6, var(--halo) 60%, #d9c77e);
}

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--grad);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 9px 16px;
}
.site-header {
  background: rgba(5,5,9,.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(124,58,237,.25);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background .3s, box-shadow .3s;
}
.site-header.over-hero { background: transparent; border-bottom-color: transparent; backdrop-filter: none; position: absolute; left: 0; right: 0; }
.site-header.over-hero.stuck { position: fixed; top: 0 !important; background: rgba(5,5,9,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 78px; gap: 20px; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; color: #d6dcec; font-weight: 550; font-size: 15px; padding: 6px 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); box-shadow: 0 0 8px rgba(56,200,255,.8); transform: scaleX(0); transition: transform .25s var(--ease); transform-origin: left; }
.nav a:hover, .nav a[aria-current='page'] { color: #fff; }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.head-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: #fff; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: rgba(255,255,255,.1); }
.cart-count {
  position: absolute; top: 3px; right: 1px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--grad); color: #fff; box-shadow: 0 0 10px rgba(168,85,247,.7);
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.cart-count:empty, .cart-count[data-n='0'] { display: none; }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
.menu-btn { display: none; }

/* Mobile menu */
.mnav { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.mnav .scrim { position: absolute; inset: 0; background: rgba(10,13,28,.55); opacity: 0; transition: opacity .25s; }
.mnav .sheet { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 86vw); background: var(--night); color: #fff; padding: 22px; transform: translateX(-100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; gap: 6px; }
.mnav.open { pointer-events: auto; }
.mnav.open .scrim { opacity: 1; }
.mnav.open .sheet { transform: none; }
.mnav .sheet a { text-decoration: none; font-size: 26px; font-weight: 800; font-stretch: 115%; padding: 8px 0; color: #fff; }
.mnav .sheet .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(120% 90% at 75% 10%, #2a3466 0%, var(--night) 45%, var(--deep) 100%);
  color: #fff;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
}
.hero .stars {
  position: absolute; inset: 0; z-index: -2; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 99%, transparent),
    radial-gradient(1px 1px at 28% 64%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 44% 18%, #fff 99%, transparent),
    radial-gradient(1px 1px at 58% 78%, #fff 99%, transparent),
    radial-gradient(1px 1px at 8% 82%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 36% 40%, #fff 99%, transparent),
    radial-gradient(1px 1px at 20% 48%, #fff 99%, transparent),
    radial-gradient(1px 1px at 52% 32%, #fff 99%, transparent),
    radial-gradient(1px 1px at 4% 36%, #fff 99%, transparent),
    radial-gradient(1px 1px at 66% 12%, #fff 99%, transparent),
    radial-gradient(1px 1px at 90% 88%, #fff 99%, transparent),
    radial-gradient(1px 1px at 72% 62%, #fff 99%, transparent);
}
.hero-moon {
  position: absolute; z-index: -1;
  right: -8vw; top: -14vh;
  width: min(62vw, 760px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 62%, rgba(150, 140, 95, 0.26) 0 6%, transparent 6.4%),
    radial-gradient(circle at 58% 40%, rgba(150, 140, 95, 0.2) 0 9%, transparent 9.4%),
    radial-gradient(circle at 70% 72%, rgba(150, 140, 95, 0.18) 0 4%, transparent 4.4%),
    radial-gradient(circle at 42% 28%, rgba(150, 140, 95, 0.16) 0 3%, transparent 3.4%),
    radial-gradient(circle at 76% 30%, rgba(150, 140, 95, 0.14) 0 2.4%, transparent 2.8%),
    radial-gradient(circle at 36% 36%, #fffbe8, var(--halo) 55%, #cdb96d 100%);
  box-shadow: 0 0 160px 40px rgba(244, 230, 168, 0.16);
  animation: rise 1.8s var(--ease) both;
}
.hero.has-photo { background: var(--deep); }
.hero.has-photo .hero-photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero.has-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,21,43,.35) 0%, rgba(16,21,43,.15) 40%, rgba(16,21,43,.85) 100%); }
@keyframes rise { from { transform: translateY(120px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero .wrap { width: 100%; padding-top: 160px; padding-bottom: 72px; }
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 10.4vw, 168px);
  line-height: .84;
  font-weight: 880;
  font-stretch: 125%;
  letter-spacing: -0.045em;
  color: #fff;
  mix-blend-mode: difference;
}
.hero.has-photo h1 { mix-blend-mode: normal; }
.hero .sub {
  display: block; margin-top: 14px;
  font-size: clamp(13px, 1.6vw, 20px);
  font-weight: 650; letter-spacing: .9em; color: var(--halo);
}
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.hero .slogan { font-size: clamp(26px, 3.4vw, 44px); font-weight: 750; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.05; margin: 0; max-width: 16ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  border: 1.5px solid transparent;
  background: var(--grad); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: box-shadow .2s, transform .12s, color .2s, border-color .2s, filter .2s;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.btn:hover { box-shadow: var(--glow); filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.halo { background: var(--grad); color: #fff; }
.btn.halo:hover { box-shadow: var(--glow); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(168,85,247,.12); box-shadow: none; filter: none; }
.btn.glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn.glass:hover { background: rgba(255,255,255,.16); }
.btn.block { width: 100%; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.is-disabled { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--dusk); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.link-btn:hover { color: var(--cyan); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.sec-head h2, .page-title, .pinfo h1, .about h2, .success h1 {
  font-style: italic; text-transform: uppercase;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, .35));
}
.sec-head h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); font-stretch: 118%; font-weight: 880; letter-spacing: -0.02em; line-height: 1.02; padding-right: .1em; }
.sec-head p { margin: 8px 0 0; color: var(--dusk); }
.sec-head .more { font-weight: 650; text-decoration: none; border-bottom: 2px solid var(--halo); padding-bottom: 2px; }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cat-tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 5 / 4; background: var(--surface); color: #fff; text-decoration: none; isolation: isolate; border: 1px solid var(--haze);
}
.cat-tile b { font-style: italic; text-transform: uppercase; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.cat-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(5,5,9,.9)); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .lbl { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.cat-tile b { font-size: clamp(28px, 3vw, 40px); font-stretch: 120%; font-weight: 850; letter-spacing: -0.02em; line-height: 1; }
.cat-tile small { display: block; color: var(--mist); font-size: 14px; margin-top: 6px; }
.cat-tile .go { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: var(--glow); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease); }
.cat-tile:hover .go { transform: rotate(-45deg); }

/* Rail */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--haze); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.rail-nav button:hover { border-color: var(--purple); box-shadow: var(--glow); }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 20px; }
.card { text-decoration: none; display: block; position: relative; }
.card .media { position: relative; overflow: hidden; border-radius: var(--radius); }
.card .img {
  display: block; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--tile); overflow: hidden; position: relative;
}
.card .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .7s var(--ease); }
.card .img img.alt { opacity: 0; }
.card:hover .img img.alt { opacity: 1; }
.card:hover .img img { transform: scale(1.03); }
.card .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; align-items: baseline; }
.card .name { font-weight: 650; font-size: 16px; }
.card .cat { color: var(--dusk); font-size: 14px; }
.card .price { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.card.is-sold .img img { filter: grayscale(1) opacity(.55); }
.tag {
  position: absolute; left: 12px; top: 12px; z-index: 2; pointer-events: none;
  background: rgba(5,5,9,.85); color: #fff; border: 1px solid var(--haze);
  font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
}
.tag.featured { background: var(--grad); color: #fff; border-color: transparent; }
.quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(12,12,22,.9); backdrop-filter: blur(10px); border: 1px solid var(--haze);
  border-radius: 12px; padding: 10px;
  transform: translateY(calc(100% + 14px)); transition: transform .35s var(--ease);
}
.card:hover .quick, .card:focus-within .quick { transform: none; }
.quick small { display: block; font-size: 12px; font-weight: 600; color: var(--dusk); margin-bottom: 6px; }
.quick .qs { display: flex; flex-wrap: wrap; gap: 6px; }
.quick .qs button { flex: 1 0 auto; min-width: 40px; padding: 8px 6px; border-radius: 8px; border: 1.5px solid var(--haze); background: var(--surface-2); font-weight: 700; font-size: 13px; cursor: pointer; }
.quick .qs button:hover { background: var(--grad); color: #fff; border-color: transparent; }
.quick .qs button[disabled] { color: #4d5170; text-decoration: line-through; background: transparent; cursor: not-allowed; border-color: #1c1c2c; }
.quick .one { width: 100%; padding: 11px; border-radius: 8px; border: 0; background: var(--grad); color: #fff; font-weight: 700; cursor: pointer; }
.quick .one:hover { box-shadow: var(--glow); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; }
.ph svg { width: 34%; color: #2a2a44; }
.empty { text-align: center; padding: 70px 20px; color: var(--dusk); }
.empty h3 { color: var(--ink); margin: 0 0 6px; font-size: 24px; font-stretch: 112%; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  padding: 9px 18px; border-radius: 999px;
  border: 1.5px solid var(--haze); background: transparent;
  cursor: pointer; font-weight: 600; font-size: 14px;
}
.chip:hover { border-color: var(--dusk); }
.chip[aria-pressed='true'] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 18px rgba(168,85,247,.35); }
.sort { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--haze); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; }

/* ---------- About band ---------- */
.about { background: radial-gradient(60% 120% at 0% 50%, rgba(124,58,237,.28), transparent 70%), radial-gradient(50% 120% at 100% 50%, rgba(56,200,255,.16), transparent 70%), var(--black); color: #fff; overflow: hidden; position: relative; border-top: 1px solid rgba(124,58,237,.25); border-bottom: 1px solid rgba(56,200,255,.18); }
.about .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; padding-top: 110px; padding-bottom: 110px; }
.about h2 { margin: 0; font-size: clamp(40px, 6vw, 84px); line-height: .92; font-stretch: 125%; font-weight: 880; letter-spacing: -0.04em; }
.about p { font-size: 19px; color: #c8cfe4; max-width: 44ch; margin: 0 0 28px; }
.about .big-mark { position: absolute; right: -60px; bottom: -80px; width: 380px; color: rgba(168,85,247,.08); pointer-events: none; }

/* Perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--haze); color: var(--cyan); box-shadow: 0 0 18px rgba(56,200,255,.15); display: grid; place-items: center; flex: none; }
.perk h3 { margin: 2px 0 2px; font-size: 16px; }
.perk p { margin: 0; color: var(--dusk); font-size: 14px; }

/* ---------- Product page ---------- */
.crumbs { font-size: 14px; color: var(--dusk); padding: 26px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; padding: 24px 0 80px; align-items: start; }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.gallery.single { grid-template-columns: 1fr; }
.gallery .main { aspect-ratio: 4 / 5; background: var(--tile); border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs button { width: 84px; aspect-ratio: 4/5; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--tile); cursor: pointer; opacity: .7; transition: opacity .2s; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current='true'] { border-color: var(--purple); opacity: 1; box-shadow: 0 0 14px rgba(168,85,247,.45); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { position: sticky; top: 104px; }
.pinfo .cat { color: var(--dusk); font-weight: 600; }
.pinfo h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1; margin: 8px 0 14px; font-stretch: 118%; font-weight: 850; letter-spacing: -0.03em; }
.pinfo .price { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 28px; }
.field-label { font-weight: 650; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-bottom: 24px; }
.size {
  padding: 13px 8px; border-radius: 10px;
  border: 1.5px solid var(--haze); background: var(--surface); cursor: pointer; font-weight: 700;
}
.size:hover:not([disabled]) { border-color: var(--purple); }
.size[aria-pressed='true'] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 18px rgba(168,85,247,.4); }
.size[disabled] { color: #4d5170; text-decoration: line-through; cursor: not-allowed; background: transparent; border-color: #1c1c2c; }
.buy-row { display: flex; gap: 12px; margin-bottom: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--haze); border-radius: 999px; background: var(--surface); }
.qty button { width: 42px; height: 48px; border: 0; background: none; cursor: pointer; font-size: 20px; border-radius: 999px; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 34px; text-align: center; border: 0; background: none; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row .btn { flex: 1; }
.hint { font-size: 14px; color: var(--dusk); margin: 0; }
.hint.err { color: var(--danger); font-weight: 600; }
.soldout-note { background: var(--tile); padding: 14px 16px; border-radius: 10px; font-weight: 650; margin-bottom: 14px; }
.acc { margin-top: 30px; border-top: 1px solid var(--haze); }
.acc details { border-bottom: 1px solid var(--haze); }
.acc summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 22px; font-weight: 400; transition: transform .25s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .body { padding: 0 0 20px; color: var(--mist); white-space: pre-line; max-width: 60ch; }
.mbar { display: none; }

/* ---------- Cart / checkout / success ---------- */
.page-title { font-size: clamp(36px, 5vw, 56px); font-stretch: 118%; font-weight: 850; letter-spacing: -0.03em; margin: 48px 0 30px; line-height: 1; }
.two-col { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; padding-bottom: 90px; }
.line { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--haze); align-items: center; }
.line:first-child { border-top: 1px solid var(--haze); }
.line .thumb { width: 92px; aspect-ratio: 4/5; border-radius: 10px; background: var(--tile); overflow: hidden; position: relative; }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .title { font-weight: 700; text-decoration: none; }
.line .sub { color: var(--dusk); font-size: 14px; }
.line .right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.line .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.line.bad { opacity: .75; }
.line .err { color: var(--danger); font-size: 14px; font-weight: 600; }
.qty.sm button { width: 34px; height: 36px; font-size: 17px; }
.qty.sm input { width: 28px; }

.summary { background: var(--surface); border: 1px solid var(--haze); border-radius: 18px; padding: 26px; position: sticky; top: 100px; }
.summary h2 { margin: 0 0 16px; font-size: 20px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-variant-numeric: tabular-nums; gap: 12px; }
.sum-row.total { border-top: 1px solid var(--haze); margin-top: 10px; padding-top: 14px; font-weight: 800; font-size: 21px; }
.sum-lines { margin-bottom: 14px; }
.sum-line { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; }
.sum-line .thumb { width: 48px; height: 60px; border-radius: 8px; background: var(--tile); overflow: visible; position: relative; flex: none; }
.sum-line .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.sum-line .q { position: absolute; top: -7px; right: -7px; background: var(--night); color: #fff; border-radius: 999px; font-size: 11px; min-width: 19px; height: 19px; display: grid; place-items: center; font-weight: 700; }
.sum-line .n { flex: 1; }
.sum-line .n small { display: block; color: var(--dusk); }

fieldset { border: 0; padding: 0; margin: 0 0 36px; }
legend { font-size: 22px; font-weight: 800; margin-bottom: 14px; padding: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.f label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 6px; }
.f input, .f select, .f textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  border: 1.5px solid var(--haze); background: var(--surface); color: var(--ink);
}
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(168, 85, 247, .18); }
.f .opt, .opt { font-weight: 400; color: var(--dusk); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border: 1.5px solid var(--haze); border-radius: 12px; cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple), 0 0 22px rgba(168,85,247,.2); }
.choice input { margin-top: 4px; accent-color: var(--purple); }
.choice b { display: block; }
.choice small { color: var(--dusk); }
.pickup-box { background: var(--tile); border-radius: 12px; padding: 16px 18px; margin-top: 14px; }
.pay-box { display: grid; gap: 12px; }
.pay-or { text-align: center; color: var(--dusk); font-size: 14px; }
.pay-methods { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; font-size: 12px; color: var(--dusk); }
.pay-methods span { border: 1px solid var(--haze); border-radius: 6px; padding: 3px 8px; background: var(--surface-2); font-weight: 600; }
.alert { padding: 14px 16px; border-radius: 12px; background: rgba(255,92,122,.12); color: var(--danger); font-weight: 600; margin-bottom: 18px; }
.alert.info { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.secure { font-size: 13px; color: var(--dusk); text-align: center; margin: 12px 0 0; }

.success { max-width: 640px; margin: 0 auto; padding: 72px 0 100px; }
.success .moon-big { width: 84px; height: 84px; margin-bottom: 26px; color: var(--purple); filter: drop-shadow(0 0 20px rgba(168,85,247,.6)); }
.success h1 { font-size: clamp(36px, 5vw, 54px); font-stretch: 118%; margin: 0 0 10px; letter-spacing: -0.03em; line-height: 1; }
.success .lead { font-size: 18px; color: var(--dusk); margin: 0 0 32px; }

/* ---------- Cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(10,13,28,.5); opacity: 0; transition: opacity .3s; }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100vw); background: var(--paper); border-left: 1px solid var(--haze); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: -20px 0 60px rgba(10,13,28,.2); }
.drawer.open { pointer-events: auto; }
.drawer.open .scrim { opacity: 1; }
.drawer.open .panel { transform: none; }
.drawer .dh { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--haze); }
.drawer .dh h2 { margin: 0; font-size: 22px; font-stretch: 112%; }
.drawer .dh button { background: none; border: 0; color: var(--ink); cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.drawer .dh button:hover { background: var(--surface-2); }
.drawer .db { flex: 1; overflow-y: auto; padding: 4px 24px; }
.drawer .df { border-top: 1px solid var(--haze); padding: 20px 24px 24px; display: grid; gap: 12px; background: var(--surface); }
.drawer .line { grid-template-columns: 72px 1fr auto; padding: 16px 0; }
.drawer .line:first-child { border-top: 0; }
.drawer .line .thumb { width: 72px; }
.shipbar { font-size: 14px; }
.shipbar .bar { height: 6px; border-radius: 999px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.shipbar .bar i { display: block; height: 100%; background: var(--grad); box-shadow: 0 0 10px rgba(56,200,255,.6); border-radius: 999px; transition: width .4s var(--ease); }
.drawer .shipbar { padding: 16px 24px; border-bottom: 1px solid var(--haze); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--mist); margin-top: auto; border-top: 1px solid rgba(124,58,237,.3); box-shadow: 0 -1px 30px rgba(124,58,237,.12); }
.site-footer .top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.site-footer .brand { color: #fff; }
.site-footer .slogan { margin: 18px 0 0; font-size: 24px; font-weight: 850; font-style: italic; font-stretch: 115%; letter-spacing: -0.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer h4 { color: #fff; margin: 4px 0 14px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a, .site-footer .link-btn { color: var(--mist); text-decoration: none; font-size: 15px; }
.site-footer a:hover, .site-footer .link-btn:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); }
.site-footer .bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 13px; }
.paybadges { display: flex; gap: 6px; flex-wrap: wrap; }
.paybadges span { border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 600; color: #d6dcec; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--haze); padding: 13px 16px 13px 20px; border-radius: 14px;
  display: flex; gap: 16px; align-items: center; z-index: 120; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; box-shadow: 0 12px 34px rgba(18, 22, 40, .3); font-weight: 500;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--halo); font-weight: 700; }

/* ---------- Chat widget ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 24px rgba(168,85,247,.4);
  transition: transform .2s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .dot { width: 9px; height: 9px; border-radius: 50%; background: #8a93ad; }
.chat-fab .dot.on { background: #6fdc9b; box-shadow: 0 0 0 3px rgba(111, 220, 155, 0.25); }
.chat-fab .short { display: none; }
.chat-fab .badge { background: #fff; color: var(--violet); border-radius: 999px; font-size: 12px; padding: 0 7px; font-weight: 800; }
.chat-panel {
  position: fixed; right: 22px; bottom: 88px; z-index: 75;
  width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px));
  background: var(--surface); border: 1px solid var(--haze); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(168,85,247,.15);
  display: none; flex-direction: column;
  transform-origin: bottom right;
}
.chat-panel.open { display: flex; animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }
.chat-top { background: var(--grad); color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; align-items: start; }
.chat-top b { font-size: 17px; display: block; }
.chat-top small { color: rgba(255,255,255,.85); }
.chat-top button { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--haze); border-bottom-left-radius: 4px; }
.bubble .who { display: block; font-size: 12px; color: var(--dusk); margin-bottom: 2px; }
.chat-sys { text-align: center; font-size: 13px; color: var(--dusk); padding: 4px 8px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--haze); }
.chat-input textarea { flex: 1; resize: none; border: 1.5px solid var(--haze); border-radius: 12px; padding: 10px 12px; height: 46px; background: var(--surface-2); }
.chat-input textarea:focus { outline: none; border-color: var(--purple); }
.chat-start { padding: 20px; display: grid; gap: 12px; overflow-y: auto; }
.chat-start p { margin: 0; color: var(--dusk); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: calc((100% - 40px) / 3); }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .pinfo { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .summary { position: static; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .about .wrap { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .site-header .wrap { height: 64px; }
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .brand .mark { width: 32px; height: 32px; }
  .brand .words b { font-size: 17px; }
  .brand .words span { font-size: 8px; }
  .head-actions .chat-icon { display: none; }
  .hero { min-height: 640px; }
  .hero-moon { width: 340px; right: -110px; top: -40px; }
  .hero .wrap { padding-top: 120px; padding-bottom: 48px; }
  .hero .sub { letter-spacing: .6em; }
  .hero-row { margin-top: 30px; }
  .section { padding: 64px 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .rail { grid-auto-columns: 68%; }
  .card .meta { flex-direction: column; gap: 2px; }
  .quick { display: none; }
  .perks { grid-template-columns: 1fr; gap: 18px; }
  .fields, .choice-row { grid-template-columns: 1fr; }
  .line { grid-template-columns: 72px 1fr; }
  .line .thumb { width: 72px; }
  .line .right { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; justify-content: space-between; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .thumbs button { width: 64px; flex: none; }
  .site-footer .top { grid-template-columns: 1fr; gap: 28px; padding-top: 52px; }
  .chat-fab .label { display: none; }
  .chat-fab .short { display: inline; }
  .chat-fab { padding: 13px 16px; }
  body[data-page='product'] .chat-fab { bottom: 92px; }
  .chat-panel { right: 12px; bottom: 80px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(10,10,18,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--haze); padding: 12px 16px; gap: 12px; align-items: center; box-shadow: 0 -8px 24px rgba(18,22,40,.08); }
  .mbar .p { font-weight: 800; font-size: 18px; }
  .mbar .btn { flex: 1; }
  body[data-page='product'] main { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Neon logo hero (overrides) ---------- */
.hero {
  background:
    radial-gradient(45% 60% at 22% 55%, rgba(124, 58, 237, .38), transparent 70%),
    radial-gradient(45% 60% at 80% 40%, rgba(56, 200, 255, .22), transparent 70%),
    radial-gradient(80% 60% at 50% 120%, rgba(168, 85, 247, .25), transparent 70%),
    var(--black);
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(94vh, 900px);
}
.hero .wrap { padding-top: 130px; padding-bottom: 70px; display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  width: min(1080px, 96vw);
  height: auto;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%);
  animation: logo-in 1.6s var(--ease) both;
}
@keyframes logo-in { from { opacity: 0; transform: scale(.94); filter: blur(8px) brightness(2); } to { opacity: 1; transform: none; filter: none; } }
.hero .actions { justify-content: center; margin-top: 8px; animation: logo-in 1.6s .35s var(--ease) both; }
.hero .btn.glass { border-color: rgba(168, 85, 247, .6); }
.hero.has-photo::before { background: linear-gradient(180deg, rgba(5,5,9,.55), rgba(5,5,9,.35) 45%, rgba(5,5,9,.92)); }
.hero .stars { opacity: .55; }

/* Header logo */
.brand img.logo { height: 58px; width: auto; max-height: none; }
.brand img.logo.neon {
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 75% at 50% 50%, #000 55%, transparent 100%);
}
.site-footer .brand img.logo { height: 92px; }
.mnav .brand img.logo { height: 48px; }
.mnav .sheet { background: var(--black); border-right: 1px solid rgba(124,58,237,.35); }
.mnav .sheet a { font-style: italic; text-transform: uppercase; }

/* Neon card edges */
.card .media { border: 1px solid var(--haze); transition: border-color .3s, box-shadow .3s; }
.card:hover .media { border-color: rgba(168, 85, 247, .6); box-shadow: 0 0 28px rgba(168, 85, 247, .22); }
.card .price { color: var(--cyan); }
.pinfo .price { color: var(--cyan); text-shadow: 0 0 18px rgba(56,200,255,.4); }
.gallery .main { border: 1px solid var(--haze); }
.perk h3 { color: #fff; }
.sec-head .more { border-bottom-color: var(--purple); }
.acc summary { color: #fff; }

@media (max-width: 760px) {
  .brand img.logo { height: 44px; }
  .hero .wrap { padding-top: 96px; padding-bottom: 50px; }
  .hero { min-height: 560px; }
  .hero-logo { width: 112vw; max-width: none; }
}

/* Slogan headings match the logo's purple-to-cyan script line */
.about h2.slogan-h {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; text-transform: none; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1;
  filter: drop-shadow(0 0 22px rgba(168, 85, 247, .45));
  padding-right: .12em;
}
.about h2.slogan-h { font-size: clamp(36px, 5vw, 76px); }

/* Placeholders must always stay inside their box */
.ph { pointer-events: none; }
.card .img, .gallery .main, .line .thumb, .sum-line .thumb, .cat-tile { position: relative; }

/* Admin tab in the shop header (only shows when signed in as staff) */
.admin-tab {
  display: inline-flex; align-items: center; gap: 7px; margin-right: 6px;
  padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(100deg, rgba(168,85,247,.25), rgba(56,200,255,.18)); border: 1px solid rgba(168,85,247,.6);
  box-shadow: 0 0 16px rgba(168,85,247,.25);
}
.admin-tab:hover { box-shadow: var(--glow); }
.admin-tab[hidden], .mnav a[hidden] { display: none; }
@media (max-width: 760px) { .admin-tab span { display: none; } .admin-tab { padding: 8px 10px; margin-right: 0; } }

/* Homepage: hide the small header logo while the big logo is on screen; it fades in after scrolling */
.site-header .brand { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.site-header.over-hero:not(.stuck) .brand { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.icon-btn.on { color: var(--cyan); }

/* Sign in / create account */
.auth-wrap { display: grid; place-items: center; padding: 64px 0 90px; }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid rgba(168,85,247,.4); border-radius: 18px; padding: 26px; box-shadow: 0 0 50px rgba(168,85,247,.15); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.auth-tabs button { border: 0; background: none; padding: 10px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--dusk); }
.auth-tabs button[aria-selected='true'] { background: var(--grad); color: #fff; box-shadow: 0 0 16px rgba(168,85,247,.4); }
.auth-form { display: grid; gap: 14px; }
.auth-note { background: rgba(56,200,255,.1); border: 1px solid rgba(56,200,255,.3); padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; color: var(--ink); }

/* Account page */
.acct-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin: 0 0 28px; }
.acct-head .page-title { margin-top: 48px; }
.acct-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; padding-bottom: 90px; }
.panel-s { background: var(--surface); border: 1px solid var(--haze); border-radius: 16px; padding: 22px; margin-bottom: 24px; }
.panel-s h2 { margin: 0 0 16px; font-size: 19px; color: #fff; }
.ord { border-top: 1px solid var(--haze); padding: 16px 0; display: grid; gap: 4px; }
.ord:first-child { border-top: 0; padding-top: 0; }
.ord-top { display: flex; justify-content: space-between; gap: 10px; }
.ord-status { font-weight: 700; color: var(--cyan); }
.ord-status.st-fulfilled { color: var(--ok); }
.ord-status.st-cancelled, .ord-status.st-refunded { color: var(--danger); }
.ord-total { font-weight: 800; margin-top: 4px; }
@media (max-width: 860px) { .acct-grid { grid-template-columns: 1fr; } }
