
.listing-hero { padding: calc(var(--nav-clear) + 30px) 0 30px; text-align: center; }
.listing-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 10px 0; }
.listing-hero p { color: var(--text-secondary); }
.listing-hero span#resultsTotal { color: var(--blue-300); font-family: var(--font-num); font-weight: 700; }

.listing { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; padding-bottom: 100px; }


.filters {
  position: sticky; top: calc(var(--nav-clear) + 16px);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filters__head h3 { font-size: 1.15rem; }
.filters__close { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.6rem; line-height: 1; }

.filter-group { padding-block: 18px; border-top: 1px solid var(--glass-border); }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group h4 { font-size: 0.92rem; margin-bottom: 14px; color: var(--text-primary); }

.price-range { position: relative; height: 30px; }
.price-range input[type="range"] {
  position: absolute; width: 100%; top: 10px; -webkit-appearance: none; appearance: none;
  background: transparent; pointer-events: none;
}
.price-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-500); border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4); cursor: pointer; margin-top: -8px;
}
.price-range input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: var(--glass-border); border-radius: 3px; }
.price-values { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--font-num); font-size: 0.8rem; color: var(--text-secondary); }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(255, 253, 247, 0.05); border: 1px solid var(--glass-border);
  font-size: 0.82rem; color: var(--text-secondary);
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--blue-300); color: var(--text-primary); }
.chip.is-active { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #FFFDF7; border-color: transparent; }

.swatch-list { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch-pick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; position: relative; transition: transform 0.25s var(--ease); }
.swatch-pick:hover { transform: scale(1.12); }
.swatch-pick.is-active { border-color: var(--white); box-shadow: 0 0 0 2px var(--blue-300); }

.check-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.9rem; color: var(--text-secondary); cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--blue-500); }

.filters__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }


.listing__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.listing__count { color: var(--text-secondary); font-size: 0.9rem; }
.listing__count strong { color: var(--text-primary); font-family: var(--font-num); }
#filtersOpenBtn { display: none; }
.sort-select {
  background: var(--glass-fill); border: 1px solid var(--glass-border); color: var(--text-primary);
  padding: 10px 16px; border-radius: var(--radius-pill); font-family: var(--font-body); font-size: 0.86rem;
}

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-chip { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: var(--radius-pill); background: rgba(48, 102, 153, 0.14); border: 1px solid rgba(48, 102, 153, 0.35); font-size: 0.78rem; color: var(--blue-300); }
.active-chip button { width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 253, 247, 0.12); border: none; color: var(--text-primary); font-size: 0.85rem; line-height: 1; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); display: flex; flex-direction: column; align-items: center; gap: 18px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 46px; }
.page-btn {
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--radius-pill);
  background: var(--glass-fill); border: 1px solid var(--glass-border); color: var(--text-primary);
  font-family: var(--font-num); font-weight: 600; transition: all 0.3s var(--ease);
}
.page-btn:hover:not(:disabled) { border-color: var(--blue-300); }
.page-btn.is-active { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); border-color: transparent; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.filters-backdrop { position: fixed; inset: 0; background: rgba(48, 102, 153, 0.6); backdrop-filter: blur(4px); z-index: 700; opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); }
.filters-backdrop.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 980px) {
  .listing { grid-template-columns: 1fr; }
  .filters {
    position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 800;
    width: min(320px, 86vw); max-height: none; border-radius: 0;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.4s var(--ease);
  }
  .filters::-webkit-scrollbar { width: 6px; }
  .filters::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }
  [dir="rtl"] .filters { transform: translateX(105%); }
  .filters.is-open { transform: translateX(0); }
  .filters__close { display: block; }
  #filtersOpenBtn { display: inline-flex; }
}

.listing-hero h1,
.listing-hero p,
.listing__count,
.empty-state p {
  color: var(--glass-fill);
}
.listing__count strong { color: var(--glass-fill); }