/* GoldenRod Commerce Suite v25 — Archive Filters Bar */

.grcs-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 20px;
  background: var(--grcs-surface, #14171c);
  border: 1px solid var(--grcs-border, rgba(212,175,55,.24));
  border-radius: 10px;
  margin-bottom: 24px;
}

.grcs-filters-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 160px;
}

.grcs-filters-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--grcs-text-muted, #cbb98a);
}

/* ── Inputs & selects ── */
.grcs-filters-input,
.grcs-filters-select {
  background: var(--grcs-bg, #060606);
  border: 1px solid var(--grcs-border, rgba(212,175,55,.24));
  border-radius: 6px;
  color: var(--grcs-text, #f5e7b8);
  font-size: .88rem;
  padding: 8px 10px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.grcs-filters-input:focus,
.grcs-filters-select:focus {
  border-color: var(--grcs-border-s, rgba(224,184,78,.48));
  box-shadow: 0 0 0 3px rgba(212,175,55,.10);
}
.grcs-filters-select option { background: #14171c; }

/* ── Price range row ── */
.grcs-filters-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.grcs-filters-price-sep {
  color: var(--grcs-text-muted, #cbb98a);
  font-size: .8rem;
  flex-shrink: 0;
}
.grcs-filters-price-row .grcs-filters-input { flex: 1; }

/* ── Checkbox toggles ── */
.grcs-filters-check-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end;
}
.grcs-filters-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--grcs-text, #f5e7b8);
  user-select: none;
}
.grcs-filters-check input[type="checkbox"] {
  appearance: none;
  width: 16px; height: 16px;
  background: var(--grcs-bg, #060606);
  border: 1px solid var(--grcs-border-s, rgba(224,184,78,.48));
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background .12s ease;
}
.grcs-filters-check input[type="checkbox"]:checked {
  background: var(--grcs-gold, #d4af37);
  border-color: var(--grcs-gold, #d4af37);
}
.grcs-filters-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 4px; height: 8px;
  border: 2px solid #060606;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* ── Buttons ── */
.grcs-filters-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}
.grcs-filters-submit,
.grcs-filters-reset {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .14s ease, color .14s ease;
  white-space: nowrap;
}
.grcs-filters-submit {
  background: var(--grcs-gold, #d4af37);
  color: #060606;
}
.grcs-filters-submit:hover { background: var(--grcs-gold-2, #e0b84e); }

.grcs-filters-reset {
  background: transparent;
  color: var(--grcs-text-muted, #cbb98a);
  border: 1px solid var(--grcs-border, rgba(212,175,55,.24));
}
.grcs-filters-reset:hover {
  color: var(--grcs-text, #f5e7b8);
  border-color: var(--grcs-border-s, rgba(224,184,78,.48));
}

/* ── Active filter pills ── */
.grcs-filters-active {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.grcs-filters-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,175,55,.12);
  border: 1px solid var(--grcs-border-s, rgba(224,184,78,.48));
  border-radius: 20px;
  padding: 4px 10px;
  font-size: .78rem;
  color: var(--grcs-gold-soft, #f5e7b8);
}
.grcs-filters-pill-remove {
  cursor: pointer;
  color: var(--grcs-text-muted, #cbb98a);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}
.grcs-filters-pill-remove:hover { color: #e05252; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .grcs-filters-bar { flex-direction: column; }
  .grcs-filters-group { flex: 1 1 100%; }
  .grcs-filters-actions { width: 100%; justify-content: flex-end; }
}
