/* ============================================
   CG-Store – Chaotic Great
   Art-forward dark theme storefront
   Because Good Isn't Good Enough™
   ============================================ */

/* ─── Custom Properties ──────────────────── */

:root {
  --font-display: 'jaf-lapture-display', Georgia, serif;
  --font-subhead: 'jaf-lapture-subhead', Georgia, serif;
  --font-serif: 'jaf-lapture', Georgia, serif;
  --font-caption: 'jaf-lapture-caption', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  --bg-abyss: #06080c;
  --bg-darkest: #0a0d14;
  --bg-dark: #0f1219;
  --bg-card: #151a25;
  --bg-card-hover: #1a2030;
  --bg-surface: #121620;
  --bg-glass: rgba(15, 18, 25, 0.75);
  --bg-glass-heavy: rgba(10, 13, 20, 0.88);

  --accent: #4aedc4;
  --accent-dim: #3bc4a1;
  --accent-bright: #6ff5d6;
  --accent-glow: rgba(74, 237, 196, 0.12);
  --accent-glow-strong: rgba(74, 237, 196, 0.25);

  --pink: #c9374d;
  --pink-dim: #a12d3f;
  --pink-glow: rgba(201, 55, 77, 0.12);
  --pink-glow-strong: rgba(201, 55, 77, 0.25);

  --gold: #f5c842;
  --gold-glow: rgba(245, 200, 66, 0.12);

  --text-primary: #edf0f5;
  --text-secondary: #949dae;
  --text-muted: #5d6780;
  --text-on-accent: #06080c;
  --text-bright: #ffffff;

  --border: #1e2438;
  --border-light: #2a3348;
  --border-glow: rgba(74, 237, 196, 0.2);

  --danger: #f5425a;
  --warning: #f5a623;
  --success: #4aedc4;

  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset & Base ───────────────────────── */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-serif);
  background: var(--bg-abyss);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Accessibility ──────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Links ──────────────────────────────── */

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-bright); }

/* ─── Container ──────────────────────────── */

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

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

main { flex: 1; }

/* ─── Header ─────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-bright) !important;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.logo img {
  height: 40px;
  width: auto;
}

.main-nav { display: flex; gap: 0.25rem; align-items: center; }

.main-nav a {
  font-family: var(--font-caption);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.06);
}

/* ─── Nav Dropdown ───────────────────────── */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font-family: var(--font-caption);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-dropdown-toggle:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.06);
}

.nav-caret {
  font-size: 0.7em;
  margin-left: 0.15rem;
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-dropdown[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  z-index: 100;
  flex-direction: column;
}

.nav-dropdown[aria-expanded="true"] .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm, 4px);
  white-space: nowrap;
}

.nav-cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--pink);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.admin-main { padding-top: 2rem; padding-bottom: 3rem; }

.admin-header {
  background: var(--bg-glass-heavy);
}

/* Spacer for fixed header */
.header-spacer { height: 72px; }
.header-spacer-store { height: 112px; }

/* ─── Store Subnav ───────────────────────── */

.store-subnav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.store-subnav::-webkit-scrollbar { display: none; }

.is-store .promo-banner ~ .site-header ~ .store-subnav {
  top: calc(72px + 36px);
}

.is-store .promo-banner ~ .site-header ~ .header-spacer-store {
  height: calc(112px + 36px);
}

.store-subnav-inner {
  display: flex;
  gap: 0;
  padding: 0 1.5rem;
  max-width: var(--max-width, 1280px);
  margin: 0 auto;
  white-space: nowrap;
}

.store-subnav-link {
  font-family: var(--font-caption);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 0.7rem 1rem;
  transition: color 0.2s ease;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.store-subnav-link:hover {
  color: var(--text-bright);
}

.store-subnav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent);
}

.store-subnav-spacer {
  flex: 1;
}

.store-subnav-util {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.store-subnav-util:hover {
  color: var(--text-secondary);
}

/* ─── Nav Active State ───────────────────── */

.nav-active {
  color: var(--accent) !important;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ─── Footer ─────────────────────────────── */

.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img { height: 32px; opacity: 0.6; }
.footer-brand span { color: var(--text-muted); font-family: var(--font-display); font-size: 0.95rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; width: 100%; text-align: center; margin-top: 1rem; }

/* ─── Buttons ────────────────────────────── */

.btn {
  font-family: var(--font-caption);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover {
  background: var(--accent-bright);
  color: var(--text-on-accent);
  box-shadow: 0 0 30px var(--accent-glow-strong), 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.btn-pink {
  background: var(--pink);
  color: white;
  box-shadow: 0 0 20px var(--pink-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}
.btn-pink:hover {
  background: #ff7ad6;
  color: white;
  box-shadow: 0 0 30px var(--pink-glow-strong), 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text-muted);
  color: var(--text-bright);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #d93a4f; }

.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }

/* ─── Hero ───────────────────────────────── */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(6, 8, 12, 0.3) 0%, rgba(6, 8, 12, 0.1) 30%, rgba(6, 8, 12, 0.6) 70%, var(--bg-abyss) 100%),
    linear-gradient(to right, rgba(6, 8, 12, 0.4) 0%, transparent 30%, transparent 70%, rgba(6, 8, 12, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 700px;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px rgba(74, 237, 196, 0.3));
  animation: hero-float 6s ease-in-out infinite;
}

.hero-wordmark {
  width: clamp(280px, 50vw, 480px);
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.5));
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-bright);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.hero-gradient-text {
  background: linear-gradient(135deg, var(--accent-bright), var(--pink), var(--gold));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero p {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Art Showcase (card gallery on home) ── */

.art-showcase {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.art-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.art-showcase h2 {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.art-showcase .section-subtitle {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  font-size: 1rem;
}

.card-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.5rem 2rem;
  scrollbar-width: none;
}

.card-scroll::-webkit-scrollbar { display: none; }

.card-art {
  flex: 0 0 280px;
  scroll-snap-align: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card-art:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 40px var(--accent-glow);
}

.card-art img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ─── Section Dividers with BG Art ────────── */

.scene-break {
  position: relative;
  height: 300px;
  overflow: hidden;
  margin: 0 -1.5rem;
}

.scene-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.scene-break::before,
.scene-break::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 1;
}

.scene-break::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-abyss), transparent);
}

