/* ═══════════════════════════════════════════
   WJLD THINGS — Shared Stylesheet
   Browser support: Chrome, Edge, Safari (iOS & macOS), Firefox
   ═══════════════════════════════════════════ */

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

:root {
  --bg: #000000;
  --card: #0a0a0a;
  --card-hover: #111118;
  --border: #1a1a1a;
  --border-light: #262630;
  --p1: #ff2d78;
  --p2: #7b2fff;
  --p3: #00f5d4;
  --p4: #ffe500;
  --text: #f0f0ff;
  --muted: #6060a0;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-accent: 'Rajdhani', sans-serif;
  /* Safe area insets for notched phones */
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Prevent horizontal overflow on all devices */
html {
  scroll-behavior: smooth;
  background: #000;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%; /* Prevent font scaling on orientation change (iOS) */
  text-size-adjust: 100%;
}

body {
  background: #000;
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Show normal cursor on touch devices (set via JS) */
body.touch-device,
body.touch-device * { cursor: auto !important; }
body.touch-device .cursor,
body.touch-device .cursor-ring { display: none !important; }

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
}

/* ── CURSOR (desktop only) ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--p1);
  border-radius: 50%;
  position: fixed; z-index: 9999;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
  will-change: left, top;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(255,45,120,0.6);
  border-radius: 50%;
  position: fixed; z-index: 9998;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: left 0.1s ease, top 0.1s ease, width 0.2s, height 0.2s;
  mix-blend-mode: screen;
  will-change: left, top;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 18px; height: 18px; background: var(--p3); }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 50px; height: 50px; border-color: rgba(0,245,212,0.6); }

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  padding-left: max(2.5rem, var(--safe-left));
  padding-right: max(2.5rem, var(--safe-right));
  height: 64px;
  background: rgba(0,0,0,0.92);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255,45,120,0.12);
  /* Prevent nav from causing layout shift on iOS */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.9rem;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 0.2rem; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-accent);
  font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5rem 0.8rem; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  /* Ensure 44px tap target height */
  min-height: 44px; display: flex; align-items: center;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text); }

/* Mobile nav open state */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(0,0,0,0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 0.8rem 1.2rem calc(0.8rem + var(--safe-bottom));
  border-bottom: 1px solid var(--border);
  gap: 0.1rem;
  z-index: 499;
  -webkit-overflow-scrolling: touch;
}
.nav-links.mobile-open a {
  padding: 0.9rem 0.8rem;
  min-height: 52px;
  font-size: 1rem;
  border-radius: 10px;
}

.nav-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.cart-btn {
  position: relative;
  background: rgba(255,45,120,0.1);
  border: 1px solid rgba(255,45,120,0.25);
  color: var(--text);
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.cart-btn:hover { background: rgba(255,45,120,0.2); border-color: rgba(255,45,120,0.5); transform: scale(1.08); }
.cart-btn:active { transform: scale(0.95); }

.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--p1);
  color: #fff; font-size: 0.6rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  opacity: 0; transform: scale(0);
  transition: opacity 0.2s, transform 0.2s;
}
.cart-badge.show { opacity: 1; transform: scale(1); }

.nav-order-btn {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff; border: none;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-accent); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 100px; text-decoration: none;
  min-height: 44px; display: flex; align-items: center;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 18px rgba(255,45,120,0.35);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.nav-order-btn:hover { opacity: 0.85; transform: scale(1.04); box-shadow: 0 0 30px rgba(255,45,120,0.6); }
.nav-order-btn:active { transform: scale(0.97); opacity: 0.9; }

/* Mobile hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  background: none; border: none;
  width: 44px; height: 44px; border-radius: 10px;
  padding: 0; align-items: center;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-hamburger:active { background: rgba(255,255,255,0.06); }
.nav-hamburger span {
  width: 22px; height: 2px; background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  display: block;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── CART PANEL ── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100vw; z-index: 801;
  background: #0a0a0f;
  border-left: 1px solid var(--border-light);
  transform: translateX(100%);
  -webkit-transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
  -webkit-transition: -webkit-transform 0.38s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  /* Account for notch/home indicator */
  padding-bottom: var(--safe-bottom);
  -webkit-overflow-scrolling: touch;
}
.cart-panel.open {
  transform: translateX(0);
  -webkit-transform: translateX(0);
}

