/* =========================================================
   NORDHAUS — Premium Electronics Storefront
   styles.css — Design tokens, reset, and BEM components
========================================================= */

/* ---------------------------------------------------------
   1. DESIGN TOKENS
--------------------------------------------------------- */
:root {
  /* Colour — surfaces */
  --color-bg-void: #06070a;
  --color-bg-primary: #0b0d12;
  --color-bg-surface: #14171d;
  --color-bg-elevated: #1b1f27;
  --color-bg-elevated-hover: #212630;

  /* Colour — borders */
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.16);

  /* Colour — text */
  --color-text-primary: #f5f7fa;
  --color-text-secondary: #9aa3b2;
  --color-text-muted: #6b7280;

  /* Colour — accent (electric blue) */
  --color-accent: #2f6fff;
  --color-accent-bright: #5b9cff;
  --color-accent-dim: #1f4fd8;
  --color-accent-glow: rgba(47, 111, 255, 0.35);

  /* Colour — signal / supporting */
  --color-signal-cyan: #00d4ff;
  --color-star: #ffb648;
  --color-success: #2ecc71;
  --color-warning: #ff8a3d;
  --color-critical: #ff5c5c;
  --color-white: #ffffff;

  /* Typography */
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --fs-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --fs-sm: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --fs-base: clamp(0.95rem, 0.93rem + 0.1vw, 1rem);
  --fs-md: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --fs-lg: clamp(1.3rem, 1.15rem + 0.75vw, 1.7rem);
  --fs-xl: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem);
  --fs-2xl: clamp(2.4rem, 1.9rem + 2.5vw, 3.8rem);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-elevated: 0 20px 60px -20px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 12px 30px -14px rgba(0, 0, 0, 0.55);
  --shadow-glow-accent: 0 0 0 1px rgba(47, 111, 255, 0.4),
    0 8px 30px -6px rgba(47, 111, 255, 0.45);

  /* Layout */
  --max-width: 1280px;

  /* Z-index scale */
  --z-header: 100;
  --z-mega-menu: 150;
  --z-mobile-nav: 250;
  --z-drawer: 300;
  --z-consent-bar: 320;
  --z-modal: 400;
  --z-toast: 500;
}

/* ---------------------------------------------------------
   2. RESET
--------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

fieldset {
  border: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--color-accent-bright);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  z-index: 999;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ---------------------------------------------------------
   3. UTILITY / BUTTON COMPONENTS
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-glow-accent);
}

.btn--primary:hover {
  background: var(--color-accent-bright);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}

.btn--outline:hover {
  border-color: var(--color-accent-bright);
  color: var(--color-accent-bright);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn--ghost:hover {
  color: var(--color-text-primary);
}

.btn--small {
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-xs);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: var(--fs-base);
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  color: var(--color-text-primary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.icon-btn:hover {
  background: var(--color-bg-elevated-hover);
  color: var(--color-accent-bright);
}

.pill {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-secondary);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pill--active,
.pill:hover {
  border-color: var(--color-accent);
  color: var(--color-white);
  background: rgba(47, 111, 255, 0.15);
}

/* ---------------------------------------------------------
   4. GDPR CONSENT BAR + MODAL
--------------------------------------------------------- */
.consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-consent-bar);
  background: rgba(20, 23, 29, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-elevated);
  animation: consent-slide-up var(--transition-slow) ease;
}

@keyframes consent-slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.consent-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.consent-bar__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-1);
  color: var(--color-accent-bright);
}

.consent-bar__text {
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  max-width: 640px;
}

.consent-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.consent-modal[hidden] {
  display: none;
}

.consent-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.75);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.consent-modal__panel {
  position: relative;
  width: min(520px, calc(100vw - 2.5rem));
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-elevated);
}

.consent-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.consent-modal__title {
  font-size: var(--fs-lg);
}

.consent-modal__intro {
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-5);
}

.consent-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border-subtle);
}

.consent-toggle-row__label {
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: 0.2rem;
}

.consent-toggle-row__desc {
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  max-width: 340px;
}

.consent-modal__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.consent-modal__actions .btn {
  flex: 1;
}

/* Switch toggle */
.switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
}

.switch__input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch__track {
  position: absolute;
  inset: 0;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast);
}

.switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-text-secondary);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.switch__input:checked + .switch__track {
  background: rgba(47, 111, 255, 0.35);
  border-color: var(--color-accent);
}

.switch__input:checked + .switch__track .switch__thumb {
  transform: translateX(18px);
  background: var(--color-accent-bright);
}

.switch--disabled {
  opacity: 0.6;
}

.switch__input:disabled {
  cursor: not-allowed;
}