.scene-break::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-abyss), transparent);
}

/* ─── Section Headings ───────────────────── */

.section { padding: 4rem 0; }

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

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-family: var(--font-serif);
  color: var(--text-muted);
  font-size: 1.1rem;
  font-style: italic;
}

/* ─── Category Cards ─────────────────────── */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 16/9;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.category-card:hover .category-card-bg img {
  transform: scale(1.08);
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 12, 0.85) 0%, rgba(6, 8, 12, 0.2) 60%, transparent 100%);
  z-index: 1;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
  border-color: var(--accent);
}

.category-card h3 {
  position: relative;
  z-index: 2;
  color: var(--text-bright);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* ─── Product Grid ───────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
  transform: translateY(-4px);
}

.product-card a { color: inherit; text-decoration: none; }

.product-image {
  aspect-ratio: 1;
  background: var(--bg-darkest);
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

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

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-card));
}

.placeholder-image.large { min-height: 400px; }

.product-info {
  padding: 1.25rem;
}

.product-info h3 {
  font-family: var(--font-subhead);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.product-category {
  font-family: var(--font-caption);
  font-size: 0.8rem;
  color: var(--accent-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.product-price { margin-top: 0.6rem; display: flex; align-items: baseline; gap: 0.5rem; }
.price { font-family: var(--font-subhead); font-weight: 400; font-size: 1.2rem; color: var(--text-bright); }
.compare-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-price.large .price { font-size: 2rem; }
.product-price.large .compare-price { font-size: 1.1rem; }

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

/* ─── Product Detail ─────────────────────── */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem 0 4rem;
}

.product-detail-image {
  position: relative;
}

.product-detail-image > img {
  width: 100%;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.pd-carousel-main {
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.product-detail-info { padding-top: 1rem; }

.product-detail-info .product-category {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.product-detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.product-description {
  font-family: var(--font-serif);
  margin: 1.5rem 0 2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.15rem;
}

.add-to-cart-form {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.quantity-row label { font-weight: 600; font-size: 0.9rem; }

.quantity-row input {
  width: 80px;
  padding: 0.6rem;
  background: var(--bg-darkest);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
  text-align: center;
}

.out-of-stock {
  color: var(--danger);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(245, 66, 90, 0.3);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(245, 66, 90, 0.08);
}

.product-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  gap: 1.5rem;
}

/* ─── Product FAQs ──────────────────────── */

.product-faqs {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.product-faqs h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-question {
  padding: 1rem 1.25rem;
  font-family: var(--font-subhead);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo), color 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '\2212';
  color: var(--accent);
  transform: rotate(180deg);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  animation: faq-open 0.3s var(--ease-out-expo);
}

.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--text-primary); }
.faq-answer em { color: var(--accent-dim); font-style: italic; }

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Cart ───────────────────────────────── */

.cart-page { padding: 2rem 0 4rem; }

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.cart-table th,
.cart-table td {
  padding: 1rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cart-table th {
  font-family: var(--font-caption);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-product-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-darkest);
}

.cart-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-qty-form input {
  width: 64px;
  padding: 0.5rem;
  background: var(--bg-darkest);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-align: center;
  font-size: 0.9rem;
}

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cart-summary-totals { text-align: right; }
.cart-subtotal { font-family: var(--font-subhead); font-size: 1.5rem; font-weight: 400; margin-bottom: 0.3rem; }
.cart-shipping-note { color: var(--text-secondary); font-size: 0.9rem; }

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

/* ─── Checkout ───────────────────────────── */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  padding: 2rem 0 4rem;
}

.checkout-form h2,
.checkout-summary h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkout-item.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
  padding-top: 0.75rem;
}

.checkout-summary hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.5rem 0;
}

/* ─── Forms ──────────────────────────────── */

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  font-family: var(--font-caption);
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-darkest);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
}

.form-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }

/* ─── Auth Pages ─────────────────────────── */