.cart-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--border);
  padding-top: max(1.2rem, env(safe-area-inset-top, 0px));
}
.cart-panel-title {
  font-family: var(--font-head); font-size: 1.4rem; letter-spacing: 0.04em;
}
.cart-close-btn {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-light);
  color: var(--muted);
  width: 44px; height: 44px; border-radius: 10px;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.cart-close-btn:hover { background: rgba(255,45,120,0.15); color: var(--p1); }
.cart-close-btn:active { background: rgba(255,45,120,0.25); }

.cart-panel-items {
  flex: 1; overflow-y: auto; padding: 0.8rem 1.6rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.cart-panel-items::-webkit-scrollbar { width: 3px; }
.cart-panel-items::-webkit-scrollbar-track { background: transparent; }
.cart-panel-items::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

.cart-empty-msg {
  text-align: center; padding: 3rem 0;
  color: var(--muted); font-size: 0.88rem; line-height: 1.8;
}
.cart-empty-msg a { color: var(--p1); text-decoration: none; }
.cart-empty-msg .empty-icon { font-size: 2.5rem; display: block; margin-bottom: 0.8rem; opacity: 0.4; }

.cart-item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.cart-item-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,45,120,0.1); border: 1px solid rgba(255,45,120,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.82rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.3rem; word-break: break-word; }
.qty-row { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn {
  background: var(--border); border: none; color: var(--text);
  width: 28px; height: 28px; border-radius: 7px;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.qty-btn:hover { background: var(--border-light); }
.qty-btn:active { background: rgba(255,45,120,0.2); }
.qty-val { font-size: 0.82rem; font-weight: 600; min-width: 18px; text-align: center; }
.cart-item-right { text-align: right; flex-shrink: 0; }
.cart-item-price { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 0.3rem; }
.cart-remove {
  background: none; border: none; color: var(--muted); font-size: 0.74rem;
  padding: 4px 0;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  min-height: 32px; display: flex; align-items: center;
}
.cart-remove:hover { color: var(--p1); }

.cart-panel-footer {
  padding: 1.2rem 1.6rem;
  border-top: 1px solid var(--border);
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.cart-total-label { font-family: var(--font-accent); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cart-total-val {
  font-family: var(--font-head); font-size: 1.8rem;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.checkout-btn {
  width: 100%; padding: 1rem;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff; border: none; border-radius: 100px;
  font-family: var(--font-accent); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  min-height: 52px;
  box-shadow: 0 0 28px rgba(255,45,120,0.3);
  transition: opacity 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.checkout-btn:hover { opacity: 0.88; transform: scale(1.02); }
.checkout-btn:active { transform: scale(0.98); opacity: 0.9; }

/* ── PAGE WRAPPER ── */
.page-wrap { padding-top: 64px; position: relative; z-index: 1; }

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden; padding: 0.7rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: #000; position: relative; z-index: 2;
}
.marquee-track {
  display: flex; gap: 0;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
/* Pause marquee if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
.marquee-item {
  font-family: var(--font-accent);
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0 1.8rem; flex-shrink: 0;
}
.marquee-item:nth-child(4n+1) { color: var(--p1); }
.marquee-item:nth-child(4n+2) { color: var(--p2); }
.marquee-item:nth-child(4n+3) { color: var(--p3); }
.marquee-item:nth-child(4n+4) { color: var(--p4); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTION BASICS ── */
section { padding: 5rem 2.5rem; position: relative; z-index: 1; }

.section-label {
  font-family: var(--font-accent); font-size: 0.76rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--p1);
  margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--p1); flex-shrink: 0; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95; letter-spacing: 0.02em;
}

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff; border: none;
  padding: 0.9rem 2rem;
  font-family: var(--font-accent); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 100px; text-decoration: none; display: inline-flex; align-items: center;
  min-height: 50px;
  box-shadow: 0 0 28px rgba(255,45,120,0.32);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 44px rgba(255,45,120,0.6); }
.btn-primary:active { transform: scale(0.97); opacity: 0.9; }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.15);
  padding: 0.9rem 2rem;
  font-family: var(--font-accent); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 100px; text-decoration: none; display: inline-flex; align-items: center;
  min-height: 50px;
  transition: border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--p3); color: var(--p3); }
