/* ==========================================================================
   RETRO XS — CYBERPUNK / DARK SYNTHWAVE DESIGN SYSTEM
   File: assets/retro-xs.css
   Architecture: Custom Properties, Glassmorphism, Neon Glows, Badges, CRT FX
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (:root)
   -------------------------------------------------------------------------- */
:root {
  /* --- Obsidian & Dark Surfaces --- */
  --color-bg-obsidian: #0a0b10;
  --color-bg-obsidian-rgb: 10, 11, 16;
  
  --color-surface-dark: #12141f;
  --color-surface-dark-rgb: 18, 20, 31;
  
  --color-surface-elevated: #1a1d2e;
  --color-surface-elevated-rgb: 26, 29, 46;
  
  --color-surface-hover: #232840;
  --color-surface-hover-rgb: 35, 40, 64;

  /* --- Neon Accent Palette --- */
  --neon-cyan: #00f0ff;
  --neon-cyan-rgb: 0, 240, 255;
  
  --neon-magenta: #ff0055;
  --neon-magenta-rgb: 255, 0, 85;
  
  --neon-green: #00ff66;
  --neon-green-rgb: 0, 255, 102;
  
  --neon-amber: #f59e0b;
  --neon-amber-rgb: 245, 158, 11;
  
  --neon-purple: #9d00ff;
  --neon-purple-rgb: 157, 0, 255;

  /* --- Subtle & Bright Borders --- */
  --color-border-subtle: rgba(var(--neon-cyan-rgb), 0.15);
  --color-border-bright: rgba(var(--neon-cyan-rgb), 0.45);
  --color-border-magenta: rgba(var(--neon-magenta-rgb), 0.35);
  --color-border-green: rgba(var(--neon-green-rgb), 0.35);

  /* --- Text & Content Tokens --- */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: var(--neon-cyan);

  /* --- Typography Families --- */
  --font-retro-heading: 'Chakra Petch', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-retro-pixel: 'Press Start 2P', 'Courier New', monospace;
  --font-retro-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-retro-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* --- Spacing Scale --- */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */

  /* --- Border Radius Scale --- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 9999px;

  /* --- Glassmorphic Tokens --- */
  --glass-bg: rgba(var(--color-surface-dark-rgb), 0.75);
  --glass-bg-hover: rgba(var(--color-surface-elevated-rgb), 0.9);
  --glass-blur: blur(14px);
  --glass-border: 1px solid rgba(var(--neon-cyan-rgb), 0.22);
  --glass-border-hover: 1px solid rgba(var(--neon-cyan-rgb), 0.55);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);

  /* --- Neon Glow Shadows --- */
  --glow-cyan-sm: 0 0 8px rgba(var(--neon-cyan-rgb), 0.4);
  --glow-cyan-md: 0 0 16px rgba(var(--neon-cyan-rgb), 0.55), 0 0 32px rgba(var(--neon-cyan-rgb), 0.25);
  --glow-cyan-lg: 0 0 24px rgba(var(--neon-cyan-rgb), 0.7), 0 0 48px rgba(var(--neon-cyan-rgb), 0.35);

  --glow-magenta-sm: 0 0 8px rgba(var(--neon-magenta-rgb), 0.4);
  --glow-magenta-md: 0 0 16px rgba(var(--neon-magenta-rgb), 0.55), 0 0 32px rgba(var(--neon-magenta-rgb), 0.25);

  --glow-green-sm: 0 0 8px rgba(var(--neon-green-rgb), 0.4);
  --glow-green-md: 0 0 16px rgba(var(--neon-green-rgb), 0.55), 0 0 32px rgba(var(--neon-green-rgb), 0.25);

  /* --- Transitions & Timing --- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-drawer: 320ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Z-Index Hierarchy --- */
  --z-base: 1;
  --z-elevated: 10;
  --z-header: 100;
  --z-drawer-backdrop: 200;
  --z-drawer: 210;
  --z-modal-backdrop: 300;
  --z-modal: 310;
  --z-crt: 9999;
  --z-skip-link: 10000;
}

/* --------------------------------------------------------------------------
   2. Body & Typography Application
   -------------------------------------------------------------------------- */
