/* ============================================
   Nexa Store — Premium FiveM Scripts
   Dark, minimal, brand-led design system
   ============================================ */

:root {
  /* Brand */
  --brand-purple: #a855f7;
  --brand-purple-2: #c084fc;
  --brand-magenta: #d946ef;
  --brand-cyan: #22d3ee;

  /* Surface */
  --bg: #07060a;
  --bg-2: #0b0a10;
  --surface: #101018;
  --surface-2: #14131c;
  --line: #1d1c27;
  --line-2: #26242f;

  /* Text */
  --text: #f5f3ff;
  --text-dim: #a8a3bd;
  --text-mute: #6b6680;

  /* Accent */
  --accent: var(--brand-purple);
  --accent-glow: rgba(168, 85, 247, 0.35);

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;

  /* Radius / spacing */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-card: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 60px -30px rgba(0,0,0,.7);
  --shadow-hover: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 70px -20px rgba(168,85,247,.18);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 14px; font-size: 13px; }

.btn-primary {
  background: linear-gradient(180deg, #b069ff 0%, #8a3df0 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 8px 22px -8px rgba(168,85,247,.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 14px 30px -10px rgba(168,85,247,.7);
}

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: #3a3748;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7,6,10,0.7);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(168,85,247,.35));
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
  color: var(--text);
}
.brand-word-light {
  color: var(--text-mute);
  font-weight: 500;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .15s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand-purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 100%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.3;
  pointer-events: none;
}
.hero-glow-a {
  width: 440px; height: 440px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  top: 10%; left: 8%;
}
.hero-glow-b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #d946ef 0%, transparent 70%);
  top: 30%; right: 8%;
  opacity: 0.22;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.22);
  color: var(--brand-purple-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-purple-2);
  box-shadow: 0 0 12px var(--brand-purple-2);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 22px 0 18px;
}
.grad {
  background: linear-gradient(90deg, #c084fc 0%, #d946ef 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--text-mute);
  font-size: 13px;
  margin-top: 2px;
}

/* Hero art card */
.hero-art { position: relative; }
.hero-art-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16/11;
  transform: rotate(-1.5deg);
}
.hero-art-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-art-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(7,6,10,0.85) 100%);
}
.ribbon {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-art-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.hero-art-meta {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 2px;
}

/* ---------- Section base ---------- */
.section {
  padding: 96px 0;
}
.section-tight { padding: 32px 0 96px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
}
.section-sub {
  color: var(--text-dim);
  max-width: 540px;
  margin: 8px 0 0;
  font-size: 15px;
}
.section-head-center .section-sub { margin-top: 14px; }

.link-arrow {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
.link-arrow span { display: inline-block; transition: transform .2s ease; margin-left: 4px; }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
  overflow: hidden;
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(168,85,247,0.5), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cat-card:hover::after { opacity: 1; }

.cat-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(168,85,247,0.1);
  color: var(--brand-purple-2);
  border: 1px solid rgba(168,85,247,0.25);
}
.cat-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.cat-body p { color: var(--text-dim); margin: 0; font-size: 14.5px; }
.cat-cta {
  color: var(--brand-purple-2);
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.product:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-hover);
}
.product-media {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-2);
  overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product:hover .product-media img { transform: scale(1.04); }

.product-media-empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(168,85,247,0.12), transparent 60%),
    var(--bg-2);
}
.soon-mark img {
  width: 64px; height: 64px; object-fit: contain;
  opacity: 0.7;
}

.badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge-escrow {
  background: rgba(168,85,247,0.18);
  color: #e9d5ff;
  border: 1px solid rgba(168,85,247,0.4);
}
.badge-os {
  background: rgba(34,211,238,0.14);
  color: #a5f3fc;
  border: 1px solid rgba(34,211,238,0.4);
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-meta {
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.product-desc {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
  flex: 1;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  letter-spacing: -0.01em;
}
.price-cur { color: var(--text-mute); font-size: 14px; font-weight: 500; }
.price-muted { color: var(--text-mute); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; }

/* ---------- Features ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feat {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  transition: border-color .2s ease, transform .2s ease;
}
.feat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feat-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(168,85,247,0.1);
  color: var(--brand-purple-2);
  border: 1px solid rgba(168,85,247,0.22);
  margin-bottom: 16px;
}
.feat h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}
.feat p { color: var(--text-dim); font-size: 13.5px; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto 80px;
  padding: 0 28px;
  box-sizing: border-box;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 44px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 200px at 10% 0%, rgba(168,85,247,0.18), transparent 60%),
    radial-gradient(500px 200px at 90% 100%, rgba(217,70,239,0.18), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  overflow: hidden;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.cta-banner p { color: var(--text-dim); margin: 0; }
.cta-actions { display: flex; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: var(--bg-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.brand-foot { margin-bottom: 14px; }
.foot-tag { color: var(--text-mute); font-size: 13.5px; margin: 0; }
.foot-col h5 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 14px;
}
.foot-col a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 8px;
  transition: color .15s ease;
}
.foot-col a:hover { color: var(--text); }

.foot-base {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  color: var(--text-mute);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-art-card { transform: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .stat-num { font-size: 22px; }
  .hero-title { font-size: 38px; }
  .cta-banner { padding: 0 16px; margin-bottom: 56px; }
  .cta-inner { padding: 32px 22px; }
  .foot-base { flex-direction: column; gap: 8px; }
}

/* =====================================================
   Icon buttons + mobile toggle
   ===================================================== */
.btn-icon {
  padding: 10px;
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  position: relative;
}
.btn-icon .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  margin: 0;
}
.mobile-toggle { display: none; }

@media (max-width: 1000px) {
  .mobile-toggle { display: inline-grid; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 28px 20px;
  border-top: 1px solid var(--line);
  background: rgba(7,6,10,0.95);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-dim);
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active, .mobile-menu a:hover { color: var(--text); }

/* =====================================================
   Cart drawer
   ===================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 90;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 420px;
  max-width: 92vw;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.6);
}
.cart-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.drawer-close {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
  width: 34px; height: 34px;
  border-radius: 999px;
  display: grid; place-items: center;
  transition: background .15s ease, color .15s ease;
}
.drawer-close:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-empty {
  display: grid;
  place-items: center;
  text-align: center;
  height: 100%;
  gap: 14px;
  color: var(--text-dim);
}
.drawer-empty-icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.2);
  color: var(--brand-purple-2);
}

.drawer-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.drawer-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}
.drawer-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.drawer-item-meta {
  color: var(--text-mute);
  font-size: 12px;
  margin-bottom: 10px;
}
.drawer-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.drawer-item-row strong {
  font-family: var(--font-display);
  font-size: 15px;
}
.drawer-item-remove {
  background: transparent;
  border: none;
  color: var(--text-mute);
  width: 24px; height: 24px;
  align-self: flex-start;
  border-radius: 6px;
  display: grid; place-items: center;
  transition: color .15s ease, background .15s ease;
}
.drawer-item-remove:hover { color: #ff6b6b; background: rgba(255,107,107,0.1); }

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.qty span {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  width: 26px; height: 26px;
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.qty-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.drawer-foot {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(168,85,247,0.04));
}
.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.drawer-total span {
  color: var(--text-dim);
  font-size: 14px;
}
.drawer-total strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.drawer-checkout {
  width: 100%;
  justify-content: center;
}

/* =====================================================
   Page header (shop, package, about, terms, cart)
   ===================================================== */
.page-head {
  position: relative;
  padding: 80px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.page-head .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.crumbs {
  display: flex;
  gap: 8px;
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: 14px;
}
.crumbs a { color: var(--text-dim); transition: color .15s ease; }
.crumbs a:hover { color: var(--text); }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.page-sub {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 600px;
  margin: 0;
}

/* =====================================================
   Shop toolbar
   ===================================================== */
.shop-toolbar {
  border-bottom: 1px solid var(--line);
  background: rgba(11,10,16,0.4);
  padding: 16px 0;
  position: sticky;
  top: 72px;
  z-index: 30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.tab {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.tab:hover { color: var(--text); }
.tab.active {
  background: rgba(168,85,247,0.15);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(168,85,247,0.3);
}

.search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--text-mute);
  min-width: 260px;
  transition: border-color .15s ease;
}
.search:focus-within { border-color: rgba(168,85,247,0.4); }
.search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  flex: 1;
}
.search input::placeholder { color: var(--text-mute); }

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 80px 0;
}

/* product title link */
.product-title a { color: inherit; transition: color .15s ease; }
.product-title a:hover { color: var(--brand-purple-2); }

/* =====================================================
   Package detail
   ===================================================== */
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.detail-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  aspect-ratio: 16/10;
}
.detail-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.detail-media .badge {
  top: 18px; left: 18px;
}