.auth-page {
  max-width: 440px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.auth-page h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.auth-form { margin-top: 1.5rem; }
.auth-link { margin-top: 1.5rem; color: var(--text-secondary); font-size: 0.9rem; text-align: center; }

/* ─── Alerts ─────────────────────────────── */

.alert {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-danger {
  background: rgba(245, 66, 90, 0.12);
  color: var(--danger);
  border: 1px solid rgba(245, 66, 90, 0.25);
}

/* ─── Badges ─────────────────────────────── */

.badge {
  font-family: var(--font-caption);
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success, .badge-paid, .badge-delivered { background: var(--accent-glow-strong); color: var(--accent); }
.badge-danger, .badge-cancelled, .badge-refunded { background: rgba(245, 66, 90, 0.15); color: var(--danger); }
.badge-pending { background: rgba(245, 166, 35, 0.15); color: var(--warning); }
.badge-processing, .badge-shipped { background: var(--pink-glow-strong); color: var(--pink); }
.badge-info { background: var(--pink-glow-strong); color: var(--pink); }
.badge-muted { background: rgba(90, 100, 120, 0.2); color: var(--text-muted); }
.badge-sale { background: var(--pink); color: white; }

/* ─── Order Confirmation ─────────────────── */

.order-confirmation {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.order-confirmation h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.order-number {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  margin-bottom: 1rem;
}

.order-details,
.order-shipping { margin: 2rem 0; }

.order-details h2,
.order-shipping h2 {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.order-table th,
.order-table td {
  padding: 0.7rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.order-table th {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-totals {
  font-family: var(--font-caption);
  text-align: right;
  padding: 1rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.order-total { font-size: 1.15rem; font-weight: 700; color: var(--text-bright); }

/* ─── Account ────────────────────────────── */

.account-page { padding: 2rem 0 4rem; }

.account-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.account-welcome {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ─── Shop Page ──────────────────────────── */

/* ─── Category Tabs ───────────────────────── */

.category-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.category-tabs::-webkit-scrollbar { display: none; }

.category-tab {
  font-family: var(--font-caption);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 400;
  white-space: nowrap;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-tab:hover {
  color: var(--text-primary);
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
}

.category-tab.active {
  color: var(--bg-abyss);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(74, 237, 196, 0.3);
}

.shop-page { padding: 2rem 0 4rem; }

.shop-header {
  margin-bottom: 2.5rem;
}

.shop-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.shop-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.shop-filters input,
.shop-filters select {
  padding: 0.55rem 0.85rem;
  background: var(--bg-darkest);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
}

.shop-filters input:focus,
.shop-filters select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.shop-filters input { flex: 1; min-width: 200px; }

/* ─── Admin ──────────────────────────────── */

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.stat-card:hover { border-color: var(--border-light); }

.nav-active {
  color: var(--accent) !important;
  background: rgba(74, 237, 196, 0.08);
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-icon { opacity: 0.8; }

.stat-label {
  font-family: var(--font-caption);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-bright);
  margin: 0;
}

.admin-section { margin-bottom: 2rem; }

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.admin-card-header h2 {
  font-family: var(--font-caption);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.admin-card-label {
  font-family: var(--font-caption);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.admin-empty {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
}

.admin-status-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg-darkest);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-caption);
  font-size: 0.9rem;
}

.admin-status-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.order-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

.order-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-layout-two-col {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .order-detail-layout { grid-template-columns: 1fr; }
  .admin-layout-two-col { grid-template-columns: 1fr; }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.admin-table tr:hover { background: rgba(255, 255, 255, 0.02); }

.admin-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin: 1rem 0 2rem;
}

.admin-form-toggle { margin-bottom: 1.5rem; }
.admin-form-toggle summary { cursor: pointer; list-style: none; }
.admin-form-toggle summary::-webkit-details-marker { display: none; }
.admin-form-toggle[open] summary { margin-bottom: 1rem; }

/* ─── Admin Product Grid ────────────────── */

.product-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.product-admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.product-admin-card:hover { border-color: var(--border-light); }

.product-admin-card.inactive { opacity: 0.5; }

.product-admin-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-darkest);
  overflow: hidden;
}

.product-admin-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-admin-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.product-admin-details { padding: 1rem; }

.product-admin-sku {
  font-family: var(--font-caption);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.product-admin-details h3 {
  font-family: var(--font-subhead);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-admin-price { margin-bottom: 0.25rem; }
.product-admin-price .price { font-size: 1rem; }
.product-admin-price .compare-price { font-size: 0.85rem; }

.product-admin-meta {
  font-family: var(--font-caption);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-admin-actions {
  padding: 0 1rem 1rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* ─── Admin Product Edit Layout ─────────── */

.product-edit-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

.product-edit-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.product-edit-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-edit-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
}

.product-edit-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-edit-preview .placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-darkest);
  color: var(--text-muted);
}

.product-edit-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.product-edit-panel h3 {
  font-family: var(--font-caption);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.toggle-label {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.btn-warning {
  background: var(--gold);
  color: var(--bg-abyss);
}
.btn-warning:hover {
  background: #f5d462;
  color: var(--bg-abyss);
}

/* ─── Image Gallery & Upload ────────────── */

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.image-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.2s ease;
}

.image-gallery-item:hover { border-color: var(--border-light); }

.image-gallery-item.featured { border-color: var(--accent); }

.image-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-featured-badge {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  background: var(--accent);
  color: var(--bg-abyss);
  font-family: var(--font-caption);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.image-gallery-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  opacity: 0;
  transition: opacity 0.2s ease;
  justify-content: flex-end;
}

.image-gallery-item:hover .image-gallery-actions { opacity: 1; }

.img-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--text-bright);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.img-action-btn:hover { background: rgba(255,255,255,0.3); }
.img-action-btn.danger:hover { background: var(--danger); }

.image-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.image-upload-label:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(74, 237, 196, 0.04);
}

@media (max-width: 768px) {
  .product-edit-layout { grid-template-columns: 1fr; }
  .product-admin-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .image-gallery { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}

.inline-form { display: inline-flex; gap: 0.5rem; align-items: center; }
.inline-form select {
  padding: 0.45rem 0.65rem;
  background: var(--bg-darkest);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 1.5rem 0;
}

.order-detail-grid h2 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.order-detail-grid h2:first-child { margin-top: 0; }

/* ─── Empty State ────────────────────────── */

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-secondary);
}

.empty-state p { font-size: 1.1rem; margin-bottom: 1.5rem; }

/* ─── Error Page ─────────────────────────── */

.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-page h1 {
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin: 1.5rem 0 2.5rem;
}

/* ─── Free Shipping Banner ───────────────── */

.promo-banner {
  font-family: var(--font-serif);
  font-style: italic;
  background: linear-gradient(90deg, var(--accent-glow), var(--pink-glow), var(--accent-glow));
  background-size: 200% 100%;
  animation: banner-shimmer 6s ease infinite;
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.promo-banner strong { color: var(--accent); }

@keyframes banner-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ─── Responsive ─────────────────────────── */

@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .header-spacer { height: 60px; }
  .logo { font-size: 1rem; }
  .logo img { height: 32px; }

  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

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

  .main-nav a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius);
  }

  .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 1rem;
  }

  .nav-dropdown-menu a {
    padding: 0.65rem 1rem;
  }

  .store-subnav { top: 60px; }
  .header-spacer-store { height: 100px; }
  .is-store .promo-banner ~ .site-header ~ .store-subnav { top: calc(60px + 36px); }
  .is-store .promo-banner ~ .site-header ~ .header-spacer-store { height: calc(100px + 36px); }

  .store-subnav-inner { padding: 0 0.75rem; flex-wrap: wrap; }
  .store-subnav-link { padding: 0.6rem 0.75rem; font-size: 0.78rem; }
  .store-subnav-spacer { display: none; }
  .store-subnav-util { font-size: 0.75rem; }

  .hero { min-height: 70vh; }
  .hero-logo { width: 80px; }

  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-detail-grid { grid-template-columns: 1fr; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  .card-art { flex: 0 0 220px; }

  .cart-table thead { display: none; }
  .cart-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }
  .cart-table td { border: none; padding: 0.25rem; }

  .cart-summary {
    flex-direction: column;
    text-align: center;
  }
  .cart-summary-totals { text-align: center; }
  .cart-actions { justify-content: center; }

  .scene-break { height: 180px; }

  .section { padding: 3rem 0; }
  .auth-page { margin: 2rem auto; padding: 1.5rem; }

  .checkout-summary { position: static; }

  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-info { padding: 0.85rem; }
  .product-info h3 { font-size: 0.875rem; }
  .price { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .shop-filters { flex-direction: column; }
  .shop-filters input { min-width: auto; }
}

/* ─── Order Tracking ──────────────────────── */

.order-tracking {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.order-tracking h1 {
  font-family: var(--font-display);
  font-weight: 400;
}

.tracking-progress {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 2rem 0 2.5rem;
  padding: 0 1rem;
}

.tracking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.tracking-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.tracking-step.active .tracking-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(74, 237, 196, 0.4);
}

.tracking-step.current .tracking-dot {
  box-shadow: 0 0 0 4px rgba(74, 237, 196, 0.2), 0 0 16px rgba(74, 237, 196, 0.5);
}

.tracking-line {
  position: absolute;
  top: 9px;
  left: calc(50% + 10px);
  width: calc(100% - 20px);
  height: 2px;
  background: var(--border);
}

.tracking-step.active .tracking-line {
  background: var(--accent);
}

.tracking-label {
  font-family: var(--font-caption);
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.tracking-step.active .tracking-label {
  color: var(--accent);
}

.tracking-step.current .tracking-label {
  color: var(--accent-bright);
}

.tracking-terminal {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.tracking-info {
  margin: 2rem 0;
  text-align: left;
}

.tracking-details {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.tracking-details p {
  margin: 0.25rem 0;
  color: var(--text-secondary);
}

.tracking-details code {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 480px) {
  .tracking-label { font-size: 0.625rem; }
}

/* ============================================
   Page Entrance & Scroll Animations
   Smooth as butter, envy of everyone
   ============================================ */

/* ─── Base reveal state ──────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-spring);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ─── Staggered children ─────────────────── */

.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo);
}

.stagger-children.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 60ms; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 120ms; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 180ms; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 240ms; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 300ms; }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 360ms; }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 420ms; }
.stagger-children.revealed > *:nth-child(9) { transition-delay: 480ms; }
.stagger-children.revealed > *:nth-child(10) { transition-delay: 540ms; }
.stagger-children.revealed > *:nth-child(n+11) { transition-delay: 600ms; }

/* ─── Hero entrance ──────────────────────── */

@keyframes hero-entrance {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-content-rise {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hero-wordmark-drop {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-bg img {
  animation: hero-entrance 1.8s var(--ease-out-expo) both;
}

.hero-content {
  animation: hero-content-rise 1s var(--ease-out-expo) 0.3s both;
}

.hero-wordmark {
  animation: hero-wordmark-drop 1.2s var(--ease-spring) 0.5s both;
}

.hero-actions {
  animation: hero-content-rise 0.8s var(--ease-out-expo) 0.8s both;
}

.hero p {
  animation: hero-content-rise 0.8s var(--ease-out-expo) 0.6s both;
}

/* ─── Page entrance ──────────────────────── */

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-page,
.cart-page,
.checkout-layout,
.order-confirmation,
.auth-page,
.order-tracking,
.product-detail,
.account-page {
  animation: page-enter 0.6s var(--ease-out-expo) both;
}

/* ─── Product card reveals ───────────────── */

.product-grid .product-card {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-expo),
    box-shadow 0.3s ease;
}

.product-grid .product-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─── Category card reveals ──────────────── */

.category-grid .category-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.6s var(--ease-spring),
    border-color 0.3s var(--ease-out-expo),
    box-shadow 0.3s ease;
}

.category-grid .category-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─── Card art gallery reveal ────────────── */

.card-scroll .card-art {
  opacity: 0;
  transform: translateY(20px) rotate(-2deg);
  transition:
    opacity 0.5s var(--ease-out-expo),
    transform 0.6s var(--ease-spring),
    box-shadow 0.4s var(--ease-out-expo);
}

.card-scroll .card-art.revealed {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* ─── Scene break parallax-lite ──────────── */

.scene-break img {
  transition: transform 0.4s var(--ease-out-expo);
}

.scene-break.revealed img {
  animation: scene-zoom 1.5s var(--ease-out-expo) both;
}

@keyframes scene-zoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

/* ─── Section header reveals ─────────────── */

.section-header {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.section-header.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Art showcase heading ───────────────── */

.art-showcase h2,
.art-showcase .section-subtitle {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.art-showcase h2.revealed {
  opacity: 1;
  transform: translateY(0);
}

.art-showcase .section-subtitle.revealed {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* ─── Cart table row entrance ────────────── */

.cart-table tbody tr {
  opacity: 0;
  transform: translateX(-20px);
  animation: cart-row-in 0.5s var(--ease-out-expo) both;
}

.cart-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.cart-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.cart-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.cart-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.cart-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.cart-table tbody tr:nth-child(n+6) { animation-delay: 0.3s; }

@keyframes cart-row-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── Checkout summary entrance ──────────── */

.checkout-summary {
  animation: checkout-summary-in 0.7s var(--ease-out-expo) 0.2s both;
}

@keyframes checkout-summary-in {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.checkout-form {
  animation: page-enter 0.6s var(--ease-out-expo) 0.1s both;
}

/* ─── Order confirmation celebration ─────── */

.order-confirmation h1 {
  animation: confirm-pop 0.8s var(--ease-spring) 0.2s both;
}

@keyframes confirm-pop {
  0% {
    opacity: 0;
    transform: scale(0.7);
    filter: blur(4px);
  }
  60% {
    opacity: 1;
    transform: scale(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.order-number {
  animation: page-enter 0.5s var(--ease-out-expo) 0.4s both;
}

.order-details {
  animation: page-enter 0.6s var(--ease-out-expo) 0.5s both;
}

.order-shipping {
  animation: page-enter 0.6s var(--ease-out-expo) 0.6s both;
}

/* ─── Product detail entrance ────────────── */

.product-detail-image {
  animation: detail-image-in 0.8s var(--ease-out-expo) both;
}

@keyframes detail-image-in {
  from {
    opacity: 0;
    transform: translateX(-40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.product-detail-info {
  animation: detail-info-in 0.7s var(--ease-out-expo) 0.15s both;
}

@keyframes detail-info-in {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.product-detail-info h1 {
  animation: detail-title-in 0.6s var(--ease-out-expo) 0.25s both;
}

@keyframes detail-title-in {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.add-to-cart-form {
  animation: page-enter 0.6s var(--ease-out-expo) 0.35s both;
}

.product-meta {
  animation: page-enter 0.5s var(--ease-out-expo) 0.45s both;
}

/* ─── Button micro-interactions ──────────── */

.btn {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s var(--ease-out-expo),
    box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px var(--accent-glow-strong), 0 0 40px var(--accent-glow);
}

/* ─── Cart badge pop ─────────────────────── */

.cart-badge {
  animation: badge-pop 0.4s var(--ease-spring) both;
}

@keyframes badge-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ─── Category tab active glow ───────────── */

.category-tab {
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.3s ease;
}

.category-tab.active {
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ─── Shop filter bar entrance ───────────── */

.shop-filters {
  animation: page-enter 0.5s var(--ease-out-expo) 0.15s both;
}

.category-tabs {
  animation: page-enter 0.4s var(--ease-out-expo) 0.05s both;
}

.shop-header {
  animation: page-enter 0.5s var(--ease-out-expo) both;
}

/* ─── Image hover shine effect ───────────── */

.product-card .product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out-expo);
  pointer-events: none;
  z-index: 1;
}

.product-card:hover .product-image::after {
  transform: translateX(120%);
}

/* ─── Promo banner shimmer ───────────────── */

.promo-banner {
  position: relative;
  overflow: hidden;
}

.promo-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: promo-shimmer 6s ease-in-out infinite;
}

@keyframes promo-shimmer {
  0%, 100% { left: -50%; }
  50% { left: 100%; }
}

/* ─── Glow pulse on accent elements ──────── */

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 30px var(--accent-glow-strong), 0 0 60px var(--accent-glow); }
}

.btn-primary.btn-lg {
  animation: glow-pulse 3s ease-in-out infinite;
}

.btn-primary.btn-lg:hover {
  animation: none;
  box-shadow: 0 4px 20px var(--accent-glow-strong), 0 0 50px var(--accent-glow);
}

/* ─── Admin card entrance ────────────────── */

.admin-card {
  animation: page-enter 0.4s var(--ease-out-expo) both;
}

.admin-card:nth-child(2) { animation-delay: 0.05s; }
.admin-card:nth-child(3) { animation-delay: 0.1s; }
.admin-card:nth-child(4) { animation-delay: 0.15s; }

/* ─── Footer entrance ────────────────────── */

.site-footer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.site-footer.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Size Selector ────────────────────── */

.size-selector {
  margin-bottom: 1.25rem;
}

.size-selector-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.size-selector-label {
  font-family: var(--font-caption);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.size-selector-chosen {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.size-selector-chosen.size-chosen-pop {
  color: var(--accent);
}

.size-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-btn {
  position: relative;
  min-width: 52px;
  height: 44px;
  padding: 0 0.85rem;
  background: var(--bg-darkest);
  color: var(--text-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    border-color 0.2s var(--ease-out-expo),
    background 0.2s var(--ease-out-expo),
    color 0.2s ease,
    transform 0.2s var(--ease-spring),
    box-shadow 0.2s ease;
}

.size-btn:hover:not(:disabled) {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.size-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.96);
}

.size-btn-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg-darkest);
  box-shadow: 0 0 20px var(--accent-glow-strong), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.size-btn-active:hover:not(:disabled) {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.size-btn-oos {
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--bg-card);
  border-style: dashed;
}

.size-btn-oos::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--text-muted);
  transform: rotate(-12deg);
  opacity: 0.6;
}

/* Stock hint below size options */
.size-stock-hint {
  min-height: 1.4rem;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.stock-low {
  color: var(--warning);
}

.stock-low::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
  margin-right: 0.4rem;
  vertical-align: middle;
  animation: stock-pulse 1.5s ease-in-out infinite;
}

@keyframes stock-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.stock-ok {
  color: var(--accent);
}

.stock-ok::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Size + Qty + Button row for sized products */
.size-qty-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.size-qty-row .quantity-row {
  margin-bottom: 0;
  flex-shrink: 0;
}

.size-add-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 48px;
  font-size: 0.95rem;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s var(--ease-out-expo),
    box-shadow 0.3s ease,
    opacity 0.2s ease;
}

.size-add-btn:disabled {
  opacity: 0.5;
}

.size-add-btn:disabled .atc-icon {
  opacity: 0.4;
}

.atc-icon {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}

.size-add-btn.atc-ready .atc-icon {
  animation: bag-bounce 0.4s var(--ease-spring);
}

@keyframes bag-bounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.25) rotate(-8deg); }
  70% { transform: scale(0.95) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

.size-add-btn.atc-adding {
  pointer-events: none;
  opacity: 0.7;
}

.size-add-btn.atc-adding .atc-icon {
  animation: bag-spin 0.6s linear infinite;
}

@keyframes bag-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── Content Pages ─────────────────────── */

.hero-short {
  min-height: 40vh;
}

.hero-short h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.content-block {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.content-block p + p {
  margin-top: 1.25rem;
}

.content-block a {
  color: var(--accent);
}

/* ─── Team Page ──────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--accent-dim);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-darkest);
  border: 3px solid var(--border);
}

.team-photo-placeholder span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-muted);
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.team-card p {
  font-family: var(--font-serif);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── Contact Page ───────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 680px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  text-align: center;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.contact-card a {
  color: var(--accent);
  font-size: 1.05rem;
}

/* ─── Testimonials ───────────────────────── */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  margin: 0;
}

.testimonial p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.testimonial cite {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: normal;
}

/* ─── Video Grid ─────────────────────────── */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.video-card video {
  width: 100%;
  display: block;
  background: var(--bg-darkest);
}

.video-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-bright);
  padding: 1rem 1.25rem;
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Artist Profiles ────────────────────── */

.artist-profile {
  padding: 3rem 0;
}

.artist-profile + .scene-break {
  margin-top: 1rem;
}

.artist-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.artist-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--accent-dim);
  box-shadow: 0 0 30px var(--accent-glow);
}

.artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 3px solid var(--border);
  box-shadow: none;
}

.artist-avatar-placeholder span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-muted);
}

.artist-info {
  flex: 1;
  min-width: 0;
}

.artist-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-bright);
  margin-bottom: 0.15rem;
}

.artist-aka {
  font-family: var(--font-serif);
  color: var(--accent-dim);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.artist-bio {
  font-family: var(--font-serif);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 640px;
}

.artist-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.artist-links a {
  font-family: var(--font-caption);
  font-size: 0.85rem;
  color: var(--accent);
  padding: 0.4rem 1rem;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.artist-links a:hover {
  background: var(--accent);
  color: var(--text-on-accent);
}

/* Artist card gallery */

.artist-gallery {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.artist-gallery::-webkit-scrollbar { display: none; }

.artist-piece {
  flex: 0 0 200px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artist-piece:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

.artist-piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1;
}

.artist-piece span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.75rem 0.65rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-family: var(--font-caption);
  font-size: 0.8rem;
  color: var(--text-primary);
}

/* Artist timelapses */

.artist-timelapses {
  margin-top: 2.5rem;
}

.artist-timelapses h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.timelapse-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* ─── Timelapse Thumbnails ───────────────── */

.tl-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--bg-card);
  padding: 0;
  text-align: left;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.tl-thumb:hover {
  border-color: var(--accent-dim);
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.tl-thumb-preview {
  position: absolute;
  inset: 0;
}

.tl-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.8);
  transition: filter 0.3s ease, transform 0.5s ease;
}

.tl-thumb:hover .tl-thumb-preview img {
  filter: brightness(0.65) saturate(1);
  transform: scale(1.08);
}

.tl-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  padding-left: 3px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tl-thumb:hover .tl-thumb-play {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.tl-thumb-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 0.85rem 0.65rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-bright);
  line-height: 1.2;
}

