/* === Puzzol v2 — Complete Redesign === */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #c9a96e;
  --purple-light: #dbc192;
  --purple-dark: #a68b52;
  --purple-50: #faf7f2;
  --orange: #b8856a;
  --orange-light: #cfa088;
  --yellow: #d4b56a;
  --teal: #7a9e8e;
  --pink: #c97b7b;
  --white: #ffffff;
  --cream: #f9f6f1;
  --gray-50: #f8f6f3;
  --gray-100: #f0ece6;
  --gray-200: #e2ddd5;
  --gray-300: #ccc5b9;
  --gray-400: #a09889;
  --gray-500: #7a7267;
  --gray-600: #5c554b;
  --gray-700: #3d3832;
  --gray-800: #1c1917;
  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --bg-card: var(--white);
  --text: var(--gray-800);
  --text-muted: var(--gray-500);
  --text-light: var(--gray-400);
  --border: var(--gray-200);
  --border-light: var(--gray-100);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(28,25,23,.04);
  --shadow-sm: 0 2px 8px rgba(28,25,23,.05);
  --shadow: 0 4px 16px rgba(28,25,23,.07);
  --shadow-lg: 0 8px 32px rgba(28,25,23,.1);
  --shadow-xl: 0 16px 48px rgba(28,25,23,.12);
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --transition-slow: .4s cubic-bezier(.4,0,.2,1);
}

/* === Dark Mode === */
[data-theme="dark"] {
  --bg: #0f0e0d;
  --bg-alt: #1a1816;
  --bg-card: #1e1c1a;
  --text: #f0ece6;
  --text-muted: #a09889;
  --text-light: #6b6256;
  --border: #2e2a26;
  --border-light: #242120;
  --gray-50: #1a1816;
  --gray-100: #242120;
  --gray-200: #2e2a26;
  --cream: #1a1816;
  --white: #0f0e0d;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.2);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.15);
  --shadow: 0 4px 16px rgba(0,0,0,.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.25);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.3);
  --img-bg: #252220;
}

/* Dark mode images: warm light canvas inside dark card */
[data-theme="dark"] .product-img-wrap {
  background: #e8e2d9;
  margin: 6px 6px 0;
  border-radius: 8px;
  aspect-ratio: 1;
}

[data-theme="dark"] .product-image-main {
  background: #e8e2d9;
}

[data-theme="dark"] .category-icon {
  background: #e8e2d9;
}

[data-theme="dark"] .brand-product-thumb {
  background: #e8e2d9;
}

[data-theme="dark"] .modal-img {
  background: #e8e2d9 !important;
}

[data-theme="dark"] .cart-item img,
[data-theme="dark"] .search-result img {
  background: #e8e2d9;
  border-radius: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Skip link === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--purple);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* === Header === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition), background var(--transition);
}

[data-theme="dark"] header {
  background: rgba(15,14,13,.92);
}

header.scrolled {
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--purple);
  transition: transform var(--transition);
}

.logo:hover svg { transform: rotate(-8deg) scale(1.05); }

/* Nav */
#nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

#nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition);
}

#nav a:hover, #nav a.active {
  color: var(--text);
  background: var(--gray-50);
}

.nav-chevron { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-dropdown-trigger:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-dropdown-trigger { position: relative; }
.nav-dropdown-trigger:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.nav-dropdown a:hover { background: var(--gray-50); }

.nav-dropdown-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  padding: 8px 12px 4px;
}

.nav-dropdown-sep {
  height: 1px;
  background: var(--border-light);
  margin: 6px 0;
}

.dd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dd-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 10px;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-toggle, .theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.search-toggle:hover, .theme-toggle:hover { background: var(--gray-50); }
.search-toggle svg, .theme-toggle svg { width: 20px; height: 20px; }

.theme-toggle .sun-icon { display: block; }
.theme-toggle .moon-icon { display: none; }
[data-theme="dark"] .theme-toggle .sun-icon { display: none; }
[data-theme="dark"] .theme-toggle .moon-icon { display: block; }

.cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.cart-btn:hover { background: var(--gray-50); }
.cart-btn svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--purple);
  color: white;
  font-size: 10px;
  font-weight: 800;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transform: scale(0);
  transition: transform var(--transition);
}

.cart-badge.show { transform: scale(1); }

/* Hamburger */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Search Overlay === */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.search-overlay.open { opacity: 1; visibility: visible; }

.search-overlay-inner {
  max-width: 640px;
  margin: 80px auto 0;
  padding: 0 20px;
}

.search-overlay-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
}

.search-overlay-input-wrap svg { width: 24px; height: 24px; color: var(--text-light); flex-shrink: 0; }

.search-overlay-input-wrap input {
  flex: 1;
  border: none;
  background: none;
  font-size: 18px;
  outline: none;
  color: var(--text);
}

.search-overlay-input-wrap input::placeholder { color: var(--text-light); }

.search-close {
  width: 32px;
  height: 32px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition);
}

.search-close:hover { background: var(--gray-100); color: var(--text); }

.search-results {
  margin-top: 12px;
  max-height: 60vh;
  overflow-y: auto;
  border-radius: var(--radius);
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  transition: all var(--transition);
}

.search-result:hover { background: var(--gray-50); }
.search-result img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); }
.search-result-info { flex: 1; }
.search-result-info strong { font-size: 14px; display: block; }
.search-result-info span { font-size: 12px; color: var(--text-muted); }
.search-result .price { font-weight: 700; font-size: 14px; color: var(--purple); white-space: nowrap; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 2px 8px rgba(201,169,110,.25);
}

.btn-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 4px 16px rgba(201,169,110,.35);
  transform: translateY(-1px);
}

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

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

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 75% 50%, rgba(201,169,110,.1) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(184,133,106,.06) 0%, transparent 60%);
  z-index: 0;
}

[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 100% at 75% 50%, rgba(201,169,110,.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(184,133,106,.04) 0%, transparent 60%);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--purple);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-accent {
  background: linear-gradient(135deg, var(--purple), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero .btn { font-size: 15px; padding: 14px 32px; }

/* Hero product — single featured product, clean presentation */
.hero-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-product-ring {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5f0ea, #ebe4d9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 40px rgba(201,169,110,.15),
    0 0 0 1px rgba(201,169,110,.08);
  animation: heroFloat 6s ease-in-out infinite;
}

[data-theme="dark"] .hero-product-ring {
  background: linear-gradient(145deg, #2c2825, #232019);
  box-shadow:
    0 8px 40px rgba(0,0,0,.3),
    0 0 0 1px rgba(201,169,110,.1);
}

.hero-img-main {
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.1));
}

[data-theme="dark"] .hero-img-main {
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
}

.hero-product-label {
  text-align: center;
  margin-top: 20px;
}

.hero-product-label strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.hero-product-label span {
  font-size: 13px;
  color: var(--text-muted);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* === USP Bar === */
.usp-bar {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-alt);
  padding: 14px 0;
}

.usp-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.usp-item svg { color: var(--purple); flex-shrink: 0; }

/* === Section headers === */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.section-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
  transition: all var(--transition);
}

.section-link:hover { gap: 4px; }

/* === Category cards === */
.categories-section { padding: 80px 0; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color);
  transform: scaleX(0);
  transition: transform var(--transition);
}

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

.category-card:hover::before { transform: scaleX(1); }

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.category-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.category-card p { font-size: 13px; color: var(--text-muted); }

.category-arrow {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 18px;
  color: var(--text-light);
  transition: all var(--transition);
}

.category-card:hover .category-arrow { color: var(--cat-color); transform: translateX(4px); }

/* === Product Grid & Cards === */
.products-section { padding: 80px 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

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

.product-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-50);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .product-overlay { opacity: 1; }

