/* Mobile-app screens: restaurants list, restaurant menu, product sheet, cart, checkout */
.pm, .pm * { box-sizing: border-box; }
.pm {
  font-family: "Archivo Narrow", "Plus Jakarta Sans", system-ui, sans-serif;
  color: #1c1c1c;
  background: #fff;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
}
:where(.pm) img { display: block; max-width: 100%; }
:where(.pm) a { color: inherit; text-decoration: none; }
:where(.pm) button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; padding: 0; }
:where(.pm) input, :where(.pm) textarea { font: inherit; }
.pm .pink { color: #ff0066; }
.pm sup.da { font-size: .55em; font-weight: 700; margin-left: 2px; vertical-align: super; }

/* top bar */
.pm-top {
  position: sticky; top: 0; z-index: 30; background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 18px;
}
.pm-top .back { width: 36px; height: 36px; display: flex; align-items: center; }
.pm-top .back .material-symbols-outlined { font-size: 26px; }
.pm-top h1 {
  margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.3px;
  display: flex; align-items: center; gap: 10px;
}
.pm-top h1 .ico { font-size: 26px; }

/* search pill */
.pm-search {
  margin: 4px 18px 14px; height: 48px; border: 1px solid #cfcfcf; border-radius: 26px;
  display: flex; align-items: center; gap: 12px; padding: 0 18px; background: #fff;
}
.pm-search .material-symbols-outlined { color: #555; font-size: 24px; }
.pm-search input { flex: 1; border: 0; outline: 0; font-size: 15px; color: #333; background: transparent; }
.pm-search input::placeholder { color: #9a9a9a; }

/* restaurants list */
.pm-list { padding: 0 18px 30px; }
.pm-store {
  display: block; border: 1px solid #ececec; border-radius: 20px; overflow: hidden;
  background: #fff; margin-bottom: 30px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.pm-store .cover { position: relative; height: 190px; background: #eee; overflow: hidden; }
.pm-store .cover img { width: 100%; height: 100%; object-fit: cover; }
.pm-badge {
  position: absolute; top: 14px; left: 14px; background: #ff1f6f; color: #fff;
  font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 22px; white-space: nowrap;
}
.pm-time {
  position: absolute; right: 14px; bottom: 14px; background: #f7f3dc; color: #222;
  font-size: 15px; font-weight: 700; padding: 8px 16px; border-radius: 22px;
  display: inline-flex; align-items: center; gap: 6px;
}
.pm-time .material-symbols-outlined { font-size: 18px; }
.pm-store .info { padding: 14px 18px 16px; }
.pm-store .name { font-size: 15px; font-weight: 700; text-transform: none; }
.pm-likes { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #333; }
.pm-likes .material-symbols-outlined { font-size: 18px; color: #888; font-variation-settings: 'FILL' 1; }

/* restaurant hero */
.pm-hero { position: relative; height: 290px; background: #222 center/cover no-repeat; }
.pm-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%); }
.pm-hero .back {
  position: absolute; z-index: 2; top: 40px; left: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; display: flex; align-items: center; justify-content: center;
}
.pm-hero .back .material-symbols-outlined { font-size: 28px; }
.pm-hero .pm-badge { top: 46px; left: auto; right: 20px; background: #ff5f97; color: #111; }
.pm-hero .title { position: absolute; z-index: 2; left: 24px; bottom: 26px; color: #fff; }
.pm-hero .title h1 { margin: 0; font-size: 28px; font-weight: 700; }
.pm-hero .title .pm-likes { color: #fff; font-size: 18px; }
.pm-hero .title .pm-likes .material-symbols-outlined { color: #e6e6e6; font-size: 22px; }
.pm-sheet-top { position: relative; z-index: 3; margin-top: -2px; background: #fff; border-radius: 26px 26px 0 0; padding-top: 22px; }

.pm-tabs { display: flex; gap: 26px; overflow-x: auto; padding: 4px 30px 6px; scrollbar-width: none; }
.pm-tabs::-webkit-scrollbar { display: none; }
.pm-tabs button { white-space: nowrap; font-size: 17px; color: #111; padding: 8px 0; }
.pm-tabs button.on { color: #ff0066; }
.pm-cat-title { font-size: 19px; font-weight: 700; margin: 18px 18px 14px; }

.pm-prod {
  display: flex; align-items: stretch; margin: 0 18px 20px; background: #f6f6f6; border-radius: 20px; overflow: hidden; min-height: 136px;
}
.pm-prod .thumb { width: 136px; flex: 0 0 136px; background: #eee; }
.pm-prod .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.pm-prod .body { flex: 1; min-width: 0; padding: 18px 12px 14px 12px; }
.pm-prod .pname { font-size: 16px; font-weight: 700; }
.pm-prod .pdesc { font-size: 13px; color: #9b9b9b; margin-top: 8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-prod .row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.pm-prod .price { font-size: 21px; font-weight: 700; color: #ff0066; }
.pm-pill { background: #fff; border-radius: 18px; padding: 6px 18px; font-size: 15px; font-weight: 600; color: #222; }

.pm-fab {
  position: fixed; z-index: 40; right: 16px; bottom: 22px; width: 72px; height: 72px; border-radius: 50%;
  background: #ff0066; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(255,0,102,.35);
}
.pm-fab .material-symbols-outlined { font-size: 34px; color: #ffd0e2; }
.pm-fab .count {
  position: absolute; top: -6px; left: 2px; min-width: 28px; height: 28px; border-radius: 50%;
  background: #6a0f3a; color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* product sheet */
#productSheet.pm-sheet, .pm-sheet { position: fixed; inset: 0; z-index: 90; min-height: 0; background: #fff; overflow: hidden; max-width: 480px; margin: 0 auto; }
.pm-sheet .hero { position: relative; height: 300px; background: #222 center/cover no-repeat; }
.pm-sheet .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.65)); }
.pm-sheet .close {
  position: absolute; z-index: 2; top: 34px; left: 20px; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; display: flex; align-items: center; justify-content: center;
}
.pm-sheet .close .material-symbols-outlined { font-size: 30px; }
.pm-sheet .basket {
  position: absolute; z-index: 2; top: 32px; right: 20px; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; color: #fff;
}
.pm-sheet .basket .count { position: absolute; top: -4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; background: #6a0f3a; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.pm-sheet .htext { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 26px; color: #fff; }
.pm-sheet .htext .small { font-size: 14px; color: #ddd; }
.pm-sheet .htext .big { font-size: 34px; font-weight: 700; color: #ff0066; line-height: 1.1; }
.pm-sheet .htext p { margin: 10px 0 0; font-size: 14px; color: #e8e8e8; line-height: 1.6; }
.pm-sheet .content { position: relative; z-index: 3; margin-top: -14px; background: #fff; border-radius: 0 26px 0 0; padding: 24px 12px 30px; }
#productSheetBody { display: flex; flex-direction: column; height: 100%; }
.pm-sheet .scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pm-sheet .pm-bottom { position: static; flex: 0 0 auto; max-width: none; margin: 0; padding: 12px 24px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 12px rgba(0,0,0,.06); }
.pm-step { display: flex; align-items: center; gap: 12px; }
.pm-step button { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pm-step .minus { background: #ff8fb4; color: #c2004d; }
.pm-step .plus { background: #c9c9c9; color: #1c1c1c; }
.pm-step .material-symbols-outlined { font-size: 22px; font-weight: 700; }
.pm-step .n { min-width: 18px; text-align: center; font-size: 18px; font-weight: 700; }
a.pm-btn { display: inline-block; }
.pm-sheet .pm-bottom { justify-content: space-between; }
.pm-sheet .pm-bottom.only-btn { justify-content: flex-end; }
.pm-warn-loc { color: #e53935; font-size: 13px; margin: 10px 6px 0; }
.pm-ask { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.pm-ask-card { width: 100%; max-width: 480px; background: #fff; border-radius: 22px 22px 0 0; padding: 24px 22px calc(22px + env(safe-area-inset-bottom)); }
.pm-ask-sub { margin: -4px 0 16px; color: #888; font-size: 13px; }
.pm-ask .pm-field { padding: 0 18px; height: 54px; }
.pm-ask-actions { display: flex; gap: 12px; margin-top: 18px; }
.pm-ask-actions .pm-btn { flex: 1; }
.pm-ask-cancel { padding: 16px 18px; border-radius: 6px; background: #f1f1f1 !important; font-weight: 600; }
.pm-chip span[id] { overflow: hidden; text-overflow: ellipsis; }
.pm-sheet .warn { font-size: 14px; font-weight: 700; margin: 0 0 24px; }
.pm-group { margin: 0 24px 36px; background: #f7f7f7; border-radius: 16px; padding: 18px 20px; border: 1px solid #f0f0f0; }
.pm-group.req { border-color: #f79bbd; background: #fbf7f8; }
.pm-group + .pm-group { margin-top: -20px; }
.pm-group .gh { display: flex; align-items: flex-start; justify-content: space-between; }
.pm-group .gt { font-size: 19px; font-weight: 700; }
.pm-group .gs { font-size: 15px; color: #9b9b9b; margin-top: 6px; }
.pm-tag { font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 20px; background: #ececec; color: #222; }
.pm-tag.req { background: #ff0066; color: #fff; }
.pm-opt { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 4px; font-size: 17px; cursor: pointer; }
.pm-opt .l { display: flex; align-items: center; gap: 16px; }
.pm-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pm-opt .dot { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid #e2e2e2; display: inline-block; position: relative; }
.pm-opt input:checked + .dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #ff0066; }
.pm-opt input:checked ~ .lbl { color: #ff0066; }
.pm-opt .lbl .sub { display: block; font-size: 13px; color: #888; font-weight: 400; margin-top: 2px; }
.pm-opt .p { font-size: 17px; }
.pm-sheet-desc { margin: 0 24px 16px; font-size: 15px; line-height: 1.5; color: #555; }
.pm-gallery { display: flex; gap: 8px; overflow-x: auto; padding: 4px 18px 14px; scrollbar-width: none; }
.pm-gallery::-webkit-scrollbar { display: none; }
.pm-gallery button { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; flex: 0 0 64px; padding: 0; }
.pm-gallery button.on { border-color: #ff0066; }
.pm-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pm-opt.sel .p { color: #ff0066; font-weight: 700; }
.pm-gsub { margin-top: 18px; }

.pm-bottom {
  position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; background: #fff;
  max-width: 480px; margin: 0 auto; padding: 14px 24px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pm-bottom.only-btn { justify-content: flex-end; }
.pm-btn { background: #ff0066; color: #fff !important; font-size: 17px; font-weight: 600; border-radius: 6px; padding: 16px 20px; min-width: 112px; text-align: center; }
.pm-total { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; }
.pm-total .material-symbols-outlined { font-size: 34px; }
.pm-cash { width: 46px; height: 34px; border-radius: 4px; background: #2d8a4f; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }

/* cart */
.pm-cart-item { display: flex; align-items: center; margin: 18px 18px 0; }
.pm-cart-item .thumb { width: 130px; height: 132px; flex: 0 0 130px; border-radius: 16px; overflow: hidden; position: relative; z-index: 2; }
.pm-cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-cart-item .box { flex: 1; min-width: 0; background: #fdf3f5; border-radius: 0 20px 20px 0; padding: 14px 14px 12px 14px; margin-left: -4px; height: 116px; }
.pm-cart-item .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pm-cart-item .nm { font-size: 15px; font-weight: 700; }
.pm-cart-item .note { font-size: 12px; color: #999; margin-top: 4px; }
.pm-cart-item .bot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.pm-cart-item .price { font-size: 19px; font-weight: 700; color: #ff0066; }
.pm-qty { display: flex; align-items: center; gap: 14px; }
.pm-qty .del .material-symbols-outlined { color: #ff6fa0; font-size: 30px; font-variation-settings: 'FILL' 1; }
.pm-qty .n { font-size: 18px; font-weight: 700; }
.pm-qty .plus { width: 32px; height: 32px; border-radius: 50%; background: #c7c7c7; color: #222; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.pm-more { display: block; width: 254px; margin: 36px auto 0; text-align: center; border: 1px solid #eee; border-radius: 26px; padding: 14px 0; font-size: 15px; }

/* checkout */
.pm-ck { padding: 0 24px 130px; }
.pm-map { height: 190px; border-radius: 22px; overflow: hidden; background: #e9eef2; }
.pm-map iframe { width: 100%; height: 100%; border: 0; }
.pm-h { font-size: 16px; font-weight: 700; margin: 18px 0 12px; }
.pm-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 34px; }
.pm-chip {
  height: 46px; border-radius: 24px; background: #ff0066; color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; padding: 0 14px; overflow: hidden; white-space: nowrap;
}
.pm-chip .material-symbols-outlined { font-size: 20px; }
.pm-chip.vip { background: linear-gradient(90deg,#fff1cf,#ffe0a6); color: #6b4a00; border: 1px solid #f2a0b9; }
.pm-chip.vip .material-symbols-outlined { color: #f0a000; font-variation-settings: 'FILL' 1; }
.pm-chip input { background: transparent; border: 0; outline: 0; color: #fff; font-weight: 600; width: 100%; font-size: 13px; }
.pm-field { width: 100%; height: 60px; border-radius: 10px; background: #f3f3f3; border: 0; outline: 0; padding: 0 36px; font-size: 16px; color: #333; }
.pm-field::placeholder { color: #555; }
textarea.pm-field { height: 72px; padding: 14px 20px; resize: none; }
.pm-pro { display: flex; gap: 18px; align-items: center; margin: 16px 0 6px; border: 1px solid #f6a7c2; background: #fdeef3; border-radius: 16px; padding: 20px 18px; }
.pm-pro .ic { width: 58px; height: 58px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; color: #ff0066; flex: 0 0 58px; }
.pm-pro .t { font-size: 16px; font-weight: 700; }
.pm-pro p { margin: 8px 0; font-size: 13px; color: #666; line-height: 1.6; }
.pm-pro .lnk { color: #ff0066; font-weight: 700; font-size: 14px; }
.pm-pay { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e3e3e3; border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; cursor: pointer; }
.pm-pay.on { border: 2px solid #ff0066; }
.pm-pay .l { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 700; }
.pm-pay .sub { display: block; font-weight: 400; color: #e53935; font-size: 13px; margin-top: 8px; line-height: 1.6; }
.pm-pay .logo { width: 46px; height: 30px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.pm-pay .logo.cib { background: #e8f1fb; color: #0b5cad; border: 1px solid #b9cfe7; }
.pm-pay .logo.cash { background: #2d8a4f; color: #fff; }
.pm-pay .logo.pts { width: 30px; height: 30px; border-radius: 50%; background: #f7a400; color: #fff; }
.pm-pay input { position: absolute; opacity: 0; pointer-events: none; }
.pm-radio { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #b5b5b5; position: relative; flex: 0 0 26px; }
.pm-pay.on .pm-radio { border-color: #ff0066; }
.pm-pay.on .pm-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #ff0066; }
.pm-tip { display: flex; align-items: center; gap: 16px; border: 2px solid #f17ea7; background: #fde4ec; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.pm-tip .ic { width: 50px; height: 50px; border-radius: 10px; background: #fbc7da; color: #ff0066; display: flex; align-items: center; justify-content: center; flex: 0 0 50px; }
.pm-tip .t { font-size: 15px; font-weight: 700; }
.pm-tip .s { font-size: 12px; color: #888; margin-top: 4px; line-height: 1.5; }
.pm-switch { position: relative; width: 66px; height: 40px; flex: 0 0 66px; }
.pm-switch input { opacity: 0; width: 0; height: 0; }
.pm-switch span { position: absolute; inset: 0; border-radius: 22px; background: #eee; border: 2px solid #555; transition: .2s; }
.pm-switch span::before { content: ""; position: absolute; left: 8px; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: #555; transition: .2s; }
.pm-switch input:checked + span { background: #ff0066; border-color: #ff0066; }
.pm-switch input:checked + span::before { transform: translateX(26px); background: #fff; }
.pm-details { margin-top: 24px; }
.pm-details .r { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 6px; font-size: 16px; }
.pm-details .r .v { color: #ff0066; font-weight: 700; }
.pm-details .r.b { font-weight: 700; }
.pm-details .r.g, .pm-details .r.g .v { color: #2e9a3e; }
.pm-empty { text-align: center; padding: 60px 20px; color: #888; font-size: 15px; }
.pm-empty strong { display: block; color: #222; font-size: 18px; margin-bottom: 6px; }
.pm-cats { display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 12px; scrollbar-width: none; }
.pm-cats::-webkit-scrollbar { display: none; }
.pm-cats button { white-space: nowrap; background: #f4f4f4; border-radius: 20px; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.pm-cats button.on { background: #ff0066; color: #fff; }
.pm-h2 { font-size: 18px; font-weight: 700; margin: 8px 18px 12px; }
.pm-carousel { display: flex; gap: 12px; overflow-x: auto; padding: 0 18px 14px; scrollbar-width: none; }
.pm-carousel::-webkit-scrollbar { display: none; }
.pm-banner { flex: 0 0 86%; height: 148px; border-radius: 16px; overflow: hidden; background: #eee; }
.pm-banner img { width: 100%; height: 100%; object-fit: cover; }
.pm-offer { flex: 0 0 168px; background: #fff; border: 1px solid #eee; border-radius: 16px; overflow: hidden; }
.pm-offer .thumb { position: relative; height: 112px; background: #eee; }
.pm-offer .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-offer .tag { position: absolute; top: 8px; left: 8px; background: #ff0066; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 12px; }
.pm-offer .txt { padding: 8px 10px 12px; }
.pm-offer .nm { font-size: 14px; font-weight: 700; }
.pm-offer .ds { font-size: 12px; color: #666; margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-offer .rs { font-size: 12px; color: #888; margin-top: 2px; }
.pm-offer .pr { margin-top: 6px; color: #ff0066; font-weight: 700; font-size: 15px; }

.pm-opt { position: relative; }
.pm-prod .thumb img, .pm-cart-item .thumb img { min-height: 100%; }
