/* Basisstijl in lijn met plugandservice-achtige layout */
:root {
  --bg: #f5f6f8;
  --bg-alt: #ffffff;
  --primary: #1f6feb;
  --primary-soft: #e1edff;
  --accent: #ffb703;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --max-width: 1180px;
  --transition-fast: 0.15s ease-in-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.topbar {
  background: #0f172a;
  color: #e5e7eb;
  font-size: 0.8rem;
}
.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-inner a { color: #e5e7eb; }

.header-main {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.4rem; }
.brand-logo { height: 34px; width: auto; display: block; }

.main-nav {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.9rem;
}
.nav-link {
  color: var(--text-muted);
  padding: 0.35rem 0.1rem;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.header-actions {
  display: flex; align-items: center; gap: 0.4rem;
}

.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.btn-primary, .btn-secondary, .btn-ghost {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: #f3f4f6; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: #f9fafb; }
.btn-primary.small, .btn-secondary.small, .btn-ghost.small {
  padding-inline: 0.8rem;
  font-size: 0.8rem;
}
.btn-full { width: 100%; }

/* HERO */
.hero {
  background: radial-gradient(circle at top left, var(--primary-soft), #ffffff);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1rem 2.7rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: center;
}
.hero-text h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}
.hero-text p {
  margin: 0.3rem 0;
  max-width: 520px;
  color: var(--text-muted);
}
.hero-actions { margin-top: 1rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }

.hero-panel {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
}
.hero-panel h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.hero-panel ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

/* LAYOUT */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.8rem 1rem 3rem;
}
.section { margin-bottom: 2rem; }
.section-alt { margin-top: -0.5rem; }
.section-header h1, .section-header h2 {
  margin: 0;
}
.section-header p {
  margin: 0.3rem 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.section-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.filter-row {
  margin: 0.4rem 0 0.2rem;
}
.filter-row input {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.9rem;
}

/* PRODUCT GRID */
.product-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.product-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.product-card-body {
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.product-card h3 { margin: 0; font-size: 1rem; }
.product-card p { margin: 0; font-size: 0.86rem; color: var(--text-muted); }
.product-card .price { font-weight: 600; color: var(--text); margin-top: 0.2rem; }
.product-card-actions {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.btn-small { font-size: 0.8rem; padding: 0.42rem 0.7rem; }

.no-results {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* PRODUCT DETAIL */
.product-section { margin-top: 0.8rem; }
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr);
  gap: 1.6rem;
  align-items: flex-start;
}
.product-main-image img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  background: #e5e7eb;
}
.product-thumbs {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.product-thumbs img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  object-fit: cover;
  cursor: pointer;
}
.product-thumbs img.active {
  border-color: var(--primary);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.product-subtitle {
  color: var(--text-muted);
}
.product-price {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0.3rem 0;
}
.product-delivery {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-options {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
.form-group {
  margin-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.86rem;
}
.form-group label { font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
}
.form-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.small-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.usp-list {
  list-style: none;
  padding: 0;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.usp-list li { margin-bottom: 0.25rem; }

/* ACCORDION */
.accordion-wrapper {
  margin-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-header {
  width: 100%;
  text-align: left;
  padding: 0.7rem 0;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-header::after {
  content: "+";
}
.accordion-item.open .accordion-header::after {
  content: "–";
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.18s ease-out;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.accordion-item.open .accordion-body {
  padding-bottom: 0.7rem;
}

/* CHECKOUT */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-soft);
}
.cart-table th,
.cart-table td {
  padding: 0.6rem 0.7rem;
  font-size: 0.85rem;
  border-bottom: 1px solid #e5e7eb;
}
.cart-table th {
  text-align: left;
  background: #f9fafb;
}
.cart-table tr:last-child td {
  border-bottom: none;
}

.cart-qty-input {
  width: 90px;
}

.cart-remove-btn {
  border: none;
  background: transparent;
  color: #b91c1c;
  cursor: pointer;
  font-size: 0.8rem;
}

.checkout-sidebar {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  font-size: 0.9rem;
}
.checkout-total .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.checkout-total .row.total {
  font-weight: 600;
  margin-top: 0.3rem;
}

.stacked-form {
  margin-top: 0.7rem;
}

.divider {
  text-align: center;
  margin: 1rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.divider span {
  background: var(--bg-alt);
  padding: 0 0.5rem;
}

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.contact-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  background: #0f172a;
  color: #e5e7eb;
  margin-top: 2rem;
}
.footer.simple {
  background: transparent;
  color: var(--text-muted);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.3rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1rem;
}
.footer h3, .footer h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.footer p, .footer li {
  font-size: 0.85rem;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer a {
  color: inherit;
}
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  text-align: center;
  padding: 0.6rem 1rem 0.8rem;
  font-size: 0.8rem;
}

/* MISC */
.center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0,1fr);
  }
  .product-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .checkout-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .contact-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .main-nav {
    display: none;
  }
}


.product-card-image-link {
  display: block;
}
.product-card-image-link img {
  display: block;
}
.discount-code {
  margin-top: 0.75rem;
}
.discount-code-input {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.discount-code-input input {
  flex: 1;
}


/* Cookie banner in stijl van moderne SaaS-sites */
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  font-size: 0.85rem;
  line-height: 1.5;
  z-index: 9999;
}
.cookie-banner p {
  margin: 0 0 0.6rem 0;
}
.cookie-banner strong {
  font-weight: 600;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.cookie-actions a {
  font-size: 0.8rem;
  text-decoration: underline;
}
@media (min-width: 640px) {
  .cookie-banner {
    inset: auto 0 1.5rem 0;
  }
}
