/* =====================================================================
   Gela Guela — Cardápio digital
   LaunchCode Sistemas Web
   ===================================================================== */

:root {
  --p: #E8541E;
  --d: #2350D8;
  --placa: #141414;
  --bg: #FBF7F2;
  --card: #FFFFFF;
  --tx: #1E1622;
  --tx2: #6E6473;
  --tx3: #A39AA8;
  --linha: #EEE7E0;
  --ok: #1F9D5B;
  --erro: #D6334B;
  --raio: 16px;
  --sombra: 0 1px 2px rgba(30, 22, 34, .04), 0 8px 24px rgba(30, 22, 34, .06);
  --fonte-t: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --fonte: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 128px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 15px/1.5 var(--fonte);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 150px;
  background: var(--placa);
  overflow: hidden;
}
.hero__fundo {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 140% at 0% 100%, color-mix(in srgb, var(--p) 32%, transparent) 0%, transparent 55%),
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--d) 28%, transparent) 0%, transparent 55%);
}
.hero--capa { background: var(--placa) var(--capa) center / cover no-repeat; }
.hero--capa .hero__fundo { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.25) 100%); }
.hero__acoes { position: absolute; top: max(18px, env(safe-area-inset-top)); right: max(16px, calc((100% - var(--max)) / 2 + 16px)); display: flex; gap: 8px; z-index: 2; }
.hero__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12); color: #fff; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .15s;
}
.hero__btn:hover { background: rgba(255,255,255,.22); }
.hero__btn--icone { width: 36px; padding: 0; justify-content: center; }

