/* style.css — Psychedelic Gallery
   Design tokens, component styles, layout.
   Light-first palette: soft sky blue primary, gentle periwinkle secondary.
   Fonts: Cormorant (display) + Manrope (body/UI) */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* --- Type Scale (fluid, mobile-optimized) --- */
  --text-xs:   clamp(0.8125rem, 0.75rem + 0.3vw, 0.875rem);
  --text-sm:   clamp(0.9375rem, 0.85rem + 0.4vw, 1.0625rem);
  --text-base: clamp(1.0625rem, 0.95rem + 0.5vw, 1.1875rem);
  --text-lg:   clamp(1.1875rem, 1rem    + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,    1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,      1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,    1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,      0.5rem  + 7vw,    8rem);
  --text-4xl:  clamp(3rem,      1.5rem  + 5vw,    6rem);

  /* --- Spacing (4px grid) --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Fonts --- */
  --font-display: 'Cormorant', 'Georgia', serif;
  --font-body: 'Manrope', 'Helvetica Neue', sans-serif;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Content widths --- */
  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1400px;
}

/* ============================================
   LIGHT MODE (DEFAULT) — Soft Sky Blue + Gentle Periwinkle
   ============================================ */
:root, [data-theme="dark"] {
  /* Surfaces — deep, cool-tinted dark */
  --color-bg:             #fafcfe;
  --color-surface:        #ffffff;
  --color-surface-2:      #f0f5f9;
  --color-surface-offset: #f5f8fb;
  --color-surface-offset-2: #eff2f6;
  --color-surface-dynamic: #e8eef5;
  --color-divider:        #e0e6f0;
  --color-border:         #d0dbe8;

  /* Text — cool-shifted, high contrast for mobile readability */
  --color-text:           #111d2b;
  --color-text-muted:     #2e4255;
  --color-text-faint:     #445a6e;
  --color-text-inverse:   #ffffff;

  /* Primary — Deep Sky Blue */
  --color-primary:        #3a8fd4;
  --color-primary-hover:  #2d7ec0;
  --color-primary-active: #2470b0;
  --color-primary-highlight: #e0eef8;

  /* Secondary — Amethyst Purple (darkened for contrast) */
  --color-secondary:      #5a6b9a;
  --color-secondary-hover: #4d5e8d;
  --color-secondary-highlight: #f0f3fa;

  /* Semantic */
  --color-warning:        #d89c4a;
  --color-error:          #d85c8c;
  --color-success:        #5bb8e8;
  --color-success-highlight: #e8f4fb;
  --color-blue:           #6ba8d8;

  /* Shadows (soft, blue-tinted) */
  --shadow-sm: 0 1px 3px rgba(100, 140, 180, 0.08);
  --shadow-md: 0 4px 14px rgba(100, 140, 180, 0.12);
  --shadow-lg: 0 12px 36px rgba(100, 140, 180, 0.16);
}



/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-4);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 252, 254, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 215, 230, 0.3);
  padding: 0 var(--space-8);
}
/* Offset body content for fixed nav */
main {
  padding-top: 64px;
}
.nav-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition-interactive);
  justify-self: start;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav-brand:hover { color: var(--color-primary); }
.nav-logo {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  justify-self: center;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
  padding: var(--space-2) 0;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-self: end;
}

/* Cart button */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.cart-btn:hover { background: var(--color-surface-dynamic); }
.cart-btn .badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--transition-interactive), transform var(--transition-interactive);
}
.cart-btn .badge-count.visible {
  opacity: 1;
  transform: scale(1);
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive);
}
.hamburger:hover { background: var(--color-surface-dynamic); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition-interactive), opacity var(--transition-interactive);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: var(--space-8) var(--space-6);
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  opacity: 1;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  transition: color var(--transition-interactive);
}
.mobile-nav a:hover { color: var(--color-primary); }

@media (max-width: 768px) {
  .nav { padding: 0 var(--space-4); }
  .nav-inner {
    grid-template-columns: 1fr auto;
  }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4) var(--space-8) var(--space-16);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      oklch(from var(--color-primary) l c h / 0.04) 0px,
      oklch(from var(--color-primary) l c h / 0.04) 1px,
      transparent 1px,
      transparent 28px
    ),
    repeating-linear-gradient(
      90deg,
      oklch(from var(--color-secondary) l c h / 0.03) 0px,
      oklch(from var(--color-secondary) l c h / 0.03) 1px,
      transparent 1px,
      transparent 28px
    );
  animation: grid-drift 30s linear infinite;
  pointer-events: none;
}
@keyframes grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(28px, 28px); }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
/* Full-page ripple background — video (ambient) + canvas (interactive) */
.ripple-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}
.ripple-video {
  object-fit: cover;
  pointer-events: none;
}
.ripple-overlay {
  pointer-events: auto;
}
/* All content layers sit above the ripple canvas */
main, footer, .cart-panel, .cart-overlay, .modal-overlay, .toast {
  position: relative;
  z-index: 1;
}
/* Community section also above ripple */
.community-section {
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: block;
  margin: 0 auto var(--space-6);
  filter: drop-shadow(0 4px 20px rgba(58, 143, 212, 0.15));
}
.hero-overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.05;
}
.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 50ch;
  margin-inline: auto;
  line-height: 1.5;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* Scroll hint arrow at bottom of hero */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  animation: bounce-down 2s ease-in-out infinite;
  opacity: 0.6;
  cursor: pointer;
  padding: var(--space-3);
  border-radius: 50%;
  transition: opacity var(--transition-interactive);
  text-decoration: none;
}
.hero-scroll-hint:hover {
  opacity: 1;
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   FEATURED DROPS
   ============================================ */
.featured-section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
}
.featured-overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}
.featured-card {
  position: relative;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-card:hover {
  transform: translateY(-6px);
}
.featured-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(80, 120, 160, 0.14);
  margin-bottom: var(--space-5);
  transition: box-shadow 0.3s ease;
}
.featured-card:hover .featured-card-image {
  box-shadow: 0 14px 44px rgba(80, 120, 160, 0.22);
}
.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-card:hover .featured-card-image img {
  transform: scale(1.04);
}
/* CSS pattern fallback when no image */
.featured-card-image.has-pattern {
  background: var(--color-surface-2);
}
.featured-card-category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.featured-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.featured-card-artist {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.featured-card-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-2);
}
.featured-cta {
  text-align: center;
}
@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
  .featured-grid .featured-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-inline: auto;
  }
}
@media (max-width: 600px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .featured-grid .featured-card:nth-child(3) {
    max-width: 100%;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  min-height: 44px;
  min-width: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { background: var(--color-border); }

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
}
.btn-ghost:hover { background: var(--color-primary-highlight); }

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  min-height: 36px;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ============================================
   SECTION LAYOUT
   ============================================ */
.section {
  padding: clamp(var(--space-8), 4vw, var(--space-16)) var(--space-8);
  background: transparent;
}
.section-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.section-header p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-inline: auto;
}

