/* Snagger */

:root {
  --bg: #0B0A0F;
  --bg-2: #100E15;
  --surface: #16131C;
  --surface-2: #1D1925;
  --surface-3: #262130;
  --line: rgba(236, 230, 255, .07);
  --line-2: rgba(236, 230, 255, .12);

  --text: #EFEBF7;
  --text-2: #BCB5CC;
  --muted: #8A8299;
  --faint: #5E576C;

  --roxo: #A891F8;          /* lavanda: textos, ícones, detalhes */
  --roxo-forte: #8566F0;    /* botões */
  --roxo-fundo: rgba(168, 145, 248, .12);
  --roxo-linha: rgba(168, 145, 248, .32);
  --menta: #8BE0BE;
  --menta-fundo: rgba(139, 224, 190, .12);
  --ambar: #F2C47F;
  --ambar-fundo: rgba(242, 196, 127, .12);
  --rosa: #F29BB3;

  --tile: #F1EEF7;          /* fundo claro das fotos dos produtos */

  --f: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --mola: cubic-bezier(.34, 1.45, .64, 1);

  --largura: 520px;
  --seg-baixo: env(safe-area-inset-bottom, 0px);
  --seg-topo: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  font: 15px/1.45 var(--f); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body::before {   /* brilho suave no alto da tela */
  content: ""; position: fixed; inset: -20vh -20vw auto; height: 60vh; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(133, 102, 240, .16), transparent 70%);
}
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--roxo-forte); color: #fff; }
:focus-visible { outline: 2px solid var(--roxo); outline-offset: 2px; border-radius: 10px; }

.app { max-width: var(--largura); margin: 0 auto; min-height: 100dvh; padding-bottom: calc(120px + var(--seg-baixo)); }

/* ---------------------------------------------------------------- topo */

.topo {
  position: sticky; top: 0; z-index: 20; padding: calc(var(--seg-topo) + 8px) 18px 0;
  background: linear-gradient(var(--bg) 55%, rgba(11, 10, 15, .0));
  transition: background .3s;
}
.topo.rolou { background: rgba(11, 10, 15, .78); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); }
.topo.rolou::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); }

.topo-linha { display: flex; align-items: center; gap: 8px; height: 48px; }
.marca { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.marca-ic { width: 28px; height: 28px; filter: drop-shadow(0 4px 14px rgba(133, 102, 240, .45)); transition: transform .6s var(--mola); }
.marca:active .marca-ic { transform: rotate(-12deg) scale(.9); }
.marca-nome { font-weight: 800; font-size: 20px; letter-spacing: -.055em; }

.vivo {
  display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line);
  transition: color .4s, border-color .4s;
}
.vivo i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.vivo[data-s="vivo"] { color: var(--text-2); }
.vivo[data-s="vivo"] i { background: var(--menta); box-shadow: 0 0 10px var(--menta); }
.vivo[data-s="vivo"] i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--menta); animation: onda 2.4s var(--ease-out) infinite; }
.vivo[data-s="reconectando"] i { background: var(--ambar); animation: piscar 1s infinite; }
@keyframes onda { from { transform: scale(1); opacity: .6; } to { transform: scale(3.4); opacity: 0; } }
@keyframes piscar { 50% { opacity: .25; } }

.icone {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--text-2);
  transition: background .2s, color .2s, transform .3s var(--mola);
}
.icone:hover { background: var(--surface); color: var(--text); }
.icone:active { transform: scale(.88); }
.icone svg { width: 21px; height: 21px; }

.busca { display: grid; grid-template-columns: 1fr auto; align-items: center; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .45s var(--ease), opacity .3s, margin .45s var(--ease); }
.busca.aberta { max-height: 64px; opacity: 1; margin-top: 4px; }
.busca-campo { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 15px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.busca-campo:focus-within { border-color: var(--roxo-linha); box-shadow: 0 0 0 4px var(--roxo-fundo); }
.busca-campo svg { width: 18px; height: 18px; color: var(--muted); }
.busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15.5px; }
.busca input::placeholder { color: var(--faint); }
.busca input::-webkit-search-cancel-button { display: none; }
.busca-x { padding: 0 4px 0 14px; height: 46px; font-size: 14px; font-weight: 600; color: var(--roxo); }

