/* ============================================================
   catalogo.css — estilos compartilhados pelas páginas de consulta
   (ativo.html e marca.html). index.html permanece autocontido.
   Identidade: preto + laranja #FF6A1A, clean/minimalista.
   Mobile-first: uma coluna, expande em sm(640) md(768) lg(1024).
   ============================================================ */

/* ===== FONTE (self-hosted) =====
   Inter VARIÁVEL (400–800 num arquivo só), servida do próprio domínio.
   Antes vinha do fonts.googleapis.com: era CSS render-blocking de 3º domínio
   (DNS+TLS+RTT antes de qualquer pintura) e 5 arquivos estáticos, cada um
   chegando em momento diferente e forçando um relayout novo. Medido em 12/08
   com CPU 6x lento na home: Layout 350ms → 115ms, bloqueio do main thread
   270ms → 54ms só ao tirar o Google Fonts. Era o "congelamento de ~1s antes
   de conseguir rolar a página". Os 2 subsets cobrem latin + latin-ext. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fontes/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fontes/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --orange: #ff6a1a;
  --orange-hi: #ff8233;
  --orange-lo: #e85b0e;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --line: #2a2a2a;
  --line-soft: #e6e6e6;
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --muted: #6b6b6b;
  --ok: #16a34a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
img { max-width: 100%; }

/* ===== TOP BAR ===== */
.topbar {
  background: #000; color: #999; font-size: 11px;
  letter-spacing: .06em; border-bottom: 1px solid #1a1a1a;
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 7px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.topbar strong { color: var(--orange); font-weight: 700; }
.topbar .compliance { opacity: .65; display: none; font-size: 10px; }
@media (min-width: 768px) { .topbar .compliance { display: inline; } }

/* ===== HEADER ===== */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .nav {
  max-width: 1280px; margin: 0 auto;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
header.site .brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
header.site .brand .mark { height: 34px; width: auto; }
header.site .brand .tipo { height: 17px; width: auto; display: none; }
@media (min-width: 480px) { header.site .brand .tipo { display: block; } }
@media (min-width: 768px) { header.site .brand .mark { height: 40px; } header.site .brand .tipo { height: 20px; } }

header.site .search { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; }
header.site .search input {
  width: 100%;
  background: #1c1c1c; color: #fff;
  border: 1px solid #333; border-radius: 999px;
  padding: 9px 38px 9px 15px;
  font-size: 13px; font-family: inherit;
  transition: border-color .15s;
}
header.site .search input::placeholder { color: #777; }
header.site .search input:focus { outline: none; border-color: var(--orange); }
header.site .search svg {
  position: absolute; right: 13px; width: 15px; height: 15px; color: #777; pointer-events: none;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: #fff;
  padding: 9px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; flex-shrink: 0;
  transition: background .15s;
}
.back-btn:hover { background: var(--orange-hi); }
.back-btn .label { display: none; }
@media (min-width: 560px) { .back-btn .label { display: inline; } }

/* ----- BOTÃO VOLTAR das páginas internas (campanha, marca, ativo, indicacao) -----
   O seletor era posicional (`.brand + .back-btn`) porque o index.html tinha OUTRO
   `.back-btn` ("Princípios ativos"). Esse botão saiu do navbar em 10/08 e hoje o
   index não tem `.back-btn` nenhum — então o seletor voltou a ser por classe.
   Precisou mudar: em 11/08 a busca global entrou no header de `campanha.html`, entre a
   marca e o botão, e a regra posicional deixaria de casar justamente na página onde ele
   é o único caminho de volta.
   `margin-left: auto` joga pra direita. Rótulo visível em qualquer largura e alvo de
   44px: é o único caminho de volta dessas páginas, tem que ser óbvio. */
header.site .back-btn {
  margin-left: auto;
  padding: 11px 18px; gap: 8px; min-height: 44px;
  font-size: 13.5px; font-weight: 800;
}
header.site .back-btn .label { display: inline; }
header.site .back-btn svg { width: 18px; height: 18px; }
@media (min-width: 768px) { header.site .back-btn { padding: 12px 22px; font-size: 14.5px; } }

/* ===== CABEÇALHO DA PÁGINA ===== */
.pagehead {
  max-width: 1280px; margin: 0 auto;
  padding: 28px 20px 18px;
}
@media (min-width: 768px) { .pagehead { padding: 40px 24px 22px; } }
.pagehead .kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--orange); margin-bottom: 10px;
}
.pagehead .kicker .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}
.pagehead h1 {
  font-size: 27px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em;
}
@media (min-width: 768px) { .pagehead h1 { font-size: 40px; } }
.pagehead h1 .accent { color: var(--orange); }
.pagehead .classe {
  margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted);
}
.pagehead .sub { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 62ch; line-height: 1.55; }