/* ============================================
   CATALOG FILTERS
   ============================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-8);
}
.filter-btn {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              border-color var(--transition-interactive);
  min-height: 44px;
}
.filter-btn:hover {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}
.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8) 6%;
  padding: 0 2%;
}
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) 5%; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; gap: var(--space-6); padding: 0; }
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
}

.product-card-image {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(40, 70, 100, 0.18);
  transition: box-shadow 0.3s ease;
}
.product-card:hover .product-card-image {
  box-shadow: 0 12px 40px rgba(40, 70, 100, 0.25);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-card-image img {
  transform: scale(1.03);
}

/* CSS-generated blotter art patterns — green + purple */
.pattern-lattice {
  background:
    repeating-conic-gradient(
      oklch(from var(--color-primary) l c h / 0.15) 0% 25%,
      transparent 0% 50%
    ) 0 0 / 20px 20px,
    linear-gradient(135deg,
      oklch(from var(--color-primary) l c h / 0.1),
      oklch(from var(--color-secondary) l c h / 0.1)
    ),
    var(--color-surface-offset);
}
.pattern-bicycle {
  background:
    repeating-linear-gradient(45deg,
      oklch(from var(--color-secondary) l c h / 0.08) 0px,
      oklch(from var(--color-secondary) l c h / 0.08) 2px,
      transparent 2px,
      transparent 12px
    ),
    repeating-linear-gradient(-45deg,
      oklch(from var(--color-primary) l c h / 0.08) 0px,
      oklch(from var(--color-primary) l c h / 0.08) 2px,
      transparent 2px,
      transparent 12px
    ),
    radial-gradient(circle at 50% 50%,
      oklch(from var(--color-secondary) l c h / 0.12),
      transparent 70%
    ),
    var(--color-surface-offset);
}
.pattern-molecular {
  background:
    radial-gradient(circle at 20% 30%,
      oklch(from var(--color-primary) l c h / 0.15) 0%,
      transparent 30%
    ),
    radial-gradient(circle at 70% 60%,
      oklch(from var(--color-secondary) l c h / 0.15) 0%,
      transparent 30%
    ),
    radial-gradient(circle at 50% 80%,
      oklch(from var(--color-primary) l c h / 0.1) 0%,
      transparent 25%
    ),
    repeating-conic-gradient(
      transparent 0deg 8deg,
      oklch(from var(--color-text) l c h / 0.03) 8deg 10deg
    ) 50% 50% / 100% 100%,
    var(--color-surface-offset);
}
.pattern-fractal {
  background:
    conic-gradient(from 0deg at 50% 50%,
      oklch(from var(--color-primary) l c h / 0.12),
      oklch(from var(--color-secondary) l c h / 0.12),
      oklch(from var(--color-primary) l c h / 0.08),
      oklch(from var(--color-secondary) l c h / 0.12)
    ),
    repeating-linear-gradient(
      0deg,
      oklch(from var(--color-text) l c h / 0.03) 0px,
      oklch(from var(--color-text) l c h / 0.03) 1px,
      transparent 1px,
      transparent 16px
    ),
    repeating-linear-gradient(
      90deg,
      oklch(from var(--color-text) l c h / 0.03) 0px,
      oklch(from var(--color-text) l c h / 0.03) 1px,
      transparent 1px,
      transparent 16px
    ),
    var(--color-surface-offset);
}
.pattern-grid {
  background:
    repeating-linear-gradient(
      0deg,
      oklch(from var(--color-primary) l c h / 0.06) 0px,
      oklch(from var(--color-primary) l c h / 0.06) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      90deg,
      oklch(from var(--color-primary) l c h / 0.06) 0px,
      oklch(from var(--color-primary) l c h / 0.06) 1px,
      transparent 1px,
      transparent 20px
    ),
    var(--color-surface-offset);
}
.pattern-consciousness {
  background:
    radial-gradient(
      ellipse at center,
      oklch(from var(--color-secondary) l c h / 0.2) 0%,
      oklch(from var(--color-primary) l c h / 0.1) 30%,
      oklch(from var(--color-secondary) l c h / 0.05) 50%,
      transparent 70%
    ),
    repeating-conic-gradient(
      oklch(from var(--color-text) l c h / 0.04) 0% 25%,
      transparent 0% 50%
    ) 0 0 / 24px 24px,
    linear-gradient(
      180deg,
      oklch(from var(--color-primary) l c h / 0.08),
      oklch(from var(--color-secondary) l c h / 0.08)
    ),
    var(--color-surface-offset);
}

/* Perforated grid overlay on all product images */
.product-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      oklch(from var(--color-text) l c h / 0.04) 0px,
      oklch(from var(--color-text) l c h / 0.04) 1px,
      transparent 1px,
      transparent 28px
    ),
    repeating-linear-gradient(
      90deg,
      oklch(from var(--color-text) l c h / 0.04) 0px,
      oklch(from var(--color-text) l c h / 0.04) 1px,
      transparent 1px,
      transparent 28px
    );
  pointer-events: none;
}

