/* Shared filter UI (category pages) */
.search-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  position: relative;
}

.search-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.search-row .search {
  flex: 1;
  min-width: 0;
}

.btn-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-filter:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.btn-filter:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 2px rgba(210, 4, 45, 0.12);
}

.btn-filter[aria-expanded="true"] {
  background: #fff5f5;
  border-color: rgba(210, 4, 45, 0.35);
  color: var(--maroon);
}

.btn-filter.has-active-filters::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--maroon);
  flex-shrink: 0;
}

.filter-panel {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.filter-panel[hidden] {
  display: none !important;
}

.filter-panel-head {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.search-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  white-space: nowrap;
}

.search-filters input[type="number"] {
  width: 5.5rem;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: #fff;
  outline: none;
}

.search-filters input[type="number"]:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 2px rgba(210, 4, 45, 0.12);
}

.btn-clear-prices {
  margin-left: auto;
  padding: 6px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--maroon);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-clear-prices:hover {
  color: var(--maroon-hover);
}

.btn-clear-prices:focus {
  outline: 2px solid rgba(210, 4, 45, 0.35);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .search-row {
    flex-wrap: wrap;
  }

  .btn-filter {
    flex: 1;
    min-width: min(120px, 100%);
  }
}

