/* Storefront (website + Telegram Mini App). Colours come from the shop's theme as CSS variables. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Geist", "Noto Sans Myanmar", system-ui, sans-serif; background: var(--ground); color: var(--fg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--tint); }
img { max-width: 100%; display: block; }
[x-cloak] { display: none !important; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; border-radius: 50%; }
.bg i:nth-child(1) { width: 640px; height: 640px; top: -200px; left: -160px; background: radial-gradient(circle, var(--blob1), transparent 68%); }
.bg i:nth-child(2) { width: 720px; height: 720px; top: 18%; right: -240px; background: radial-gradient(circle, var(--blob2), transparent 68%); }
.bg i:nth-child(3) { width: 620px; height: 620px; bottom: -240px; left: 20%; background: radial-gradient(circle, var(--blob3), transparent 68%); }
.bg img, .bg video { width: 100%; height: 100%; object-fit: cover; }
.bg-shade { position: fixed; inset: 0; z-index: -1; background: color-mix(in srgb, var(--ground) 55%, transparent); pointer-events: none; }

.glass { background: var(--glass); backdrop-filter: blur(var(--blur)) saturate(170%); -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
  border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 16px 18px 90px; display: flex; flex-direction: column; gap: 36px; }
.mini .wrap { padding: 10px 12px 110px; gap: 24px; }

/* header */
.top { position: sticky; top: 10px; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: max(var(--radius), 16px); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--fg); text-decoration: none; }
.logo .mark { width: 38px; height: 38px; border-radius: 12px; background: var(--tint); color: var(--on-tint); display: grid; place-items: center; overflow: hidden; }
.logo .mark img { width: 100%; height: 100%; object-fit: cover; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.top nav a { padding: 9px 12px; border-radius: 12px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; }
.top nav a:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.chips-mini { display: flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 7%, transparent); }
.chips-mini button { min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-weight: 650; font-size: 13px; cursor: pointer; }
.chips-mini button.on { background: var(--tint); color: var(--on-tint); }

/* buttons */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: max(calc(var(--radius) / 2), 10px);
  border: 1px solid var(--line); background: var(--glass-strong); color: var(--fg); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; }
.b.tint { background: var(--tint); color: var(--on-tint); border-color: transparent; }
.b.ghost { background: transparent; }
.b.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.b[disabled] { opacity: .5; cursor: not-allowed; }
.b svg { width: 18px; height: 18px; }
.icon-b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--tint); color: var(--on-tint); cursor: pointer; position: relative; flex: none; }
.icon-b svg { width: 20px; height: 20px; }
.count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #FF5A5F; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* announcement */
.announce { text-align: center; padding: 10px 16px; border-radius: max(var(--radius), 14px); font-weight: 650; font-size: 14px; }
.announce.pill { align-self: center; border-radius: 999px; padding: 6px 18px; }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.hero.center { text-align: center; justify-content: center; }
.hero .copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; }
.hero.center .copy { align-items: center; }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5.6vw, 64px); line-height: 1.32; padding-top: .08em; letter-spacing: -.01em; }
.hero p { margin: 0; font-size: 17.5px; color: var(--fg-soft); max-width: 560px; }
.hero .art { flex: 1 1 360px; min-height: 320px; border-radius: calc(var(--radius) + 8px); overflow: hidden; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.hero .art img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.hero.compact .art { min-height: 200px; } .hero.compact .art img { min-height: 200px; }
.badge-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.hero.center .badge-pill { align-self: center; }
.badge-pill i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* sections */
.sec { display: flex; flex-direction: column; gap: 16px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.4; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass); color: var(--fg); font: inherit; font-weight: 650; font-size: 14px; cursor: pointer; }
.cat.on { background: var(--tint); color: var(--on-tint); border-color: transparent; }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat-cards .cat { min-height: 80px; border-radius: var(--radius); font-size: 15px; }
.search { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--fg); font: inherit; width: min(320px, 100%); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(min(var(--cols, 3), 3), minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.pcard { border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-align: left; font: inherit; color: var(--fg); }
.pcard .img { position: relative; aspect-ratio: 4 / 5; background-image: linear-gradient(135deg, color-mix(in srgb, var(--tint) 14%, transparent), color-mix(in srgb, var(--fg) 5%, transparent)); border-radius: max(calc(var(--radius) - 6px), 4px); overflow: hidden; background: color-mix(in srgb, var(--fg) 7%, transparent); display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--fg-soft); }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pcard .tag { position: absolute; top: 8px; left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--glass-strong); font-size: 12px; font-weight: 750; color: var(--fg); }
.pcard .tag.out { background: #111; color: #fff; }
.pcard .body { padding: 0 6px 6px; display: flex; flex-direction: column; gap: 4px; }
.pcard h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; }
.price { font-weight: 800; font-size: 15.5px; }
.price s { font-weight: 500; color: var(--fg-soft); font-size: 13px; margin-left: 6px; }

