/* ==========================================================================
   O Bacano — pedido (menu e landing)
   O ecra do produto funciona como um quiosque: quantidade, opcoes
   obrigatorias, "Para beber?", "Junta ao pedido" e observacoes no mesmo
   ecra, sem pop-ups em cadeia. Depois, o carrinho com comer ca / levantar /
   entrega. So tokens do sistema do menu (tema creme em base.css).
   ========================================================================== */

/* --- Folha (bottom sheet no telemovel, modal no desktop) ---------------- */
.sheet {
  border: 0; padding: 0; margin: 0; color: var(--ink);
  background: transparent;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  overflow: visible;
}
.sheet::backdrop { background: rgb(6 4 3 / .62); backdrop-filter: blur(3px); }

.sheet__shell {
  position: fixed; inset: auto 0 0 0;
  display: flex; flex-direction: column;
  max-height: 92dvh;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  will-change: transform;
}
.sheet__shell:focus { outline: none; }
.sheet__grip {
  flex: 0 0 auto; padding: 10px 0 4px; display: grid; place-items: center;
  touch-action: none; cursor: grab;
}
.sheet__grip::after { content: ""; width: 42px; height: 4px; border-radius: 999px; background: var(--line); }
.sheet__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(6px);
  transition: transform var(--t-fast) var(--ease-spring), background var(--t-fast) var(--ease-out);
}
.sheet__close:hover { background: var(--surface-2); }
.sheet__close:active { transform: scale(.92); }

.sheet__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.sheet__media {
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 30% 10%, hsl(var(--h) 72% 82% / .9), transparent 70%),
    linear-gradient(160deg, hsl(var(--h) 60% 88%), hsl(calc(var(--h) - 14) 48% 78%));
}
.sheet__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet__art { display: grid; place-items: center; color: hsl(var(--h) 58% 26%); }
.sheet__art[hidden] { display: none; } /* com fotografia, o desenho sai de cena */
.sheet__media svg { width: 30%; height: auto; opacity: .58; }

.sheet__body { padding: 20px var(--gutter) 24px; }
.sheet__cat {
  margin: 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ember); font-weight: 600;
}
.sheet__title {
  margin: 8px 0 0;
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1; letter-spacing: .01em;
}
.sheet__price {
  margin: 10px 0 0; font-family: var(--f-display); font-size: 1.6rem; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.sheet__price:empty { display: none; }
.sheet__desc { margin: 12px 0 0; color: var(--ink-2); font-size: 1rem; }
.sheet__tags { margin-top: 16px; }
.sheet__tags:empty { display: none; }
.sheet__note {
  margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
}

/* rodape fixo: quantidade + adicionar com o total */
.sheet__foot {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--line), 0 -12px 24px -18px rgb(60 40 20 / .3);
}
.sheet__add { flex: 1; min-height: 52px; justify-content: space-between; padding-inline: 22px; }
.sheet__add-txt, .sheet__add-total { white-space: nowrap; }
.sheet__add-total { font-variant-numeric: tabular-nums; }
.sheet__add:disabled { opacity: .55; cursor: not-allowed; filter: none; transform: none; }

@media (min-width: 760px) {
  .sheet__shell {
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(980px, calc(100vw - 80px));
    height: min(720px, 90vh); max-height: none;
    border-radius: var(--radius-lg);
    /* a foto fica parada a esquerda; so a coluna da direita rola */
    display: grid; grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  }
  .sheet__grip { display: none; }
  .sheet__scroll { display: contents; }
  .sheet__media { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
  .sheet__body { grid-column: 2; grid-row: 1; overflow-y: auto; overscroll-behavior: contain; padding: 36px 36px 28px; }
  .sheet__foot { grid-column: 2; grid-row: 2; padding: 14px 36px; }
  /* o pedido nao tem foto: uma coluna so, mais estreita */
  .sheet--pedido .sheet__shell { width: min(620px, calc(100vw - 80px)); grid-template-columns: minmax(0, 1fr); }
  .sheet--pedido .sheet__body, .sheet--pedido .sheet__foot { grid-column: 1; }
}

/* entrada e saida */
.sheet[open] .sheet__shell { animation: sheet-in .42s var(--ease-out); }
.sheet[open]::backdrop { animation: fade-in .3s var(--ease-out); }
.sheet.is-closing .sheet__shell { animation: sheet-out .22s var(--ease-out) forwards; }
.sheet.is-closing::backdrop { animation: fade-out .22s var(--ease-out) forwards; }
.sheet.is-dragging .sheet__shell { animation: none; }

@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); opacity: .6; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

