/* ================================================================
   DigitalKeys — Premium Design System v3.0
   Full redesign: modern, premium, conversion-optimized
   Light mode default · dark mode via html.dark-mode
   ================================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..900;1,14..32,300..900&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --indigo-50:  #EEF2FF;
  --indigo-100: #E0E7FF;
  --indigo-200: #C7D2FE;
  --indigo-400: #818CF8;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;
  --indigo-800: #3730A3;
  --indigo-900: #312E81;
  --violet-500: #8B5CF6;
  --violet-600: #7C3AED;
  --emerald-400: #34D399;
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --amber-400:  #FBBF24;
  --amber-500:  #F59E0B;
  --red-400:    #F87171;
  --red-500:    #EF4444;
  --cyan-500:   #06B6D4;

  /* Semantic */
  --primary:       #4F46E5;
  --primary-dark:  #3730A3;
  --primary-light: #6366F1;
  --secondary:     #7C3AED;
  --accent:        #10B981;
  --warning:       #F59E0B;
  --danger:        #EF4444;
  --info:          #06B6D4;
  --success:       #10B981;

  /* Light Mode Surfaces */
  --bg:            #FAFBFF;
  --bg-2:          #F1F4FD;
  --bg-3:          #E8EDFB;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F7F9FF;
  --bg-input:      #F7F9FF;
  --bg-glass:      rgba(255,255,255,0.85);

  /* Light Mode Text */
  --text:       #0F172A;
  --text-soft:  #1E293B;
  --text-muted: #64748B;
  --text-dim:   #94A3B8;
  --text-faint: #CBD5E1;

  /* Light Mode Borders */
  --border:       #E2E8F0;
  --border-light: #EDF2F8;
  --border-strong:#CBD5E1;

  /* Gradients */
  --gradient:         linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --gradient-warm:    linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --gradient-cool:    linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
  --gradient-green:   linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-hero-lt: linear-gradient(160deg, #EEF2FF 0%, #F0F9FF 40%, #EDE9FE 100%);
  --gradient-card:    linear-gradient(135deg, #FFFFFF 0%, #F7F9FF 100%);

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(15,23,42,0.06);
  --shadow-sm:  0 1px 4px rgba(15,23,42,0.06), 0 2px 8px rgba(15,23,42,0.04);
  --shadow-md:  0 4px 16px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-lg:  0 8px 32px rgba(15,23,42,0.1),  0 4px 12px rgba(15,23,42,0.06);
  --shadow-xl:  0 16px 64px rgba(15,23,42,0.12), 0 8px 24px rgba(15,23,42,0.08);
  --shadow-glow:#4F46E5;
  --glow:       0 0 30px rgba(79,70,229,0.18), 0 0 60px rgba(79,70,229,0.08);
  --glow-green: 0 0 20px rgba(16,185,129,0.2);

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono','Fira Code','Consolas', monospace;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.22s var(--ease);
  --transition-fast: all 0.14s var(--ease);

  /* Layout */
  --header-height: 72px;
  --container-max: 1280px;
  --container-sm:  780px;
}

/* ── Dark Mode ─────────────────────────────────────────────── */
html.dark-mode {
  --bg:            #050914;
  --bg-2:          #080E1E;
  --bg-3:          #0C1428;
  --bg-card:       #0D1628;
  --bg-card-hover: #111F3A;
  --bg-input:      #0D1628;
  --bg-glass:      rgba(13,22,40,0.92);

  --text:       #F1F5F9;
  --text-soft:  #E2E8F0;
  --text-muted: #94A3B8;
  --text-dim:   #64748B;
  --text-faint: #334155;

  --border:       #1A2845;
  --border-light: #152035;
  --border-strong:#253659;

  --gradient-hero-lt: linear-gradient(160deg, #050914 0%, #0D1E4A 50%, #1A0B3B 100%);
  --gradient-card:    linear-gradient(135deg, #0D1628 0%, #111F3A 100%);

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.45);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.55);
  --shadow-xl: 0 16px 64px rgba(0,0,0,0.65);
  --glow:      0 0 40px rgba(79,70,229,0.3), 0 0 80px rgba(79,70,229,0.12);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, textarea, select { font-family: var(--font); }
::selection { background: rgba(79,70,229,0.2); color: var(--primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Typography Scale ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 700; }
p { color: var(--text-muted); line-height: 1.75; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 24px;
}
.section     { padding: 96px 0; }
.section-sm  { padding: 64px 0; }
.section-xs  { padding: 40px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media(max-width:1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:768px)  { .grid-3,.grid-2 { grid-template-columns: 1fr; } }
@media(max-width:640px)  { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px)  { .grid-4 { grid-template-columns: 1fr; } }

/* Section header */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p {
  max-width: 580px;
  margin: 16px auto 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(79,70,229,0.1);
  border: 1px solid rgba(79,70,229,0.15);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font);
  white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.18s;
}
.btn:hover::before { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,70,229,0.35), 0 1px 3px rgba(79,70,229,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,70,229,0.45), 0 2px 8px rgba(79,70,229,0.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79,70,229,0.06);
}

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: rgba(0,0,0,0.04); }
html.dark-mode .btn-ghost:hover { background: rgba(255,255,255,0.06); }

.btn-success {
  background: var(--gradient-green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.4);
}

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-sm { padding: 7px 16px; font-size: 0.8rem; border-radius: var(--radius-xs); }
.btn-lg { padding: 15px 36px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; width: 40px; height: 40px; border-radius: var(--radius-sm); }

/* ── Alert ─────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 18px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}
.alert-success { background: rgba(16,185,129,0.09);  border-color: rgba(16,185,129,0.25); color: #059669; }
.alert-error   { background: rgba(239,68,68,0.09);   border-color: rgba(239,68,68,0.25);  color: #dc2626; }
.alert-warning { background: rgba(245,158,11,0.09);  border-color: rgba(245,158,11,0.25); color: #d97706; }
.alert-info    { background: rgba(6,182,212,0.09);   border-color: rgba(6,182,212,0.25);  color: #0891b2; }
html.dark-mode .alert-success { color: #34d399; }
html.dark-mode .alert-error   { color: #f87171; }
html.dark-mode .alert-warning { color: #fbbf24; }
html.dark-mode .alert-info    { color: #22d3ee; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-soft);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  outline: none;
}
.form-control:hover { border-color: var(--border-strong); }
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
  background: var(--bg-card);
}
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 110px; line-height: 1.65; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}

/* ── Header ────────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(250,251,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
html.dark-mode #header {
  background: rgba(5,9,20,0.85);
  border-bottom-color: transparent;
}
#header.scrolled {
  background: rgba(250,251,255,0.97);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
html.dark-mode #header.scrolled {
  background: rgba(5,9,20,0.98);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.header-wrap { height: 100%; }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
  flex-shrink: 0;
}
.logo-img { height: 36px; width: auto; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-tag { font-size: 0.6rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1px; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
}
.nav-link:hover { color: var(--text); background: var(--bg-2); }
.nav-link.active {
  color: var(--primary);
  background: rgba(79,70,229,0.08);
}
.nav-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  color: #fff;
  margin-left: 3px;
  letter-spacing: 0.03em;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-has-dropdown { cursor: pointer; }
.dropdown-arrow {
  width: 12px; height: 12px;
  opacity: 0.5;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); opacity: 1; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 200;
  animation: menuIn 0.16s var(--ease-out);
}
@keyframes menuIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.nav-dropdown-item:hover { background: var(--bg-2); color: var(--text); }
.nav-dropdown-item.active { color: var(--primary); background: rgba(79,70,229,0.07); }
.di { font-size: 1.1rem; }

/* Mega menu */
.mega-dropdown { position: static; }
.mega-menu { left: 0 !important; width: 100vw !important; max-width: min(900px, 90vw); }
.mega-menu-inner { padding: 8px; }
.mega-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 4px; }
.mega-cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  color: var(--text-muted);
}
.mega-cat-card:hover { background: var(--bg-2); color: var(--text); }
.mega-cat-icon { font-size: 1.4rem; flex-shrink: 0; }
.mega-cat-name { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.mega-cat-count { font-size: 0.74rem; color: var(--text-dim); margin-top: 1px; }
.mega-footer {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding: 12px 14px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.mega-all-link { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.mega-trust { display: flex; gap: 16px; font-size: 0.76rem; color: var(--text-dim); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.hdr-divider { width: 1px; height: 20px; background: var(--border); margin: 0 6px; }
.hdr-icon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
}
.hdr-icon-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.hdr-icon-btn:hover { color: var(--text); background: var(--bg-2); }
.signin-label { font-size: 0.84rem; font-weight: 600; }

/* Avatar */
.avatar-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Cart button */
.cart-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--transition-fast);
  position: relative;
  box-shadow: 0 2px 8px rgba(79,70,229,0.25);
}
.cart-btn svg { width: 16px; height: 16px; }
.cart-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,70,229,0.35); }
.cart-label { font-size: 0.84rem; }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  background: #EF4444;
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
  animation: pop 0.25s var(--ease-spring);
}
@keyframes pop { from{transform:scale(0);} to{transform:scale(1);} }

