/* Espetaria: complementos do site.css (montagem do item, carrinho fixo, pedido ao vivo) */

.demo-bar { background: #fff4c7; color: #5b4a00; text-align: center; font-size: .82rem; padding: 6px 16px; }
.closed-bar { background: #3b1a12; color: #fff; text-align: center; font-size: .86rem; padding: 8px 16px; }
.btn svg, .link svg { width: 18px; height: 18px; }
.link { display: inline-flex; align-items: center; gap: 6px; }
.btn-ghost { background: transparent; }
.muted svg { width: 16px; height: 16px; vertical-align: -3px; }

/* topo */
.hero-espeto { background:
  radial-gradient(circle at 10% 18%, var(--accent-soft) 0 120px, transparent 121px),
  radial-gradient(circle at 94% 88%, var(--primary-soft) 0 170px, transparent 171px),
  var(--surface-2); }
.hero-espeto .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-img img { object-fit: contain; background: transparent; }
.open-tag { display: inline-block; justify-self: start; width: fit-content; font-size: .85rem; font-weight: 600; color: #b23b3b; background: var(--surface); padding: 4px 12px; border-radius: 99px; margin-bottom: 10px; }
.open-tag.is-open { color: #2e7d32; }

/* cartões do cardápio */
.menu-group { margin-bottom: 36px; scroll-margin-top: 80px; }
.menu-group h2 { margin: 8px 0 16px; }
.cat-nav { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0; margin-bottom: 8px; }
.cat-nav .chip { text-decoration: none; }
.menu-card { cursor: pointer; }
.card-title { font-weight: 600; }
.card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 4px; }
.price { display: flex; align-items: center; gap: 6px; }
.price small { color: var(--muted); font-size: .78rem; }
.add-pill { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; }
.add-pill svg { width: 18px; height: 18px; stroke: currentColor; }

/* montagem do item (folha que sobe de baixo no celular, janela no computador) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(25, 12, 8, .5); z-index: 60; }
.sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; transform: translateY(100%); transition: transform .22s ease; }
.sheet.open { transform: none; }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: 560px; max-height: 88vh; border-radius: var(--radius);
    transform: translate(-50%, -46%); opacity: 0; transition: transform .2s, opacity .2s; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
}
.sheet-head { position: relative; flex: none; }
.sheet-img { height: 190px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); }
.sheet-img img, .sheet-img .img-empty { width: 100%; height: 100%; object-fit: cover; }
.sheet-close { position: absolute; top: 10px; right: 10px; background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.sheet-body { overflow-y: auto; padding: 18px 18px 8px; display: grid; gap: 18px; align-content: start; }
.sheet-body h2 { margin: 0; }
.sheet-body > p { margin: -10px 0 0; }
.sheet-foot { flex: none; display: flex; gap: 12px; align-items: center; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot .grow { flex: 1; }
.opt-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.opt-group.missing .opt { border-color: #c0392b; }

.size-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.size-opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; text-align: left; font-weight: 500; }
.size-opt span { white-space: nowrap; }
.size-opt.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); box-shadow: inset 0 0 0 1px var(--primary); }

.addon-list { display: grid; gap: 6px; }
@media (min-width: 520px) { .addon-list { grid-template-columns: 1fr 1fr; } }
.addon { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.addon span:nth-child(2) { flex: 1; }
.addon b { font-weight: 600; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.addon .tick { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.addon.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.addon.active .tick { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.addon:disabled { opacity: .45; cursor: not-allowed; }

/* barra fixa do carrinho no celular */
.cart-bar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border: 0; border-radius: 99px; background: var(--primary); color: var(--primary-ink); font: inherit; font-weight: 600;
  box-shadow: 0 8px 24px rgba(40, 10, 60, .3); cursor: pointer; }
.cart-bar svg { width: 22px; height: 22px; stroke: currentColor; }
.cart-bar em { flex: 1; text-align: center; font-style: normal; }
@media (min-width: 900px) { .cart-bar { left: auto; right: 24px; width: 360px; } }
body:has(.cart-bar:not([hidden])) .wa-float { bottom: 90px; }

/* checkout */
.checkout-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1fr 380px; align-items: start; } .summary { position: sticky; top: 16px; } }
.choice em { font-weight: 400; white-space: normal; color: var(--muted); font-size: .88rem; display: block; }
.choice strong { white-space: nowrap; font-weight: 600; }
.stack-forms { display: grid; gap: 20px; }
.stack h2 { display: flex; align-items: center; gap: 8px; }
.checkout { padding-top: 24px; display: block; }
.checkout h1 { margin-bottom: 18px; }

/* página do pedido */
.ticket { font-size: 1.05rem; margin: 0 0 4px; }
.ticket b { font-size: 1.3rem; color: var(--primary); }
.wa-box { display: grid; gap: 12px; text-align: center; border: 2px solid #25d366; }
.steps { grid-template-columns: repeat(4, 1fr); }
.steps li { font-size: .8rem; text-transform: none; }

/* como funciona */
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .how { grid-template-columns: repeat(4, 1fr); } }
.how li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; }
.how-icon { font-size: 1.8rem; }

/* mesa (pedido pelo QR code) */
.table-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; background: var(--accent); color: var(--accent-ink); font-size: .92rem; }
.table-bar span { text-decoration: underline; }
.mesa-hero h1 { font-size: 2.2rem; }
.call-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.call-row .btn { min-height: 58px; }
.call-row .is-called { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.call-note { text-align: center; color: #2e7d32; font-weight: 600; margin: 0 0 14px; }
.tab-order { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tab-order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.st-chip { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); white-space: nowrap; }
.st-chip.st-preparando { background: #fef3c7; color: #78350f; }
.st-chip.st-pronto { background: #dcfce7; color: #14532d; }

/* pagamento pelo celular */
.pay-phone { display: grid; gap: 14px; margin-top: 16px; border: 2px solid var(--primary); }
.pay-phone h2 { margin: 0; }
.test-note { margin: 0; background: #fff4c7; color: #5b4a00; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .88rem; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }
.seg button.active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.split-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pick-orders { display: grid; gap: 8px; }
.pay-banner { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; text-align: center; }
.pay-banner.ok { background: #dcfce7; color: #14532d; }
.pay-banner.wait { background: #fef3c7; color: #78350f; }
.pay-banner.bad { background: #fee2e2; color: #7f1d1d; }
.st-chip.st-pago { background: #dcfce7; color: #14532d; }
.tab-order-head > span { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

/* JL Spettus: logo um pouco maior no topo */
.logo-img { max-height: 54px; }