.detail-body { padding-top: 8px; }
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 6px;
}
.detail-tagline {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 24px;
}
.detail-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.detail-price .price { font-size: 32px; }
.price-note {
  color: var(--text-mute);
  font-size: 13px;
}
.detail-desc {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 28px;
}
.detail-cta {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.detail-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.detail-meta-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-meta-row span {
  color: var(--text-mute);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.detail-meta-row strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--brand-purple), var(--brand-magenta));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 14px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 14px no-repeat;
}
.check-list-muted li { color: var(--text-dim); }

/* =====================================================
   Cart page
   ===================================================== */
.cart-page-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  transition: border-color .15s ease;
}
.cart-row:hover { border-color: var(--line-2); }
.cart-row img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
}
.cart-row-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.cart-row-name:hover { color: var(--brand-purple-2); }
.cart-row-meta {
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: 12px;
}
.cart-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.cart-row-side strong {
  font-family: var(--font-display);
  font-size: 17px;
}
.link-remove {
  background: transparent;
  border: none;
  color: var(--text-mute);
  font-size: 12.5px;
  transition: color .15s ease;
  padding: 0;
}
.link-remove:hover { color: #ff6b6b; }

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cart-empty h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0;
}
.cart-empty p { color: var(--text-dim); margin: 0; }

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky;
  top: 96px;
}
.cart-summary h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14.5px;
  color: var(--text-dim);
}
.summary-total {
  padding-top: 16px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
}
.summary-total strong {
  font-family: var(--font-display);
  font-size: 22px;
}
.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}
.summary-note {
  color: var(--text-mute);
  font-size: 12.5px;
  margin: 14px 0 0;
  text-align: center;
}

/* =====================================================
   About / Terms prose
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.prose ul {
  color: var(--text-dim);
  padding-left: 20px;
  margin: 0 0 18px;
}
.prose ul li { margin-bottom: 8px; line-height: 1.6; }
.prose strong { color: var(--text); }
.prose em { color: var(--text); font-style: normal; font-weight: 500; }

.about-side .about-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.about-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 14px 0 6px;
}
.about-card p { color: var(--text-dim); margin: 0 0 18px; font-size: 14.5px; }

.terms-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.terms-nav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
}
.terms-nav h5 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 14px;
}
.terms-nav a {
  color: var(--text-dim);
  font-size: 14px;
  padding: 8px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -2px;
  transition: color .15s ease, border-color .15s ease;
}
.terms-nav a:hover { color: var(--text); border-color: var(--line-2); }
.terms-prose { max-width: 720px; }

/* =====================================================
   Success page
   ===================================================== */
.success-wrap {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  isolation: isolate;
  min-height: 70vh;
  display: grid;
  place-items: center;
}
.success-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
}
.success-check {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(168,85,247,0.3) 0%, transparent 70%),
    var(--surface);
  border: 1px solid rgba(168,85,247,0.4);
  color: var(--brand-purple-2);
  margin-bottom: 28px;
  box-shadow: 0 0 60px -10px rgba(168,85,247,0.5);
}
.success-inner .hero-title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 14px; }
.success-inner .hero-sub { margin-bottom: 28px; }

/* =====================================================
   Responsive overrides for new pages
   ===================================================== */
@media (max-width: 1000px) {
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .cart-page-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .terms-layout { grid-template-columns: 1fr; gap: 28px; }
  .terms-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .terms-nav h5 { width: 100%; }
  .terms-nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; margin: 0; }
}

@media (max-width: 640px) {
  .toolbar-inner { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; width: 100%; }
  .tabs { width: 100%; justify-content: center; }
  .detail-meta-row { grid-template-columns: 1fr; gap: 8px; }
  .cart-row { grid-template-columns: 80px 1fr; }
  .cart-row img { width: 80px; height: 70px; }
  .cart-row-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