/* ---------------------------------------------------------
   5. HEADER / UTILITY BAR / NAV
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.utility-bar {
  background: var(--color-bg-void);
  border-bottom: 1px solid var(--color-border-subtle);
}

.utility-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.utility-bar__message {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

.utility-bar__controls {
  display: flex;
  gap: var(--space-3);
}

.dropdown {
  position: relative;
}

.dropdown__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.dropdown__trigger:hover {
  color: var(--color-text-primary);
}

.dropdown__chevron {
  transition: transform var(--transition-fast);
}

.dropdown__trigger[aria-expanded="true"] .dropdown__chevron {
  transform: rotate(180deg);
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  z-index: 20;
}

.dropdown__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown__option:hover {
  background: var(--color-bg-elevated-hover);
  color: var(--color-accent-bright);
}

.nav {
  background: rgba(11, 13, 18, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--color-border-subtle);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex: 1;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-text-primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Mega menu */
.mega-menu {
  position: static;
}

.mega-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: var(--z-mega-menu);
  background: rgba(20, 23, 29, 0.92);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--color-border-subtle);
  border-top: 1px solid var(--color-accent-glow);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-6) var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  max-width: var(--max-width);
  margin: 0 auto;
  animation: mega-menu-reveal var(--transition-base) ease;
}

.mega-menu__panel[hidden] {
  display: none;
}

@keyframes mega-menu-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-menu__heading {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
  margin-bottom: var(--space-3);
}

.mega-menu__link {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.mega-menu__link:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border-subtle);
}

.mega-menu__column--feature {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid var(--color-border-subtle);
}

.mega-menu__feature-text {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

/* Search widget */
.search-widget {
  position: relative;
}

.search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  width: min(320px, 80vw);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  box-shadow: var(--shadow-elevated);
  z-index: 20;
}

.search-panel__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

.search-panel__input:focus {
  border-color: var(--color-accent);
}

/* Cart trigger */
.cart-trigger {
  position: relative;
}

.cart-trigger__count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-bg-primary);
  transition: transform var(--transition-fast);
}

.cart-trigger__count--bump {
  animation: cart-bump 320ms ease;
}

@keyframes cart-bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}

.mobile-nav-toggle {
  display: none;
}

/* ---------------------------------------------------------
   6. MOBILE NAV PANEL
--------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-nav);
}

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.7);
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--color-bg-surface);
  border-left: 1px solid var(--color-border-subtle);
  padding: var(--space-5);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  animation: drawer-slide-in var(--transition-base) ease;
}

@keyframes drawer-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.mobile-nav__group {
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: var(--space-3);
}

.mobile-nav__group summary {
  font-family: var(--font-display);
  font-weight: 600;
  padding: var(--space-2) 0;
  cursor: pointer;
  list-style: none;
}

.mobile-nav__group summary::-webkit-details-marker {
  display: none;
}

.mobile-nav__group a {
  display: block;
  padding: var(--space-2) 0 var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.mobile-nav__utility {
  margin-top: var(--space-3);
}

.mobile-nav__utility-label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: var(--space-4) 0 var(--space-2);
}

.mobile-nav__pill-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   7. HERO
--------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-9) var(--space-5) var(--space-8);
  background: radial-gradient(
      circle at 82% 18%,
      rgba(47, 111, 255, 0.16),
      transparent 55%
    ),
    var(--color-bg-primary);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-8);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--color-accent-bright);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-5);
  max-width: 16ch;
}

.hero__subtitle {
  color: var(--color-text-secondary);
  font-size: var(--fs-md);
  max-width: 46ch;
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero__stats {
  display: flex;
  gap: var(--space-7);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero__stat-value {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-text-primary);
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero__glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

/* ---------------------------------------------------------
   8. DEVICE MOCK (pure-CSS phone illustration)
--------------------------------------------------------- */
.device-mock {
  position: relative;
  width: 110px;
  height: 220px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--device-color, #2b2f36), #05060a 120%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), var(--shadow-card);
  z-index: 1;
}

.device-mock--mini {
  width: 94px;
  height: 190px;
}

.device-mock--hero {
  width: 190px;
  height: 380px;
  border-radius: 34px;
}

.device-mock__screen {
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0) 45%
  );
  overflow: hidden;
}

.device-mock--hero .device-mock__screen {
  inset: 12px;
  border-radius: 26px;
}

.device-mock__camera {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.device-mock--hero .device-mock__camera {
  top: 22px;
  width: 10px;
  height: 10px;
}

.device-mock__scanline {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  top: 20%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-signal-cyan),
    transparent
  );
  opacity: 0.8;
  animation: scanline-move 3.2s ease-in-out infinite;
}

