/* ==========================================================================
 * style.css — Consulta de Peças
 * Mobile-first. Alvos de toque >= 44px. Tema claro/escuro automático.
 * ========================================================================== */

/* Fonte larga e pesada do nome da marca (só no logotipo do topo; arquivo local, funciona offline) */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  /* Identidade Princesa: azul profundo, azul do nome, azul claro e o dourado da coroa */
  --bg: #ffffff;
  --card: #ffffff;
  --txt: #0c1633;
  --muted: #64748b;
  --line: #dde5f2;
  --brand: #003580;          /* topo */
  --brand-2: #0a4aa8;        /* fim do degradê do topo */
  --gold: #f7c600;           /* coroa: linha do topo, foco, números de destaque */
  --accent: #003580;         /* azul do nome: foco, links, seleção */
  --btn: #003580;            /* fundo dos botões principais */
  --logo-claro-d: block;  --logo-escuro-d: none;   /* qual versão do logo aparece */
  --price: #047857;
  --chip-cod-bg: #dce8fb;  --chip-cod-txt: #0a2a7a;
  --chip-ref-bg: #f1f5f9;  --chip-ref-txt: #334155;
  --danger: #b91c1c;
  --ok: #15803d;
  --est-ok-bg: #dcfce7;  --est-ok-txt: #166534;
  --est-zero-bg: #fee2e2; --est-zero-txt: #991b1b;
  --warn: #b45309;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .05);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100dvh;
}
body.trava { overflow: hidden; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.i.grande { width: 56px; height: 56px; color: var(--muted); stroke-width: 1.5; }

/* ------------------------------------------------------------------ Aviso */
.aviso {
  background: #fef3c7; color: #78350f; padding: 10px 14px; font-size: .9rem; text-align: center;
}

/* ------------------------------------------------------------------ Topo */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff;
  border-bottom: 3px solid var(--gold);
  padding: calc(env(safe-area-inset-top) + 10px) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.topbar :focus-visible { outline-color: var(--gold); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* Logotipo: marca (P com coroa) + nome em fonte larga + faixa "Distribuidora de Auto Peças" */
.brand { margin: 0; display: flex; align-items: center; gap: 9px; min-width: 0; font: inherit; }
.brand .marca { height: 44px; width: auto; flex: none; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; padding: 5px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .14);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.pill.off .dot { background: #fbbf24; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff;
}
.icon-btn:active { background: rgba(255, 255, 255, .25); }
.icon-btn.escuro { background: var(--bg); color: var(--txt); }

.search { position: relative; }
.search input {
  width: 100%; height: 52px; border: 0; border-radius: 14px;
  padding: 0 48px 0 46px; font-size: 17px;     /* 17px evita o zoom automático do iOS */
  background: #fff; color: #0f172a;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08) inset;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #64748b; }
.search input::-webkit-search-cancel-button { display: none; }
.search .lupa { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; }
.search .limpar {
  position: absolute; right: 4px; top: 4px; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: transparent; color: #475569;
  display: grid; place-items: center;
}

.statusline {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; font-size: .85rem; color: rgba(255, 255, 255, .88);
}

/* Celulares muito estreitos: o status de rede vira só o ponto colorido (o texto continua para leitores de tela) */
@media (max-width: 479px) {
  #pill-rede-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .brand-nome { font-size: 1.15rem; }
  .brand .marca { height: 38px; }
}

/* ------------------------------------------------------------------ Lista */
main {
  max-width: 980px; margin: 0 auto;
  padding: 12px max(12px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.lista { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .lista { grid-template-columns: 1fr 1fr; gap: 12px; } }

.card {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow); cursor: pointer;
  content-visibility: auto; contain-intrinsic-size: auto 130px;   /* rolagem fluida em listas longas */
}
.thumb {
  position: relative; width: 92px; height: 92px; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--muted);
  display: grid; place-items: center;
}
.thumb .ph { width: 34px; height: 34px; stroke-width: 1.5; opacity: .7; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--card); }
.thumb:disabled { cursor: default; }

.info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tit { margin: 0; font-size: 1rem; line-height: 1.25; font-weight: 650; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; max-width: 100%; padding: 3px 8px; border-radius: 8px;
  font: 600 .8rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.chip small { font: 500 .68rem system-ui, sans-serif; opacity: .75; text-transform: uppercase; letter-spacing: .3px; margin-right: 2px; }
.chip.cod { background: var(--chip-cod-bg); color: var(--chip-cod-txt); }
.chip.ref { background: var(--chip-ref-bg); color: var(--chip-ref-txt); }

.apl {
  margin: 0; font-size: .86rem; color: var(--muted); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card.aberto .apl { -webkit-line-clamp: unset; display: block; }
.rodape { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
.preco { font-size: 1.3rem; font-weight: 800; color: var(--price); font-variant-numeric: tabular-nums; }
.estoque { font-size: .78rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.estoque.tem { background: var(--est-ok-bg); color: var(--est-ok-txt); }
.estoque.zero { background: var(--est-zero-bg); color: var(--est-zero-txt); }
.estoque::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.preco.consulte { font-size: .95rem; font-weight: 600; color: var(--muted); }

/* Sem nenhuma foto na base: o card usa a largura toda */
.sem-fotos .card { grid-template-columns: 1fr; }
.sem-fotos .thumb { display: none; }

/* ------------------------------------------------------------------ Estados */
.vazio {
  text-align: center; background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 36px 20px; margin-top: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.vazio .logo { width: min(240px, 70%); height: auto; margin-bottom: 6px; }
.logo-claro { display: var(--logo-claro-d); }
.logo-escuro { display: var(--logo-escuro-d); }
.vazio h2 { margin: 6px 0 0; font-size: 1.15rem; }
.vazio p { margin: 0 0 8px; color: var(--muted); max-width: 40ch; }
.sem-resultado { text-align: center; color: var(--muted); padding: 32px 10px; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 60;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); max-width: calc(100vw - 32px); text-align: center; font-size: .95rem;
}

/* ------------------------------------------------------------------ Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--txt); font-weight: 600;
}
.btn:active { transform: translateY(1px); }
.btn.primario { background: var(--btn); border-color: transparent; color: #fff; }
.btn.perigo { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn.cheio { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------------------ Foto ampliada */
.lightbox {
  position: fixed; inset: 0; z-index: 70; background: rgba(2, 6, 23, .92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px;
}
.lightbox img { max-width: 100%; max-height: 78dvh; object-fit: contain; border-radius: 10px; background: #fff; }
.lightbox p { margin: 0; color: #e2e8f0; text-align: center; max-width: 60ch; }
.fechar-lb { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; }

/* ------------------------------------------------------------------ Painel do gerente */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(2, 6, 23, .55); }
.sheet-panel {
  position: relative; width: 100%; max-width: 640px; max-height: 94dvh;
  background: var(--bg); border-radius: 20px 20px 0 0; display: flex; flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .3);
}
@media (min-width: 700px) {
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 20px; max-height: 90dvh; }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px 20px; }
.sheet-head h2 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.sheet-head .marca-mini { height: 34px; width: auto; }
.sheet-body {
  overflow-y: auto; overscroll-behavior: contain;
  padding: 6px 16px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px;
}
.bloco { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.bloco h3 { margin: 0 0 10px; font-size: 1rem; }
.bloco h4 { margin: 18px 0 8px; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.ajuda { margin: 0 0 12px; font-size: .9rem; color: var(--muted); }

.info-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.info-grid dt { color: var(--muted); }
.info-grid dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 22px 12px; border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--bg); cursor: pointer; color: var(--muted);
}
.drop strong { color: var(--accent); font-size: 1.05rem; }
.drop.sobre { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }

.arq-nome { font-weight: 700; margin: 16px 0 8px; overflow-wrap: anywhere; }
.campo { margin-bottom: 8px; display: grid; gap: 6px; }
.campo label { font-size: .85rem; color: var(--muted); }
select {
  width: 100%; min-height: 44px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card);
}
.mapa { display: grid; gap: 8px; }
.mapa .linha { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
.mapa .linha > span { font-weight: 600; font-size: .92rem; }
.mapa .linha .ok { color: var(--ok); }
.previa { display: grid; gap: 8px; }
.previa .card { cursor: default; box-shadow: none; }
.limpeza { margin: 10px 0 0; }
.previa .vazio-previa { color: var(--warn); font-size: .92rem; }

.modo { margin: 18px 0 14px; padding: 0; border: 0; display: grid; gap: 8px; }
.modo legend { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; padding: 0; }
.modo label {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.modo label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.modo input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.modo span { display: grid; gap: 2px; }
.modo small { color: var(--muted); font-size: .82rem; }

.progresso { margin: 0 0 12px; display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.barra { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.erro { color: var(--danger); font-size: .92rem; margin: 0 0 12px; }

/* ------------------------------------------------------------------ Filtros e ordenação */
.ferramentas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }

.ordem { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); min-width: 0; }
.ordem select { width: auto; max-width: 100%; min-height: 44px; font-weight: 600; color: var(--txt); }

.chips-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.chip-filtro {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 4px 0 12px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: .85rem;
}
.chip-filtro b { font-weight: 700; }
.chip-filtro button {
  width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  display: grid; place-items: center;
}
.chip-filtro button .i { width: 1em; height: 1em; }

.entrada {
  width: 100%; min-height: 46px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--txt); font-size: 16px;   /* 16px evita zoom no iOS */
  font-family: inherit;
}
textarea.entrada { padding: 10px 12px; line-height: 1.4; resize: vertical; }
.entrada.erro-campo { border-color: var(--danger); }
.campos { display: grid; gap: 12px; }
.campos h3 { margin: 0; }
.campo .rotulo { font-size: .85rem; color: var(--muted); }
.faixa { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }

.sem-resultado .btn { margin-top: 6px; }

/* ------------------------------------------------------------------ Carrinho nos cards */
.acoes { margin-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-add {
  flex: 1 1 140px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px;
  background: var(--btn); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-add:active { transform: translateY(1px); }
.passo { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.passo button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--accent); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.passo button:active { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.passo input {
  width: 58px; height: 44px; border: 0; padding: 0; text-align: center; background: transparent;
  font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.passo input::-webkit-outer-spin-button, .passo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.no-pedido { font-size: .82rem; font-weight: 700; color: var(--ok); }

/* ------------------------------------------------------------------ Barra de pedidos (sempre visível) */
.barra-pedido {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-top: 3px solid var(--gold);
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .22);
}
.bp-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; max-width: 956px; margin: 0 auto; }
.bp-btn {
  min-height: 50px; border: 0; border-radius: 12px; padding: 6px 14px; font: inherit; font-weight: 700;
  display: flex; align-items: center; gap: 9px; text-align: left; color: #fff; min-width: 0;
}
.bp-btn:active { transform: translateY(1px); }
.bp-lista { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.bp-atual { background: var(--gold); color: #1a1200; justify-content: space-between; }
.bp-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.bp-nome { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-info { font-size: .8rem; font-weight: 600; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.bp-n { min-width: 24px; padding: 1px 7px; border-radius: 99px; background: var(--gold); color: #1a1200; text-align: center; font-weight: 800; font-size: .85rem; }
@media (max-width: 400px) { .bp-rot { display: none; } .bp-lista { padding: 6px 12px; } }
body.com-pedido main { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
body.com-pedido .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

/* ------------------------------------------------------------------ Tela do pedido */
/* (itens do pedido: tabela — ver bloco "janela do pedido" no fim do arquivo) */
.pedido-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; font-size: 1.05rem; }
.pedido-total b { font-size: 1.5rem; color: var(--price); font-variant-numeric: tabular-nums; }
.bloco > .btn + .btn, .bloco > .btn + details, .bloco > details + .ajuda, .bloco > .ajuda + .btn { margin-top: 10px; }
a.btn { text-decoration: none; }

/* no celular o rótulo "Ordenar" fica só para leitores de tela */
@media (max-width: 420px) {
  .ordem label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ------------------------------------------------------------------ Marca clicável e vitrine da página inicial */
.brand-btn { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vitrine-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 2px 0 12px; }
.vitrine-cab h2 { margin: 0; font-size: 1.25rem; }
.vitrine-cab p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; max-width: 46ch; }
.vitrine-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.vitrine-acoes .btn { min-height: 40px; padding: 0 14px; }
.vitrine .apl, .lista.vitrine .apl { -webkit-line-clamp: 4; }

/* ------------------------------------------------------------------ Meus pedidos */
.pedidos-lista { display: grid; gap: 10px; padding: 0 0 4px; }
.ped-card {
  display: grid; gap: 4px; width: 100%; text-align: left; padding: 12px 14px; font: inherit; color: var(--txt);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.ped-card.ativo { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.ped-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ped-nome { font-size: 1.02rem; overflow-wrap: anywhere; }
.ped-tag { flex: none; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 2px 8px; border-radius: 99px; background: var(--gold); color: #1a1200; }
.ped-cli { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }

.pedido-vazio { color: var(--muted); text-align: center; padding: 14px 0; }

/* ==================================================================== Visual de loja de autopeças */
/* ---- links do card ---- */
.tit[data-detalhe] { cursor: pointer; }
.tit[data-detalhe]:hover { color: var(--accent); text-decoration: underline; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.link-btn { white-space: nowrap; background: none; border: 0; padding: 2px 0; color: var(--accent); font-weight: 700; font-size: .85rem; text-decoration: underline; text-underline-offset: 2px; }
.link-btn.sim { border: 1px solid var(--accent); border-radius: 99px; padding: 2px 11px; text-decoration: none; }

/* ---- apresentação da página inicial: faixa de ponta a ponta colada no cabeçalho ---- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(110deg, #00265c 0%, var(--brand-2) 55%, #1a5ec2 100%);
  border-bottom: 3px solid var(--gold);
}
.hero::before {                       /* seta grande à esquerda e listras douradas à direita */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(247,198,0,.10) 22px 26px);
  clip-path: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 64px; z-index: -1; pointer-events: none;
  background: rgba(255,255,255,.09); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.hero-in {
  display: grid; gap: 12px; max-width: 1240px; margin: 0 auto;
  padding: 18px max(20px, env(safe-area-inset-right)) 18px max(20px, env(safe-area-inset-left));
}
.hero-tag {
  display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 99px;
  background: var(--gold); color: #1a1200; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.hero h2 {
  margin: 0; font-family: "Archivo", "Arial Narrow", system-ui, sans-serif; font-stretch: 70%; font-weight: 900;
  font-size: 1.9rem; line-height: 1.02; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance;
}
.hero h2 span { display: block; color: var(--gold); }
.hero p { margin: 8px 0 0; opacity: .9; font-size: .95rem; }
.hero-pontos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-pontos li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.hero-pontos li::before {            /* marcador em seta, como no site de referência */
  content: ""; flex: none; width: 9px; height: 12px; margin-top: 4px; background: var(--gold); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.hero-pontos .i { display: none; }
.hero-pontos b { display: block; font-size: .98rem; }
.hero-pontos span { opacity: .92; }
.hero-arte { display: none; }
@media (max-width: 759px) { .hero-pontos { display: none; } .hero::after { width: 36px; } }
@media (min-width: 760px) {
  .hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 28px; padding-block: 28px; padding-inline: max(28px, env(safe-area-inset-left)); }
  .hero h2 { font-size: 2.7rem; }
}
@media (min-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 300px; }
  .hero h2 { font-size: 2.6rem; }
  .hero-arte { display: block; position: relative; height: 150px; }
  .hc {
    position: absolute; width: 190px; padding: 10px 12px 12px; border-radius: 12px; background: #fff; color: #003580;
    box-shadow: 0 10px 26px rgba(0,0,0,.35); display: grid; gap: 6px;
  }
  .hc b { font-size: .78rem; }
  .hc i { display: block; height: 7px; border-radius: 4px; background: #dfe5f7; }
  .hc i:nth-of-type(2) { width: 72%; } .hc i:nth-of-type(3) { width: 48%; }
  .hc em { font-style: normal; font-size: .7rem; font-weight: 800; text-align: center; padding: 5px; border-radius: 7px; background: #003580; color: #fff; }
  .hc1 { left: 0; top: 24px; transform: rotate(-3deg); z-index: 3; }
  .hc2 { left: 58px; top: 6px; transform: rotate(3deg); z-index: 2; opacity: .96; }
  .hc3 { left: 112px; top: 22px; transform: rotate(8deg); z-index: 1; opacity: .9; }
}

/* ---- marcas: faixa que anda sozinha para o lado (pausa ao passar o mouse ou tocar) ---- */
.marcas { margin: 0 0 18px; }
.marcas-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marcas-trilho { display: flex; gap: 14px; width: max-content; padding: 6px 0; animation: marcas-rolar var(--dur, 80s) linear infinite; }
.marcas-viewport:hover .marcas-trilho, .marcas-viewport:focus-within .marcas-trilho, .marcas-viewport:active .marcas-trilho { animation-play-state: paused; }
@keyframes marcas-rolar { to { transform: translateX(-50%); } }
.marca-chip {
  flex: none; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted);
  font-weight: 900; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.marca-chip { cursor: default; user-select: none; }   /* só exposição: não é botão */
@media (prefers-reduced-motion: reduce) {
  .marcas-viewport { overflow-x: auto; }
  .marcas-trilho { animation: none; }
}

/* ---- faixa "Produtos em destaque" ---- */
.vitrine-cab {
  align-items: center; margin: 0 0 12px; padding: 12px 16px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); border-bottom: 3px solid var(--gold);
}
.vitrine-cab h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; }
.vitrine-cab h2 .i { color: var(--gold); }
.vitrine-cab p { color: rgba(255, 255, 255, .8); }
.vitrine-acoes .btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---- vitrine em blocos de produto ---- */
.lista.vitrine { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.lista.vitrine .card { grid-template-columns: 1fr; align-content: start; padding: 10px; }
.lista.vitrine .thumb, .sem-fotos.vitrine .thumb { display: grid; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.lista.vitrine .thumb img { object-fit: contain; background: #fff; }
.lista.vitrine .tit { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; min-height: 3.75em; }
.lista.vitrine .apl, .lista.vitrine .r-ant { display: none; }
.lista.vitrine .chip { font-size: .72rem; padding: 2px 6px; }
.lista.vitrine .rodape { flex-direction: column; align-items: flex-start; }
.lista.vitrine .preco { font-size: 1.2rem; }
.lista.vitrine .acoes { display: grid; gap: 6px; }
.lista.vitrine .btn-add { width: 100%; flex: none; min-height: 44px; }

/* ---- página do produto ---- */
.sheet-panel.largo { max-width: 960px; }
.prod-topo { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.prod-foto {
  position: relative; width: 100%; max-width: 280px; margin: 0 auto; aspect-ratio: 1 / 1; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--muted); display: grid; place-items: center;
}
.prod-foto .ph { width: 44px; height: 44px; stroke-width: 1.5; opacity: .6; }
.prod-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.prod-tit { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.25; overflow-wrap: anywhere; }
.prod-dados { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 14px; margin: 0 0 12px; }
.prod-dados div { min-width: 0; }
.prod-dados dt { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.prod-dados dd { margin: 0; font: 700 .9rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.prod-preco { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.prod-preco .preco { font-size: 1.7rem; }
.prod-apl { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
@media (min-width: 700px) { .prod-topo { grid-template-columns: 260px minmax(0, 1fr); padding: 18px; gap: 22px; } }

.abas { display: flex; gap: 2px; border-bottom: 2px solid var(--line); overflow-x: auto; }
.aba {
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 11px 16px;
  font-weight: 700; color: var(--muted); white-space: nowrap;
}
.aba.ativa { color: var(--accent); border-bottom-color: var(--gold); }
.aba-painel { background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 6px 14px 12px; }
.sim-row {
  display: grid; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tit tit" "meta meta" "est preco" "acao acao";
}
.sim-row:last-child { border-bottom: 0; }
.sim-tit { grid-area: tit; background: none; border: 0; padding: 0; text-align: left; font-weight: 700; color: var(--txt); overflow-wrap: anywhere; }
.sim-tit:hover { color: var(--accent); text-decoration: underline; }
.sim-meta { grid-area: meta; color: var(--muted); font-size: .85rem; }
.sim-est { grid-area: est; }
.sim-preco { grid-area: preco; justify-self: end; font-weight: 800; color: var(--price); font-variant-numeric: tabular-nums; }
.sim-row .acoes { grid-area: acao; }
@media (min-width: 760px) {
  .sim-row { grid-template-columns: minmax(0, 1fr) 150px 100px 210px; grid-template-areas: "tit est preco acao" "meta est preco acao"; }
}

/* ---- computador: cabeçalho de site, lista em linhas ---- */
@media (min-width: 960px) {
  main { max-width: 1240px; padding-top: 18px; }

  .topbar { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; column-gap: 28px; align-items: center; padding-top: 12px; padding-bottom: 0; }
  .topbar-row { display: contents; }
  .brand-btn { padding-bottom: 4px; }
  .topbar .brand { grid-column: 1; grid-row: 1; }
  .topbar-actions { grid-column: 3; grid-row: 1; gap: 10px; }
  .topbar .search { grid-column: 2; grid-row: 1; width: 100%; max-width: 680px; justify-self: center; }
  .subnav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 2px; margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .16); }
  .subnav-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 3px solid transparent; color: #fff; padding: 10px 14px 8px; font-weight: 650; }
  .subnav-btn:hover { border-bottom-color: var(--gold); }
  .subnav-fim { margin-left: auto; align-self: center; font-size: .8rem; opacity: .75; }
  .topbar .statusline { grid-column: 1 / -1; grid-row: 3; padding-bottom: 8px; }

  /* pedidos e carrinho ativo passam a ficar no cabeçalho */
  .barra-pedido { position: static; z-index: auto; border: 0; padding: 0; background: none; box-shadow: none; }
  .bp-in { max-width: none; gap: 8px; }
  .bp-btn { min-height: 44px; }
  .bp-atual { min-width: 220px; max-width: 280px; }
  body.com-pedido main { padding-bottom: 28px; }
  body.com-pedido .toast { bottom: 24px; }

  /* resultados em linhas: foto | descrição e códigos | preço e estoque | quantidade e adicionar */
  .lista:not(.vitrine) { grid-template-columns: 1fr; gap: 8px; }
  .lista:not(.vitrine) .card { grid-template-columns: 92px minmax(0, 1fr); align-items: center; padding: 12px 16px; }
  .lista:not(.vitrine) .info {
    display: grid; grid-template-columns: minmax(0, 1fr) 160px 220px; column-gap: 22px; row-gap: 5px; align-items: center;
    grid-template-areas: "tit rod acao" "chips rod acao" "apl rod acao" "links rod acao";
  }
  .lista:not(.vitrine) .tit { grid-area: tit; }
  .lista:not(.vitrine) .chips { grid-area: chips; }
  .lista:not(.vitrine) .apl { grid-area: apl; -webkit-line-clamp: 2; }
  .lista:not(.vitrine) .links { grid-area: links; }
  .lista:not(.vitrine) .rodape { grid-area: rod; flex-direction: column; align-items: flex-end; justify-content: center; margin: 0; gap: 8px; }
  .lista:not(.vitrine) .acoes { grid-area: acao; }
  .sem-fotos.lista:not(.vitrine) .card { grid-template-columns: minmax(0, 1fr); }
  .lista.vitrine { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ---- janela do pedido: duas colunas (itens à esquerda, resumo à direita) ---- */
.sheet-panel.ped-largo { max-width: 1240px; }
.ped-grid { gap: 14px; }
.ped-esq, .ped-dir { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ped-esq-topo { display: grid; gap: 10px; }
.ped-esq-topo h3 { margin: 0; font-size: 1.1rem; }
.ped-contagem { font-weight: 500; color: var(--muted); font-size: .9rem; }
.ped-ferr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ped-busca {
  flex: 1 1 220px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--muted);
}
.ped-busca:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.ped-busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--txt); font: inherit; }

.p-tabela { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.p-cab { display: none; }
.pedido-itens { display: grid; }
.p-item {
  display: grid; gap: 6px 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line);
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-areas: "foto desc rem" "foto un un" "qtd qtd val";
}
.p-item:last-child { border-bottom: 0; }
.p-foto { grid-area: foto; width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden; align-self: start; }
.p-foto img { width: 100%; height: 100%; object-fit: contain; }
.p-foto .i { color: var(--muted); }
.p-desc { grid-area: desc; min-width: 0; }
.p-tit { font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; font-size: .92rem; }
.p-sub { color: var(--muted); font-size: .8rem; margin-top: 2px; overflow-wrap: anywhere; }
.p-sub b { color: var(--txt); font-weight: 600; }
.p-un { grid-area: un; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.p-item .passo { grid-area: qtd; justify-self: start; }
.p-valor { grid-area: val; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.p-alerta { color: var(--warn); font-size: .78rem; font-weight: 600; margin-top: 2px; }
.p-remover {
  grid-area: rem; display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--danger);
  font-weight: 600; font-size: .82rem; min-height: 36px; padding: 0 6px; border-radius: 8px;
}
.p-remover:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.p-remover .i { width: 1.1em; height: 1.1em; }
.pedido-vazio { margin: 0; padding: 28px 16px; text-align: center; color: var(--muted); }

.ped-dir { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ped-dir-tit { margin: 0; font-size: 1.1rem; }
.ped-dir h4 { margin: 6px 0 0; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.ped-dir .campos { gap: 10px; }
.campo-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.campo-2 > * { min-width: 0; }
.totais { display: grid; gap: 8px; }
.t-lin { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .92rem; }
.t-lin small { color: var(--muted); }
.t-lin b { font-variant-numeric: tabular-nums; }

.totais .pedido-total { border-top: 1px solid var(--line); margin-top: 4px; }
.totais .ajuda { margin: 0; }
.acoes-ped { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acoes-ped .btn { justify-content: center; white-space: nowrap; }
.ped-dir .ajuda { margin: 0; font-size: .8rem; }

@media (min-width: 640px) {
  .p-cab, .p-item { grid-template-columns: 56px minmax(0, 1fr) 80px 136px 92px 40px; }
  .p-cab {
    display: grid; gap: 12px; padding: 9px 12px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--muted); background: color-mix(in srgb, var(--line) 40%, var(--card)); border-bottom: 1px solid var(--line);
  }
  .p-cab .d { text-align: right; } .p-cab .c { text-align: center; }
  .p-item { grid-template-areas: "foto desc un qtd val rem"; padding: 10px 12px; }
  .p-foto { align-self: center; }
  .p-un { text-align: right; color: var(--txt); font-size: .9rem; }
  .p-item .passo { justify-self: center; }
  .p-item .passo button { width: 38px; height: 40px; }
  .p-item .passo input { width: 42px; }
  .p-remover { justify-self: end; width: 36px; padding: 0; justify-content: center; }
  .p-remover span { display: none; }
}
@media (min-width: 900px) {
  .ped-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; overflow: hidden; height: min(80dvh, 780px); padding-bottom: 16px; }
  .ped-esq, .ped-dir { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .ped-esq { padding-right: 4px; }
}

/* ---- janela do pedido: faixa azul da identidade (até o título "Produtos no carrinho") ---- */
.ped-head {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 70%, #1a5ec2 100%); color: #fff;
  border-bottom: 3px solid var(--gold); border-radius: 20px 20px 0 0; margin-bottom: 6px; flex: none;
}
.ped-head .sheet-head { padding-bottom: 2px; }
.ped-head .sheet-head h2 { color: #fff; }
.ped-head .marca-mini { filter: drop-shadow(0 0 1px rgba(255,255,255,.6)); }
.ped-head .icon-btn { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.ped-subtit { display: grid; gap: 12px; padding: 4px 20px 12px; }
.ped-subtit h3 { margin: 0; font-size: 1.05rem; color: #fff; }
.ped-subtit .ped-contagem { color: var(--gold); font-weight: 700; }
.ped-subtit-dir, .ped-dir-tit { display: none; }
@media (max-width: 899px) { .ped-dir-tit { display: block; } }
@media (min-width: 900px) {
  .ped-subtit { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 14px; padding: 6px 16px 12px 20px; }
  .ped-subtit-dir { display: block; padding-left: 14px; }
}
.ped-esq-topo { gap: 10px; }

.cli-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: color-mix(in srgb, var(--line) 25%, var(--card)); display: grid; gap: 6px; }
.cli-linha { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cli-linha b { overflow-wrap: anywhere; }
.cli-sit { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--est-ok-bg); color: var(--est-ok-txt); white-space: nowrap; }
.cli-sit::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.cli-sit.inativo { background: var(--est-zero-bg); color: var(--est-zero-txt); }
.cli-dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: .88rem; }
.cli-dl dt { color: var(--muted); } .cli-dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.cli-aviso { margin: 0; font-size: .8rem; color: var(--warn); font-weight: 600; }
.campos-manual { display: grid; gap: 10px; }
.acoes-ped.um { grid-template-columns: 1fr; }
.acoes-ped { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acoes-ped .btn { min-width: 0; padding-inline: 8px; gap: 6px; }
.acoes-ped.um { grid-template-columns: minmax(0, 1fr); }

/* rolagem da janela do pedido: cada coluna rola sozinha dentro da altura da janela */
.ped-grid { min-height: 0; }
@media (min-width: 900px) {
  .ped-grid { grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .ped-esq, .ped-dir { min-height: 0; max-height: none; height: 100%; overflow-y: auto; }
  .ped-esq .p-tabela { flex: none; }
}

/* carrinho: tipografia mais leve, só o que importa (código e valores) fica em destaque */
.p-tit { font-weight: 500; font-size: .9rem; color: color-mix(in srgb, var(--txt) 88%, var(--muted)); letter-spacing: .005em; }
.p-sub { font-weight: 400; }
.p-sub b { font-weight: 600; color: color-mix(in srgb, var(--txt) 80%, var(--muted)); }
.p-valor { font-weight: 700; font-size: .95rem; }
.p-un { font-weight: 400; }
.p-cab { font-weight: 600; }
.passo input { font-weight: 500; }

/* ---- cabeçalho enxuto e centralizado ---- */
.pill.on { display: none; }                         /* "Online" não precisa aparecer; só avisa quando está sem internet */
.statusline:has(#contagem:empty) { display: none; }
.statusline { justify-content: center; margin-top: 8px; }
@media (min-width: 960px) {
  .topbar {
    grid-template-columns: auto minmax(280px, 1fr) auto; column-gap: 24px; padding-block: 12px;
    padding-inline: max(24px, calc((100% - 1240px) / 2 + 12px));
  }
  .topbar .search { max-width: 640px; }
  .topbar .search input, .topbar .bp-btn, .topbar .icon-btn { height: 46px; min-height: 46px; }
  .topbar .icon-btn { width: 46px; }
  .topbar .bp-in { align-items: center; }
  .bp-atual { min-width: 200px; max-width: 240px; }
  .brand-btn { padding-bottom: 0; }
  .topbar .statusline { grid-row: 2; padding-bottom: 0; margin-top: 6px; justify-content: center; }
}

/* ---- filtros: painel lateral (computador) e bandeja (celular) ---- */
.loja { display: block; }
.loja-col { min-width: 0; }
.filtros-fundo { position: fixed; inset: 0; z-index: 55; background: rgba(8, 20, 50, .5); }
.filtros-lat {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(90vw, 360px);
  display: flex; flex-direction: column; background: var(--card); box-shadow: 6px 0 28px rgba(0, 0, 0, .28);
  transform: translateX(-105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
}
body.filtros-aberto .filtros-lat { transform: none; visibility: visible; transition: transform .25s ease; }
body.filtros-aberto { overflow: hidden; }
.fl-head {
  display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 70%, #1a5ec2 100%); color: #fff; border-bottom: 3px solid var(--gold);
}
.fl-head h2 { margin: 0; font-size: 1.1rem; flex: 1; }
.fl-head .link-btn { color: var(--gold); }
.fl-head .icon-btn { background: rgba(255, 255, 255, .14); color: #fff; }
.fl-corpo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 14px 8px; }
.fl-sec { border-bottom: 1px solid var(--line); padding: 10px 0 12px; display: grid; gap: 8px; }
.fl-sec > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: .95rem; min-height: 32px;
}
.fl-sec > summary::-webkit-details-marker { display: none; }
.fl-sec > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.fl-sec[open] > summary::after { transform: rotate(225deg); }
.fl-sec .entrada { min-height: 42px; font-size: 16px; }

.sug {
  min-height: 34px; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--card);
  color: var(--txt); font-size: .84rem; font-weight: 500;
}
.sug small { color: var(--muted); margin-left: 4px; }
.sug:hover { border-color: var(--accent); color: var(--accent); }

.fl-checks { max-height: 232px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 2px 10px; }
.ck { min-height: 36px; font-weight: 500; font-size: .92rem; gap: 10px; }
.ck input { width: 18px; height: 18px; }
.ck span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ck small { color: var(--muted); font-variant-numeric: tabular-nums; }
.fl-sec > .check.ck { min-height: 34px; }
.fl-rodape {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--card);
}
.btn-filtros .cont { min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--gold); color: #1a1200; font-size: .75rem; font-weight: 800; text-align: center; }
@media (min-width: 960px) {
  .loja { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 22px; align-items: start; }
  .filtros-lat {
    position: sticky; top: 88px; left: auto; bottom: auto; z-index: auto; width: auto; max-height: calc(100dvh - 104px);
    transform: none; visibility: visible; transition: none; box-shadow: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  }
  .filtros-fundo, .fl-fechar, .fl-rodape, .btn-filtros { display: none !important; }
  .fl-head { padding: 12px 14px; border-radius: 0; }
  .ferramentas:has(.ordem[hidden]) { display: none; }
  .ferramentas { justify-content: flex-end; }
}
.fl-sec .faixa { margin-top: 2px; }

/* Grupo > subgrupo no painel de filtros */
.fl-grupos { max-height: 300px; padding: 2px 6px 2px 10px; }
.gp-linha { display: flex; align-items: center; gap: 2px; }
.gp-linha .check { flex: 1; min-width: 0; }
.gp-seta { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; }
.gp-seta:hover { background: var(--bg-soft, #eef2f8); color: var(--brand); }
.gp-seta .i { width: 16px; height: 16px; transition: transform .15s; }
.gp.aberto > .gp-linha .gp-seta .i { transform: rotate(180deg); }
.gp-subs { margin: 0 0 6px 12px; padding-left: 10px; border-left: 2px solid var(--line); }
.gp-subs .ck { min-height: 32px; font-size: .88rem; font-weight: 400; }

/* ===== Painel de filtros — visual mais leve e organizado ===== */
.filtros-lat { --fl-borda: #cbd5e3; }
.fl-corpo { padding: 0 16px 10px; }
.fl-sec { padding: 14px 0 14px; gap: 10px; }
.fl-sec > summary { font-size: .8rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--brand); }
.fl-sec > summary::after { width: 6px; height: 6px; border-width: 0 1.6px 1.6px 0; }

/* campos de busca menores, com lupa */
.filtros-lat .entrada {
  min-height: 36px; height: 36px; padding: 0 12px 0 34px; font-size: .88rem; border-radius: 9px; border: 1px solid var(--fl-borda); background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a97ab' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px 50% / 15px;
}
.filtros-lat .entrada:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 53, 128, .12); outline: 0; }
.filtros-lat .entrada::-webkit-search-cancel-button { display: none; }
@media (max-width: 959px) { .filtros-lat .entrada { font-size: 16px; } }

/* caixas e bolinhas: brancas, com contorno azul ao marcar */
.filtros-lat input[type=checkbox], .filtros-lat input[type=radio] {
  appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; background: #fff;
  border: 1.6px solid #aab6c8; cursor: pointer; transition: border-color .12s, box-shadow .12s;
}
.filtros-lat input[type=checkbox] { border-radius: 6px; }
.filtros-lat input[type=radio] { border-radius: 50%; }
.filtros-lat input[type=checkbox]:checked { border-color: var(--brand); background: #fff
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003580' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 12px; }
.filtros-lat input[type=radio]:checked { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 4.5px, #fff 5px); }
.filtros-lat input:focus-visible { box-shadow: 0 0 0 3px rgba(0, 53, 128, .2); outline: 0; }

/* linhas de lista: respiro e quebra de texto longa */
.filtros-lat .ck { display: flex; align-items: center; gap: 10px; min-height: 0; padding: 7px 8px; margin: 1px 0; border-radius: 8px; font-size: .86rem; font-weight: 500; line-height: 1.3; color: var(--txt); }
.filtros-lat .ck:hover { background: #f2f5fa; }
.filtros-lat .ck:has(input:checked) { background: #eaf1fb; color: var(--brand); font-weight: 600; }
.filtros-lat .ck span { flex: 1; min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.filtros-lat .ck small { flex: none; min-width: 26px; text-align: right; font-size: .72rem; color: #8a97ab; font-weight: 500; }
.filtros-lat .fl-checks { max-height: 252px; border: 0; border-radius: 0; padding: 0 4px 0 0; margin-right: -4px; scrollbar-width: thin; }
.filtros-lat .fl-grupos { max-height: 300px; }
.gp-linha { gap: 0; }
.gp-seta { width: 30px; height: 30px; }
.gp-subs { margin: 0 0 6px 17px; padding-left: 8px; border-left: 2px solid #dbe3ef; }
.gp-subs .ck { padding: 6px 8px; font-size: .82rem; font-weight: 400; }
.filtros-lat .fl-sec > .ajuda { margin: 0; font-size: .82rem; }

.sug { padding: 4px 10px; font-size: .78rem; border-radius: 999px; border: 1px solid var(--fl-borda); background: #fff; color: var(--txt); cursor: pointer; }
.sug:hover { border-color: var(--brand); color: var(--brand); }

/* preço */
.filtros-lat .faixa { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* disponibilidade */
.fl-sec .opcoes { display: grid; gap: 0; }
.fl-sec .opcoes + .opcoes { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.fl-sec { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.fl-sec > * { min-width: 0; }
.filtros-lat .faixa { grid-template-columns: repeat(2, minmax(0, 1fr)); }

 

/* Preço: linha com duas bolinhas */
.fp { display: grid; gap: 8px; padding: 2px 4px 0; }
.fp-valores { display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.fp-trilho { position: relative; height: 26px; }
.fp-trilho::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 6px; border-radius: 6px; background: #dfe6f1; }
.fp-barra { position: absolute; top: 10px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.fp-trilho input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 26px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.fp-trilho input[type=range]::-webkit-slider-runnable-track { background: none; height: 26px; }
.fp-trilho input[type=range]::-moz-range-track { background: none; height: 26px; }
.fp-trilho input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(0, 32, 90, .3); cursor: grab; transition: transform .12s; }
.fp-trilho input[type=range]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(0, 32, 90, .3); cursor: grab; }
.fp-trilho input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); cursor: grabbing; background: var(--gold); }
.fp-trilho input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(0, 53, 128, .25); }
.fp-escala { display: flex; justify-content: space-between; font-size: .72rem; color: #8a97ab; }

/* ===== Filtros: botão "Limpar tudo" ===== */
.btn-limpar-tudo {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 9px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #ffd92e, #f0b400); color: #1a1200; font: 800 .76rem/1 sans-serif; font-family: inherit; letter-spacing: .2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22); cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn-limpar-tudo[hidden] { display: none; }
.btn-limpar-tudo .i { width: 16px; height: 16px; transition: transform .3s; }
.btn-limpar-tudo:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.btn-limpar-tudo:hover .i { transform: rotate(-12deg) scale(1.1); }
.btn-limpar-tudo:active { transform: scale(.96); }
.fl-head .btn-limpar-tudo { animation: pc-pop .25s ease-out; }

/* ===== Cabeçalho: tudo centralizado e botões mais compactos ===== */
@media (min-width: 960px) {
  .topbar { grid-template-columns: auto minmax(260px, 1fr) auto; column-gap: 32px; }
  .topbar .brand { justify-self: start; }
  .topbar-actions { justify-self: end; }
  .topbar .search { max-width: 560px; justify-self: center; }
  .topbar .search input, .topbar .icon-btn { height: 44px; min-height: 44px; }
  .topbar .icon-btn { width: 44px; }
  .topbar .bp-btn { height: 42px; min-height: 42px; }
  .bp-atual { min-width: 168px; max-width: 220px; }
}
.bp-btn { border-radius: 999px; min-height: 44px; padding: 4px 6px 4px 14px; gap: 8px; transition: transform .15s, box-shadow .15s, background .15s; }
.bp-btn:hover { transform: translateY(-1px); }
.bp-lista { padding: 4px 8px 4px 14px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); font-size: .9rem; }
.bp-lista:hover { background: rgba(255, 255, 255, .2); }
.bp-lista .i { width: 18px; height: 18px; }
.bp-n { min-width: 22px; padding: 2px 6px; font-size: .78rem; }
.bp-atual { background: linear-gradient(135deg, #ffd92e, #f0b400); box-shadow: 0 2px 10px rgba(240, 180, 0, .35); }
.bp-atual:hover { box-shadow: 0 4px 14px rgba(240, 180, 0, .5); }
.bp-nome { font-size: .88rem; }
.bp-info { font-size: .72rem; }
.bp-atual > .i { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--brand); color: #fff; }

/* botões do carrinho: Adicionar peças / Meus pedidos */
.ped-ferr .btn { min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: .86rem; gap: 6px; transition: transform .15s, box-shadow .15s, background .15s; }
.ped-ferr .btn .i { width: 16px; height: 16px; }
.ped-ferr #btn-mais-pecas { background: linear-gradient(135deg, #ffd92e, #f0b400); border-color: transparent; color: #1a1200; font-weight: 800; box-shadow: 0 2px 8px rgba(240, 180, 0, .35); }
.ped-ferr #btn-mais-pecas:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(240, 180, 0, .5); }
.ped-ferr #btn-ver-pedidos { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); background: #f3f7fd; }
.ped-ferr #btn-ver-pedidos:hover { background: #e6eefb; }

/* ===== Meus pedidos ===== */
@keyframes pc-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pc-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes pd-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pd-pulso { 0% { box-shadow: 0 0 0 0 rgba(18, 161, 80, .55); } 100% { box-shadow: 0 0 0 7px rgba(18, 161, 80, 0); } }

.pedidos-panel { max-width: 780px; overflow: hidden; }
.pd-head {
  position: relative; flex: none; overflow: hidden; color: #fff; padding-bottom: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 65%, #1a5ec2 100%); border-bottom: 3px solid var(--gold);
}
.pd-arte { position: absolute; top: 0; right: 64px; width: min(360px, 62%); height: 100%; pointer-events: none; }

.pd-folha { animation: pd-flutua 4.2s ease-in-out infinite; }
.pd-f2 { animation-delay: -1.4s; } .pd-f3 { animation-delay: -2.8s; }
.pd-head .sheet-head { position: relative; padding: 16px 16px 4px 20px; }
.pd-head h2 { color: #fff; font-size: 1.35rem; }
.pd-head h2 span { display: grid; line-height: 1.15; }
.pd-head h2 small { font-size: .78rem; font-weight: 500; opacity: .8; }
.pd-head .marca-mini { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .6)); height: 40px; }
.pd-head .icon-btn { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); }
.pd-resumo { position: relative; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 20px 0; }
.pd-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); font-size: .78rem; animation: pc-pop .4s ease-out both; }
.pd-stat b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.pd-stat.ouro { background: var(--gold); color: #1a1200; box-shadow: none; }
.pd-stat:nth-child(2) { animation-delay: .06s; } .pd-stat:nth-child(3) { animation-delay: .12s; }

.pedidos-panel .sheet-body { padding-top: 14px; gap: 10px; }
.pd-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pd-grade .pedidos-lista { display: contents; }
@media (max-width: 719px) { .pd-grade { grid-template-columns: minmax(0, 1fr); } }

/* botão "Novo pedido": faixa tracejada com mais animada e brilho */
.pd-novo {
  position: relative; overflow: hidden; grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 8px 16px; border-radius: 16px; font: inherit; cursor: pointer;
  color: var(--brand); background: linear-gradient(135deg, #fffbe6, #fff3bf); border: 2px dashed #e0b400;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.pd-novo:hover { transform: translateY(-2px); border-style: solid; box-shadow: 0 8px 20px rgba(240, 180, 0, .35); }
.pd-novo:active { transform: scale(.985); }
.pd-mais, .pd-novo-txt { position: relative; z-index: 1; }
.pd-mais { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand); box-shadow: 0 3px 10px rgba(0, 53, 128, .35); transition: transform .3s; }
.pd-mais .i { width: 20px; height: 20px; stroke-width: 2.6; }
.pd-novo:hover .pd-mais { transform: rotate(90deg) scale(1.08); background: var(--gold); color: var(--brand); }
.pd-novo-txt { display: grid; text-align: left; line-height: 1.2; }
.pd-novo-txt b { font-size: 1rem; }
.pd-novo-txt small { color: #7a6200; font-size: .76rem; font-weight: 600; }

/* cartão de pedido */
.ped-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  padding: 14px 14px 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15, 35, 80, .06);
  animation: pc-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ped-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #b9c9e4, #dbe4f2); transition: width .2s; }
.ped-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 35, 80, .14); border-color: #b9c9e4; }
.ped-card:hover::before { width: 9px; }
.ped-card:active { transform: translateY(0) scale(.99); }
.ped-card.ativo { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(0, 53, 128, .18), 0 8px 22px rgba(0, 53, 128, .12); background: linear-gradient(135deg, #fff 60%, #f1f6ff); }
.ped-card.ativo::before { background: linear-gradient(180deg, #ffd92e, #f0b400); }
.pc-num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: var(--brand); background: #eaf1fb; font-variant-numeric: tabular-nums; }
.ped-card.ativo .pc-num { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 3px 10px rgba(0, 53, 128, .35); }
.pc-corpo { display: grid; gap: 3px; min-width: 0; }
.ped-nome { font-size: 1.05rem; }
.ped-cli { font-size: .82rem; }
.ped-tag { display: inline-flex; align-items: center; gap: 5px; text-transform: none; letter-spacing: 0; color: #0b6b36; background: #dff5e8; font-size: .7rem; }
.ped-tag i { width: 7px; height: 7px; border-radius: 50%; background: #12a150; animation: pd-pulso 1.6s infinite; }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; margin-top: 2px; }
.pc-chip { padding: 2px 9px; border-radius: 999px; background: #f0f4fa; color: #3b4a63; font-size: .72rem; font-weight: 600; }
.pc-chip.sem { background: none; border: 1px dashed #b9c4d6; color: #7b8aa3; }
.pc-data { font-size: .72rem; color: #8a97ab; }
.pc-lado { display: grid; justify-items: end; gap: 4px; }
.pc-fotos { display: flex; }
.pc-foto { width: 26px; height: 26px; border-radius: 50%; object-fit: contain; background: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px #d5deec; margin-left: -8px; }
.pc-foto:first-child { margin-left: 0; }
.pc-foto.sem { display: inline-block; background: #eef2f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa8bf' stroke-width='2'%3E%3Cpath d='m7.5 4.3 9 5.2M21 8v8l-9 5-9-5V8l9-5Z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pc-foto.mais { display: grid; place-items: center; font: 800 .62rem/1 sans-serif; font-family: inherit; font-style: normal; color: var(--brand); background: #eaf1fb; }
.ped-card .pc-total { font-size: 1.12rem; color: var(--price); font-variant-numeric: tabular-nums; }
.ped-card.sem .pc-total { color: #9aa8bf; }
.pc-abrir { display: inline-flex; align-items: center; gap: 2px; font-size: .74rem; font-weight: 700; color: var(--brand); opacity: .7; transition: opacity .15s, transform .2s; }
.pc-abrir .i { width: 14px; height: 14px; transform: rotate(-90deg); }
.ped-card:hover .pc-abrir { opacity: 1; transform: translateX(3px); }
@media (max-width: 419px) { .ped-card { grid-template-columns: auto minmax(0, 1fr); } .pc-lado { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; } .pc-lado .pc-total { justify-self: end; } }
.pd-dica { margin: 4px 2px 0; text-align: center; font-size: .78rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ped-card, .pd-stat, .pd-folha, .pd-novo::after, .ped-tag i, .btn-limpar-tudo { animation: none !important; } }
@media (max-width: 559px) { .pd-arte { opacity: .35; right: 56px; } }
@media (max-width: 419px) {
  .pc-lado { grid-template-columns: auto 1fr; }
  .pc-lado .pc-abrir { display: none; }
  .ped-card.sem .pc-lado { display: none; }
}
@media (min-width: 960px) { .topbar-actions { min-width: max-content; } .topbar-actions .barra-pedido { flex: none; } .bp-atual { min-width: 190px; } }

.lab-cont { display: flex; justify-content: space-between; align-items: baseline; }
.lab-cont small { color: #8a97ab; font-variant-numeric: tabular-nums; }

/* logo oficial no topo */
.brand .logo-topo { height: 58px; width: auto; display: block; flex: none; }
@media (max-width: 479px) { .brand .logo-topo { height: 40px; } }
.brand-btn { gap: 0; }
/* nome do pedido: uma linha só, até o fim do cartão (reticências se passar) */
.ped-topo { flex-wrap: nowrap; }
.ped-card .ped-nome { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.ped-card .ped-tag { flex: none; }

/* =====================================================================
 * LOGIN
 * ===================================================================== */
body.sem-login > :not(#login):not(svg):not(script) { display: none !important; }
.login {
  position: fixed; inset: 0; z-index: 200; overflow-y: auto; color: #fff;
  background: radial-gradient(1200px 600px at 15% 10%, #0d4fb0 0%, transparent 60%), linear-gradient(160deg, #00245a 0%, #003580 45%, #0a3f94 100%);
}
.lg-cena { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }

.lg-wrap { position: relative; min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 440px); gap: clamp(28px, 6vw, 90px); align-items: center;
  max-width: 1120px; margin: 0 auto; padding-block: 48px 90px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.lg-marca { display: grid; gap: 14px; justify-items: start; }
.lg-marca > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.login.ligado .lg-marca > * { opacity: 1; transform: none; }
.login.ligado .lg-marca > :nth-child(2) { transition-delay: .08s; } .login.ligado .lg-marca > :nth-child(3) { transition-delay: .16s; }
.login.ligado .lg-marca > :nth-child(4) { transition-delay: .24s; } .login.ligado .lg-marca > :nth-child(5) { transition-delay: .32s; }
.lg-logo { width: min(300px, 70%); height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.25)); }
.lg-tit { margin: 6px 0 0; font-family: "Archivo", "Arial Black", system-ui, sans-serif; font-weight: 900; font-stretch: 85%; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.02; letter-spacing: -.5px; text-transform: uppercase; }
.lg-tit span { color: var(--gold); }

.lg-card { position: relative; display: grid; gap: 8px; padding: 30px 28px 24px; border-radius: 22px; background: #fff; color: var(--txt);
  box-shadow: 0 30px 60px rgba(0, 12, 40, .45), 0 0 0 1px rgba(255,255,255,.4); border-top: 5px solid var(--gold);
  opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .55s ease .15s, transform .6s cubic-bezier(.2,.8,.2,1) .15s; }
.login.ligado .lg-card { opacity: 1; transform: none; }
.login.entrou .lg-card { opacity: 0; transform: translateY(-14px) scale(.97); transition-delay: .25s; }
.login.entrou { animation: lg-sai .5s ease .55s forwards; }
@keyframes lg-sai { to { opacity: 0; } }
.lg-selo { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: #eaf1fb; color: var(--brand); font-size: .72rem; font-weight: 700; }
.lg-selo .i { width: 13px; height: 13px; }
.lg-card h2 { margin: 6px 0 0; font-size: 1.7rem; color: var(--brand); }
.lg-dica { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.lg-rot { margin-top: 6px; font-size: .78rem; font-weight: 700; color: #3b4a63; }
.lg-campo { display: flex; align-items: center; gap: 4px; height: 50px; padding: 0 6px 0 14px; border: 1.5px solid #cbd5e3; border-radius: 12px; background: #f8fafd; transition: border-color .15s, box-shadow .15s, background .15s; }
.lg-campo:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(0,53,128,.12); }
.lg-campo.erro { border-color: #e2553a; box-shadow: 0 0 0 4px rgba(226,85,58,.12); }
.lg-campo > .i { width: 19px; height: 19px; color: #8a97ab; flex: none; }
.lg-campo:focus-within > .i { color: var(--brand); }
.lg-campo input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 8px; font: 500 1rem/1 sans-serif; font-family: inherit; color: var(--txt); }
.lg-ver { width: 38px; height: 38px; border: 0; border-radius: 9px; background: none; color: #8a97ab; display: grid; place-items: center; cursor: pointer; }
.lg-ver:hover { background: #eef2f8; color: var(--brand); } .lg-ver .i { width: 19px; height: 19px; }
.lg-linha { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0 2px; font-size: .86rem; }
.lg-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #3b4a63; }
.lg-check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border: 1.6px solid #aab6c8; border-radius: 6px; background: #fff; cursor: pointer; }
.lg-check input:checked { border-color: var(--brand); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003580' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 12px; }
.lg-link { color: var(--brand); font-weight: 700; text-decoration: none; } .lg-link:hover { text-decoration: underline; }
.lg-erro { margin: 2px 0 0; padding: 9px 12px; border-radius: 10px; background: #fdecea; color: #b42318; font-size: .86rem; font-weight: 600; }
.lg-card.treme { animation: lg-treme .42s cubic-bezier(.36,.07,.19,.97); }
@keyframes lg-treme { 15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(5px); } 45%, 55% { transform: translateX(-7px); } }
.lg-entrar { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; margin-top: 8px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font: 800 1.05rem/1 sans-serif; font-family: inherit; letter-spacing: .3px;
  box-shadow: 0 8px 20px rgba(0,53,128,.35); transition: transform .15s, box-shadow .15s; }
.lg-entrar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.lg-entrar:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,53,128,.45); }
.lg-entrar:hover::after { transform: scaleX(1); }
.lg-entrar:active { transform: scale(.98); }
/* roda (pneu com aro) que aparece girando enquanto confere o acesso */
.lg-roda { display: none; width: 24px; height: 24px; border-radius: 50%; border: 4px solid #0b1a33; background: radial-gradient(circle, var(--gold) 0 3px, #cfd8e6 3.5px 5px, transparent 5.5px),
  conic-gradient(from 0deg, #cfd8e6 0 10%, transparent 10% 25%, #cfd8e6 25% 35%, transparent 35% 50%, #cfd8e6 50% 60%, transparent 60% 75%, #cfd8e6 75% 85%, transparent 85%); box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.lg-entrar.carregando { pointer-events: none; }
.lg-entrar.carregando .lg-roda { display: block; animation: lg-roda .6s linear infinite; }
@keyframes lg-roda { to { transform: rotate(360deg); } }
.lg-sep { display: flex; align-items: center; gap: 10px; margin: 12px 0 2px; color: var(--muted); font-size: .8rem; }
.lg-sep::before, .lg-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lg-whats { display: flex; align-items: center; justify-content: center; gap: 9px; height: 48px; border-radius: 14px; border: 1.5px solid #19a35a; color: #0d7a41; background: #effaf3; font-weight: 800; text-decoration: none; transition: background .15s, transform .15s; }
.lg-whats:hover { background: #dcf5e6; transform: translateY(-1px); }
.lg-whats .i { width: 21px; height: 21px; }
.lg-rodape { margin: 4px 0 0; text-align: center; font-size: .78rem; color: var(--muted); }

@media (max-width: 879px) {
  .lg-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 28px 80px; align-content: start; }
  .lg-marca { justify-items: center; text-align: center; }
  .lg-logo { width: min(240px, 72%); }
  .lg-tit { font-size: 2rem; }
  .lg-card { padding: 24px 20px 20px; }
}

/* botão da conta no topo */
.conta-btn { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.conta-btn[hidden] { display: none; }
.conta-ini { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: var(--brand); background: linear-gradient(135deg, #ffd92e, #f0b400); box-shadow: 0 0 0 2px rgba(255,255,255,.55); transition: transform .15s; }
.conta-btn:hover .conta-ini { transform: scale(1.06); }
.conta-ini.grande { width: 56px; height: 56px; font-size: 1.2rem; box-shadow: none; flex: none; }
.conta-panel { max-width: 440px; }
.conta-panel .sheet-body { gap: 12px; }
.conta-card { display: flex; align-items: center; gap: 14px; }
.conta-card > div { display: grid; gap: 2px; min-width: 0; }
.conta-card b { font-size: 1.05rem; }
.conta-card #conta-doc { color: var(--muted); font-size: .85rem; }
.conta-card .cli-sit { justify-self: start; }
.conta-panel .btn { justify-content: center; }

/* =====================================================================
 * BUSCA SEM RESULTADO
 * ===================================================================== */
.sem-resultado { display: grid; gap: 16px; max-width: 720px; margin: 8px auto 24px; padding: 22px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 6px 24px rgba(15,35,80,.07); animation: pc-in .4s ease both; }
.sem-resultado[hidden] { display: none; }
.sr-cab { display: flex; gap: 14px; align-items: flex-start; }
.sr-icone { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff6cc; color: #8a6d00; }
.sr-icone .i { width: 24px; height: 24px; }
.sr-cab h3 { margin: 0; font-size: 1.15rem; color: var(--txt); overflow-wrap: anywhere; }
.sr-cab h3 span { color: var(--brand); }
.sr-cab p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.sr-bloco { display: grid; gap: 8px; }
.sr-bloco h4 { margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .6px; color: var(--brand); }
.sr-sug { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border: 1.5px solid #cdd9ee; border-radius: 999px; background: #f5f8fd; color: var(--brand); font: 700 .9rem/1 sans-serif; font-family: inherit; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.sr-chip small { padding: 3px 8px; border-radius: 999px; background: #fff; color: #5b6b85; font-size: .72rem; font-weight: 700; }
.sr-chip:hover { transform: translateY(-1px); border-color: var(--brand); background: #eaf1fb; }
.sr-chip.sr-sem-f { color: #7a5b00; background: #fff8db; border-color: #f0d36b; }

/* relatório (Base de dados) */
.ajuda-inline { font-weight: 500; color: var(--muted); font-size: .78rem; margin-left: 6px; }
.rel-buscas { overflow-x: auto; }
.rel-buscas table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.rel-buscas th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rel-buscas td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rel-buscas td small { display: block; color: var(--muted); font-size: .74rem; }

.rel-vazio { margin: 0; padding: 14px; text-align: center; color: var(--muted); background: #f6f8fc; border-radius: 10px; font-size: .88rem; }
.rel-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* =====================================================================
 * MEUS PEDIDOS: abas, histórico e "comprar de novo"
 * ===================================================================== */
.pd-abas { display: flex; gap: 6px; padding: 12px 20px 0; background: #fff; border-bottom: 1px solid var(--line); flex: none; }
.pd-aba { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 12px; border: 0; background: none; font: 700 .92rem/1 sans-serif; font-family: inherit; color: var(--muted); cursor: pointer; }
.pd-aba::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.pd-aba.ativa { color: var(--brand); } .pd-aba.ativa::after { transform: scaleX(1); }
.pd-aba:hover { color: var(--brand); }
.pd-aba-n { min-width: 22px; padding: 3px 7px; border-radius: 999px; background: #eaf1fb; color: var(--brand); font-size: .74rem; }
.pd-aba.ativa .pd-aba-n { background: var(--brand); color: #fff; }

.hist-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 719px) { .hist-lista { grid-template-columns: minmax(0, 1fr); } }
.hist-card { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15,35,80,.06);
  animation: pc-in .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms); transition: box-shadow .18s, transform .18s, opacity .25s; }
.hist-card:hover { box-shadow: 0 10px 24px rgba(15,35,80,.12); }
.hist-card.saindo { opacity: 0; transform: scale(.96); }
.hist-card:has(.hc-itens:not([hidden])) { grid-column: 1 / -1; }
.hc-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hc-data { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); font-weight: 600; }
.hc-data .i { width: 14px; height: 14px; }
.hc-total { color: var(--price); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.hc-nome { font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-meio { display: flex; align-items: center; gap: 10px; }
.hc-meta { font-size: .8rem; color: #3b4a63; font-weight: 600; }
.hc-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.hc-repetir { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #ffd92e, #f0b400); color: #1a1200; font: 800 .88rem/1 sans-serif; font-family: inherit; box-shadow: 0 3px 10px rgba(240,180,0,.35); transition: transform .15s, box-shadow .15s; }
.hc-repetir .i { width: 16px; height: 16px; transition: transform .45s; }
.hc-repetir:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(240,180,0,.5); }
.hc-repetir:hover .i { transform: rotate(180deg); }
.hc-sec { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand); font: 700 .82rem/1 sans-serif; font-family: inherit; cursor: pointer; }
.hc-sec .i { width: 15px; height: 15px; }
.hc-sec:hover { background: #f3f7fd; }
.hc-apagar { margin-left: auto; color: #b42318; padding: 0 11px; }
.hc-apagar.armado { background: #fdecea; border-color: #f5b5ab; }
.hc-itens { overflow-x: auto; border-top: 1px dashed var(--line); padding-top: 8px; animation: pc-in .3s ease both; }
.hc-itens table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.hc-itens th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 5px 6px; }
.hc-itens td { padding: 6px; border-top: 1px solid #eef2f7; vertical-align: top; }
.hc-itens td small { display: block; color: var(--muted); font-size: .72rem; }
.hc-itens .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; }
.hc-subiu { color: #b42318; font-weight: 700; } .hc-desceu { color: #0b6b36; font-weight: 700; }
.hc-fora { color: #9a3412; font-size: .74rem; font-weight: 700; }
.hist-vazio { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; padding: 28px 16px; text-align: center; border: 2px dashed #d5deec; border-radius: 18px; color: var(--muted); }
.hist-vazio b { color: var(--txt); font-size: 1.02rem; }
.hist-vazio p { margin: 0; max-width: 46ch; font-size: .88rem; }
.hv-icone { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #eaf1fb; color: var(--brand); animation: pd-flutua 3.5s ease-in-out infinite; }
.hv-icone .i { width: 26px; height: 26px; }

/* carrinho: faixa depois de exportar/enviar */
.ped-enviado { display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #ecfbf2; border: 1px solid #b6e6c8; }
.ped-enviado.entra { animation: pc-in .4s cubic-bezier(.2,.8,.2,1) both; }
.ped-enviado p { display: flex; gap: 10px; margin: 0; font-size: .86rem; color: #14532d; }
.ped-enviado p .i { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #19a35a; color: #fff; }
.ped-enviado > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn-arquivar { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: 800 .84rem/1 sans-serif; font-family: inherit; cursor: pointer; }
.btn-arquivar .i { width: 16px; height: 16px; }

.lg-card { grid-template-columns: minmax(0, 1fr); } .lg-campo input { width: 100%; }
/* sugestões: o texto inteiro sempre aparece (quebra linha se precisar) */
.sem-resultado { max-width: 900px; }
.sr-chip { max-width: 100%; height: auto; min-height: 40px; white-space: normal; text-align: left; line-height: 1.25; }
.sr-chip span { min-width: 0; overflow: visible; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.sr-chip small { flex: none; }

/* ---- Login: notebook com o sistema e peças flutuando na frente ---- */
.lg-luz { position: absolute; border-radius: 50%; filter: blur(80px); }
.lg-luz.l1 { width: 620px; height: 620px; left: -120px; top: 10%; background: rgba(56, 140, 255, .35); }
.lg-luz.l2 { width: 420px; height: 420px; left: 30%; bottom: -160px; background: rgba(247, 198, 0, .16); }
.lg-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 420px); max-width: 1240px; gap: clamp(24px, 4vw, 64px); }
.lg-marca { gap: 10px; }
.lg-logo { width: min(240px, 60%); }
.lg-tit { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }

.lg-show { position: relative; width: 100%; max-width: 640px; aspect-ratio: 100 / 72; margin-top: 10px; container-type: inline-size; justify-self: center; }
.lg-show::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 3%; height: 10%; border-radius: 50%; background: rgba(0, 10, 35, .55); filter: blur(18px); }
.nb { position: absolute; inset: 0; transform: perspective(1600px) rotateY(-14deg) rotateX(5deg); transform-style: preserve-3d; }
.nb-tampa { position: absolute; left: 10cqw; top: 3cqw; width: 80cqw; height: 52cqw; padding: 1.7cqw 1.7cqw 2.6cqw; border-radius: 2.6cqw 2.6cqw 1cqw 1cqw;
  background: linear-gradient(160deg, #2a2f38, #0b0e14 55%); box-shadow: 0 0 0 .35cqw #4b525e, 0 3cqw 6cqw rgba(0, 0, 0, .45);
  transform-origin: 50% 100%; transform: rotateX(-88deg); opacity: 0; transition: transform 1.1s cubic-bezier(.2,.75,.2,1) .25s, opacity .3s ease .25s; }
.login.ligado .nb-tampa { transform: none; opacity: 1; }
.nb-tela { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: .6cqw; background: #fff; }
.nb-tela img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; filter: brightness(.4); transition: filter .8s ease 1.1s; }
.login.ligado .nb-tela img { filter: none; }
.nb-tela::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 38%); pointer-events: none; }
.nb-cam { position: absolute; left: 50%; top: .6cqw; width: .7cqw; height: .7cqw; margin-left: -.35cqw; border-radius: 50%; background: #39404b; }
.nb-base { position: absolute; left: 2cqw; width: 96cqw; top: 55cqw; height: 3.4cqw; border-radius: .4cqw .4cqw 3cqw 3cqw;
  background: linear-gradient(180deg, #eef1f5 0%, #c9ced6 45%, #8b929d 100%); box-shadow: 0 2cqw 3cqw rgba(0, 0, 0, .35); }
.nb-base i { position: absolute; left: 50%; top: 0; width: 16cqw; height: 1.2cqw; margin-left: -8cqw; border-radius: 0 0 1.2cqw 1.2cqw; background: linear-gradient(180deg, #a9b0ba, #d7dce3); }

/* peças: entram depois que a tampa abre, flutuam e acompanham o mouse */
.pf { position: absolute; display: block; transform: translate(calc(var(--mx, 0) * var(--p, 1) * 1px), calc(var(--my, 0) * var(--p, 1) * 1px)); transition: transform .25s ease-out; }
.pf img { display: block; width: 100%; height: auto; filter: drop-shadow(0 2.4cqw 2cqw rgba(0, 8, 30, .55)) drop-shadow(0 .4cqw .6cqw rgba(0, 0, 0, .35));
  opacity: 0; transform: translateY(6cqw) scale(.7) rotate(var(--r, 0deg)); }
.login.ligado .pf img { animation: pf-entra .8s cubic-bezier(.2,.9,.25,1.25) forwards, pf-flutua 5.5s ease-in-out infinite; animation-delay: var(--d, 1.2s), calc(var(--d, 1.2s) + .8s); }
@keyframes pf-entra { to { opacity: 1; transform: translateY(0) scale(1) rotate(var(--r, 0deg)); } }
@keyframes pf-flutua { 0%, 100% { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); } 50% { opacity: 1; transform: translateY(-1.8cqw) rotate(calc(var(--r, 0deg) + 4deg)); } }
.pf-amort { --p: 2; left: -6cqw; bottom: 3cqw; width: 40cqw; } .pf-amort img { --r: -22deg; --d: 1.2s; }
.pf-pivo { --p: 1.7; right: 0; bottom: 1cqw; width: 21cqw; } .pf-pivo img { --r: 8deg; --d: 1.38s; animation-duration: .8s, 6.4s; }
.pf-term { --p: 1; right: -3cqw; top: 12cqw; width: 15cqw; } .pf-term img { --r: 24deg; --d: 1.56s; animation-duration: .8s, 5s; }
.pf-vela { --p: 1.4; left: 1cqw; top: 6cqw; width: 7.5cqw; } .pf-vela img { --r: -16deg; --d: 1.74s; animation-duration: .8s, 4.6s; }
.login.entrou .lg-show { transform: scale(1.04); opacity: 0; transition: transform .6s ease, opacity .5s ease .1s; }

@media (max-width: 879px) {
  .lg-show { max-width: 380px; margin-top: 0; }
  .lg-logo { width: min(200px, 60%); }
  
}
@media (prefers-reduced-motion: reduce) {
  .login.ligado .pf img { animation: none; opacity: 1; transform: rotate(var(--r, 0deg)); }
  .nb-tampa { transition: none; }
}
@media (max-width: 879px) {
  .lg-wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 24px 48px; }
  .lg-whats { font-size: .9rem; gap: 7px; padding: 0 10px; }
}
/* v2: notebook mais virado, logo centralizada e as fotos novas das peças */
.lg-marca { justify-items: center; text-align: center; }

.lg-show { margin-top: 18px; }
.nb { transform: perspective(1500px) rotateY(-30deg) rotateX(6deg) rotateZ(1deg); }
.pf-amort { left: -6cqw; bottom: 0; width: 50cqw; } .pf-amort img { --r: -4deg; }
.pf-vela { left: -3cqw; top: 2cqw; width: 27cqw; } .pf-vela img { --r: -8deg; }
.pf-term { right: -6cqw; top: 2cqw; width: 26cqw; } .pf-term img { --r: 6deg; }
.pf-pivo { right: -4cqw; bottom: 0; width: 30cqw; } .pf-pivo img { --r: -6deg; }
.pf-pistao { --p: 1.2; left: 44cqw; top: -9cqw; width: 14cqw; } .pf-pistao img { --r: 14deg; --d: 1.9s; animation-duration: .8s, 5.8s; }
.pf-pistao { left: 40cqw; top: -3cqw; width: 12cqw; }
/* v3: notebook de frente, peças misturadas nos dois lados, selo "Catálogo B2B" */
.nb { transform: none; }
.lg-b2b { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(0, 20, 60, .35);
  box-shadow: inset 0 0 0 1.5px rgba(247, 198, 0, .75); font-size: .78rem; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: #dbe7fb; }
.lg-b2b .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--gold); color: var(--brand); }
.lg-b2b b { color: var(--gold); font-weight: 900; }
.lg-b2b i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); }
.pf-term { left: -5cqw; right: auto; top: 0; width: 24cqw; } .pf-term img { --r: -10deg; }
.pf-vela { left: auto; right: -5cqw; top: 3cqw; width: 26cqw; } .pf-vela img { --r: 12deg; }
.pf-amort { left: -7cqw; bottom: 1cqw; width: 46cqw; } .pf-amort img { --r: -2deg; }
.pf-pivo { right: -5cqw; bottom: 0; width: 27cqw; } .pf-pivo img { --r: -4deg; }
.pf-pistao { left: 44cqw; top: auto; bottom: -3cqw; width: 12cqw; } .pf-pistao img { --r: -18deg; }
.lg-b2b { white-space: nowrap; }
@media (max-width: 479px) { .lg-b2b { font-size: .64rem; letter-spacing: .5px; gap: 6px; padding: 5px 11px 5px 6px; } .lg-b2b .i { width: 19px; height: 19px; } }
/* selo: só "Catálogo B2B" com a luz verde de online piscando */
.lg-b2b { gap: 10px; padding: 7px 16px 7px 14px; }
.lg-b2b .lg-online { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #22e07a; box-shadow: 0 0 8px 2px rgba(34, 224, 122, .75); animation: lg-pisca 1.6s ease-in-out infinite; }
.lg-b2b .lg-online::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(34, 224, 122, .7); animation: lg-onda 1.6s ease-out infinite; }
@keyframes lg-pisca { 0%, 100% { opacity: 1; } 50% { opacity: .35; box-shadow: 0 0 2px 0 rgba(34, 224, 122, .3); } }
@keyframes lg-onda { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@media (max-width: 479px) { .lg-b2b { font-size: .74rem; padding: 6px 14px 6px 12px; } }
@media (prefers-reduced-motion: reduce) { .lg-b2b .lg-online, .lg-b2b .lg-online::after { animation: none; } }
.lg-b2b { box-shadow: none; }

/* Login sempre cabendo na altura da tela (computador): nada de rolar */
@media (min-width: 880px) {
  .login { overflow: hidden; }
  .lg-wrap { min-height: 100vh; min-height: 100dvh; padding-block: clamp(12px, 3vh, 40px); align-items: center; }
  .lg-marca { gap: clamp(4px, 1.2vh, 10px); }
  .lg-logo { width: auto; height: clamp(54px, 11vh, 102px); }
  .lg-tit { margin: 0; font-size: clamp(1.6rem, 5vh, 2.8rem); }
  .lg-show { margin-top: clamp(4px, 1.5vh, 18px); width: min(100%, 640px, calc((100dvh - clamp(54px, 11vh, 102px) - clamp(1.6rem, 5vh, 2.8rem) - 150px) * 1.39)); }
  .lg-card { padding: clamp(16px, 3vh, 30px) 26px clamp(14px, 2.4vh, 24px); gap: clamp(4px, .9vh, 8px); }
  .lg-card h2 { font-size: clamp(1.3rem, 3.4vh, 1.7rem); margin-top: 2px; }
  .lg-campo { height: clamp(40px, 5.8vh, 50px); }
  .lg-entrar { height: clamp(42px, 6vh, 52px); }
  .lg-whats { height: clamp(40px, 5.6vh, 48px); }
  .lg-sep { margin: clamp(4px, 1.2vh, 12px) 0 0; }
}
@media (min-width: 880px) and (max-height: 700px) {
  .lg-dica, .lg-rodape { display: none; }
  .lg-selo { display: none; }
}

/* Mostrar senha: porta de carro (fechada = senha escondida; aberta = senha visível) */
.porta-ico { width: 22px; height: 22px; overflow: visible; }
.porta-ico path { stroke-linejoin: round; stroke-linecap: round; }
.pt-vao { fill: #1c2a44; stroke: currentColor; stroke-width: 1.5; opacity: .9; }
.pt-porta { fill: #fff; stroke: currentColor; stroke-width: 1.7; }
.pt-vidro { fill: #cfe0f7; stroke: currentColor; stroke-width: 1.2; }
.pt-mac { fill: none; stroke: currentColor; stroke-width: 1.8; }
.pt-folha { transform-box: view-box; transform-origin: 18.5px 12px; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.lg-ver[aria-pressed="true"] { color: var(--brand); }
.lg-ver[aria-pressed="true"] .pt-folha { transform: translateX(1.5px) scaleX(.42) skewY(14deg); }
.lg-ver[aria-pressed="true"] .pt-vao { fill: #ffd92e; }    /* luz de cortesia acesa ao abrir */
.lg-ver:hover .pt-folha { transform: scaleX(.92) skewY(3deg); }
.lg-ver[aria-pressed="true"]:hover .pt-folha { transform: translateX(1.5px) scaleX(.42) skewY(14deg); }
