/* Site público (página inicial + catálogo) — versão 2.
   Mesmas cores do Design System Laranja. O cadastro (admin) continua usando estilo.css. */
:root {
  --brand: #f97316;
  --brand-strong: #c2410c;
  --brand-soft: #ffedd5;
  --ink: #1c1917;
  --ink-2: #292524;
  --muted: #57534e;
  --surface: #ffffff;
  --subtle: #fff7ed;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --success: #15803d;
  --success-soft: #dcfce7;
  --danger: #b91c1c;
  --whats: #25d366;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-full: 9999px;
  --sombra-1: 0 1px 2px rgba(28, 25, 23, .06), 0 2px 8px rgba(28, 25, 23, .06);
  --sombra-2: 0 14px 34px -10px rgba(28, 25, 23, .22);
  --sombra-laranja: 0 16px 40px -14px rgba(194, 65, 12, .45);
  --topo: 64px; /* altura do cabeçalho fixo */
  --suave: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 900px) { :root { --topo: 76px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topo) + 16px); }
body {
  margin: 0; color: var(--ink); background: var(--surface);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
body.travado { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; border-radius: 4px; }
.largura { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .largura { padding: 0 24px; } }
.icone { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pular { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top .15s; }
.pular:focus { top: 8px; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: var(--r-md); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--suave), box-shadow .2s, background-color .15s, border-color .15s, color .15s;
}
.botao:active { transform: scale(.97); }
.botao-primario { background: var(--brand); color: var(--ink); box-shadow: 0 6px 16px -6px rgba(249, 115, 22, .7); }
.botao-primario:hover { background: #fb8a3a; box-shadow: 0 10px 22px -8px rgba(249, 115, 22, .8); transform: translateY(-1px); }
.botao-primario:disabled { background: var(--line-strong); color: var(--muted); box-shadow: none; transform: none; cursor: default; }
.botao-secundario { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.botao-secundario:hover { border-color: var(--ink); background: #fafaf9; }
.botao-whats { background: var(--success); color: #fff; box-shadow: 0 6px 16px -6px rgba(21, 128, 61, .7); }
.botao-whats:hover { background: #166f37; transform: translateY(-1px); }
.botao-whats:disabled { background: var(--line-strong); color: var(--muted); box-shadow: none; transform: none; cursor: default; }
.botao-escuro { background: var(--ink); color: #fff; }
.botao-escuro:hover { background: var(--ink-2); transform: translateY(-1px); }
.botao-grande { min-height: 54px; padding: 12px 26px; font-size: 16px; }
.botao-link { border: 0; background: none; padding: 8px; color: var(--muted); text-decoration: underline; font-size: 14px; }
.botao-link:hover { color: var(--ink); }
.selo {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-full);
  background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; line-height: 18px; font-weight: 600;
}

/* ---------- Faixa de cima (endereço, horário, telefone) ---------- */
.faixa-topo { background: var(--ink); color: #e7e5e4; font-size: 13px; line-height: 18px; }
.faixa-topo .largura { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.faixa-topo span, .faixa-topo a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; text-decoration: none; }
.faixa-topo .icone { width: 15px; height: 15px; color: var(--brand); }
.faixa-topo .corta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.faixa-topo a:hover { color: #fff; text-decoration: underline; }
.faixa-esq { display: flex; gap: 20px; min-width: 0; }
.faixa-topo .some-celular { display: none; }
@media (min-width: 900px) { .faixa-topo .some-celular { display: inline-flex; } }

/* ---------- Cabeçalho ---------- */
.cabecalho {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.cabecalho.rolou { box-shadow: 0 8px 24px -16px rgba(28, 25, 23, .45); border-bottom-color: var(--line); }
.cabecalho-linha { display: flex; align-items: center; gap: 12px; height: var(--topo); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.marca img { display: block; height: 44px; width: auto; transition: height .25s var(--suave); }
@media (min-width: 900px) { .marca img { height: 54px; } .cabecalho.rolou .marca img { height: 46px; } }
.marca-texto { font-size: 11px; line-height: 14px; font-weight: 600; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: 10px; white-space: nowrap; }
@media (max-width: 380px) { .marca-texto { display: none; } }
.menu { display: none; }
.menu a {
  position: relative; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none;
  font-weight: 600; font-size: 15px; color: var(--muted); transition: color .15s;
}
.menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--suave); }
.menu a:hover, .menu a[aria-current] { color: var(--ink); }
.menu a:hover::after, .menu a[aria-current]::after { transform: scaleX(1); }
@media (min-width: 900px) { .menu { display: flex; gap: 2px; margin-right: 12px; } }
.cabecalho-acoes { display: flex; align-items: center; gap: 8px; }
.acao-whats { display: none; }
@media (min-width: 900px) { .acao-whats { display: inline-flex; } }
.acao-orcamento { position: relative; padding: 10px 16px; }
.acao-orcamento .rotulo { display: none; }
@media (min-width: 520px) { .acao-orcamento .rotulo { display: inline; } }
.contador {
  position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-full);
  background: var(--ink); color: #fff; font-size: 12px; line-height: 22px; font-weight: 700; text-align: center; border: 2px solid #fff; box-sizing: content-box;
}
.contador.pulou { animation: pulo .45s var(--suave); }
@keyframes pulo { 30% { transform: scale(1.45); } 60% { transform: scale(.9); } }
.menu-botao { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); }
.menu-botao .icone { width: 22px; height: 22px; }
@media (min-width: 900px) { .menu-botao { display: none; } }
.menu-celular { display: none; border-top: 1px solid var(--line); background: var(--surface); padding: 8px 16px 16px; }
.menu-celular.aberto { display: block; animation: desce .25s var(--suave); }
.menu-celular a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.menu-celular a:last-child { border-bottom: 0; }
@media (min-width: 900px) { .menu-celular { display: none !important; } }
@keyframes desce { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Efeito de entrada ao rolar ---------- */
.js [data-revela] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--suave), transform .6s var(--suave); transition-delay: var(--atraso, 0ms); }
.js [data-revela].visivel { opacity: 1; transform: none; }

/* ---------- Página inicial: abertura ---------- */
.heroi { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--subtle), #fff 85%); }
.heroi::before, .heroi::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(8px); }
.heroi::before { width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(249, 115, 22, .28), rgba(249, 115, 22, 0) 70%); animation: flutua 14s ease-in-out infinite alternate; }
.heroi::after { width: 380px; height: 380px; left: -140px; bottom: -160px; background: radial-gradient(circle, rgba(253, 186, 116, .4), rgba(253, 186, 116, 0) 70%); animation: flutua 18s ease-in-out infinite alternate-reverse; }
@keyframes flutua { to { transform: translate(40px, 30px) scale(1.08); } }
.heroi .largura { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 48px; }
@media (min-width: 960px) { .heroi .largura { padding-top: 72px; padding-bottom: 80px; } .heroi .largura.com-promo { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; } }
.heroi .largura > * { min-width: 0; }
/* o texto principal entra sozinho, sem esperar o JavaScript */
.entra { animation: aparece .7s var(--suave) both; }
.heroi h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; margin-top: 16px; }
.heroi h1 em { font-style: normal; color: var(--brand-strong); position: relative; }
/* o risco laranja embaixo só cabe quando a frase fica numa linha só (telas maiores) */
@media (min-width: 700px) {
  .heroi h1 em { white-space: nowrap; }
  .heroi h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .16em; background: var(--brand); opacity: .35; border-radius: 4px; z-index: -1; }
}
.heroi .lead { color: var(--muted); font-size: 18px; line-height: 1.55; margin: 18px 0 24px; max-width: 560px; }
.busca-heroi { display: flex; gap: 8px; max-width: 560px; padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--sombra-1); transition: box-shadow .2s, border-color .2s; }
.busca-heroi:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(249, 115, 22, .2); }
.busca-heroi label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding-left: 12px; color: var(--muted); }
.busca-heroi input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 10px 0; color: var(--ink); }
.busca-heroi .botao { min-height: 46px; padding: 10px 18px; }
.procurados { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.procurados a { padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--surface); text-decoration: none; font-weight: 500; color: var(--ink); transition: border-color .15s, background-color .15s, transform .15s; }
.procurados a:hover { border-color: var(--brand); background: var(--subtle); transform: translateY(-1px); }
.heroi-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; max-width: 560px; }
.numeros div { padding: 12px 14px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: var(--r-md); }
.numeros b { display: block; font-size: clamp(20px, 3.4vw, 28px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.numeros span { font-size: 12px; line-height: 16px; color: var(--muted); }

/* fotos de produtos ao lado do texto (aparece quando não há promoção; só em tela grande) */
.mosaico { display: none; }
@media (min-width: 960px) {
  .mosaico { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 470px; margin-left: auto; padding-bottom: 28px; }
  .mosaico a { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--sombra-2); transition: transform .35s var(--suave), box-shadow .35s; }
  .mosaico a:nth-child(even) { transform: translateY(28px); }
  .mosaico a:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--sombra-laranja); }
  .mosaico a:nth-child(even):hover { transform: translateY(22px) scale(1.02); }
  .mosaico img { width: 100%; height: 100%; object-fit: contain; padding: 12%; display: block; }
  .mosaico span { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: var(--r-full); background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
}