body {
  background-color: var(--color-bg-obsidian);
  color: var(--text-secondary);
  font-family: var(--font-retro-body);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-retro-heading);
  color: var(--text-primary);
}

/* Header Sticky Layering */
header,
.site-header,
.retro-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  overflow: visible;
}

/* Pixel Arcade Text Utility */
.pixel-text {
  font-family: var(--font-retro-pixel);
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

/* Code / Monospace */
code, pre, kbd {
  font-family: var(--font-retro-mono);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--neon-cyan-rgb), 0.3);
  border-radius: var(--radius-xs);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan-sm);
}
* {
  scrollbar-color: rgba(var(--neon-cyan-rgb), 0.3) var(--color-bg-obsidian);
  scrollbar-width: thin;
}

/* Text Selection */
::selection {
  background: rgba(var(--neon-cyan-rgb), 0.35);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. Glassmorphic Surface Cards (.retro-card & .glass-panel)
   -------------------------------------------------------------------------- */
.retro-card,
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

/* Fallback for browsers without backdrop-filter support */
@supports not ((-webkit-backdrop-filter: blur(14px)) or (backdrop-filter: blur(14px))) {
  .retro-card,
  .glass-panel {
    background: rgba(18, 20, 31, 0.95);
  }
}

.retro-card:hover,
.glass-panel:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  border-color: var(--neon-cyan);
  box-shadow: var(--glass-shadow), var(--glow-cyan-sm);
}

/* Cyberpunk Decorative Corner Notches */
.retro-card::before,
.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 16px 16px 0;
  border-color: transparent var(--neon-cyan) transparent transparent;
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
  transition: opacity var(--transition-normal);
}

.retro-card:hover::before,
.glass-panel:hover::before {
  opacity: 1;
}

/* Cyberpunk Decorative Bracket Accent (Bottom-Left) */
.retro-card::after,
.glass-panel::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--neon-cyan);
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
  transition: width var(--transition-normal), opacity var(--transition-normal);
}

.retro-card:hover::after,
.glass-panel:hover::after {
  width: 28px;
  opacity: 1;
}

