* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-tap-highlight-color: transparent; }
h1, h2, h3, .head { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; margin: 0; }
button { font: inherit; cursor: pointer; border: 0; border-radius: var(--radius-sm); }
input, textarea { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; width: 100%; }
.btn { background: var(--accent); color: var(--accent-text); font-weight: 700; padding: 14px 18px; }
.btn:disabled { opacity: .5; }
.btn-ghost { background: var(--surface-2); color: var(--text); padding: 10px 14px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------- customer menu ---------- */
.m-header { display: flex; align-items: center; gap: 12px; padding: 16px; }
.m-header img { width: 44px; height: 44px; }
.m-header h1 { color: var(--accent); font-size: 28px; }
.m-header p { margin: 2px 0 0; font-size: 13px; }
.closed { margin: 0 16px 12px; padding: 12px; border-radius: var(--radius-sm); background: #3b1d0a; border: 1px solid var(--accent); }
.cats { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--border); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.cats a.on { background: var(--accent); color: var(--accent-text); }
.section { padding: 18px 16px 4px; scroll-margin-top: 60px; }
.section h2 { font-size: 22px; margin-bottom: 10px; }
.card { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.card .info { flex: 1; min-width: 0; }
.card h3 { font-size: 17px; }
.card p { margin: 4px 0 8px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.card img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); flex: none; background: var(--surface-2); }
.variants { display: flex; flex-wrap: wrap; gap: 6px; }
.add { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); color: var(--text); padding: 8px 10px; font-weight: 600; font-size: 14px; border: 1px solid var(--border); }
.add b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-text); }
.add .q { color: var(--accent); }
.spacer { height: 100px; }
.bar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 10; padding: 16px; font-size: 16px; border-radius: var(--radius); box-shadow: 0 8px 30px #000a; }
.sheet { position: fixed; inset: 0; z-index: 20; background: #000b; display: flex; align-items: flex-end; }
.sheet > div { background: var(--surface); width: 100%; max-height: 92vh; overflow: auto; border-radius: var(--radius) var(--radius) 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.line .n { flex: 1; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 34px; height: 34px; background: var(--surface-2); color: var(--text); font-size: 20px; }
.field { margin-top: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin: 16px 0 6px; }
.pay { font-size: 13px; margin-bottom: 14px; }
.err { color: var(--danger); margin-top: 8px; }
.status { padding: 32px 20px; text-align: center; }
.status .code { font-family: var(--font-head); font-size: 72px; color: var(--accent); line-height: 1; margin: 10px 0 20px; }
.steps { text-align: left; max-width: 360px; margin: 0 auto; }
.step { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-sm); color: var(--muted); }
.step i { width: 14px; height: 14px; border-radius: 50%; background: var(--border); flex: none; }
.step.on { background: var(--surface); color: var(--text); font-weight: 600; }
.step.on i { background: var(--accent); box-shadow: 0 0 0 5px #ff6a1333; }
.step.done i { background: var(--ok); }
.center { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 24px; }

/* photos */
.card img { width: 116px; height: 88px; }
.card img[src$=".png"], .card img[src$=".svg"] { object-fit: contain; background: transparent; }
.m-header .badges { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.m-header .badges img { width: auto; height: 34px; }
.m-header .badges img.martins { height: 30px; }
@media (max-width: 360px) { .m-header .badges { display: none; } }