.tl-thumb-dur {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(0, 0, 0, 0.65);
  color: var(--accent);
  font-family: var(--font-caption);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm, 4px);
}

/* ─── Video Lightbox ─────────────────────── */

.vl-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.vl-overlay.vl-open {
  opacity: 1;
  pointer-events: auto;
}

.vl-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.2s ease;
  z-index: 10;
}

.vl-close:hover { color: var(--text-bright); }

.vl-content {
  width: 90vw;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s ease;
}

.vl-open .vl-content {
  transform: translateY(0) scale(1);
}

.vl-player {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.vl-player video {
  width: 100%;
  display: block;
  max-height: 70vh;
}

.vl-meta {
  text-align: center;
}

.vl-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-bright);
  margin-bottom: 0.2rem;
}

.vl-artist {
  font-family: var(--font-serif);
  color: var(--accent-dim);
  font-size: 0.95rem;
  font-style: italic;
}

/* ─── Image Lightbox ─────────────────────── */

.il-content {
  align-items: center;
}

.il-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  max-width: 560px;
  width: 90vw;
}

.il-image img {
  width: 100%;
  height: auto;
  display: block;
}

.il-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-bright);
  font-size: 2.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 10;
  line-height: 1;
  padding-bottom: 3px;
}

.il-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}

