/* Filters op de collectiepagina */
.collection_wrapper { padding-top: 40px; }

/* Statustabs + sortering */
.cf_top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cf_tabs { display: flex; gap: 4px; background: #111; padding: 4px; }
.cf_tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; color: #bdbdbd; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .3px; }
.cf_tab span { background: #2a2a2a; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.cf_tab:hover { color: #fff; text-decoration: none; }
.cf_tab.active { background: #DC0303; color: #fff; }
.cf_tab.active span { background: rgba(0, 0, 0, .25); }
.cf_sort { display: flex; align-items: center; gap: 10px; }
.cf_sort label { color: #8a8a8a; font-size: 13px; margin: 0; text-transform: uppercase; }

/* Velden */
.cf_select, .cf_input {
  width: 100%; height: 46px; background: #111; color: #fff; border: 1px solid #333; border-radius: 0; padding: 0 12px; font-size: 15px;
  -webkit-appearance: none; appearance: none;
}
.cf_select {
  padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23bdbdbd' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.cf_select:focus, .cf_input:focus { outline: none; border-color: #DC0303; box-shadow: 0 0 0 0.15rem rgb(220 3 3 / .35); }
.cf_select option { background: #111; }
.cf_sort .cf_select { width: auto; min-width: 250px; }

.cf_panel { display: grid; grid-template-columns: 2fr repeat(3, 1fr) 1.6fr 1fr 1fr; gap: 12px; background: #161616; padding: 18px; border-top: 3px solid #DC0303; }
.cf_field label { display: block; color: #8a8a8a; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; font-family: Montserrat, sans-serif; }
.cf_search { position: relative; }
.cf_search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #777; }
.cf_search .cf_input { padding-left: 38px; }
.cf_pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cf_actions { display: flex; align-items: flex-end; gap: 12px; }
.cf_apply { height: 46px; padding: 0 18px; background: #DC0303; color: #fff; border: 0; font-family: Montserrat, sans-serif; font-weight: 700; text-transform: uppercase; cursor: pointer; }
/* Met JavaScript passen filters op desktop meteen toe: knop overbodig */
@media (min-width: 768px) { .cf_panel.has-js .cf_actions { display: none; } }

/* Resultaten en actieve filters */
.cf_summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 22px; color: #fff; }
.cf_summary strong { font-family: Montserrat, sans-serif; margin-right: 8px; }
.cf_chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: #2a2a2a; color: #fff; font-size: 13px; }
.cf_chip span { color: #DC0303; font-size: 16px; line-height: 1; }
.cf_chip:hover { background: #3a3a3a; color: #fff; text-decoration: none; }
.cf_clear { color: #bdbdbd; font-size: 13px; text-decoration: underline; margin-left: 4px; }
.cf_clear:hover { color: #fff; }

.cf_empty { text-align: center; padding: 60px 20px; color: #bdbdbd; }
.cf_empty i { font-size: 40px; color: #DC0303; margin-bottom: 16px; }
.cf_empty h2 { color: #fff; font-family: Montserrat, sans-serif; font-size: 24px; }
.cf_empty .btn { margin: 14px 6px 0; }
.cf_more { color: #bdbdbd; text-align: center; margin: 10px 0 30px; }
.cf_more a { color: #fff; text-decoration: underline; }

/* Knop voor het filterpaneel (enkel mobiel) */
.cf_toggle { display: none; }


@media (max-width: 1199px) {
  .cf_panel { grid-template-columns: repeat(4, 1fr); }
  .cf_field--search { grid-column: span 2; }
}
@media (max-width: 767px) {
  .cf_top { flex-direction: column; align-items: stretch; }
  .cf_tabs { width: 100%; }
  .cf_tab { flex: 1; justify-content: center; padding: 10px 6px; font-size: 12px; }
  .cf_sort .cf_select { min-width: 0; flex: 1; }
  .cf_toggle {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; margin-bottom: 12px;
    background: #DC0303; color: #fff; border: 0; font-family: Montserrat, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  }
  .cf_panel { display: none; grid-template-columns: 1fr; }
  .cf_panel.open { display: grid; }
  .cf_field--search { grid-column: auto; }
  .cf_actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
  .cf_apply { width: 100%; height: 48px; background: #DC0303; color: #fff; border: 0; font-family: Montserrat, sans-serif; font-weight: 700; text-transform: uppercase; }
  .cf_clear_link { color: #bdbdbd; text-decoration: underline; font-size: 14px; }
}