/* ---------- Loja ---------- */
.loja { position: relative; max-width: var(--max); margin: -46px auto 0; padding: 0 16px; z-index: 3; }
.loja__card {
  background: var(--card); border: 1px solid var(--linha); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(30,22,34,.04), 0 12px 32px -12px rgba(30,22,34,.18);
  overflow: hidden;
}
.loja__cab { display: flex; gap: 14px; align-items: center; padding: 16px 16px 14px; }
.loja__logo {
  width: 72px; height: 72px; border-radius: 18px; flex: none; overflow: hidden;
  background: var(--placa); border: 1px solid var(--linha);
}
.loja__logo img { width: 100%; height: 100%; object-fit: cover; }
.loja__ident { min-width: 0; flex: 1; }
.loja__nome { font: 800 22px/1.15 var(--fonte-t); letter-spacing: -.02em; margin: 0; }
.loja__slogan { margin: 2px 0 0; color: var(--tx2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loja__status {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 8px 4px 10px;
  border: 0; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.loja__status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.loja__status svg { opacity: .7; }
.loja__status.is-aberta { background: #E6F6EE; color: #157A45; }
.loja__status.is-aberta .dot { box-shadow: 0 0 0 3px rgba(31,157,91,.18); animation: pulso 2s infinite; }
.loja__status.is-fechada { background: #FDECEF; color: #B4233A; }
@keyframes pulso { 50% { box-shadow: 0 0 0 6px rgba(31,157,91,0); } }

.loja__meta { list-style: none; margin: 0; padding: 0; display: flex; border-top: 1px solid var(--linha); }
.loja__meta li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 16px; min-width: 0; }
.loja__meta li + li { border-left: 1px solid var(--linha); }
.loja__meta svg { width: 22px; height: 22px; color: var(--p); flex: none; }
.loja__meta strong { display: block; font-size: 14px; line-height: 1.2; }
.loja__meta span { display: block; font-size: 12px; color: var(--tx2); white-space: nowrap; }

.aviso-fechado {
  max-width: calc(var(--max) - 40px);
  margin: 14px auto 0;
  background: #FFF5E6; border: 1px solid #F7DDB4; color: #7A4B06;
  border-radius: 14px; padding: 12px 14px; font-size: 14px;
}
@media (max-width: 800px) { .aviso-fechado { margin: 14px 16px 0; } }

/* ---------- Barra fixa ---------- */
.barra {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  margin-top: 10px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.barra.is-fixa { border-bottom-color: var(--linha); }
.busca {
  max-width: var(--max); margin: 0 auto; padding: 10px 20px 6px;
  position: relative;
}
.busca svg { position: absolute; left: 34px; top: 50%; transform: translateY(-35%); width: 18px; height: 18px; color: var(--tx3); }
.busca input {
  width: 100%; height: 44px;
  border: 1px solid var(--linha); background: var(--card);
  border-radius: 12px; padding: 0 14px 0 42px; outline: none;
}
.busca input:focus { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 14%, transparent); }
.chips {
  max-width: var(--max); margin: 0 auto;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 6px 20px 12px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--linha);
  color: var(--tx2); font-size: 14px; font-weight: 600;
  transition: all .15s;
}
.chip.is-ativo { background: var(--tx); border-color: var(--tx); color: #fff; }

/* Carrossel de categorias no computador (mouse): roda do mouse e arrastar.
   Celular e tablet continuam com o deslizar do dedo, sem mudança. */
.chips-box { position: relative; max-width: var(--max); margin: 0 auto; }
.chips-box .chips { max-width: none; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .chips-box .chips { cursor: grab; }
  .chips-box .chips.is-arrastando { cursor: grabbing; scroll-behavior: auto; }
  .chips-box .chips.is-arrastando .chip { pointer-events: none; }
  .chips-box.pode-dir .chips { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 80px), transparent calc(100% - 14px)); mask-image: linear-gradient(to right, #000 calc(100% - 80px), transparent calc(100% - 14px)); }
  .chips-box.pode-esq .chips { -webkit-mask-image: linear-gradient(to right, transparent 14px, #000 80px); mask-image: linear-gradient(to right, transparent 14px, #000 80px); }
  .chips-box.pode-esq.pode-dir .chips { -webkit-mask-image: linear-gradient(to right, transparent 14px, #000 80px, #000 calc(100% - 80px), transparent calc(100% - 14px)); mask-image: linear-gradient(to right, transparent 14px, #000 80px, #000 calc(100% - 80px), transparent calc(100% - 14px)); }
}

/* ---------- Conteúdo ---------- */
.conteudo { max-width: var(--max); margin: 0 auto; padding: 8px 20px 24px; }
.vazio, .sem-resultado { text-align: center; color: var(--tx2); padding: 48px 0; }

.titulo-secao {
  display: flex; align-items: baseline; gap: 8px;
  font: 700 20px/1.2 var(--fonte-t);
  letter-spacing: -.01em;
  margin: 26px 0 12px;
}
.titulo-secao small { font: 600 12px var(--fonte); color: var(--tx3); letter-spacing: 0; }

.destaques {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none;
}
.destaques::-webkit-scrollbar { display: none; }
.dcard {
  flex: none; width: 168px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio);
  overflow: hidden; text-align: left; padding: 0;
  transition: transform .15s, box-shadow .15s;
}
.dcard:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.dcard .thumb { width: 100%; height: 120px; border-radius: 0; }
.dcard__txt { padding: 10px 12px 12px; }
.dcard__nome { font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.dcard__preco { margin-top: 6px; font-weight: 700; color: var(--p); font-size: 14px; }

.lista { display: grid; gap: 10px; }
.item {
  display: flex; gap: 16px; align-items: stretch;
  width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio);
  padding: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.item:hover { border-color: color-mix(in srgb, var(--p) 25%, var(--linha)); box-shadow: var(--sombra); }
.item__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item__nome { font-weight: 700; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.item__desc {
  color: var(--tx2); font-size: 13px; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item__preco { margin-top: auto; padding-top: 10px; font-weight: 800; font-size: 15px; color: var(--tx); }
.item__preco small { font-weight: 500; color: var(--tx2); font-size: 12px; }
.item__midia { position: relative; flex: none; }
.item .thumb { width: 100px; height: 100px; border-radius: 14px; }
.item__add {
  position: absolute; right: -6px; bottom: -6px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); color: var(--p);
  box-shadow: 0 2px 8px rgba(30,22,34,.18); border: 1px solid var(--linha);
  transition: transform .15s, background .15s, color .15s;
}
.item:hover .item__add { background: var(--p); color: #fff; transform: scale(1.06); }

.thumb {
  border-radius: 12px; overflow: hidden;
  background: color-mix(in srgb, var(--p) 8%, #fff);
  display: grid; place-items: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 40%; height: 40%; color: color-mix(in srgb, var(--p) 45%, #fff); }
.thumb--mini { width: 56px; height: 56px; flex: none; border-radius: 10px; }

.tag-destaque {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--d); background: color-mix(in srgb, var(--d) 12%, #fff);
  padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; align-self: flex-start;
}

/* ---------- Rodapé ---------- */
.rodape { text-align: center; color: var(--tx3); font-size: 12px; padding: 24px 20px 12px; }
.rodape p { margin: 2px 0; }
.rodape a { color: var(--tx2); font-weight: 600; text-decoration: none; }

/* ---------- Barra da sacola ---------- */
.sacola-bar {
  position: fixed; z-index: 30;
  left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 560px);
  display: flex; align-items: center; gap: 12px;
  border: 0; border-radius: 16px;
  background: var(--p); color: #fff;
  padding: 14px 18px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--p) 40%, transparent);
  font-weight: 600;
  animation: sobe .25s ease-out;
}
.sacola-bar span:nth-child(2) { flex: 1; text-align: left; }
.sacola-bar__qtd {
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px;
  background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 13px;
}
@keyframes sobe { from { transform: translate(-50%, 20px); opacity: 0; } }

/* ---------- Pedido em andamento ---------- */
.pedido-ativo {
  position: fixed; z-index: 29;
  left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 560px);
  display: flex; align-items: center; gap: 12px;
  background: var(--card); color: var(--tx); text-decoration: none;
  border: 1px solid var(--linha); border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(30, 22, 34, .14);
  animation: sobe .25s ease-out;
}
.pedido-ativo.com-sacola { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 66px); }
.pedido-ativo__dot { width: 10px; height: 10px; border-radius: 50%; background: #E07A00; flex: none; box-shadow: 0 0 0 4px rgba(224,122,0,.15); animation: pulsoAtivo 1.6s infinite; }
.pedido-ativo.st-saiu .pedido-ativo__dot, .pedido-ativo.st-pronto .pedido-ativo__dot { background: #1D5FD1; box-shadow: 0 0 0 4px rgba(29,95,209,.15); }
@keyframes pulsoAtivo { 50% { opacity: .35; } }
.pedido-ativo__txt { flex: 1; min-width: 0; line-height: 1.25; }
.pedido-ativo__txt strong { display: block; font-size: 13px; color: var(--tx2); font-weight: 600; }
.pedido-ativo__txt span { display: block; font-weight: 700; }
.pedido-ativo__ver { color: var(--p); font-weight: 700; font-size: 14px; white-space: nowrap; }
.pedido-ativo.is-mudou { animation: chacoalha .6s ease; }
@keyframes chacoalha { 20%, 60% { transform: translateX(calc(-50% - 4px)); } 40%, 80% { transform: translateX(calc(-50% + 4px)); } }

/* ---------- Sheets (modais) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: none; }
.sheet.is-aberto { display: block; }
.sheet__fundo { position: absolute; inset: 0; background: rgba(20, 12, 24, .5); animation: fade .2s; }
.sheet__painel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 92vh; max-height: 92dvh;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column;
  animation: sheet .28s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 720px) {
  .sheet__painel {
    left: 50%; top: 50%; bottom: auto; right: auto;
    width: 560px; max-height: 88vh;
    transform: translate(-50%, -50%);
    border-radius: 22px;
    animation: pop .22s ease-out;
  }
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } }

.sheet__cabeca {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--linha);
}
.sheet__cabeca h2 { flex: 1; margin: 0; font: 700 19px/1.2 var(--fonte-t); }
.sheet__rolagem { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.sheet__rodape {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha);
}
.sheet__x, .sheet__voltar {
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: #F4EFEA; display: grid; place-items: center; flex: none;
}
.sheet__x { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.sheet__x--cabeca { position: static; box-shadow: none; background: #F4EFEA; }
.sheet__voltar { margin-left: -6px; }

/* Produto */
.prod__img { height: 220px; background: color-mix(in srgb, var(--p) 8%, #fff); display: grid; place-items: center; }
.prod__img img { width: 100%; height: 100%; object-fit: cover; }
.prod__img svg { width: 72px; height: 72px; color: color-mix(in srgb, var(--p) 40%, #fff); }
.sheet__painel--produto .prod__img { border-radius: 22px 22px 0 0; overflow: hidden; }
/* Foto do produto enquadrada inteira (sem cortar), com fundo desfocado da própria foto */
.prod__img.tem-foto { position: relative; height: clamp(230px, 40vh, 340px); background: #141414; isolation: isolate; display: flex; align-items: center; justify-content: center; }
.prod__img.tem-foto .prod__img-fundo {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover; filter: blur(30px) brightness(.45) saturate(1.1); z-index: -1;
}
.prod__img.tem-foto .prod__img-foto {
  position: relative; flex: none; width: auto; height: 100%; max-height: 100%; max-width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.prod__corpo { padding: 18px 20px 8px; }
.prod__corpo h2 { margin: 0; font: 700 23px/1.2 var(--fonte-t); letter-spacing: -.01em; }
.prod__desc { color: var(--tx2); margin: 6px 0 0; }

.grupo { margin-top: 20px; }
.grupo__cabeca {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #F7F2EC; border-radius: 12px; padding: 10px 14px;
}
.grupo__cabeca h3 { margin: 0; font-size: 15px; }
.grupo__cabeca p { margin: 0; font-size: 12px; color: var(--tx2); }
.badge {
  flex: none; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--tx); color: #fff;
}
.badge.is-ok { background: #E6F6EE; color: #157A45; }
.badge--opc { background: #EEE7E0; color: var(--tx2); }
.grupo.is-erro .grupo__cabeca { background: #FDECEF; }
.grupo.is-erro .badge { background: var(--erro); }

.opcao {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 4px; border-bottom: 1px solid var(--linha); cursor: pointer;
}
.opcao:last-child { border-bottom: 0; }
.opcao__nome { flex: 1; }
.opcao__preco { color: var(--tx2); font-size: 14px; }
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.opcao__marca {
  width: 22px; height: 22px; flex: none;
  border: 2px solid #CFC6CF; display: grid; place-items: center;
  transition: all .12s;
}
.opcao__marca--radio { border-radius: 50%; }
.opcao__marca--check { border-radius: 7px; }
.opcao input:checked + .opcao__marca { border-color: var(--p); background: var(--p); }
.opcao input:checked + .opcao__marca::after {
  content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.opcao input:checked + .opcao__marca--radio::after {
  width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none;
}
.opcao input:disabled + .opcao__marca { opacity: .35; }
.opcao.is-off { opacity: .5; cursor: not-allowed; }
.opcao input:focus-visible + .opcao__marca { outline: 3px solid color-mix(in srgb, var(--p) 30%, transparent); outline-offset: 2px; }

.campo { display: block; margin-top: 12px; }
.campo > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.campo em { font-style: normal; color: var(--tx3); font-weight: 500; }
.campo input, .campo textarea {
  width: 100%; border: 1px solid var(--linha); background: #fff;
  border-radius: 12px; padding: 12px 14px; outline: none; resize: none;
  transition: border-color .15s, box-shadow .15s;
}
.campo input:focus, .campo textarea:focus { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 14%, transparent); }
.campo.is-erro input { border-color: var(--erro); }
.campo--obs { margin-top: 22px; }
.linha { display: flex; gap: 10px; }
.campo--g { flex: 1; }
.campo--p { width: 96px; flex: none; }

.qtd {
  display: flex; align-items: center; border: 1px solid var(--linha); border-radius: 12px; height: 50px;
}
.qtd button { width: 44px; height: 100%; border: 0; background: none; font-size: 22px; color: var(--p); }
.qtd button:disabled { color: var(--tx3); }
.qtd span { min-width: 26px; text-align: center; font-weight: 700; }

.btn-primario {
  flex: 1; height: 50px; border: 0; border-radius: 14px;
  background: var(--p); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
  transition: filter .15s, opacity .15s;
}
.btn-primario:hover { filter: brightness(1.08); }
.btn-primario:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn-primario--cheio { justify-content: center; }
.btn-primario.is-carregando { pointer-events: none; opacity: .75; }
.btn-link { background: none; border: 0; color: var(--p); font-weight: 700; padding: 14px 20px; }
.btn-sec {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--linha); background: #fff; color: var(--tx);
  font-weight: 600; text-decoration: none;
}

/* Sacola */
.itens { list-style: none; margin: 0; padding: 8px 20px 0; }
.itens li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.itens .info-item { flex: 1; min-width: 0; }
.itens .nome-item { font-weight: 700; }
.itens .ops { font-size: 13px; color: var(--tx2); margin-top: 2px; }
.itens .obs { font-size: 13px; color: var(--tx2); margin-top: 2px; font-style: italic; }
.itens .valor-item { font-weight: 700; margin-top: 6px; }
.itens .acoes-item { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.qtd--mini { height: 36px; border-radius: 10px; }
.qtd--mini button { width: 34px; font-size: 18px; }
.qtd--mini span { min-width: 20px; font-size: 14px; }
.vazio-sacola { text-align: center; padding: 40px 20px; color: var(--tx2); }

.bloco { border: 0; margin: 0; padding: 18px 20px 4px; }
.bloco + .bloco { border-top: 8px solid #F7F2EC; }
.bloco legend { font: 700 17px/1.2 var(--fonte-t); padding: 0; float: left; width: 100%; }
.bloco legend em { font: 500 13px var(--fonte); color: var(--tx2); font-style: normal; margin-left: 4px; }
.bloco legend + * { clear: both; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.segmento { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding-top: 12px; }
.segmento label, .pag { cursor: pointer; }
.segmento input, .pag input { position: absolute; opacity: 0; }
.segmento span {
  display: block; border: 1.5px solid var(--linha); border-radius: 14px; padding: 12px 14px;
  font-weight: 700; transition: all .12s;
}
.segmento small { display: block; font-weight: 500; color: var(--tx2); font-size: 12px; }
.segmento input:checked + span, .pag input:checked + span {
  border-color: var(--p); background: color-mix(in srgb, var(--p) 6%, #fff);
  box-shadow: inset 0 0 0 1px var(--p);
}
.segmento input:focus-visible + span, .pag input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--p) 30%, transparent); }
.pagamentos { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; padding-top: 12px; }
.pag span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border: 1.5px solid var(--linha); border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.pag__ico { width: 22px; height: 22px; }
.pag__ico--dinheiro { color: #15803D; }
.pag__ico--cartao, .pag__ico--debito { color: #2350D8; }
.pag__ico--credito { color: #7C3AED; }
.pagamentos--4 { grid-template-columns: repeat(2, 1fr); }
.pag__ico--pix { color: #0E9384; }
/* Pagamento dividido */
.pag-dividir {
  display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 11px 14px;
  border: 1.5px dashed var(--linha); border-radius: 12px; background: #fff; color: var(--tx);
  font: 600 14px var(--fonte); cursor: pointer; text-align: left; transition: border-color .12s, color .12s;
}
.pag-dividir svg { width: 18px; height: 18px; flex: none; color: var(--tx2); }
.pag-dividir:hover, .pag-dividir[aria-expanded="true"] { border-color: var(--p); color: var(--p); }
.pag-dividir:hover svg, .pag-dividir[aria-expanded="true"] svg { color: var(--p); }
.pag-dividir:focus-visible { outline: 3px solid color-mix(in srgb, var(--p) 30%, transparent); outline-offset: 2px; }
.dividir { display: grid; gap: 10px; margin-top: 12px; }
.dividir__tit { margin: 0; font-size: 13px; color: var(--tx2); }
.dividir__linha { border: 1.5px solid var(--linha); border-radius: 14px; padding: 11px 12px; transition: border-color .12s, background .12s; }
.dividir__linha.is-on { border-color: var(--p); background: color-mix(in srgb, var(--p) 5%, #fff); }
.dividir__topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dividir__marca { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; font-weight: 600; font-size: 14px; cursor: pointer; }
.dividir__marca input { width: 18px; height: 18px; accent-color: var(--p); flex: none; }
.dividir__marca span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dividir__marca .pag__ico { width: 20px; height: 20px; flex: none; }
.dividir__valor { display: flex; align-items: center; gap: 6px; width: 128px; flex: none; padding: 0 10px; background: #fff; border: 1.5px solid var(--linha); border-radius: 10px; }
.dividir__valor:focus-within { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 14%, transparent); }
.dividir__valor b { font-size: 13px; color: var(--tx2); font-weight: 600; }
.dividir__valor input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 9px 0; text-align: right; font: 700 15px var(--fonte); color: var(--tx); }
.dividir__troco { margin-top: 2px; }
.dividir__troco .check { margin-top: 8px; }
.dividir__soma { padding: 9px 12px; border-radius: 10px; background: #F7F2EC; color: var(--tx2); font-size: 13px; font-weight: 600; }
.dividir__soma.is-ok { background: #E8F6EC; color: #15803D; }
.dividir__soma.is-aviso { background: #FFF5E6; color: #9A5B00; }
.dividir__soma.is-erro { background: #FDECEF; color: #A61E33; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--p); }
.pix-info { margin-top: 12px; background: #F7F2EC; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--tx2); word-break: break-word; }

.resumo { margin: 8px 20px 0; padding: 14px 0 4px; border-top: 1px dashed var(--linha); }
.resumo div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--tx2); }
.resumo .resumo__total { color: var(--tx); font-weight: 800; font-size: 17px; padding-top: 6px; }
.resumo__aviso { margin: 8px 0 0; font-size: 13px; color: #9A5B00; background: #FFF5E6; padding: 8px 10px; border-radius: 10px; }
.erro-form { margin: 12px 20px 0; background: #FDECEF; color: #A61E33; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.sheet__rolagem > :last-child { margin-bottom: 18px; }

/* Info */
.info { padding: 6px 20px 20px; }
.info h3 { font: 700 15px var(--fonte-t); margin: 18px 0 6px; }
.info p { margin: 0; color: var(--tx2); }
.horarios { list-style: none; margin: 0; padding: 0; }
.horarios li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--linha); color: var(--tx2); font-size: 14px; }
.horarios li.is-hoje { color: var(--tx); font-weight: 700; }
.info__acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* Toast */
.toast {
  position: fixed; left: 50%; top: 16px; z-index: 80;
  transform: translate(-50%, -140%);
  background: var(--tx); color: #fff; padding: 11px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 600; transition: transform .25s ease, visibility .25s;
  max-width: calc(100% - 32px); visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

body.trava { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.sheet__rodape--sacola { flex-wrap: wrap; }
.aviso-wpp { display: flex; align-items: center; justify-content: center; text-align: center; gap: 6px; margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: #148A45; width: 100%; }
.aviso-wpp svg { flex: none; }