.indic-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; align-items: center; }
.indic-row .lbl {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted); margin-right: 2px;
}
.indic-chip {
  font-size: 12.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink);
}

/* ===== FACETAS EXPANSÍVEIS =====
   Listas de faceta crescem sem teto (a EMS tem 248 marcas e 21 categorias).
   Capar a lista esconde estoque; empilhar tudo aberto estoura a tela.
   Solução: <details> fechado por padrão, com busca e scroll interno — nada é cortado. */
.facets {
  max-width: 1280px; margin: 0 auto;
  /* o bloco de filtro precisa respirar dos dois lados: sem folga embaixo,
     as facetas colavam na primeira fileira de cards */
  padding: 12px 16px 16px;
  display: grid; gap: 10px;
  grid-template-columns: 1fr;
  /* sem isto, abrir uma faceta estica as vizinhas fechadas e cria caixas vazias */
  align-items: start;
}
@media (min-width: 768px) { .facets { padding: 14px 24px 20px; grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .facets { grid-template-columns: repeat(3, 1fr); } }

.facet {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.facet > summary {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  transition: background .15s;
}
.facet > summary::-webkit-details-marker { display: none; }
.facet > summary:hover { background: var(--bg-soft); }
.facet .f-label {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted); flex-shrink: 0;
}
.facet .f-val {
  font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.facet .f-val.ativa { color: var(--orange); }
.facet .f-chev {
  width: 15px; height: 15px; flex-shrink: 0; color: var(--muted);
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}
.facet[open] > summary { border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); }
.facet[open] .f-chev { transform: rotate(180deg); }

.facet .f-body { padding: 10px 12px 12px; }
.facet .f-search {
  width: 100%; font-family: inherit; font-size: 13px;
  border: 1px solid var(--line-soft); border-radius: 9px;
  padding: 8px 12px; margin-bottom: 8px;
  transition: border-color .15s;
}
.facet .f-search:focus { outline: none; border-color: var(--orange); }
.facet .f-list {
  max-height: 240px; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid; gap: 2px;
}
.facet .f-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left;
  padding: 7px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  transition: background .12s;
}
.facet .f-opt:hover { background: var(--bg-soft); }
.facet .f-opt.on { background: var(--orange); color: #fff; }
.facet .f-opt .c { font-size: 11.5px; opacity: .6; font-weight: 700; flex-shrink: 0; }
.facet .f-opt.on .c { opacity: .85; }
.facet .f-vazio { padding: 10px; font-size: 12.5px; color: var(--muted); }

/* ===== BUSCA GLOBAL (painel de resultados) =====
   Vive sob o input do header, que é escuro — daí o painel claro com sombra forte. */
.af-busca-pop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  z-index: 60; max-height: min(62vh, 460px); overflow-y: auto;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(10,10,10,.28);
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.af-busca-pop[hidden] { display: none; }
.af-hit {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-bottom: 1px solid #f2f2f2;
  transition: background .12s;
}
.af-hit:last-of-type { border-bottom: 0; }
.af-hit:hover, .af-hit.on { background: #fff7f2; }
.af-hit .h-nome { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.af-hit .h-nome mark { background: #ffe0cc; color: var(--orange-lo); padding: 0 1px; border-radius: 3px; }
.af-hit .h-meta {
  font-size: 11px; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.af-mais {
  padding: 9px 14px; font-size: 11.5px; font-weight: 600; color: var(--muted);
  background: var(--bg-soft); border-top: 1px solid var(--line-soft);
  position: sticky; bottom: 0;
}
.af-mais strong { color: var(--ink); }
.af-vazio { padding: 16px 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.af-vazio span { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
/* Botão VOLTAR (12/08, pedido do operador): o comprador navega fundo — categoria →
   produto → ativo → indicação — e "Início" recomeça do zero a cada vez. Voltar = um
   passo atrás no histórico; em deep link (WhatsApp), sem histórico, cai na home. */
.btn-voltar {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: #eee;
  background: #232323; border: 1px solid #3a3a3a; border-radius: 999px;
  padding: 10px 14px; min-height: 40px; cursor: pointer; flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.btn-voltar:hover { background: #2e2e2e; border-color: var(--orange); }
.btn-voltar svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* resultado-categoria: destino mais largo que um produto, marcado com selo */
.af-hit-cat { background: #fffaf6; }
.af-hit-cat .h-badge {
  display: inline-block; margin-right: 7px; padding: 2px 7px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  background: var(--orange); color: #fff; vertical-align: 1px;
}

/* ===== SEÇÕES DE PRODUTO ===== */
.sec { max-width: 1280px; margin: 0 auto; padding: 0 16px 8px; }
@media (min-width: 768px) { .sec { padding: 0 24px 10px; } }
.sec-head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 26px 0 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
}
.sec-head h2 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
@media (min-width: 768px) { .sec-head h2 { font-size: 18px; } }
.sec-head .n {
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--bg-soft); padding: 2px 9px; border-radius: 999px;
}
.sec-head .hint { font-size: 12px; color: var(--muted); margin-left: auto; display: none; }
@media (min-width: 768px) { .sec-head .hint { display: block; } }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(5, 1fr); } }

/* ===== CARD ===== */
.card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex; flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: #d0d0d0; box-shadow: 0 8px 24px rgba(0,0,0,.07); transform: translateY(-2px); }
.card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.card .thumb {
  aspect-ratio: 1; background: #fff;
  display: grid; place-items: center; overflow: hidden;
}
.card .thumb img {
  width: 100%; height: 100%; object-fit: contain; padding: 16px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.card:hover .thumb img { transform: scale(1.06); }
.thumb-empty { width: 100%; height: 100%; display: grid; place-items: center; color: #d4d4d4; }
.thumb-empty svg { width: 44px; height: 44px; stroke-width: 1.2; fill: none; stroke: currentColor; }
.card .body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
@media (min-width: 640px) { .card .body { padding: 14px 15px 16px; } }
.card .brand-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--orange); font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card .name {
  font-size: 12.5px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 640px) { .card .name { font-size: 13.5px; } }
.card .meta { font-size: 10.5px; color: var(--muted); font-weight: 600; }
@media (min-width: 640px) { .card .meta { font-size: 11.5px; } }

/* Preço: só existe no DOM quando `price > 0` (ver catalogo.js §PREÇO). `margin-top:auto`
   ancora no pé do card mesmo quando o nome ocupa 1 linha em vez de 2 — numa grade de
   ofertas os preços têm que ficar na mesma linha de leitura de card pra card. */
.card .card-preco {
  margin-top: auto; padding-top: 6px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  line-height: 1.1;
}
.card .card-preco .pr {
  font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
}
@media (min-width: 640px) { .card .card-preco .pr { font-size: 16.5px; } }
/* o "de" vem ACIMA e riscado: lido antes do preço final, ele dá a régua de comparação;
   embaixo, viraria rodapé que ninguém associa ao número de cima */
.card .card-preco .de {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-decoration: line-through; text-decoration-thickness: 1.5px;
}
@media (min-width: 640px) { .card .card-preco .de { font-size: 11.5px; } }
/* condição da faixa de quantidade, ABAIXO do preço: o preço da escada só existe a partir de
   um lote mínimo, e número sem condição lê como preço unitário livre. Discreto de propósito,
   quem compara cards compara o preço; quem vai pedir precisa do mínimo. */
.card .card-preco .pr-min {
  font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em;
}

/* ----- FAIXA DE DESCONTO (topo do card, ACIMA da foto) -----
   Pedido do operador 10/08: a etiqueta sai de fora do card (era ".card-selo — Oferta do
   dia", irmão acima) e vira uma barra no topo do próprio card, com o percentual.
   Barra de largura cheia em vez de pílula solta: o card tem `overflow:hidden`, então ela
   encosta nos cantos arredondados e lê como parte do card, não como adesivo colado. */
/* ABSOLUTA, não em fluxo: em fluxo ela empurrava a foto pra baixo só nos cards que TÊM
   desconto, e numa fileira mista (oferta com desconto ao lado de item sem) as fotos ficavam
   em alturas diferentes — grade irregular. Absoluta, todos os cards têm a mesma geometria e
   a barra ocupa a faixa de padding branco do topo do thumb, sem tapar o produto. */
.card .card-topo {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  background: var(--orange); color: #fff;
  padding: 5px 10px; text-align: center;
}
.card .card-topo .tag-desc {
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 640px) { .card .card-topo .tag-desc { font-size: 11.5px; } }
/* com a barra no topo, o badge Genérico/Similar desce pra não colidir com ela */
.card .card-topo ~ .badge-tipo { top: 32px; }
/* e a foto recua o mesmo tanto, pra embalagem não passar por baixo da barra */
.card .card-topo ~ .thumb img { padding-top: 30px; }

.fi-preco { font-weight: 800; color: var(--ink); }
.fi-preco .fi-min {
  font-weight: 700; font-size: 12.5px; color: var(--muted); margin-left: 6px;
}
.fi-preco .fi-de {
  font-weight: 700; color: var(--muted); text-decoration: line-through; margin-left: 6px;
}
.fi-preco .fi-off {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em;
}

/* ----- FAIXA DE PRÉVIA (preços de demonstração) -----
   Só existe quando `precos-demo.json` foi aplicado (localhost ou ?demo=1). Fica no topo do
   documento, em fluxo (não fixed): tem que sair no print, senão a captura da prévia circula
   como se fosse preço real da American. */
#af-previa {
  background: #7a1f00; color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  text-align: center; padding: 7px 14px; line-height: 1.35;
}
.badge-tipo {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--muted);
}
.badge-tipo.t-generico   { background: #e8f5ee; color: #17794a; }
.badge-tipo.t-referencia { background: #fff1e6; color: #b4530f; }
.badge-tipo.t-similar    { background: #eef2fb; color: #3a5699; }

.empty-state {
  padding: 60px 20px; text-align: center; color: var(--muted);
  max-width: 1280px; margin: 0 auto;
}
.empty-state strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 5px; }

/* ===== OVERLAY + FICHA ===== */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
}
.sheet[hidden] { display: none; }
.sheet-card {
  position: relative; background: #fff;
  width: 100%; max-height: 92vh;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0,0,0,.28);
  transform: translateY(101%);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  pointer-events: auto;
  display: flex; flex-direction: column; overflow: hidden;
}
.sheet.open .sheet-card { transform: translateY(0); }
@media (min-width: 768px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet-card {
    max-width: 720px; border-radius: 20px; max-height: 88vh;
    transform: translateY(16px) scale(.97); opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
  }
  .sheet.open .sheet-card { transform: translateY(0) scale(1); opacity: 1; }
}
.sheet-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center; z-index: 2; transition: background .15s;
}
.sheet-close:hover { background: #ececec; }
.sheet-close svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.fi-top { display: grid; gap: 16px; padding: 20px; }
@media (min-width: 560px) { .fi-top { grid-template-columns: 190px 1fr; padding: 24px; } }
.fi-img {
  background: var(--bg-soft); border-radius: 14px; aspect-ratio: 1;
  display: grid; place-items: center; overflow: hidden;
}
.fi-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.fi-img .thumb-empty svg { width: 40px; height: 40px; }
.fi-head .kick {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--orange); margin-bottom: 6px;
}
/* rótulo em cinza antes do nome do laboratório: sem ele o valor sozinho podia ser lido
   como o nome do produto (a ficha mostrava "YASMIN" cru acima do título) */
.fi-head .kick .kick-lbl {
  color: var(--muted); font-weight: 700; margin-right: 7px;
}
.fi-head h3 { font-size: 19px; line-height: 1.25; margin: 0 0 10px; font-weight: 800; }
@media (min-width: 768px) { .fi-head h3 { font-size: 22px; } }
.fi-tipo {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted);
}
.fi-tipo.t-generico   { background: #e8f5ee; color: #17794a; }
.fi-tipo.t-referencia { background: #fff1e6; color: #b4530f; }
.fi-tipo.t-similar    { background: #eef2fb; color: #3a5699; }
.fi-rows { margin: 14px 0 0; display: grid; gap: 9px; }
.fi-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 13.5px; align-items: baseline; }
.fi-row dt { color: var(--muted); font-weight: 600; }
.fi-row dd { margin: 0; font-weight: 700; }
.fi-sec { border-top: 1px solid var(--line-soft); padding: 18px 20px; }
@media (min-width: 560px) { .fi-sec { padding: 18px 24px; } }
.fi-sec h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 10px; font-weight: 700;
}
.fi-desc { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink); max-width: 62ch; }
.fi-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.fi-chip { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); }
/* chip navegável: leva à página da indicação (condição) */
.fi-chip.lk {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff7f2; color: var(--orange-lo); font-weight: 700;
  border: 1px solid #ffddc7; transition: background .15s, border-color .15s;
}
.fi-chip.lk:hover { background: #ffeee2; border-color: var(--orange); }
.fi-chip.lk svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fi-vazio { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.fi-vazio strong { color: var(--ink); font-weight: 700; }
.fi-ativo-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 13px 15px; border-radius: 13px; background: var(--bg-soft);
  text-align: left; transition: background .15s;
}
.fi-ativo-link:hover { background: #ececec; }
.fi-ativo-link .n { font-weight: 800; font-size: 14.5px; }
.fi-ativo-link .c { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fi-ativo-link svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--orange); fill: none; stroke: currentColor; stroke-width: 2.6; }
.fi-nota {
  padding: 14px 20px 22px; font-size: 11.5px; line-height: 1.55;
  color: var(--muted); background: var(--bg-soft);
}
@media (min-width: 560px) { .fi-nota { padding: 14px 24px 22px; } }

/* ===== FOOTER ===== */
footer.site { background: var(--ink); color: #888; margin-top: 40px; }
footer.site .f {
  max-width: 1280px; margin: 0 auto; padding: 32px 24px;
  display: grid; gap: 18px; font-size: 13px;
}
@media (min-width: 768px) { footer.site .f { grid-template-columns: 1fr auto; align-items: center; } }
footer.site small { color: #777; font-size: 11px; display: block; margin-top: 6px; line-height: 1.5; }
footer.site .pill {
  display: inline-block; margin-left: 14px; color: #666; font-size: 11px;
  padding: 2px 8px; border: 1px solid #333; border-radius: 999px;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
