:root {
  --red: #c8002a;
  --blue: #004c97;
  --ink: #111;
  --muted: #555;
  --bg: #f8f9fa;
}

* { box-sizing: border-box; }
body {
  font-family: Tahoma, system-ui, sans-serif;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

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

.header-flex {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
}

.logo-img {
  height: 60px;
  width: auto;
}

.main-nav {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.main-nav a:hover {
  color: var(--red);
}
.main-nav a.pill {
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--blue);
}
.main-nav a.pill:hover {
  background: var(--blue);
  color: #fff;
}

.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  border-bottom: 4px solid #e6e6e6;
}
.hero h1 { font-size: 36px; margin-bottom: 12px; }
.hero p { font-size: 18px; opacity: 0.95; }

.btn {
  /* background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  transition: 0.2s; */
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--blue);

}
.btn:hover { background: var(--red); }

.btnindex {
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  transition: 0.2s;    
}
.btnindex:hover { background: var(--red); }

.cards, .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 40px 0;
}
.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.flash-wrap { margin: 16px 0; }
.flash { padding: 10px 14px; border-radius: 8px; }
.flash.success { background: #e8fff1; border: 1px solid #bdf1d0; }
.flash.error { background: #ffe8e8; border: 1px solid #f3bbbb; }

.site-footer {
  background: #fff;
  border-top: 2px solid var(--red);
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: var(--muted);
}
.footer-links a { color: var(--blue); text-decoration: none; margin: 0 6px; }
.footer-links a:hover { text-decoration: underline; }
/* --- Professioneel contactformulier --- */
.lead { color: var(--muted); margin-top: 6px; }
.form-pro .hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.form-pro .row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-pro .col { display: flex; flex-direction: column; gap: 8px; }
.form-pro label { font-weight: 600; }
.form-pro .req { color: var(--red); margin-left: 4px; }
.form-pro input, .form-pro textarea {
  width: 100%; padding: 12px 12px; border: 1px solid #cfd6df;
  border-radius: 10px; background: #fff; outline: none;
}
.form-pro input::placeholder, .form-pro textarea::placeholder { color: #9aa7b2; }
.form-pro input:focus, .form-pro textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,76,151,0.12);
}
.form-pro .hint { color: #6b7785; margin: 6px 2px 0; font-size: 13px; }
.form-pro .check { display: flex; align-items: left; gap: 10px; }
.form-pro .consent { margin-top: 4px; }
.form-pro .actions { margin-top: 8px; }
.form-pro .col-span { grid-column: 1 / -1; }

/* Responsieve 2-koloms lay-out */
@media (min-width: 800px) {
  .form-pro .row { grid-template-columns: repeat(2, 1fr); }
  .form-pro .col-span { grid-column: 1 / 3; }
}
.form-pro select{
  width:100%; padding:12px 12px; border:1px solid #cfd6df;
  border-radius:10px; background:#fff; outline:none;
}
.form-pro select:focus{
  border-color:var(--blue); box-shadow:0 0 0 3px rgba(0,76,151,0.12);
}

/* === Artikelen-grid (AVIM) === */
.artikelen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0;
  z-index: 0;
}

.artikel-card {
  background: var(--surface, #ffffff);
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.artikel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px var(--ring, rgba(23,120,200,0.35));
}

/* Container van de afbeelding */
.artikelen-grid .artikel-card .thumb {
  height: 100px !important;                /* vaste hoogte */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 4px;
  background: #f2f4f7;
  z-index: 1;
}

/* Afbeelding zelf */
.artikelen-grid .artikel-card .thumb img {
  height: 100px !important;                /* afdwingen 100px */
  width: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  transition: transform 0.4s ease, box-shadow 0.3 ease;
  z-index: 2;
}

/* Zoom bij hover */
.artikelen-grid .artikel-card .thumb:hover img {
  transform: scale(2.5);            /* 15% inzoomen */
  z-index: 10;
  cursor: zoom-in;
}

/* Tekstgedeelte */
.artikel-card .body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.artikel-card .titel {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.artikel-card .omschrijving {
  color: var(--muted, #5b6670);
  font-size: 14px;
  margin: 0;
}
.artikel-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  color: #3d4852;
  font-size: 13px;
}
.artikel-card .prijs {
  font-weight: 700;
  color: var(--primary, #1778C8);
}
.artikel-card .klantprijs {
  font-weight: 700;
  color: var(--primary, #17c86d);
}

.toolbar{ display:flex; gap:10px; align-items:center; margin:10px 0 14px; }
.toolbar .select{
  height:40px; padding:0 12px; border-radius:10px;
  border:1px solid #cfd6df; background:#fff; color:#111;
}
.toolbar .select:focus{
  outline:none; border-color:var(--primary,#1778C8);
  box-shadow:0 0 0 3px var(--ring,rgba(23,120,200,.35));
}
.notice{
  background:#eef6ff; border:1px solid #cde0ff;
  padding:10px 12px; border-radius:10px; margin:8px 0 14px;
}
/* Modal overlay */
.modal {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6);
  align-items:center; justify-content:center; z-index:200;
}
.modal.open { display:flex; }
.modal-content{
  background:#fff; color:#111; border-radius:12px; max-width:700px;
  width:90%; max-height:90vh; overflow:auto; padding:20px; position:relative;
}
.close-btn{
  position:absolute; top:10px; right:14px; border:none; background:none;
  font-size:26px; cursor:pointer; color:#666;
}
.art-main{ display:flex; gap:16px; align-items:flex-start; }
.art-main img{ max-height:120px; object-fit:contain; }
.art-main .info{ flex:1; }
.tabs{ display:flex; gap:6px; margin-top:20px; }
.tab{
  flex:1; padding:8px 0; background:#eee; border:none; border-radius:6px;
  cursor:pointer; font-weight:600;
}
.tab.active{ background:var(--primary,#1778C8); color:#fff; }
.info-table{ width:100%; border-collapse:collapse; margin-top:10px; }
.info-table th, .info-table td{ border:1px solid #ddd; padding:6px 8px; text-align:left; }

/* overzicht verbergen tijdens detailweergave */
.hidden {
  display: none !important;
}
/* --- Slider bovenin de modal --- */
.slider {
  position: relative;
  width: 100%;
  max-height: 250px;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f4f6;
  margin-bottom: 16px;
}

.slide {
  display: none;
  text-align: center;
}
.slide.active { display: block; }
.slide img {
  max-height: 250px;
  max-width: 100%;
  object-fit: contain;
}

.slider .prev,
.slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 50%;
}
.slider .prev:hover, .slider .next:hover {
  background: rgba(0,0,0,0.6);
}
.slider .prev { left: 10px; }
.slider .next { right: 10px; }
.tab-panels { margin-top: 12px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
/* Limiteer hoogte van tab-panel en maak scrollbar zichtbaar bij overflow */
.tab-panel {
  max-height: 150px;          /* maximale hoogte */
  overflow-y: auto;           /* verticale scroll als nodig */
  padding-right: 6px;         /* ruimte voor scrollbar */
  transition: max-height 0.3s ease;
}

/* Optioneel: kleine scrollbar-styling (voor modernere browsers) */
.tab-panel::-webkit-scrollbar {
  width: 8px;
}
.tab-panel::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.3);
  border-radius: 4px;
}
.tab-panel::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,0.5);
}

.slider-title {
    font-size: 24px;
    margin-bottom: 12px;
    color: #003366;
    font-weight: 600;
}

.product-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.product-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 220px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 12px;
    text-align: center;
    border-top: 4px solid #0055a5;
    transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
}

.product-card h4 {
    font-size: 15px;
    min-height: 15px;
    color: #003366;
    margin-top: 8px;
}

.product-card .price {
    color: #0055a5;
    font-weight: bold;
    margin: 6px 0;
}

.view-btn {
    display: inline-block;
    background: #003366;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: .2s;
}

.view-btn:hover {
    background: #0055a5;
}

.slider-btn {
    background: #003366;
    color: white;
    border: none;
    font-size: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    opacity: .9;
    transition: .2s;
}

.slider-btn:hover {
    opacity: 1;
}