.il-prev { left: 1.5rem; }
.il-next { right: 1.5rem; }

.il-counter {
  font-family: var(--font-caption);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .il-nav { width: 40px; height: 40px; font-size: 1.8rem; }
  .il-prev { left: 0.75rem; }
  .il-next { right: 0.75rem; }
}

/* ─── Game Feature Layout ────────────────── */

.game-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.game-feature-reverse {
  direction: rtl;
}

.game-feature-reverse > * {
  direction: ltr;
}

.game-feature-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.game-feature-logo {
  width: clamp(200px, 80%, 360px);
  height: auto;
}

.game-feature-cards {
  display: flex;
  justify-content: center;
  position: relative;
  height: 220px;
  width: 100%;
}

.game-card {
  width: 140px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: absolute;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}

/* Square card variant (for artwork-only images) */
.game-feature-cards-square {
  height: 320px;
  overflow: visible;
}
.game-feature-cards-square .game-card {
  width: 180px;
  height: 180px;
  border-radius: 14px;
  object-fit: cover;
}

/* Character art variant (transparent PNGs, no clipping) */
.game-feature-cards-characters {
  height: 350px;
  overflow: visible;
}
.game-feature-cards-characters .game-card {
  width: auto;
  height: 320px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

.game-card-1 { transform: rotate(-8deg) translateX(-100px); z-index: 1; }
.game-card-2 { transform: rotate(0deg); z-index: 3; }
.game-card-3 { transform: rotate(8deg) translateX(100px); z-index: 2; }

.game-feature:hover .game-card-1 { transform: rotate(-12deg) translateX(-115px) translateY(-5px); }
.game-feature:hover .game-card-2 { transform: rotate(0deg) translateY(-8px); }
.game-feature:hover .game-card-3 { transform: rotate(12deg) translateX(115px) translateY(-5px); }

.game-feature-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text-bright);
  margin-bottom: 0.25rem;
}