@media (min-width: 760px) {
  @keyframes sheet-in {
    from { transform: translate(-50%, -46%) scale(.94); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  }
  @keyframes sheet-out {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to { transform: translate(-50%, -48%) scale(.97); opacity: 0; }
  }
}

/* --- Pecas comuns ------------------------------------------------------- */
.stepper {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stepper__btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 500; line-height: 1; color: var(--ink);
  transition: transform var(--t-fast) var(--ease-spring), background var(--t-fast) var(--ease-out), opacity var(--t-fast);
}
.stepper__btn:hover { background: var(--surface-2); }
.stepper__btn:active { transform: scale(.88); }
.stepper__btn:disabled { opacity: .3; cursor: default; transform: none; background: none; }
.stepper__n { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper--sm .stepper__btn { width: 34px; height: 34px; font-size: 1.1rem; }
.stepper--sm .stepper__n { min-width: 20px; font-size: .9rem; }

/* marcas de bebida: +18 e "so no restaurante" */
.flag {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap;
}
.flag--18 { color: var(--ember); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ember) 40%, transparent); }

.campo { display: grid; gap: 6px; margin: 0; }
.campo > span { font-size: .85rem; font-weight: 600; }
.campo input, .campo textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border-radius: 14px; border: 0;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t-fast) var(--ease-out);
}
.campo textarea { resize: vertical; min-height: 84px; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--muted); }
.campo input:focus, .campo textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ember); }
.campo.is-invalid input, .campo.is-invalid textarea { box-shadow: inset 0 0 0 2px var(--ember); }
.campo__dica { font-size: .76rem; color: var(--muted); }
.campo__conta { justify-self: end; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.campo__erro { display: none; font-size: .8rem; font-weight: 600; color: var(--ember); }
.campo.is-invalid .campo__erro { display: block; }

/* --- Configurador ------------------------------------------------------- */
/* minmax(0, 1fr): sem isto o trilho das sugestoes alarga a coluna e a folha */
.cfg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 6px; }
.cfg:empty { display: none; }
.cfg__sec { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.cfg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cfg__title {
  margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: 1.4rem; line-height: 1; letter-spacing: .01em;
}
.cfg__sub { margin: 4px 0 0; font-size: .82rem; color: var(--muted); }
.cfg__req {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 999px;
  font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ember); background: color-mix(in srgb, var(--ember) 10%, transparent);
}
.cfg__req.is-ok { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }

/* opcoes obrigatorias: chips do menu a fazer de radio */
.opts { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .chip { cursor: pointer; }
.opt input:checked + .chip {
  color: #fff; background: var(--ember);
  box-shadow: inset 0 0 0 1px var(--ember), 0 6px 18px -8px color-mix(in srgb, var(--ember) 80%, transparent);
}
.opt input:focus-visible + .chip { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt input:disabled + .chip { opacity: .4; cursor: not-allowed; }
.opt__extra { font-size: .78rem; opacity: .8; }

/* "Para beber?": categorias fechadas, abrem com um toque */
.beb { display: grid; gap: 8px; }
.beb[hidden] { display: none; }
.beb__grupo {
  border-radius: var(--radius); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t-fast) var(--ease-out);
}
.beb__grupo[open] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ember) 35%, var(--line)), var(--shadow-1); }
.beb__sum {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; cursor: pointer; list-style: none;
  border-radius: var(--radius);
}
.beb__sum::-webkit-details-marker { display: none; }
.beb__sum:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.beb__nome { font-weight: 600; font-size: .95rem; }
.beb__desde { font-size: .78rem; color: var(--muted); margin-right: auto; }
.beb__conta {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: #fff; background: var(--ember);
}
.beb__conta[hidden] { display: none; }
.beb__seta { width: 18px; height: 18px; color: var(--muted); transition: transform var(--t) var(--ease-spring); }
.beb__grupo[open] .beb__seta { transform: rotate(180deg); }
.beb__lista { list-style: none; margin: 0; padding: 0 8px 8px; display: grid; }
.beb__item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 8px 8px; border-radius: 12px;
}
.beb__item + .beb__item { box-shadow: 0 -1px 0 var(--line); }
.beb__item.is-on { background: color-mix(in srgb, var(--ember) 6%, transparent); }
.beb__info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.beb__item-nome { font-size: .92rem; }
.beb__preco { font-size: .86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.beb__nota { margin: 10px 2px 0; font-size: .78rem; color: var(--muted); }

/* --- Escolhas em chip: "O que vai beber?" e o lembrete do carrinho ------ */
.cfg__beb .cfg__title, .cfg__mais .cfg__title, .lembrete .cfg__title { margin-bottom: 12px; }
.lembrete .cfg__sub { margin: -8px 0 12px; }
.escolha { display: flex; flex-wrap: wrap; gap: 8px; }
.escolha .chip, .mais__cats .chip { cursor: pointer; }
.chip[aria-pressed="true"] .chip__count { background: rgb(255 255 255 / .22); }
.escolha + .beb { margin-top: 12px; }
/* as tres respostas da bebida numa linha, com a mesma largura (seletor) */
.cfg__beb .escolha { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cfg__beb .escolha .chip {
  justify-content: center; text-align: center; white-space: normal;
  padding: 10px 8px; line-height: 1.2; min-height: 46px;
}

/* --- "Adicionar ao pedido": categorias na horizontal, lista simples ------- */
.mais__cats {
  display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.mais__cats::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .mais__cats { margin: 0; padding-inline: 0; flex-wrap: wrap; } }
.mais__lista {
  list-style: none; margin: 10px 0 0; padding: 4px 8px;
  border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.mais__lista[hidden] { display: none; }
.mais__item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.mais__item + .mais__item { box-shadow: 0 -1px 0 var(--line); }
.mais__nome { flex: 1; min-width: 0; font-size: .92rem; }
.mais__preco { font-size: .86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mais__item.is-on .mais__nome { font-weight: 600; }
.sug__add {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--t-fast) var(--ease-spring), background var(--t-fast) var(--ease-out), color var(--t-fast);
}
.sug__add .ico { width: 16px; height: 16px; }
.sug__add:active { transform: scale(.88); }
.sug__add[aria-pressed="true"] { background: var(--ember); color: #fff; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--ember) 80%, transparent); }

/* --- Observacoes: um link ate serem precisas ---------------------------- */
.cfg__obs { padding-top: 14px; }
.cfg__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 600; color: var(--ember);
}
.cfg__link .ico { width: 16px; height: 16px; }
.cfg__obs .campo[hidden] { display: none; }

/* --- Carrinho ----------------------------------------------------------- */
.pedido__title {
  margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1;
}
.pedido__sec { margin-top: 22px; }
.pedido__h { margin: 0 0 10px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); font-weight: 600; }

/* passo "Levantar ou entrega?": duas escolhas grandes, um toque e segue */
.modo { display: grid; gap: 10px; margin-top: 22px; }
.modo__op {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 18px 16px; border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-fast) var(--ease-out);
}
.modo__op:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ember) 45%, var(--line)), var(--shadow-2); }
.modo__op:active { transform: scale(.98); }
.modo__op > .ico:first-child {
  flex: 0 0 auto; width: 48px; height: 48px; padding: 12px; border-radius: 14px;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent);
}
.modo__op span { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: .84rem; color: var(--muted); }
.modo__op strong { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.modo__op em { font-style: normal; color: var(--ember); font-weight: 600; }
.modo__seta { width: 20px; height: 20px; color: var(--muted); }

.pedido__voltar {
  display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px -4px; padding: 6px 4px;
  font-size: .85rem; font-weight: 500; color: var(--ember);
}
.pedido__voltar .ico { width: 16px; height: 16px; }
.pedido__mais { margin: 12px 0 0; }
.pedido__alerta { padding: 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--ember) 6%, transparent); }
.pedido__alerta .linha__aviso { margin: 0 0 10px; }
.pedido__alerta .linha { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ember) 40%, var(--line)); }
.pedido__alerta-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pedido__alerta-acoes .btn { flex: 1; min-height: 44px; }