.btn-ghost:active { opacity: 0.8; }

.btn-add {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff; border: none;
  padding: 0.6rem 1.2rem; border-radius: 100px;
  font-family: var(--font-accent); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  min-height: 44px; display: inline-flex; align-items: center;
  box-shadow: 0 4px 14px rgba(255,45,120,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.btn-add:hover { transform: scale(1.06); box-shadow: 0 6px 22px rgba(255,45,120,0.48); }
.btn-add:active { transform: scale(0.96); }
.btn-add.added { background: linear-gradient(135deg, var(--p3), #00c9a7); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding: 7rem 2.5rem 4rem;
  position: relative; overflow: hidden; gap: 3rem;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.18;
  animation: blobFloat 9s ease-in-out infinite; pointer-events: none;
  will-change: transform;
}
/* Disable blobs on lower-powered devices */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}
.blob-1 { width: 480px; height: 480px; background: var(--p1); top: -80px; right: 180px; }
.blob-2 { width: 380px; height: 380px; background: var(--p2); bottom: 0; left: -80px; animation-delay: -3s; }
.blob-3 { width: 280px; height: 280px; background: var(--p3); top: 45%; right: -40px; animation-delay: -5s; opacity: 0.1; }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(25px,-15px) scale(1.04); }
  66% { transform: translate(-15px,25px) scale(0.96); }
}
.hero-left { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-accent); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--p3);
  margin-bottom: 1.4rem; padding: 0.4rem 1rem;
  border: 1px solid rgba(0,245,212,0.3); border-radius: 100px;
  background: rgba(0,245,212,0.05);
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--p3);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.3; transform:scale(0.6); } }
@media (prefers-reduced-motion: reduce) { .hero-tag-dot { animation: none; } }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.8rem, 8vw, 9rem); line-height: 0.88; letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
}
.hero-title .grad {
  background: linear-gradient(90deg, var(--p1) 0%, var(--p2) 50%, var(--p3) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 200%;
  animation: gradShift 3.5s ease infinite;
}
@keyframes gradShift { 0%,100% { background-position:0%; } 50% { background-position:100%; } }
@media (prefers-reduced-motion: reduce) { .hero-title .grad { animation: none; background-position: 0%; } }

.hero-sub { font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 420px; margin-bottom: 2.2rem; }
.hero-sub strong { color: var(--p3); font-weight: 600; }
.hero-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2.8rem; }

.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--border); }
.stat-num {
  font-family: var(--font-head); font-size: 2rem; line-height: 1;
  background: linear-gradient(135deg, var(--p1), var(--p4));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.2rem; }