.product-card-body {
  padding: var(--space-5) var(--space-3) 0;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.product-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}
.product-card-artist {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.product-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
}
.product-card-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.01em;
}
.product-card-footer .btn {
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-8);
  flex-shrink: 0;
  width: 100%;
  max-width: 220px;
  justify-content: center;
}

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(from var(--color-bg) l c h / 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 300ms;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(200, 215, 230, 0.4);
  box-shadow: 0 16px 48px rgba(80, 120, 160, 0.15);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow: visible;
  transform: scale(0.95);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: oklch(from var(--color-bg) l c h / 0.8);
  color: var(--color-text);
  z-index: 1;
  transition: background var(--transition-interactive);
}
.modal-close:hover { background: var(--color-surface-dynamic); }

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  max-height: 90vh;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.modal-image {
  position: relative;
  min-height: 400px;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.modal-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, oklch(from var(--color-text) l c h / 0.04) 0px, oklch(from var(--color-text) l c h / 0.04) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, oklch(from var(--color-text) l c h / 0.04) 0px, oklch(from var(--color-text) l c h / 0.04) 1px, transparent 1px, transparent 28px);
  pointer-events: none;
}
.modal-details {
  padding: var(--space-8) var(--space-10, 2.5rem) var(--space-8) var(--space-10, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  max-height: 90vh;
  position: relative;
}
.modal-details h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.15;
}
.modal-details .artist {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: calc(-1 * var(--space-2));
}
.modal-details .description {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.8;
  max-width: 50ch;
}
.modal-details .price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-top: var(--space-2);
}

/* Magic Ink availability hint in modal */
.modal-magic-ink-hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: #1e7a47;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(46, 139, 87, 0.06);
  border: 1px solid rgba(46, 139, 87, 0.15);
  width: fit-content;
}
.modal-magic-ink-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e8b57;
  box-shadow: 0 0 6px rgba(46, 139, 87, 0.4);
  flex-shrink: 0;
}
.provenance-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-secondary-highlight);
  color: var(--color-secondary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--text-lg);
  font-weight: 600;
  transition: background var(--transition-interactive);
}
.qty-btn:hover { background: var(--color-surface-dynamic); }
.qty-value {
  font-size: var(--text-lg);
  font-weight: 600;
  min-width: 32px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   CART PANEL (slide-out)
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: oklch(from var(--color-bg) l c h / 0.6);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), visibility 300ms;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100dvh;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid rgba(200, 215, 230, 0.3);
  box-shadow: -8px 0 32px rgba(80, 120, 160, 0.1);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-panel.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.cart-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}
.cart-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.cart-close:hover {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-4) var(--space-6);
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--color-text-muted);
}
.cart-empty svg {
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.cart-empty h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.cart-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, oklch(from var(--color-text) l c h / 0.04) 0px, oklch(from var(--color-text) l c h / 0.04) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(90deg, oklch(from var(--color-text) l c h / 0.04) 0px, oklch(from var(--color-text) l c h / 0.04) 1px, transparent 1px, transparent 12px);
  pointer-events: none;
}
.cart-item-info { flex: 1; }
.cart-item-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.cart-item-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.cart-item-qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background var(--transition-interactive);
}
.cart-item-qty button:hover { background: var(--color-surface-dynamic); }
.cart-item-qty span {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.cart-item-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-item-remove {
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  text-decoration: underline;
  transition: color var(--transition-interactive);
  padding: var(--space-1);
}
.cart-item-remove:hover { color: var(--color-error); }

.cart-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-subtotal .label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.cart-subtotal .amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}
.cart-checkout-btns {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
  max-width: var(--content-narrow);
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(200, 215, 230, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
}
.about-content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.8;
}
.about-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
}

.legal-disclaimer {
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-6);
  background: rgba(230, 238, 248, 0.5);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================
   CRYPTO CHECKOUT MODAL
   ============================================ */
.crypto-modal-content {
  padding: var(--space-8);
  text-align: center;
}
.crypto-modal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-6);
}
.crypto-tabs {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-6);
}
.crypto-tab {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.crypto-tab.active {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  border-color: var(--color-secondary);
}
.crypto-tab:hover:not(.active) { background: var(--color-surface-dynamic); }

.crypto-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.crypto-usd-equiv {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* QR Code placeholder (CSS-drawn) */
.qr-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-4);
  background:
    repeating-conic-gradient(
      var(--color-text) 0% 25%,
      var(--color-surface) 0% 50%
    ) 0 0 / 16px 16px;
  border-radius: var(--radius-md);
  border: 3px solid var(--color-text);
  position: relative;
}
.qr-placeholder::after {
  content: 'QR';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(from var(--color-surface) l c h / 0.85);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.wallet-address {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) auto;
  max-width: 400px;
}
.wallet-address code {
  flex: 1;
  font-size: var(--text-xs);
  word-break: break-all;
  text-align: left;
  font-family: 'Courier New', monospace;
}
.wallet-address button {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition-interactive);
}
.wallet-address button:hover { background: var(--color-primary-hover); }

/* ============================================
   STRIPE DEMO MODAL
   ============================================ */
.stripe-demo {
  padding: var(--space-8);
  text-align: center;
}
.stripe-demo h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.stripe-demo p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.stripe-demo .info-box {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: left;
}
.stripe-demo .info-box code {
  font-family: 'Courier New', monospace;
  background: var(--color-surface-dynamic);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
}

/* ============================================
   ANALYTICS DASHBOARD
   ============================================ */
.analytics-login {
  max-width: 360px;
  margin: var(--space-16) auto;
  text-align: center;
}
.analytics-login h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.analytics-login p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  margin-inline: auto;
}
.analytics-login input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-bottom: var(--space-4);
  min-height: 44px;
}
.analytics-login input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}