@keyframes scanline-move {
  0% {
    top: 12%;
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  50% {
    top: 82%;
    opacity: 0.9;
  }
  65% {
    opacity: 0;
  }
  100% {
    top: 82%;
    opacity: 0;
  }
}

/* ---------------------------------------------------------
   9. TRUST STRIP
--------------------------------------------------------- */
.trust-strip {
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-bg-void);
}

.trust-strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-5);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

/* ---------------------------------------------------------
   10. CATALOG / PRODUCT GRID
--------------------------------------------------------- */
.catalog {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-9) var(--space-5);
}

.catalog__header {
  max-width: 640px;
  margin: 0 auto var(--space-8);
  text-align: center;
}

.catalog__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--color-accent-bright);
  margin-bottom: var(--space-3);
}

.catalog__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.product-card {
  position: relative;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-base), transform var(--transition-base),
    box-shadow var(--transition-base);
}

.product-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.product-card__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.product-card__badge--bestseller {
  background: rgba(47, 111, 255, 0.18);
  color: var(--color-accent-bright);
  border: 1px solid rgba(47, 111, 255, 0.4);
}

.product-card__badge--new {
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-signal-cyan);
  border: 1px solid rgba(0, 212, 255, 0.4);
}

.product-card__badge--limited {
  background: rgba(255, 92, 92, 0.15);
  color: var(--color-critical);
  border: 1px solid rgba(255, 92, 92, 0.4);
}

.product-card__badge--premium {
  background: rgba(91, 156, 255, 0.18);
  color: var(--color-accent-bright);
  border: 1px solid rgba(91, 156, 255, 0.45);
}

.product-card__badge--compact {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-strong);
}

.product-card__badge--value {
  background: rgba(46, 204, 113, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.product-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  margin-bottom: var(--space-5);
  background: radial-gradient(
    circle at 50% 30%,
    rgba(47, 111, 255, 0.12),
    transparent 65%
  );
  border-radius: var(--radius-md);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}

.product-card__title {
  font-size: var(--fs-md);
  margin-bottom: var(--space-2);
}

.star-rating {
  position: relative;
  display: inline-block;
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--color-border-strong);
  margin-right: var(--space-2);
}

.star-rating__fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--color-star);
}

.product-card__reviews {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-4);
  flex-wrap: wrap;
}

.product-card__price-amount {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.product-card__price-amount--updated {
  color: var(--color-accent-bright);
}

.product-card__price-vat {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.variant-selector {
  margin-bottom: var(--space-4);
}

.variant-selector__legend {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.variant-selector__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.swatch {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.swatch__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 34px;
  padding: 0 var(--space-3);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.swatch:checked + .swatch__label {
  border-color: var(--color-accent);
  color: var(--color-white);
  background: rgba(47, 111, 255, 0.15);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.swatch:focus-visible + .swatch__label {
  outline: 2px solid var(--color-accent-bright);
  outline-offset: 2px;
}

.swatch__label--color {
  min-width: 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: var(--swatch-color, #333);
  position: relative;
}

.swatch__label--color::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.swatch--color:checked + .swatch__label--color::after {
  border-color: var(--color-accent);
}

.product-card__stock {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.product-card__stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.product-card__stock--critical {
  color: var(--color-critical);
}

.product-card__stock--critical .product-card__stock-dot {
  background: var(--color-critical);
  box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.25);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.product-card__stock--normal {
  color: var(--color-success);
}

.product-card__stock--normal .product-card__stock-dot {
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.25);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 92, 92, 0.08);
  }
}

.product-card__actions {
  margin-top: auto;
  display: flex;
  gap: var(--space-3);
}

.product-card__actions .btn {
  flex: 1;
}

/* ---------------------------------------------------------
   11. SUPPORT / NEWSLETTER BAND
--------------------------------------------------------- */
.support-band {
  background: linear-gradient(
      120deg,
      rgba(47, 111, 255, 0.12),
      rgba(0, 212, 255, 0.06)
    ),
    var(--color-bg-surface);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.support-band__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.support-band__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.support-band__text {
  color: var(--color-text-secondary);
  max-width: 42ch;
}

.support-band__form {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.support-band__input {
  padding: 0.85rem var(--space-4);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  min-width: 240px;
}

.support-band__input:focus {
  border-color: var(--color-accent);
}

/* ---------------------------------------------------------
   12. CART DRAWER
--------------------------------------------------------- */
.cart-drawer-root {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
}

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.7);
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--color-bg-surface);
  border-left: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  animation: drawer-slide-in var(--transition-base) ease;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-border-subtle);
}

.cart-drawer__title {
  font-size: var(--fs-md);
}

.cart-drawer__shipping-progress {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-subtle);
}

.cart-drawer__shipping-text {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.progress-bar {
  height: 6px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-signal-cyan));
  border-radius: var(--radius-pill);
  transition: width var(--transition-slow);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--space-5);
}