.filtros { margin: 0 -18px; max-height: 64px; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s; }
.filtros.oculto { max-height: 0; opacity: 0; }
.trilho { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 18px 12px; }
.trilho::-webkit-scrollbar { display: none; }
.filtro { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .3s; }
.filtro small { font: 500 11px var(--mono); color: var(--faint); transition: color .3s; }
.filtro:hover { color: var(--text-2); }
.filtro.on { color: var(--text); }
.filtro.on small { color: var(--roxo); }
.pilula { position: absolute; z-index: 0; top: 8px; left: 0; height: 36px; border-radius: 12px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out); }

/* ---------------------------------------------------------------- telas */

.tela { display: none; padding: 0 18px; }
.tela.ativa { display: block; }
.tela.entrando { animation: entrar .5s var(--ease-out) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }

.abertura { padding: 18px 2px 8px; }
.sobre { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.abertura h1 { font: 400 52px/0.95 var(--serif); letter-spacing: -.025em; margin-top: 6px; }
.abertura h1 em { font-style: italic; color: var(--roxo); }
.resumo { margin-top: 10px; font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.resumo b { font-weight: 600; color: var(--text); }

.secao { margin-top: 22px; }
.secao-cab { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 12px; }
.secao-cab h2 { font: 400 26px/1 var(--serif); letter-spacing: -.01em; }
.secao-cab span { font-size: 12.5px; color: var(--muted); }
.lista-cab { margin-top: 30px; justify-content: space-between; }

.ordem { position: relative; display: grid; height: 30px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 600; color: var(--text-2); overflow: hidden; }
.ordem span { grid-area: 1 / 1; align-self: center; transition: transform .45s var(--ease-out), opacity .3s; }
.ordem span:last-child { transform: translateY(120%); opacity: 0; }
.ordem.alt span:first-child { transform: translateY(-120%); opacity: 0; }
.ordem.alt span:last-child { transform: none; opacity: 1; }

/* ---------------------------------------------------------------- foto do produto */

.foto { position: relative; flex: none; overflow: hidden; background: var(--tile); border-radius: 16px; }
.foto img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6%;
  opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform .9s var(--ease-out); }
.foto img.ok { opacity: 1; transform: none; }
.foto .letra { position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface-2);
  font: 400 30px var(--serif); color: var(--muted); }
.desc { position: absolute; left: 6px; top: 6px; z-index: 1; padding: 2px 6px; border-radius: 7px;
  background: #18151F; color: var(--menta); font: 500 11px var(--mono); }

/* ---------------------------------------------------------------- carrossel */

.carrossel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -18px; padding: 2px 18px 6px; scroll-padding: 0 18px; }
.carrossel::-webkit-scrollbar { display: none; }
.destaque { flex: none; width: 214px; scroll-snap-align: start; cursor: pointer; border-radius: 22px;
  padding: 8px; background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--mola), border-color .3s; }
.destaque:active { transform: scale(.97); }
@media (hover: hover) { .destaque:hover { border-color: var(--line-2); } }
.destaque .foto { width: 100%; aspect-ratio: 1; border-radius: 16px; }
.destaque .info { padding: 11px 6px 6px; }
.destaque .linha1 { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.destaque .loja { color: var(--text-2); font-weight: 600; }
.destaque h3 { margin-top: 4px; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.destaque .preco { margin-top: 8px; }
.canais-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--roxo); font-weight: 600; }
.canais-tag .avs { display: flex; }

/* ---------------------------------------------------------------- lista */

.lista { display: flex; flex-direction: column; }
.item { position: relative; display: flex; gap: 14px; padding: 14px 4px; cursor: pointer; border-radius: 18px;
  content-visibility: auto; contain-intrinsic-size: auto 132px; transition: background .25s; }
