/* ==========================================================================
   VibraWake Webshop - Geavanceerde SEO & E-commerce Stylesheet
   Mobile-first, 100/100 Core Web Vitals Geoptimaliseerd, Geen layout shifts
   ========================================================================== */

:root {
  --color-primary: #0f172a;       /* Diep nachtblauw */
  --color-primary-light: #1e293b;
  --color-accent: #0284c7;        /* Rustgevend diepblauw / ochtendblauw */
  --color-accent-hover: #0369a1;
  --color-cta: #ea580c;           /* Duidelijke conversiekleur oranje */
  --color-cta-hover: #c2410c;
  --color-success: #16a34a;
  --color-text: #334155;
  --color-text-dark: #0f172a;
  --color-text-muted: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --color-card-bg: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

h1, h2, h3, h4 {
  color: var(--color-text-dark);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; }
p { margin-bottom: 1rem; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.top-bar {
  background-color: var(--color-primary);
  color: #f8fafc;
  font-size: 0.825rem;
  padding: 0.4rem 0;
  text-align: center;
}

.top-bar-inner {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.brand-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-dark);
}

.cart-count {
  background-color: var(--color-cta);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  font-weight: 700;
}

.mobile-menu-btn {
  display: inline-flex;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: #94a3b8;
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--color-cta);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg-alt);
  border-color: #cbd5e1;
}

.btn-bol {
  background-color: #0000a4;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 164, 0.25);
}

.btn-bol:hover {
  background-color: #000078;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* Badges & Trust */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: #e0f2fe;
  color: #0369a1;
  margin-bottom: 0.75rem;
}

.badge-success {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-bol {
  background-color: #e0e7ff;
  color: #0000a4;
  border: 1px solid #c7d2fe;
}

.trust-list {
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  color: var(--color-text-dark);
}

.trust-list svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* Product Hero Section */
.product-hero {
  padding: 2rem 0;
  background-color: #ffffff;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image-wrap {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-wrap img, .main-image-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.thumb-item {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-alt);
  cursor: pointer;
  padding: 0.25rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-item.active {
  border-color: var(--color-accent);
}

.product-details {
  display: flex;
  flex-direction: column;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem 0;
}

.price-current {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

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

.price-tax {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.usp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.usp-pill {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.buy-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.bol-alternative {
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Feature Sections */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
}

.section-header h2 {
  margin-top: 0;
}

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

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

.feature-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: #e0f2fe;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.compare-table th, .compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.compare-table th {
  background-color: var(--color-bg-alt);
  font-weight: 700;
  color: var(--color-text-dark);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .highlight-col {
  background-color: #f0fdf4;
  font-weight: 600;
}

/* Interactive Sound Showcase */
.sound-showcase {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  margin: 2.5rem 0;
}

.sound-showcase h3 {
  color: #ffffff;
  margin-top: 0;
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sound-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sound-btn:hover, .sound-btn.playing {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover {
  background-color: var(--color-bg-alt);
}

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

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
  background-color: #ffffff;
}

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

/* Knowledge Base Cards */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.article-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card h3 {
  margin-top: 0.5rem;
  font-size: 1.15rem;
}

.article-card a {
  text-decoration: none;
  color: var(--color-text-dark);
}

.article-card a:hover {
  color: var(--color-accent);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

/* Article Prose */
.article-prose {
  max-width: 760px;
  margin: 2.5rem auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-prose p {
  margin-bottom: 1.35rem;
}

.article-prose ul, .article-prose ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-prose li {
  margin-bottom: 0.5rem;
}

.article-cta-box {
  background-color: #eff6ff;
  border: 2px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}

.article-cta-box h3 {
  margin-top: 0;
  color: var(--color-primary);
}

/* Sticky Mobile Buy Bar */
.sticky-buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(120%);
  transition: transform 0.3s ease-in-out;
}

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

.sticky-info {
  display: flex;
  flex-direction: column;
}

.sticky-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.sticky-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-cta);
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-drawer-overlay.open {
  display: block;
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  z-index: 101;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}

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

.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.cart-body {
  padding: 1.25rem;
  flex-grow: 1;
  overflow-y: auto;
}

.cart-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem 0;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  font-size: 0.8rem;
}

/* Media Queries (Responsive) */
@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }
  
  .nav-links {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }

  .product-layout {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Responsive Homepage Hero Offer (Boven de vouw op mobiel & desktop) */
.hero-offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-offer-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
  }
  .hero-content-col {
    order: 1 !important;
  }
  .hero-gallery-col {
    order: 2 !important;
  }
}

@media (max-width: 600px) {
  .home-hero-offer {
    padding: 1rem 0 1.5rem 0 !important;
  }
  .home-hero-offer h1 {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  .home-hero-offer .main-image-wrap {
    max-height: 260px !important;
    padding: 0.5rem !important;
  }
  .home-hero-offer .usp-pills {
    margin-bottom: 0.75rem !important;
  }
}