.dashboard {
  display: grid;
  gap: var(--space-6);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 768px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
.kpi-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.kpi-card .label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.kpi-card .value {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
}
.kpi-card .delta {
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-1);
}
.kpi-card .delta.up { color: var(--color-success); }
.kpi-card .delta.down { color: var(--color-error); }

.chart-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.chart-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 768px) {
  .chart-grid { grid-template-columns: 1fr; }
}

.top-products-list {
  list-style: none;
}
.top-products-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}
.top-products-list li:last-child { border-bottom: none; }
.top-products-list .rank {
  font-weight: 700;
  color: var(--color-primary);
  margin-right: var(--space-3);
  font-variant-numeric: tabular-nums;
}
.top-products-list .count {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   COMMUNITY SECTION — Newsletter + Artist Application
   ============================================ */
.community-section {
  position: relative;
  z-index: 1;
  padding: var(--space-10) var(--space-8);
  text-align: center;
}
.community-inner {
  max-width: 560px;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 215, 230, 0.35);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
}

/* Toggle tabs */
.community-toggle {
  display: flex;
  gap: var(--space-1);
  background: rgba(200, 215, 230, 0.25);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-bottom: var(--space-8);
}
.community-tab {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.community-tab.active {
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 1px 4px rgba(100, 140, 180, 0.12);
}
.community-tab:hover:not(.active) {
  color: var(--color-text);
}

/* Panel content */
.community-panel {
  animation: fadeUp 300ms ease;
}
.community-panel.hidden {
  display: none;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.community-text h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.community-text p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  max-width: none;
}

/* Newsletter form (subscriber panel) */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.newsletter-input-group {
  display: flex;
  gap: var(--space-2);
}
.newsletter-input-group input[type="email"] {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.newsletter-input-group input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(58, 143, 212, 0.2);
}
.newsletter-input-group input[type="email"]::placeholder {
  color: var(--color-text-faint);
}
.newsletter-btn {
  white-space: nowrap;
  padding: var(--space-3) var(--space-6);
}
.newsletter-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: none;
}
.newsletter-success {
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
}

/* Artist form (artist panel) */
.artist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-group input,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(58, 143, 212, 0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}
.artist-submit-btn {
  margin-top: var(--space-2);
  align-self: center;
  padding: var(--space-3) var(--space-10);
}
.artist-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-4);
  text-align: center;
}
.artist-form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
}
.artist-form-success p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 360px;
}

/* Magic Ink price in emerald green */
.price-magic-ink {
  color: #1e7a47 !important;
  font-weight: 700;
}

@media (max-width: 480px) {
  .newsletter-input-group {
    flex-direction: column;
  }
  .newsletter-input-group input {
    font-size: var(--text-base);
    min-height: 48px;
  }
  .newsletter-input-group .btn {
    font-size: var(--text-base);
    min-height: 48px;
  }
  .community-inner {
    padding: var(--space-6) var(--space-5);
  }
  .community-inner p {
    font-size: var(--text-base);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: rgba(240, 245, 250, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(200, 215, 230, 0.4);
  padding: var(--space-12) var(--space-8);
}
.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer-logo {
  flex-shrink: 0;
}
.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-links a:hover { color: var(--color-text); }

.footer-bottom {
  max-width: var(--content-wide);
  margin-inline: auto;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.social-icons {
  display: flex;
  gap: var(--space-3);
}
.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.social-icon:hover {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.fade-in { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}
@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--color-text);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 500;
  box-shadow: var(--shadow-lg);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease, visibility 300ms ease;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ============================================
   BLOTTER GRID PATTERN (for accent sections)
   ============================================ */
.blotter-bg {
  background: transparent;
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.hidden { display: none !important; }

/* ============================================
   SPECIAL INK — VARIANT SYSTEM
   ============================================ */

/* --- Price "from" prefix --- */
.price-from {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  margin-right: 0.1em;
}

/* --- Strikethrough original price + Magic Ink price --- */
.price-original {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-text-faint);
  color: var(--color-text-faint);
  font-size: 0.8em;
  font-weight: 500;
  margin-right: 0.5em;
  font-family: var(--font-body);
}
.price-special {
  color: #1e7a47;
  font-weight: 700;
}
.price-range-sep {
  color: var(--color-text-faint);
  font-weight: 400;
  font-size: 0.7em;
  margin: 0 0.15em;
  vertical-align: middle;
}

/* ============================================
   SPECIAL INK POPUP
   ============================================ */
.special-ink-popup-overlay {
  position: fixed;
  inset: 0;
  background: oklch(from var(--color-bg) l c h / 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.special-ink-popup-overlay.active {
  opacity: 1;
}
.special-ink-popup {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 440px;
  width: 100%;
  position: relative;
  transform: scale(0.95);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.special-ink-popup-overlay.active .special-ink-popup {
  transform: scale(1);
}
.special-ink-popup-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--text-xl);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.special-ink-popup-close:hover {
  color: var(--color-text);
  background: oklch(from var(--color-text) l c h / 0.06);
}
.special-ink-popup-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-1);
}
.special-ink-popup-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-6);
}

/* --- Slider section --- */
.si-slider-section {
  margin-bottom: var(--space-6);
}
.si-slider-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.si-slider-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.si-tab-count {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #1e7a47;
}
.si-tab-unit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

/* --- Slider row: track + MAX button --- */
.si-slider-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.si-slider-track-wrap {
  flex: 1;
  position: relative;
}

/* --- Custom range slider with emerald glow --- */
.si-slider {
  --fill: 0%;
  --track-h: 6px;
  --thumb-size: 22px;
  --purple: #2e8b57;
  --purple-glow: rgba(46, 139, 87, 0.35);
  --purple-glow-soft: rgba(46, 139, 87, 0.12);
  --track-bg: oklch(from var(--color-text) l c h / 0.08);

  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: var(--thumb-size);
  background: transparent;
  cursor: pointer;
  outline: none;
  margin: 0;
}

/* Track — Webkit */
.si-slider::-webkit-slider-runnable-track {
  height: var(--track-h);
  border-radius: calc(var(--track-h) / 2);
  background: linear-gradient(
    to right,
    var(--purple) 0%,
    var(--purple) var(--fill),
    var(--track-bg) var(--fill),
    var(--track-bg) 100%
  );
  box-shadow:
    0 0 8px var(--purple-glow-soft),
    inset 0 0 3px rgba(46, 139, 87, 0.08);
  transition: box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Track — Firefox */
.si-slider::-moz-range-track {
  height: var(--track-h);
  border-radius: calc(var(--track-h) / 2);
  background: var(--track-bg);
  border: none;
}
.si-slider::-moz-range-progress {
  height: var(--track-h);
  border-radius: calc(var(--track-h) / 2);
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple-glow-soft);
}

/* Thumb — Webkit */
.si-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--purple);
  box-shadow:
    0 0 10px var(--purple-glow),
    0 0 24px var(--purple-glow-soft),
    0 1px 4px oklch(0 0 0 / 0.3);
  margin-top: calc((var(--track-h) - var(--thumb-size)) / 2);
  transition: box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.si-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow:
    0 0 14px var(--purple-glow),
    0 0 32px rgba(46, 139, 87, 0.18),
    0 1px 4px oklch(0 0 0 / 0.3);
}
.si-slider:active::-webkit-slider-thumb {
  transform: scale(1.05);
  box-shadow:
    0 0 18px var(--purple-glow),
    0 0 40px rgba(46, 139, 87, 0.22),
    0 1px 4px oklch(0 0 0 / 0.3);
}