/* cartão da promoção */
.promo { background: var(--surface); border: 2px solid var(--brand); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sombra-laranja); transition: transform .3s var(--suave), box-shadow .3s; }
.promo:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 26px 50px -18px rgba(194, 65, 12, .55); }
.promo-faixa { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--brand); color: var(--ink); padding: 10px 16px; }
.promo-chamada { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; }
.promo-chamada .icone { width: 18px; height: 18px; stroke-width: 2.25; }
.promo-prazo { display: inline-flex; align-items: center; gap: 4px; background: var(--ink); color: #fff; border-radius: var(--r-full); font-size: 12px; font-weight: 600; padding: 4px 10px; }
.promo-prazo .icone { width: 14px; height: 14px; }
.promo-corpo { display: grid; }
@media (min-width: 520px) { .promo-corpo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.promo-foto { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 55%, #fff 0 45%, var(--brand-soft) 100%); }
@media (max-width: 519px) { .promo-foto { aspect-ratio: 4 / 3; } }
.promo-foto img { width: 86%; height: 86%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.promo-foto .sem-foto { width: 72px; height: 72px; }
.promo-desconto {
  position: absolute; top: 16px; left: 16px; width: 66px; height: 66px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-10deg);
  box-shadow: 0 4px 12px rgba(28, 25, 23, .3); animation: balanca 3.2s ease-in-out infinite;
}
@keyframes balanca { 50% { transform: rotate(-4deg) scale(1.06); } }
.promo-desconto b { font-size: 20px; line-height: 22px; font-weight: 800; }
.promo-desconto small { font-size: 9px; line-height: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--brand); }
.promo-info { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 520px) { .promo-info { padding-left: 16px; } }
.promo-categoria { font-size: 12px; font-weight: 700; color: var(--brand-strong); text-transform: uppercase; letter-spacing: .5px; }
.promo-info h2 { font-size: 18px; line-height: 24px; font-weight: 700; overflow-wrap: anywhere; }
.promo-precos { background: var(--subtle); border-radius: var(--r-md); padding: 8px 16px 16px; margin-top: 4px; }
.promo-de { color: var(--muted); font-size: 14px; }
.promo-de s { text-decoration-thickness: 2px; text-decoration-color: var(--danger); }
.promo-por { display: flex; align-items: flex-start; line-height: 1; }
.promo-por .rs { font-size: 16px; font-weight: 700; margin: 6px 4px 0 0; }
.promo-por .int { font-size: 48px; font-weight: 800; letter-spacing: -1.5px; }
.promo-por .cent { font-size: 20px; font-weight: 800; margin-top: 4px; }
.promo-por .un { align-self: flex-end; font-size: 14px; font-weight: 500; color: var(--muted); margin: 0 0 4px 6px; }
.promo-economia { display: inline-flex; margin-top: 8px; padding: 2px 10px; border-radius: var(--r-full); background: var(--success-soft); color: var(--success); font-size: 13px; line-height: 20px; font-weight: 700; }
.promo-acoes { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.promo-acoes .botao { width: 100%; white-space: normal; text-align: center; }
.promo-ate { font-size: 12px; line-height: 16px; color: var(--muted); text-align: center; }

/* ---------- Seções ---------- */
.secao { padding: 56px 0; }
@media (min-width: 900px) { .secao { padding: 88px 0; } }
.secao.clara { background: var(--subtle); }
.secao-cabeca { max-width: 640px; margin-bottom: 28px; }
.secao-cabeca.centro { margin-left: auto; margin-right: auto; text-align: center; }
.sobretitulo { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); }
.sobretitulo::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--brand); }
.secao-cabeca h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.secao-cabeca p { color: var(--muted); margin-top: 10px; font-size: 17px; }

