/* ============================================================
   Mokken Filter - Stylesheet v1.0.4
   Stijl gebaseerd op mokkenbedrukken.nl keuzehulp
   ============================================================ */

:root {
  --mf-accent:        #0077b6;
  --mf-accent-dark:  #0055aa;
  --mf-green:         #4caf50;
  --mf-bg:            #ffffff;
  --mf-surface:       #f5f5f5;
  --mf-border:        #e0e0e0;
  --mf-text:          #1a1a1a;
  --mf-text-muted:    #666666;
  --mf-radius:        6px;
  --mf-transition:    .18s ease;
  --mf-sidebar-width: 260px;
}

/* ============================================================
   Tweekoloms layout
   ============================================================ */
.mokken-layout-wrap {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}

.mokken-sidebar {
  flex: 0 0 var(--mf-sidebar-width);
  width: var(--mf-sidebar-width);
}

.mokken-content {
  flex: 1 1 0;
  min-width: 0;
}

.mokken-content div#secondary {
  width: 0;
}

.mokken-content div#primary {
  width: 100%;
  padding-left: 30px;
}

/* ============================================================
   Filterformulier
   ============================================================ */
.mokken-filter-wrap {
  font-family: inherit;
  font-size: 14px;
  color: var(--mf-text);
  line-height: 1.6;
  padding: 10px;
  background: var(--mf-bg);
}

/* -- Secties ------------------------------------------------ */
.mf-section {
  padding: 0px;
}
.mf-section:first-child { padding-top: 0; }
.mf-section:last-of-type { border-bottom: none; }

/* -- Sectiekoppen (blauw, zoals "Prijs per stuk", "Kleur") -- */
.mf-label {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mf-accent);
  margin-bottom: 10px;
	  border-bottom: 1px solid var(--mf-border);
	padding: 0px 0px 4px 0px;
}
.mf-label svg { display: none; }

/* -- Collapsible toggle (ook blauw, met groene bol) -------- */
.mf-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--mf-border);
  padding: 9px 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mf-text);
  cursor: pointer;
  text-align: left;
  margin-bottom: 0;
}
.mf-toggle::before {
  display: none;
}
.mf-toggle .mf-chevron {
  margin-left: auto;
  color: var(--mf-text-muted);
  transition: transform var(--mf-transition);
}
.mf-toggle[aria-expanded="false"] .mf-chevron { transform: rotate(-90deg); }
.mf-toggle > svg:first-child { display: none; }

.mf-collapsible { padding: 0; border-bottom: none; }
.mf-collapsible-body { padding: 10px 0 4px 5px; }
.mf-collapsible-body.mf-collapsed { display: none; }

/* Subitems in uitklaplijst */
.mf-collapsible-body .mf-checklist {
  list-style: none;
  margin: 0; padding: 0;
}
.mf-collapsible-body .mf-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--mf-text);
  cursor: pointer;
}
.mf-collapsible-body .mf-checklist li::before {
  display: none;
}
.mf-collapsible-body .mf-checklist li input:checked ~ span {
  font-weight: 600;
}
/* Toon echte checkbox in collapsible lijsten */
.mf-collapsible-body .mf-checkbox-row input[type="checkbox"] { display: none; }
.mf-collapsible-body .mf-checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #bbb;
  flex-shrink: 0;
  background: #fff;
  transition: border-color var(--mf-transition), background var(--mf-transition);
}
.mf-collapsible-body .mf-checkbox-row input:checked + .mf-checkmark,
.mf-collapsible-body .mf-checkbox-row input:checked ~ .mf-checkmark {
  background: var(--mf-accent);
  border-color: var(--mf-accent);
}
.mf-collapsible-body .mf-checkbox-row input:checked + .mf-checkmark::after,
.mf-collapsible-body .mf-checkbox-row input:checked ~ .mf-checkmark::after {
  content: '';
  display: block;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

/* -- Zoekbalk ----------------------------------------------- */
.mf-search-section .mf-label { display: none; }
.mf-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 11px;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius);
  font-size: 13px;
  background: var(--mf-surface);
  color: var(--mf-text);
  outline: none;
  transition: border-color var(--mf-transition);
}
.mf-search-input:focus { border-color: var(--mf-accent); }

/* -- Sortering ---------------------------------------------- */
.mf-select {
  width: 100%;
  padding: 8px 32px 8px 11px;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius);
  font-size: 13px;
  background: var(--mf-surface);
  color: var(--mf-text);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.mf-select:focus { border-color: var(--mf-accent); }

/* -- Range slider ------------------------------------------- */
.mf-price-display,
.mf-range-display {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--mf-text);
}
.mf-currency { color: var(--mf-text); }

.mf-range-wrap {
  position: relative;
  height: 20px;
  margin: 8px 0;
}
.mf-range {
  position: absolute;
  width: 100%;
  height: 4px;
  top: 8px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.mf-range-track {
  position: absolute;
  height: 4px;
  top: 8px;
  left: 0; right: 0;
  border-radius: 2px;
  background: #d3d3d3;
  pointer-events: none;
}
.mf-range-fill {
  position: absolute;
  height: 4px;
  top: 8px;
  border-radius: 2px;
  background: #0055aa;
  pointer-events: none;
}

/* -- Custom div-slider (hoogte / doorsnede) ------------------ */
.mf-ds-display {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--mf-text);
}
.mf-ds-wrap {
  position: relative;
  height: 18px;
  margin: 12px 8px;
  cursor: pointer;
  user-select: none;
}
.mf-ds-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  background: #d3d3d3;
  border-radius: 2px;
}
.mf-ds-fill {
  position: absolute;
  height: 100%;
  background: #0055aa;
  border-radius: 2px;
}
.mf-ds-thumb {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0055aa;
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 2;
}
.mf-ds-thumb:active { cursor: grabbing; }
.mf-ds-thumb:focus {
  outline: 2px solid var(--mf-accent);
  outline-offset: 2px;
}

