:root {
    --mm-bg: #f6f1ea;
    --mm-ink: #1c1917;
    --mm-muted: #6b6259;
    --mm-card: #fffaf4;
    --mm-accent: #b45309;
    --mm-line: #eadfd2;
}

[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);
}
.mm-store-list { list-style: none; padding: 0; margin: 16px 0; text-align: start; }
.mm-store-list li { margin: 0 0 10px; }
.mm-store-list small { display: block; color: var(--mm-muted); }

.mm-home { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.mm-home-card, .mm-hero, .mm-section, .mm-item, .mm-cart {
    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 { margin: 20px auto; max-width: 920px; padding: 28px; }
.mm-lead, .mm-about, .mm-meta { color: var(--mm-muted); }
.mm-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.mm-sections { max-width: 920px; margin: 0 auto 120px; padding: 0 16px 32px; }
.mm-section { padding: 20px; margin-bottom: 16px; }
.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-body { flex: 1; }
.mm-item-row { display: flex; justify-content: space-between; align-items: center; }
.mm-add, .mm-submit {
    background: var(--mm-accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    cursor: pointer;
}
.mm-submit { width: 100%; height: 44px; font-weight: 700; }
.mm-cart {
    position: sticky;
    bottom: 12px;
    margin: 0 auto 16px;
    max-width: 920px;
    padding: 16px;
}
.mm-cart label { display: block; margin: 8px 0; font-size: 13px; color: var(--mm-muted); }
.mm-cart input {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--mm-line);
    background: transparent;
    color: inherit;
}
.mm-link { color: var(--mm-accent); }
code { direction: ltr; display: inline-block; }
.mm-empty { text-align: center; color: var(--mm-muted); }
