/* Poručivanje pića sa stola (porudzbina.html) i skeniranje QR koda stola (poruci.html) */
.po-body { padding-bottom: 90px; }
.po-hero { background: var(--dark); color: var(--text-light); padding: 28px 0 22px; }
.po-hero .overline { color: var(--gold-light); margin-bottom: 4px; }
.po-hero h1 { font-family: var(--serif); font-size: clamp(28px, 7vw, 44px); margin: 0; }
.po-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.po-call[disabled] { opacity: .7; cursor: default; }
.po-page { padding: 18px 0 40px; }
.po-small { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; }

.po-here { border: 2px solid var(--gold); background: #fff8e8; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.po-here p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }

/* kategorije: traka koja se prevlači */
.po-cats { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; margin: 0 -16px 8px;
  background: var(--cream); scrollbar-width: none; border-bottom: 1px solid var(--cream-2); }
.po-cats::-webkit-scrollbar { display: none; }
.po-cats a { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--cream-2);
  font-size: 13px; font-weight: 600; color: var(--text-dark); text-decoration: none; white-space: nowrap; }
.po-cats a:hover { border-color: var(--gold); }

.po-cat { scroll-margin-top: 64px; margin-top: 18px; }
.po-cat h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; }
.po-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--cream-2); }
.po-item-txt { flex: 1; min-width: 0; }
.po-item-txt strong { font-weight: 600; }
.po-item-txt small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.po-size { color: var(--text-muted); font-size: 13px; }
.po-price { font-weight: 700; white-space: nowrap; }
.po-add { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; border: 0; background: var(--gold); color: var(--dark);
  font-size: 24px; line-height: 1; font-weight: 700; cursor: pointer; }
.po-add:active { transform: scale(.92); }
.po-item.off { opacity: .45; }
.po-na { font-size: 12px; color: var(--text-muted); min-width: 40px; text-align: center; }

/* ture za sto */
.po-rounds { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.po-rounds h2 { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; }
.po-round { border-left: 4px solid var(--gold); padding: 6px 10px; margin: 8px 0; background: var(--cream); border-radius: 0 8px 8px 0; }
.po-round-head { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.po-round-head span:not(.po-badge) { color: var(--text-muted); }
.po-badge { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--dark); }
.po-round.st-progress { border-color: #e8a400; }
.po-round.st-progress .po-badge { background: #e8a400; }
.po-round.st-done { border-color: #12a150; }
.po-round.st-done .po-badge { background: #12a150; color: #fff; }
.po-round.st-cancelled { border-color: #999; opacity: .6; }
.po-round.st-cancelled .po-badge { background: #999; color: #fff; }
.po-round ul { margin: 6px 0 2px; padding-left: 18px; font-size: 14px; }
.po-round li.x { text-decoration: line-through; color: var(--text-muted); }
.po-total { text-align: right; margin: 10px 0 0; }

/* donja traka sa korpom */
.po-cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(21,22,27,.95), rgba(21,22,27,.85)); }
.po-cartbtn { width: 100%; max-width: 560px; margin: 0 auto; display: flex; justify-content: center; font-size: 15px; }
.po-cartbar.bump .po-cartbtn { animation: po-bump .35s ease; }
@keyframes po-bump { 50% { transform: scale(1.04); } }

/* prozori (korpa, izbor ukusa) — odozdo na telefonu */
.po-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.po-sheet[hidden] { display: none; }
.po-sheet-box { position: relative; background: var(--cream); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  border-radius: 16px 16px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .po-sheet { align-items: center; } .po-sheet-box { border-radius: 16px; } }
.po-sheet-box h3 { font-family: var(--serif); font-size: 22px; margin: 0 30px 12px 0; }
.po-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--cream-2); }
.po-line > div:first-child { flex: 1; min-width: 0; }
.po-line small { display: block; color: var(--text-muted); font-size: 12px; }
.po-qty { display: flex; align-items: center; gap: 8px; }
.po-qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--dark); background: transparent; font-size: 18px; line-height: 1; cursor: pointer; }
.po-qty span { min-width: 18px; text-align: center; font-weight: 700; }
.po-send { width: 100%; margin-top: 10px; }
.po-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.po-opts .btn { white-space: normal; padding: 12px 10px; }

/* skeniranje QR koda stola */
.po-scan { max-width: 460px; margin: 0 auto; text-align: center; }
.po-scan #reader { width: 100%; border-radius: 12px; overflow: hidden; margin: 14px 0; background: #000; min-height: 40px; }
