/* iPhone/iPad: bez przybliżania po dwukrotnym puknięciu (pinch-zoom nadal działa) */
body.menu, body.menu * { touch-action: manipulation; }
body.menu { background: var(--bg); padding-bottom: 90px; font-family: var(--font-body, var(--font)); }
.mhdr { background: var(--hdr-bg, var(--surface)); background-image: var(--hdr-pattern, none); color: var(--hdr-text, var(--text)); border-bottom: 1px solid var(--border); position: relative; }
.mhdr::before { content: ""; display: block; height: 6px; background: var(--hdr-top, none); }
.mhdr__name, .cat__title, .item__name, .sh__title { font-family: var(--font-heading, inherit); }
.mhdr .langswitch__btn { background: var(--hdr-switch, rgba(0,0,0,.05)); color: var(--hdr-switch-ink, var(--muted)); }
.mhdr .langswitch[open] .langswitch__btn { background: var(--hdr-switch-active, var(--surface)); color: var(--hdr-text, var(--text)); }
.mhdr__inner { max-width: 760px; margin: 0 auto; padding: 18px 16px 14px; display: flex; align-items: center; gap: 14px; }
.mhdr__logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface); }
.mhdr__logo--ph { display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 28px; font-weight: 800; }
.mhdr__text { flex: 1; min-width: 0; }
/* Rodzaj lokalu + nazwa w jednym wierszu (łamie się tylko jeśli naprawdę brakuje miejsca) */
.mhdr__title { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; row-gap: 0; margin-bottom: 2px; }
.mhdr__name { font-size: 21px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.mhdr__kind { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--hdr-muted, var(--muted)); font-weight: 700; }
/* Adres + telefon w jednym wierszu */
.mhdr__contact { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; row-gap: 0; font-size: 13.5px; }
.mhdr__addr { color: var(--hdr-muted, var(--muted)); }
.mhdr__phone { color: var(--hdr-muted, var(--accent)); }
.mhdr__phone::before { content: "· "; color: var(--hdr-muted, var(--muted)); }
.season { font-size: 13.5px; margin-top: 4px; color: var(--hdr-muted, var(--muted)); }
.season strong { color: var(--hdr-text, var(--text)); }
.hours { font-size: 13.5px; margin-top: 4px; }
.hours__sum { cursor: pointer; list-style: none; color: var(--hdr-muted, var(--muted)); }
.hours__sum::-webkit-details-marker { display: none; }
.hours__sum::after { content: " ▾"; font-size: 11px; }
.hours[open] .hours__sum::after { content: " ▴"; }
.hours__badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #fee2e2; color: #991b1b; }
.hours__badge.is-open { background: #dcfce7; color: #166534; }
.hours__list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; max-width: 320px; }
.hours__list li { display: flex; justify-content: space-between; gap: 12px; color: var(--hdr-muted, var(--muted)); }
.hours__list li.is-today { font-weight: 700; color: var(--hdr-text, var(--text)); }
.mhdr .langswitch { flex: none; align-self: flex-start; }
@media (max-width: 560px) {
  .mhdr__inner { flex-wrap: wrap; }
  .mhdr__side { order: 3; width: 100%; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 4px; }
  /* w tym układzie przełącznik jest po lewej – panel musi się rozwijać w prawo, inaczej wyjedzie poza ekran */
  .mhdr__side .langswitch__panel { right: auto; left: 0; }
}
.mhdr__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; align-self: flex-start; }
.mhdr__owner { font-size: 12px; font-weight: 700; background: var(--hdr-text, var(--text)); color: var(--hdr-bg, var(--surface)); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.mhdr__owner:hover { text-decoration: none; opacity: .85; }

.catnav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, white); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.catnav__scroll { max-width: 760px; margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.catnav__scroll::-webkit-scrollbar { display: none; }
.catnav__chip { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; scroll-snap-align: start; -webkit-tap-highlight-color: transparent; }
.catnav__chip:hover { text-decoration: none; }
.catnav__chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.menu__main { padding-top: 6px; }
.cat { padding-top: 18px; scroll-margin-top: 58px; }
.cat__title { font-size: 19px; font-weight: 800; margin: 0 0 4px; padding-bottom: 6px; }
.items { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 14px; }
/* Kolumny: zdjęcie | treść | cena | (+). Cena zawsze w tej samej kolumnie, wyrównana do prawej. */
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.item--noimg { grid-template-columns: minmax(0, 1fr) auto; }
.items--order .item { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.items--order .item--noimg { grid-template-columns: minmax(0, 1fr) auto auto; }
.item:last-child { border-bottom: 0; }
.item__img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--surface-2, #f3f1ee); cursor: zoom-in; grid-row: span 1; }
.item__body { min-width: 0; display: grid; gap: 3px; }
.item__name { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.item__desc { font-size: 14px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.item__info { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.item__more { justify-self: start; margin-top: 2px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2, #f3f1ee); color: var(--accent); font-size: 12.5px; font-weight: 600; cursor: pointer; line-height: 1.3; }
.item__more::after { content: ' ▾'; font-size: 10px; }
.item__more.is-open::after { content: ' ▴'; }
.item__about { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.5; color: var(--text); background: var(--surface-2, #f3f1ee); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 8px 12px; margin-top: 4px; }
.item__price { font-size: 15.5px; font-weight: 800; color: var(--price, var(--accent)); white-space: nowrap; text-align: right; min-width: 4.5em; line-height: 1.3; padding-top: 1px; }
.item__add { align-self: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 24px; line-height: 1; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 60%, transparent); transition: transform .1s; }
.item__add:active { transform: scale(.92); }
.item.in-cart .item__add { background: var(--ok); }
.mfooter { text-align: center; font-size: 12.5px; padding: 30px 16px 20px; }
.mfooter a { color: var(--muted); }

/* Pasek zamówienia + arkusz */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.cartbar__btn { width: 100%; max-width: 728px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, black); }
.cartbar__count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: rgba(255,255,255,.25); }
.cartbar__label { flex: 1; text-align: left; }
.cartbar__btn.has-new .cartbar__count { background: #fff; color: var(--accent); }

.sh__title { font-size: 20px; font-weight: 800; margin: 4px 0 12px; }
.sh__table { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface-2, #f3f1ee); border-radius: 10px; margin-bottom: 14px; font-size: 14.5px; }
.sh__table strong { font-size: 16px; }
.sh__pin { margin-left: auto; font-weight: 700; letter-spacing: .08em; }
.sh__section { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; }
.line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.line__name { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; }
.line__note { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.line__price { font-weight: 700; white-space: nowrap; }
.line__qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.line__qty button { width: 32px; height: 32px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--text); }
.line__qty span { min-width: 22px; text-align: center; font-weight: 700; }
.line--sent .line__name { font-weight: 500; }
.line--removed .line__name { text-decoration: line-through; color: var(--muted); }
.line--removed .line__price { text-decoration: line-through; color: var(--muted); }
.line__by { font-size: 11px; color: var(--muted); }
.sh__total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; padding: 12px 0 4px; }
.sh__actions { display: grid; gap: 8px; margin-top: 12px; }
.sh__ok { text-align: center; padding: 24px 10px; font-size: 18px; font-weight: 700; color: var(--ok); }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.tables__btn { padding: 12px 6px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; display: grid; gap: 2px; }
.tables__btn small { font-size: 11px; font-weight: 600; color: var(--ok); }
.tables__btn:disabled { opacity: .5; cursor: not-allowed; }
.tables__btn:disabled small { color: var(--danger); }
.tables__btn.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white); }
.note { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; margin-top: 6px; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; border-radius: 12px; }
