/* ───────── Tokens ───────── */
:root {
  --tomato: #d9381e;
  --tomato-dark: #b32a13;
  --crust: #f6ecdc;
  --cream: #faf7f2;
  --paper: #ffffff;
  --ink: #1f1613;
  --muted: #7a6d64;
  --line: #ebe3d8;
  --basil: #1f8a4c;
  --amber: #b9770e;
  --red: #d9381e;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(40, 20, 8, .10);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 var(--sans); color: var(--ink); background: var(--cream); }
body.noscroll { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.warn { color: var(--red); font-size: 14px; font-weight: 600; margin: 8px 0 0; }
[hidden] { display: none !important; }

/* ───────── Botões e campos ───────── */
.btn { border: 1.5px solid transparent; border-radius: 12px; padding: 12px 18px; font-weight: 600; background: var(--paper); text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; transition: transform .08s, background .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--tomato); color: #fff; }
.btn.primary:hover { background: var(--tomato-dark); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { background: var(--crust); }
.btn.danger { background: var(--red); color: #fff; }
.btn.wa { background: #1f9d55; color: #fff; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.grow { flex: 1; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 4px; color: var(--tomato); text-decoration: underline; font-size: 13px; }
.link.danger { color: var(--red); }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .pcard:focus-visible { outline: 3px solid rgba(184, 50, 26, .3); outline-offset: 1px; }
input.sm { width: 84px; padding: 6px 8px; display: inline-block; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--tomato); }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 10px 0 0; }
.form label input, .form label select, .form label textarea { margin-top: 4px; color: var(--ink); font-weight: 400; }
.row2 { display: flex; gap: 10px; } .row2 label { flex: 1; } .row2 .narrow { flex: 0 0 90px; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 500; color: var(--ink) !important; }
.check.line { justify-content: flex-start; } .check.line em { margin-left: auto; font-style: normal; color: var(--basil); font-weight: 600; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--crust); color: var(--tomato-dark); }
.badge.green { background: #dcf0df; color: var(--basil); } .badge.red { background: #f8dcd6; color: var(--red); } .badge.amber { background: #fbebc9; color: var(--amber); }
.green { color: var(--basil); } .red { color: var(--red); } .amber { color: var(--amber); }

/* ───────── Cliente: cabeçalho e cardápio ───────── */
.client #app { max-width: 720px; margin: 0 auto; padding-bottom: 110px; }
.hero { background: linear-gradient(135deg, var(--tomato) 0%, var(--tomato-dark) 100%); color: #fff; padding: 22px 18px 26px; border-radius: 0 0 26px 26px; }
.hero-in { display: flex; gap: 14px; align-items: center; }
.logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.55); background: var(--crust); }
.hero h1 { font: 800 26px/1.1 var(--serif); }
.hero p { margin: 4px 0 0; opacity: .92; font-size: 13.5px; }
.track-banner { display: block; margin: 14px 16px 0; padding: 12px 14px; background: #fff; border: 1.5px solid var(--basil); border-radius: var(--radius); color: var(--basil); text-decoration: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 6px; position: sticky; top: 0; background: var(--cream); z-index: 5; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1.5px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: 14px; }
.chip:hover { background: var(--crust); }
.menu { padding: 0 16px; }
.menu h2 { font: 800 21px var(--serif); margin: 22px 0 10px; scroll-margin-top: 70px; }
.pcard { display: flex; gap: 12px; padding: 10px; background: var(--paper); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); margin-bottom: 10px; cursor: pointer; border: 1.5px solid transparent; }
.pcard:hover { border-color: var(--line); box-shadow: var(--shadow); }

.pinfo { display: flex; flex-direction: column; min-width: 0; }
.pinfo h3 { font-size: 16px; font-weight: 700; }
.pinfo p { margin: 3px 0 6px; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin-top: auto; font-weight: 700; color: var(--basil); } .price.big { font-size: 22px; margin: 8px 0; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 16px 0; }
.cartbtn { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: min(calc(100% - 28px), 692px); justify-content: space-between; padding: 15px 20px; box-shadow: var(--shadow); z-index: 8; }

/* ───────── Sheets (modais) ───────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet-back { position: absolute; inset: 0; background: rgba(30, 14, 6, .55); }
.sheet { position: relative; background: var(--cream); width: 100%; max-width: 640px; max-height: 92vh; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; box-shadow: var(--shadow); animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: .4; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; }
.sheet-head h2 { font: 800 21px var(--serif); }
.x { border: 0; background: var(--crust); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; }
.sheet-body { padding: 4px 18px 16px; overflow-y: auto; flex: 1; }
.sheet-body h4 { margin: 18px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sheet-foot { display: flex; gap: 10px; align-items: center; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.pimg { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius); background: var(--crust); margin-bottom: 8px; }
.pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.pill { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.pill small { color: var(--muted); font-size: 11.5px; } .pill span { font-weight: 700; color: var(--basil); }
.pill.on { border-color: var(--tomato); background: #fdece7; box-shadow: inset 0 0 0 1px var(--tomato); }
.stepper, .cqty { display: flex; align-items: center; gap: 4px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; }
.stepper button, .cqty button { border: 0; background: none; width: 36px; height: 40px; font-size: 20px; color: var(--tomato); }
.stepper span, .cqty span { min-width: 22px; text-align: center; font-weight: 700; }
.cline { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cdesc small { display: block; color: var(--muted); font-size: 12.5px; } .cprice { font-weight: 700; } .cline .link { grid-column: 1 / -1; justify-self: start; padding: 0; }
.totals { margin-top: 16px; } .totals > div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { border-top: 1.5px dashed var(--line); margin-top: 6px; padding-top: 10px; font-size: 17px; font-weight: 700; }
textarea { resize: vertical; }

/* ───────── Acompanhamento ───────── */
.track { padding: 18px 16px 40px; }
.track h1 { font: 800 28px var(--serif); margin-top: 6px; } .back { color: var(--tomato); text-decoration: none; font-weight: 600; }
.timeline { list-style: none; margin: 20px 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 34px; color: var(--muted); font-weight: 500; }
.timeline li::before { content: ''; position: absolute; left: 10px; top: 20px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.dot { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.timeline li.done { color: var(--ink); } .timeline li.done .dot { background: var(--basil); border-color: var(--basil); } .timeline li.done::before { background: var(--basil); }
.timeline li.now { color: var(--tomato); font-weight: 700; } .timeline li.now .dot { border-color: var(--tomato); background: var(--tomato); box-shadow: 0 0 0 5px rgba(184, 50, 26, .18); }
.timeline em { font-style: normal; font-size: 12px; background: var(--tomato); color: #fff; padding: 1px 8px; border-radius: 99px; margin-left: 6px; }
.card { background: #fff; border-radius: var(--radius); padding: 14px 16px; margin-top: 14px; box-shadow: 0 1px 0 var(--line); }
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; } .card p { margin: 4px 0; }
.oline { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; } .oline small { display: block; color: var(--muted); }
.oline.grand { border-top: 1.5px dashed var(--line); margin-top: 6px; padding-top: 10px; font-size: 17px; }
.alert.danger { background: #f8dcd6; color: var(--red); padding: 14px; border-radius: var(--radius); margin-top: 16px; font-weight: 600; }

/* ───────── Toast ───────── */
#toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 40; max-width: 90vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────── Painel ───────── */
.admin { background: #f6efe4; }
.atop { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--ink); color: #fff; }
.atop h1 { font: 800 20px var(--serif); } .atop small { font: 500 12px var(--sans); opacity: .6; letter-spacing: .08em; text-transform: uppercase; margin-left: 6px; }
.atop .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.alertbar { width: 100%; border: 0; background: #fbebc9; color: #7a4a05; padding: 10px 18px; font-weight: 600; text-align: left; }
.tabs { display: flex; gap: 4px; padding: 10px 14px 0; overflow-x: auto; background: #f6efe4; position: sticky; top: 0; z-index: 4; }
.tab { border: 0; background: none; padding: 10px 16px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab.on { color: var(--tomato); border-bottom-color: var(--tomato); }
.abody { padding: 14px; max-width: 1500px; margin: 0 auto; }
.kanban { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@media (min-width: 900px) { .kanban { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kcol { background: rgba(255,255,255,.55); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.kcol h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 4px 10px; display: flex; align-items: center; gap: 8px; }
.count { background: var(--ink); color: #fff; border-radius: 99px; padding: 0 8px; font-size: 12px; }
.ocard { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(60,30,10,.12); border-left: 4px solid var(--tomato); }
.ohead { display: flex; gap: 8px; align-items: center; } .ohead span:nth-child(2) { color: var(--muted); font-size: 13px; } .ohead .badge { margin-left: auto; }
.oname { font-weight: 600; margin: 4px 0; } .oitems { margin: 6px 0; padding-left: 18px; } .oitems small { display: block; color: var(--muted); } .obs { color: var(--tomato-dark) !important; }
.oaddr { font-size: 13px; color: var(--muted); } .ototal { display: flex; gap: 8px; align-items: baseline; margin: 8px 0; } .ototal strong { font-size: 17px; }
.oact { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sect { margin: 26px 0 10px; font: 800 18px var(--serif); }
.doneitem { background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fhead { max-width: 420px; margin-bottom: 14px; } .fhead label { font-weight: 600; font-size: 13px; color: var(--muted); }
.fgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.fcard { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 3px rgba(60,30,10,.1); }
.fcard header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } .fcard h3 { font: 800 17px var(--serif); }
.inl { font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.kpis { display: flex; gap: 8px; margin: 8px 0 10px; } .kpis div { flex: 1; background: var(--cream); border-radius: 10px; padding: 8px 10px; } .kpis small { display: block; color: var(--muted); font-size: 11.5px; } .kpis strong { font-size: 15px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th { text-align: left; font-size: 12px; color: var(--muted); padding: 4px 6px; } .tbl td { padding: 5px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl.wide { background: #fff; border-radius: var(--radius); overflow: hidden; display: block; overflow-x: auto; } .lowrow { background: #fff6e3; } .nowrap { white-space: nowrap; }
.pos { color: var(--basil); font-weight: 600; } .neg { color: var(--red); font-weight: 600; }
.addrow { display: flex; gap: 6px; margin-top: 8px; } .addrow select, .addrow input:not(.sm) { flex: 1; min-width: 0; }
.sizeprices { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; } .sizeprices label { font-size: 12px; font-weight: 600; color: var(--muted); } .sizeprices input { display: block; width: 64px; }
.stack { display: grid; gap: 8px; margin: 12px 0; } .mono { font-family: 'Courier New', monospace; font-size: 13px; }

/* ───── Estados (carregando / offline / vazio / login) ───── */
.state { max-width: 420px; margin: 12vh auto 0; padding: 28px 22px; text-align: center; }
.state h2 { font: 800 22px var(--serif); margin: 10px 0 6px; }
.state p { color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.state.dark { color: #fff; } .state.dark p { color: rgba(255,255,255,.7); }
.state-ico { font-size: 44px; line-height: 1; }
.spinner { width: 34px; height: 34px; margin: 0 auto 14px; border: 4px solid var(--line); border-top-color: var(--tomato); border-radius: 50%; animation: pzspin .8s linear infinite; }
@keyframes pzspin { to { transform: rotate(360deg); } }

.login { max-width: 360px; margin: 10vh auto 0; padding: 26px 22px; background: var(--paper); color: var(--ink); border-radius: var(--radius); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.login h2 { font: 800 22px var(--serif); margin: 8px 0 14px; }
.login input { width: 100%; margin-bottom: 12px; }
.login .btn { width: 100%; }
.login [data-err] { color: var(--red); font-size: 14px; margin-bottom: 10px; }
.login-ico { font-size: 40px; }
body.admin:has(.login) { background: var(--ink); }

#demobar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #222; color: #ffd37a; font: 600 11px var(--sans); letter-spacing: .06em; text-align: center; padding: 5px 8px; }

/* ───── Instalar app ───── */
.install-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 8px 14px; font: 600 14px var(--sans); cursor: pointer; }
.install-text { font-size: 14px; line-height: 1.5; }
.install-card { margin: 12px 0; padding: 12px 14px; border-radius: var(--radius); background: var(--crust); }
.steps { padding-left: 20px; line-height: 1.8; margin: 10px 0; }
.kbd { display: inline-block; padding: 0 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: #fff; font-weight: 600; }
.atop-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }


/* ═════════ Visual moderno (camada final) ═════════ */
body { background: var(--cream); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.01em; }
.btn { border-radius: 14px; padding: 12px 20px; }
.btn.primary { box-shadow: 0 6px 16px rgba(217, 56, 30, .28); }
.btn.primary:hover { box-shadow: 0 8px 20px rgba(217, 56, 30, .35); }
.btn.ghost { background: #fff; }
input, select, textarea { border-radius: 12px; border-color: var(--line); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tomato); box-shadow: 0 0 0 4px rgba(217, 56, 30, .14); }
.badge { padding: 3px 10px; }
.badge.gray { background: #eee9e2; color: #5d5249; }
.badge.green { background: #ddf3e6; } .badge.amber { background: #fdf0d2; } .badge.red { background: #fde2dc; }

/* Cliente */
.hero { background: radial-gradient(120% 140% at 0% 0%, #ee5a2f 0%, var(--tomato) 45%, var(--tomato-dark) 100%); padding: 26px 20px 32px; border-radius: 0 0 32px 32px; box-shadow: 0 12px 30px rgba(179, 42, 19, .25); }
.hero h1 { font-size: 28px; }
.logo { width: 68px; height: 68px; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.chips { padding: 16px 16px 8px; backdrop-filter: blur(8px); background: rgba(250, 247, 242, .92); }
.chip { border-radius: 99px; border-color: transparent; background: #fff; box-shadow: 0 1px 2px rgba(40,20,8,.08); }
.chip:hover, .chip:active { background: var(--tomato); color: #fff; }
.menu h2 { font-size: 22px; }
.pcard { border-radius: 20px; padding: 12px; gap: 14px; background: #fff; box-shadow: 0 1px 2px rgba(40,20,8,.06), 0 6px 18px rgba(40,20,8,.04); transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 12px 28px rgba(40,20,8,.12); }
.pcard img { width: 104px; height: 104px; border-radius: 14px; }
.price { color: var(--tomato); }
.cartbtn { border-radius: 18px; padding: 16px 22px; box-shadow: 0 14px 34px rgba(217, 56, 30, .4); }
.sheet { border-radius: 28px 28px 0 0; background: #fff; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 28px; } }
.sheet-back { backdrop-filter: blur(3px); }
.x { background: #f1ebe2; }
.pill { border-radius: 14px; }
.pill.on { background: #fff1ec; }
.card { border-radius: 20px; box-shadow: 0 1px 2px rgba(40,20,8,.06); border: 1px solid var(--line); }

/* Painel */
.admin { background: #f4f1ec; }
.atop { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); padding: 14px 20px; position: sticky; top: 0; z-index: 6; }
.atop h1 { font: 800 20px var(--serif); }
.atop small { color: var(--muted); opacity: 1; background: #f1ebe2; padding: 3px 8px; border-radius: 99px; }
.atop .btn.ghost { color: var(--ink); border-color: var(--line); }
.alertbar { background: #fff4d6; border-bottom: 1px solid #f3dfa0; }
.tabs { background: #f4f1ec; padding: 12px 16px 4px; gap: 6px; top: 61px; }
.tab { border: 0; border-radius: 99px; padding: 9px 18px; background: transparent; }
.tab:hover { background: #ebe5db; }
.tab.on { background: var(--ink); color: #fff; border: 0; }
.abody { padding: 12px 16px 40px; }
.kcol { background: #ebe6de; border-radius: 20px; padding: 12px; }
.kcol h2 { color: var(--ink); text-transform: none; font-size: 15px; letter-spacing: 0; }
.ocard { border-radius: 16px; border-left: 0; box-shadow: 0 1px 2px rgba(40,20,8,.08); padding: 14px; position: relative; }
.ocard::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tomato); }
.fcard { border-radius: 20px; box-shadow: 0 1px 2px rgba(40,20,8,.06); }
.tbl.wide { border-radius: 18px; box-shadow: 0 1px 2px rgba(40,20,8,.06); }
.tbl th { padding: 12px 12px 8px; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
.tbl td { padding: 10px 12px; }
.tblwrap { overflow-x: auto; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(40,20,8,.06); }
.tblwrap .tbl.wide { box-shadow: none; display: table; min-width: 640px; }
.lowrow { background: #fffaf0; }
.doneitem { border-radius: 14px; }
.sect { font-size: 20px; margin: 30px 0 12px; }

/* Estoque: filtros */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .search { flex: 1 1 220px; }
.toolbar select { flex: 0 1 220px; width: auto; }
.chips-f { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.chips-f::-webkit-scrollbar { display: none; }
.chip-f { flex: none; border: 1.5px solid transparent; background: #fff; border-radius: 99px; padding: 8px 14px; font-weight: 600; font-size: 14px; box-shadow: 0 1px 2px rgba(40,20,8,.08); }
.chip-f b { margin-left: 4px; background: #f1ebe2; border-radius: 99px; padding: 0 7px; font-size: 12px; }
.chip-f.on { background: var(--ink); color: #fff; }
.chip-f.on b { background: rgba(255,255,255,.2); }
.empty { background: #fff; border: 1.5px dashed var(--line); border-radius: 18px; padding: 26px; text-align: center; color: var(--muted); }

/* Estoque: movimentações com setinha */
.mvlist { display: grid; gap: 8px; }
.mv { background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(40,20,8,.06); overflow: hidden; }
.mvhead { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; }
.mvhead.static { cursor: default; }
button.mvhead:hover { background: #fbf8f3; }
.mvarrow { width: 14px; flex: none; color: var(--muted); font-size: 14px; transition: transform .15s; }
.mv.open .mvarrow { transform: rotate(90deg); color: var(--tomato); }
.mvtitle { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mvtitle small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mvtime { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.mvitems { list-style: none; margin: 0; padding: 4px 14px 12px 38px; border-top: 1px solid var(--line); }
.mvitems li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.mvitems li:last-child { border-bottom: 0; }

body.admin:has(.login) { background: var(--ink); }

/* Fotos e ingredientes */
.pthumb { position: relative; flex: none; }
.pthumb img { width: 104px; height: 104px; object-fit: cover; border-radius: 16px; background: var(--crust); }
.pbadge { position: absolute; left: 6px; top: 6px; background: var(--ink); color: #fff; font: 700 10.5px var(--sans); letter-spacing: .03em; padding: 3px 8px; border-radius: 99px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.pimg { height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; margin-bottom: 12px; }
.ings { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.ing { display: inline-flex; align-items: center; gap: 5px; background: #f6efe3; border-radius: 99px; padding: 5px 11px 5px 8px; font-size: 13px; font-weight: 600; color: #5a4a3f; }
.ing i { font-style: normal; font-size: 15px; line-height: 1; }
.sheet-body > .muted { font-size: 14.5px; line-height: 1.5; }

.hero-sub { opacity: .9; font-weight: 600; }
.hero-facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 0; padding: 0; }
.hero-facts li { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 9px 11px; font-size: 12.5px; font-weight: 600; line-height: 1.25; backdrop-filter: blur(4px); }
.hero-facts i { font-style: normal; font-size: 17px; }
@media (min-width: 640px) { .hero-facts { grid-template-columns: repeat(4, 1fr); } }

/* ═════════ Paleta moderna: grafite + laranja vibrante ═════════ */
:root {
  --tomato: #ff5a1f; --tomato-dark: #e24a10; --red: #e5381b;
  --ink: #15110e; --muted: #75695f; --cream: #faf8f5; --crust: #fff0e6; --line: #ece6df;
  --basil: #12a150;
  --shadow: 0 12px 32px rgba(21, 17, 14, .10);
}
.btn.primary { background: linear-gradient(135deg, #ff7a30, #ff5a1f); box-shadow: 0 8px 20px rgba(255, 90, 31, .32); }
.btn.primary:hover { background: linear-gradient(135deg, #ff6a1f, #e24a10); }
.btn.primary.cartbtn { background: var(--ink); color: #fff; box-shadow: 0 16px 36px rgba(21, 17, 14, .35); }
.btn.primary.cartbtn:hover { background: #000; }
.cartbtn strong { color: #ff9a62; }
.hero { background: radial-gradient(90% 120% at 100% 0%, rgba(255, 90, 31, .55) 0%, rgba(255, 90, 31, 0) 55%), linear-gradient(160deg, #241a14 0%, #15110e 100%); box-shadow: 0 14px 34px rgba(21, 17, 14, .28); }
.hero-facts li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.logo { border-color: rgba(255,255,255,.2); background: #fff; }
.chips { background: rgba(250, 248, 245, .92); }
.chip { color: var(--ink); }
.chip:hover, .chip:active { background: var(--ink); color: #fff; }
.price { color: var(--ink); } .price::first-letter { color: inherit; }
.pinfo .price { color: #e24a10; }
.pill.on { background: #fff3ec; border-color: var(--tomato); box-shadow: inset 0 0 0 1px var(--tomato); }
.pbadge { background: linear-gradient(135deg, #ff7a30, #ff5a1f); }
.ing { background: #f4efe9; }
.tab.on { background: var(--ink); }
.ocard::before { background: var(--tomato); }
.badge { background: #fff0e6; color: #c23d0b; }
.badge.green { background: #dff5e8; color: #0c7a3b; } .badge.amber { background: #fff1cf; color: #9a6200; } .badge.red { background: #fee4dd; color: #c2290f; }
.chip-f.on { background: var(--ink); }
.link { color: #e24a10; }
.alertbar { background: #fff1cf; color: #6e4700; }
.timeline li.now { color: #e24a10; } .timeline li.now .dot { border-color: var(--tomato); background: var(--tomato); box-shadow: 0 0 0 5px rgba(255, 90, 31, .18); }
.track-banner { border-color: var(--basil); }
input:focus, select:focus, textarea:focus { border-color: var(--tomato); box-shadow: 0 0 0 4px rgba(255, 90, 31, .16); }
.install-card { background: #fff0e6; }
.photo-edit { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; max-width: 640px; margin-bottom: 14px; }
.pthumb-lg { width: 150px; height: 100px; object-fit: cover; border-radius: 14px; background: var(--crust); }
@media (max-width: 520px) { .photo-edit { grid-template-columns: 1fr; } .pthumb-lg { width: 100%; height: 160px; } }

/* ═════════ Marca Dallas: fogo, ouro e brasas ═════════ */
:root { --gold: #ffb52e; --ember: #ff5a1f; }
.hero { position: relative; overflow: hidden; background:
    radial-gradient(70% 90% at 15% 110%, rgba(255, 90, 31, .55) 0%, rgba(255, 90, 31, 0) 60%),
    radial-gradient(60% 80% at 100% 0%, rgba(255, 181, 46, .35) 0%, rgba(255, 181, 46, 0) 55%),
    linear-gradient(160deg, #2a1a10 0%, #15110e 70%); background-size: 140% 140%, 140% 140%, 100% 100%; animation: heroFire 9s ease-in-out infinite alternate; }
@keyframes heroFire { from { background-position: 0% 100%, 100% 0%, 0 0; } to { background-position: 30% 80%, 70% 20%, 0 0; } }
.hero > * { position: relative; z-index: 1; }
.hero .embers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.embers i { position: absolute; bottom: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #ffd27a 0%, #ff7a30 55%, rgba(255, 90, 31, 0) 72%); opacity: 0; filter: blur(.3px); animation: ember var(--d) linear var(--t) infinite; }
@keyframes ember { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 12% { opacity: .95; } 100% { transform: translate(var(--dx), -330px) scale(.2); opacity: 0; } }
.hero .logo { width: 72px; height: 72px; background: #15110e; border: 3px solid var(--gold); animation: logoFloat 4.5s ease-in-out infinite, logoGlow 2.8s ease-in-out infinite; }
@keyframes logoFloat { 50% { transform: translateY(-5px) rotate(-2deg); } }
@keyframes logoGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 181, 46, .45), 0 6px 18px rgba(0,0,0,.4); } 50% { box-shadow: 0 0 0 9px rgba(255, 181, 46, 0), 0 6px 18px rgba(0,0,0,.4); } }
.hero h1 { background: linear-gradient(90deg, #fff 0%, #ffd27a 50%, #fff 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; }
@keyframes shine { to { background-position: -200% center; } }
.fx .hero-in, .fx .hero-facts li { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.fx .hero-facts li:nth-child(1) { animation-delay: .15s; } .fx .hero-facts li:nth-child(2) { animation-delay: .25s; }
.fx .hero-facts li:nth-child(3) { animation-delay: .35s; } .fx .hero-facts li:nth-child(4) { animation-delay: .45s; } .fx .hero-facts li:nth-child(5) { animation-delay: .55s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.ticker { overflow: hidden; background: var(--gold); color: #2a1a10; margin-top: -10px; padding: 18px 0 8px; border-radius: 0; position: relative; z-index: 0; }
.ticker-in { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.ticker span { display: flex; flex: none; }
.ticker b { font: 800 12.5px var(--sans); letter-spacing: .08em; padding: 0 22px; white-space: nowrap; }
.ticker b::after { content: '✦'; margin-left: 44px; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chips { margin-top: 0; }

/* Cards: entrada em cascata e zoom da foto */
.fx .reveal { opacity: 0; transform: translateY(22px) scale(.98); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.fx .reveal.in { opacity: 1; transform: none; }
.pthumb { overflow: hidden; border-radius: 16px; }
.pthumb img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.pcard:hover .pthumb img { transform: scale(1.12); }
.pcard:active { transform: scale(.985); }
.pimg { animation: zoomIn .5s ease both; }
@keyframes zoomIn { from { opacity: 0; transform: scale(1.06); } }
.fx .sheet { animation: sheetUp .38s cubic-bezier(.2, .9, .25, 1.05); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.pill { transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; } .pill:active { transform: scale(.95); } .pill.on { animation: pop .25s ease; }
@keyframes pop { 50% { transform: scale(1.06); } }

/* Carrinho */
.cartbtn.pop-in { animation: cartIn .45s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes cartIn { from { transform: translate(-50%, 90px); opacity: 0; } }
.cartbtn.bump { animation: bumpCart .5s ease; }
@keyframes bumpCart { 30% { transform: translateX(-50%) scale(1.05); } 60% { transform: translateX(-50%) scale(.98); } }
.bump { animation: bump .45s ease; } @keyframes bump { 35% { transform: scale(1.12); } }
#toast { transition: opacity .25s, transform .35s cubic-bezier(.2, 1.4, .4, 1); }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 7; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none; font: 700 13px var(--sans); padding: 11px 15px; border-radius: 99px; box-shadow: 0 10px 24px rgba(37, 211, 102, .4); animation: waPulse 2.6s ease-in-out infinite; }
@keyframes waPulse { 0%, 100% { box-shadow: 0 10px 24px rgba(37, 211, 102, .4), 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 10px 24px rgba(37, 211, 102, .4), 0 0 0 12px rgba(37, 211, 102, 0); } }
.client .foot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 34px 16px 12px; }
.foot-logo { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 6px; }
.foot a { color: #e24a10; font-weight: 600; text-decoration: none; } .foot small { margin-top: 8px; opacity: .8; }

/* Carregando */
.load-logo { border-radius: 50%; margin: 0 auto 14px; animation: logoFloat 1.6s ease-in-out infinite, spinPulse 1.6s ease-in-out infinite; }
@keyframes spinPulse { 50% { filter: drop-shadow(0 0 14px rgba(255, 140, 40, .8)); } }

/* Acompanhamento */
.timeline li.now .dot { animation: nowPulse 1.6s ease-out infinite; }
@keyframes nowPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, .5); } 100% { box-shadow: 0 0 0 14px rgba(255, 90, 31, 0); } }
.timeline li.done::before { animation: grow .6s ease both; transform-origin: top; } @keyframes grow { from { transform: scaleY(0); } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }

/* Ripple dos botões */
.btn, .chip, .chip-f, .tab { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
.btn.ghost .ripple, .chip .ripple, .chip-f .ripple, .tab .ripple { background: rgba(255, 90, 31, .25); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Painel */
.ocard.fresh { animation: cardNew .9s cubic-bezier(.2, 1.2, .3, 1) both, glowNew 2.4s ease-out; }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes cardNew { 0% { opacity: 0; transform: translateX(-30px) scale(.96); } 60% { transform: translateX(4px) scale(1.01); } 100% { opacity: 1; transform: none; } }
@keyframes glowNew { 0%, 40% { box-shadow: 0 0 0 3px rgba(255, 90, 31, .55), 0 10px 26px rgba(255, 90, 31, .35); } 100% { box-shadow: 0 1px 2px rgba(40, 20, 8, .08); } }
.flash-new .atop { animation: flashTop 1.5s ease; }
@keyframes flashTop { 0%, 100% { background: #fff; } 25%, 65% { background: #fff0e6; box-shadow: 0 0 0 3px var(--ember) inset; } }
.fx .abody > * { animation: tabIn .3s ease both; } @keyframes tabIn { from { opacity: 0; transform: translateY(6px); } }
.count { transition: transform .2s; }
.mv.open .mvitems { animation: tabIn .25s ease both; }
.login { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