/* -- Radio-stijl checkboxen --------------------------------- */
.mf-checklist {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.mf-checklist li { padding: 0; }

.mf-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  padding: 0px;
  color: var(--mf-text);
}
.mf-checkbox-row:hover { color: var(--mf-accent); }
.mf-checkbox-row input[type="checkbox"] { display: none; }

.mf-checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1.5px solid #bbb;
  flex-shrink: 0;
  background: #fff;
  transition: border-color var(--mf-transition), background var(--mf-transition);
}
.mf-checkbox-row input:checked + .mf-checkmark,
.mf-checkbox-row input:checked ~ .mf-checkmark {
  border-color: var(--mf-accent);
  background: var(--mf-accent);
}
.mf-checkbox-row input:checked + .mf-checkmark::after,
.mf-checkbox-row input:checked ~ .mf-checkmark::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.mf-term-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--mf-text-muted);
}

/* -- Kleur swatches ----------------------------------------- */
.mf-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mf-swatch-label input { display: none; }
.mf-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--mf-transition), border-color var(--mf-transition), box-shadow var(--mf-transition);
}
.mf-swatch:hover { transform: scale(1.1); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.mf-swatch-check { opacity: 0; transition: opacity var(--mf-transition); }
.mf-swatch-label input:checked + .mf-swatch {
  border-color: var(--mf-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mf-accent) 30%, transparent);
}
.mf-swatch-label input:checked + .mf-swatch .mf-swatch-check { opacity: 1; }

/* -- Pills (volume) ----------------------------------------- */
.mf-pill-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mf-pill-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
}
.mf-pill-label input { display: none; }
.mf-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mf-text);
  font-size: 14px;
}
.mf-pill::before {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid #bbb;
  background: #fff;
  flex-shrink: 0;
  transition: border-color var(--mf-transition), background var(--mf-transition);
}
.mf-pill-label input:checked + .mf-pill { font-weight: 600; color: var(--mf-accent); }
.mf-pill-label input:checked + .mf-pill::before {
  border-color: var(--mf-accent);
  background: var(--mf-accent);
  box-shadow: inset 0 0 0 3px #fff;
}

/* -- Op voorraad -------------------------------------------- */
.mf-section:has(#mf-in-stock) .mf-checkbox-row { padding: 0; }

/* -- Knoppen ------------------------------------------------ */
.mf-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
}
.mf-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--mf-radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--mf-transition);
}
.mf-btn-primary  { background: var(--mf-accent); color: #fff; }
.mf-btn-primary:hover  { background: var(--mf-accent-dark); }
.mf-btn-secondary { background: var(--mf-surface); color: var(--mf-text); border: 1px solid var(--mf-border); }
.mf-btn-secondary:hover { border-color: transparent;
    color: #fff;
    background: #0055aa;
}

/* -- Actieve filter tags ------------------------------------ */
.mf-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.mf-active-filters:empty { display: none; }
.mf-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: #e8f4fd;
  border: 1px solid #b3d9f0;
  border-radius: 20px;
  font-size: 12px;
  color: var(--mf-accent);
  font-weight: 500;
}
.mf-remove-tag { cursor: pointer; opacity: .6; }
.mf-remove-tag:hover { opacity: 1; }

/* -- Resultaatteller ---------------------------------------- */
.mf-result-count {
  font-size: 12px;
  color: var(--mf-text-muted);
  margin-top: 8px;
}

/* -- Spinner ------------------------------------------------ */
.mf-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid var(--mf-border);
  border-top-color: var(--mf-accent);
  border-radius: 50%;
  animation: mf-spin .7s linear infinite;
  margin: 8px auto 0;
}
.mf-spinner.active { display: block; }
@keyframes mf-spin { to { transform: rotate(360deg); } }

.mf-loading-overlay {
  opacity: .5;
  pointer-events: none;
  transition: opacity .3s;
}

/* ============================================================
   Mobiel
   ============================================================ */
@media (max-width: 768px) {
  .mokken-layout-wrap { flex-direction: column; gap: 20px; }
  .mokken-sidebar { width: 100%; }
  .mf-actions { flex-direction: row; }
}

/* -- Categoriemenu ------------------------------------------ */
.mf-cat-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mf-cat-menu-item {
  border-bottom: 1px solid var(--mf-border);
}
.mf-cat-menu-item:last-child {
  border-bottom: none;
}
.mf-cat-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--mf-text);
  text-decoration: none;
  transition: color var(--mf-transition);
}
.mf-cat-menu-link:hover {
  color: var(--mf-accent);
}
.mf-cat-menu-link.mf-cat-active {
  color: var(--mf-accent);
  font-weight: 700;
}
.mf-cat-menu-link .mf-term-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--mf-text-muted);
}
.mf-section button.mf-toggle:hover,.mf-section button.mf-toggle:focus {
    background: none;
    border-bottom: 1px solid var(--mf-border);
}
.mf-section button.mf-toggle {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--mf-accent);
}
.mf-cat-menu-item {
    border: 0px;
}
a.mf-cat-menu-link {
    padding: 3px 0px;
}

/* -- Dimensie sliders (hoogte / doorsnede) ------------------- */
.mf-range-display {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--mf-text);
}