/* vantagens */
.vantagens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: -8px; }
@media (min-width: 900px) { .vantagens { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.vantagem { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sombra-1); transition: transform .25s var(--suave), box-shadow .25s; }
.vantagem:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); }
.vantagem .bolha { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; }
.vantagem .bolha .icone { width: 22px; height: 22px; }
.vantagem b { font-size: 15px; line-height: 20px; }
.vantagem span { font-size: 13px; line-height: 18px; color: var(--muted); }
.faixa-vantagens { position: relative; z-index: 2; padding-bottom: 8px; }

/* categorias */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.cat {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; min-height: 148px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none;
  transition: transform .25s var(--suave), box-shadow .25s, border-color .25s;
}
.cat::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 110px; height: 110px; border-radius: 50%; background: var(--brand-soft); opacity: .6; transition: transform .35s var(--suave); }
.cat:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); border-color: var(--brand); }
.cat:hover::after { transform: scale(1.5); }
.cat .bolha { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; transition: background-color .25s, color .25s; }
.cat:hover .bolha { background: var(--brand); color: var(--ink); }
.cat .bolha .icone { width: 26px; height: 26px; stroke-width: 1.75; }
.cat b { position: relative; z-index: 1; font-size: 16px; line-height: 21px; margin-top: 6px; }
.cat small { position: relative; z-index: 1; color: var(--muted); font-size: 13px; }
.cat .seta-ir { position: absolute; z-index: 1; right: 14px; bottom: 14px; color: var(--brand-strong); transition: transform .25s var(--suave); }
.cat:hover .seta-ir { transform: translateX(4px); }
.cat.todos { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat.todos::after { background: var(--brand); opacity: .25; }
.cat.todos .bolha { background: var(--brand); color: var(--ink); }
.cat.todos small { color: #d6d3d1; }
.cat.todos .seta-ir { color: var(--brand); }

/* destaques (produtos com ⭐ no cadastro) */
.vitrine { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 16px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.vitrine .mini { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: transform .25s var(--suave), box-shadow .25s; }
.vitrine .mini:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); }
.vitrine .mini-foto { aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; }
.vitrine .mini-foto img { width: 100%; height: 100%; object-fit: contain; }
.vitrine .mini-info { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); }
.vitrine .mini-info b { font-size: 14px; line-height: 19px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vitrine .mini-info span { font-weight: 800; color: var(--brand-strong); }

/* como funciona */
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: passo; }
@media (min-width: 800px) { .passos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.passos li { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sombra-1); counter-increment: passo; }
.passos li::before { content: counter(passo); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: var(--ink); font-weight: 800; font-size: 20px; margin-bottom: 16px; box-shadow: 0 8px 18px -8px rgba(249, 115, 22, .9); }
@media (min-width: 800px) { .passos li:not(:last-child)::after { content: ""; position: absolute; top: 46px; left: calc(24px + 56px); right: -24px; border-top: 2px dashed var(--line-strong); } }
.passos h3 { font-size: 18px; line-height: 24px; font-weight: 700; }
.passos p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* contato */
.contato-grade { display: grid; gap: 24px; }
@media (min-width: 860px) { .contato-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 32px; } }
.contatos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contatos li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.contatos .bolha { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; }
.contatos small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.contatos a { color: var(--brand-strong); font-weight: 700; }
.chamada-final { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 36px 28px; background: var(--ink); color: #fff; border-radius: var(--r-lg); }
.chamada-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(249, 115, 22, .5), rgba(249, 115, 22, 0) 55%); pointer-events: none; }
.chamada-final > * { position: relative; }
.chamada-final h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.chamada-final p { color: #d6d3d1; }
.chamada-final .botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--ink); color: #d6d3d1; font-size: 14px; }
.rodape-grade { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 800px) { .rodape-grade { grid-template-columns: 1.4fr 1fr 1.3fr; gap: 48px; } }
.rodape .logo-clara { display: inline-flex; background: #fff; padding: 10px 16px; border-radius: var(--r-md); }
.rodape .logo-clara img { display: block; height: 52px; width: auto; }
.rodape p { margin-top: 14px; max-width: 360px; }
.rodape h4 { margin: 0 0 12px; color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rodape a, .rodape .link { color: #d6d3d1; text-decoration: none; background: none; border: 0; padding: 0; text-align: left; }
.rodape a:hover, .rodape .link:hover { color: #fff; text-decoration: underline; }
.rodape li { display: flex; gap: 8px; align-items: flex-start; }
.rodape li .icone { width: 16px; height: 16px; margin-top: 3px; color: var(--brand); }
.rodape-fim { border-top: 1px solid rgba(255, 255, 255, .12); }
.rodape-fim .largura { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 20px; font-size: 12px; color: #a8a29e; }
body.tem-barra .rodape-fim .largura { padding-bottom: 96px; }

/* ---------- Catálogo ---------- */
.catalogo-topo { background: linear-gradient(180deg, var(--subtle), #fff); padding: 20px 0 8px; }
@media (min-width: 900px) { .catalogo-topo { padding: 32px 0 12px; } }
.migalhas { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.migalhas a { text-decoration: none; }
.migalhas a:hover { text-decoration: underline; }
.catalogo-topo h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.catalogo-topo p { color: var(--muted); margin-top: 6px; }
.aviso-loja { margin-top: 12px; padding: 12px 16px; background: var(--brand-soft); border-radius: var(--r-md); font-weight: 600; }

.catalogo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 8px; padding-bottom: 120px; }
.catalogo > * { min-width: 0; }
@media (min-width: 1000px) { .catalogo { grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; } }
.lado { display: none; }
@media (min-width: 1000px) {
  .lado { display: block; position: sticky; top: calc(var(--topo) + 16px); max-height: calc(100vh - var(--topo) - 32px); overflow-y: auto; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
}
.lado h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.lado button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; font-weight: 500; font-size: 15px; transition: background-color .15s, color .15s; }
.lado button:hover { background: var(--subtle); }
.lado button small { color: var(--muted); font-size: 12px; font-weight: 600; background: var(--line); border-radius: var(--r-full); padding: 1px 8px; }
.lado button.ativa { background: var(--ink); color: #fff; font-weight: 700; }
.lado button.ativa small { background: rgba(255, 255, 255, .18); color: #fff; }

/* busca + categorias: ficam presas no topo ao rolar */
.ferramentas { position: sticky; top: 0; z-index: 30; margin: 0 -16px; padding: 10px 16px 8px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .ferramentas { margin: 0 -24px; padding-left: 24px; padding-right: 24px; } }
@media (min-width: 900px) { .ferramentas { top: var(--topo); } }
@media (min-width: 1000px) { .ferramentas { margin: 0; padding: 12px 0 10px; } }
.busca { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.busca:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(249, 115, 22, .18); }
.busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0; font-size: 16px; color: var(--ink); }
.busca input::-webkit-search-cancel-button { display: none; }
.limpar-busca { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--line); color: var(--ink); }
.limpar-busca .icone { width: 16px; height: 16px; }
.categorias-rolagem { position: relative; margin-top: 8px; }
@media (min-width: 1000px) { .categorias-rolagem { display: none; } }
.categorias { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; scroll-behavior: smooth; }
.categorias::-webkit-scrollbar { display: none; }
.categorias-rolagem.tem-esq .categorias { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 56px); mask-image: linear-gradient(to right, transparent 0, #000 56px); }
.categorias-rolagem.tem-dir .categorias { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 56px); mask-image: linear-gradient(to left, transparent 0, #000 56px); }
.categorias-rolagem.tem-esq.tem-dir .categorias { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
.categorias button { flex: none; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.categorias button.ativa { background: var(--ink); border-color: var(--ink); color: #fff; }
.seta { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(28, 25, 23, .18); }
.seta .icone { width: 18px; height: 18px; stroke-width: 2.5; }
.seta-esq { left: 0; }
.seta-dir { right: 0; }
.linha-resultado { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.linha-resultado b { color: var(--ink); }
.ordenar { display: inline-flex; align-items: center; gap: 6px; }
.ordenar select { border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); padding: 6px 8px; font-size: 14px; font-weight: 600; max-width: 170px; }

/* produtos: no celular, UM por linha (foto ao lado); em telas maiores, em grade */
.grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .grade { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .grade { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 20px; } }
.titulo-categoria { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-size: 20px; line-height: 28px; font-weight: 800; letter-spacing: -.01em; margin-top: 14px; }
.titulo-categoria:first-child { margin-top: 0; }
.titulo-categoria::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.produto {
  position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "foto info" "foto acoes"; column-gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .25s var(--suave), box-shadow .25s, border-color .25s; animation: aparece .45s var(--suave) both;
}
@keyframes aparece { from { opacity: 0; transform: translateY(10px); } }
.produto:hover { box-shadow: var(--sombra-2); border-color: var(--line-strong); }
.produto.em-promocao { border: 2px solid var(--brand); }
.produto .foto { grid-area: foto; position: relative; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: #fff; border-right: 1px solid var(--line); min-height: 112px; overflow: hidden; }
.produto .foto img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .4s var(--suave); }
.produto:hover .foto img { transform: scale(1.06); }
.sem-foto { width: 40px; height: 40px; color: var(--line-strong); stroke-width: 1.5; }
.selo-promo { position: absolute; top: 8px; left: 8px; background: var(--brand); color: var(--ink); font-size: 11px; line-height: 16px; font-weight: 800; padding: 3px 8px; border-radius: var(--r-full); text-transform: uppercase; letter-spacing: .04em; }
.produto .info { grid-area: info; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 0 0; min-width: 0; }
.produto .nome { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0; border: 0; background: none; text-align: left; font-size: 14px; line-height: 19px; font-weight: 600; overflow-wrap: anywhere; }
.produto .nome:hover { color: var(--brand-strong); }
.produto h3 { font-size: inherit; }
.produto .preco { font-weight: 800; font-size: 18px; line-height: 24px; letter-spacing: -.01em; }
.produto .preco small { font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.produto .preco s { font-weight: 500; font-size: 13px; color: var(--muted); margin-right: 4px; }
.produto .acoes { grid-area: acoes; align-self: end; padding: 8px 12px 12px 0; }
.adicionar { width: 100%; min-height: 40px; padding: 8px 12px; font-size: 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); border: 1px solid transparent; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background-color .15s, color .15s, transform .15s; }
.adicionar:hover { background: var(--brand); color: var(--ink); }
.adicionar:active { transform: scale(.97); }
.adicionar .icone { width: 16px; height: 16px; stroke-width: 2.5; }
@media (min-width: 640px) {
  .produto { grid-template-columns: minmax(0, 1fr); grid-template-areas: "foto" "info" "acoes"; }
  .produto:hover { transform: translateY(-4px); }
  .produto .foto { aspect-ratio: 1 / 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .produto .info { padding: 14px 14px 0; flex: 1; }
  .produto .nome { -webkit-line-clamp: 3; }
  .produto .acoes { padding: 12px 14px 14px; }
}
.quantidade { display: flex; align-items: stretch; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.quantidade button { flex: none; width: 40px; border: 0; background: var(--brand-soft); color: var(--brand-strong); font-size: 20px; font-weight: 700; line-height: 1; transition: background-color .15s; }
.quantidade button:hover { background: var(--brand); color: var(--ink); }
.quantidade input { flex: 1; min-width: 0; width: 44px; border: 0; background: transparent; text-align: center; font-size: 16px; font-weight: 700; padding: 0; }
.quantidade .un { align-self: center; padding-right: 8px; font-size: 12px; color: var(--muted); }
.vazio { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 16px; }
.vazio .icone { width: 48px; height: 48px; color: var(--line-strong); stroke-width: 1.5; display: block; margin: 0 auto 12px; }
.vazio b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.vazio .botao { margin-top: 16px; }
.mais { display: flex; width: 100%; max-width: 420px; margin: 28px auto 0; }
/* enquanto carrega: retângulos piscando no lugar dos produtos */
.esqueleto { height: 124px; border-radius: 16px; background: linear-gradient(100deg, #f5f5f4 30%, #fafaf9 50%, #f5f5f4 70%); background-size: 200% 100%; animation: brilho 1.2s linear infinite; }
@media (min-width: 640px) { .esqueleto { height: 330px; } }
@keyframes brilho { to { background-position: -200% 0; } }

/* ---------- Barra de baixo (celular): atalho para o orçamento ---------- */
.barra-orcamento {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 35; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px;
  border: 0; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 16px 36px -10px rgba(28, 25, 23, .6);
  animation: sobe .35s var(--suave);
}
@keyframes sobe { from { transform: translateY(120%); } }
.barra-orcamento .esq { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.barra-orcamento .esq small { color: #d6d3d1; font-size: 12px; }
.barra-orcamento .esq b { font-size: 16px; }
.barra-orcamento .ir { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: var(--ink); font-weight: 800; padding: 10px 14px; border-radius: 12px; }

/* ---------- Fundo escuro + painel do orçamento ---------- */
.fundo { position: fixed; inset: 0; z-index: 50; background: rgba(28, 25, 23, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.fundo.aberto { opacity: 1; visibility: visible; }
.painel {
  position: fixed; z-index: 51; display: flex; flex-direction: column; background: var(--surface);
  left: 0; right: 0; bottom: 0; height: 94dvh; max-height: 94vh; border-radius: 22px 22px 0 0;
  transform: translateY(105%); visibility: hidden; transition: transform .38s var(--suave), visibility .38s; box-shadow: 0 -20px 60px rgba(28, 25, 23, .3);
}
@supports (height: 94dvh) { .painel { max-height: none; } }
.painel.aberto { transform: none; visibility: visible; }
@media (min-width: 760px) { .painel { left: auto; top: 0; bottom: 0; width: 480px; height: auto; max-height: none; border-radius: 22px 0 0 22px; transform: translateX(105%); } }
.painel-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.painel-topo h2 { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -.01em; }
.painel-topo small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.fechar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--line); color: var(--ink); transition: background-color .15s, transform .2s; }
.fechar:hover { background: var(--line-strong); transform: rotate(90deg); }
.painel-corpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 16px; }
.item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); animation: aparece .3s var(--suave) both; }
.item-foto { grid-row: 1 / 3; width: 60px; height: 60px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.item-foto img { width: 100%; height: 100%; object-fit: contain; }
.item-foto .sem-foto { width: 26px; height: 26px; }
.item .nome { font-weight: 600; font-size: 14px; line-height: 19px; overflow-wrap: anywhere; }
.item .valor { color: var(--muted); font-size: 12px; }
.item .remover { align-self: start; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--muted); transition: background-color .15s, color .15s; }
.item .remover:hover { background: #fee2e2; color: var(--danger); }
.item .remover .icone { width: 18px; height: 18px; }
.item .quantidade { grid-column: 2; max-width: 170px; height: 36px; }
.item .subtotal { grid-column: 3; font-weight: 800; font-size: 15px; white-space: nowrap; text-align: right; }
.item .subtotal.consulta { font-weight: 600; font-size: 12px; color: var(--brand-strong); }
.painel-vazio { text-align: center; color: var(--muted); padding: 56px 8px; }
.painel-vazio .bolha { width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 50%; background: var(--subtle); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.painel-vazio .bolha .icone { width: 40px; height: 40px; stroke-width: 1.5; }
.painel-vazio b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.painel-vazio .botao { margin-top: 18px; }
.dados-cliente { display: grid; gap: 12px; margin-top: 18px; padding: 16px; background: #fafaf9; border: 1px solid var(--line); border-radius: 16px; }
.dados-cliente h3 { font-size: 15px; font-weight: 700; }
.campo { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.campo input, .campo textarea { border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); padding: 10px 12px; font-size: 16px; font-weight: 400; color: var(--ink); resize: vertical; transition: border-color .2s, box-shadow .2s; }
.campo input:focus, .campo textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(249, 115, 22, .18); }
.escolha { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--line); border-radius: 12px; }
.escolha label { position: relative; cursor: pointer; }
.escolha input { position: absolute; opacity: 0; pointer-events: none; }
.escolha span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s; }
.escolha span .icone { width: 16px; height: 16px; }
.escolha input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--sombra-1); }
.escolha input:focus-visible + span { outline: 3px solid var(--brand-strong); outline-offset: 1px; }
.painel-fim { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; box-shadow: 0 -10px 24px -18px rgba(28, 25, 23, .5); }
.resumo { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.resumo .linha { display: flex; justify-content: space-between; gap: 12px; }
.resumo .total { color: var(--ink); font-size: 16px; font-weight: 700; align-items: baseline; }
.resumo .total b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.painel-fim .botao { width: 100%; }
.painel-fim .dupla { display: flex; justify-content: space-between; gap: 8px; }

/* ---------- Detalhe do produto ---------- */
.detalhe {
  position: fixed; z-index: 52; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0;
  transform: translateY(105%); visibility: hidden; transition: transform .35s var(--suave), visibility .35s, opacity .3s;
}
.detalhe.aberto { transform: none; visibility: visible; }
@media (min-width: 760px) {
  .detalhe { left: 50%; right: auto; top: 50%; bottom: auto; width: min(860px, calc(100vw - 48px)); border-radius: 22px; transform: translate(-50%, -46%) scale(.96); opacity: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .detalhe.aberto { transform: translate(-50%, -50%); opacity: 1; }
}
.detalhe .fechar { position: absolute; top: 12px; right: 12px; z-index: 1; }
.detalhe-foto { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 55%, #fff 0 50%, var(--brand-soft) 110%); }
@media (min-width: 760px) { .detalhe-foto { aspect-ratio: 1 / 1; border-radius: 22px 0 0 22px; } }
.detalhe-foto img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.detalhe-foto .sem-foto { width: 72px; height: 72px; }
.detalhe-info { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 26px; }
@media (min-width: 760px) { .detalhe-info { padding: 40px 32px 32px 28px; justify-content: center; } }
.detalhe-info h2 { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; padding-right: 36px; }
.detalhe-info .desc { color: var(--muted); }
.detalhe-preco { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.detalhe-preco small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.detalhe-preco s { display: block; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.detalhe-acoes { display: grid; gap: 10px; margin-top: 8px; }
.detalhe-acoes .adicionar, .detalhe-acoes .quantidade { height: 50px; min-height: 50px; font-size: 16px; }
.detalhe-acoes .adicionar { background: var(--brand); color: var(--ink); }
.detalhe-acoes .quantidade button { width: 54px; }
.detalhe-nota { font-size: 13px; color: var(--muted); }

/* ---------- Avisos flutuantes ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 60; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r-full); background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--sombra-2); transition: opacity .25s, transform .3s var(--suave); }
.toast.visivel { opacity: 1; transform: translate(-50%, 0); }
.toast .icone { color: #4ade80; }
.toast.aviso .icone { color: #fdba74; }
.whats-flutuante { position: fixed; right: 16px; bottom: 16px; z-index: 34; width: 56px; height: 56px; border-radius: 50%; background: var(--whats); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -6px rgba(18, 140, 74, .7); transition: transform .2s var(--suave), bottom .3s var(--suave); }
.whats-flutuante::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whats); animation: onda 2.4s ease-out infinite; }
@keyframes onda { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.whats-flutuante:hover { transform: scale(1.08); }
.whats-flutuante svg { width: 30px; height: 30px; fill: currentColor; position: relative; }
.subir { position: fixed; right: 22px; bottom: 84px; z-index: 34; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--sombra-1); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, bottom .3s var(--suave); }
.subir.visivel { opacity: 1; visibility: visible; transform: none; }
body.tem-barra .whats-flutuante { bottom: 88px; }
body.tem-barra .subir { bottom: 156px; }
body.tem-barra .toast { bottom: 160px; }

/* ---------- Aviso de cookies ---------- */
.cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; max-width: 720px; margin: 0 auto; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -12px rgba(28, 25, 23, .45); animation: sobe .45s var(--suave); }
.cookies h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.cookies h2 .icone { color: var(--brand-strong); }
.cookies p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.cookies details { margin-top: 8px; font-size: 13px; color: var(--muted); }
.cookies summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.cookies details ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.cookies .botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cookies .botoes .botao { flex: 1 1 180px; min-height: 44px; }

/* ---------- Ajustes por tamanho de tela ---------- */
.faixa-topo .fixo { flex: none; }
/* no catálogo do celular quem fica preso no topo é a busca; o cabeçalho rola junto com a página */
@media (max-width: 899px) { .pagina-catalogo .cabecalho { position: static; } }
/* no computador o botão "Meu orçamento" já fica sempre à vista no cabeçalho */
@media (min-width: 900px) {
  .barra-orcamento { display: none; }
  body.tem-barra .whats-flutuante { bottom: 16px; }
  body.tem-barra .subir { bottom: 84px; }
  body.tem-barra .toast { bottom: 96px; }
  body.tem-barra .rodape-fim .largura { padding-bottom: 20px; }
}

/* ---------- Quem prefere menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-revela] { opacity: 1; transform: none; }
}
@media print { .faixa-topo, .cabecalho, .ferramentas, .lado, .barra-orcamento, .whats-flutuante, .subir, .cookies, .rodape, .toast { display: none !important; } }