.cart-drawer__list {
  display: flex;
  flex-direction: column;
}

.cart-drawer__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-subtle);
  align-items: center;
}

.cart-drawer__item-visual {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: radial-gradient(
    circle at 50% 30%,
    rgba(47, 111, 255, 0.2),
    transparent 65%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer__item-visual .device-mock {
  width: 30px;
  height: 56px;
  border-radius: 8px;
}

.cart-drawer__item-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cart-drawer__item-meta {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.cart-drawer__item-qty {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
}

.cart-drawer__qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
}

.cart-drawer__qty-btn:hover {
  color: var(--color-accent-bright);
}

.cart-drawer__qty-value {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  min-width: 16px;
  text-align: center;
}

.cart-drawer__item-price {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: right;
}

.cart-drawer__item-remove {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-drawer__item-remove:hover {
  color: var(--color-critical);
}

.cart-drawer__empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  padding: var(--space-8) 0;
  color: var(--color-text-secondary);
}

.cart-drawer__body--empty .cart-drawer__empty {
  display: flex;
}

.cart-drawer__body--empty .cart-drawer__list {
  display: none;
}

.cart-drawer__footer {
  padding: var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
}

.cart-summary {
  margin-bottom: var(--space-5);
}

.cart-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  padding: var(--space-1) 0;
}

.cart-summary__row span:last-child {
  font-family: var(--font-mono);
}

.cart-summary__row--total {
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-text-primary);
}

.payment-methods {
  margin-bottom: var(--space-5);
}

.payment-methods__legend {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.payment-methods__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.payment-method input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.payment-method__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-method input:checked + .payment-method__card {
  border-color: var(--color-accent);
  background: rgba(47, 111, 255, 0.1);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.payment-method input:focus-visible + .payment-method__card {
  outline: 2px solid var(--color-accent-bright);
  outline-offset: 2px;
}

.payment-method__logo {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.payment-method__logo--card {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
}

.payment-method__logo--sepa {
  background: rgba(47, 111, 255, 0.18);
  color: var(--color-accent-bright);
}

.payment-method__logo--klarna {
  background: #ffb3c7;
  color: #17120f;
}

.payment-method__logo--ideal {
  background: rgba(255, 182, 72, 0.2);
  color: var(--color-star);
}

.payment-method__name {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

.cart-drawer__secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

/* ---------------------------------------------------------
   13. TOAST
--------------------------------------------------------- */
.toast-region {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-primary);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-elevated);
  animation: toast-in var(--transition-base) ease;
}

.toast--success {
  border-color: rgba(46, 204, 113, 0.4);
}

.toast--info {
  border-color: rgba(47, 111, 255, 0.4);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------
   14. FOOTER
--------------------------------------------------------- */
.site-footer {
  background: var(--color-bg-void);
  border-top: 1px solid var(--color-border-subtle);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-6);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
}

.site-footer__tagline {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-top: var(--space-3);
  max-width: 32ch;
}

.site-footer__heading {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.site-footer__column a,
.site-footer__link-btn {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  padding: var(--space-1) 0;
  text-align: left;
}

.site-footer__column a:hover,
.site-footer__link-btn:hover {
  color: var(--color-accent-bright);
}

.site-footer__bottom {
  border-top: 1px solid var(--color-border-subtle);
  text-align: center;
  padding: var(--space-5);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------
   15. RESPONSIVE — TABLET (<=1024px)
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__title,
  .hero__subtitle {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions,
  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    min-height: 320px;
  }

  .trust-strip__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .nav__links {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }
}

/* ---------------------------------------------------------
   16. RESPONSIVE — MOBILE (<=640px)
--------------------------------------------------------- */
@media (max-width: 640px) {
  .utility-bar__message {
    display: none;
  }

  .utility-bar__inner {
    justify-content: flex-end;
  }

  .nav__inner {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-3);
  }

  .nav__logo-text {
    display: none;
  }

  .hero {
    padding: var(--space-7) var(--space-4) var(--space-6);
  }

  .hero__stats {
    gap: var(--space-5);
    flex-wrap: wrap;
  }

  .trust-strip__inner {
    grid-template-columns: 1fr;
    padding: var(--space-4);
  }

  .catalog {
    padding: var(--space-7) var(--space-4);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .support-band__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6) var(--space-4);
  }

  .support-band__form {
    width: 100%;
  }

  .support-band__input {
    flex: 1;
    min-width: 0;
  }

  .cart-drawer {
    width: 100vw;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    padding: var(--space-6) var(--space-4);
  }

  .payment-methods__grid {
    grid-template-columns: 1fr;
  }

  .consent-bar__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .consent-bar__actions {
    justify-content: stretch;
  }

  .consent-bar__actions .btn {
    flex: 1;
  }
}
