/* =========================================================
   Sistema da Lanchonete — design system
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f6f5f1;
  --bg-2: #efede7;
  --card: #ffffff;
  --ink: #18181d;
  --ink-2: #3d3d46;
  --muted: #868690;
  --line: #ebe9e3;
  --line-2: #dedbd3;

  --brand: #f0532a;
  --brand-600: #d9431c;
  --brand-50: #fff1eb;
  --brand-100: #ffe1d5;
  --amber: #ffb020;
  --amber-50: #fff6e3;
  --green: #14a35a;
  --green-600: #0f8a4b;
  --green-50: #e8f7ef;
  --red: #e5383b;
  --red-50: #fdecec;
  --blue: #2f6fec;
  --blue-50: #eaf1ff;
  --violet: #7a5af5;
  --violet-50: #f0ecff;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(24, 24, 29, .04), 0 2px 8px rgba(24, 24, 29, .04);
  --sh-2: 0 1px 2px rgba(24, 24, 29, .04), 0 10px 30px rgba(24, 24, 29, .08);
  --sh-3: 0 24px 60px rgba(24, 24, 29, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.between { justify-content: space-between; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }
.tnum { font-variant-numeric: tabular-nums; }
::selection { background: var(--brand-100); }

/* ---------------- botões ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font-weight: 700; font-size: .95rem;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s, box-shadow .15s;
  user-select: none;
}
.btn:hover { background: var(--bg); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(240, 83, 42, .28); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2b33; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(20, 163, 90, .25); }
.btn-success:hover { background: var(--green-600); }
.btn-danger { background: var(--red-50); border-color: transparent; color: var(--red); }
.btn-danger:hover { background: #fbdcdc; }
.btn-soft { background: var(--brand-50); border-color: transparent; color: var(--brand-600); }
.btn-soft:hover { background: var(--brand-100); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(24, 24, 29, .05); }
.btn-sm { height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 10px; }
.btn-lg { height: 56px; padding: 0 26px; font-size: 1.05rem; border-radius: 16px; }
.btn-xl { height: 64px; padding: 0 30px; font-size: 1.15rem; border-radius: 18px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.btn-round { border-radius: 999px; }

/* ---------------- formulários ---------------- */
.field { margin-bottom: 14px; }
.field > label, .label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; color: var(--ink-2); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }
input[type=text], input[type=number], input[type=password], input[type=date], input[type=tel], input[type=time], input[type=search], select, textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: #fff; font-family: inherit; font-size: .95rem; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 80px; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); vertical-align: middle; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.search {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--muted);
}
.search input { border: 0; height: 100%; padding: 0; background: transparent; box-shadow: none !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* segmentado / pílulas */
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-2); border-radius: 14px; }
.seg button {
  border: 0; background: transparent; height: 38px; padding: 0 16px; border-radius: 10px;
  font-weight: 700; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: .9rem;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.seg.full { display: flex; }
.seg.full button { flex: 1; justify-content: center; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff;
  font-weight: 700; font-size: .85rem; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.pill.on { border-color: var(--brand); background: var(--brand); color: #fff; }

/* ---------------- cartões / selos ---------------- */
.card { background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 800; background: var(--bg-2); color: var(--ink-2); white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-aguardando_pagamento, .b-amber { background: var(--amber-50); color: #a86a00; }
.b-em_preparo, .b-blue { background: var(--blue-50); color: var(--blue); }
.b-pronto, .b-green, .b-pago { background: var(--green-50); color: var(--green-600); }
.b-entregue { background: var(--bg-2); color: var(--muted); }
.b-cancelado, .b-red, .b-naopago { background: var(--red-50); color: var(--red); }
.b-brand { background: var(--brand-50); color: var(--brand-600); }
.b-violet { background: var(--violet-50); color: var(--violet); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px;
  box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 10px;
}
.stat .top { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 700; font-size: .88rem; }
.stat .v { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.stat .s { font-size: .8rem; color: var(--muted); font-weight: 600; }
.icon-bubble {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--brand-50); color: var(--brand);
}
.icon-bubble.green { background: var(--green-50); color: var(--green); }
.icon-bubble.blue { background: var(--blue-50); color: var(--blue); }
.icon-bubble.amber { background: var(--amber-50); color: #c98100; }
.icon-bubble.violet { background: var(--violet-50); color: var(--violet); }
.icon-bubble.red { background: var(--red-50); color: var(--red); }
.icon-bubble.dark { background: var(--ink); color: #fff; }

/* foto de produto */
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff3ea, #ffe6d6); display: grid; place-items: center; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .emo { font-size: 2.6rem; }

/* ---------------- tabelas ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 12px 14px; background: #fbfaf8; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfbf9; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.neg { color: var(--red); }
.pos { color: var(--green-600); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .icon-bubble { margin: 0 auto 12px; width: 56px; height: 56px; border-radius: 18px; }

/* ---------------- modal / toast ---------------- */
.modal {
  position: fixed; inset: 0; background: rgba(18, 18, 22, .45); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; animation: fade .15s;
}
.modal-box {
  background: #fff; border-radius: var(--r-xl); width: 100%; max-width: 520px; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column; box-shadow: var(--sh-3); animation: pop .18s ease-out; overflow: hidden;
}
.modal-box.wide { max-width: 860px; }
.modal-box.slim { max-width: 420px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 6px; }
.modal-head h2 { margin: 0; font-size: 1.25rem; flex: 1; }
.modal-body { padding: 14px 22px 20px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); background: #fcfbf9; }
.x-btn { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--bg); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.x-btn:hover { background: var(--bg-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }

#toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--sh-3);
  display: flex; align-items: center; gap: 10px; animation: pop .2s; max-width: 92vw;
}
.toast.ok { background: var(--green-600); }
.toast.erro { background: var(--red); }

/* =========================================================
   APP DA EQUIPE (sidebar)
   ========================================================= */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex: none; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--brand), #ff8a3d); color: #fff; box-shadow: 0 6px 14px rgba(240, 83, 42, .3);
}
.brand small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.nav-sec { font-size: .7rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 600;
  color: var(--ink-2); font-size: .92rem; margin-bottom: 2px;
}
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.on { background: var(--brand-50); color: var(--brand-600); font-weight: 700; }
.nav a .ic { color: currentColor; }
.sidebar-foot { margin-top: auto; padding-top: 14px; }
.me {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--bg);
}
.me .av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.me b { display: block; font-size: .88rem; }
.me small { color: var(--muted); font-size: .75rem; }
.app-main { flex: 1; min-width: 0; padding: 26px 30px 40px; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.6rem; margin: 0; }
.page-head .sub { color: var(--muted); font-weight: 600; font-size: .9rem; }
.mobile-bar { display: none; }

/* sidebar compacta (tela de pedidos) */
.app.mini .sidebar { width: 84px; padding: 18px 12px; align-items: center; }
.app.mini .brand { padding: 4px 0 18px; }
.app.mini .brand span, .app.mini .nav-sec, .app.mini .nav a span, .app.mini .me div { display: none; }
.app.mini .nav a { justify-content: center; padding: 12px; }
.app.mini .me { background: transparent; padding: 0; justify-content: center; }

/* abas */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab {
  border: 0; background: none; padding: 12px 14px; font-weight: 700; color: var(--muted); cursor: pointer;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .92rem;
}
.tab.on { color: var(--ink); border-color: var(--brand); }
.tab .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: .72rem; display: inline-grid; place-items: center; }
.tab.on .count { background: var(--brand); color: #fff; }

/* =========================================================
   SITE PÚBLICO (home / cardápio)
   ========================================================= */
.site { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.site-nav { display: flex; align-items: center; gap: 18px; height: 76px; }
.site-nav .links { display: flex; gap: 4px; margin-left: 20px; }
.site-nav .links a { padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--ink-2); }
.site-nav .links a:hover { background: #fff; }
.status-open { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: var(--green-50); color: var(--green-600); }
.status-open.closed { background: var(--red-50); color: var(--red); }
.status-open .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(20, 163, 90, .15); }

.hero {
  position: relative; border-radius: 32px; overflow: hidden; min-height: 420px; display: flex; align-items: center;
  background: #1c1512; color: #fff; margin: 8px 0 34px;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 12, 8, .92) 0%, rgba(20, 12, 8, .7) 45%, rgba(20, 12, 8, .1) 100%); }
.hero-in { position: relative; padding: 48px 56px; max-width: 620px; }
.hero .tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .82rem; margin-bottom: 18px; backdrop-filter: blur(6px); }
.hero h1 { font-size: 3.3rem; line-height: 1.02; letter-spacing: -.035em; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p { font-size: 1.1rem; color: rgba(255, 255, 255, .78); max-width: 470px; margin-bottom: 26px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.hero-stats { display: flex; gap: 28px; margin-top: 30px; }
.hero-stats b { display: block; font-size: 1.4rem; }
.hero-stats span { font-size: .82rem; color: rgba(255, 255, 255, .65); font-weight: 600; }

.sec-head { display: flex; align-items: end; gap: 14px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; font-size: 1.7rem; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }

.cat-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 8px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 104px; padding: 12px 8px 12px;
  border-radius: 20px; background: #fff; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--ink-2);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat-chip:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.cat-chip .ph { width: 58px; height: 58px; border-radius: 50%; }
.cat-chip .ph .emo { font-size: 1.7rem; }
.cat-chip.on { border-color: var(--brand); background: var(--brand-50); color: var(--brand-600); }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.prod {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column;
  cursor: pointer; transition: transform .18s, box-shadow .18s; text-align: left; padding: 0; font: inherit; color: inherit;
}
.prod:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.prod .ph { aspect-ratio: 4 / 3; }
.prod .info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod .nome { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.prod .desc { font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.prod .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.prod .preco { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.prod .add { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(240, 83, 42, .3); }
.prod.off { cursor: not-allowed; }
.prod.off .ph::after { content: 'ESGOTADO'; position: absolute; inset: 0; background: rgba(255, 255, 255, .7); display: grid; place-items: center; font-weight: 800; color: var(--red); letter-spacing: .08em; }
.prod.off .add { background: var(--line-2); box-shadow: none; }
.prod .tag-setor { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(4px); padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: var(--ink-2); }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 50px 0; }
.how .card { padding: 22px; }
.how .n { font-size: .8rem; font-weight: 800; color: var(--brand); margin: 14px 0 4px; }
.how h3 { margin-bottom: 6px; }
.how p { color: var(--muted); font-size: .9rem; margin: 0; }
.site-foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: .88rem; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.closed-bar { display: flex; align-items: center; gap: 12px; background: var(--red-50); color: var(--red); padding: 12px 16px; border-radius: 14px; font-weight: 700; margin-bottom: 18px; }

/* =========================================================
   ENTRAR / ÁREAS
   ========================================================= */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-art { position: relative; background: #1c1512 center / cover; color: #fff; display: flex; flex-direction: column; padding: 36px; }
.auth-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 8, .35), rgba(20, 12, 8, .88)); }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .brand { color: #fff; padding: 0; }
.auth-art .brand small { color: rgba(255, 255, 255, .65); }
.auth-art .quote { margin-top: auto; max-width: 460px; }
.auth-art .quote h2 { font-size: 2.3rem; letter-spacing: -.03em; }
.auth-art .quote p { color: rgba(255, 255, 255, .75); font-size: 1.05rem; }
.auth-side { display: flex; align-items: center; justify-content: center; padding: 36px 24px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h1 { font-size: 1.9rem; margin-bottom: 6px; }
.choice {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px; border-radius: 20px; background: #fff;
  border: 1.5px solid var(--line); cursor: pointer; text-align: left; margin-bottom: 12px; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.choice:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-1px); }
.choice .icon-bubble { width: 52px; height: 52px; border-radius: 16px; }
.choice b { display: block; font-size: 1.05rem; }
.choice small { color: var(--muted); font-size: .85rem; }
.choice .chev { margin-left: auto; color: var(--muted); }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 22px 0 26px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--line-2); transition: background .15s, transform .15s; }
.pin-dots i.on { background: var(--brand); transform: scale(1.1); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 330px; margin: 0 auto; }
.keypad button {
  height: 66px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font-size: 1.5rem; font-weight: 700;
  cursor: pointer; color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh-1);
}
.keypad button:active { background: var(--brand-50); transform: scale(.97); }
.keypad button.k-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: .9rem; margin-bottom: 18px; cursor: pointer; background: none; border: 0; padding: 0; }
.back-link:hover { color: var(--ink); }
.recent-orders a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); margin-bottom: 8px; font-weight: 700; }

.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.area {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 170px;
}
.area:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.area .icon-bubble { width: 50px; height: 50px; border-radius: 15px; }
.area b { font-size: 1.08rem; }
.area p { color: var(--muted); font-size: .86rem; margin: 0; }
.area .go { margin-top: auto; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--brand-600); }

