/* Paper Box Filtros — estilo discreto tipo listado */

.pbf-sidebar {
  --pbf-ink: #333333;
  --pbf-muted: #888888;
  --pbf-line: #e5e5e5;
  --pbf-accent: #444444;
  --pbf-track: #e0e0e0;
  --pbf-range: #666666;
  --pbf-font: inherit;

  box-sizing: border-box;
  width: 100%;
  max-width: 260px;
  font-family: var(--pbf-font);
  font-size: 13px;
  color: var(--pbf-ink);
  margin: 0 0 1rem;
  line-height: 1.35;
}

.pbf-sidebar *,
.pbf-sidebar *::before,
.pbf-sidebar *::after {
  box-sizing: border-box;
}

.pbf-form {
  margin: 0;
}

.pbf-head {
  margin: 0 0 4px;
  padding: 0;
}

.pbf-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pbf-ink);
  line-height: 1.3;
}

.pbf-panels {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--pbf-line);
}

.pbf-item {
  border-bottom: 1px solid var(--pbf-line);
  background: transparent;
}

.pbf-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--pbf-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  line-height: 1.3;
}

.pbf-item-head:hover {
  color: #000;
}

.pbf-chevron {
  position: relative;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  opacity: 0.55;
}

.pbf-chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  border-right: 1.25px solid currentColor;
  border-bottom: 1.25px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.15s ease;
}

.pbf-item.is-open .pbf-chevron::before {
  transform: rotate(225deg) translate(-1px, -1px);
}

.pbf-item-body {
  padding: 0 0 10px;
}

.pbf-item-body[hidden] {
  display: none;
}

.pbf-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow: auto;
}

.pbf-checks li + li {
  margin-top: 0;
}

.pbf-check {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--pbf-ink);
  line-height: 1.3;
}

.pbf-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pbf-check-box {
  width: 13px;
  height: 13px;
  border: 1px solid #c8c8c8;
  border-radius: 1px;
  background: #fff;
  position: relative;
}

.pbf-check input:checked + .pbf-check-box {
  border-color: var(--pbf-accent);
  background: var(--pbf-accent);
}

.pbf-check input:checked + .pbf-check-box::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 3px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.pbf-check-text {
  min-width: 0;
  word-break: break-word;
}

.pbf-count {
  color: var(--pbf-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.pbf-price {
  padding: 2px 0 0;
}

.pbf-price-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pbf-accent);
}

.pbf-slider {
  position: relative;
  height: 24px;
  margin: 0 2px;
}

.pbf-slider-track,
.pbf-slider-range {
  position: absolute;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
}

.pbf-slider-track {
  left: 0;
  right: 0;
  background: var(--pbf-track);
}

.pbf-slider-range {
  background: var(--pbf-range);
}

.pbf-slider-input {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  margin: 0;
  transform: translateY(-50%);
  appearance: none;
  background: transparent;
  pointer-events: none;
  height: 24px;
}

.pbf-slider-input::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--pbf-range);
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.pbf-slider-input::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--pbf-range);
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}

.pbf-slider-input::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
}

.pbf-slider-input::-moz-range-track {
  height: 3px;
  background: transparent;
  border: 0;
}

.pbf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
}

.pbf-apply {
  appearance: none;
  border: 1px solid var(--pbf-accent);
  background: transparent;
  color: var(--pbf-accent);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 7px 12px;
  cursor: pointer;
}

.pbf-apply:hover {
  background: var(--pbf-accent);
  color: #fff;
}

.pbf-clear {
  font-size: 12px;
  color: var(--pbf-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pbf-clear:hover {
  color: var(--pbf-ink);
}

@media (max-width: 782px) {
  .pbf-sidebar {
    max-width: none;
  }
}