.game-tagline {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-dim);
  font-style: italic;
  margin-bottom: 1rem;
}

.game-feature-info p {
  font-family: var(--font-serif);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.game-feature-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ─── Cosmonak Teaser ────────────────────── */

.cosmonak-teaser {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.cosmonak-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 237, 196, 0.15) 0%, transparent 70%);
  animation: cosmo-pulse 4s ease-in-out infinite;
}

@keyframes cosmo-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 1; }
}

.cosmonak-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-bright);
  position: relative;
  z-index: 1;
}

.cosmonak-badge {
  font-family: var(--font-caption);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .game-feature,
  .game-feature-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .game-feature-cards { height: 180px; }
  .game-card { width: 110px; height: 160px; }
  .game-card-1 { transform: rotate(-8deg) translateX(-75px); }
  .game-card-3 { transform: rotate(8deg) translateX(75px); }

  .cosmonak-teaser { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .artist-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .artist-info h3 { font-size: 1.5rem; }

  .artist-links { justify-content: center; }

  .artist-piece { flex: 0 0 160px; }

  .timelapse-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .artist-avatar { width: 90px; height: 90px; }
  .artist-piece { flex: 0 0 140px; }
}

/* ============================================
   Platform Pages
   ============================================ */
.platform-hero {
  position: relative;
  padding: 8rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}
.platform-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(74, 237, 196, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 100%, rgba(155, 127, 212, 0.04) 0%, transparent 50%);
  z-index: 0;
}
.platform-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.platform-badge {
  display: inline-block;
  font-family: var(--font-caption);
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid rgba(74, 237, 196, 0.2);
  background: rgba(74, 237, 196, 0.06);
  padding: 0.35rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.75rem;
}
.platform-hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-bright);
}
.accent-text { color: var(--accent); }
.platform-hero p {
  font-family: var(--font-caption);
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.platform-hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-section {
  padding: 4rem 1.5rem;
}

/* Proof */
.platform-proof { padding: 2rem 1.5rem 3rem; }
.proof-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.proof-item { text-align: center; }
.proof-num { font-family: var(--font-display); font-size: 2rem; color: var(--accent); }
.proof-label { font-family: var(--font-caption); font-size: 0.78rem; color: var(--text-muted); }

/* Section intro */
.section-intro {
  text-align: center;
  margin-bottom: 3rem;
}
.section-intro h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}
.section-intro p {
  font-family: var(--font-caption);
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* Problem section */
.platform-problem {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.platform-problem h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-bright);
  margin-bottom: 1rem;
}
.platform-problem > p {
  font-family: var(--font-caption);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
}
.problem-bad { border-color: rgba(201, 55, 77, 0.2); }
.problem-good { border-color: rgba(74, 237, 196, 0.2); }
.problem-label {
  font-family: var(--font-caption);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}