/* Thumb — Firefox */
.si-slider::-moz-range-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--purple);
  box-shadow:
    0 0 10px var(--purple-glow),
    0 0 24px var(--purple-glow-soft),
    0 1px 4px oklch(0 0 0 / 0.3);
  transition: box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.si-slider::-moz-range-thumb:hover {
  transform: scale(1.12);
  box-shadow:
    0 0 14px var(--purple-glow),
    0 0 32px rgba(46, 139, 87, 0.18),
    0 1px 4px oklch(0 0 0 / 0.3);
}

/* Intensify glow as slider value increases */
.si-slider:focus-visible {
  outline: none;
}
.si-slider:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 3px rgba(46, 139, 87, 0.25),
    0 0 14px var(--purple-glow),
    0 0 32px var(--purple-glow-soft),
    0 1px 4px oklch(0 0 0 / 0.3);
}

/* --- MAX button --- */
.si-max-btn {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e7a47;
  background: rgba(46, 139, 87, 0.08);
  border: 1px solid rgba(46, 139, 87, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.si-max-btn:hover {
  background: rgba(46, 139, 87, 0.14);
  border-color: rgba(46, 139, 87, 0.35);
}
.si-max-btn.active {
  background: #2e8b57;
  color: #fff;
  border-color: #2e8b57;
  box-shadow: 0 0 12px rgba(46, 139, 87, 0.3);
}

/* --- Price breakdown --- */
.si-price-breakdown {
  background: oklch(from var(--color-bg) l c h / 0.5);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
}
.si-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-1) 0;
}
.si-price-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.si-price-tabs {
  font-size: var(--text-xs);
  color: oklch(from var(--color-text) l c h / 0.35);
}
.si-price-value {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.si-price-row--ink .si-price-value {
  color: #1e7a47;
}
.si-price-divider {
  height: 1px;
  background: oklch(from var(--color-text) l c h / 0.08);
  margin: var(--space-2) 0;
}
.si-price-row--total .si-price-label {
  font-weight: 600;
  color: var(--color-text);
}
.si-price-row--total .si-price-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

/* --- NL notice --- */
.si-nl-notice {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(46, 139, 87, 0.7);
  margin-bottom: var(--space-4);
}
.si-nl-notice svg {
  flex-shrink: 0;
  stroke: rgba(46, 139, 87, 0.5);
}

/* --- Add to cart button --- */
.si-add-btn {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
}

/* Popup mobile adjustments */
@media (max-width: 480px) {
  .special-ink-popup {
    padding: var(--space-5);
    margin: var(--space-3);
  }
  .si-slider {
    --thumb-size: 26px;
    --track-h: 8px;
  }
}

/* --- Variant badge on product cards --- */
.variant-badge {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-body);
  background: rgba(46, 139, 87, 0.14);
  color: #1e7a47;
  border: 1px solid rgba(46, 139, 87, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.03em;
  pointer-events: none;
  z-index: 1;
}
.variant-badge--special-only {
  background: rgba(46, 139, 87, 0.2);
  border-color: rgba(46, 139, 87, 0.45);
}
.variant-badge--coming-soon {
  background: rgba(58, 143, 212, 0.15);
  color: var(--color-primary);
  border-color: rgba(58, 143, 212, 0.35);
}
.product-card--coming-soon .product-card-image {
  opacity: 0.85;
}
.product-card--coming-soon .product-card-category {
  color: var(--color-primary);
}
.waitlist-btn {
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
}
.waitlist-btn:hover {
  background: var(--color-primary-highlight) !important;
}

/* --- Magic Ink filter button --- */
.filter-btn--special {
  border-color: rgba(46, 139, 87, 0.4);
  color: #1e7a47;
}
.filter-btn--special:hover {
  background: rgba(46, 139, 87, 0.08);
  color: #1e7a47;
  border-color: #2e8b57;
}
.filter-btn--special.active {
  background: #2e8b57;
  color: var(--color-text-inverse);
  border-color: #2e8b57;
}

/* --- Variant selector (pill toggle) in product modal --- */
.variant-selector {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.variant-pill {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: transparent;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              border-color var(--transition-interactive);
  min-height: 40px;
  cursor: pointer;
}
.variant-pill:hover:not(.active) {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}
.variant-pill.active--art {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}
.variant-pill.active--special {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  border-color: var(--color-secondary);
}

/* --- NL-only notice in modal --- */
.nl-only-notice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(46, 139, 87, 0.1);
  border: 1px solid rgba(46, 139, 87, 0.25);
  color: #1e7a47;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
}

/* --- Magic Ink info badge in modal --- */
.special-ink-info {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-secondary-highlight);
  color: var(--color-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-body);
}

