:root {
  --red: #ee8a1d;
  --red-dark: #c4650a;
  --amber: #f7c35c;
  --cream: #f6f4ef;
  --paper: #ffffff;
  --ink: #16181b;
  --muted: #63676d;
  --line: #e2dfd8;
  --green: #3f8f24;
  --blue: #2563c9;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(60, 30, 10, .08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.5; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; background: var(--red); color: var(--ink); text-decoration: none; transition: transform .1s, background .2s; }
.btn:hover { background: #f59f3f; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: #fff; }
.btn.amber { background: var(--amber); color: var(--ink); }
.btn.green { background: var(--green); color: #fff; }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.btn.block { width: 100%; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(22, 24, 27, .96); color: #fff; backdrop-filter: blur(10px); border-bottom: 1px solid #000; }
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.5px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.logo b { font-family: var(--display); font-size: 19px; display: block; line-height: 1; }
.logo small { color: var(--muted); font-size: 12px; }
.spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #e6f4ec; color: var(--green); }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.off { background: #fbe6e4; color: var(--red); }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -6px; right: -6px; background: var(--amber); color: var(--ink); font-size: 12px; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }

/* Hero */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); letter-spacing: -1.5px; }
.hero h1 em { font-style: normal; color: var(--red-dark); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.plate { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0 54%, #f3e6d3 55% 60%, #fff 61%); box-shadow: 0 30px 60px rgba(120, 50, 10, .18); display: grid; place-items: center; font-size: clamp(90px, 18vw, 150px); }
.sticker { position: absolute; background: var(--amber); color: var(--ink); font-family: var(--display); font-weight: 800; border-radius: 50%; width: 110px; height: 110px; display: grid; place-items: center; text-align: center; font-size: 15px; line-height: 1.1; transform: rotate(-12deg); top: 0; right: 0; box-shadow: var(--shadow); }
.sticker b { font-size: 30px; display: block; }
.infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.info { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.info span { font-size: 24px; }
.info b { display: block; }

/* Menu */
.menu-sec { padding: 24px 0 80px; }
.sec-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-title h2 { font-size: 34px; letter-spacing: -.8px; }
.cats { position: sticky; top: 68px; z-index: 20; background: var(--cream); padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { white-space: nowrap; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; }
.cat.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-group h3 { font-size: 22px; margin: 28px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; gap: 14px; text-align: left; transition: box-shadow .2s, transform .1s; width: 100%; }
.card:hover { box-shadow: var(--shadow); }
.card:active { transform: scale(.99); }
.card.off { opacity: .5; cursor: not-allowed; }
.thumb { flex: none; width: 92px; height: 92px; border-radius: 12px; background: linear-gradient(135deg, #fdecd2, #f8d9b0); display: grid; place-items: center; font-size: 44px; }
.card .body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.card h4 { margin: 0 0 4px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.card .row { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 800; color: var(--red-dark); }
.price small { color: var(--muted); font-weight: 500; font-size: 12px; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; background: #fff1d6; color: #9a5b00; padding: 3px 8px; border-radius: 6px; }
.add { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--ink); display: grid; place-items: center; font-size: 20px; font-weight: 700; }

/* Footer */
footer { background: var(--ink); color: #f1e7da; padding: 48px 0 32px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h4 { font-family: var(--display); margin: 0 0 10px; font-size: 17px; color: #fff; }
footer p, footer a { font-size: 14px; color: #cbbcaa; margin: 4px 0; display: block; text-decoration: none; }
footer a:hover { color: #fff; }
.fine { text-align: center; color: #8d7c6c; font-size: 12px; margin-top: 32px; }

/* Drawer / modal */
.overlay { position: fixed; inset: 0; background: rgba(30, 15, 5, .45); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); z-index: 60; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 22px; }
.x { border: 0; background: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 20px; border: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.line-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line-item .e { font-size: 30px; }
.line-item .info2 { flex: 1; min-width: 0; }
.line-item b { display: block; }
.line-item small { color: var(--muted); display: block; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { border: 0; background: none; width: 32px; height: 32px; font-size: 18px; font-weight: 700; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.sum { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin: 4px 0; }
.sum.total { color: var(--ink); font-size: 18px; font-weight: 800; margin: 10px 0 14px; }
.empty { text-align: center; color: var(--muted); padding: 48px 12px; }
.empty div { font-size: 48px; }

.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.modal.on { pointer-events: auto; opacity: 1; }
.modal-box { background: var(--cream); width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.3); transform: translateY(16px); transition: transform .2s; }
.modal.on .modal-box { transform: none; }
.modal-box.wide { width: min(640px, 100%); }
.modal-hero { background: linear-gradient(135deg, #fdecd2, #f8d9b0); height: 150px; display: grid; place-items: center; font-size: 80px; border-radius: 22px 22px 0 0; position: relative; }
.modal-hero .x { position: absolute; top: 14px; right: 14px; }
.modal-in { padding: 20px 22px 22px; }
.modal-in h3 { font-size: 26px; }
.modal-in > p { color: var(--muted); margin: 6px 0 16px; }

/* Forms */
label.f { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.in { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 14px; outline: none; }
.in:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(244, 165, 28, .2); }
textarea.in { resize: vertical; min-height: 64px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.opt { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; text-align: left; }
.opt b { display: block; font-size: 14px; }
.opt small { color: var(--muted); }
.opt.on { border-color: var(--red); background: #fff5f3; box-shadow: 0 0 0 2px rgba(200, 40, 30, .12); }
.fieldset-title { font-family: var(--display); font-size: 17px; margin: 22px 0 4px; }
.err { color: #c2410c; font-size: 13px; margin-top: 8px; }

/* Acompanhamento */
.track { padding: 40px 0 80px; }
.track-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; max-width: 640px; margin: 0 auto; box-shadow: var(--shadow); }
.track-card h2 { font-size: 30px; }
.steps { list-style: none; padding: 0; margin: 24px 0; }
.steps li { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 22px; color: var(--muted); }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.steps .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--line); display: grid; place-items: center; flex: none; font-size: 15px; z-index: 1; }
.steps li.done { color: var(--ink); }
.steps li.done .dot { background: var(--green); color: #fff; }
.steps li.done:not(:last-child)::after { background: var(--green); }
.steps li.now .dot { background: var(--amber); animation: pulse 1.6s infinite; }
.steps li b { display: block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,165,28,.6); } 100% { box-shadow: 0 0 0 14px rgba(244,165,28,0); } }
.recibo { background: var(--cream); border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.recibo .sum { color: var(--ink); }

/* Toasts */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); animation: up .25s ease; transition: opacity .3s, transform .3s; }
.toast.ok { background: var(--green); }
.toast.warn { background: var(--red); }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }

.demo-ribbon { background: var(--ink); color: #f1e7da; font-size: 13px; text-align: center; padding: 7px 16px; }
.demo-ribbon a { color: var(--amber); font-weight: 700; }

@media (max-width: 820px) {
  .hero { padding-top: 28px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 280px; order: -1; }
  .sticker { width: 88px; height: 88px; font-size: 12px; }
  .sticker b { font-size: 24px; }
  .infos { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  .logo small, .topbar .pill { display: none; }
  .grid { grid-template-columns: 1fr; }
}

/* Logo do cliente (img/logo.png) */
.logo-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; box-shadow: 0 0 0 2px var(--line); }
.login-box .logo-img { width: 84px; height: 84px; margin: 0 auto 14px; display: block; }
.logo-badge[hidden] { display: none; }
.topbar .logo small { color: #b9bcc1; }
.topbar .pill { background: rgba(63, 143, 36, .2); color: #8fd16f; }
.topbar .pill.off { background: rgba(238, 138, 29, .2); color: var(--red); }
.hero-logo { position: absolute; inset: 4%; width: 92%; height: 92%; border-radius: 50%; object-fit: cover; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
footer .logo-img { box-shadow: none; }
