/* ═══════════════════════════════════════════════════
   ZeusVault NZ — Main Stylesheet
   Glowing Yellow × Deep Purple Identity
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
  --gold:        #FFD700;
  --gold-bright: #FFE44D;
  --gold-dark:   #C9880A;
  --purple-deep: #0D0720;
  --purple-mid:  #1A0D3B;
  --purple-card: #231050;
  --purple-light:#3B1F7A;
  --text-primary:#F5ECC8;
  --text-muted:  #A08BB5;
  --white:       #FFFFFF;
  --glow-sm:     0 0 8px rgba(255,215,0,0.5);
  --glow-md:     0 0 20px rgba(255,215,0,0.6), 0 0 40px rgba(255,215,0,0.2);
  --glow-lg:     0 0 30px rgba(255,215,0,0.8), 0 0 60px rgba(255,215,0,0.3), 0 0 100px rgba(255,215,0,0.1);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s ease;
}

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--purple-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Animated star background ──────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1px 1px at 10% 15%, rgba(255,228,77,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 60%, rgba(255,228,77,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 30%, rgba(255,228,77,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 80%, rgba(255,228,77,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 10%, rgba(255,228,77,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 90%, rgba(255,228,77,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 50%, rgba(255,228,77,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 80% 35%, rgba(255,228,77,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 75%, rgba(255,228,77,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 55%, rgba(255,228,77,0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ── Typography ────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-bright); }

p { color: var(--text-primary); line-height: 1.7; }

/* ── Navigation ────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 7, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,215,0,0.15);
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(var(--glow-sm));
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0%   { filter: drop-shadow(0 0 6px rgba(255,215,0,0.5)); }
  100% { filter: drop-shadow(0 0 14px rgba(255,215,0,0.9)); }
}

.nav-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: var(--glow-sm);
  line-height: 1;
}

.nav-logo-text span { color: var(--white); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(255,215,0,0.08);
  text-shadow: var(--glow-sm);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-btn {
  position: relative;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.cart-btn:hover {
  background: rgba(255,215,0,0.2);
  border-color: var(--gold);
  box-shadow: var(--glow-sm);
}

.cart-count {
  background: var(--gold);
  color: var(--purple-deep);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  animation: bounce 0.3s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #FFB800, #FFD700, #FFE44D);
  color: var(--purple-deep);
  box-shadow: var(--glow-sm);
}

.btn-primary:hover {
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
  color: var(--purple-deep);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(255,215,0,0.1);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* ── Section wrapper ────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  color: var(--gold-bright);
  text-shadow: var(--glow-sm);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--purple-card);
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(255,215,0,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,215,0,0.1);
}

/* ── Product Card ───────────────────────────────────── */
.product-card {
  background: var(--purple-card);
  border: 1px solid rgba(255,215,0,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s ease;
  position: relative;
}

.product-card:hover {
  border-color: rgba(255,215,0,0.4);
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(255,215,0,0.12), 0 0 30px rgba(255,215,0,0.06);
}

.product-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img { transform: scale(1.04); }

.product-card-body {
  padding: 1.5rem;
}

.product-badge {
  display: inline-block;
  background: rgba(255,215,0,0.12);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(255,215,0,0.25);
}

.product-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product-price {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: var(--glow-sm);
  margin-bottom: 1rem;
}

.product-price span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

/* ── Divider ────────────────────────────────────────── */
.divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto;
  border-radius: 2px;
}

/* ── Hero Section ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(59,31,122,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(201,136,10,0.15) 0%, transparent 60%);
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  background: rgba(13,7,32,0.98);
  border-top: 1px solid rgba(255,215,0,0.1);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: var(--glow-sm);
  margin-bottom: 1rem;
  display: block;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,215,0,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-legal-links a:hover { color: var(--gold); }

/* Age badge */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Cookie Banner ──────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(26,13,59,0.97);
  border-top: 1px solid rgba(255,215,0,0.2);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

#cookie-banner.show { transform: translateY(0); }

.cookie-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex: 1;
  min-width: 200px;
}

.cookie-text a { color: var(--gold); }

.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Age Gate Modal ─────────────────────────────────── */
#age-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(13,7,32,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  pointer-events: all;
}

#age-gate.visible {
  display: flex;
}

.age-gate-box {
  background: var(--purple-card);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(255,215,0,0.1);
  position: relative;
  z-index: 100000;
}

.age-gate-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 12px rgba(255,215,0,0.6));
}

.age-gate-title {
  color: var(--gold-bright);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.age-gate-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.age-gate-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 100000;
}



/* ── Cart Sidebar ───────────────────────────────────── */
#cart-sidebar {
  position: fixed;
  top: 0; right: -420px;
  width: 420px;
  max-width: 100vw;
  height: 100%;
  z-index: 2000;
  background: var(--purple-mid);
  border-left: 1px solid rgba(255,215,0,0.15);
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 50px rgba(0,0,0,0.6);
}

#cart-sidebar.open { right: 0; }

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cart-overlay.show { opacity: 1; pointer-events: all; }

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,215,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.2rem;
}

.cart-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px;
  line-height: 1;
}

.cart-close:hover { color: var(--gold); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,215,0,0.07);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.cart-item:hover { border-color: rgba(255,215,0,0.2); }

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }

.cart-item-name {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.cart-item-price {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  align-self: flex-start;
  transition: var(--transition);
}

.cart-item-remove:hover { color: #FF6B6B; }

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255,215,0,0.1);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.cart-total-price { color: var(--gold); font-size: 1.3rem; font-weight: 700; }

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.cart-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

/* ── Toast Notification ─────────────────────────────── */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 9998;
  background: rgba(26,13,59,0.97);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform 0.35s ease, opacity 0.35s ease;
  box-shadow: var(--glow-sm);
}

#toast.show { transform: translateX(-50%) translateY(0); }

/* ── Page header ────────────────────────────────────── */
.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(59,31,122,0.4) 0%, transparent 70%);
}

.page-header-title {
  color: var(--gold-bright);
  text-shadow: var(--glow-md);
  margin-bottom: 1rem;
}

.page-header-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── Forms ──────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  border-color: var(--gold);
  background: rgba(255,215,0,0.04);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.08);
}

/* ── Glow text ──────────────────────────────────────── */
.glow-text {
  color: var(--gold-bright);
  text-shadow: var(--glow-md);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(13,7,32,0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,215,0,0.1);
    gap: 0.2rem;
  }

  .nav-links.open { display: flex; }

  .hamburger { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom { flex-direction: column; text-align: center; }

  #cart-sidebar { width: 100%; right: -100vw; }
  #cart-sidebar.open { right: 0; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 0.9rem 1.8rem; font-size: 0.95rem; }
  .section { padding: 3.5rem 0; }
}

/* ── Utility ────────────────────────────────────────── */
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none !important; }