/* --- Magic Ink price breakdown --- */
.special-ink-breakdown {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  margin-top: var(--space-2);
  padding: var(--space-2) 0;
  letter-spacing: 0.01em;
}

/* --- Cart item variant label --- */
.cart-item-variant {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
}

/* --- NL only tag in cart --- */
.nl-only-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--space-2);
  border-radius: var(--radius-full);
  background: oklch(from var(--color-secondary) l c h / 0.15);
  color: var(--color-secondary);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid oklch(from var(--color-secondary) l c h / 0.3);
}

/* --- Magic Ink checkout notice --- */
.special-ink-checkout-notice {
  margin-bottom: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: oklch(from var(--color-secondary) l c h / 0.1);
  border: 1px solid oklch(from var(--color-secondary) l c h / 0.35);
  border-left: 4px solid var(--color-secondary);
  text-align: left;
}
.special-ink-checkout-notice strong {
  display: block;
  color: var(--color-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
}
.special-ink-checkout-notice p {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 1.6;
  margin: 0;
}

/* --- Magic Ink about card --- */
.special-ink-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 215, 230, 0.3);
  border-left: 4px solid #2e8b57;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-8);
}
.special-ink-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: #1e7a47;
}
.special-ink-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  line-height: 1.8;
}
.special-ink-card p:last-child {
  margin-bottom: 0;
}

/* ============================================
   MOBILE-FIRST RESPONSIVE OVERRIDES
   ============================================ */