/* Search */
.search-bar { position: relative; }
.search-icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
  cursor: pointer;
}
.search-icon-btn:hover { color: var(--text); background: var(--bg-2); }
.search-icon-btn svg { width: 17px; height: 17px; }
.search-bar input {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 0;
  opacity: 0;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--text);
  transition: width 0.25s var(--ease), opacity 0.2s;
  pointer-events: none;
}
.search-bar.open input { width: 260px; opacity: 1; pointer-events: auto; }
.search-bar input:focus { border-color: var(--primary); outline: none; }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 300;
}
.search-bar.open .search-results { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  transition: background 0.15s;
  font-size: 0.875rem;
}
.search-result-item:hover { background: var(--bg-2); }

/* Theme toggle */
#theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
  cursor: pointer;
}
#theme-toggle:hover { color: var(--text); background: var(--bg-2); }
#theme-toggle svg { width: 17px; height: 17px; }
.icon-sun, .icon-moon { display: block; }
html.dark-mode .icon-sun { display: none; }
.icon-moon { display: none; }
html.dark-mode .icon-moon { display: block; }

/* Lang / currency dropdown */
.lang-btn, .currency-btn {
  font-size: 0.84rem;
  font-weight: 600;
}
.lang-menu, .currency-menu { min-width: 160px; }
.sm { width: 10px; height: 10px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition-fast);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.mobile-menu.open { display: block; animation: slideDown 0.2s var(--ease-out); }
@keyframes slideDown { from{transform:translateY(-8px);opacity:0;} to{transform:none;opacity:1;} }
.mm-search { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mm-search-bar { display: flex; align-items: center; gap: 10px; }
.mm-search-bar svg { width: 16px; height: 16px; color: var(--text-dim); flex-shrink: 0; }
.mm-search-bar input {
  flex: 1; background: none; border: none; color: var(--text);
  font-size: 0.9rem; outline: none;
}
.mm-section { padding: 8px; }
.mm-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 12px 4px;
}
.mm-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition-fast);
}
.mm-link:hover, .mm-active { background: var(--bg-2); color: var(--text); }
.mm-icon { font-size: 1rem; width: 20px; flex-shrink: 0; }
.mm-count {
  margin-left: auto;
  background: var(--bg-3);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  padding: 1px 7px;
  color: var(--text-dim);
}
.mm-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.mm-pill:hover, .mm-pill-active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79,70,229,0.07);
}
.mm-lang-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 12px 12px; }
.mm-logout { color: #EF4444 !important; }
.mm-cart-link .mm-count { background: #EF4444; color: #fff; }

/* ── Announcement Bar ──────────────────────────────────────── */
.ann-bar {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  position: relative;
  z-index: 1001;
}
.ann-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  margin-right: 5px;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:.8;} 50%{opacity:.2;} }
.ann-text { color: #fff; }
.ann-text a { color: #fff; text-decoration: underline; }
.ann-dismiss {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
}
.ann-dismiss:hover { color: #fff; background: rgba(255,255,255,.1); }

/* ── HERO SECTION ──────────────────────────────────────────── */
.hero {
  background: var(--gradient-hero-lt);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}
.hero-shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero-shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
  bottom: -50px; left: 10%;
}
.hero-shape-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  top: 30%; left: 40%;
}
html.dark-mode .hero-shape { opacity: 0.4; }
html.dark-mode .hero-shape-3 { opacity: 0.2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media(max-width:860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-content {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,70,229,0.1);
  border: 1px solid rgba(79,70,229,0.2);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: blink 2s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 22px;
}
.hero-title .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.trust-item { display: flex; align-items: center; gap: 5px; font-weight: 500; }
.trust-separator { color: var(--border-strong); }

/* Hero visual / card */
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; padding: 20px; }
.hero-card-stack { position: relative; width: 340px; }
.hero-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xl), var(--glow);
  position: relative;
  z-index: 2;
}
html.dark-mode .hero-main-card { background: var(--bg-card); border-color: var(--border); }
.hero-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hero-card-logo { font-size: 2rem; width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--bg-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-card-title { font-size: 1rem; font-weight: 800; color: var(--text); }
.hero-card-sub { font-size: 0.78rem; color: var(--text-dim); }
.hero-card-price { font-size: 2.4rem; font-weight: 900; color: var(--primary); letter-spacing: -0.04em; line-height: 1; }
.hero-card-orig { font-size: 0.85rem; color: var(--text-dim); text-decoration: line-through; margin-top: 4px; margin-bottom: 10px; }
.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #dc2626;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 18px;
}
html.dark-mode .hero-card-badge { color: #f87171; background: rgba(239,68,68,0.12); }
.hero-card-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.hero-card-feature { font-size: 0.84rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.check { color: var(--accent); font-weight: 800; font-size: 0.9rem; }

/* Floating badges */
.hero-floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }
.hero-badge-1 { top: -24px; left: -30px; animation-delay: 0s; }
.hero-badge-2 { bottom: -20px; right: -30px; animation-delay: 1.5s; }
.floating-badge-inner { display: flex; align-items: center; gap: 10px; }
.floating-badge-icon { font-size: 1.4rem; }
.floating-badge-text { font-size: 0.8rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.floating-badge-text span { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.72rem; }

/* ── Stats Banner ──────────────────────────────────────────── */
.stats-banner {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
}
@media(max-width:640px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat-item {
  text-align: center;
  padding: 24px 20px;
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}
.stat-item:last-child::after { display: none; }
.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* ── Category Cards ────────────────────────────────────────── */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79,70,229,0.3);
}
.category-card:hover::before { opacity: 0.04; }
.category-icon {
  font-size: 2.5rem;
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s var(--ease-spring);
  position: relative; z-index: 1;
}
.category-card:hover .category-icon { transform: scale(1.1); }
.category-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  position: relative; z-index: 1;
}
.category-count {
  font-size: 0.78rem;
  color: var(--text-dim);
  position: relative; z-index: 1;
}
.category-arrow {
  font-size: 1rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s;
  position: relative; z-index: 1;
  font-weight: 800;
}
.category-card:hover .category-arrow { opacity: 1; transform: none; }

