/*
  filters.css — composant Filtres catégorie
  Mobile : panneau plein écran ouvert via bouton (sort-bar). Desktop : colonne fixe.
*/
.filters {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: var(--color-cream);
  padding: var(--space-4) var(--container-pad) var(--space-6);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.filters.is-open {
  transform: translateY(0);
}

.filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2);
}

.filters__header h2 {
  margin: 0;
  font-size: var(--fs-h3);
}

.filters__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-brown-dark);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filters__close svg {
  width: 22px;
  height: 22px;
}

.filters__checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.filters__checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small);
  color: var(--color-brown-dark);
  cursor: pointer;
}

.filters__checklist input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-terracotta-deep);
}

.filters__checklist .count {
  color: var(--color-brown);
  font-size: var(--fs-xsmall);
}

.filters__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.filters__price-range {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.filters__price-range input[type="range"] {
  flex: 1;
  accent-color: var(--color-terracotta-deep);
}

.filters__actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  background: var(--color-cream);
}

.filters__active {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.filters__active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-cream-dark);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: 6px 10px 6px 12px;
  font-size: var(--fs-xsmall);
  color: var(--color-brown-dark);
}

.filters__active-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-brown);
  display: inline-flex;
}

.filters__active-chip svg {
  width: 14px;
  height: 14px;
}
