:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --border: #e2e5ea;
  --text: #1c2128;
  --text-muted: #667085;
  --accent: #2f6fed;
  --accent-soft: #eaf1ff;
  --green: #12805c;
  --green-soft: #e3f7ef;
  --red: #b42318;
  --red-soft: #fdeceb;
  --amber: #b54708;
  --amber-soft: #fef3e2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Utilitário genérico - !important pra sempre vencer qualquer "display"
   mais específico do componente (ex: .result-list usa display:flex). Bug
   real que aconteceu: existiam só ".ms-dropdown.hidden"/".detail-overlay.hidden"
   escopados, então dar classList.add("hidden") em #produto-list/#result-list
   não escondia nada visualmente (a classe ficava no elemento, sem efeito). */
.hidden { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
/* trava a rolagem de fundo enquanto qualquer modal está aberto - ver
   _atualizarTravaScrollBody() em common.js */
body.modal-aberto { overflow: hidden; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner {
  max-width: min(1680px, 96vw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ---------- Tabs ---------- */
.tabbar {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.tabbar-inner {
  max-width: min(1680px, 96vw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
}
.tab {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.status-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin: 4px 0 14px;
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.gerado-em {
  font-size: 11px;
  color: var(--text-muted);
}
.btn-status {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
}
.btn-status:hover { filter: brightness(0.96); }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.brand-mark {
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 13px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.search-wrap {
  flex: 1;
  position: relative;
  max-width: 640px;
}
.categoria-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.categoria-row .checkbox-label { padding: 0; }
#search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
#search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-count {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

/* ---------- Layout ---------- */
.layout {
  max-width: min(1680px, 96vw);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* ---------- Filters ---------- */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 116px;
}
.filters h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.filter-group {
  margin-bottom: 14px;
}
.filter-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.filter-group select {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}
.btn-clear {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  margin-top: 4px;
}
.btn-clear:hover { background: var(--bg); }

/* ---------- Checkbox filters ---------- */
.checkbox-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  padding: 4px 2px;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ---------- Multi-select (marca / forma farmacêutica) ---------- */
.ms {
  position: relative;
}
.ms-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}
.ms-chips:empty { margin-bottom: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 6px 3px 10px;
  border-radius: 999px;
}
.chip button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.7;
}
.chip button:hover { opacity: 1; }
.ms-input {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}
.ms-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.ms-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 10;
}
.ms-option {
  padding: 7px 10px;
  font-size: 13px;
  cursor: pointer;
}
.ms-option:hover, .ms-option.highlighted {
  background: var(--accent-soft);
  color: var(--accent);
}
.ms-empty {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Results ---------- */
.empty-state {
  color: var(--text-muted);
  padding: 60px 0;
  text-align: center;
  font-size: 14px;
}
.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
}
.card-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}
.badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-ativo { background: var(--green-soft); color: var(--green); }
.badge-inativo { background: var(--red-soft); color: var(--red); }
.badge-tarja { background: var(--amber-soft); color: var(--amber); }
.badge-neutral { background: var(--accent-soft); color: var(--accent); }

.card-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.pill {
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 6px;
}
.pill strong { color: var(--text); font-weight: 600; }

.card-apresentacao {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg);
  border-radius: 6px;
  padding: 6px 10px;
}

/* ---------- Tabelas de dados (resultado da Busca Detalhada e apresentações do produto) ---------- */
.data-table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.data-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tbody tr {
  cursor: pointer;
}
.data-table tbody tr:hover {
  background: var(--bg);
}
.data-table td.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.pagination button {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.pagination button.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ---------- Detail modal (Busca Rápida e apresentação individual) ---------- */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  /* 65, acima do select-modal-overlay (60) - precisa aparecer por cima
     quando aberto como prévia (o "olhinho") de dentro do modal de
     seleção manual, não só como uso isolado (Busca Rápida). */
  z-index: 65;
  padding: 24px;
}
.detail-panel {
  background: var(--surface);
  width: min(640px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.25);
}
/* Linha no topo do modal com o botão Apagar (quando existe) e o X, lado a
   lado à direita - pedido do usuário: "o botão de apagar coloca ao lado
   do X". `position: sticky` (não mais fluxo normal nem absolute) pra ficar
   sempre visível conforme o conteúdo do modal rola pra baixo (pedido do
   usuário: "os X são fixos, não somem"); `top`/`margin`/`padding`
   negativos compensam o padding do `.detail-panel` (28px) pra grudar
   exatamente na borda de cima em vez de sobrar um respiro - se o padding
   do `.detail-panel` mudar, esses valores têm que acompanhar. */
.detail-topbar {
  position: sticky;
  top: -28px;
  margin: -28px -28px 8px;
  padding: 14px 28px 8px;
  background: var(--surface);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.detail-close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--red);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.detail-close:hover { opacity: 0.75; transform: scale(1.15); }

/* Só o botão Apagar mora aqui agora, ao lado do X (ver `.detail-topbar`
   acima) - editar marca virou um lápis inline junto do próprio campo
   "Marca" (ver `.btn-editar-marca`), não fica mais no rodapé. */
.detail-footer { display: flex; align-items: center; }

/* Lápis pra editar marca, ao lado do valor da marca em qualquer tela de
   detalhe (produto standalone OU modal - a mesma renderização é
   compartilhada, ver renderProdutoSaudeHtml etc. em common.js) - pedido
   do usuário: editar "ali", sem precisar navegar pra outro lugar. */
.btn-editar-marca {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
  margin-left: 4px;
  opacity: 0.6;
}
.btn-editar-marca:hover { opacity: 1; }

.marca-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  margin-bottom: 16px;
}
.marca-input:focus { outline: none; border-color: var(--accent); }

.btn-perigo {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-perigo:hover { opacity: 0.85; }

/* ---------- Modal de confirmação pequeno e centralizado ---------- */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70; /* acima do detail-overlay (65), pro fluxo de Apagar+confirmar */
  padding: 24px;
}
.confirm-panel {
  background: var(--surface);
  width: min(360px, 100%);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.3);
  text-align: center;
}
.confirm-mensagem {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.5;
}
.confirm-botoes {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Modal de progresso - pedido do usuário: barra "bonita e profissional"
   mostrando X de Y e porcentagem enquanto a planilha processa (a
   resposta agora vem em stream, um evento de progresso por linha
   processada - ver /api/preenchimento/processar em app.py). Reaproveita
   o mesmo `.confirm-overlay`/`.confirm-panel` (centralizado, pequeno),
   sem os botões de Cancelar/Confirmar. */
.progresso-panel { width: min(420px, 100%); }
.progresso-titulo {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
}
.progresso-barra-fundo {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 12px;
}
.progresso-barra {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #7aa8ff);
  transition: width 0.25s ease;
}
.progresso-texto {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.detail-body h3 {
  font-size: 19px;
  margin: 0 0 2px;
}
.detail-body .detail-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.detail-section {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.aviso-dados {
  background: var(--amber-soft);
  color: var(--amber);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.status-fonte-row {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.status-fonte-nome {
  font-weight: 600;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-bottom: 10px;
}
.status-fonte-row .badge { margin-top: 6px; display: inline-block; }
.detail-section h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 16px;
}
.detail-field { font-size: 13px; }
.detail-field .k { color: var(--text-muted); font-size: 11px; display: block; }
.detail-field .v { font-weight: 500; }

/* ---------- Página dedicada de produto (Busca Detalhada) ---------- */
.brand-link { text-decoration: none; }
.btn-voltar {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}
.btn-voltar:hover { background: var(--bg); color: var(--text); }
.produto-page {
  max-width: min(1100px, 92vw);
  margin: 28px auto;
  padding: 0 24px;
}
.produto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.produto-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
.produto-card h1, .produto-card-top h3 {
  font-size: 22px;
  margin: 0 0 2px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- Preencher Registro ---------- */
.preencher-page {
  max-width: min(1400px, 94vw);
  margin: 28px auto;
  padding: 0 24px;
}
.preencher-page h1 {
  font-size: 22px;
  margin: 0 0 4px;
}
.preencher-page > .detail-sub {
  margin-bottom: 20px;
}
.preencher-page .produto-card {
  margin-bottom: 18px;
}
.preencher-page .produto-card h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.form-favorita, .form-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.form-favorita select, .form-favorita input, .form-upload input {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}
.form-favorita select { flex: 0 0 auto; }
.form-favorita input { flex: 1 1 180px; }
.chip-favorita {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
}
.chip-favorita .chip-categoria {
  color: var(--text-muted);
  font-weight: 400;
}
.chip-favorita button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.7;
}
.chip-favorita button:hover { opacity: 1; }
.previa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.previa-top h4 { margin: 0; }
.previa-top-botoes {
  display: flex;
  gap: 8px;
}
#previa-tbody tr { cursor: pointer; }

/* ---------- Modal de seleção manual (Preencher Registro) ---------- */
.select-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
}
.select-modal {
  background: var(--surface);
  /* alargado a pedido do usuário pra caber a coluna Registro na tabela de
     resultados sem espremer as outras colunas */
  width: min(1440px, 96vw);
  height: min(820px, 92vh);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.select-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.select-modal-header h3 { margin: 0 0 2px; font-size: 18px; }
.select-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--red);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.select-modal-close:hover { opacity: 0.75; transform: scale(1.15); }
.select-modal-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  margin-top: 10px;
  flex-shrink: 0;
}
.select-modal-body {
  flex: 1;
  min-height: 0;
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
}
#select-modal-passo-produto, #select-modal-passo-apresentacao {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.select-modal-busca {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 10px;
  flex-shrink: 0;
}
.select-modal-busca:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.select-modal-filtros {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.select-modal-filtros .checkbox-label { padding: 0; }
.select-modal-results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-top: 0;
}
#select-modal-voltar-produto { margin-bottom: 10px; flex-shrink: 0; }
#select-modal-produto-info { flex-shrink: 0; }

.select-modal-paginacao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 10px;
}
.select-modal-tamanho-label {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.select-modal-tamanho-label select {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}
.select-modal-paginacao .pagination { margin-top: 0; justify-content: flex-end; }

/* Botão "olhinho" - abre a prévia de detalhe do registro daquela linha
   ANTES de escolher (pedido do usuário: "não precisar escolher o
   registro às cegas") - fica numa coluna própria, separado do clique na
   linha (que já seleciona/aplica direto) pra não confundir os dois
   gestos. */
.btn-olhinho {
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  color: var(--text-muted);
  display: inline-flex;
}
.btn-olhinho:hover { color: var(--accent); background: var(--accent-soft); }
/* Marca o olhinho clicado por último (pedido do usuário: "só pra ter uma
   ideia de qual foi que clicamos por último"), mesmo depois de fechar a
   prévia - ícone é SVG com `stroke="currentColor"` (não emoji, que
   ignora `color:` do CSS), então só trocar a cor do traço já pinta o
   olho inteiro, sem fundo/quadrado nenhum. */
.btn-olhinho.ativo { color: var(--red); }
.btn-olhinho.ativo:hover { color: var(--red); opacity: 0.8; }
.select-modal-results td.col-olhinho { width: 32px; text-align: center; padding: 4px; }

@media (max-width: 760px) {
  .select-modal { width: 100vw; height: 100vh; border-radius: 0; }
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}

@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 12px; }
  .search-wrap { max-width: none; width: 100%; }
  .card-top, .produto-card-top { flex-direction: column; }
  .produto-card { padding: 18px; }
}