/* ── Product Cards ─────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.26s var(--ease), box-shadow 0.26s, border-color 0.26s;
  position: relative;
  text-decoration: none;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79,70,229,0.25);
}

.product-card-img {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.no-img {
  font-size: 3.5rem;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
}
.product-card-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.product-card:hover .product-card-img-overlay { opacity: 1; }
.product-card-quickview {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.15s;
}
.product-card-quickview:hover { transform: scale(1.04); }

/* Product badge */
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-size: 0.67rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-sale, .badge-hot  { background: linear-gradient(135deg,#EF4444,#DC2626); }
.badge-new              { background: linear-gradient(135deg,#10B981,#059669); }
.badge-popular, .badge-best { background: linear-gradient(135deg,#7C3AED,#6D28D9); }

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 8px;
}
.product-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.product-name {
  font-size: 0.97rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name a { color: inherit; }
.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.product-rating { display: flex; align-items: center; gap: 5px; }
.stars { display: inline-flex; gap: 1px; }
.star { font-size: 0.85rem; color: var(--border); }
.star.full, .star.half { color: var(--amber-500); }
.rating-count { font-size: 0.74rem; color: var(--text-dim); }
.product-delivery { font-size: 0.74rem; font-weight: 600; color: var(--accent); }
.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.product-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.product-original { font-size: 0.85rem; color: var(--text-dim); text-decoration: line-through; }
.product-discount {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(239,68,68,0.12);
  color: #dc2626;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
html.dark-mode .product-discount { color: #f87171; background: rgba(239,68,68,0.15); }

.product-card-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-cart {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}
.btn-cart:hover { background: var(--gradient); color: #fff; border-color: transparent; }

/* ── Feature Cards ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
@media(max-width:768px) { .features-grid { grid-template-columns: 1fr; } }
@media(max-width:1024px) and (min-width:769px) { .features-grid { grid-template-columns: repeat(2,1fr); } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(79,70,229,0.2); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.feature-icon.blue   { background: rgba(79,70,229,0.1);  }
.feature-icon.green  { background: rgba(16,185,129,0.1); }
.feature-icon.purple { background: rgba(124,58,237,0.1); }
.feature-icon.amber  { background: rgba(245,158,11,0.1); }
.feature-icon.cyan   { background: rgba(6,182,212,0.1);  }
.feature-icon.red    { background: rgba(239,68,68,0.1);  }
.feature-title { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.feature-text  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ── How It Works ──────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
  position: relative;
}
.how-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16% + 30px);
  right: calc(16% + 30px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.25;
}
@media(max-width:768px) { .how-grid { grid-template-columns: 1fr; } .how-grid::before { display: none; } }
.how-step { text-align: center; padding: 24px; position: relative; z-index: 1; }
.how-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(79,70,229,0.3);
}
.how-title { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.how-text  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
@media(max-width:768px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); border-color: rgba(79,70,229,0.2); }
.testimonial-stars { font-size: 1rem; }
.testimonial-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-name  { font-weight: 700; font-size: 0.875rem; color: var(--text); }
.author-label { font-size: 0.74rem; color: var(--text-dim); }
.verified-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(16,185,129,0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ── Blog Cards ────────────────────────────────────────────── */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79,70,229,0.2);
}
.blog-card-img {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  flex-shrink: 0;
}
.blog-card-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.blog-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
}
.blog-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
}
.blog-title a { color: inherit; }
.blog-title a:hover { color: var(--primary); }
.blog-excerpt { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.blog-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ── Newsletter ────────────────────────────────────────────── */
.newsletter-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.newsletter-icon { font-size: 3rem; display: block; margin-bottom: 20px; position: relative; z-index: 1; }
.newsletter-title { font-size: clamp(1.5rem,3vw,2rem); font-weight: 900; margin-bottom: 12px; position: relative; z-index: 1; }
.newsletter-text  { color: var(--text-muted); margin-bottom: 0; position: relative; z-index: 1; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 28px auto 0;
  position: relative; z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-input {
  flex: 1;
  min-width: 240px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color 0.18s;
  outline: none;
}
.newsletter-input:focus { border-color: var(--primary); }
.newsletter-input::placeholder { color: var(--text-dim); }
.newsletter-note { font-size: 0.75rem; color: var(--text-dim); margin-top: 14px; position: relative; z-index: 1; }

/* ── Flash Sales ───────────────────────────────────────────── */
.flash-sale-banner {
  background: linear-gradient(135deg,#EF4444 0%,#DC2626 100%);
  color: #fff;
  padding: 12px 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}
.flash-sale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 20px;
}
.flash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}
.flash-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.flash-countdown {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(239,68,68,0.9);
  color: #fff;
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  backdrop-filter: blur(4px);
}

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
  background: var(--gradient-hero-lt);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(79,70,229,0.06);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(1.6rem,4vw,2.4rem); font-weight: 900; margin-bottom: 10px; }
.page-hero p  { color: var(--text-muted); font-size: 0.95rem; }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ── Cart Page ─────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media(max-width:860px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.cart-item:hover { border-color: rgba(79,70,229,0.2); }
.cart-item-img {
  width: 68px; height: 68px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 2rem;
  border: 1px solid var(--border);
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 800; font-size: 0.97rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-cat  { font-size: 0.78rem; color: var(--accent); font-weight: 600; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.qty-control { display: flex; align-items: center; }
.qty-btn {
  width: 30px; height: 30px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-input {
  width: 40px; text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: none; border-right: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 5px 2px;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.cart-item-price { font-size: 1.1rem; font-weight: 900; color: var(--primary); min-width: 70px; text-align: right; }
.cart-item-remove {
  width: 30px; height: 30px;
  border-radius: var(--radius-xs);
  background: rgba(239,68,68,0.08);
  color: #f87171;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid rgba(239,68,68,0.15);
}
.cart-item-remove:hover { background: #EF4444; color: #fff; }

/* Order Summary Card */
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 88px;
}
.summary-title { font-size: 1rem; font-weight: 800; margin-bottom: 18px; color: var(--text); }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
html.dark-mode .summary-row { border-bottom-color: rgba(255,255,255,0.04); }
.summary-row:last-child { border-bottom: none; }
.summary-row.total {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  padding-top: 14px;
  margin-top: 4px;
  border-top: 2px solid var(--border);
  border-bottom: none;
}
.coupon-form { display: flex; gap: 8px; margin-top: 16px; }
.coupon-input {
  flex: 1;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 1px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.18s;
}
.coupon-input:focus { border-color: var(--primary); }
.guarantee-box {
  margin-top: 16px;
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
}
.payment-badge {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Checkout ──────────────────────────────────────────────── */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
@media(max-width:860px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: border-color 0.2s;
}
.form-section:focus-within { border-color: rgba(79,70,229,0.25); }
.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}
.form-section-title .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:560px) { .form-row { grid-template-columns: 1fr; } }
.checkout-info-note {
  background: rgba(79,70,229,0.07);
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.checkout-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 4px 0;
}

/* Pay tabs */
.pay-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
  flex-wrap: wrap;
}
.pay-tab {
  flex: 1;
  min-width: 120px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 10px 14px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.855rem;
  font-weight: 700;
  transition: all 0.18s;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-family: var(--font);
}
.pay-tab:hover { color: var(--text); background: var(--bg-2); }
.pay-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(79,70,229,0.06); }
.pay-panel {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 22px;
}
.pay-panel.co-hidden { display: none; }
.pay-error, .pay-msg {
  font-size: 0.855rem;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.18);
  color: #dc2626;
  display: none;
}
html.dark-mode .pay-error, html.dark-mode .pay-msg { color: #f87171; }
.pay-error:not(:empty), .pay-msg[style*="block"] { display: block; }

/* Stripe element */
#stripe-payment-element {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.18s;
  min-height: 56px;
}
#stripe-payment-element.focused { border-color: var(--primary); }
#stripe-payment-element:hover { border-color: var(--border-strong); }

/* Mollie methods */
.mollie-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
@media(max-width:480px) { .mollie-methods { grid-template-columns: 1fr; } }
.mollie-method-option, .mollie-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}
.mollie-method-option:hover, .mollie-opt:hover { border-color: rgba(79,70,229,0.4); color: var(--text); }
.mollie-method-option.selected, .mollie-opt.sel {
  border-color: var(--primary);
  background: rgba(79,70,229,0.07);
  color: var(--text);
}
.mollie-method-option input, .mollie-opt input { display: none; }
.method-icon, .mm-icon { font-size: 1.25rem; }

/* ── Contact Page ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
@media(max-width:860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.contact-info-items { display: flex; flex-direction: column; gap: 12px; }
.contact-info-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s;
}
.contact-info-item:hover { border-color: rgba(79,70,229,0.25); }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-info-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 4px; }
.contact-info-value { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* ── Auth Cards ────────────────────────────────────────────── */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
  margin: 0 auto;
}
.auth-logo { font-size: 2.5rem; text-align: center; margin-bottom: 12px; display: block; }
.auth-title { font-size: 1.5rem; font-weight: 900; text-align: center; margin-bottom: 6px; }
.auth-subtitle { font-size: 0.875rem; color: var(--text-muted); text-align: center; margin-bottom: 28px; }
.auth-footer { text-align: center; font-size: 0.84rem; color: var(--text-muted); margin-top: 20px; }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ── About Page ────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media(max-width:768px) { .about-grid { grid-template-columns: 1fr; } }
.about-stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.about-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
}
.about-stat-num { font-size: 2rem; font-weight: 900; color: var(--primary); letter-spacing: -0.04em; }
.about-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.about-visual {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
}
.about-emoji { font-size: 6rem; text-align: center; }

/* ── Product Detail ────────────────────────────────────────── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media(max-width:768px) { .product-detail-grid { grid-template-columns: 1fr; } }
.product-detail-price-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}
.product-features-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 18px;
}

/* Gallery */
.product-gallery { position: sticky; top: 88px; }
.gallery-main {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  aspect-ratio: 1;
}
.gallery-main-img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px,1fr)); gap: 8px; }
.gallery-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-2);
  transition: border-color 0.18s;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-video-wrap { width: 100%; aspect-ratio: 16/9; }
