:root { --brand: #e23744; --ink: #1c1c1c; --muted: #6b6b6b; --line: #ececec; --bg: #f7f7f8; }
body { background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif; -webkit-tap-highlight-color: transparent; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:active, .btn-brand:focus { background: var(--brand); color: #fff; filter: brightness(.93); }
.btn-brand:disabled { background: #aaa; border-color: #aaa; }

.m-hero { background: var(--brand); background-size: cover; background-position: center; color: #fff; padding: 20px 16px 18px; }
.m-logo { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; background: #fff; border: 2px solid rgba(255,255,255,.7); }
.m-pill { background: rgba(255,255,255,.18); border-radius: 30px; padding: 3px 10px; backdrop-filter: blur(4px); }
.m-notice { background: #fff8e1; color: #6d5100; padding: 10px 16px; font-size: .9rem; border-bottom: 1px solid #f1e3b0; }

.m-sticky { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.m-cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.m-cats::-webkit-scrollbar { display: none; }
.m-cats a { white-space: nowrap; padding: 6px 14px; border-radius: 30px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .88rem; }
.m-cats a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.m-section { padding: 18px 16px 4px; scroll-margin-top: 110px; }
.m-section h2 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.m-section .m-sub { color: var(--muted); font-size: .82rem; }
.m-item { display: flex; gap: 12px; background: #fff; border-radius: 14px; padding: 12px; margin-top: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.m-item.oos { opacity: .55; }
.m-item .m-info { flex: 1; min-width: 0; }
.m-item h3 { font-size: 1rem; font-weight: 600; margin: 4px 0 2px; }
.m-item .m-price { font-weight: 600; }
.m-item .m-desc { color: var(--muted); font-size: .83rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.m-media { width: 112px; flex: none; position: relative; text-align: center; }
.m-media img { width: 112px; height: 104px; object-fit: cover; border-radius: 12px; background: #eee; }
.m-media .m-add { position: relative; margin-top: -18px; }
.m-media.noimg .m-add { margin-top: 30px; }
.m-add .btn { min-width: 92px; font-weight: 700; color: var(--brand); background: #fff; border: 1px solid #ddd; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.m-stepper { display: inline-flex; align-items: center; background: var(--brand); color: #fff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.12); overflow: hidden; }
.m-stepper button { background: transparent; border: 0; color: #fff; width: 32px; height: 32px; font-size: 1.1rem; font-weight: 700; }
.m-stepper span { min-width: 24px; text-align: center; font-weight: 700; }
.m-custom { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.m-badge { font-size: .68rem; padding: 2px 6px; border-radius: 4px; font-weight: 600; margin-left: 4px; }
.m-badge.best { background: #fff1e0; color: #c4570a; }
.m-badge.new { background: #e6f4ff; color: #0b6bcb; }
.m-badge.rec { background: #f1e8ff; color: #6b2fd6; }

.food-dot { display: inline-flex; width: 14px; height: 14px; border: 1.5px solid #0f8a43; border-radius: 3px; align-items: center; justify-content: center; vertical-align: -2px; }
.food-dot span { width: 6px; height: 6px; border-radius: 50%; background: #0f8a43; }
.food-dot.nonveg { border-color: #c0392b; } .food-dot.nonveg span { background: #c0392b; }
.food-dot.egg { border-color: #e0a100; } .food-dot.egg span { background: #e0a100; }

.m-cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; background: var(--brand); color: #fff; border-radius: 14px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
/* Service bar for table guests (waiter / water / bill / orders) */
.m-bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(0,0,0,.05); }
.m-bottombar button { position: relative; border: 0; background: none; padding: 8px 0 6px; color: var(--ink); display: flex; flex-direction: column; align-items: center; font-size: 1.2rem; line-height: 1; }
.m-bottombar button:active { background: var(--bg); }
.m-bottombar span { font-size: .68rem; margin-top: 4px; }
.m-fab-badge { position: absolute; top: 4px; left: 55%; background: var(--brand); color: #fff; border-radius: 10px; font-size: .65rem; padding: 2px 6px; }
body.has-bar { padding-bottom: 64px; }
body.has-bar .m-cartbar { bottom: calc(70px + env(safe-area-inset-bottom)); }
body.has-cart main#menu { padding-bottom: 90px !important; }

.m-sheet.offcanvas-bottom { height: auto; max-height: 88vh; border-radius: 18px 18px 0 0; }
.m-opt-img { width: 100%; height: 200px; object-fit: cover; border-radius: 18px 18px 0 0; }
.m-opt-group { padding: 12px 16px; border-top: 8px solid var(--bg); }
.m-opt-group label { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.m-opt-footer { position: sticky; bottom: 0; background: #fff; padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.m-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.m-summary { background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.m-summary div { display: flex; justify-content: space-between; }

.m-track { display: flex; justify-content: space-between; margin: 10px 0 4px; position: relative; }
.m-track::before { content: ""; position: absolute; left: 8%; right: 8%; top: 11px; height: 3px; background: var(--line); }
.m-step { position: relative; text-align: center; flex: 1; font-size: .7rem; color: var(--muted); }
.m-step i { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: #ddd; color: #fff; align-items: center; justify-content: center; font-size: .75rem; position: relative; z-index: 1; }
.m-step.done i { background: #0f8a43; } .m-step.now i { background: var(--brand); animation: pop 1.2s infinite; } .m-step.done, .m-step.now { color: var(--ink); font-weight: 600; }
@keyframes pop { 50% { transform: scale(1.18); } }
.m-stars i { font-size: 2.2rem; color: #f5b301; cursor: pointer; margin: 0 4px; }
.m-empty { text-align: center; color: var(--muted); padding: 40px 16px; }
@media (min-width: 768px) { main#menu, .m-sticky > *, .m-notice { max-width: 760px; margin-left: auto; margin-right: auto; } .m-sheet.offcanvas-bottom { max-width: 600px; margin: 0 auto; } }
