/* =========================================================
   PRO BURGER — Pedido online: carrinho, montagem do item, checkout
   ========================================================= */
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: .25s var(--ease); }
.cart-btn:hover { border-color: var(--blue); color: var(--blue); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.cart-count[hidden] { display: none; }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } }

/* Modal do produto: duas colunas, área rolável e rodapé fixo */
/* Foto vertical inteira (3:4); se a foto tiver outro formato, aparece completa sobre um fundo desfocado dela mesma */
.modal-card { width: min(1000px, 100%); height: min(700px, 92vh); overflow: hidden; grid-template-columns: auto 1fr; }
.modal-media { position: relative; height: 100%; aspect-ratio: 3/4; min-height: 0; overflow: hidden; background: #111; }
.modal-media::before { content: ""; position: absolute; inset: -30px; background: var(--img) center/cover; filter: blur(24px) brightness(.55); }
.modal-media img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.modal-media.noimg::before { display: none; }
.modal-body { padding: 0; gap: 0; min-height: 0; }
.modal-scroll { padding: 30px 28px 10px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.modal-price small { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.modal-foot { display: flex; gap: 12px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--card); }
.add-btn { flex: 1; justify-content: space-between; padding: 15px 22px; }
.add-btn.incompleto { background: #3a3a3e; color: #bbb; box-shadow: none; }
.stepper { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; font-size: 20px; font-weight: 700; transition: .2s; }
.stepper button:hover { background: var(--blue); color: var(--on-blue); }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; }

.grupo { margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .3s; }
.grupo.pendente { border-color: rgba(253,64,82,.35); }
.grupo.shake { animation: shake .5s; border-color: var(--red); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* Cabeçalho de cada grupo de complementos no azul do logo */
.grupo header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: var(--blue); color: var(--on-blue); }
.grupo h4 { font-size: .95rem; font-weight: 800; }
.grupo header small { color: rgba(4,19,28,.72); font-size: .78rem; font-weight: 600; }
.grupo-badge { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px; border-radius: 999px; background: rgba(4,19,28,.18); color: var(--on-blue); white-space: nowrap; }
.grupo-badge.req { background: var(--red); color: #fff; }
.grupo-badge.ok { background: #1f9d55; color: #fff; }
.opcao { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); text-align: left; transition: background .2s; }
.opcao:hover { background: rgba(255,255,255,.03); }
.opcao.sel { background: rgba(255,203,5,.07); }
.op-txt { flex: 1; display: flex; flex-direction: column; font-size: .9rem; }
.op-txt b { font-weight: 600; }
.op-txt small { color: var(--muted); font-size: .76rem; }
.op-txt em { font-style: normal; color: var(--yellow); font-size: .8rem; font-weight: 700; }
.op-preco { color: var(--yellow); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #666; flex-shrink: 0; position: relative; transition: .2s; }
.opcao.sel .radio { border-color: var(--yellow); }
.opcao.sel .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--yellow); }
.mini-stepper { display: inline-flex; align-items: center; gap: 6px; }
.mini-stepper button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); font-weight: 800; font-size: 15px; color: var(--yellow); transition: .2s; }
.mini-stepper button:hover:not(:disabled) { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.mini-stepper button:disabled { opacity: .3; cursor: not-allowed; }
.mini-stepper span { min-width: 16px; text-align: center; font-weight: 800; }
.obs { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-weight: 700; font-size: .9rem; }
.obs textarea, .unit-select select { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: inherit; padding: 10px 12px; resize: vertical; }
.obs textarea:focus, .unit-select select:focus { outline: none; border-color: var(--yellow); }

/* Carrinho lateral */
.drawer { position: fixed; inset: 0; z-index: 310; }
.drawer[hidden] { display: none; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; animation: slideIn .4s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.5); }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--display); font-weight: 400; font-size: 36px; }
.drawer-head .modal-close { position: static; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: fade .3s; }
.cart-item img, .ci-ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #222; display: grid; place-items: center; font-size: 28px; }
.ci-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ci-info small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.ci-obs { font-style: italic; }
/* Adicionais no carrinho: etiquetas removíveis + botão Editar */
.ci-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ci-edit { flex-shrink: 0; font-size: .75rem; font-weight: 700; color: var(--blue); padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(1,175,239,.4); transition: .2s; }
.ci-edit:hover { background: var(--blue); color: var(--on-blue); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #dcd9d2; line-height: 1.2; animation: fade .25s; }
.chip.fixo { padding-right: 10px; border-style: dashed; }
.chip em { font-style: normal; color: var(--blue); font-weight: 800; }
.chip i { font-style: normal; color: var(--muted); font-weight: 500; }
.chip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; line-height: 1;
  color: var(--muted); background: rgba(255,255,255,.06); transition: .2s; }