/* --- Small screens (phones, up to 640px) --- */
@media (max-width: 640px) {

  /* Hero: reduce padding and font size */
  .hero {
    min-height: 60vh;
    padding: var(--space-12) var(--space-4);
  }
  .hero h1 {
    font-size: clamp(2rem, 8vw, var(--text-4xl));
  }
  .hero-subtitle {
    font-size: var(--text-base);
    line-height: 1.6;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Section padding: tighter */
  .section {
    padding: var(--space-8) var(--space-3);
  }
  .section-header {
    margin-bottom: var(--space-6);
  }
  .section-header h2 {
    font-size: var(--text-xl);
  }

  /* Filters: wrap into centered grid on mobile */
  .filters {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    padding: 0 var(--space-4);
  }
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-5);
    min-height: 44px;
  }

  /* Product cards: bump readability on mobile */
  .product-card-category {
    font-size: var(--text-sm);
  }
  .product-card-title {
    font-size: var(--text-xl);
  }
  .product-card-artist {
    font-size: var(--text-base);
  }
  .product-card-price {
    font-size: var(--text-xl);
  }
  .product-card-footer .btn {
    width: 100%;
    max-width: none;
    text-align: center;
    justify-content: center;
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-5);
    min-height: 48px;
  }

  /* ---- PRODUCT DETAIL MODAL — full-screen on mobile ---- */
  .modal-overlay {
    padding: 0;
    align-items: stretch;
  }
  .modal {
    max-width: 100%;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .modal-grid .modal-image {
    aspect-ratio: 3/2;
    max-height: 40vh;
  }
  .modal-details {
    padding: var(--space-6) var(--space-5) var(--space-8);
    overflow-y: visible;
    gap: var(--space-4);
  }
  .modal-details h2 {
    font-size: var(--text-xl);
  }
  .modal-details .description {
    font-size: var(--text-base);
    line-height: 1.7;
  }
  .modal-close {
    top: var(--space-3);
    right: var(--space-3);
  }

  /* Qty control: ensure touch-friendly */
  .qty-control {
    justify-content: flex-start;
  }
  .modal-details .btn-lg {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* ---- STRIPE MODAL — full-screen on mobile ---- */
  .stripe-demo {
    padding: var(--space-6) var(--space-4);
  }
  .stripe-demo .info-box {
    padding: var(--space-3) var(--space-4);
  }

  /* ---- CRYPTO MODAL — full-screen on mobile ---- */
  .crypto-modal-content {
    padding: var(--space-6) var(--space-4);
  }
  .wallet-address {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  .wallet-address code {
    font-size: 0.75rem;
    text-align: center;
    word-break: break-all;
  }
  .wallet-address button {
    width: 100%;
    padding: var(--space-3);
  }
  .qr-placeholder {
    width: 120px;
    height: 120px;
  }

  /* ---- CART PANEL — full-width on mobile ---- */
  .cart-panel {
    width: 100vw;
  }
  .cart-items {
    padding: var(--space-4);
  }
  .cart-item {
    gap: var(--space-3);
  }
  .cart-item-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
  }
  .cart-item-title {
    font-size: var(--text-base);
  }
  .cart-item-variant,
  .cart-item-price {
    font-size: var(--text-sm);
  }
  .cart-footer {
    padding: var(--space-5);
  }
  .cart-footer .btn {
    font-size: var(--text-base);
    min-height: 48px;
  }

  /* ---- ANALYTICS DASHBOARD ---- */
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kpi-card {
    padding: var(--space-4);
  }
  .kpi-card .value {
    font-size: var(--text-lg);
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .chart-card {
    padding: var(--space-4);
  }

  /* ---- ABOUT SECTION ---- */
  .about-content p {
    font-size: var(--text-base);
    line-height: 1.7;
  }
  .about-content blockquote {
    font-size: var(--text-lg);
    padding-left: var(--space-4);
    margin: var(--space-6) 0;
  }
  /* Magic Ink card on mobile */
  .special-ink-card {
    padding: var(--space-5);
  }
  /* Variant selector on mobile: stack pills full-width */
  .variant-selector {
    flex-wrap: wrap;
  }
  .variant-pill {
    flex: 1;
    min-width: 120px;
    text-align: center;
    justify-content: center;
  }
  /* Checkout notice on mobile */
  .special-ink-checkout-notice {
    padding: var(--space-3) var(--space-4);
  }

  /* ---- FOOTER ---- */
  .footer {
    padding: var(--space-8) var(--space-4);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .footer-tagline {
    font-size: var(--text-base);
  }
  .footer-col h4 {
    font-size: var(--text-base);
  }
  .footer-col a {
    font-size: var(--text-sm);
    padding: var(--space-1) 0;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
}

/* --- Medium screens (641px–1024px): stack modal vertically --- */
@media (min-width: 641px) and (max-width: 1024px) {
  .modal {
    max-width: 90vw;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .modal-grid .modal-image {
    min-height: 300px;
    height: 50vw;
    max-height: 45vh;
  }
  .modal-details {
    padding: var(--space-8) var(--space-8);
    overflow-y: visible;
    max-height: none;
  }
}

/* --- Extra small screens (below 380px) --- */
@media (max-width: 380px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .kpi-card .value {
    font-size: var(--text-base);
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .product-card-body {
    padding: var(--space-3);
  }
}

/* ============================================
   ANALYTICS DASHBOARD — REAL TRACKING
   ============================================ */

/* --- User Flow Funnel --- */
.analytics-funnel {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.funnel-step {
  display: flex;
}
.funnel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  font-weight: 600;
  min-width: 120px;
  transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.funnel-bar--2 {
  background: oklch(from var(--color-primary) calc(l * 0.9) c h);
}
.funnel-bar--3 {
  background: oklch(from var(--color-primary) calc(l * 0.8) c h / 0.9);
}
.funnel-bar--4 {
  background: var(--color-secondary);
}
.funnel-label {
  white-space: nowrap;
}
.funnel-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.funnel-arrow {
  color: var(--color-text-faint);
  text-align: center;
  font-size: var(--text-xs);
  line-height: 1;
  padding: var(--space-1) 0;
}

/* --- Analytics Table --- */
.analytics-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.analytics-table th {
  text-align: left;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  font-weight: 600;
  white-space: nowrap;
}
.analytics-table th:not(:first-child) {
  text-align: right;
}
.analytics-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
}
.analytics-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--color-text-muted);
}
.analytics-table tbody tr:hover {
  background: var(--color-surface-offset);
}
.analytics-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Analytics Bar Charts --- */
.analytics-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.analytics-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.analytics-bar-label {
  font-size: var(--text-sm);
  color: var(--color-text);
  white-space: nowrap;
  min-width: 100px;
  font-weight: 500;
}
.analytics-bar-track {
  flex: 1;
  height: 8px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.analytics-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.analytics-bar-fill--scroll {
  background: var(--color-secondary);
}
.analytics-bar-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
}

/* --- Magic Ink Stats Grid --- */
.mi-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.mi-stat {
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}
.mi-stat-value {
  display: block;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-secondary);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-1);
}
.mi-stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Event Log --- */
.event-log {
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
.event-log-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  transition: background var(--transition-interactive);
}
.event-log-item:last-child {
  border-bottom: none;
}
.event-log-item:hover {
  background: var(--color-surface-offset);
}
.event-icon {
  font-size: var(--text-base);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.event-detail {
  flex: 1;
  color: var(--color-text);
}
.event-time {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ============================================
   ADMIN PRODUCT MANAGER
   ============================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 960px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Form Panel --- */
.admin-form-panel {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.admin-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.admin-form-header h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.admin-field--full {
  grid-column: 1 / -1;
}
.admin-field label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-offset);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  min-height: 44px;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}
.admin-field textarea {
  resize: vertical;
  min-height: 80px;
}
.admin-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' fill='none' stroke='%237e8b83' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: var(--space-8);
}

.admin-checkbox-row {
  display: flex;
  gap: var(--space-6);
}
.admin-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
  font-weight: 500;
}
.admin-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.admin-image-upload {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.admin-image-preview {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.admin-image-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
}
#admin-image-file {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
#admin-image-file::file-selector-button {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  cursor: pointer;
  margin-right: var(--space-3);
  transition: background var(--transition-interactive);
}
#admin-image-file::file-selector-button:hover {
  background: var(--color-surface-offset);
}

.admin-form-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* --- List Panel --- */
.admin-list-panel {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.admin-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.admin-list-header h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
}

.admin-product-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.admin-product-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive), border-color var(--transition-interactive);
}
.admin-product-row:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-border);
}

.admin-product-row-order {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-order-btn {
  width: 28px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-divider);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.admin-order-btn:hover:not(:disabled) {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}
.admin-order-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.admin-product-row-swatch {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.admin-product-row-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, oklch(from var(--color-text) l c h / 0.04) 0px, oklch(from var(--color-text) l c h / 0.04) 1px, transparent 1px, transparent 8px),
    repeating-linear-gradient(90deg, oklch(from var(--color-text) l c h / 0.04) 0px, oklch(from var(--color-text) l c h / 0.04) 1px, transparent 1px, transparent 8px);
  pointer-events: none;
}

.admin-product-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-product-row-info strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-product-row-info span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.admin-variants-label {
  font-size: var(--text-xs);
  color: var(--color-secondary);
  font-weight: 600;
}

.admin-product-row-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* --- Admin Mobile --- */
@media (max-width: 640px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-product-row {
    flex-wrap: wrap;
  }
  .admin-product-row-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .admin-product-row-order {
    flex-direction: row;
  }
}

/* ============================================
   ORDER SUCCESS PAGE
   ============================================ */
.success-page {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 64px);
  justify-content: center;
}

.success-page h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.success-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
}

.success-details {
  margin-bottom: var(--space-8);
}

.order-summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: left;
}

