/*!
 * voorraad-filter.css — Bella Motori
 *
 * Alles is voorafgegaan door .vf zodat het niets van je bestaande
 * stylesheet kan overschrijven. Kleuren staan als variabelen bovenaan;
 * pas die aan en de rest volgt.
 */

.vf {
  --vf-ink: #000;
  --vf-paper: #fff;
  --vf-grigio: #e8e9e5;
  --vf-grigio-deep: #dcded8;
  --vf-line: #d2d3ce;
  --vf-muted: #5b5c58;
  --vf-rosso: #c4161c;

  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 0 2rem;
  padding: .9rem 0;
  background: var(--vf-grigio);
  border-top: 1px solid var(--vf-grigio-deep);
  border-bottom: 1px solid var(--vf-grigio-deep);
  font-variant-numeric: tabular-nums;
}

/* Laat de balk over de volle breedte lopen terwijl de inhoud
   binnen je normale kolom blijft. Weghalen als je dat niet wilt. */
.vf__fields,
.vf__status {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3.5vw, 2.25rem);
}

.vf__fields {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
}

.vf__group {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
}

.vf__group--range {
  align-items: center;
}

.vf__label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--vf-muted);
}

.vf__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.vf__chip {
  font: inherit;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--vf-ink);
  padding: .3rem .7rem;
  border: 1px solid var(--vf-grigio-deep);
  background: rgba(255, 255, 255, .6);
  border-radius: 1px;
  cursor: pointer;
}

.vf__chip:hover {
  border-color: var(--vf-muted);
}

.vf__chip[aria-pressed="true"] {
  background: var(--vf-ink);
  color: var(--vf-paper);
  border-color: var(--vf-ink);
}

.vf__group--range input[type="range"] {
  width: 130px;
  accent-color: var(--vf-rosso);
}

.vf__out {
  font-size: .8125rem;
  font-weight: 600;
  min-width: 5.2rem;
}

.vf__status {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: .85rem;
  padding-top: .8rem;
  font-size: .8125rem;
}

/* De scheidingslijn hoort bij de volle breedte, niet bij de kolom. */
.vf__status {
  border-top: 1px solid var(--vf-grigio-deep);
}

.vf__count {
  margin: 0;
  font-weight: 600;
}

.vf__count span {
  color: var(--vf-muted);
  font-weight: 400;
}

.vf__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.vf__reset {
  font: inherit;
  font-size: .8125rem;
  color: var(--vf-muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vf__sort {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.vf__sort select {
  font: inherit;
  font-size: .8125rem;
  color: var(--vf-ink);
  padding: .3rem 1.6rem .3rem .5rem;
  border: 1px solid var(--vf-grigio-deep);
  background-color: rgba(255, 255, 255, .7);
  border-radius: 1px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--vf-ink) 50%),
    linear-gradient(135deg, var(--vf-ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.vf :focus-visible,
.vf__chip:focus-visible {
  outline: 2px solid var(--vf-rosso);
  outline-offset: 2px;
}

/* Belangrijk: grid- en flexkinderen negeren het hidden-attribuut
   zonder deze regel. */
[data-auto][hidden] {
  display: none !important;
}

.vf__leeg {
  max-width: 60ch;
  margin: 0 0 2rem;
  padding: 2rem;
  background: #e8e9e5;
}

.vf__leeg h2 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.vf__leeg p {
  margin: 0 0 1rem;
  color: #5b5c58;
}

.vf__knop {
  display: inline-block;
  padding: .6rem 1.1rem;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
}

.vf__knop:hover {
  background: #c4161c;
  border-color: #c4161c;
}

@media (max-width: 640px) {
  .vf {
    position: static;
  }
  .vf__group--range input[type="range"] {
    width: 100%;
    flex: 1;
  }
}
