:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --line: #d9e1ee;
  --text: #0d1a2d;
  --muted: #5f6f86;
  --brand: #0d4f99;
  --brand-soft: #ffffff;
  --accent: #f0a51a;
  --radius: 14px;
  --shadow: 0 20px 40px rgba(11, 23, 44, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.site-body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.mobile-call-bar {
  display: none;
}

.utility-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #103c71;
  color: #d8e8ff;
  font-size: 13px;
}

.utility-bar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.utility-bar a {
  color: #d8e8ff;
  text-decoration: none;
}

.utility-bar a:hover {
  text-decoration: underline;
}

.container {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 36px;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #d6deea;
}

.site-header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 17px;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-search input {
  border: 1px solid #c7d3e5;
  border-radius: 10px;
  padding: 10px 0;
  width: 0;
  min-width: 0;
  opacity: 0;
  font: inherit;
  pointer-events: none;
  border-color: transparent;
  transition: width 0.18s ease, opacity 0.18s ease, padding 0.18s ease;
}

.header-search.is-open input,
.header-search:focus-within input {
  width: 230px;
  padding: 10px 12px;
  opacity: 1;
  pointer-events: auto;
  border-color: #c7d3e5;
}

.header-search button {
  border: 1px solid #c7d3e5;
  border-radius: 10px;
  background: #fff;
  color: #3e516f;
  font-weight: 700;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
}

.header-search button:hover {
  border-color: #9db4d5;
}

.header-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 50px;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #c7d3e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(11, 23, 44, 0.16);
}

.header-search-results[hidden] {
  display: none;
}

