/* Sidebar Filters */
.filters-sidebar {
  background: #f5f5f5;
  color: #111;
  padding: 1.5rem;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  position: sticky;
  top: 90px;
  min-width: 260px;
}
.filters-sidebar h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000;
}
.accordion-item { border-bottom: 1px solid #e2e2e2; padding: 0.35rem 0; }
.accordion-button {
  width: 100%;
  background: none;
  border: none;
  padding: 0.65rem 0;
  font-weight: 700;
  color: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.accordion-body { padding: 0 0 0.75rem 0; display: none; }
.accordion-body.open { display: block; }
.filters-sidebar label { display: block; color: #333; margin-bottom: 0.35rem; cursor: pointer; }
.filters-sidebar input[type="checkbox"] { margin-right: 0.5rem; }
.price-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.35rem;
  align-items: center;
}
.price-range input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #111;
}
.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.4rem;
}
.size-grid label {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  cursor: pointer;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f9f9f9;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.size-grid label:hover { border-color: #111; background: #fff; }
.size-grid input { margin: 0; }
.filter-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.75rem; }
.btn-apply {
  background: #111;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.btn-apply:hover { opacity: 0.9; }
.btn-reset { color: #555; text-decoration: underline; }
.btn-reset:hover { color: #111; }

@media (max-width: 991px) { .filters-sidebar { position: static; margin-bottom: 1rem; } }

/* Mobile filter drawer */
.filter-drawer {
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  overflow: hidden;
}
.filter-drawer .offcanvas-header {
  border-bottom: 1px solid #e5e5e5;
}
.filter-drawer-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem 1.1rem;
  background: #fff;
  border-top: 1px solid #e5e5e5;
}
@media (max-width: 991px) {
  .filters-sidebar { display: none; }
}
