:root {
  --ink: #f4f4f4;
  --price: #6af500;
  --combo: #ff00e2;
  --muted: #b5b5b5;
  --line: #2c2c2c;
  --paper: #111111;
  --room: #000000;
  --card: #161616;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--room);
  padding-bottom: 48px;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.topo {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #000;
  color: #f4f4f4;
  border-bottom: 1px solid #1c1c1c;
}
.topo .marca { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.topo img { height: 40px; width: auto; max-width: 46vw; object-fit: contain; object-position: left center; display: block; }
.topo-acoes { display: flex; align-items: center; gap: 12px; flex: none; }
.atalho { color: #b5b5b5; text-decoration: none; font-weight: 560; font-size: 14px; }
#abrir {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #6af500;
  color: #000;
  display: grid;
  place-items: center;
  cursor: pointer;
}
#abrir svg { width: 22px; height: 22px; fill: none; stroke: #000; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bolha {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff00e2;
  color: #000;
  font-size: 11px;
  font-weight: 680;
  display: grid;
  place-items: center;
}
.bolha[hidden] { display: none; }
.bolha.pulso { animation: pulso .45s ease; }
@keyframes pulso { 40% { transform: scale(1.25); } }
.entrou {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  background: #6af500;
  color: #000;
  font-weight: 680;
  border-radius: 999px;
  padding: 10px 16px;
}
.entrou[hidden] { display: none; }
.faixa {
  height: 0;
  border-top: 3px solid #6af500;
  border-bottom: 3px solid #ff00e2;
}

.miolo { width: min(1080px, calc(100% - 24px)); margin: 0 auto; }
.olho {
  margin: 12px 0 0;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 680;
  color: #6af500;
}
h1 {
  margin: 6px 0 0;
  font-weight: 680;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.05;
  color: #fff;
}
h2 { font-size: clamp(22px, 5vw, 28px); font-weight: 680; }
.hero {
  margin: 14px 0 4px;
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: #111;
  border-top: 3px solid #6af500;
  border-bottom: 3px solid #ff00e2;
}
.hero h1 { max-width: 16ch; }
.hero .go { display: inline-block; width: auto; margin-top: 14px; padding: 12px 18px; text-decoration: none; text-align: center; }
.lead {
  margin: 8px 0 0;
  max-width: 36rem;
  color: #d6d6d6;
  font-size: 18px;
}

.busca { display: block; margin: 14px 0 0; }
.busca input, .ficha input, .panel input, .panel textarea, .panel select, .como input {
  width: 100%;
  border: 0;
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 14px 14px;
}
.busca.busca-topo input { border-radius: 999px; padding: 8px 14px; font-size: 15px; background: #141414; color: #f4f4f4; border: 1px solid #2c2c2c; }
.busca.busca-topo input::placeholder { color: #8a8a8a; }
.frase { margin: 18px 0 0; color: #b5b5b5; font-weight: 680; }
.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 10px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips.tipos { flex-wrap: wrap; overflow: visible; }
.chips.marcas { margin: 6px 0 12px; }
.chips button {
  flex: none;
  border: 0;
  background: #141414;
  color: #b5b5b5;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 560;
}
.chips button.ativo { background: #f4f4f4; color: #000; }
.chips.marcas button { background: transparent; color: #8a8a8a; font-size: 13px; padding: 4px 2px; border-radius: 0; }
.chips.marcas button.ativo { background: transparent; color: #fff; box-shadow: inset 0 -1px 0 #fff; }
.grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}
.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
}
.card .foto {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #fff;
  overflow: hidden;
  padding: 16px 12px;
}
.card .foto a { display: flex; align-items: center; justify-content: center; width: 100%; }
.card img { width: auto; height: auto; max-width: 100%; max-height: 196px; object-fit: contain; object-position: center; }
.card .corpo { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 0; color: inherit; text-decoration: none; }
.card .secao { font-size: 13px; font-weight: 560; color: var(--muted); }
.card strong {
  font-size: 15px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.grade .card .desc { display: none; }
.card .desc { margin: 0; color: var(--muted); font-size: 14px; }
.card .preco { font-weight: 680; font-size: 16px; color: var(--price); }
.combo-linha { color: var(--combo); font-size: 13px; font-weight: 560; text-decoration: none; }
.card-pe { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; row-gap: 2px; padding: 8px 12px 12px; }
.card-precos { color: inherit; text-decoration: none; }
.card-pe .combo-linha { grid-column: 1 / -1; }
.card .linha-desc {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-acao { position: static; padding: 0; flex: none; }
.card { position: relative; }
.por-card {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: #6af500;
  color: #000;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  font-weight: 560;
  cursor: pointer;
}
.card-qty {
  width: auto;
  margin: 0;
  gap: 0;
  background: #2a2a2a;
  border-radius: 999px;
  padding: 2px;
}
.foto .card-qty { margin-top: 0; }
.card-qty button { width: 28px; height: 28px; }
.card-qty strong { color: #fff; font-size: 13px; }
.card.falta { opacity: .72; }
.selo-falta { color: var(--muted); font-size: 13px; font-weight: 560; }
.vazio { color: #fff; }

.como input { width: 100%; border: 0; background: #fff; color: #111; border-radius: 14px; padding: 14px; }
.passos { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.passos li { flex: 1; text-align: center; font-size: 13px; font-weight: 560; color: var(--muted); padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.passos li.ativo { color: var(--ink); border-color: var(--price); }
.passos li.feito { color: var(--combo); border-color: var(--combo); }
.dica { margin: 8px 0 0; color: var(--combo); font-weight: 560; font-size: 14px; }
.tag-falta { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
button.foto { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; border-radius: 22px; }
.luz { position: fixed; inset: 0; z-index: 8; background: rgba(20, 8, 16, .9); display: flex; align-items: center; justify-content: center; padding: 18px; }
.luz[hidden] { display: none; }
.luz img { max-width: min(920px, 100%); max-height: 100%; object-fit: contain; background: #fff; border-radius: 16px; }
.luz-fecha { position: absolute; top: 14px; right: 14px; width: auto; border: 0; border-radius: 999px; background: #fff; color: #141414; font-weight: 680; padding: 10px 14px; cursor: pointer; }
.ficha .grade { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.cart-line img { width: 72px; height: 72px; object-fit: contain; object-position: center; background: #fff; border-radius: 12px; flex: none; }
.linha-preco { flex: none; text-align: right; color: var(--price); font-size: 18px; }
.linha-preco small { display: block; color: var(--combo); font-size: 12px; font-weight: 560; }
.medindo { min-height: 1.2em; margin: 8px 0 0; color: var(--muted); font-weight: 560; }
.ficha .faixa-marca { display: flex; grid-template-columns: none; overflow-x: auto; gap: 12px; scrollbar-width: none; }
.faixa-marca .card { flex: none; width: 180px; }
.cart-line .miolo-linha { flex: 1; }
.qty button.tirar { width: auto; background: transparent; color: var(--muted); }

.como, .pe {
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  padding: 18px 18px 8px;
  margin-top: 22px;
}
.como h2, .ficha h2 { margin: 0 0 8px; }
.como ol { margin: 0 0 16px; padding-left: 18px; }
.como li { margin: 8px 0; }
.rodape {
  width: min(1080px, calc(100% - 24px));
  margin: 8px auto 0;
  padding: 8px 0 12px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.rodape a { color: var(--muted); font-weight: 560; text-decoration: none; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.rodape nav a { color: var(--muted); font-weight: 560; }
.rodape .cnpj, .rodape p { margin: 0; }
.pagamento { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
input.ok { outline: 2px solid #f4f4f4; }
input.ruim { outline: 2px solid #ff5c7a; }

.ficha {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.ficha .secao { color: var(--muted); font-weight: 560; font-size: 14px; }
.ficha .foto {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  padding: 12px;
}
.ficha img { width: auto; height: auto; max-width: 100%; max-height: min(62vh, 460px); object-fit: contain; object-position: center; display: block; }
.ficha .papel {
  background: var(--paper);
  border-radius: 22px;
  padding: 18px;
}
.ficha h1 { color: var(--ink); font-size: clamp(26px, 5vw, 36px); }
.ficha .preco { font-size: 32px; font-weight: 680; color: var(--price); margin: 8px 0 0; }
.ficha .selo-combo { display: inline-flex; margin-top: 8px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.qty button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #2a2a2a;
  color: #fff;
  font-weight: 560;
  cursor: pointer;
}
.card .card-qty button[data-mais] { background: #6af500; color: #000; }
.qty strong { min-width: 22px; text-align: center; }
.card-qty.qty { margin-top: 0; gap: 0; }
.card-qty.qty button { width: 28px; height: 28px; font-size: 16px; }
.avaliacao { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.avaliacao p { margin: 8px 0; }

.veil { position: fixed; inset: 0; background: rgba(28, 8, 20, .46); display: flex; align-items: flex-end; justify-content: center; z-index: 6; }
.veil[hidden] { display: none; }
.panel { width: min(640px, 100%); max-height: min(92vh, 860px); overflow: auto; background: var(--paper); border-radius: 24px 24px 0 0; padding: 18px 18px 28px; }
.panel h2 { margin: 0; font-size: 32px; color: var(--ink); }
.panel .sub { margin: 4px 0 12px; color: var(--muted); }
.cart-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
label { display: block; font-size: 13px; font-weight: 560; color: var(--muted); margin: 12px 0 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.go { margin-top: 16px; width: 100%; border: 0; background: #6af500; color: #000; border-radius: 999px; padding: 14px; font-weight: 680; font-size: 16px; cursor: pointer; }
.go:disabled { opacity: .45; cursor: default; }
.ghost { margin-top: 8px; width: 100%; border: 0; background: transparent; color: var(--muted); padding: 8px; cursor: pointer; }
.aviso { background: #141414; color: #fff; border-radius: 18px; padding: 14px; margin-top: 12px; }
.aviso b { font-weight: 680; }
.aviso p { margin: 6px 0 0; }
.opcao { display: flex; gap: 10px; align-items: center; background: #fff; color: #111; border-radius: 14px; padding: 10px 12px; margin-top: 8px; }
.meios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.meio { width: 100%; background: #141414; color: #f4f4f4; border: 2px solid #3a3a3a; border-radius: 999px; padding: 14px; font-weight: 560; }
.meio.ativo { background: #f4f4f4; color: #000; border-color: #f4f4f4; }
.erro { color: #ff5c7a; font-weight: 680; margin: 8px 0 0; }
.total { display: flex; justify-content: space-between; font-size: 22px; font-weight: 680; margin-top: 12px; }
.total #total-pedido { color: var(--price); }
.combo-ajuste { display: flex; justify-content: space-between; gap: 12px; color: #ff00e2; font-weight: 680; margin-top: 8px; }
body.comprando { padding-bottom: 156px; }
.compra-fixa {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #0c0c0c;
  border-top: 1px solid #2c2c2c;
}
.compra-preco { display: flex; flex-direction: column; gap: 4px; min-width: 84px; }
.compra-fixa .preco { margin: 0; font-size: 20px; color: var(--price); }
.compra-fixa .qty { margin: 0; }
.compra-fixa .go { margin: 0; width: auto; flex: 1; padding: 14px 10px; }

@media (min-width: 800px) {
  .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ficha { grid-template-columns: 1.1fr .9fr; align-items: start; }
}
@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  .compra-fixa { flex-wrap: wrap; }
  .compra-fixa .go { flex-basis: 100%; }
}
