/* Sales page */
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .feat { grid-template-columns: 1fr; } }
.feat .ir-card { margin: 8px 0; }
.how { margin: 0; padding-left: 20px; }
.how li { margin: 6px 0; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.price-tag { text-align: right; }
.price-tag b { font-size: 36px; letter-spacing: -.02em; }
.price-tag span { color: var(--ir-muted); margin-left: 4px; }
.price-tag small { display: block; color: var(--ir-muted); }
.price-tag b { white-space: nowrap; }
.cur { display: flex; width: max-content; margin: 0 0 8px auto; border: 1px solid var(--ir-line); border-radius: 999px; overflow: hidden; }
.cur button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; color: var(--ir-muted); padding: 4px 12px; cursor: pointer; }
.cur button[aria-pressed="true"] { background: var(--ir-ink); color: var(--ir-surface); }
@media (max-width: 640px) { .price-tag { text-align: left; } .cur { margin-left: 0; } }
.linkish { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* Client menu. --m-color is set from the client JSON. */
#menu { --m-color: var(--ir-brand); min-height: 100vh; padding-bottom: 96px; }
.m-wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.m-head { background: var(--ir-surface); border-bottom: 1px solid var(--ir-line); position: sticky; top: 0; z-index: 20; }
.m-head > .m-wrap:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }
.m-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.m-brand img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; border: 1px solid var(--ir-line); }
.m-brand h1 { font-size: 21px; margin: 0; line-height: 1.2; }
.m-brand p { margin: 0; color: var(--ir-muted); font-size: 14px; }
.m-lang { border: 1px solid var(--ir-line); background: transparent; color: var(--ir-ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; flex: 0 0 auto; }
.m-info { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ir-muted); padding-top: 6px; }
.m-info a { color: var(--m-color); }
.m-cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 12px; max-width: 720px; margin: 0 auto; scrollbar-width: none; }
.m-cats::-webkit-scrollbar { display: none; }
.m-cats a { flex: 0 0 auto; text-decoration: none; color: var(--ir-ink); border: 1px solid var(--ir-line); border-radius: 999px; padding: 6px 14px; font-size: 14px; white-space: nowrap; }
.m-cats a.on { background: var(--m-color); border-color: var(--m-color); color: #fff; }
.m-search { margin: 16px 0 4px; }
.m-cat { scroll-margin-top: 170px; }
.m-cat h2 { font-size: 19px; margin: 24px 0 8px; }
.m-cat > p { margin: -4px 0 8px; color: var(--ir-muted); font-size: 14px; }
.m-item { display: flex; gap: 12px; background: var(--ir-surface); border: 1px solid var(--ir-line); border-radius: 12px; padding: 12px; margin: 8px 0; }
.m-item.off { opacity: .55; }
.m-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.m-item .body { flex: 1 1 auto; min-width: 0; }
.m-item h3 { font-size: 16px; margin: 0; }
.m-item p { margin: 2px 0 0; color: var(--ir-muted); font-size: 14px; }
.m-item .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.m-price { font-weight: 700; }
.m-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.m-tag { font-size: 11px; border-radius: 999px; padding: 1px 8px; background: var(--ir-bg); border: 1px solid var(--ir-line); color: var(--ir-muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ir-line); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 32px; border: 0; background: transparent; color: var(--ir-ink); font-size: 18px; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.add { border: 1px solid var(--m-color); color: var(--m-color); background: transparent; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.m-empty { text-align: center; color: var(--ir-muted); padding: 32px 0; }
.m-foot { text-align: center; color: var(--ir-muted); font-size: 13px; padding: 24px 0; }
.m-foot a { color: var(--ir-muted); }
.m-cartbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--ir-bg) 30%); z-index: 30; }
.m-cartbar .ir-btn { max-width: 688px; margin: 0 auto; display: flex; }
.m-sheet { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.m-sheet-in { background: var(--ir-surface); width: 100%; max-width: 720px; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { margin: 0; font-size: 20px; }
.cart-list { list-style: none; padding: 0; margin: 12px 0; }
.cart-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--ir-line); }
.cart-total { font-weight: 700; font-size: 18px; text-align: right; margin: 0 0 12px; }

/* Poster */
.poster { max-width: 560px; margin: 0 auto; padding: 40px 24px; text-align: center; }
.poster img { width: 110px; height: 110px; object-fit: cover; border-radius: 20px; }
.poster h1 { font-size: 36px; margin: 12px 0 4px; }
.p-big { font-size: 22px; margin: 0 0 20px; }
.p-qr { width: 320px; max-width: 100%; margin: 0 auto; background: #fff; padding: 8px; border-radius: 12px; }
.p-qr svg { display: block; width: 100%; height: auto; }
.p-url { color: var(--ir-muted); margin: 12px 0 24px; overflow-wrap: anywhere; }
@media print {
  .poster { padding: 0; }
  .m-head { position: static; }
}