.quick-view-btn {
  padding: 10px 20px;
  background: white;
  color: var(--gray-800);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transform: translateY(8px);
  transition: all var(--transition);
}

.product-card:hover .quick-view-btn { transform: translateY(0); }

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tag-populair { background: var(--purple); color: white; }
.tag-nieuw { background: var(--teal); color: white; }
.tag-uitdaging { background: var(--pink); color: white; }
.tag-voordelig { background: var(--orange); color: white; }

.product-info { padding: 16px; }

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.product-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--purple);
}

.product-brand-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  transition: all var(--transition);
}

.product-brand-link:hover { opacity: .8; }

.product-difficulty {
  display: flex;
  gap: 3px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: background var(--transition);
}

.dot.filled { background: var(--purple); }

.product-info h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-info h3 a { transition: color var(--transition); }
.product-info h3 a:hover { color: var(--purple); }

.product-desc-short {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-weight: 900;
  font-size: 18px;
  color: var(--text);
}

.price .cents {
  font-size: 13px;
  vertical-align: super;
  font-weight: 700;
}

.price-lg { font-size: 28px; }
.price-lg .cents { font-size: 18px; }

.add-to-cart-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  transition: all var(--transition);
  flex-shrink: 0;
}

.add-to-cart-btn:hover { background: var(--purple-dark); transform: scale(1.1); }

/* === Quiz CTA === */
.quiz-cta {
  padding: 80px 0;
  background: var(--bg-alt);
}

.quiz-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.quiz-cta-content h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.quiz-cta-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.quiz-levels {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.quiz-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  min-width: 80px;
  animation: quizLevelPulse 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

.quiz-level-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--purple);
}

.quiz-level-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

@keyframes quizLevelPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* === Brand cards === */
.brands-section { padding: 80px 0; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  border-top: 3px solid var(--brand-color, var(--purple));
}

.brand-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.brand-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.brand-header h3 { font-size: 20px; font-weight: 900; }

.brand-country {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 50px;
}

.brand-card > p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.brand-products-preview {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-products-preview img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  padding: 4px;
  border: 1px solid var(--border-light);
}

.brand-count {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* === Testimonials === */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

.rating-summary {
  font-size: 14px;
  color: var(--text-muted);
}

.stars { color: #f5b731; margin-right: 4px; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
}

.testimonial-stars {
  color: #f5b731;
  font-size: 14px;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--text-muted); }

/* === Page Hero === */
.page-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-alt);
}

.page-hero h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-hero > .container > p {
  font-size: 16px;
  color: var(--text-muted);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb svg { width: 12px; height: 12px; color: var(--text-light); }
.breadcrumb span { color: var(--text); font-weight: 600; }

/* Brand meta */
.brand-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.brand-meta span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
}

/* === Shop Page === */
.shop-section { padding: 40px 0 80px; }

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.shop-filters {
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filter-header h3 { font-size: 16px; font-weight: 800; }

.filter-reset {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  cursor: pointer;
  transition: opacity var(--transition);
}

.filter-reset:hover { opacity: .7; }

.filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.filter-group:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h4 { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }

.filter-options { display: flex; flex-direction: column; gap: 6px; }

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.filter-checkbox input { display: none; }

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.filter-checkbox input:checked + .checkmark {
  background: var(--check-color, var(--purple));
  border-color: var(--check-color, var(--purple));
}

.filter-checkbox input:checked + .checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.filter-checkbox small { margin-left: auto; color: var(--text-light); font-size: 11px; }

/* Difficulty filter */
.difficulty-filter {
  display: flex;
  gap: 4px;
}

.diff-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}

.diff-btn:hover { border-color: var(--purple); color: var(--purple); }
.diff-btn.active { background: var(--purple); border-color: var(--purple); color: white; }

.diff-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

/* Price range */
.price-range { position: relative; height: 40px; }