/* Cyberpunk Corner Notch via clip-path option */
.retro-card--notch {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

/* --------------------------------------------------------------------------
   4. Glowing Action Buttons (.btn-primary & .btn-secondary)
   -------------------------------------------------------------------------- */
/* Base Button Reset & Layout */
.btn {
  font-family: var(--font-retro-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.75rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* Primary CTA (Electric Magenta Gradient + Glowing Elevation) */
.btn-primary,
.btn--primary {
  font-family: var(--font-retro-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--neon-magenta) 0%, #c70044 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 0, 85, 0.85);
  padding: 0.85rem 1.75rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--glow-magenta-sm), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover,
.btn--primary:hover {
  background: linear-gradient(135deg, #ff1a6b 0%, var(--neon-magenta) 100%);
  box-shadow: var(--glow-magenta-md), 0 0 32px rgba(var(--neon-magenta-rgb), 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-primary:active,
.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--glow-magenta-sm), inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

.btn-primary:focus-visible,
.btn--primary:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}

/* Secondary CTA (Neon Cyan Outline & Inset Glow) */
.btn-secondary,
.btn--secondary {
  font-family: var(--font-retro-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(var(--neon-cyan-rgb), 0.04);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  padding: 0.85rem 1.75rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: inset 0 0 10px rgba(var(--neon-cyan-rgb), 0.18), 0 0 8px rgba(var(--neon-cyan-rgb), 0.15);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover,
.btn--secondary:hover {
  background: rgba(var(--neon-cyan-rgb), 0.16);
  border-color: #80f7ff;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(var(--neon-cyan-rgb), 0.85);
  box-shadow: var(--glow-cyan-sm), inset 0 0 18px rgba(var(--neon-cyan-rgb), 0.35);
  transform: translateY(-2px);
}

.btn-secondary:active,
.btn--secondary:active {
  transform: translateY(0);
  background: rgba(var(--neon-cyan-rgb), 0.24);
  box-shadow: inset 0 0 12px rgba(var(--neon-cyan-rgb), 0.4);
}

.btn-secondary:focus-visible,
.btn--secondary:focus-visible {
  outline: 2px solid var(--neon-magenta);
  outline-offset: 3px;
}

/* Button Size Modifiers */
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  min-height: 36px;
}

.btn--lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  min-height: 52px;
}

.btn--full-width {
  width: 100%;
}

/* Touch Device Target Sizing */
@media (pointer: coarse) {
  .btn,
  .btn-primary,
  .btn--primary,
  .btn-secondary,
  .btn--secondary,
  button,
  [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* --------------------------------------------------------------------------
   5. Reusable Gaming Condition Badges (.retro-badge)
   -------------------------------------------------------------------------- */
.retro-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-retro-heading);
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
}

.retro-badge .badge-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Mint Condition (Phosphor Green + Pulsing Dot) */
.retro-badge--mint {
  background: rgba(var(--neon-green-rgb), 0.12);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  box-shadow: var(--glow-green-sm), inset 0 0 6px rgba(var(--neon-green-rgb), 0.1);
}

.badge-dot--green {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: badge-pulse 2s infinite ease-in-out;
}

@keyframes badge-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 6px var(--neon-green);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
    box-shadow: 0 0 2px var(--neon-green);
  }
}

/* Complete In Box / CIB (Neon Cyan Tech Border) */
.retro-badge--cib {
  background: rgba(var(--neon-cyan-rgb), 0.12);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--glow-cyan-sm), inset 0 0 6px rgba(var(--neon-cyan-rgb), 0.1);
}

/* Refurbished (Electric Magenta Glow) */
.retro-badge--refurbished,
.retro-badge--refurb {
  background: rgba(var(--neon-magenta-rgb), 0.12);
  color: var(--neon-magenta);
  border: 1px solid var(--neon-magenta);
  box-shadow: var(--glow-magenta-sm), inset 0 0 6px rgba(var(--neon-magenta-rgb), 0.15);
  text-shadow: 0 0 6px rgba(var(--neon-magenta-rgb), 0.4);
}

/* 16-Bit Classic (Dual Synthwave Gradient) */
.retro-badge--16-bit,
.retro-badge--16-bit-classic {
  background: linear-gradient(135deg, rgba(var(--neon-magenta-rgb), 0.28) 0%, rgba(var(--neon-cyan-rgb), 0.28) 100%);
  color: #ffffff;
  border: 1px solid rgba(var(--neon-cyan-rgb), 0.7);
  box-shadow: 0 0 10px rgba(var(--neon-magenta-rgb), 0.35), 0 0 16px rgba(var(--neon-cyan-rgb), 0.2);
}

.badge-pixel-star {
  color: var(--neon-cyan);
  font-size: 0.75rem;
  line-height: 1;
}

/* Badge Size Variations */
.retro-badge--small {
  font-size: 0.65rem;
  padding: 0.18rem 0.45rem;
  gap: 0.25rem;
}

.retro-badge--medium {
  font-size: 0.75rem;
  padding: 0.28rem 0.65rem;
  gap: 0.35rem;
}

.retro-badge--large {
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  gap: 0.45rem;
}

/* --------------------------------------------------------------------------
   6. CRT Scanline Overlay & Screen Shader (#crt-overlay)
   -------------------------------------------------------------------------- */
#crt-overlay,
.crt-scanlines-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none !important;
  z-index: var(--z-crt, 9999);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Active State Triggered via data attribute on <html> or crt-enabled on body */
html[data-crt="true"] #crt-overlay,
html[data-crt="true"] .crt-scanlines-overlay,
body.crt-enabled #crt-overlay,
body.crt-enabled .crt-scanlines-overlay {
  display: block;
  opacity: 1;
  background: 
    /* Horizontal scanlines: 3px alternating raster */
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%),
    /* Subpixel RGB phosphor dispersion */
    linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 6px 100%;
}

