/* Barra de filtros estilizada para a página de produtos */
:root {
  --pd-bg: #ffffff;
  --pd-border: rgba(204,135,122,0.25);
  --pd-shadow: 0 8px 24px rgba(204,135,122,0.12);
  --pd-text: #222;
  --pd-muted: #6b6b6b;
  --pd-primary: #cc877a;
}

.produtos-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

.produtos-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 14px;
}

.produtos-titulo {
  font-family: Lora, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--pd-text);
  margin: 0;
}

.produtos-meta { display:flex; align-items:center; gap:12px; }
.resultado-count { color: var(--pd-muted); font-size: 0.95rem; }
.btn-clear { color: var(--pd-primary); text-decoration:none; font-weight:600; }
.btn-clear:hover { text-decoration: underline; }

.filters-bar {
  background: var(--pd-bg);
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  box-shadow: var(--pd-shadow);
  padding: 16px;
  margin: 8px 0 22px;
}

.filters-form { width: 100%; }
.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filter-field { display:flex; flex-direction: column; gap: 6px; }
.filter-field.grow { grid-column: span 2; }
.filter-field label { font-size: 0.85rem; color: var(--pd-muted); font-weight: 600; }

.control.select select,
.control.input-with-icon input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
  color: var(--pd-text);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.control.select select:focus,
.control.input-with-icon input:focus {
  border-color: var(--pd-primary);
  box-shadow: 0 0 0 3px rgba(204,135,122,0.18);
}

.input-with-icon { position: relative; }
.input-with-icon i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--pd-primary); font-size: 1rem; pointer-events: none;
}
.input-with-icon input { padding-left: 46px; }

.filter-actions { display:flex; align-items:center; gap:10px; justify-content:flex-end; }

.btn-apply {
  background: #1a1a1a; color:#fff; border:1px solid #000;
  padding: 10px 16px; border-radius: 8px; font-weight:600; cursor:pointer;
}
.btn-apply:hover { background:#333; }

.btn-reset { color:#e74c3c; text-decoration:none; font-weight:600; }
.btn-reset:hover { text-decoration:underline; }

/* Filtros ativos */
.active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0 18px;
}

.active-filters .label {
    color: var(--pd-muted);
    font-weight: 600;
    margin-right: 2px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f3f3;
    color: #222;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .88rem;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.chip:hover {
    background: #e9e9e9;
}

.chip.clear {
    background: transparent;
    border: none;
    color: var(--pd-muted);
    text-decoration: underline;
    padding: 0;
}
/* Responsivo */
@media (max-width: 1100px) {
  .filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-field.grow { grid-column: span 2; }
}
@media (max-width: 650px) {
  .produtos-container { padding: 0 12px 24px; }
  .filters-grid { grid-template-columns: 1fr; }
  .filter-actions { justify-content: stretch; }
  .btn-apply { width: 100%; }
}