.price-range input[type="range"] {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  -webkit-appearance: none;
  background: none;
  pointer-events: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--purple);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}

.price-range input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* Shop toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.filter-toggle-mobile {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}

.product-count { font-size: 13px; color: var(--text-muted); font-weight: 600; }

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

/* Active filters */
.active-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--purple-50);
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

[data-theme="dark"] .active-filter-tag { background: rgba(201,169,110,.15); }
.active-filter-tag:hover { background: var(--purple); color: white; }

.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.no-results svg { margin: 0 auto 16px; color: var(--text-light); }
.no-results h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.link-btn { color: var(--purple); font-weight: 700; text-decoration: underline; cursor: pointer; background: none; border: none; font: inherit; }

/* Filter apply mobile */
.filter-apply-mobile { display: none; width: 100%; margin-top: 16px; }

/* === Product Detail === */
.product-detail { padding: 40px 0 80px; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}

.product-detail-image {
  position: sticky;
  top: 80px;
}

.product-image-main {
  position: relative;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image-main img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.product-detail-info h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.product-difficulty-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.product-difficulty-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.product-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: var(--bg-card);
}

.spec-label { font-size: 11px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; }
.spec-value { font-size: 14px; font-weight: 700; }

.product-purchase {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

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

.product-usps { display: flex; flex-direction: column; gap: 6px; }

.product-usp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.product-usp svg { color: var(--teal); flex-shrink: 0; }

.related-products { margin-top: 64px; }
.related-products h2 { font-size: 24px; font-weight: 900; margin-bottom: 24px; }

/* === Brands Detail (merken.html) === */
.brands-detail-section { padding: 40px 0 80px; }

.brand-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  border-top: 3px solid var(--brand-color);
}

.brand-detail-info h2 { font-size: 28px; font-weight: 900; margin-bottom: 8px; }

.brand-meta-inline {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.brand-meta-inline span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--gray-100);
  padding: 2px 10px;
  border-radius: 50px;
}

.brand-detail-info p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.brand-detail-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: start;
}

.brand-product-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.brand-product-thumb:hover { background: var(--gray-100); transform: translateY(-2px); }
.brand-product-thumb img { width: 80px; height: 80px; object-fit: contain; }
.brand-product-thumb span { font-size: 12px; font-weight: 700; text-align: center; }

/* === Quiz === */
.quiz-section { padding: 60px 0 80px; min-height: 80vh; }

.quiz-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.quiz-progress {
  height: 4px;
  background: var(--gray-100);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--orange));
  border-radius: 2px;
  transition: width .4s ease;
}

.quiz-progress-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  text-align: right;
  margin-bottom: 32px;
}

.quiz-question {
  display: none;
  animation: quizFadeIn .4s ease;
}

.quiz-question.active { display: block; }

@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.quiz-question > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.quiz-options { display: flex; flex-direction: column; gap: 10px; }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.quiz-option:hover {
  border-color: var(--purple);
  background: var(--purple-50);
}

[data-theme="dark"] .quiz-option:hover { background: rgba(201,169,110,.08); }

.quiz-option-icon { font-size: 28px; flex-shrink: 0; }
.quiz-option-label { font-size: 16px; font-weight: 800; display: block; }
.quiz-option-desc { font-size: 13px; color: var(--text-muted); display: block; margin-top: 2px; }

.quiz-results h2 {
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
}