.problem-item {
  font-family: var(--font-caption);
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.problem-item span { color: var(--text-muted); font-size: 0.82rem; }
.problem-bad .problem-item span { color: var(--pink); }
.problem-good .problem-item span { color: var(--accent); }
.problem-total {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
}
.problem-bad .problem-total { color: var(--pink); }

/* App cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.app-card:hover { border-color: rgba(74, 237, 196, 0.15); transform: translateY(-2px); }
.app-card-featured { border-color: rgba(155, 127, 212, 0.25); }
.app-icon { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 1rem; }
.app-card h3 { font-family: var(--font-subhead); font-size: 1.15rem; margin-bottom: 0.2rem; }
.app-card > p { font-family: var(--font-caption); font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.app-card ul { list-style: none; padding: 0; }
.app-card li {
  font-family: var(--font-caption);
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.app-card li::before { content: "✓"; color: var(--accent); font-weight: 700; font-size: 0.72rem; }

/* Warehousing section */
.warehouse-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.warehouse-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.warehouse-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.warehouse-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.warehouse-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.warehouse-card p {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .warehouse-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .warehouse-feature-grid { grid-template-columns: 1fr; }
}

/* Warehouse steps */
.warehouse-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.warehouse-step {
  text-align: center;
  padding: 1.5rem;
}

.warehouse-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-on-accent);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.warehouse-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.warehouse-step p {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Warehouse pricing */
.warehouse-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.warehouse-price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
}