.item + .item::before { content: ""; position: absolute; top: 0; left: 98px; right: 4px; height: 1px; background: var(--line); }
@media (hover: hover) { .item:hover { background: rgba(255, 255, 255, .02); } }
.item:active { background: rgba(255, 255, 255, .035); }
.item .foto { width: 82px; height: 82px; }
.corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.meta .loja { color: var(--text-2); font-weight: 600; }
.meta .tempo { margin-left: auto; font-variant-numeric: tabular-nums; flex: none; }
.meta svg { width: 13px; height: 13px; }
.marcador { width: 6px; height: 6px; border-radius: 50%; background: var(--roxo); box-shadow: 0 0 10px var(--roxo); flex: none; }
.titulo { margin-top: 3px; font-size: 14.5px; font-weight: 500; line-height: 1.34; letter-spacing: -.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.base { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.preco { display: flex; align-items: baseline; gap: 7px; font-variant-numeric: tabular-nums; }
.preco strong { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.preco s { font-size: 12.5px; color: var(--faint); }
.preco .sem { font-size: 13px; color: var(--muted); font-weight: 500; }
.rodinha { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 12px; color: var(--muted); }
.rodinha.quente { color: var(--roxo); }
.avs { display: flex; }
.av { --h: 270; width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700; background: oklch(.36 .06 var(--h)); color: oklch(.9 .07 var(--h));
  box-shadow: 0 0 0 2px var(--bg); }
.avs .av + .av { margin-left: -5px; }
.av.g { width: 38px; height: 38px; font-size: 15px; box-shadow: none; }

.item.recem { animation: chegou 1.6s var(--ease-out); }
@keyframes chegou { 0% { background: rgba(168, 145, 248, .16); } 100% { background: transparent; } }
.item.esgotado .foto img, .item.esgotado .foto .letra { filter: grayscale(1); opacity: .35; }
.item.esgotado .titulo, .item.esgotado .preco strong { color: var(--muted); }
.item.esgotado .preco strong { text-decoration: line-through; text-decoration-color: var(--faint); }
.selo-esgotou { font-size: 11px; font-weight: 600; color: var(--ambar); }

.item.regra .foto { display: grid; place-items: center; background: var(--roxo-fundo); }
.item.regra .foto svg { width: 30px; height: 30px; color: var(--roxo); }

/* ---------------------------------------------------------------- cupom */

.cupom {
  position: relative; display: inline-grid; height: 30px; padding: 0 11px; border-radius: 9px; overflow: hidden;
  border: 1px dashed var(--roxo-linha); background: var(--roxo-fundo); color: var(--roxo);
  font: 500 12.5px/1 var(--mono); letter-spacing: .03em; transition: transform .3s var(--mola), background .3s, border-color .3s, color .3s;
}
.cupom > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 6px; transition: transform .45s var(--ease-out), opacity .3s; }
.cupom .feito { transform: translateY(110%); opacity: 0; font-family: var(--f); font-weight: 600; letter-spacing: 0; }
.cupom svg { width: 13px; height: 13px; }
.cupom:active { transform: scale(.94); }
.cupom.copiado { border-style: solid; border-color: transparent; background: var(--menta-fundo); color: var(--menta); }
.cupom.copiado .cod { transform: translateY(-110%); opacity: 0; }
.cupom.copiado .feito { transform: none; opacity: 1; }
.mais-cupons { font: 500 12px var(--mono); color: var(--muted); }

.cupom.grande { display: grid; width: 100%; height: 60px; border-radius: 16px; font-size: 19px; padding: 0 18px; }
.cupom.grande .cod { justify-content: space-between; }
.cupom.grande .cod small { font: 600 12.5px var(--f); letter-spacing: 0; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.cupom.grande svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- aba cupons */

.pilha { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.bilhete { position: relative; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.bilhete::before, .bilhete::after {   /* recortes laterais de ticket */
  content: ""; position: absolute; top: 92px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line);
}
.bilhete::before { left: -10px; clip-path: inset(0 0 0 50%); }
.bilhete::after { right: -10px; clip-path: inset(0 50% 0 0); }
.b-topo { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.b-topo .loja { color: var(--text-2); font-weight: 600; }
.b-cod { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.b-cod .codigo { font: 500 21px var(--mono); letter-spacing: .02em; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.b-cod .cupom { flex: none; }
.b-corte { margin: 18px -16px 14px; border-top: 1px dashed var(--line-2); }
.b-regra { font-size: 13.5px; color: var(--text-2); line-height: 1.45; margin-bottom: 12px; }
.b-numeros { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.b-numeros b { color: var(--text); font-weight: 600; }
.mini { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; width: 100%; text-align: left; padding: 8px 0; }
.mini:first-of-type { margin-top: 10px; }
.mini .foto { width: 42px; height: 42px; border-radius: 11px; }
.mini .foto img { padding: 8%; }
.mini span { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini strong { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ver-todas { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--roxo); }

/* ---------------------------------------------------------------- alertas */

.novo-alerta { display: flex; gap: 8px; margin-top: 18px; padding: 6px 6px 6px 16px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.novo-alerta:focus-within { border-color: var(--roxo-linha); box-shadow: 0 0 0 4px var(--roxo-fundo); }
.novo-alerta input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15.5px; }
.novo-alerta input::placeholder { color: var(--faint); }
.novo-alerta button { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--roxo-forte); color: #fff;
  transition: transform .3s var(--mola); box-shadow: 0 6px 20px -6px rgba(133, 102, 240, .7); }
.novo-alerta button:active { transform: scale(.88); }
.novo-alerta button svg { width: 20px; height: 20px; }
.palavras { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.palavra { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px 0 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; animation: brotar .5s var(--mola) both; }
.palavra small { font: 500 11.5px var(--mono); color: var(--roxo); }
.palavra button { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--faint); transition: background .2s, color .2s; }
.palavra button:hover { background: var(--surface-2); color: var(--text); }
.palavra button svg { width: 14px; height: 14px; }
.palavra.saindo { animation: murchar .25s var(--ease) forwards; }
@keyframes brotar { from { opacity: 0; transform: scale(.7); } }
@keyframes murchar { to { opacity: 0; transform: scale(.7); } }

.ajuste { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 16px 18px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.ajuste strong { display: block; font-size: 15px; font-weight: 600; }
.ajuste small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.chave { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 50px; height: 30px; border-radius: 999px;
  background: var(--surface-3); cursor: pointer; transition: background .35s var(--ease); }
.chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #E9E5F2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4); transition: transform .45s var(--mola), background .3s; }
.chave:checked { background: var(--roxo-forte); }
.chave:checked::after { transform: translateX(20px); background: #fff; }
.chave:disabled { opacity: .4; cursor: default; }

/* ---------------------------------------------------------------- fontes */

.modo { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(133, 102, 240, .18), rgba(133, 102, 240, .04)); border: 1px solid var(--roxo-linha); }
.modo-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--roxo-fundo); color: var(--roxo); flex: none; }
.modo-ic svg { width: 22px; height: 22px; }
.modo.web { background: var(--surface); border-color: var(--line); }
.modo strong { display: block; font-size: 15.5px; font-weight: 600; }
.modo small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.numero { padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.numero b { display: block; font: 400 40px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.numero span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.nota { margin: 14px 4px 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.canais { margin-top: 18px; padding: 4px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.canal { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.canal + .canal { border-top: 1px solid var(--line); }
.canal .nome { flex: 1; min-width: 0; }
.canal strong { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canal small { display: block; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.estado { flex: none; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.estado i { width: 6px; height: 6px; border-radius: 50%; background: var(--menta); }
.estado.alerta i { background: var(--ambar); }
.estado.erro i { background: var(--rosa); }

/* ---------------------------------------------------------------- esqueleto, vazio */

.esq { display: flex; gap: 14px; padding: 14px 4px; }
.esq i { display: block; border-radius: 8px; background: var(--surface); position: relative; overflow: hidden; }
.esq i::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); animation: varrer 1.5s infinite;
  background: linear-gradient(90deg, transparent, rgba(168, 145, 248, .07), transparent); }
@keyframes varrer { to { transform: translateX(100%); } }
.esq .f { width: 82px; height: 82px; border-radius: 16px; flex: none; }
.esq .t { height: 11px; margin-top: 9px; }
.vazio { text-align: center; padding: 56px 24px; color: var(--muted); }
.vazio svg { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--faint); }
.vazio strong { display: block; font: 400 24px var(--serif); color: var(--text); margin-bottom: 6px; }
.vazio p { font-size: 14px; }

/* ---------------------------------------------------------------- novidades */

.novidades { position: fixed; z-index: 25; left: 50%; top: calc(var(--seg-topo) + 116px); display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px 0 13px; border-radius: 999px; background: var(--roxo-forte); color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 12px 30px -8px rgba(133, 102, 240, .6); transform: translate(-50%, -24px) scale(.9); opacity: 0; pointer-events: none;
  transition: transform .55s var(--mola), opacity .3s; }
.novidades.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.novidades svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- abas */

.abas { position: fixed; z-index: 30; left: 0; right: 0; bottom: calc(14px + var(--seg-baixo)); display: flex; justify-content: center; pointer-events: none; }
.abas-in { position: relative; display: flex; gap: 2px; padding: 6px; border-radius: 24px; pointer-events: auto;
  background: rgba(24, 21, 31, .72); border: 1px solid var(--line-2);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04); }
.abas button { position: relative; z-index: 1; display: flex; align-items: center; height: 48px; padding: 0 15px; border-radius: 18px; color: var(--muted);
  transition: color .35s, padding .5s var(--ease-out); }
.abas button svg { width: 22px; height: 22px; transition: transform .5s var(--mola); }
.abas button:active svg { transform: scale(.82); }
.abas button b { max-width: 0; overflow: hidden; opacity: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: max-width .5s var(--ease-out), opacity .3s, margin .5s var(--ease-out); }
.abas button.on { color: var(--text); padding: 0 17px 0 15px; }
.abas button.on b { max-width: 80px; opacity: 1; margin-left: 8px; }
.abas button.on svg { color: var(--roxo); }
.abas-bolha { position: absolute; z-index: 0; top: 6px; left: 0; height: 48px; border-radius: 18px; background: var(--roxo-fundo);
  box-shadow: inset 0 0 0 1px rgba(168, 145, 248, .18); transition: transform .55s var(--ease-out), width .55s var(--ease-out); }
.ponto { position: absolute; top: 11px; left: 31px; width: 7px; height: 7px; border-radius: 50%; background: var(--rosa);
  box-shadow: 0 0 0 2px #1A1721; transform: scale(0); transition: transform .45s var(--mola); }
.ponto.on { transform: scale(1); }

/* ---------------------------------------------------------------- detalhe */

.detalhe { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; max-width: var(--largura); margin: 0 auto;
  background: var(--bg); visibility: hidden; }
body.det-aberto { overflow: hidden; }
body.det-aberto .detalhe { visibility: visible; }
.detalhe.entra { animation: subirDet .55s var(--ease-out) both; }
.detalhe.sai { animation: descerDet .35s var(--ease) both; }
@keyframes subirDet { from { transform: translateY(40px); opacity: 0; } }
@keyframes descerDet { to { transform: translateY(40px); opacity: 0; } }
.det-topo { display: flex; align-items: center; gap: 8px; height: calc(56px + var(--seg-topo)); padding: var(--seg-topo) 10px 0; flex: none; }
.det-titulo { flex: 1; text-align: center; font-size: 14px; font-weight: 600; color: var(--text-2); }
.det-rolagem { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 30px; }
.heroi { position: relative; width: 100%; aspect-ratio: 1.15; border-radius: 28px; background: var(--tile); overflow: hidden; }
.heroi img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; }
.heroi .letra { position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface); font: 400 64px var(--serif); color: var(--muted); }
.heroi .desc { left: 14px; top: 14px; font-size: 13px; padding: 4px 9px; border-radius: 9px; }
.det-corpo > * { animation: aparecer .6s var(--ease-out) both; }
.det-corpo > *:nth-child(1) { animation-delay: .08s; }
.det-corpo > *:nth-child(2) { animation-delay: .12s; }
.det-corpo > *:nth-child(3) { animation-delay: .16s; }
.det-corpo > *:nth-child(4) { animation-delay: .2s; }
.det-corpo > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } }
.det-meta { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.det-meta .loja { color: var(--text-2); font-weight: 600; }
.det-meta .quente { color: var(--roxo); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.det-meta .quente svg { width: 14px; height: 14px; }
.det-corpo h2 { margin-top: 8px; font: 400 30px/1.12 var(--serif); letter-spacing: -.01em; }
.det-preco { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.det-preco strong { font-size: 34px; font-weight: 700; letter-spacing: -.04em; }
.det-preco s { font-size: 15px; color: var(--faint); }
.det-preco .economia { font-size: 13px; font-weight: 600; color: var(--menta); }
.aviso { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--ambar-fundo); color: var(--ambar); font-size: 13.5px; font-weight: 500; }
.rotulo { margin: 28px 2px 10px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.det-cupons { display: flex; flex-direction: column; gap: 8px; }
.tempo-linha { list-style: none; padding: 4px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.tempo-linha li { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.tempo-linha li + li { border-top: 1px solid var(--line); }
.tempo-linha .nome { flex: 1; min-width: 0; }
.tempo-linha strong { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tempo-linha small { display: block; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tempo-linha small b { color: var(--roxo); font-weight: 600; }
.tempo-linha a { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--muted); }
.tempo-linha a:hover { background: var(--surface-2); color: var(--text); }
.tempo-linha a svg { width: 16px; height: 16px; }
.original { margin-top: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.original summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 15px 16px; font-size: 14px; font-weight: 600; }
.original summary::-webkit-details-marker { display: none; }
.original summary svg { width: 16px; height: 16px; color: var(--muted); transition: transform .35s var(--ease-out); }
.original[open] summary svg { transform: rotate(180deg); }
.original p { padding: 0 16px 16px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.original a { color: var(--roxo); text-decoration: underline; text-underline-offset: 2px; }
.det-barra { flex: none; display: flex; gap: 10px; padding: 12px 18px calc(12px + var(--seg-baixo)); border-top: 1px solid var(--line); background: var(--bg-2); }
.botao { flex: 1; height: 54px; border-radius: 17px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15.5px; font-weight: 600; background: var(--surface-2); color: var(--text); transition: transform .3s var(--mola), filter .2s; }
.botao:active { transform: scale(.96); }
.botao svg { width: 18px; height: 18px; }
.botao.primario { background: var(--roxo-forte); color: #fff; box-shadow: 0 10px 30px -10px rgba(133, 102, 240, .8), inset 0 1px 0 rgba(255, 255, 255, .15); }
.botao.primario:hover { filter: brightness(1.08); }
.botao.so-icone { flex: none; width: 54px; }

/* transição da foto entre a lista e o detalhe */
::view-transition-group(heroi) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .9, .25, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-image-pair(heroi) { isolation: auto; }
::view-transition-old(heroi), ::view-transition-new(heroi) { animation: none; mix-blend-mode: normal; height: 100%; overflow: clip; }

/* ---------------------------------------------------------------- toast */

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(92px + var(--seg-baixo)); display: flex; align-items: center; gap: 9px;
  max-width: calc(100% - 36px); white-space: nowrap; padding: 12px 16px; border-radius: 16px; background: #F3F0FA; color: #15121B; font-size: 14px; font-weight: 600;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); transform: translate(-50%, 18px) scale(.95); opacity: 0; pointer-events: none;
  transition: transform .5s var(--mola), opacity .25s; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 17px; height: 17px; flex: none; color: var(--roxo-forte); }
.toast .cod { font-family: var(--mono); font-weight: 500; }
body.det-aberto .toast { bottom: calc(90px + var(--seg-baixo)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* só aparece dentro do APK */
.trocar-servidor { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin-top: 12px; padding: 15px 18px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: left; font-size: 14.5px; font-weight: 600; color: var(--roxo); }
.trocar-servidor small { font: 500 12px var(--mono); color: var(--muted); }

/* aviso de servidor (PC) desligado */
.fora {
  position: fixed; z-index: 35; left: 50%; top: calc(var(--seg-topo) + 62px); width: min(calc(100% - 28px), 492px);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 18px;
  background: rgba(36, 22, 30, .92); border: 1px solid rgba(242, 155, 179, .28);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8);
  transform: translate(-50%, -16px) scale(.97); opacity: 0; pointer-events: none;
  transition: transform .55s var(--mola), opacity .3s;
}
.fora.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.fora-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(242, 155, 179, .14); color: var(--rosa); }
.fora-ic svg { width: 20px; height: 20px; }
.fora.on .fora-ic svg { animation: balancar 3s var(--ease) infinite; }
@keyframes balancar { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-14deg); } }
.fora-txt strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.fora-txt small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-2); }
.heroi .letra[hidden] { display: none; }