.quiz-results-intro {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.quiz-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.quiz-restart {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* === Contact === */
.contact-section { padding: 40px 0 60px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.contact-form-wrap h2 { font-size: 24px; font-weight: 900; margin-bottom: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 14px;
  transition: border-color var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-info-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.contact-item svg { color: var(--purple); flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 14px; }
.contact-item span { font-size: 13px; color: var(--text-muted); }

/* === FAQ === */
.faq-section {
  padding: 60px 0 80px;
  background: var(--bg-alt);
}

.faq-section h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 24px;
  text-align: center;
}

.faq-grid { max-width: 720px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  gap: 12px;
}

.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--transition); color: var(--text-muted); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-item.open .faq-a { max-height: 300px; }

.faq-a p {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.faq-a a { color: var(--purple); font-weight: 700; }

/* === About === */
.about-section { padding: 40px 0 80px; }

.about-content { max-width: 800px; margin: 0 auto; }

.about-text { margin-bottom: 48px; }
.about-text h2 { font-size: 24px; font-weight: 900; margin-bottom: 16px; }
.about-text p { font-size: 15px; line-height: 1.8; color: var(--text-muted); margin-bottom: 12px; }

.about-values h2 { font-size: 24px; font-weight: 900; margin-bottom: 20px; }

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.value-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.value-icon { font-size: 32px; margin-bottom: 8px; display: block; }
.value-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.value-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* === Footer === */
footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
}

[data-theme="dark"] footer {
  background: #0a0908;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo { color: white; margin-bottom: 12px; display: inline-flex; }
.footer-brand .logo svg { fill: var(--purple); }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }

.footer-social { display: flex; gap: 8px; }

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  transition: all var(--transition);
}

.footer-social a:hover { background: var(--purple); }
.footer-social a svg { stroke: rgba(255,255,255,.6); }
.footer-social a:hover svg { stroke: white; }

footer h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.4);
  margin-bottom: 12px;
}

footer ul li { margin-bottom: 10px; }

footer ul a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

footer ul a:hover { color: white; }

/* Footer newsletter */
.footer-newsletter {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  margin-bottom: 28px;
  text-align: center;
}

.footer-newsletter h4 {
  font-size: 16px;
  color: white;
  text-transform: none;
  letter-spacing: 0;
}

.footer-newsletter p { font-size: 13px; margin-bottom: 16px; }

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
  color: white;
  font-size: 14px;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-form input:focus { outline: none; border-color: var(--purple); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

.payment-icons { display: flex; gap: 8px; }

.payment-icon {
  padding: 4px 8px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
}

/* === Back to top === */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 90;
}

.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--purple); color: white; border-color: var(--purple); }
.back-to-top svg { width: 20px; height: 20px; }

/* === Cart Sidebar === */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg);
  z-index: 111;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transition: right var(--transition);
}

.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.cart-header h3 { font-size: 18px; font-weight: 800; }

.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.cart-close:hover { background: var(--gray-100); }

.cart-items { flex: 1; overflow-y: auto; padding: 20px; }

.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

.cart-empty svg { margin: 0 auto 12px; color: var(--text-light); }
.cart-empty p { margin-bottom: 16px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item img { width: 64px; height: 64px; object-fit: contain; background: var(--gray-50); border-radius: var(--radius-sm); }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.cart-item-info .price { font-size: 14px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item-qty button { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cart-item-qty span { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }

.cart-footer { padding: 16px 20px; border-top: 1px solid var(--border-light); }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  margin-bottom: 12px;
}

.cart-total strong { font-size: 20px; font-weight: 900; }

/* === Toast === */
.toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--gray-800);
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 120;
  transition: bottom .4s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}

.toast.show { bottom: 90px; }

[data-theme="dark"] .toast { background: var(--gray-100); color: var(--text); }

.toast-icon svg { width: 20px; height: 20px; color: var(--teal); }
.toast-text strong { display: block; font-size: 14px; }
.toast-text span { font-size: 12px; opacity: .7; }

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 20px;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(.95);
  transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(0,0,0,.05);
  border-radius: 50%;
  z-index: 2;
  transition: background var(--transition);
}

.modal-close:hover { background: rgba(0,0,0,.1); }

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--gray-50);
  padding: 24px;
}

.modal-body { padding: 24px; overflow-y: auto; }
.modal-body h2 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.modal-body .desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

.modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-detail {
  font-size: 12px;
  padding: 6px 10px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.modal-detail strong { display: block; font-size: 10px; color: var(--text-light); text-transform: uppercase; margin-bottom: 2px; }

.modal-body .price { margin-bottom: 16px; }

.modal-actions { display: flex; gap: 8px; }
.modal-actions .btn { flex: 1; }

/* === Mobile nav === */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  z-index: 100;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition);
}

.mobile-nav-item.active { color: var(--purple); }
.mobile-nav-item:hover { color: var(--text); }

/* === Stock labels === */
.stock-label {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stock-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.stock-ok { color: var(--teal); }
.stock-ok::before { background: var(--teal); }
.stock-low { color: #d4915e; }
.stock-low::before { background: #d4915e; animation: stockPulse 1.5s ease-in-out infinite; }

@keyframes stockPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* === Difficulty card (product detail) === */
.difficulty-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--diff-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.difficulty-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.difficulty-card-level {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--diff-color);
  color: white;
  font-size: 18px;
  font-weight: 900;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.difficulty-card-header strong {
  font-size: 15px;
  display: block;
}

.difficulty-card-time {
  font-size: 12px;
  color: var(--text-muted);
}

.difficulty-card-dots {
  margin-left: auto;
  display: flex;
  gap: 3px;
}

.difficulty-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Sticky add-to-cart bar === */
.sticky-cart {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  z-index: 95;
  padding: 10px 0;
  transition: bottom var(--transition);
}

.sticky-cart.show { bottom: 0; }

.sticky-cart-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-cart-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-cart-info strong {
  font-size: 15px;
  font-weight: 800;
}

.sticky-cart-info .price { font-size: 16px; }

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-800);
  color: rgba(255,255,255,.8);
  padding: 16px 20px;
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
}

[data-theme="dark"] .cookie-banner {
  background: #1a1816;
  border-top: 1px solid var(--border);
}

.cookie-banner.show { display: flex; }

.cookie-banner p { margin: 0; }

.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn-sm { padding: 6px 14px; font-size: 12px; }

/* === 404 page === */
.error-page {
  padding: 100px 0;
  text-align: center;
}

.error-code {
  display: block;
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
}

.error-content p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-eyebrow { margin-left: auto; margin-right: auto; }
  .hero-product-ring { width: 240px; height: 240px; }
  .hero-img-main { width: 160px; height: 160px; }
  .hero-product { order: -1; margin-bottom: 8px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-detail-card { grid-template-columns: 1fr; }
  .quiz-cta-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { display: none; position: fixed; inset: 0; z-index: 120; border-radius: 0; overflow-y: auto; padding: 20px; }
  .shop-filters.open { display: block; }
  .filter-toggle-mobile { display: flex; }
  .filter-apply-mobile { display: block; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-detail-image { position: static; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  #nav { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--bg); padding: 20px; z-index: 99; overflow-y: auto; }
  #nav.open { display: block; }
  #nav ul { flex-direction: column; gap: 0; }
  #nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--border-light); border-radius: 0; }
  .nav-dropdown { display: none; }
  .hamburger { display: flex; }
  .search-toggle { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 12px; }
  .product-info h3 { font-size: 13px; }
  .product-desc-short { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { padding: 32px 0; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-product-ring { width: 200px; height: 200px; }
  .hero-img-main { width: 140px; height: 140px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .mobile-nav { display: flex; justify-content: space-around; }
  .back-to-top { bottom: 70px; }
  .toast.show { bottom: 80px; }
  .modal { grid-template-columns: 1fr; }
  .modal-img { height: 200px; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  footer { padding-bottom: 72px; }
  .section-header { flex-direction: column; gap: 4px; }
  .section-header h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero .btn { width: 100%; }
  .product-purchase { flex-direction: column; }
  .product-purchase .btn { width: 100%; }
  .quiz-options { gap: 8px; }
  .quiz-option { padding: 12px 14px; }
  .brand-grid { grid-template-columns: 1fr; }
}