.chip button:hover { background: var(--red); color: #fff; }
/* editar a partir do carrinho: a janela do produto abre por cima do carrinho */
.modal { z-index: 320; }
.ci-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.ci-foot strong { color: var(--yellow); }
.cart-vazio { text-align: center; padding: 60px 10px; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.cart-vazio span { font-size: 54px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--card); }
.drawer-foot[hidden] { display: none; }
.unit-select { display: grid; gap: 10px; }
.unit-select > span { font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
/* Escolha da unidade em cartões (no lugar do menu suspenso) */
.unit-options { display: grid; gap: 10px; }
.unit-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px; text-align: left;
  background: rgba(255,255,255,.03); border: 1.5px solid var(--line); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.unit-opt:hover { border-color: rgba(1,175,239,.5); transform: translateY(-1px); }
.unit-opt.sel { border-color: var(--blue); background: rgba(1,175,239,.1); }
.unit-opt.sel .radio { border-color: var(--blue); }
.unit-opt.sel .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); }
.uo-txt { flex: 1; display: grid; gap: 3px; min-width: 0; }
.uo-txt b { font-size: .98rem; }
.uo-txt small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.on { background: #3ee07f; box-shadow: 0 0 8px #3ee07f; }
.dot.off { background: var(--red); }
.uo-info { text-align: right; font-size: .8rem; font-weight: 700; white-space: nowrap; line-height: 1.35; }
.uo-info small { color: var(--muted); font-weight: 500; }
.sum { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.sum strong { font-size: 1.4rem; color: var(--yellow); }
.checkout-btn { width: 100%; }
.checkout-btn.disabled { background: #3a3a3e; color: #999; box-shadow: none; cursor: not-allowed; }

/* Barra do carrinho no celular */
.cart-bar { position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 95; display: none; justify-content: space-between; align-items: center; gap: 10px;
  padding: 15px 20px; border-radius: 16px; background: var(--blue); color: var(--on-blue); font-weight: 700; box-shadow: 0 14px 40px rgba(0,0,0,.5); animation: rise .4s var(--ease); }
.cart-bar[hidden] { display: none !important; }
.cart-bar b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: var(--on-blue); color: #fff; font-size: .8rem; margin-right: 4px; }

.toast { position: fixed; left: 50%; bottom: 30px; z-index: 400; transform: translate(-50%, 160%); background: #fff; color: #111; font-weight: 700;
  padding: 13px 22px; border-radius: 999px; box-shadow: 0 14px 40px rgba(0,0,0,.4); transition: transform .4s var(--ease); max-width: calc(100% - 30px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

.unit-info { list-style: none; display: grid; gap: 2px; margin-top: 6px; font-size: .88rem; color: #cfccc5; }

/* =========================================================
   Checkout e acompanhamento
   ========================================================= */
.page { padding: 110px 0 80px; min-height: 100vh; }
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: .95; margin-bottom: 8px; }
.back { display: inline-flex; gap: 8px; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.back:hover { color: var(--yellow); }
.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 30px; align-items: start; margin-top: 26px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin-bottom: 20px; }
.panel h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.panel h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--on-blue); display: grid; place-items: center; font-size: .85rem; }
.fields { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.f { display: flex; flex-direction: column; gap: 6px; grid-column: span 6; font-size: .85rem; font-weight: 700; color: #d6d3cc; }
.f.c3 { grid-column: span 3; } .f.c2 { grid-column: span 2; } .f.c4 { grid-column: span 4; }
.f input, .f select, .f textarea { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: inherit; font-weight: 500; padding: 13px 14px; transition: border-color .2s; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--yellow); }
.f option { background: #1c1c1f; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: .2s var(--ease); font-weight: 700; height: 100%; }
.choice small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.choice input:checked + span { border-color: var(--yellow); background: rgba(255,203,5,.08); }
.choice input:focus-visible + span { outline: 2px solid var(--yellow); }
.choice input:disabled + span { opacity: .4; cursor: not-allowed; }
.resumo { position: sticky; top: 96px; }
.resumo-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.resumo-item small { display: block; color: var(--muted); font-size: .78rem; }
.resumo-item strong { white-space: nowrap; }
.linha { display: flex; justify-content: space-between; padding: 6px 0; color: #d6d3cc; }
.linha.total { font-size: 1.35rem; font-weight: 800; color: var(--text); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.linha.total span:last-child { color: var(--yellow); }
.erro { background: rgba(253,64,82,.12); border: 1px solid rgba(253,64,82,.4); color: #ffb3bb; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; }
.aviso { background: rgba(255,203,5,.08); border: 1px solid rgba(255,203,5,.3); color: #ffe27a; padding: 12px 14px; border-radius: 12px; font-size: .88rem; margin-top: 12px; }
.hp { position: absolute; left: -9999px; }

/* Acompanhamento */
.track { max-width: 760px; margin: 0 auto; }
.track-head { text-align: center; margin-bottom: 30px; }
.track-head .big { font-size: 64px; display: block; animation: pop 1.2s var(--ease) infinite alternate; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 26px 0 10px; position: relative; }
.step { text-align: center; position: relative; color: var(--muted); font-size: .82rem; font-weight: 700; }
.step i { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 20px;
  background: #222; border: 2px solid var(--line); position: relative; z-index: 1; transition: .4s var(--ease); }
.step::before { content: ""; position: absolute; top: 23px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.step:first-child::before { display: none; }
.step.done { color: var(--text); }
.step.done i { background: var(--yellow); border-color: var(--yellow); }
.step.done::before { background: var(--yellow); }
.step.atual i { box-shadow: 0 0 0 6px rgba(255,203,5,.2); animation: pulseY 1.6s infinite; }
@keyframes pulseY { 50% { box-shadow: 0 0 0 12px rgba(255,203,5,0); } }
.cancelado { text-align: center; color: var(--red); font-weight: 800; font-size: 1.2rem; margin: 20px 0; }
.pix-box { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.04); border: 1px dashed var(--yellow); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.pix-box code { flex: 1; font-size: .95rem; word-break: break-all; }
.track-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }

@media (max-width: 960px) {
  .checkout { grid-template-columns: 1fr; }
  .resumo { position: static; }
}
@media (max-width: 820px) {
  .cart-bar { display: flex; }
  .nav .cart-btn { margin-left: auto; width: 42px; height: 42px; }
  .nav .burger-btn { margin-left: 0; }
  .nav-inner { gap: 12px; }
  .floats { right: 16px; bottom: 16px; gap: 10px; }
  body:has(.cart-bar:not([hidden])) .floats { bottom: 86px; } /* acima da barra do carrinho */
  .wa-float { width: 54px; height: 54px; }
  .to-top { width: 44px; height: 44px; }
  .toast { bottom: 90px; }
  .modal { padding: 0; place-items: end center; }
  .modal-card { height: 94vh; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; }
  .modal-media { position: relative; min-height: 0; height: 40vh; width: 100%; aspect-ratio: auto; flex-shrink: 0; }
  .modal-body { flex: 1; display: flex; }
  .modal-scroll { padding: 20px 18px 10px; }
  .modal-body h3 { font-size: 34px; }
  .modal-foot { padding: 12px 14px; }
  .f.c3, .f.c2, .f.c4 { grid-column: span 6; }
  .page { padding-top: 90px; }
  .panel { padding: 18px; }
  .step { font-size: .7rem; }
}

/* Unidade fechada: aviso em destaque (pedidos bloqueados fora do horário) */
.aviso-fechada { color: #ffb3bb !important; background: rgba(253,64,82,.1); border: 1px solid rgba(253,64,82,.4) !important; border-radius: 12px; padding: 10px 12px; font-weight: 600; }

/* ---------- Selo 🔥 Mais pedido ---------- */
.card-media .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.card-media .badges .badge { position: static; }
.badge-hot { background: linear-gradient(135deg, #ff7a18, #fd4052); color: #fff; box-shadow: 0 4px 14px rgba(253,64,82,.45); }

/* ---------- Ordenar ---------- */
.ordenar { position: relative; }
.ordenar-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.35); transition: .2s; }
.ordenar-btn:hover, .ordenar.ativo .ordenar-btn { border-color: var(--blue); color: var(--text); }
.ordenar.ativo .ordenar-btn svg { color: var(--blue); }
.ordenar-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 210px; list-style: none; padding: 6px;
  border-radius: 14px; background: #18181b; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: popIn .2s var(--ease); }
.ordenar-menu[hidden] { display: none; }
.ordenar-menu li { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; transition: background .15s; }
.ordenar-menu li:hover { background: rgba(255,255,255,.06); }
.ordenar-menu li[aria-selected="true"] { background: rgba(1,175,239,.14); color: var(--blue); }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
@media (max-width: 820px) {
  .menu-tools .search { flex: 1; width: auto; }
  .ordenar-btn span { display: none; }
  .ordenar-btn { padding: 11px 13px; }
}
@media (max-width: 1200px) and (min-width: 821px) { .menu-tools .search { width: 220px; } }

/* Checkout: unidades lado a lado quando houver espaço */
.unit-options-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
