/* WebApp-V.1.0.1 · ui/02_Menu — ক্যাটাগরি · আইটেম তালিকা · আইটেম শিট */
.menu-head { padding: 24px 0 16px; display: flex; flex-direction: column; gap: 6px; }
.fine { margin: 24px 0 0; }

.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.cat { position: relative; display: flex; flex-direction: column; color: var(--color-text); background: #fff; border: 2px solid var(--color-divider); }
.cat:hover { color: var(--color-text); border-color: var(--color-text); }
.cat-img { aspect-ratio: 4 / 3; background: var(--color-surface); overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.cat-n { font-size: 16px; font-weight: 800; line-height: 1.15; }
.cat-c { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-700); }

.chips { margin: 0 -24px; padding: 10px 24px; display: flex; gap: 8px; overflow-x: auto; background: var(--color-bg); border-bottom: 2px solid var(--color-divider); box-shadow: 0 6px 12px -6px rgba(32, 30, 29, .35); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; height: 36px; padding: 0 14px; display: flex; align-items: center; border: 2px solid var(--color-divider); color: var(--color-text); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chips a.is-on { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }

.items { display: flex; flex-direction: column; }
@media (min-width: 768px) { .items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.it { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--color-neutral-300); text-align: left; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; }
.it:hover .it-n { color: var(--color-accent-700); }
.it-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.it-n { font-size: 17px; font-weight: 800; line-height: 1.2; }
.it-d { font-size: 14px; color: var(--color-neutral-700); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.it-p { margin-top: 2px; font-size: 15px; font-weight: 600; }
.it-img { flex: none; width: 96px; height: 96px; background: var(--color-surface); overflow: hidden; position: relative; }
.it-img img { width: 100%; height: 100%; object-fit: cover; }
.it-plus { position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--color-accent); color: #fff; font-size: 20px; font-weight: 800; }

/* আইটেম শিট — App.dc.html "04 Item"-এর মতো ধাপে ধাপে */
.item-sheet { padding: 0; gap: 0; max-width: 640px; display: flex; flex-direction: column; }
/* UI-03d — মোবাইলে আইটেম শিট পুরো স্ক্রিন (উপরে পেছনের মেনু দেখা যাবে না) */
@media (max-width: 767px) { .item-sheet { max-width: none; height: 100vh; height: 100dvh; max-height: none; } }
.item-top { position: sticky; top: 0; z-index: 3; padding: 12px 20px; display: flex; align-items: center; gap: 12px; background: var(--color-bg); border-bottom: 2px solid var(--color-divider); }
.item-back { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--color-text); background: none; color: var(--color-text); cursor: pointer; }
.item-back:hover { background: var(--color-text); color: var(--color-bg); }
.item-prog { flex: 1; min-width: 0; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--color-neutral-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-hero { height: 180px; background: var(--color-surface); overflow: hidden; }
.item-hero img { width: 100%; height: 100%; object-fit: contain; }
.item-body { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.item-head { padding: 16px 0; display: flex; flex-direction: column; gap: 6px; border-bottom: 2px solid var(--color-divider); margin-bottom: 4px; }
.item-hr { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.item-name { flex: 1; min-width: 0; font-family: var(--font-heading); font-size: 26px; font-weight: 900; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.item-from { flex: none; font-size: 17px; font-weight: 800; color: var(--color-accent-700); white-space: nowrap; }
.item-desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--color-neutral-700); text-wrap: pretty; }
.blks { display: flex; flex-direction: column; gap: 12px; }
.blk { width: 100%; text-align: left; background: transparent; color: var(--color-text); font: inherit; }
.blk-l { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.blk.is-open { border: 2px solid var(--color-text); padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.blk-h { display: flex; align-items: center; gap: 12px; }
.blk-h .blk-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk-meta { flex: none; display: flex; gap: 6px; font-size: 12px; font-weight: 500; color: var(--color-neutral-700); white-space: nowrap; }
.blk-meta .is-count { font-weight: 700; color: var(--color-text); }
.blk-meta .is-req { font-weight: 700; color: var(--color-accent-700); }
.blk-done { flex: none; height: 32px; padding: 0 12px; font-size: 14px; }
.blk-opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px 15px; background: transparent; color: var(--color-text); border: 2px solid var(--color-divider); cursor: pointer; text-align: left; width: 100%; font: inherit; }
.opt:hover { border-color: var(--color-text); }
.opt.is-on { background: oklch(0.52 0.14 152); border-color: oklch(0.52 0.14 152); color: #fff; }
.opt-ck { flex: none; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.opt-n { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
.opt-p { flex: none; font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt:disabled { opacity: .45; cursor: default; }
.blk.is-done, .blk.is-pending { border: 2px solid var(--color-divider); padding: 14px 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; }
.blk.is-done:hover, .blk.is-pending:hover { border-color: var(--color-text); }
.blk-ok { flex: none; width: 22px; height: 22px; border-radius: 50%; background: oklch(0.52 0.14 152); color: #fff; display: flex; align-items: center; justify-content: center; }
.blk-ok svg { width: 13px; height: 13px; }
.blk-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.blk-tx .blk-l { color: var(--color-neutral-700); }
.blk-v { font-size: 16px; font-weight: 700; line-height: 1.2; color: oklch(0.52 0.14 152); text-wrap: pretty; }
.blk-chg { flex: none; font-size: 13px; font-weight: 700; color: var(--color-accent-700); }
.blk.is-pending { color: var(--color-neutral-700); }
.blk.is-pending .blk-l { flex: 1; min-width: 0; }
.blk-badge { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.blk-badge.is-req { color: var(--color-accent-700); }
.blk-note { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.blk-note .blk-l { color: var(--color-neutral-700); }
.blk-note[hidden] { display: none; }
.item-foot { position: sticky; bottom: 0; z-index: 3; margin-top: auto; padding: 14px 20px; display: flex; gap: 12px; background: var(--color-bg); border-top: 2px solid var(--color-divider); }
.qty { flex: none; display: flex; align-items: center; border: 2px solid var(--color-text); }
.qty button { width: 44px; height: 48px; background: none; border: 0; font-size: 22px; font-weight: 800; cursor: pointer; }
.qty button:disabled { opacity: .45; cursor: default; }
.qty span { min-width: 28px; text-align: center; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.item-add { flex: 1; min-width: 0; height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.item-add-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-add-t { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }
.item-add.is-wait { background: var(--color-text); border-color: var(--color-text); }

/* কার্ট — UI-03: ভাসমান লাল বোতাম, পেজের ২৪px ছকে (প্রোটোটাইপের মতো) */
.cartbar { position: fixed; left: 0; right: 0; bottom: 76px; z-index: 45; padding: 0 24px; pointer-events: none; }
@media (min-width: 1100px) { .cartbar { bottom: 16px; } }
.cartbar-in { pointer-events: auto; max-width: 1072px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--color-accent); color: var(--color-bg); box-shadow: 0 8px 20px rgba(32, 30, 29, .35); }
.cartbar-in:hover { color: var(--color-bg); }
.cartbar-l { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartbar-t { flex: none; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.page.has-bar { padding-bottom: 170px; }

/* ── UI-03 · Menu (ডিজাইন: ক্যানভাস "Menu 1–2, Item 1–2") ───────────────── */
.menu .wrap { padding: 0 24px; }
.mtop { display: flex; align-items: center; gap: 14px; margin: 0 -24px; padding: 14px 24px 12px; background: var(--color-bg); border-bottom: 2px solid var(--color-divider); }
.mtop-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mtop-t { flex: 1; min-width: 0; margin: 0; font-size: 28px; font-weight: 900; line-height: 1.05; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtop.is-cats { position: sticky; top: 0; z-index: 30; }
.mtop.is-cats .mtop-t { flex: none; font-size: 20px; line-height: 1.1; letter-spacing: -.02em; }
.mtop-s { font-size: 12px; color: var(--color-neutral-700); }
.mtop-c { flex: none; font-size: 13px; font-weight: 600; color: var(--color-neutral-700); }
.mtop-x { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: var(--color-accent); color: #fff; cursor: pointer; }
.mtop-x:hover { background: var(--color-accent-600); color: #fff; }
.mtop-x:active { background: var(--color-accent-700); }
.mstick { position: sticky; top: 0; z-index: 30; margin: 0 -24px; background: var(--color-bg); }
.mstick .mtop, .mstick .chips { margin: 0; }
@media (min-width: 1100px) { .mstick, .mtop.is-cats { top: 48px; } }
.menu-desc { margin: 12px 0 0; }
.cats { padding-top: 16px; }
.cat-b { flex: 1; }
.cat { position: relative; }
.cat-go { position: absolute; right: 12px; bottom: 14px; }
.items { padding-top: 4px; }
.it-plus { }
/* আইটেম শিট — ২৪px ছক, বড় ট্যাপ এরিয়া */
.item-top { min-height: 70px; padding: 0 24px; box-sizing: border-box; }
.item-back { width: 44px; height: 44px; }
.item-prog { font-size: 12px; }
.item-hero { height: 168px; }
.item-body { padding: 0 24px 16px; }
.item-foot { padding: 14px 24px 18px; }
.blk-l, .blk-note .blk-l { font-size: 12px; }
.blk-chg { min-height: 44px; display: flex; align-items: center; }
.mtop-x:focus-visible, .cartbar-in:focus-visible { outline: 3px solid var(--color-text); outline-offset: 2px; }
/* UI-03: "Dodaj do zamówienia" ফোনে "…" হয়ে যেত → দুই লাইনে ভাঙে, লেখা বদল নেই */
.item-add { padding: 0 14px; }
.item-add-l { white-space: normal; overflow: visible; text-overflow: clip; font-size: 13px; line-height: 1.15; text-align: left; letter-spacing: .02em; }
@media (max-width: 380px) { .item-add { padding: 0 10px; gap: 8px; } .item-add-l { font-size: 12px; letter-spacing: 0; } .item-add-t { font-size: 13px; } }

/* UI-03b · একটানা মেনু (সব ক্যাটাগরি এক পেজে + scroll-spy) */
.msec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 24px 0 12px; }
.msec-t { margin: 0; min-width: 0; font-size: 28px; font-weight: 900; line-height: 1.05; letter-spacing: -.03em; }
.msec-c { flex: none; font-size: 13px; font-weight: 600; color: var(--color-neutral-700); }
.msec:last-of-type { min-height: calc(100vh - 220px); }
.items { border-top: 2px solid var(--color-divider); padding-top: 0; }
.mtop-t { flex: 1; }

/* UI-03c · "উপরে যান" ভাসমান তীর */
.totop { position: fixed; right: 24px; bottom: 88px; z-index: 44; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; background: var(--color-text); color: var(--color-bg); box-shadow: 0 6px 16px rgba(32, 30, 29, .35); cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s, transform .18s; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--color-accent); color: #fff; }
.totop:active { opacity: .85; }
body.has-cart .totop { bottom: 144px; }
@media (min-width: 1100px) { .totop { bottom: 32px; } body.has-cart .totop { bottom: 88px; } }

/* UI-06: ট্যাব বার নেই — কার্ট পিল ও ↑ বোতাম নিচে নামে */
body.no-tabs .cartbar { bottom: calc(16px + env(safe-area-inset-bottom)); }
body.no-tabs .page.has-bar { padding-bottom: 110px; }
body.no-tabs .totop { bottom: calc(16px + env(safe-area-inset-bottom)); }
body.no-tabs.has-cart .totop { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) { body.no-tabs .mstick, body.no-tabs .mtop.is-cats { top: 0; } }
