/* =========================================================
   TAHM FILTER BAR
   Row 1: categories (buttons)
   Row 2: selects (dropdowns) + reset
   ========================================================= */

.st-filter-bar {
  margin-bottom: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--tahm-line);
}

.st-filter-bar.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

.st-filter-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Row 1: categories full width */
.st-filter-group--cats {
  display: flex;
  align-items: center;
  width: 100%;
}

.st-filter-group--cats .st-filter-group__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

/* Row 2: wrapper for selects + reset */
.st-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.st-filter-row .st-filter-group {
  display: inline-flex;
}

/* Separator hidden */
.st-filter-separator {
  display: none;
}

/* Category buttons */
.st-filter-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--tahm-line);
  border-radius: 10px;
  background: #fff;
  color: var(--tahm-heading);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.st-filter-btn:hover {
  border-color: var(--tahm-blue);
  color: var(--tahm-blue-dark);
}

.st-filter-btn.is-active {
  background: var(--tahm-blue);
  border-color: var(--tahm-blue);
  color: #fff;
}

/* Selects */
.st-filter-select {
  min-height: 38px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--tahm-line);
  border-radius: 10px;
  background: #fff;
  color: var(--tahm-heading);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-width: 150px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23494949' stroke-width='1.8' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.st-filter-select:focus {
  outline: none;
  border-color: var(--tahm-blue);
  box-shadow: 0 0 0 4px rgba(1, 150, 242, 0.12);
}

.st-filter-select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Reset link */
.st-filter-reset {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--tahm-muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.st-filter-reset:hover {
  color: #d00;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {
  .st-filter-bar__inner { gap: 10px; }

  .st-filter-group--cats .st-filter-group__options {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .st-filter-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .st-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .st-filter-row .st-filter-reset {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .st-filter-select {
    min-height: 36px;
    font-size: 13px;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .st-filter-row {
    grid-template-columns: 1fr;
  }
}