/* === SIDEBAR RIGHT (Sort) === */
.sidebar.right {
  right: 0; left: auto;
  transform: translateX(100%);
  background-image: url('http://sancti.local/wp-content/uploads/2025/05/bg-visual-egmond.png');
  background-repeat: no-repeat;
  background-position: bottom left;
}
.sidebar.active.right { transform: translateX(0); }

/* === BASIS STRUCTUUR (zelfde als filter/menu) === */
.sidebar {
  position: fixed;
  top: 0; bottom: 0;
  width: 33%;
  background-color: #fff;
  z-index: 9999;          /* boven overlay (9998) */
  overflow-y: auto;
  transition: transform 0.3s ease;
  box-shadow: 0 0 15px rgba(0,0,0,.15);
  padding: 0;
}

/* === OVERLAY (dupliceer hier omdat CSS los geladen wordt) === */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}
#sidebar-overlay.active { display: block; }

/* === HEADER + CLOSE (zoals menu) === */
.sidebar-header {
  padding: 2rem;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  position: sticky;
  top: 0; z-index: 1;
  display: flex; 
  align-items: center; 
  justify-content: flex-start;
}

/* absolute X, net als .close-menu */
.sidebar-header .close-sort,
.sidebar-header .close-sidebar {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  font-size: 2rem; line-height: 1;
  padding: 0; cursor: pointer;
  color: var(--text-color);
  z-index: 10001;
}

.sidebar-header h2 {
  font-size: 1.5rem; font-weight: bold; margin: 0;
}

.sidebar-content { padding: 2rem; }

/* === RADIO === */
.sort-options input[type='radio']{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  width:18px;height:18px;border:2px solid var(--secondary-color);
  background:#fff;border-radius:4px;margin-right:.5rem;position:relative;
  cursor:pointer;transition:all .2s ease;
}
.sort-options input[type='radio']:checked{
  background:var(--primary-color); box-shadow:inset 0 0 0 3px #fff;
}

/* === LIJST === */
.sort-options{ list-style:none; padding-left:0; margin:1rem 0; }
.sort-options li{ margin:.5rem 0; }
.sort-options label{ cursor:pointer; display:flex; align-items:center; font-size:.95rem; color:var(--secondary-color); }

@media (max-width: 768px){ .sidebar{ width:100%; } }