.warehouse-price-card h3 {
  font-family: var(--font-caption);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.warehouse-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.warehouse-price-unit {
  font-family: var(--font-caption);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.warehouse-price-card p {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .warehouse-steps { grid-template-columns: 1fr; gap: 1rem; }
  .warehouse-pricing { grid-template-columns: 1fr; }
}

/* CTA section */
.platform-cta-section {
  padding: 5rem 1.5rem;
}
.platform-cta-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}
.platform-cta-section p {
  font-family: var(--font-caption);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Platform subnav active state */
.subnav-active { color: var(--text-bright) !important; }
.subnav-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent);
}
.subnav-cta { color: var(--accent) !important; font-weight: 600 !important; }

/* Demo form */
.demo-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.demo-field { margin-bottom: 0.85rem; }
.demo-field label {
  display: block;
  font-family: var(--font-caption);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.demo-field input, .demo-field textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.demo-field input:focus, .demo-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.demo-field textarea { resize: vertical; min-height: 50px; }
.demo-row { display: flex; gap: 0.75rem; }
.demo-row .demo-field { flex: 1; }

/* Feature split (alternating image + text) */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 1rem;
}
.feature-split-reverse { direction: rtl; }
.feature-split-reverse > * { direction: ltr; }
.feature-split-badge {
  display: inline-block;
  font-family: var(--font-caption);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.feature-split h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.feature-split p {
  font-family: var(--font-caption);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  font-family: var(--font-caption);
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: 0.72rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.feature-split-image {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.feature-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 300px;
  max-height: 450px;
}

/* Full-width photo break */
.platform-photo-break {
  width: 100%;
  max-height: 360px;
  overflow: hidden;
  position: relative;
}
.platform-photo-break img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: brightness(0.7);
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(74, 237, 196, 0.06);
}
.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-caption);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: var(--bg-darkest);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
}
.pricing-card h3 {
  font-family: var(--font-subhead);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin: 0.75rem 0 0.25rem;
}
.pricing-price span {
  font-size: 0.85rem;
  font-family: var(--font-caption);
  color: var(--text-muted);
}
.pricing-sub {
  font-family: var(--font-caption);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.75rem;
}
.pricing-card li {
  font-family: var(--font-caption);
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-card li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}
.btn-block { display: block; text-align: center; }

/* FAQ */
.faq {
  padding: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-family: var(--font-subhead);
  font-size: 1.05rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}
.faq-item p {
  font-family: var(--font-caption);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .platform-hero h1 { font-size: 2rem; }
  .app-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .proof-grid { gap: 1.5rem; }
  .demo-row { flex-direction: column; }
  .feature-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-split-reverse { direction: ltr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .platform-photo-break img { height: 200px; }
}

/* ─── Jobs ───────────────────────────────── */

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.job-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-dim);
}

.job-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.job-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-bright);
  margin: 0;
}

.job-card p {
  font-family: var(--font-serif);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.job-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--font-caption);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.job-hero-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.5rem;
  font-family: var(--font-caption);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.job-section {
  margin-top: 2.5rem;
}

.job-section h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.job-section p {
  font-family: var(--font-serif);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.job-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-section li {
  font-family: var(--font-serif);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.job-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dim);
}

/* ─── Pricing Calculator ─────────────────── */

.calc-section {
  margin-top: 3rem;
  text-align: center;
}

.calc-title {
  font-family: var(--font-subhead);
  font-size: 1.4rem;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
}

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.calc-sliders {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.calc-slider-group {
  flex: 1;
  min-width: 200px;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.calc-label {
  font-family: var(--font-caption);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
}

.calc-range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-caption);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Results */
.calc-results {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.calc-result-card {
  flex: 1;
  min-width: 180px;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.calc-result-bad {
  background: rgba(201, 55, 77, 0.06);
  border: 1px solid rgba(201, 55, 77, 0.2);
}

.calc-result-good {
  background: rgba(74, 237, 196, 0.06);
  border: 1px solid rgba(74, 237, 196, 0.2);
}

.calc-result-label {
  font-family: var(--font-caption);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.calc-result-line {
  font-family: var(--font-caption);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
}

.calc-result-line-val { font-weight: 600; }
.calc-result-line-val.calc-bad { color: var(--pink); }

.calc-result-total {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.calc-result-total.calc-bad { color: var(--pink); }
.calc-result-total.calc-good { color: var(--accent); }

.calc-vs {
  font-family: var(--font-caption);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

/* Savings */
.calc-savings {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.calc-savings-label {
  font-family: var(--font-caption);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.calc-savings-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1.1;
  text-shadow: 0 0 40px var(--accent-glow);
}

.calc-savings-cta {
  font-family: var(--font-caption);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

@media (max-width: 580px) {
  .calc-card { padding: 1.5rem; }
  .calc-results { flex-direction: column; }
  .calc-vs { display: none; }
  .calc-savings-amount { font-size: 2rem; }
}

/* ─── Calculator Sliders ─────────────────── */

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-surface);
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 10px var(--accent-glow), 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px var(--accent-glow-strong), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 10px var(--accent-glow), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.calc-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
}

.calc-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-surface);
}

/* ─── Product Image Carousel ─────────────── */

.pd-carousel { display: flex; flex-direction: column; gap: 0.75rem; }

.pd-carousel-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.pd-carousel-main img {
  width: 100%;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.pd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-bright);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}
.pd-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
.pd-prev { left: 0.75rem; }
.pd-next { right: 0.75rem; }

.pd-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.6);
  color: var(--text-secondary);
  font-family: var(--font-caption);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.pd-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pd-thumbs::-webkit-scrollbar { display: none; }

.pd-thumb {
  flex: 0 0 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--bg-card);
  padding: 0;
  transition: border-color 0.2s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb-active { border-color: var(--accent); }
.pd-thumb:hover { border-color: var(--accent-dim); }

@media (max-width: 768px) {
  .pd-arrow { width: 34px; height: 34px; font-size: 1.2rem; }
  .pd-prev { left: 0.5rem; }
  .pd-next { right: 0.5rem; }
  .pd-thumb { flex: 0 0 56px; height: 56px; }
}
