/* ================= Do'kon dasturi sahnasi (1000 × 653, masshtablanadi) =================
   Asos: haqiqiy oziq-ovqat dasturining tasdiqlangan maketi (buyuk-market/docs/maket/v3). Brend o'zgaruvchilari:
   --b asosiy rang, --b2 to'q, --bs varaq tusi, --bt rang ustidagi yozuv. */
.pg-frame { width: 1000px; height: 653px; font-family: "Inter", system-ui, sans-serif; color: #19231d; background: #dedad7; display: flex; flex-direction: column; }
.pg-tabbar { height: 28px; flex: none; display: flex; align-items: flex-end; padding: 0 10px; background: #dedad7; }
.pg-tab { height: 23px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #fff; border-radius: 8px 8px 0 0; font-size: 10.5px; font-weight: 500; max-width: 300px; }
.pg-tab .fav { width: 13px; height: 13px; border-radius: 3px; overflow: hidden; display: grid; place-items: center; font: 800 8px/1 "Inter Tight", sans-serif; flex: none; }
.pg-tab .fav img { width: 100%; height: 100%; object-fit: contain; }
.pg-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg { flex: 1; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--b), var(--b2)); }

/* kassa */
.pg-notch { position: absolute; left: 8px; top: 8px; width: 246px; height: 60px; background: var(--bs); border-radius: 20px 20px 0 0; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.pg-notch::after { content: ""; position: absolute; right: -20px; bottom: 16px; width: 20px; height: 20px; background: radial-gradient(circle at 100% 0, transparent 20px, var(--bs) 20.5px); }
.pg-logo { width: 34px; height: 34px; border-radius: 9px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; font: 800 17px/1 "Inter Tight", sans-serif; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.pg-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.pg-notch b { display: block; font: 800 17px/1 "Inter Tight", sans-serif; }
.pg-notch small { display: block; font-size: 8.5px; color: #6c7570; margin-top: 3px; white-space: nowrap; }
.pg-nav { position: absolute; left: 280px; right: 14px; top: 12px; height: 30px; display: flex; gap: 6px; align-items: center; }
.pg-pill { height: 30px; padding: 0 12px; border-radius: 15px; background: #fff; display: flex; align-items: center; font-size: 10px; font-weight: 600; white-space: nowrap; }
.pg-pill.on { background: #16201a; color: #fff; }
.pg-round { width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.pg-nav .gap { flex: 1; }
.pg-sheet { position: absolute; left: 8px; right: 8px; top: 52px; bottom: 8px; background: var(--bs); border-radius: 0 20px 20px 20px; padding: 26px 10px 10px; display: grid; grid-template-columns: 1fr 268px; gap: 10px; }
.pg-left { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.pg-subs, .pg-cats { display: flex; gap: 5px; }
.pg-sub, .pg-cat { height: 24px; padding: 0 11px; border-radius: 12px; background: #fff; font-size: 9.5px; font-weight: 600; display: flex; align-items: center; }
.pg-sub.on, .pg-cat.on { background: #16201a; color: #fff; }
.pg-search { height: 34px; border-radius: 12px; background: #fff; display: flex; align-items: center; padding: 0 12px; font-size: 10px; color: #7b8580; gap: 8px; }
.pg-search i { width: 14px; height: 12px; background: repeating-linear-gradient(90deg, var(--b) 0 1.5px, transparent 1.5px 3px); }
.pg-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 7px; min-height: 0; }
.pg-card { background: #fff; border-radius: 12px; padding: 6px; display: flex; flex-direction: column; position: relative; border: 1.5px solid transparent; }
.pg-card.sel { border-color: var(--b); }
.pg-card .ph { height: 36px; border-radius: 8px; }
.pg-card .nm { font-size: 9.5px; font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-card .q { font-size: 7.5px; color: #7b8580; margin-top: 1px; }
.pg-card .pr { margin-top: auto; font: 800 12px/1 "Inter Tight", sans-serif; }
.pg-card .pr small { font: 500 7.5px/1 "Inter", sans-serif; color: #7b8580; margin-left: 3px; }
.pg-card .pl { position: absolute; right: 6px; bottom: 6px; width: 18px; height: 18px; border-radius: 50%; background: #f0f2f0; display: grid; place-items: center; font-size: 12px; line-height: 1; color: #16201a; }
.pg-card.sel .pl { background: var(--b); color: var(--bt); }
.pg-card .bdg { position: absolute; right: 10px; top: 10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--b); color: var(--bt); font-size: 8.5px; font-weight: 700; display: grid; place-items: center; }
.pg-cart { background: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; min-height: 0; }
.pg-cart h5 { font: 800 14px/1 "Inter Tight", sans-serif; display: flex; }
.pg-cart h5 span { margin-left: auto; font: 500 9px/1.4 "Inter", sans-serif; color: #7b8580; }
.pg-line { display: flex; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #edf0ed; font-size: 10px; font-weight: 600; }
.pg-line small { display: block; font-size: 8px; color: #7b8580; font-weight: 500; margin-top: 2px; }
.pg-line b { margin-left: auto; font-weight: 700; }
.pg-total { margin-top: auto; display: flex; align-items: baseline; padding-top: 10px; font-size: 11px; font-weight: 600; }
.pg-total b { margin-left: auto; font: 800 22px/1 "Inter Tight", sans-serif; }
.pg-total b small { font: 500 9px/1 "Inter", sans-serif; color: #7b8580; margin-left: 4px; }
.pg-pays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
.pg-pay { height: 36px; border-radius: 9px; border: 1px solid #e2e7e2; font-size: 8.5px; font-weight: 600; display: grid; place-items: center; }
.pg-pay.on { background: var(--b); color: var(--bt); border-color: var(--b); }
.pg-go { height: 40px; border-radius: 11px; background: var(--b); color: var(--bt); margin-top: 8px; display: grid; place-items: center; font: 800 13px/1 "Inter Tight", sans-serif; }

/* kirish ekrani */
.pg-login { position: absolute; inset: 0; display: grid; place-items: center; }
.pg-lcard { width: 300px; background: #fff; border-radius: 22px; padding: 26px 24px 22px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .22); }
.pg-lcard .pg-logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto; font-size: 30px; box-shadow: inset 0 0 0 1px #e7ebe7; }
.pg-lcard h4 { font: 800 20px/1.15 "Inter Tight", sans-serif; margin-top: 12px; overflow-wrap: anywhere; }
.pg-lcard p { font-size: 10px; color: #7b8580; margin-top: 5px; }
.pg-dots { display: flex; gap: 9px; justify-content: center; margin-top: 14px; }
.pg-dots i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #c9d0ca; }
.pg-dots i.f { background: var(--b); box-shadow: none; }
.pg-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 14px; }
.pg-pad span { height: 38px; border-radius: 11px; background: #f3f5f3; display: grid; place-items: center; font: 700 15px/1 "Inter Tight", sans-serif; }

/* to'xtatilgan */
.pg-stop { position: absolute; inset: 0; display: grid; place-items: center; }
.pg-stop div { width: 380px; background: #fff; border-radius: 22px; padding: 30px; text-align: center; }
.pg-stop h4 { font: 800 20px/1.2 "Inter Tight", sans-serif; }
.pg-stop p { font-size: 12px; color: #6c7570; margin-top: 8px; }

/* chek */
.pg-chk { position: absolute; inset: 0; display: grid; place-items: center; }
.pg-paper { width: 250px; background: #fff; padding: 20px 18px 16px; font-size: 9.5px; color: #111; box-shadow: 0 16px 40px rgba(0, 0, 0, .28); }
.pg-paper .hd { text-align: center; }
.pg-paper .hd img { max-width: 120px; max-height: 44px; object-fit: contain; filter: grayscale(1) contrast(1.25); display: block; margin: 0 auto 6px; }
.pg-paper .hd b { font: 800 15px/1.15 "Inter Tight", sans-serif; display: block; overflow-wrap: anywhere; }
.pg-paper .hd small { display: block; color: #555; font-size: 8px; margin-top: 4px; }
.pg-paper hr { border: 0; border-top: 1px dashed #333; margin: 9px 0; }
.pg-paper .r { display: flex; padding: 2.5px 0; }
.pg-paper .r b { margin-left: auto; }
.pg-paper .r small { color: #555; font-size: 8px; display: block; }
.pg-paper .tot { background: #111; color: #fff; border-radius: 8px; padding: 9px 11px; display: flex; font: 800 13px/1 "Inter Tight", sans-serif; margin: 8px -6px; }
.pg-paper .tot b { margin-left: auto; }
.pg-paper .ft { text-align: center; margin-top: 10px; font-weight: 700; font-size: 10.5px; }
.pg-paper .ft small { display: block; font-weight: 500; color: #555; font-size: 8px; margin-top: 4px; }

/* --- Jonli rejim: prototipda Kassa bosiladi (sahna tugmalari umumiy tugma uslubidan mustaqil) --- */
:where(.pg button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.pg-card.live { cursor: pointer; transition: transform .1s, box-shadow .12s; }
.pg-card.live:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transform: translateY(-1px); }
.pg-card.live:active { transform: scale(.97); }
.pg-lines { flex: 1; min-height: 0; overflow-y: auto; margin-top: 6px; scrollbar-width: thin; }
.pg-none { font-size: 9.5px; color: #7b8580; text-align: center; padding: 34px 8px 0; line-height: 1.5; }
.pg-line { align-items: center; gap: 6px; }
.pg-line > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-line b { white-space: nowrap; }
.pg-line .mn { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #f0f2f0; color: #16201a; font-size: 13px; line-height: 1; display: grid; place-items: center; }
.pg-line .mn:hover { background: #e2e7e2; }
.pg-total { margin-top: 0; }
button.pg-pay { background: #fff; color: #16201a; }
button.pg-pay:hover { border-color: var(--b); }
button.pg-pay.on { background: var(--b); color: var(--bt); border-color: var(--b); }
button.pg-go { width: 100%; background: var(--b); color: var(--bt); transition: filter .12s, transform .08s; }
button.pg-go:hover { filter: brightness(1.06); }
button.pg-go:active { transform: scale(.985); }
.pg-go.off { opacity: .45; cursor: default; filter: none; }
.pg-pad button.k { height: 38px; border-radius: 11px; background: #f3f5f3; display: grid; place-items: center; font: 700 15px/1 "Inter Tight", sans-serif; color: #16201a; }
.pg-pad button.k:hover { background: #e7ebe7; }
.pg-pad button.k:active { background: var(--b); color: var(--bt); }
.pg-chk { align-content: center; gap: 14px; }
.pg-again { height: 36px; padding: 0 18px; border-radius: 10px; background: #fff; color: #111; font: 800 12px/1 "Inter Tight", sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.pg-again:hover { background: #f3f5f3; }
.pg :where(button):focus-visible { outline: 2px solid #111; outline-offset: 2px; }