.order-summary-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.order-line {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0 0;
  font-size: var(--text-base);
  color: var(--color-text);
}

.order-email {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

.success-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

/* Checkout methods note */
.checkout-methods-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-2);
  letter-spacing: 0.03em;
}

/* Spinner animation for checkout button */
.spinner {
  display: inline-block;
  vertical-align: middle;
  margin-right: var(--space-2);
}

/* ============================================
   ADMIN TABS
   ============================================ */
.admin-tabs-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-3);
}

.admin-tab-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab-btn:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.admin-tab-btn.active {
  color: var(--color-primary);
  background: rgba(62, 207, 122, 0.08);
  border-color: var(--color-primary);
}

/* ============================================
   ORDER STATS CARDS
   ============================================ */
.order-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.order-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

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

.order-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

.order-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   ORDER FILTER BAR
   ============================================ */
.order-filter-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.order-filter-btn {
  padding: var(--space-1) var(--space-3);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all 0.2s;
}

.order-filter-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.order-filter-btn.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(62, 207, 122, 0.08);
}

/* ============================================
   ORDER TABLE
   ============================================ */
.order-table-wrap {
  overflow-x: auto;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.order-table thead th {
  text-align: left;
  padding: var(--space-3) var(--space-3);
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
}

.order-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

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

.order-table td {
  padding: var(--space-3);
  vertical-align: top;
}

.order-date {
  white-space: nowrap;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.order-customer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-customer strong {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.order-customer span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.order-addr {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.order-items {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 220px;
  line-height: 1.5;
}

.nl-flag {
  font-size: 12px;
}

.order-status-select {
  background: var(--color-surface);
  border: 1px solid;
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.order-status-select option {
  color: var(--color-text);
  background: var(--color-bg);
}

/* ============================================
   ORDER DETAIL (Expandable Row)
   ============================================ */
.order-detail-row td {
  padding: 0 !important;
}

.order-detail-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-2) var(--space-3) var(--space-3);
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4);
}

.order-detail-grid h4 {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.order-detail-grid p {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.order-tracking-input {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  box-sizing: border-box;
}

.order-detail-notes textarea {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  resize: vertical;
  box-sizing: border-box;
}

.order-session-id {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: monospace;
}

/* Status Timeline */
.order-status-history {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.order-status-history h4 {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.status-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.status-timeline-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-time {
  color: var(--color-text-faint);
}

/* ============================================
   RESPONSIVE: ORDERS
   ============================================ */
@media (max-width: 768px) {
  .order-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
  .order-table {
    font-size: var(--text-xs);
  }
}

/* ============================================
   PRODUCT IMAGE CAROUSEL
   ============================================ */
.modal-carousel {
  position: relative;
  overflow: hidden;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.carousel-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: oklch(from var(--color-bg) l c h / 0.7);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(8px);
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}
.carousel-arrow:hover {
  background: oklch(from var(--color-bg) l c h / 0.9);
  transform: translateY(-50%) scale(1.05);
}
.carousel-prev {
  left: var(--space-3);
}
.carousel-next {
  right: var(--space-3);
}
.carousel-dots {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 2;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(from var(--color-text) l c h / 0.3);
  cursor: pointer;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
  border: none;
  padding: 0;
}
.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}
.carousel-dot:hover:not(.active) {
  background: oklch(from var(--color-text) l c h / 0.6);
}

/* ============================================
   ADMIN IMAGE GALLERY (multi-image management)
   ============================================ */
.admin-image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.admin-image-thumb {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-divider);
  transition: border-color var(--transition-interactive);
}
.admin-image-thumb--cover {
  border-color: var(--color-primary);
}
.admin-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-image-thumb-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 2px;
  background: oklch(0 0 0 / 0.65);
  padding: 2px;
  opacity: 0;
  transition: opacity var(--transition-interactive);
}
.admin-image-thumb:hover .admin-image-thumb-actions {
  opacity: 1;
}
.admin-image-thumb-actions button {
  width: 24px;
  height: 22px;
  border: none;
  border-radius: var(--radius-sm);
  background: oklch(from var(--color-text) l c h / 0.15);
  color: var(--color-text);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-interactive);
}
.admin-image-thumb-actions button:hover {
  background: oklch(from var(--color-text) l c h / 0.35);
}
.admin-image-cover-label {
  position: absolute;
  top: 3px;
  left: 3px;
  background: var(--color-primary);
  color: var(--color-bg);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

/* ============================================
   LICENSING ACCORDION (product modal)
   ============================================ */
.modal-licensing {
  margin-top: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: visible;
  flex-shrink: 0;
}
.modal-licensing-summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary-highlight);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--transition-interactive);
}
.modal-licensing-summary::-webkit-details-marker { display: none; }
.modal-licensing-summary:hover { background: var(--color-surface-dynamic); }
.modal-licensing-summary svg:first-child {
  color: var(--color-primary);
  flex-shrink: 0;
}
.modal-licensing-summary span { flex: 1; }
.modal-licensing-chevron {
  color: var(--color-text-faint);
  transition: transform var(--transition-interactive);
  flex-shrink: 0;
}
.modal-licensing[open] .modal-licensing-chevron {
  transform: rotate(180deg);
}
.modal-licensing-body {
  padding: var(--space-4);
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-border);
}
.modal-licensing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-2) 0;
  font-size: var(--text-xs);
  border-bottom: 1px solid var(--color-divider);
}
.modal-licensing-row:last-of-type { border-bottom: none; }
.modal-licensing-label {
  color: var(--color-text-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  margin-right: var(--space-4);
}
.modal-licensing-value {
  color: var(--color-text);
  text-align: right;
}
.modal-licensing-note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.6;
}
.modal-ip-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.modal-ip-link:hover {
  text-decoration: underline;
}

/* ============================================
   DIRECT LINK / COPY LINK (product modal)
   ============================================ */
.modal-direct-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}
.modal-direct-link-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.modal-copy-btn {
  gap: var(--space-1);
}