/* CRT Tube Curved Perimeter Vignette */
html[data-crt="true"] body::after,
body.crt-enabled::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  box-shadow: 
    inset 0 0 100px rgba(0, 0, 0, 0.8),
    inset 0 0 40px rgba(0, 0, 0, 0.95);
  pointer-events: none !important;
  z-index: calc(var(--z-crt, 9999) - 1);
}

/* Rolling Scanline Electron Beam */
html[data-crt="true"] #crt-overlay::before,
body.crt-enabled #crt-overlay::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(
    0deg,
    rgba(18, 16, 16, 0) 0%,
    rgba(0, 255, 102, 0.04) 50%,
    rgba(18, 16, 16, 0) 100%
  );
  opacity: 0.2;
  animation: crt-scanline-roll 8s linear infinite;
  pointer-events: none !important;
}

@keyframes crt-scanline-roll {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(500%);
  }
}

/* --------------------------------------------------------------------------
   7. Accessibility Overrides (prefers-reduced-motion: reduce)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  /* Cease rolling scanline electron beam */
  html[data-crt="true"] #crt-overlay::before,
  body.crt-enabled #crt-overlay::before {
    animation: none !important;
    display: none !important;
  }

  /* Cease pulsing dot on mint condition badge */
  .badge-dot--green {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Neutralize card hover elevations and button transitions */
  .retro-card,
  .glass-panel,
  .btn,
  .btn-primary,
  .btn--primary,
  .btn-secondary,
  .btn--secondary {
    transition: none !important;
  }

  .retro-card:hover,
  .glass-panel:hover {
    transform: none !important;
  }

  .btn:hover,
  .btn-primary:hover,
  .btn--primary:hover,
  .btn-secondary:hover,
  .btn--secondary:hover {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   8. Responsive Grid Systems & Breakpoints
   -------------------------------------------------------------------------- */
.retro-grid {
  display: grid;
  gap: var(--space-6);
}

/* Product Catalog Grid: 2 mobile (<768px), 3 tablet, 4 desktop */
.grid--products {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .grid--products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--products {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Curated Platform Categories Grid: 5 columns on desktop */
.grid--categories {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (min-width: 768px) {
  .grid--categories {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid--categories {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Reviews Showcase Grid: 1 mobile, 2 tablet, 3 desktop */
.grid--reviews {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--reviews {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--reviews {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   9. Milestone 4: Modals, Drawers & Interactive Utilities
   -------------------------------------------------------------------------- */

/* Universal Visibility Utility */
.is-hidden,
.product-card.is-hidden {
  display: none !important;
}

/* Body scroll lock utility when drawers/modals are active */
body.overflow-hidden,
.overflow-hidden {
  overflow: hidden !important;
}

/* --- Quick View Modal Dialog --- */
dialog.quick-view-modal {
  position: fixed;
  inset: 0;
  width: min(920px, 94vw);
  max-height: 90vh;
  margin: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  overflow: visible;
  z-index: var(--z-modal, 310);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 250ms ease, transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

dialog.quick-view-modal[open] {
  opacity: 1;
  transform: scale(1);
  display: block;
}

dialog.quick-view-modal::backdrop {
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: var(--z-modal-backdrop, 300);
}

.quick-view__container {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.25), 0 20px 40px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.quick-view__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.quick-view__close:hover,
.quick-view__close:focus-visible {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan-sm);
  background: rgba(0, 240, 255, 0.1);
}

.quick-view__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .quick-view__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
  }
}

.quick-view__img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-dark);
  aspect-ratio: 4 / 3;
}

.quick-view__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-view__crt-screen-reflection {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

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

.quick-view__title {
  font-family: var(--font-retro-heading);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.quick-view__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.quick-view__price {
  font-family: var(--font-retro-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.quick-view__compare-price {
  font-size: 1rem;
  text-decoration: line-through;
  opacity: 0.6;
}

.quick-view__stock-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-retro-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--neon-green);
}

.stock-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.quick-view__description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-height: 120px;
  overflow-y: auto;
}

.quick-view__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.quick-view__add-btn {
  flex: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* --- Slide-Out Cart Drawer & Retro XP Bar --- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer, 210);
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  pointer-events: none;
  transition: visibility var(--transition-drawer, 320ms);
}

.cart-drawer.is-active,
.cart-drawer[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition-drawer, 320ms);
}

.cart-drawer.is-active .cart-drawer__overlay,
.cart-drawer[aria-hidden="false"] .cart-drawer__overlay {
  opacity: 1;
}

.cart-drawer__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--color-surface-dark, #12141f);
  border-left: 1px solid var(--neon-cyan, #00f0ff);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 240, 255, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-drawer, 320ms);
  z-index: 1;
  overflow: hidden;
}

.cart-drawer.is-active .cart-drawer__panel,
.cart-drawer[aria-hidden="false"] .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border-subtle, rgba(0, 240, 255, 0.15));
  background: var(--color-surface-elevated, #1a1d2e);
}

.cart-drawer__title {
  font-family: var(--font-retro-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary, #ffffff);
  margin: 0;
}

.cart-drawer__close {
  color: var(--text-secondary, #94a3b8);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.cart-drawer__close:hover {
  color: var(--neon-magenta, #ff0055);
  transform: scale(1.1);
}

.cart-drawer__xp-bar {
  padding: 0.85rem 1.5rem;
  background: rgba(26, 29, 46, 0.65);
  border-bottom: 1px solid var(--color-border-subtle);
}

.xp-bar__label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-retro-heading);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.xp-bar__text {
  color: var(--text-secondary, #94a3b8);
}

.xp-bar__status {
  color: var(--neon-cyan, #00f0ff);
  font-weight: 600;
}

.xp-bar__track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill, 9999px);
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.xp-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-magenta, #ff0055), var(--neon-cyan, #00f0ff));
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.xp-bar--unlocked .xp-bar__fill {
  background: linear-gradient(90deg, var(--neon-cyan, #00f0ff), var(--neon-green, #00ff66));
  box-shadow: 0 0 14px rgba(0, 255, 102, 0.8);
}

.xp-bar--unlocked .xp-bar__status {
  color: var(--neon-green, #00ff66);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

.cart-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cart-drawer__items-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-drawer__item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: all 250ms ease;
  position: relative;
}

/* Smooth exit animation before removal */
.cart-drawer__item.is-removing {
  opacity: 0;
  transform: translateX(35px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.cart-drawer__item-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-subtle);
}

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

.cart-drawer__item-details {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cart-drawer__item-title {
  font-family: var(--font-retro-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.cart-drawer__item-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.cart-drawer__item-title a:hover {
  color: var(--neon-cyan);
}

.cart-drawer__item-actions,
.cart-drawer__quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.4rem;
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
}

.quantity-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-retro-mono);
  font-size: 1rem;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.quantity-btn:hover {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
}

.quantity-input {
  width: 36px;
  height: 28px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-retro-mono);
  font-size: 0.85rem;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-drawer__remove-btn,
.cart-drawer__item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-retro-heading);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.cart-drawer__remove-btn:hover,
.cart-drawer__item-remove:hover {
  color: var(--neon-magenta);
  background: rgba(255, 0, 85, 0.1);
}

.cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.empty-cart-arcade-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 12px var(--neon-magenta));
}

.empty-cart__title {
  font-size: 1rem;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
}

.empty-cart__subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cart-drawer__footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-border-subtle);
  background: var(--color-surface-elevated);
}

.cart-drawer__subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-retro-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   RETROXS R36 MAX 2 — MODERN STANDARD SHOPIFY STORE STYLES (OPTION A)
   ========================================================================== */

/* Breadcrumbs */
.pdp-breadcrumbs {
  margin-bottom: 1.25rem;
}

.pdp-breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pdp-breadcrumbs__link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.pdp-breadcrumbs__link:hover {
  color: #ffffff;
}

.pdp-breadcrumbs__sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.pdp-breadcrumbs__current {
  color: #ffffff;
  font-weight: 600;
}

/* Product Hero Section */
.product-hero-section {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
  position: relative;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .product-hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
  }
}

/* Gallery */
.product-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-gallery-badge-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdp-pill-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.pdp-pill-tag--primary {
  border-color: rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
}

.pdp-pill-tag--accent {
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.product-gallery-main {
  position: relative;
  border-radius: 12px;
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.product-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}

.product-gallery-main:hover .product-gallery-img {
  transform: scale(1.03);
}

.product-thumbnails-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.thumbnail-btn {
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.35rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.thumbnail-btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 4px;
}

.thumbnail-btn .thumb-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.thumbnail-btn:hover,
.thumbnail-btn.active {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.06);
}

.thumbnail-btn.active .thumb-label {
  color: #00f0ff;
  font-weight: 700;
}

/* Buy Box */
.product-buybox {
  padding: 2rem;
  border-radius: 14px;
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.buybox-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.stars-gold {
  color: #fbbf24;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.rating-text {
  color: var(--text-secondary);
}

.rating-text strong {
  color: #ffffff;
}

.verified-pill {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-weight: 700;
}

.buybox-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.buybox-subtitle {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.buybox-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.current-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-retro-heading);
}

.compare-price {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount-pill {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.stock-ticker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
}

.stock-highlight {
  color: #10b981;
  font-weight: 700;
}

/* Customizer Group */
.customizer-group {
  margin-bottom: 1.5rem;
}

.group-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
}

.group-label {
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.selected-val {
  font-weight: 700;
  color: #00f0ff;
}

.color-swatches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.color-swatch-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1b1e2c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.3rem 0.75rem 0.3rem 0.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.swatch-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.swatch-black { background: #1a1a1a; }
.swatch-blue { background: #1e3a8a; }
.swatch-green { background: #065f46; }
.swatch-white { background: #f8fafc; }
.swatch-red { background: #991b1b; }

.swatch-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.color-swatch-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: #222636;
}

.color-swatch-btn.active {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
}

.color-swatch-btn.active .swatch-name {
  color: #ffffff;
  font-weight: 700;
}

/* Storage Tiers */
.storage-tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.storage-card {
  position: relative;
  padding: 0.9rem;
  background: #1b1e2c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.storage-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.storage-size {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.storage-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #00f0ff;
}

.storage-card-desc {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.storage-badge-hot {
  position: absolute;
  top: -9px;
  right: 8px;
  background: #10b981;
  color: #0a0b10;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  letter-spacing: 0.04em;
}

.storage-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.storage-card.active {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 0 1px #00f0ff;
}

/* Buy Box CTA */
.buybox-actions {
  margin-top: 1.5rem;
}

.buybox-cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: #ffffff;
  color: #0a0b10;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: normal;
}

.buybox-cta-btn:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.buybox-cta-btn:active {
  transform: translateY(0);
}

.buybox-cta-btn .cta-price {
  background: #0a0b10;
  color: #ffffff;
  font-size: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.buybox-security-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

@media (min-width: 576px) {
  .buybox-security-badges {
    grid-template-columns: repeat(3, 1fr);
  }
}

.security-badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.payment-methods-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.9rem;
  margin-bottom: 1.5rem;
}

.pay-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}

.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pay-chip {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Collapsible Accordion Tabs (Shopify Dawn Style) */
.pdp-collapsible-tabs {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
}

.pdp-accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pdp-accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  list-style: none;
  user-select: none;
  transition: color 0.15s ease;
}

.pdp-accordion-trigger::-webkit-details-marker {
  display: none;
}

.pdp-accordion-trigger:hover {
  color: #00f0ff;
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accordion-chevron {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.pdp-accordion-item[open] .accordion-chevron {
  transform: rotate(180deg);
  color: #00f0ff;
}

.pdp-accordion-content {
  padding-bottom: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.specs-compact-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin: 0;
}

.specs-compact-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}

.specs-compact-row dt {
  color: var(--text-muted);
  font-weight: 600;
}

.specs-compact-row dd {
  color: #ffffff;
  margin: 0;
  text-align: right;
}

.inbox-compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.emulators-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.emu-tag {
  font-size: 0.72rem;
  background: #1b1e2c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  color: #ffffff;
}

/* ==========================================================================
   SECTION FOUNDATIONS & COMMON TYPOGRAPHY
   ========================================================================== */

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #00f0ff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.section-micro-answer {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

/* Hardware Specs 3-Pillar Grid */
.specs-pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 992px) {
  .specs-pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec-pillar-card {
  padding: 2rem;
  border-radius: 12px;
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.spec-pillar-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.spec-pillar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.spec-pillar-icon {
  font-size: 1.75rem;
}

.spec-pillar-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #00f0ff;
}

.spec-pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.spec-pillar-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex: 1;
}

.spec-pillar-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #ffffff;
}

.spec-pillar-bullets li {
  position: relative;
  padding-left: 1.25rem;
}

.spec-pillar-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

/* Technical Specs Clean Table */
.specs-table-container {
  max-width: 100%;
}

.table-card {
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
}

.table-card-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.specs-clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.specs-clean-table th,
.specs-clean-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.specs-clean-table th {
  color: var(--text-muted);
  text-align: left;
  width: 20%;
  font-weight: 600;
}

.specs-clean-table td {
  color: #ffffff;
  width: 30%;
}

/* Emulators Grid */
.emulators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 576px) {
  .emulators-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .emulators-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.emu-system-card {
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.emu-system-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.emu-system-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.emu-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #1b1e2c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.emu-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #00f0ff;
}

.emu-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.emu-desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  flex: 1;
}

.emu-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.emu-pills span {
  font-size: 0.68rem;
  background: #1b1e2c;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  color: var(--text-muted);
}

.emulators-action-box {
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem 2rem;
}

.action-box-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.action-box-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.action-box-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Clean Comparison Table */
.comparison-card {
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
}

.clean-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.clean-comparison-table th,
.clean-comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.th-feature { width: 22%; color: var(--text-muted); }
.th-winner { width: 34%; background: rgba(0, 240, 255, 0.04); border-top: 2px solid #00f0ff; color: #ffffff; }
.th-standard { width: 22%; color: var(--text-muted); }

.cell-winner {
  background: rgba(0, 240, 255, 0.03);
  color: #00f0ff;
  font-weight: 700;
}

.winner-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #00f0ff;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.comparison-cta {
  margin-top: 2rem;
}

/* Reviews & Ratings */
.reviews-rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.rating-large-score {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.rating-stars-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.rating-count-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.clean-review-card {
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1b1e2c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffffff;
}

.reviewer-name {
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
}

.verified-buyer-badge {
  font-size: 0.7rem;
  color: #10b981;
  font-weight: 600;
}

.review-variant-pill {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.review-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.review-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
}

.review-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.clean-faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
  color: #00f0ff;
}

.faq-toggle-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  color: #00f0ff;
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-contact-box {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-link {
  color: #00f0ff;
  text-decoration: underline;
}

/* Mobile-First Sticky Buy Bar */
.sticky-buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(20, 23, 34, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0.75rem 0 max(0.75rem, env(safe-area-inset-bottom));
}

.sticky-buy-bar.is-visible {
  transform: translateY(0);
}

.sticky-buy-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-product-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.sticky-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: #1b1e2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sticky-text-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sticky-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-selection {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.sticky-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.sticky-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.sticky-compare-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.sticky-btn {
  background: #ffffff;
  color: #0a0b10;
  border: none;
  font-weight: 800;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sticky-btn:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
  .product-hero-grid {
    grid-template-columns: 100%;
    min-width: 0;
  }

  .product-buybox {
    padding: 1.25rem 1rem;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .buybox-title {
    font-size: 1.65rem;
    word-break: break-word;
  }

  .buybox-rating {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .buybox-cta-btn {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    text-align: center;
    white-space: normal;
  }

  .buybox-cta-btn .cta-text {
    font-size: 0.88rem;
    line-height: 1.3;
    text-align: center;
  }

  .buybox-cta-btn .cta-price {
    font-size: 1.1rem;
  }

  .product-card,
  .retro-card {
    max-width: 100%;
    box-sizing: border-box;
  }

  .storage-tiers-grid {
    grid-template-columns: 1fr;
  }

  .sticky-selection {
    display: none;
  }

  .specs-clean-table th,
  .specs-clean-table td {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
  }

  .specs-clean-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    padding: 0.5rem 0;
  }
}
