/**
 * UltraHogar Plus – Estilos del panel de filtros avanzados.
 */

/* ── Panel contenedor ─────────────────────────────────────────────────── */
.uhp-filters-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.uhp-filters-toggle {
  display: none;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 14px;
  border: 1px solid #0073aa;
  border-radius: 4px;
  background: #fff;
  color: #0073aa;
  font-weight: 700;
  cursor: pointer;
}

/* ── Sección de filtro ────────────────────────────────────────────────── */
.uhp-filter-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.uhp-filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
}

.uhp-filter-title {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}

/* ── Select de ordenamiento ───────────────────────────────────────────── */
.uhp-filter-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  background: #fafafa;
  cursor: pointer;
}

.uhp-filter-select:focus {
  outline: none;
  border-color: #0073aa;
}

/* ── Rango de precio ──────────────────────────────────────────────────── */
.uhp-price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uhp-price-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  min-width: 0;
}

.uhp-price-input:focus {
  outline: none;
  border-color: #0073aa;
}

.uhp-price-range span {
  color: #999;
  font-weight: 600;
}

/* ── Checkboxes y radio buttons ───────────────────────────────────────── */
.uhp-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #444;
  padding: 3px 0;
  line-height: 1.4;
}

.uhp-checkbox-label input[type="checkbox"],
.uhp-checkbox-label input[type="radio"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #0073aa;
}

.uhp-checkbox-label:hover {
  color: #0073aa;
}

/* ── Lista de categorías ──────────────────────────────────────────────── */
.uhp-category-list,
.uhp-attribute-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Botones de acción ────────────────────────────────────────────────── */
.uhp-filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.uhp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.uhp-btn--primary {
  background: #0073aa;
  color: #fff;
}

.uhp-btn--primary:hover {
  background: #005a87;
  color: #fff;
}

.uhp-btn--secondary {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
}

.uhp-btn--secondary:hover {
  background: #e8e8e8;
  color: #333;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .uhp-filters-toggle {
    display: block;
  }

  .uhp-filters-panel {
    display: none;
    padding: 12px;
  }

  .uhp-filters-panel.uhp-filters-open {
    display: block;
  }

  .uhp-filter-actions {
    flex-direction: column;
  }
}