.hero-right { position: relative; z-index: 2; }
.hero-img-wrap {
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,45,120,0.2);
  box-shadow: 0 0 60px rgba(123,47,255,0.22), 0 0 100px rgba(255,45,120,0.08);
  position: relative;
}
.hero-img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.hero-img-badge {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: rgba(0,0,0,0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--p3); font-family: var(--font-accent); font-size: 0.7rem; font-weight: 700;
  padding: 0.3rem 0.8rem; border-radius: 100px;
  border: 1px solid rgba(0,245,212,0.28); letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-price-sticker {
  position: absolute; bottom: -14px; right: -14px;
  width: 80px; height: 80px;
  background: var(--p4); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 0.95rem; line-height: 1.1;
  color: #000; text-align: center; transform: rotate(12deg);
  box-shadow: 0 0 24px rgba(255,229,0,0.4); z-index: 10;
}

/* ── PAGE NAV CARDS ── */
.page-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.page-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.8rem;
  text-decoration: none; color: var(--text);
  position: relative; overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column; gap: 0.4rem;
  -webkit-tap-highlight-color: transparent;
  /* min tap target */
  min-height: 160px;
}
.page-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255,45,120,0.4);
  box-shadow: 0 14px 46px rgba(255,45,120,0.18);
}
.page-card:active { transform: scale(0.98); }
.page-card-icon { font-size: 1.9rem; margin-bottom: 0.4rem; }
.page-card-label {
  font-family: var(--font-accent); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.page-card-title { font-family: var(--font-head); font-size: 1.7rem; letter-spacing: 0.02em; line-height: 1; }
.page-card-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin-top: 0.3rem; }
.page-card-arrow {
  position: absolute; bottom: 1.4rem; right: 1.4rem;
  font-family: var(--font-accent); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.page-card:hover .page-card-arrow { color: var(--p1); transform: translateX(4px); }
.page-card:nth-child(1) .page-card-label { color: var(--p1); }
.page-card:nth-child(2) .page-card-label { color: var(--p2); }
.page-card:nth-child(3) .page-card-label { color: var(--p3); }
.page-card:nth-child(4) .page-card-label { color: var(--p4); }

/* ── PRODUCT GRID ── */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}
.product-card {
  background: var(--card); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); position: relative;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, border-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 55px rgba(255,45,120,0.2), 0 0 0 1px rgba(255,45,120,0.32);
  border-color: rgba(255,45,120,0.32);
}
.product-img-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; position: relative; }
.product-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.product-card:hover .product-img { transform: scale(1.06); }
.product-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(8,8,16,0.8) 100%);
}
.product-badge {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff; font-family: var(--font-accent); font-size: 0.66rem; font-weight: 700;
  padding: 0.2rem 0.65rem; border-radius: 100px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.product-body { padding: 1.1rem 1.4rem 1.4rem; }
.product-cat {
  font-family: var(--font-accent); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--p3); margin-bottom: 0.3rem;
}
.product-name { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 0.02em; margin-bottom: 0.45rem; line-height: 1.05; }
.product-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.1rem; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.product-price { font-family: var(--font-head); font-size: 1.7rem; line-height: 1; }
.product-price small { font-family: var(--font-body); font-size: 0.64rem; color: var(--muted); display: block; margin-top: 0.1rem; font-weight: 400; }

/* ── COLOUR SWATCHES ── */
.colour-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  /* Larger tap target via pseudo element */
}
.colour-swatch:hover { transform: scale(1.15); }
.colour-swatch.selected {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25), 0 0 14px rgba(255,45,120,0.4);
  transform: scale(1.15);
}
.colour-pill {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--card); border: 1.5px solid var(--border-light);
  border-radius: 100px; padding: 0.42rem 1rem;
  font-family: var(--font-accent); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  min-height: 44px;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.colour-pill.selected { box-shadow: 0 0 16px rgba(255,45,120,0.4); transform: scale(1.05); }
.colour-pill-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }

/* ── CUSTOMISER ── */
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.custom-section { margin-bottom: 1.5rem; }
.custom-label {
  font-family: var(--font-accent); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--p3);
  display: block; margin-bottom: 0.75rem;
}
.custom-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.custom-opt {
  background: var(--card); border: 1.5px solid var(--border-light);
  color: var(--text); border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  min-height: 52px;
  transition: all 0.2s; text-align: center; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.custom-opt:hover { border-color: var(--p2); color: var(--p2); }
.custom-opt:active { transform: scale(0.97); }
.custom-opt.selected {
  background: linear-gradient(135deg, rgba(255,45,120,0.12), rgba(123,47,255,0.1));
  border-color: var(--p1); color: var(--text);
  box-shadow: 0 0 14px rgba(255,45,120,0.16);
}

.custom-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 80px; align-self: start;
}
.preview-wrap {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  margin-bottom: 1rem; position: relative; background: var(--card);
}
.preview-wrap img { width: 100%; display: block; max-height: 300px; object-fit: cover; transition: opacity 0.3s; }
.preview-badge-top {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: rgba(0,0,0,0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--p3); font-family: var(--font-accent); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.26rem 0.75rem; border-radius: 100px; border: 1px solid rgba(0,245,212,0.28);
}
.preview-badge-bottom {
  position: absolute; bottom: 0.8rem; right: 0.8rem;
  background: rgba(0,0,0,0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff; font-family: var(--font-accent); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.26rem 0.75rem; border-radius: 100px;
}
.order-summary {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.6rem;
}
.order-summary-title {
  font-family: var(--font-head); font-size: 1.25rem; letter-spacing: 0.03em;
  margin-bottom: 1.3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.sum-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.84rem; margin-bottom: 0.75rem;
}
.sum-row span:first-child { color: var(--muted); }
.sum-row span:last-child { font-weight: 600; word-break: break-word; text-align: right; max-width: 60%; }
.sum-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 0; margin: 0.7rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.sum-price-label { font-family: var(--font-accent); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sum-price-val {
  font-family: var(--font-head); font-size: 2rem;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.custom-notes-input {
  width: 100%; background: rgba(255,255,255,0.04); border: 1.5px solid var(--border);
  color: var(--text); padding: 0.8rem 1rem; font-family: var(--font-body);
  /* 16px minimum prevents iOS zoom on focus */
  font-size: max(16px, 0.85rem);
  border-radius: 12px; outline: none; resize: vertical; min-height: 80px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.custom-notes-input:focus { border-color: var(--p2); }
.add-to-cart-btn {
  width: 100%; padding: 1rem; margin-top: 1.1rem;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff; border: none; border-radius: 100px;
  font-family: var(--font-accent); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  min-height: 54px;
  box-shadow: 0 0 26px rgba(255,45,120,0.28);
  transition: opacity 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.add-to-cart-btn:hover { opacity: 0.87; transform: scale(1.02); }
.add-to-cart-btn:active { transform: scale(0.98); opacity: 0.9; }

/* ── HOW IT WORKS ── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.3rem; margin-top: 3rem; }
.step {
  background: var(--card); border-radius: 18px; padding: 1.8rem 1.4rem;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(123,47,255,0.42); }
.step::after {
  content: attr(data-num);
  position: absolute; bottom: -0.2em; right: 0.1em;
  font-family: var(--font-head); font-size: 6.5rem; color: rgba(255,255,255,0.025);
  line-height: 1; pointer-events: none;
}
.step-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.1rem;
}
.step:nth-child(1) .step-icon { background: rgba(255,45,120,0.13); }
.step:nth-child(2) .step-icon { background: rgba(123,47,255,0.13); }
.step:nth-child(3) .step-icon { background: rgba(0,245,212,0.13); }
.step:nth-child(4) .step-icon { background: rgba(255,229,0,0.13); }
.step-title { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: 0.02em; margin-bottom: 0.45rem; }
.step-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.7; }

/* ── GALLERY IMAGES ── */
.gallery-img-wrap {
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,45,120,0.2);
  box-shadow: 0 0 55px rgba(255,45,120,0.16), 0 0 110px rgba(123,47,255,0.07);
  position: relative;
}
.gallery-img { width: 100%; display: block; max-height: 600px; object-fit: cover; }
.gallery-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.2rem 1.6rem;
  background: linear-gradient(to top, rgba(0,0,0,0.94) 0%, transparent 100%);
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 0.8rem;
}
.vs-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-head); font-size: clamp(3rem,8vw,7rem); letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0.78; pointer-events: none; line-height: 1;
}

/* ── FEATURE GRID ── */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 3rem; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 15px; padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover { border-color: rgba(0,245,212,0.32); transform: translateY(-3px); }
.feature-icon { font-size: 1.7rem; margin-bottom: 0.75rem; }
.feature-title { font-family: var(--font-accent); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem; }
.feature-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }

/* ── TOAST ── */
.toast {
  position: fixed; z-index: 900;
  bottom: max(1.5rem, var(--safe-bottom));
  right: max(1.5rem, var(--safe-right));
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff; padding: 0.82rem 1.3rem;
  font-family: var(--font-accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em;
  border-radius: 100px;
  transform: translateY(80px); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
  white-space: nowrap;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── FOOTER ── */
footer {
  background: #000; border-top: 1px solid var(--border);
  padding: 3.5rem 2.5rem 2rem;
  padding-left: max(2.5rem, var(--safe-left));
  padding-right: max(2.5rem, var(--safe-right));
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  position: relative; z-index: 1;
}
.footer-logo {
  font-family: var(--font-head); font-size: 2.1rem; letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block; margin-bottom: 0.8rem; text-decoration: none;
}
.footer-tagline { font-size: 0.84rem; color: var(--muted); line-height: 1.75; max-width: 300px; }
.footer-col-title {
  font-family: var(--font-accent); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text);
  margin-bottom: 1.1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a {
  color: var(--muted); text-decoration: none; font-size: 0.84rem;
  transition: color 0.2s;
  /* Ensure tap targets */
  display: inline-block; padding: 4px 0;
  -webkit-tap-highlight-color: transparent;
}
.footer-links a:hover { color: var(--p1); }
.footer-bottom {
  background: #000; border-top: 1px solid var(--border);
  padding: 1.1rem 2.5rem;
  padding-left: max(2.5rem, var(--safe-left));
  padding-right: max(2.5rem, var(--safe-right));
  padding-bottom: max(1.1rem, var(--safe-bottom));
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
  position: relative; z-index: 1;
}
.footer-copy { font-size: 0.7rem; color: var(--muted); }

/* ── FADE ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════ */

/* ── LARGE TABLET (max 1024px) ── */
@media (max-width: 1024px) {
  section { padding: 4rem 2rem; }
  .hero { padding: 6rem 2rem 3.5rem; gap: 2rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr 1fr; gap: 2rem; }
  footer > div:first-child { grid-column: 1 / -1; }
}

/* ── TABLET (max 900px) ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 5.5rem 1.8rem 3rem; }
  .hero-right { order: -1; }
  .hero-title { font-size: clamp(3.2rem, 10vw, 5.5rem); }
  .hero-img-wrap { max-width: 500px; margin: 0 auto; }
  .nav-order-btn { display: none; }
  .custom-grid { grid-template-columns: 1fr; }
  .custom-sticky { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

/* ── MOBILE NAV (max 768px) ── */
@media (max-width: 768px) {
  nav { padding: 0 1.2rem; padding-left: max(1.2rem, var(--safe-left)); padding-right: max(1.2rem, var(--safe-right)); }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-order-btn { display: none; }
}

/* ── MOBILE (max 640px) ── */
@media (max-width: 640px) {
  section { padding: 3rem 1.2rem; }
  .hero { padding: 5rem 1.2rem 2.5rem; }
  .hero-sub { font-size: 0.92rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn-primary, .hero-btns .btn-ghost { width: 100%; justify-content: center; text-align: center; }
  .hero-stats { gap: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .page-cards { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: 1.8rem; padding: 2.5rem 1.2rem 1.5rem; }
  footer > div:first-child { grid-column: auto; }
  .footer-bottom { padding: 1rem 1.2rem; flex-direction: column; text-align: center; }
  .section-title { font-size: clamp(2rem, 9vw, 3.2rem); }
  .cart-panel { width: 100vw; border-left: none; border-top: 1px solid var(--border-light); border-radius: 16px 16px 0 0; top: auto; height: 90vh; }
  .cart-panel.open { transform: translateY(0); -webkit-transform: translateY(0); }
  .cart-panel { transform: translateY(100%); -webkit-transform: translateY(100%); top: auto; bottom: 0; left: 0; right: 0; }
  .toast { left: 1.2rem; right: 1.2rem; text-align: center; border-radius: 14px; white-space: normal; }
  .page-wrap { padding-top: 64px; }
}

/* ── SMALL MOBILE (max 400px) ── */
@media (max-width: 400px) {
  .hero-title { font-size: 3rem; }
  .section-title { font-size: 2rem; }
  .nav-logo { font-size: 1.6rem; }
  .hero-price-sticker { width: 68px; height: 68px; font-size: 0.82rem; right: -8px; bottom: -8px; }
  .custom-opts { grid-template-columns: 1fr; }
}

/* ── LANDSCAPE PHONE ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 5rem 1.8rem 2rem; }
  nav { height: 56px; }
  .page-wrap { padding-top: 56px; }
  .nav-links.mobile-open { top: 56px; }
  .cart-panel { height: 100vh; top: 0; border-radius: 0; }
}

/* ── HIGH DPI / RETINA ── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-img-badge, .preview-badge-top, .preview-badge-bottom { font-size: 0.65rem; }
}