.linhas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.linha {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start;
  padding: 12px; border-radius: var(--radius); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.linha.is-bloq { box-shadow: inset 0 0 0 2px var(--ember); }
.linha__img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.linha__info { min-width: 0; }
.linha__nome { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.linha__det { margin: 3px 0 0; font-size: .8rem; color: var(--ink-2); }
.linha__nota { margin: 3px 0 0; font-size: .8rem; font-style: italic; color: var(--muted); }
.linha__aviso { margin: 6px 0 0; font-size: .78rem; font-weight: 600; color: var(--ember); }
.linha__preco { font-family: var(--f-display); font-size: 1.12rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.linha__acoes { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.linha__rem { font-size: .8rem; font-weight: 500; color: var(--ember); padding: 6px 2px; }

.pedido__campos { display: grid; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ember); flex: 0 0 auto; }
.check.is-invalid { color: var(--ember); font-weight: 600; }

.contas { margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.contas div { display: flex; justify-content: space-between; gap: 12px; }
.contas dt { color: var(--ink-2); }
.contas dd { margin: 0; font-variant-numeric: tabular-nums; }
.contas .is-total { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; }
.contas .is-total dd { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; color: var(--gold); }

.pedido__foot { flex-direction: column; align-items: stretch; gap: 8px; }
.pedido__foot .btn { width: 100%; min-height: 52px; justify-content: space-between; padding-inline: 22px; }
.pedido__foot .btn--ghost { justify-content: center; }
.pedido__foot:empty { display: none; }
.pedido__aviso { margin: 0; font-size: .8rem; color: var(--ember); font-weight: 600; text-align: center; }

.pedido__vazio { padding: 40px 0 10px; text-align: center; }
.pedido__vazio .ico { width: 56px; height: 56px; padding: 14px; border-radius: 16px; color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.pedido__vazio p { margin: 14px auto 18px; max-width: 30ch; color: var(--ink-2); }

.resumo {
  margin: 0; padding: 14px 16px; border-radius: var(--radius);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-size: .86rem; line-height: 1.5; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
}

/* --- Barra fixa "Ver pedido" -------------------------------------------- */
.barra {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 80;
  width: min(440px, calc(100vw - 2 * var(--gutter)));
  transform: translateX(-50%);
  animation: barra-in .5s var(--ease-spring);
}
.barra[hidden] { display: none; }
@keyframes barra-in { from { transform: translate(-50%, 140%); } }
.barra__btn {
  width: 100%; min-height: 58px;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-2);
  transition: transform var(--t-fast) var(--ease-spring);
}
.barra__btn:active { transform: scale(.97); }
.barra.is-bump .barra__btn { animation: bump .45s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.05); } }
.barra__n {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--gold); color: #fff;
  font-family: var(--f-display); font-size: 1.15rem;
}
.barra__txt { flex: 1; text-align: left; font-weight: 600; }
.barra__total { font-family: var(--f-display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
body.has-barra { padding-bottom: 88px; }

/* o saco do header passa a mostrar quantos itens ha */
.header__dot[data-pedido-n] {
  width: auto; height: auto; min-width: 18px; padding: 2px 5px; top: -8px; right: -10px;
  display: grid; place-items: center; border-radius: 999px;
  font-size: .64rem; font-weight: 700; line-height: 1.2; color: #fff;
}
.header__dot[hidden] { display: none; }

.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 81;
  margin: 0; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: .88rem; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2);
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .barra, .barra.is-bump .barra__btn { animation: none; }
}

/* --- Entrega: distancia e taxa pelo codigo postal (zonas.js) ------------ */
.geo-box:empty { display: none; }
.geo { margin: 0; padding: 12px 14px; border-radius: 14px; font-size: .86rem; line-height: 1.45; }
.geo strong { display: block; font-size: .95rem; color: var(--ink); }
.geo p { margin: 0; }
.geo--a-ver { color: var(--muted); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.geo--ok {
  display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2);
  background: color-mix(in srgb, var(--green) 12%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 40%, transparent);
}
.geo--ok .ico { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; color: var(--green); }
.geo--longe {
  display: grid; gap: 10px; color: var(--ink-2);
  background: color-mix(in srgb, var(--ember) 9%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ember) 35%, transparent);
}
.geo__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.geo--aviso { color: var(--ink-2); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.contas small { font-weight: 400; color: var(--muted); }

/* --- Telefone: indicativo do pais + numero ------------------------------ */
.tel { display: flex; gap: 8px; }
.tel input { flex: 1; min-width: 0; }
.tel__ind {
  position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  padding: 0 12px; border-radius: 14px; font-size: .95rem; font-variant-numeric: tabular-nums;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.tel__ind:focus-within { box-shadow: inset 0 0 0 2px var(--ember); }
/* o select nativo fica por cima, invisivel: abre a lista do sistema (boa no telemovel) */
.tel__ind select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.tel__seta { width: 14px; height: 14px; color: var(--muted); }
.campo > label { font-size: .85rem; font-weight: 600; }
.campo.is-invalid .tel input { box-shadow: inset 0 0 0 2px var(--ember); }

/* --- Supabase: numero do pedido e esgotados ------------------------------ */
.pedido__num { margin: 6px 0 0; font-size: .95rem; color: var(--ink-2); }
.pedido__num strong { font-family: var(--f-display, inherit); font-size: 1.25rem; color: var(--ink); letter-spacing: .02em; }