.header-search-result,
.header-search-empty {
  display: block;
  padding: 11px 13px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.header-search-result + .header-search-result {
  border-top: 1px solid #edf2f8;
}

.header-search-result:hover,
.header-search-result:focus {
  background: var(--brand-soft);
  text-decoration: none;
}

.header-search-result strong {
  display: block;
  margin-bottom: 3px;
}

.header-search-result small,
.header-search-empty {
  color: var(--muted);
}

.header-call {
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.header-call:hover {
  text-decoration: underline;
}

.search-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #465a79;
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: #465a79;
  border-radius: 2px;
  right: -6px;
  bottom: -1px;
  transform: rotate(40deg);
}

.site-main {
  padding: 28px 0 40px;
}

.site-footer {
  border-top: 1px solid #dbe3ef;
  color: var(--muted);
  padding: 18px 0 26px;
}

.page-hero {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(11, 23, 44, 0.06);
  padding: 26px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.page-hero .intro {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.page-content {
  margin-top: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
}

.page-content h2 {
  margin: 0 0 10px;
}

.page-content .content {
  color: #34445b;
  line-height: 1.8;
}

.contact-map-block {
  margin-top: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.contact-map-block h2 {
  margin: 0 0 10px;
}

.contact-map-embed {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.contact-map-embed iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

.contact-map-image {
  margin: 12px 0 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.contact-map-image img {
  width: 100%;
  height: auto;
  display: block;
}

.node-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 18px;
}

.node-main {
  min-width: 0;
}

.grid-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
}

.image-browser {
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: start;
}

.image-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.image-thumb {
  appearance: none;
  border: 0;
  position: relative;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.image-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(13, 26, 45, 0.08);
  pointer-events: none;
  z-index: 3;
}

.image-thumb:hover {
  text-decoration: none;
}

.image-thumb.is-disabled {
  cursor: default;
  opacity: 0.72;
}

.image-thumb-index {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(16, 26, 45, 0.84);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  z-index: 4;
}

.image-thumb.is-active {
  box-shadow: 0 0 0 2px rgba(113, 2, 39, 0.22);
}

.image-thumb.is-active::after {
  box-shadow: inset 0 0 0 1px rgba(113, 2, 39, 0.5);
}

.image-thumb img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  display: block;
}

.image-link-grid .image-thumb-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.image-link-grid .image-thumb img {
  aspect-ratio: 1 / 1;
  height: auto;
}

.image-thumb-caption {
  display: block;
  padding: 7px 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.image-preview-panel {
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
  position: sticky;
  top: 110px;
}

.image-preview-panel figure {
  margin: 0;
}

.image-preview-main {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  background: #ffffff;
}

.image-preview-alt {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.example-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.example-image-card {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.example-image-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.catalog-menu {
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.catalog-menu h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.catalog-tree-nav ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.catalog-tree-nav .menu-level .menu-level {
  margin-left: 14px;
  padding-left: 10px;
}

.catalog-tree-nav .menu-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
}

.catalog-tree-nav a {
  color: #344863;
  text-decoration: none;
  line-height: 1.2;
}

.catalog-tree-item.is-active > .menu-row > a {
  color: var(--brand);
  font-weight: 700;
}

.menu-toggle,
.menu-toggle-placeholder {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  flex: 0 0 20px;
}

.menu-toggle {
  border: 1px solid #c7d3e5;
  background: #fff;
  color: #3e516f;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle:hover {
  border-color: #9db4d5;
}

.menu-children {
  display: none;
  padding-bottom: 4px;
}

.catalog-tree-item.is-expanded > .menu-children {
  display: block;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card {
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(15, 30, 57, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(15, 30, 57, 0.12);
}

.catalog-card-media {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  display: grid;
  place-items: center;
}

.catalog-card-media.no-image::after {
  content: "Geen afbeelding";
  color: #5d6e86;
  font-size: 13px;
}

.catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card-body {
  padding: 12px 12px 14px;
}

.catalog-card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
}

.catalog-card-body span {
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
}

.catalog-sidepanel {
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 18px;
  height: fit-content;
}

.catalog-sidepanel h3 {
  margin: 0 0 8px;
}

.catalog-sidepanel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-detail {
  display: grid;
  gap: 18px;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-gallery-browser .image-browser {
  grid-template-columns: 300px minmax(0, 1fr);
}

.product-gallery-browser .image-thumb img {
  aspect-ratio: 1 / 1;
  height: auto;
}

.product-info-row {
  display: grid;
  gap: 18px;
  align-items: start;
}

.product-info-row.has-specs {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
}

.product-info-row.no-specs {
  grid-template-columns: minmax(0, 1fr);
}

.product-content {
  margin: 0;
}

.product-image-card {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.product-image-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-image-fallback {
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  grid-column: 1 / -1;
}

.product-specs {
  border-radius: 12px;
  background: var(--surface);
  padding: 16px;
  height: fit-content;
}

.product-specs h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.product-specs dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.product-specs dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-specs dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.product-pros-cons {
  margin-top: 14px;
  padding-top: 12px;
  display: grid;
  gap: 12px;
}

.product-pros-cons h3 {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.product-pros-cons ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.product-pros-cons li {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  padding-left: 26px;
  position: relative;
}

.product-pros-cons li::before {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  left: 0;
  top: 2px;
  background-repeat: no-repeat;
  background-size: contain;
}

.product-pros-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%2316a34a'/%3E%3Cpath d='M5 9.4l2.4 2.5L13 6.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.product-cons-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpolygon points='6,1 12,1 17,6 17,12 12,17 6,17 1,12 1,6' fill='%23dc2626'/%3E%3Crect x='4.5' y='8' width='9' height='2' rx='1' fill='%23fff'/%3E%3C/svg%3E");
}

.search-panel,
.search-results {
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.search-panel {
  margin-bottom: 14px;
}

.search-panel h1 {
  margin-top: 0;
  margin-bottom: 8px;
}

.search-panel p {
  margin-top: 0;
  color: var(--muted);
}

.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-form input {
  flex: 1 1 280px;
  border: 1px solid #c8d3e5;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.search-form button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
}

.search-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.search-results-head h2 {
  margin: 0;
}

.search-results-head span {
  color: var(--muted);
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.search-list li {
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
}

.search-list a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.search-list small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.pager {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.pager a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.empty-state {
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  padding: 18px;
}

mark {
  background: #ffe88a;
  padding: 0 2px;
  border-radius: 3px;
}

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

@media (max-width: 1150px) {
  .node-layout {
    grid-template-columns: 1fr;
  }

  .grid-with-sidebar {
    grid-template-columns: 1fr;
  }

  .catalog-menu {
    position: static;
  }

  .product-detail {
    grid-column: auto;
  }

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

  .product-info-row.has-specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-body {
    padding-bottom: 64px;
  }

  .mobile-call-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: block;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    background: #15803d;
    color: #fff;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 -10px 24px rgba(11, 23, 44, 0.18);
  }

  .utility-bar-inner {
    justify-content: center;
    gap: 14px;
    padding: 6px 0;
  }

  .site-header {
    top: 48px;
  }

  .site-header-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .header-actions {
    justify-self: stretch;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .header-search {
    flex: 1 1 220px;
    justify-content: flex-end;
  }

  .header-search.is-open,
  .header-search:focus-within {
    flex-basis: 100%;
    order: 3;
  }

  .header-search input {
    width: 100%;
    flex: 1 1 auto;
  }

  .header-search:not(.is-open):not(:focus-within) {
    flex: 0 0 auto;
  }

  .header-search:not(.is-open):not(:focus-within) input {
    width: 0;
    flex: 0 0 0;
  }

  .header-search-results {
    left: 0;
    right: 0;
    width: 100%;
  }

  .header-call {
    font-size: 13px;
  }

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

  .image-thumb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .image-link-grid .image-thumb-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .example-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .utility-bar {
    font-size: 12px;
  }

  .site-header {
    top: 60px;
  }

  .container {
    width: calc(100vw - 20px);
  }

  .catalog-grid,
  .image-thumb-grid,
  .example-gallery,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .image-link-grid .image-thumb-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .image-preview-main {
    max-height: 380px;
  }

  .page-hero,
  .page-content,
  .contact-map-block,
  .search-panel,
  .search-results {
    padding: 14px;
  }

  .contact-map-embed iframe {
    min-height: 280px;
  }
}