.gallery-iframe { width: 100%; height: 100%; border: none; }

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-btn {
  padding: 10px 22px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  font-family: var(--font);
}
.tab-btn:hover { color: var(--text-muted); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.2s var(--ease-out); }
@keyframes fadeUp { from{opacity:0;transform:translateY(6px);} to{opacity:1;transform:none;} }

/* ── Key Box ───────────────────────────────────────────────── */
.key-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  word-break: break-all;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.key-box:hover { background: rgba(79,70,229,0.05); }
.key-copy-btn {
  background: rgba(79,70,229,0.1);
  border: 1px solid rgba(79,70,229,0.2);
  color: var(--primary-light);
  border-radius: var(--radius-xs);
  padding: 5px 12px;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s;
  font-family: var(--font);
}
.key-copy-btn:hover { background: rgba(79,70,229,0.2); }
.key-copy-btn.copied { color: var(--accent); border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.1); }

/* ── Success Page ──────────────────────────────────────────── */
.success-page { text-align: center; padding: 60px 0; }
.success-icon { font-size: 5rem; display: block; margin-bottom: 24px; animation: pop 0.4s var(--ease-spring); }
.success-order-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px auto;
  text-align: left;
}

/* ── Account ───────────────────────────────────────────────── */
.account-stats { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 14px; margin-bottom: 28px; }
.account-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}
.account-stat-num { font-size: 1.8rem; font-weight: 900; color: var(--primary); letter-spacing: -0.04em; }
.account-stat-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }
.account-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.account-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.18s;
}
.account-nav a:hover, .account-nav a.active { background: var(--bg-card); border-color: var(--primary); color: var(--primary); }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item.open { border-color: rgba(79,70,229,0.3); box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.93rem;
  gap: 12px;
  user-select: none;
  color: var(--text);
}
.faq-icon { font-size: 1.2rem; transition: transform 0.22s; flex-shrink: 0; color: var(--text-dim); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-answer { display: none; padding: 0 20px 18px; font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; }
.faq-item.open .faq-answer { display: block; }

/* ── Trust Bar ─────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 20px 36px;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* ── Empty State ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .icon { font-size: 3rem; display: block; margin-bottom: 16px; opacity: 0.5; }
.empty-state h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }

/* ── Toast ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 10px;
  animation: toastIn 0.28s var(--ease-out);
}
.toast-success { border-left-color: var(--accent); }
.toast-error   { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
@keyframes toastIn { from{transform:translateX(110%);opacity:0;} to{transform:none;opacity:1;} }

/* ── Scroll to Top ─────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 800;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  font-size: 1.2rem;
  border: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-4px); }

/* ── Pagination ────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
.page-btn, .pagination a {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: all 0.18s;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
}
.page-btn:hover, .pagination a:hover,
.page-btn.active, .pagination a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
html.dark-mode .site-footer { background: #030710; }
.footer-top-bar { height: 4px; background: var(--gradient); }
.footer-inner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 52px 0;
}
@media(max-width:960px) { .footer-inner-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand-col { grid-column: 1/-1; } }
@media(max-width:540px) { .footer-inner-grid { grid-template-columns: 1fr; } }
.footer-brand-desc {
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 300px;
}
.footer-social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social-link {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s;
}
.footer-social-link svg { width: 16px; height: 16px; }
.footer-social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-col-title, .footer-col-heading {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-links, .footer-nav-list { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-nav-link {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.18s;
  text-decoration: none;
}
.footer-links a:hover, .footer-nav-link:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: var(--text-dim);
}
.footer-copyright { color: var(--text-dim); }
.payment-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.payment-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
}

/* ── Cookie Banner ─────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 24px; left: 24px;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-xl);
  z-index: 9000;
  display: none;
  animation: toastIn 0.3s var(--ease-out);
}
#cookie-banner.show { display: block; }
#cookie-banner p { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 14px; }
#cookie-banner .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Modals ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.22s var(--ease-spring);
}
@keyframes modalIn { from{transform:scale(0.95) translateY(10px);opacity:0;} to{transform:none;opacity:1;} }

/* ── Reveal animation ──────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ── Divider ───────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ── Utilities ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.fw-bold   { font-weight: 800; }
.font-mono { font-family: var(--font-mono); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.w-full { width: 100%; }
.hidden, .co-hidden { display: none !important; }
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border);
}
.share-copy {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.price-range-inputs { display: flex; gap: 10px; align-items: center; }
.price-range-inputs input { width: 80px; }

/* ── Recently Viewed ───────────────────────────────────────── */
.rv-section { padding: 40px 0; }
.rv-title { font-size: 1rem; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 14px; }
.rv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  display: block;
}
.rv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(79,70,229,0.25); }
.rv-card-img { background: var(--bg-2); padding: 16px; font-size: 2rem; height: 80px; display: flex; align-items: center; justify-content: center; }
.rv-card-name { font-size: 0.74rem; font-weight: 700; padding: 8px 10px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.rv-card-price { font-size: 0.85rem; font-weight: 900; color: var(--primary); padding-bottom: 10px; }

/* ── Popup ─────────────────────────────────────────────────── */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.popup-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.25s var(--ease-spring);
  position: relative;
}
.popup-close {
  position: absolute;
  top: 12px; right: 14px;
  background: rgba(0,0,0,0.15);
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background 0.15s;
}
.popup-close:hover { background: rgba(0,0,0,0.3); }