/* =========================================================
   PEDIDO (totem / cliente / garçom / balcão)
   ========================================================= */
.order { display: flex; min-height: 100vh; }
.order-main { flex: 1; min-width: 0; padding: 22px 28px 120px; }
.order-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.order-top .hello small { display: block; color: var(--muted); font-weight: 600; font-size: .85rem; }
.order-top .hello b { font-size: 1.5rem; letter-spacing: -.02em; }
.order-top .search { width: 300px; }
.order h2.cat-title { font-size: 1.3rem; margin: 6px 0 14px; display: flex; align-items: center; gap: 10px; }
.cart {
  width: 390px; flex: none; background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.cart-head { padding: 22px 22px 12px; }
.cart-head h2 { margin: 0 0 12px; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.cart-list { flex: 1; overflow-y: auto; padding: 4px 22px; }
.cart-item { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; background: #fff; box-shadow: var(--sh-1); }
.cart-item .ph { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.cart-item .ph .emo { font-size: 1.8rem; }
.cart-item .nm { font-weight: 800; font-size: .95rem; }
.cart-item .pr { font-weight: 800; color: var(--brand-600); }
.cart-item .trash { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; height: 24px; }
.cart-item .trash:hover { color: var(--red); }
.mods { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.mods span { font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.mods .sem, .mods .menos { background: var(--red-50); color: var(--red); }
.mods .add, .mods .extra { background: var(--green-50); color: var(--green-600); }
.obs-txt { font-size: .78rem; color: var(--muted); font-style: italic; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.cart-empty .icon-bubble { margin: 0 auto 14px; width: 64px; height: 64px; border-radius: 20px; }
.cart-foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); }
.sum-line { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.sum-line.total { font-size: 1.15rem; color: var(--ink); font-weight: 800; padding-top: 10px; margin-top: 8px; border-top: 1px dashed var(--line-2); }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border-radius: 12px; padding: 3px; }
.stepper button { width: 30px; height: 30px; border-radius: 9px; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); box-shadow: var(--sh-1); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.stepper .v { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.stepper.lg button { width: 42px; height: 42px; border-radius: 12px; }
.stepper.lg .v { min-width: 36px; font-size: 1.15rem; }
.cart-fab { display: none; }

/* modal do produto */
.pm .modal-box { max-width: 620px; }
.pm-hero { position: relative; height: 270px; }
.pm-hero .ph { position: absolute; inset: 0; }
.pm-hero .ph .emo { font-size: 6rem; }
.pm-hero .x-btn { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .92); z-index: 2; }
.pm-body { padding: 20px 24px 8px; overflow-y: auto; }
.pm-title { display: flex; align-items: start; gap: 12px; }
.pm-title h2 { margin: 0; font-size: 1.6rem; flex: 1; }
.pm-title .pr { font-size: 1.4rem; font-weight: 800; color: var(--brand-600); }
.pm-desc { color: var(--muted); margin: 6px 0 4px; }
.pm-sec { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; }
.pm-sec h3 { margin: 0; font-size: 1rem; }
.pm-sec small { color: var(--muted); font-weight: 600; }
.ing-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ing-row:last-child { border-bottom: 0; }
.ing-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.ing-row .nm { font-weight: 700; }
.ing-row .st { font-size: .78rem; font-weight: 800; }
.st.normal { color: var(--muted); }
.st.sem { color: var(--red); }
.st.extra { color: var(--green-600); }
.pm-foot { display: flex; gap: 14px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); background: #fff; }
.inclui { font-size: .85rem; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 10px 12px; margin-top: 12px; }

/* totem: tela inicial */
.totem-start { position: fixed; inset: 0; z-index: 60; background: #140d09 center / cover; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; cursor: pointer; }
.totem-start::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20, 12, 8, .55), rgba(20, 12, 8, .92)); }
.totem-start > * { position: relative; }
.totem-start .brand-logo { width: 92px; height: 92px; border-radius: 28px; margin-bottom: 22px; }
.totem-start h1 { font-size: 3.6rem; letter-spacing: -.04em; margin-bottom: 8px; }
.totem-start .lead { font-size: 1.25rem; color: rgba(255, 255, 255, .75); margin-bottom: 42px; }
.tap { display: inline-flex; align-items: center; gap: 12px; background: var(--brand); padding: 20px 38px; border-radius: 999px; font-weight: 800; font-size: 1.3rem; box-shadow: 0 0 0 0 rgba(240, 83, 42, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 26px rgba(240, 83, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 83, 42, 0); } }
.dine { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: min(640px, 100%); }
.dine button {
  border: 0; border-radius: 28px; padding: 34px 20px; background: rgba(255, 255, 255, .96); color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 14px; font-weight: 800; font-size: 1.3rem; font-family: inherit;
  transition: transform .15s;
}
.dine button:hover { transform: translateY(-4px); }
.dine .icon-bubble { width: 84px; height: 84px; border-radius: 26px; }
.dine .icon-bubble .ic { width: 40px; height: 40px; }

/* confirmação */
.confirm { text-align: center; }
.confirm .ok-ring { width: 76px; height: 76px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin: 4px auto 12px; }
.confirm .ok-ring .ic { width: 38px; height: 38px; }
.big-num { font-size: 6rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--brand); margin: 4px 0 8px; }
.qr-card { display: flex; align-items: center; gap: 18px; text-align: left; background: var(--bg); border-radius: 20px; padding: 14px; margin-top: 16px; }
.qr-card img { width: 140px; height: 140px; border-radius: 12px; background: #fff; padding: 6px; flex: none; }
.notice { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--amber-50); color: #8a5800; border-radius: 16px; padding: 14px 16px; font-weight: 600; margin-top: 14px; }
.notice.blue { background: var(--blue-50); color: #2453b3; }
.notice.red { background: var(--red-50); color: var(--red); }

.closed-screen { position: fixed; inset: 0; z-index: 80; background: rgba(20, 14, 10, .94); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.closed-screen .icon-bubble { width: 84px; height: 84px; border-radius: 26px; margin-bottom: 18px; background: rgba(255, 255, 255, .1); color: var(--amber); }
.closed-screen .icon-bubble .ic { width: 40px; height: 40px; }

/* =========================================================
   ACOMPANHAR (celular do cliente)
   ========================================================= */
.track { max-width: 480px; margin: 0 auto; padding: 18px 18px 40px; }
.track-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.track-hero { border-radius: 28px; padding: 26px 22px; background: #fff; border: 1px solid var(--line); text-align: center; box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.track-hero .lbl { font-weight: 700; color: var(--muted); font-size: .9rem; }
.track-hero .num { font-size: 5.2rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; margin: 6px 0; }
.status-orb { width: 96px; height: 96px; border-radius: 50%; margin: 6px auto 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); position: relative; }
.status-orb .ic { width: 44px; height: 44px; }
.status-orb.spin::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--brand); animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.track-hero .stt { font-size: 1.2rem; font-weight: 800; }
.track-hero .hint { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.track.ready .track-hero { background: linear-gradient(160deg, #19b366, #0f8a4b); color: #fff; border: 0; }
.track.ready .track-hero .lbl, .track.ready .track-hero .hint { color: rgba(255, 255, 255, .85); }
.track.ready .status-orb { background: rgba(255, 255, 255, .2); color: #fff; animation: beat 1s infinite; }
@keyframes beat { 50% { transform: scale(1.08); } }
.timeline { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px; margin-top: 16px; }
.tl { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); color: var(--muted); display: grid; place-items: center; flex: none; position: relative; z-index: 1; }
.tl .dot .ic { width: 16px; height: 16px; }
.tl b { display: block; font-size: .95rem; margin-top: 5px; }
.tl small { color: var(--muted); font-size: .8rem; }
.tl.done .dot { background: var(--green); color: #fff; }
.tl.done::before { background: var(--green); }
.tl.now .dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-50); }
.tl.todo b { color: var(--muted); }

/* =========================================================
   COZINHA (KDS)
   ========================================================= */
body.kds { background: #0f1115; color: #e8e8ee; }
.kds-top { display: flex; align-items: center; gap: 14px; padding: 14px 22px; background: #161920; border-bottom: 1px solid #23262f; position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.kds-top .brand-logo { width: 44px; height: 44px; }
.kds-top h1 { font-size: 1.3rem; margin: 0; color: #fff; }
.kds-top small { color: #8b8f9c; font-weight: 600; }
.kpill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; background: #20242d; font-weight: 800; font-size: .9rem; color: #cfd2db; }
.kpill b { color: #fff; font-size: 1.05rem; }
.kpill.warn b { color: #ffb020; }
.kpill.bad b { color: #ff5c5f; }
.kclock { font-size: 1.5rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.kbtn { height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid #2c303a; background: #1c2028; color: #e8e8ee; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit; }
.kbtn:hover { background: #252a34; }
.kbtn.on { background: var(--green); border-color: var(--green); color: #fff; }
.kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; padding: 20px 22px; align-items: start; }
.kcard { background: #191c23; border: 1px solid #262a33; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; animation: pop .25s; }
.kcard .kh { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #1f232b; border-top: 5px solid var(--green); }
.kcard.medio .kh { border-top-color: var(--amber); }
.kcard.atrasado .kh { border-top-color: #ff4d50; }
.kcard.atrasado { border-color: rgba(255, 77, 80, .45); box-shadow: 0 0 0 1px rgba(255, 77, 80, .25); }
.kcard .pos { width: 28px; height: 28px; border-radius: 8px; background: #2c313b; color: #aab; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.kcard .kn { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.kcard .kt { margin-left: auto; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 10px; background: rgba(20, 163, 90, .15); color: #3fd68a; }
.kcard.medio .kt { background: rgba(255, 176, 32, .15); color: #ffc34d; }
.kcard.atrasado .kt { background: rgba(255, 77, 80, .18); color: #ff7476; }
.kmeta { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 16px 0; }
.ktag { font-size: .75rem; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: #262a33; color: #c4c7d0; display: inline-flex; align-items: center; gap: 5px; }
.ktag.levar { background: rgba(255, 176, 32, .16); color: #ffc34d; }
.kitems { padding: 8px 10px; }
.kitem { padding: 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.kitem:hover { background: #20242c; }
.kitem .l1 { display: flex; gap: 10px; align-items: baseline; font-size: 1.15rem; font-weight: 800; color: #fff; }
.kitem .q { min-width: 34px; height: 30px; border-radius: 9px; background: #fff; color: #111; display: inline-grid; place-items: center; font-size: 1rem; }
.kitem .mods { margin: 6px 0 0 44px; }
.kitem .mods span { font-size: .82rem; padding: 3px 9px; background: #262a33; color: #cfd2db; }
.kitem .mods .sem, .kitem .mods .menos { background: rgba(255, 77, 80, .18); color: #ff8587; }
.kitem .mods .add, .kitem .mods .extra { background: rgba(63, 214, 138, .15); color: #56e39c; }
.kitem .kobs { margin: 6px 0 0 44px; color: #ffc34d; font-weight: 700; font-size: .88rem; }
.kitem.feito { opacity: .38; }
.kitem.feito .l1 span:last-child { text-decoration: line-through; }
.knote { margin: 0 16px 10px; padding: 9px 12px; border-radius: 10px; background: #20242c; color: #9da1ad; font-size: .82rem; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.kdone { margin: 6px 12px 12px; height: 56px; border-radius: 14px; border: 0; background: var(--green); color: #fff; font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; }
.kdone:hover { background: var(--green-600); }
.kempty { text-align: center; color: #6f7380; padding: 90px 20px; }
.kempty .icon-bubble { margin: 0 auto 16px; width: 76px; height: 76px; border-radius: 24px; background: #1c2028; color: #3fd68a; }
.kempty .icon-bubble .ic { width: 36px; height: 36px; }
.kempty h2 { color: #fff; }
body.kds .modal-box { color: var(--ink); }

/* =========================================================
   PAINEL DE SENHAS (TV)
   ========================================================= */
body.tv { background: #0e0b09; color: #fff; overflow: hidden; height: 100vh; }
.tv-wrap { display: flex; flex-direction: column; height: 100vh; }
.tv-top { display: flex; align-items: center; gap: 16px; padding: 22px 40px; }
.tv-top .brand-logo { width: 56px; height: 56px; border-radius: 16px; }
.tv-top .nm { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.tv-top .clock { margin-left: auto; font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tv-cols { flex: 1; display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; padding: 0 40px 30px; min-height: 0; }
.tv-col { border-radius: 32px; padding: 26px 28px; display: flex; flex-direction: column; min-height: 0; }
.tv-col h2 { font-size: 2rem; display: flex; align-items: center; gap: 14px; margin-bottom: 22px; letter-spacing: -.02em; }
.tv-col h2 .ic { width: 34px; height: 34px; }
.tv-prep { background: #1b1613; }
.tv-prep h2 { color: #d8cfc8; }
.tv-ready { background: linear-gradient(160deg, #f0532a, #c73a16); box-shadow: 0 30px 80px rgba(240, 83, 42, .25); }
.tv-nums { display: grid; gap: 16px; align-content: start; overflow: hidden; }
.tv-prep .tv-nums { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tv-ready .tv-nums { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tv-n { border-radius: 22px; padding: 16px 10px; text-align: center; }
.tv-prep .tv-n { background: #29221d; color: #e9e1da; }
.tv-prep .tv-n .n { font-size: 3.4rem; font-weight: 800; line-height: 1; }
.tv-ready .tv-n { background: #fff; color: var(--ink); }
.tv-ready .tv-n .n { font-size: 5rem; font-weight: 800; line-height: 1; color: var(--brand); letter-spacing: -.04em; }
.tv-n .who { font-size: 1.15rem; font-weight: 700; margin-top: 6px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-n.new { animation: flash 1s 6; }
@keyframes flash { 50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(255, 255, 255, .35); } }
.tv-sound { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); }

/* =========================================================
   CAIXA
   ========================================================= */
.olist { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.ocard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh-1); }
.ocard .oh { display: flex; align-items: center; gap: 10px; }
.onum { width: 54px; height: 54px; border-radius: 16px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; font-weight: 800; font-size: 1.35rem; flex: none; }
.ocard.pronto .onum { background: var(--green-50); color: var(--green-600); }
.ocard .ot { font-weight: 800; }
.ocard .om { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ocard .oval { margin-left: auto; text-align: right; font-weight: 800; font-size: 1.15rem; }
.oitems { font-size: .86rem; color: var(--ink-2); background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.oitems div + div { margin-top: 4px; }
.oitems .mods { margin: 2px 0 0; }
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.pay-opt { border: 1.5px solid var(--line-2); background: #fff; border-radius: 16px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: .88rem; color: var(--ink-2); }
.pay-opt.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.pay-opt .ic { width: 26px; height: 26px; }
.total-xl { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.change { font-size: 1.5rem; font-weight: 800; color: var(--green-600); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.line-sum { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.line-sum.strong { font-weight: 800; font-size: 1rem; }
.open-box { max-width: 460px; margin: 40px auto; text-align: center; }
.open-box .icon-bubble { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 16px; }
.open-box .icon-bubble .ic { width: 34px; height: 34px; }
.open-box form { text-align: left; margin-top: 18px; }

/* =========================================================
   GERÊNCIA
   ========================================================= */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.pcard .ph { aspect-ratio: 16 / 10; }
.pcard .pb { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .pb .nm { font-weight: 800; }
.pcard .pb .row { margin-top: auto; }
.pcard.inativo .ph { filter: grayscale(1); opacity: .6; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 90px; gap: 12px; align-items: center; font-size: .88rem; font-weight: 600; }
.bar-row .bar-track { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--brand); border-radius: 999px; }
.vbars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 10px; }
.vbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.vbar .b { width: 100%; max-width: 46px; background: linear-gradient(180deg, #ff8a5c, var(--brand)); border-radius: 10px 10px 4px 4px; min-height: 4px; }
.vbar small { font-size: .7rem; color: var(--muted); font-weight: 700; }
.stock-bar { width: 90px; height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.stock-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.stock-bar i.low { background: var(--red); }
.img-pick { display: flex; gap: 14px; align-items: center; }
.img-pick .ph { width: 110px; height: 84px; border-radius: 14px; flex: none; }
.comp-table input[type=number] { height: 38px; width: 76px; padding: 0 8px; }
.comp-table select { height: 38px; }
.cat-ed td input[type=text] { height: 40px; }
.help { background: var(--blue-50); color: #2453b3; border-radius: 14px; padding: 12px 14px; font-size: .86rem; margin-bottom: 14px; }

/* impressão */
.print-only { display: none; }
@media print {
  body * { visibility: hidden; }
  .print-only, .print-only * { visibility: visible; }
  .print-only { display: block; position: absolute; inset: 0; padding: 20px; font-size: 12px; }
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1100px) {
  .cart { width: 340px; }
  .how { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* sidebar vira gaveta */
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s; box-shadow: var(--sh-3); width: 270px !important; align-items: stretch !important; }
  .sidebar.open { transform: none; }
  .app.mini .brand span, .app.mini .nav-sec, .app.mini .nav a span, .app.mini .me div { display: revert; }
  .app.mini .nav a { justify-content: flex-start; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .mobile-bar b { font-size: 1rem; }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
  .app { flex-direction: column; }
  .app-main { padding: 18px 16px 40px; }
  /* carrinho vira folha inferior */
  .order { flex-direction: column; }
  .order-main { padding: 16px 16px 110px; }
  .order-top .search { width: 100%; order: 3; }
  .cart { position: fixed; inset: auto 0 0 0; width: auto; height: 88vh; border-radius: 26px 26px 0 0; border: 0; box-shadow: var(--sh-3); transform: translateY(105%); transition: transform .25s; z-index: 50; }
  .cart.open { transform: none; }
  .cart-fab { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 45; height: 62px; border-radius: 20px; background: var(--ink); color: #fff; align-items: center; gap: 12px; padding: 0 10px 0 18px; border: 0; font-family: inherit; font-weight: 800; font-size: 1rem; box-shadow: var(--sh-3); cursor: pointer; }
  .cart-fab .cnt { width: 30px; height: 30px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; font-size: .9rem; }
  .cart-fab .go { margin-left: auto; background: var(--brand); height: 44px; padding: 0 16px; border-radius: 14px; display: flex; align-items: center; gap: 8px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 220px; padding: 22px; }
  .auth-art .quote h2 { font-size: 1.6rem; }
  .hero { min-height: 380px; border-radius: 24px; }
  .hero-in { padding: 32px 24px; }
  .hero h1 { font-size: 2.4rem; }
  .site-nav .links { display: none; }
  .tv-cols { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site { padding: 0 16px; }
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .prod .info { padding: 10px 12px 12px; }
  .prod .nome { font-size: .92rem; }
  .prod .preco { font-size: 1rem; }
  .prod .add { width: 34px; height: 34px; border-radius: 10px; }
  .how { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr 1fr; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 26px 26px 0 0; max-height: 94vh; }
  .pm-hero { height: 210px; }
  .big-num { font-size: 4.6rem; }
  .qr-card { flex-direction: column; text-align: center; }
  .bar-row { grid-template-columns: 100px 1fr 70px; }
  .totem-start h1 { font-size: 2.4rem; }
  .dine { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .olist { grid-template-columns: 1fr; }
}
.pm-hero img { object-position: center 60%; }
.btn.wrap-ok { white-space: normal; height: auto; min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 600px) {
  .site-nav { gap: 10px; height: 68px; }
  .site-nav .status-open, .site-nav .brand small { display: none; }
  .sec-head { flex-wrap: wrap; align-items: stretch; }
  .sec-head > .grow { flex-basis: 100%; }
  .sec-head .search { width: 100% !important; }
  .order-top .hello b { font-size: 1.2rem; }
  .order-top { gap: 10px; }
  .site-foot { flex-direction: column; align-items: flex-start; }
}
/* promoção e itens em falta */
.prod { position: relative; }
.tag-promo { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: var(--brand); color: #fff; font-weight: 800; font-size: .72rem; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(240, 83, 42, .35); }
.preco s { font-size: .8rem; color: var(--muted); font-weight: 600; margin-left: 6px; }
.aviso-txt, .falta-txt { font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 8px; align-self: flex-start; }
.aviso-txt { color: #a86a00; background: var(--amber-50); }
.falta-txt { color: var(--red); background: var(--red-50); }
.prod.off .ph::after { content: 'INDISPONÍVEL'; }
.prod.off .tag-promo { display: none; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); border: 0; cursor: pointer; flex: none; transition: background .15s; padding: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(18px); }
.falta-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.falta-row.out .nm { color: var(--red); }
.venc { color: var(--red); font-weight: 800; }
.chips-sel { display: flex; flex-wrap: wrap; gap: 6px; }
@media print { .print-only table { width: 100%; border-collapse: collapse; } .print-only td, .print-only th { border-bottom: 1px solid #ccc; padding: 6px; text-align: left; } }

/* ---------- cupom / comanda (impressora térmica 80 mm) ---------- */
@media print {
  .print-only.modo-cupom { padding: 0; width: 72mm; font-family: 'Courier New', monospace; font-size: 12px; color: #000; }
  .cupom { width: 72mm; }
  .cupom .cc { text-align: center; }
  .cupom .cn { font-size: 30px; font-weight: 800; margin: 4px 0; }
  .cupom .cs { border-top: 1px dashed #000; margin-top: 6px; padding-top: 6px; }
  .cupom .cl { display: flex; justify-content: space-between; gap: 8px; }
  .cupom .ci { margin-bottom: 4px; }
  .cupom .cm { padding-left: 12px; font-size: 11px; }
  .cupom .ct { font-size: 15px; font-weight: 800; margin-top: 4px; }
  .cquebra { break-after: page; page-break-after: always; }
}
