.filter-container {
  margin: 1rem 0;
}

.filter-toggle {
  display: none;
  background: none;
  color: #fff;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #333;
}

.filter-group select,
.filter-group input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fafafa;
}

.price-range div {
  display: flex;
  align-items: center;
  justify-content: space-between;

}
.price-range input {
  width: 45%;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.filter-actions button {
  background: none;
  color: #ed143d;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.filter-actions a {
  color: #555;

  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .filter-toggle {
    display: block;
  }
  .filter-form {
    display: none;
    grid-template-columns: 1fr;
  }
  .filter-form.open {
    display: grid;
  }
  .filter-container{
    margin: 0;
    padding: 0 1rem;
  }
  .filter-toggle{
    margin: 0;
    padding: 0;
  }
}