/* ── sort select ───────────────────────────────────────────── */
.sort-select {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 8px 36px 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s;
}
.sort-select:focus { border-color: var(--primary); }

/* ── verified badge ────────────────────────────────────────── */
.verified-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(16,185,129,0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ── Payment option (compare etc) ─────────────────────────── */
.payment-option {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all 0.18s;
}
.payment-option:hover, .payment-option.active {
  border-color: var(--primary);
  background: rgba(79,70,229,0.06);
}

/* ── Responsive breakpoints ────────────────────────────────── */
@media(max-width:1024px) {
  .hero-grid { gap: 40px; }
  .hero-card-stack { width: 300px; }
  .hero-badge-1 { left: -10px; }
  .hero-badge-2 { right: -10px; }
}
@media(max-width:860px) {
  .hero { padding: 110px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 1; }
  .hero-visual { order: 2; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-card-stack { width: 320px; }
}
@media(max-width:768px) {
  .nav { display: none; }
  .header-actions { gap: 2px; }
  .cart-label, .signin-label { display: none; }
  .hamburger { display: flex; }
  .hdr-divider { display: none; }
  .lang-switcher, .currency-switcher { display: none; }
  .section  { padding: 64px 0; }
  .section-sm { padding: 40px 0; }
  .hero { padding: 90px 0 60px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
@media(max-width:540px) {
  .container { padding: 0 16px; }
  .hero-card-stack { width: 280px; }
  .hero-badge-1, .hero-badge-2 { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item::after { display: none; }
}