/* panels */
.panel { border-radius: var(--radius); padding: 22px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 650; color: var(--fg-soft); }
.in { width: 100%; min-height: 44px; padding: 0 12px; border-radius: max(calc(var(--radius) / 2), 10px); border: 1px solid var(--line); background: var(--glass-strong); color: var(--fg); font: inherit; font-size: 15px; }
textarea.in { padding: 10px 12px; min-height: 80px; resize: vertical; }
.faq details { padding: 14px 18px; border-radius: var(--radius); }
.faq summary { font-weight: 700; cursor: pointer; }
.contact-row { display: flex; flex-wrap: wrap; gap: 16px; }
.contact-row div { flex: 1 1 220px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 16px 20px; border-radius: var(--radius); font-size: 14px; color: var(--fg-soft); }

/* overlays */
.ov { position: fixed; inset: 0; z-index: 70; background: rgba(8,8,18,.42); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 760px) { .ov { align-items: center; padding: 20px; } }
.sheet { width: min(720px, 100%); max-height: 92vh; overflow-y: auto; border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0; padding: 20px;
  background: color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%); border: 1px solid var(--glass-edge); }
@media (min-width: 760px) { .sheet { border-radius: calc(var(--radius) + 6px); } }
.sheet h2 { margin: 0; font-size: 21px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg); cursor: pointer; font-size: 20px; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); }
.gallery img { width: 100%; flex: none; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; border-radius: var(--radius); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--glass-strong); color: var(--fg); font: inherit; font-weight: 650; cursor: pointer; }
.opt.on { border-color: var(--tint); background: var(--tint); color: var(--on-tint); }
.opt[disabled] { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--glass-strong); }
.qty button { width: 38px; height: 40px; border: 0; background: transparent; color: var(--fg); font-size: 18px; cursor: pointer; }
.qty span { min-width: 34px; text-align: center; font-weight: 800; }
.line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line img, .line .ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: color-mix(in srgb, var(--fg) 7%, transparent); }
.row-b { display: flex; justify-content: space-between; gap: 10px; }
.total { font-size: 20px; font-weight: 800; }
.note { font-size: 13px; color: var(--fg-soft); }
.ok-box { padding: 16px; border-radius: var(--radius); background: color-mix(in srgb, #22C55E 16%, transparent); font-weight: 650; }

/* chat */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; }
.mini .chat-fab { bottom: 84px; }
.chat-box { position: fixed; right: 18px; bottom: 88px; z-index: 65; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 120px));
  display: flex; flex-direction: column; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  background: color-mix(in srgb, var(--ground) 80%, transparent); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
@media (max-width: 560px) { .chat-box { right: 0; left: 0; bottom: 0; width: 100%; height: 88vh; border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0; } }
.chat-inline { position: static; width: 100%; height: 560px; box-shadow: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--tint); color: var(--on-tint); }
.chat-head b { display: block; } .chat-head span { font-size: 12.5px; opacity: .85; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.cb { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; white-space: normal; word-wrap: break-word; }
.cb > .txt { white-space: pre-wrap; }
.cb.me { align-self: flex-end; background: var(--tint); color: var(--on-tint); border-bottom-right-radius: 6px; }
.cb.them { align-self: flex-start; background: var(--glass-strong); border-bottom-left-radius: 6px; }
.cb.sys { align-self: center; background: color-mix(in srgb, var(--fg) 7%, transparent); font-size: 13px; color: var(--fg-soft); border-radius: 12px; }
.cb .who { display: block; font-size: 11px; font-weight: 800; opacity: .65; margin-bottom: 2px; }
.cb img { border-radius: 12px; max-height: 200px; margin-top: 4px; }
.ccard { margin-top: 8px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--ground) 70%, transparent); color: var(--fg); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.ccard .prods { display: flex; gap: 8px; overflow-x: auto; }
.ccard .prod { flex: none; width: 110px; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ccard .prod img, .ccard .prod .ph { width: 110px; height: 110px; border-radius: 12px; object-fit: cover; background: color-mix(in srgb, var(--fg) 7%, transparent); }
.typing { align-self: flex-start; font-size: 13px; color: var(--fg-soft); padding: 4px 10px; }
.chat-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-in textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 10px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--glass-strong); color: var(--fg); font: inherit; resize: none; }
.toast-s { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; padding: 12px 18px; border-radius: 16px; background: var(--fg); color: var(--ground); font-weight: 650; font-size: 14px; max-width: calc(100vw - 32px); }
.mini-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.mini-bar .b { flex: 1; }

/* branches */
.branch-pick { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 6px 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 7%, transparent); }
.branch-pick svg { width: 16px; height: 16px; flex: none; opacity: .75; }
.branch-pick select { max-width: 150px; border: 0; background: transparent; color: var(--fg); font: inherit; font-weight: 650; font-size: 13px; padding: 6px 2px; cursor: pointer; }
.branch-pick select option { color: #111; }
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.branch-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.branch-card.on { outline: 2px solid var(--tint); }
.branch-card .tag-on { font-size: 13px; font-weight: 700; color: var(--tint); margin-top: 4px; }
.branch-card .b { margin-top: 6px; }
