:root {
    --mm-bg: #f6f1ea;
    --mm-ink: #1c1917;
    --mm-muted: #6b6259;
    --mm-card: #fffaf4;
    --mm-accent: #b45309;
    --mm-line: #eadfd2;
    --mm-ok: #15803d;
    --mm-danger: #b91c1c;
}
[data-template="dark"] {
    --mm-bg: #121212;
    --mm-ink: #f5f5f4;
    --mm-muted: #a8a29e;
    --mm-card: #1c1917;
    --mm-accent: #f59e0b;
    --mm-line: #292524;
}
[data-template="cafe"] {
    --mm-bg: #2a1c14;
    --mm-ink: #f8efe4;
    --mm-muted: #d6c2aa;
    --mm-card: #3b281c;
    --mm-accent: #e8b86d;
    --mm-line: #4a3426;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Vazirmatn, Tahoma, sans-serif;
    background: var(--mm-bg);
    color: var(--mm-ink);
}
a { color: var(--mm-accent); text-decoration: none; }
.mm-home { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.mm-home-card, .mm-hero, .mm-block, .mm-section, .mm-item, .mm-promo, .mm-cat {
    background: var(--mm-card);
    border: 1px solid var(--mm-line);
    border-radius: 18px;
}
.mm-home-card { max-width: 520px; padding: 32px; }
.mm-kicker { letter-spacing: .12em; text-transform: uppercase; color: var(--mm-accent); font-size: 12px; }
.mm-hero, .mm-block, .mm-section { margin: 16px auto; max-width: 920px; padding: 22px; }
.mm-cover { height: 140px; border-radius: 14px; background-size: cover; background-position: center; margin-bottom: 16px; }
.mm-lead, .mm-muted, .mm-meta { color: var(--mm-muted); }
.mm-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.mm-nav, .mm-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-nav a, .mm-nav button, .mm-cat, .mm-dock-btn, .mm-submit, .mm-add {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--mm-accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
}
.mm-nav button, .mm-add { background: transparent; color: var(--mm-accent); border: 1px solid var(--mm-accent); }
.mm-cat { display: flex; flex-direction: column; min-width: 140px; }
.mm-grid { display: grid; gap: 12px; }
.mm-item { display: flex; gap: 12px; padding: 12px; }
.mm-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.mm-item-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.mm-item-actions { display: flex; gap: 6px; }
.mm-note { width: 100%; margin-top: 8px; }
input, select, textarea {
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--mm-line);
    background: transparent;
    color: inherit;
    font: inherit;
}
.mm-form label { display: block; margin: 12px 0; }
.mm-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 920px;
    margin: 0 auto;
    padding: 16px;
}
.mm-bar h1 { font-size: 18px; margin: 0; }
.mm-dock { position: sticky; bottom: 0; padding: 12px; }
.mm-dock-btn, .mm-submit { display: block; width: 100%; text-align: center; padding: 14px; }
.mm-cart-lines { display: grid; gap: 10px; margin: 16px 0; }
.mm-cart-line { padding: 12px; border: 1px solid var(--mm-line); border-radius: 14px; }
.mm-total { font-size: 18px; }
.mm-cart-msg { color: var(--mm-ok); }
.mm-hours { list-style: none; padding: 0; }
.mm-hours li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--mm-line); }
.mm-hours .is-closed { opacity: .6; }
.mm-chat-log { min-height: 240px; display: grid; gap: 8px; margin-bottom: 12px; }
.mm-chat-form { display: flex; gap: 8px; }
.mm-bubble { padding: 10px 12px; border-radius: 14px; background: var(--mm-bg); }
.mm-bubble.is-staff { border-inline-start: 3px solid var(--mm-accent); }
.mm-promos { display: grid; gap: 12px; }
.mm-promo { display: flex; gap: 12px; padding: 12px; }
.mm-promo img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.mm-table-card { padding: 12px; border: 1px solid var(--mm-line); border-radius: 14px; margin: 8px 0; }
.mm-table-card.is-occupied { border-color: var(--mm-accent); }
.mm-empty { color: var(--mm-muted); }
code { background: var(--mm-bg); padding: 2px 6px; border-radius: 6px; }
