/* Dovozio – zákaznická část (doplňuje panel.css) */
body.shop { background: #F3F8F7; }
.shop .topbar__inner { max-width: 960px; }
.shop .topbar a { color: #fff; text-decoration: none; }
.shop .wrap { max-width: 960px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; }
.cart-btn .count { background: #fff; color: var(--brand-strong); }

.page-head { padding: 24px 0 8px; display: flex; flex-direction: column; gap: 6px; }
.page-head h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 900; letter-spacing: -.02em; }
.page-head p { margin: 0; color: var(--muted); }

.r-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.r-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.r-card:hover { border-color: var(--brand); }
.r-card h2 { font-size: 1.2rem; }
.r-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.r-card.is-closed { opacity: .7; }

.menu-section { display: flex; flex-direction: column; gap: 10px; }
.menu-section h2 { font-size: 1.3rem; margin-top: 18px; }
.dish { display: flex; gap: 12px; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.dish__name { font-weight: 800; }
.dish__desc { color: var(--muted); font-size: .92rem; margin: 2px 0 0; }
.dish__meta { font-size: .8rem; color: var(--muted); }
.dish__price { font-weight: 800; white-space: nowrap; }
.dish.is-off { opacity: .55; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper .btn { min-height: 44px; min-width: 44px; padding: 0; font-size: 1.2rem; }
.stepper output { min-width: 1.6em; text-align: center; font-weight: 800; }

.cart-bar { position: sticky; bottom: 0; z-index: 15; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #F3F8F7 30%); }
.cart-bar .btn { width: 100%; max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 32px; }
@media (min-width: 860px) { .checkout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } .summary { position: sticky; top: 84px; } }
.checkout fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checkout legend { font-weight: 900; font-size: 1.2rem; margin-bottom: 8px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line input { min-height: 40px; font-size: .9rem; grid-column: 1 / -1; }
/* telefon: název jídla přes celou šířku, pod ním počet a cena (jinak se název smáčkne do úzkého sloupce) */
@media (max-width: 520px) {
  .line { grid-template-columns: minmax(0, 1fr) auto; }
  .line > span:first-child { grid-column: 1 / -1; }
  .line > strong { text-align: right; }
}
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.sum-row.total { font-weight: 900; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.radio { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.radio input { width: 22px; min-height: 22px; }
.radio.is-disabled { opacity: .55; }
.found { background: var(--ok-bg); color: var(--ok); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.error-box { background: var(--danger-bg); color: var(--red-dark); border-radius: 12px; padding: 10px 12px; font-weight: 600; }

.track-hero { background: var(--brand-strong); color: #fff; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.track-hero h1 { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 900; }
.track-hero .eta { font-size: 1.1rem; }
.track-hero .eta strong { font-size: 2rem; display: block; }
.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps-list li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.steps-list li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.steps-list li.is-done { color: var(--ink); font-weight: 700; }
.steps-list li.is-done::before { background: var(--ok); border-color: var(--ok); }
.steps-list li.is-current::before { background: var(--brand-strong); border-color: var(--brand-strong); }
.dish__img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }
@media (min-width: 600px) { .dish__img { width: 104px; height: 104px; } }
.shop .incoming { max-height: calc(100vh - 32px); overflow-y: auto; }
.r-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.r-logo--big { width: 72px; height: 72px; border-radius: 16px; }
.r-card__cover { width: calc(100% + 36px); margin: -18px -18px 4px; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.r-cover { width: 100%; aspect-ratio: 3 / 1; max-height: 280px; object-fit: cover; border-radius: 22px; display: block; margin-top: 16px; }
@media (max-width: 599px) {
  .dish:has(.dish__img) { flex-wrap: wrap; }
  .dish:has(.dish__img) .dish__img { width: 100%; height: 170px; }
}

/* patička s odkazy na podmínky */
.shop-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 32px 16px 40px; color: var(--muted, #6b6b6b); font-size: .9rem; }
.shop-foot a { color: inherit; }
.shop-foot__note { flex-basis: 100%; margin: 4px 0 0; font-size: .8rem; line-height: 1.5; }
.verified { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--brand-soft); color: var(--brand-deep); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
#account .row input { flex: 1; min-width: 0; }

/* uložené adresy a poloha v pokladně */
.addr-tools { flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.addr-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* moje objednávky */
.order-card__head { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }

/* mobilní aplikace: spodní lišta, bezpečné okraje (výřez displeje) */
body.app { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
body.app .topbar { padding-top: env(safe-area-inset-top); }
body.app .cart-bar { bottom: calc(64px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; min-height: 56px;
  color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.tab.is-active { color: var(--brand); }
.tab__icon { position: relative; font-size: 1.35rem; line-height: 1; filter: grayscale(1); opacity: .7; }
.tab.is-active .tab__icon { filter: none; opacity: 1; }
.tab__badge { position: absolute; top: -6px; right: -12px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--brand-strong); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; font-style: normal; }

/* věrnostní program */
.loyalty-box { background: var(--brand-soft); color: var(--brand-deep); border-radius: 12px; padding: 12px; gap: 6px; }
.loyalty-box .radio { color: var(--ink); }
.sum-row.discount { color: var(--brand-strong); font-weight: 700; }
.pill--bronze { background: #F1E3D3; color: #7A4A1E; }
.pill--silver { background: #E6E9EC; color: #3F4A55; }
.pill--gold { background: #F6E7B0; color: #6B5300; }
.loyalty-card { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; border: 0; }
.loyalty-card .hint { color: rgba(255, 255, 255, .85); }
.points-big { font-size: 2.6rem; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; }
.progress { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.progress i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.ref-code { font-size: 1.6rem; font-weight: 900; letter-spacing: .2em; padding: 10px 14px; border: 2px dashed var(--brand); border-radius: 12px; align-self: flex-start; color: var(--brand-strong); }
.rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.plus { color: var(--brand-strong); }
.minus { color: var(--muted); }
.wrap > .card + .card, .wrap > .loyalty-box + .card { margin-top: 14px; }

/* našeptávač adres */
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); max-height: 300px; overflow-y: auto; }
.suggest li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; padding: 10px 12px 10px 44px; border-radius: 8px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Cpath fill='%23fff' d='M0 0h6v2H0z'/%3E%3Cpath fill='%23d7141a' d='M0 2h6v2H0z'/%3E%3Cpath fill='%2311457e' d='M0 0l3 2-3 2z'/%3E%3C/svg%3E") 12px 50% / 21px 14px no-repeat; }
.suggest li:hover, .suggest li.is-active { background-color: var(--brand-soft); }
.suggest .hint { font-size: .85rem; }

/* ---------- úvodní stránka: adresa, dlaždice, posuvný panel, objednat znovu, plovoucí hledání ---------- */
.home-head { background: var(--bg, #F2F6F5); padding: calc(10px + env(safe-area-inset-top)) 16px 6px; }
.home-top { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.home-round { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.home-round--sm { width: 38px; height: 38px; }
.home-addr { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.home-addr > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ico { display: inline-flex; }
.home { display: flex; flex-direction: column; gap: 18px; max-width: 1100px; }
.home-tiles { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.home-tiles::-webkit-scrollbar, .home-again__row::-webkit-scrollbar, .home-slides::-webkit-scrollbar { display: none; }
.home-tile { flex: 0 0 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: inherit; }
.home-tile__img { width: 92px; height: 92px; border-radius: 20px; background: var(--brand-soft); display: grid; place-items: center; font-size: 2.6rem; border: 2px solid transparent; }
.home-tile:nth-child(3n+2) .home-tile__img { background: #FBE6D8; }
.home-tile:nth-child(3n) .home-tile__img { background: #FFF1D6; }
.home-tile.is-active .home-tile__img { border-color: var(--brand); }
.home-tile__label { font-weight: 700; font-size: .92rem; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.home-slider { display: flex; flex-direction: column; gap: 10px; }
.home-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; scrollbar-width: none; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.home-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 9; max-height: 380px; display: block; color: #fff; text-decoration: none; background: var(--brand-deep); }
.home-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-slide__text { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.home-slide__text small { font-weight: 700; opacity: .9; }
.home-slide__text strong { font-size: 1.6rem; font-weight: 900; line-height: 1.15; }
.home-slide__text span { opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-slider__bar { display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; min-height: 38px; }
.home-slider__bar .home-round { position: absolute; right: 0; }
.home-dots { display: flex; gap: 8px; }
.home-dot { width: 10px; height: 10px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: #C9D6D3; cursor: pointer; }
.home-dot.is-on { background: var(--ink); }
.home-h { margin: 0; font-size: 1.6rem; font-weight: 900; }
.home-h-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.home-more { background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; text-decoration: none; padding: 8px 16px; border-radius: 99px; white-space: nowrap; }
.home-again__row { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.home-again__card { flex: 0 0 72%; max-width: 320px; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--ink); text-decoration: none; padding-bottom: 12px; }
.home-again__card img, .home-again__ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--brand-soft); display: grid; place-items: center; font-size: 2.4rem; }
.home-again__card strong { padding: 0 14px; }
.home-fab { position: fixed; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; pointer-events: none; }
body.app .home-fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
.home-fab > * { pointer-events: auto; }
.home-fab__search { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 99px; border: 0; background: var(--brand-deep); color: #fff; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.home-fab__cart { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-deep); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.home-fab__cart .tab__badge { position: absolute; top: -4px; right: -4px; background: var(--red, #B91C1C); }
.home-search__input { flex: 1; max-width: 420px; min-height: 52px; border-radius: 99px; border: 2px solid var(--brand-deep); padding: 0 18px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
body.has-home-fab main.home { padding-bottom: 96px; }

.suggest li + li { border-top: 1px solid var(--line); border-radius: 0; }
.suggest li > :last-child:not(:first-child) { text-align: right; }

/* ---------- Zákaznická část: nový vzhled (světlé pozadí, zaoblené karty, plovoucí lišta, tmavý režim) ---------- */
body.shop { --bg: #F6F4EF; --line: #E8E4DB; --card: #fff; --radius: 22px; background: var(--bg); }
.shop .topbar { background: var(--bg); color: var(--ink); position: sticky; }
.shop .topbar__inner { padding: 12px 16px; gap: 10px 12px; }
.shop .topbar a { color: var(--ink); }
.shop .topbar .brand { color: var(--brand); --logo-cut: #fff; --logo-me: #C9784A; }
.shop .topbar .btn { background: var(--card); color: var(--ink); border-color: var(--line); border-radius: 999px; }
.shop .topbar .cart-btn { background: linear-gradient(135deg, #0D9488, #0F766E); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(15,118,110,.3); }
.shop .topbar .cart-btn .count { background: #fff; color: var(--brand-strong); }
.shop .btn { border-radius: 14px; }
.shop .btn--big { border-radius: 18px; }
.shop .btn--primary, .shop .btn--red, .shop .btn--ok { background: linear-gradient(135deg, #0D9488, #0F766E); border-color: transparent; color: #fff; }
.shop .btn--primary.btn--big, .shop .btn--red.btn--big, .shop .btn--ok.btn--big, .shop .cart-bar .btn { box-shadow: 0 8px 18px rgba(15,118,110,.32); }
.shop input, .shop select, .shop textarea { border-radius: 14px; }
.shop .card { border-radius: 22px; }
.shop .page-head h1 { letter-spacing: -.03em; }
.shop .r-card { border-radius: 24px; padding: 18px; transition: transform .12s ease, box-shadow .12s ease; }
.shop .r-card:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14,31,29,.1); }
.shop .r-card__cover { border-radius: 24px 24px 0 0; }
.shop .dish { border-radius: 20px; padding: 14px; }
.shop .dish__img { border-radius: 16px; }
.shop .dish__price { color: var(--brand-strong); font-weight: 900; }
.shop .menu-section h2 { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 22px; }
.shop .cart-bar { background: linear-gradient(transparent, var(--bg) 30%); }
.shop .cart-bar .btn { border-radius: 20px; min-height: 60px; }
.shop .radio { border-radius: 16px; background: var(--card); }
.shop .found, .shop .error-box, .shop .verified, .shop .loyalty-box { border-radius: 16px; }
.shop .track-hero { border-radius: 28px; background: linear-gradient(145deg, #0F766E, #115E59); box-shadow: 0 12px 26px rgba(15,118,110,.3); }
.shop .r-cover { border-radius: 26px; }
.shop .r-logo { background: var(--card); }
.shop .home-round, .shop .home-again__card, .shop .home-search__input { background: var(--card); }
.shop .home-tile__img { border-radius: 24px; }
.shop .home-slides { border-radius: 26px; }
.shop .home-again__card { border-radius: 22px; }
.shop .home-h { letter-spacing: -.02em; }
.shop .home-fab__search, .shop .home-fab__cart { background: #0E1F1D; }
.shop .suggest { border-radius: 16px; }
.shop .empty { border-radius: 22px; border: 1.5px dashed #D5D0C4; }
@media (prefers-reduced-motion: reduce) { .shop .r-card { transition: none; } .shop .r-card:hover { transform: none; } }

/* aplikace: plovoucí spodní lišta místo pruhu přes celou šířku */
body.app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.shop .tabbar { left: 50%; right: auto; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); width: min(520px, calc(100% - 24px)); height: 66px; padding: 0 6px;
  border: 0; border-radius: 26px; background: rgba(14,31,29,.95); box-shadow: 0 14px 28px rgba(0,0,0,.3); align-items: center; }
.shop .tab { color: #9DB1AE; font-size: .68rem; font-weight: 700; min-height: 0; padding: 0; justify-content: center; height: 100%; }
.shop .tab.is-active { color: #fff; }
.shop .tab__icon { filter: none; opacity: 1; font-size: 1rem; }
.tab__svg { display: inline-grid; }
.tab__svg svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop .tab__badge { background: #EF4444; top: -7px; right: -13px; }
body.app .cart-bar { bottom: calc(86px + env(safe-area-inset-bottom)); }
body.app .home-fab { bottom: calc(92px + env(safe-area-inset-bottom)); }

/* tmavý režim (třída na <html>, nastavuje shop.js) */
.rx-dark body.shop { --bg: #0C1514; --card: #15211F; --line: #263432; --ink: #F2F5F4; --muted: #93A8A5; color: var(--ink); }
.rx-dark .shop .topbar .brand { color: #5EEAD4; --logo-cut: #0C1514; }
.rx-dark .shop .dish__price, .rx-dark .shop .sum-row.discount, .rx-dark .shop .plus, .rx-dark .shop .ref-code { color: #5EEAD4; }
.rx-dark .shop .ref-code { border-color: #2F8F85; }
.rx-dark .shop .verified, .rx-dark .shop .loyalty-box { color: #B7EDE5; }
.rx-dark .shop .home-tile:nth-child(3n+2) .home-tile__img { background: #3B2416; }
.rx-dark .shop .home-tile:nth-child(3n) .home-tile__img { background: #3A2E0D; }
.rx-dark .shop .home-dot { background: #33443F; }
.rx-dark .shop .home-dot.is-on { background: #F2F5F4; }
.rx-dark .shop .home-more { color: #B7EDE5; }
.rx-dark .shop .home-fab__search, .rx-dark .shop .home-fab__cart { background: #F2F5F4; color: #0C1514; }
.rx-dark .shop .home-search__input { border-color: #5EEAD4; }
.rx-dark .shop .steps-list li.is-done { color: var(--ink); }
.rx-dark .shop .tabbar { background: rgba(29,43,41,.97); border: 1px solid #2E3F3D; }
.rx-dark .shop .empty { border-color: #2C3B39; }
.rx-dark .shop .pill--bronze { background: #3B2A18; color: #E7B98A; }
.rx-dark .shop .pill--silver { background: #263038; color: #C9D3DC; }
.rx-dark .shop .pill--gold { background: #3A300B; color: #F3D46B; }
.rx-dark .shop-foot { color: var(--muted); }
.shop .cart-bar .btn { white-space: nowrap; padding: 0 18px; font-size: clamp(.88rem, 3.9vw, 1.05rem); gap: 10px; }
body.app #toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* Účtenka za dopravné u doručené objednávky */
dialog.receipt { border: 0; border-radius: 20px; padding: 18px; max-width: min(92vw, 460px); width: 100%; background: var(--card, #fff); color: inherit; }
dialog.receipt::backdrop { background: rgba(10, 20, 18, .55); }
.receipt__text { margin: 0 0 12px; font: 500 .84rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.receipt .row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* --- mapa rozvozu restaurace --- */
.zmap-link { background: none; border: 0; padding: 0; margin: 4px 0 0; font: inherit; font-weight: 800; color: #0B635C; text-decoration: underline; cursor: pointer; text-align: left; }
dialog.zmap { border: 0; border-radius: 20px; padding: 14px; width: min(94vw, 760px); max-width: none; background: var(--card, #fff); color: inherit; }
dialog.zmap::backdrop { background: rgba(10, 20, 18, .55); }
.zmap__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.zmap__map { height: min(58vh, 460px); border-radius: 14px; overflow: hidden; background: #e8ece9; }
.zmap__legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.zmap__legend li { display: flex; gap: 8px; align-items: baseline; }
.zmap__legend i { flex: none; width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.zmap .hint { margin: 8px 0 0; font-size: .8rem; }

/* ================= nový vzhled zákaznické aplikace ================= */
/* spodní lišta na webu jen na telefonu */
.tabbar--web { display: none; }
@media (max-width: 759px) {
  .tabbar--web { display: grid; }
  body.shop:not(.app) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.shop:not(.app) .shop-foot { padding-bottom: 8px; }
}
/* plovoucí pruh košíku */
.n-cart { position: fixed; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 28; }
.n-cart[hidden] { display: none; }
body.app .n-cart { bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (max-width: 759px) { body.shop:not(.app) .n-cart { bottom: calc(92px + env(safe-area-inset-bottom)); } }
.n-cart__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px 0 12px; border-radius: 18px; background: var(--brand); color: #fff;
  font-weight: 800; text-decoration: none; box-shadow: 0 12px 24px rgba(15,118,110,.38); font-variant-numeric: tabular-nums; }
.n-cart__l { display: flex; align-items: center; gap: 10px; }
.n-cart__l b { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 10px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 900; }
.n-cart__btn:focus-visible { outline: 3px solid #9AD4CB; outline-offset: 3px; }
body.has-cart main { padding-bottom: 84px; }

/* úvod: adresa, hledání */
.home-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 4px; }
.home-head > * { width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; }
.n-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.n-addr { min-width: 0; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.n-addr small { font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.n-addr strong { display: flex; align-items: center; gap: 4px; font-size: 1.1rem; font-weight: 800; min-width: 0; }
.n-addr strong > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; text-decoration: none; }
.n-search { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.n-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.18); }
.n-search__in { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; color: var(--ink); min-height: 46px; padding: 0; }
.shop .home-tile { flex-basis: 76px; }
.shop .home-tile__img { width: 72px; height: 72px; font-size: 2.1rem; border-radius: 24px; }
.shop .home-tile.is-active .home-tile__img { border-color: transparent; outline: 2.5px solid var(--brand); outline-offset: 2px; }
.shop .home-tile__label { font-size: .8rem; }

/* karta restaurace */
.n-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.n-rc { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.n-rc:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(14,31,29,.1); }
.n-rc:focus-visible { outline: 3px solid #9AD4CB; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .n-rc { transition: none; } .n-rc:hover { transform: none; } }
.n-rc__im { position: relative; height: 150px; background: var(--brand-soft); }
.n-rc__im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.n-rc__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.4rem; }
.n-rc.is-closed .n-rc__im img { filter: grayscale(.7) brightness(.85); }
.n-tag { position: absolute; left: 12px; top: 12px; background: #fff; color: #0E1F1D; border-radius: 999px; padding: 5px 11px; font-size: .78rem; font-weight: 800; }
.n-tag--ok { background: #15803D; color: #fff; }
.n-eta { position: absolute; right: 12px; bottom: -14px; background: var(--card); color: var(--ink); border-radius: 14px; padding: 7px 11px; font-weight: 900; font-size: .9rem; line-height: 1.05; text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,.16); font-variant-numeric: tabular-nums; }
.n-eta small { display: block; font-size: .64rem; font-weight: 700; color: var(--muted); }
.n-rc__bd { padding: 14px 14px 15px; }
.n-rc__t { display: flex; align-items: center; gap: 10px; padding-right: 74px; }
.n-rc__t strong { font-size: 1.08rem; font-weight: 800; line-height: 1.2; }
.n-rc__logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--line); background: #fff; }
.n-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin-top: 6px; color: var(--muted); font-size: .86rem; }
.n-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }
.n-star { color: #A8500A; font-weight: 800; }
.n-new { background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; font-size: .72rem; border-radius: 999px; padding: 2px 8px; }
.n-open { color: #15803D; font-weight: 700; }
.n-closed { color: var(--red); font-weight: 700; }

/* detail restaurace */
.n-hero { position: relative; height: 220px; background: linear-gradient(135deg, #0F766E, #0B4F4A); overflow: hidden; }
.n-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.n-hero.is-empty { height: 120px; }
@media (min-width: 760px) { .n-hero { height: 320px; } }
.n-round { position: absolute; top: calc(12px + env(safe-area-inset-top)); width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #0E1F1D; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.22); cursor: pointer; text-decoration: none; }
.n-round:focus-visible { outline: 3px solid #9AD4CB; outline-offset: 3px; }
.n-hero__back { left: 14px; }
.n-hero__info { right: 14px; }
.shop main.n-sheet { position: relative; margin-top: -26px; background: var(--bg); border-radius: 26px 26px 0 0; padding-top: 18px; }
.n-rh { display: flex; gap: 12px; align-items: center; }
.n-rh__logo { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; flex: none; border: 1px solid var(--line); background: #fff; }
.n-rh h1 { font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.n-rh .n-meta { margin-top: 4px; }
.n-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.n-fact { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 10px 4px; min-height: 58px; border: 0; border-right: 1px solid var(--line); background: none;
  font: inherit; color: var(--muted); font-size: .72rem; font-weight: 600; text-align: center; }
.n-fact:last-child { border-right: 0; }
.n-fact b { color: var(--ink); font-size: .95rem; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
button.n-fact { cursor: pointer; }
button.n-fact b { color: var(--brand-strong); text-decoration: underline; }
.n-tabs { position: sticky; top: 0; z-index: 12; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.n-tabs::-webkit-scrollbar { display: none; }
.n-tab { flex: none; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.n-tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.n-menu h2 { font-size: 1.15rem; font-weight: 900; letter-spacing: -.01em; margin: 20px 0 2px; }
.n-dish { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.n-menu .n-dish:last-child { border-bottom: 0; }
.n-dish.is-off { opacity: .55; }
.n-dish__tx { flex: 1; min-width: 0; }
.n-dish h3 { font-size: 1rem; font-weight: 800; margin: 0; line-height: 1.25; }
.n-dish p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n-dish small { display: block; margin-top: 3px; color: var(--muted); font-size: .74rem; }
.n-dish__pr { margin-top: 6px; font-weight: 900; color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.n-dish__pr span { color: var(--muted); font-weight: 600; }
.n-dish__im { position: relative; flex: none; width: 108px; height: 96px; border-radius: 16px; background: var(--brand-soft); }
.n-dish__im img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.n-dish__im.is-empty { width: 96px; height: 44px; background: none; align-self: center; }
.n-plus { position: absolute; right: -6px; bottom: -6px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--bg); background: var(--brand); color: #fff; font: inherit; font-size: 1.5rem; font-weight: 700;
  line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0; }
.n-plus.has-n { background: var(--ink); color: var(--bg); font-size: .95rem; font-weight: 900; }
.n-plus:disabled { background: #9AA8A6; cursor: not-allowed; }
.n-dish__im.is-empty .n-plus { right: 0; bottom: 0; }
.n-step { position: absolute; right: -6px; bottom: -6px; display: flex; align-items: center; gap: 2px; background: var(--ink); color: var(--bg); border: 3px solid var(--bg); border-radius: 999px; padding: 0 2px; }
.n-dish__im.is-empty .n-step { right: 0; bottom: 0; }
.n-step button { width: 38px; height: 38px; border: 0; background: none; color: inherit; font: inherit; font-size: 1.3rem; font-weight: 700; cursor: pointer; border-radius: 50%; padding: 0; }
.n-step output { min-width: 1.4em; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.n-plus:focus-visible, .n-step button:focus-visible, .n-tab:focus-visible, button.n-fact:focus-visible { outline: 3px solid #9AD4CB; outline-offset: 2px; }
.rx-dark .shop .n-star { color: #F5C27A; }
.rx-dark .shop .n-open { color: #6EE7A8; }
.rx-dark .shop .n-dish__pr, .rx-dark .shop button.n-fact b { color: #5EEAD4; }
.rx-dark .shop .n-new { background: #173C38; color: #B7EDE5; }

/* sledování objednávky */
.n-tmap-wrap { position: relative; }
.n-tmap { height: 300px; background: #DDE7DD; z-index: 0; }
@media (min-width: 760px) { .n-tmap { height: 380px; } }
.n-pin span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #0E1F1D; font-size: 18px; box-shadow: 0 4px 10px rgba(0,0,0,.3); border: 3px solid #fff; box-sizing: border-box; }
.n-pin--home span { background: #fff; border-color: #0F766E; }
.n-pin--courier span { background: #0F766E; }
.n-track { display: flex; flex-direction: column; gap: 8px; }
.n-track__sub { color: var(--muted); font-size: .86rem; font-weight: 700; }
.n-track h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 900; letter-spacing: -.02em; margin: 0; }
.n-track.is-failed h1 { color: var(--red); }
.n-track p { margin: 0; color: var(--muted); }
.n-track__eta { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.n-track__eta small { display: block; color: var(--muted); font-weight: 700; font-size: .82rem; }
.n-track__eta strong { font-size: 2.5rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.n-track__eta > span { font-weight: 800; color: var(--brand-strong); text-align: right; max-width: 55%; }
.n-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.n-steps i { display: block; height: 6px; border-radius: 9px; background: var(--line); }
.n-steps span { display: block; margin-top: 5px; font-size: .72rem; color: var(--muted); font-weight: 600; }
.n-steps .is-done i { background: var(--brand); }
.n-steps .is-now i { background: linear-gradient(90deg, var(--brand) 55%, var(--line) 55%); }
.n-steps .is-now span, .n-steps .is-done span { color: var(--ink); font-weight: 800; }
.n-courier { display: flex; align-items: center; gap: 12px; }
.n-courier .n-ava { font-weight: 900; }
.n-courier strong { display: block; font-weight: 800; }
.n-courier small { color: var(--muted); }
.n-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .92rem; }
.n-tl li { display: flex; gap: 6px; align-items: baseline; padding-left: 24px; position: relative; }
.n-tl li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .66rem; display: grid; place-items: center; font-weight: 900; }
.n-tl b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
/* hodnocení */
.n-rate__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.n-stars { display: flex; gap: 2px; }
.n-starbtn { width: 44px; height: 44px; border: 0; background: none; font-size: 1.9rem; line-height: 1; color: #C9CFCD; cursor: pointer; padding: 0; border-radius: 10px; }
.n-starbtn.is-on { color: #E0902A; }
.n-starbtn:focus-visible { outline: 3px solid #9AD4CB; outline-offset: 1px; }
.n-rate textarea { width: 100%; }
.rx-dark .shop .n-track__eta > span { color: #5EEAD4; }
.rx-dark .shop .n-starbtn { color: #3A4A47; }
.rx-dark .shop .n-starbtn.is-on { color: #F5C27A; }
.shop .n-search__in, .shop .n-search__in:focus { outline: none; box-shadow: none; border: 0; background: none; }

/* košík a pokladna */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.n-cohead { display: flex; align-items: center; gap: 12px; max-width: 960px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
.n-cohead h1 { font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.n-cohead p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.n-back { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; text-decoration: none; }
.n-back:focus-visible { outline: 3px solid #9AD4CB; outline-offset: 3px; }
.n-co form > fieldset.card { border: 1px solid var(--line); border-radius: 22px; padding: 16px; background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.n-co form > fieldset.card > legend { float: left; width: 100%; padding: 0; margin: 0 0 2px; font-size: 1.05rem; font-weight: 900; }
.n-co form > fieldset.card > legend.sr-only { float: none; width: 1px; }
.n-co form > fieldset.card > legend + * { clear: both; }
.n-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.n-line__im { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.5rem; }
.n-line__tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.n-line__tx strong { font-weight: 800; font-size: .98rem; line-height: 1.25; }
.n-line__tx span { color: var(--muted); font-size: .8rem; }
.n-line__tx b { font-weight: 900; color: var(--brand-strong); font-size: .92rem; font-variant-numeric: tabular-nums; }
.n-qty { display: flex; align-items: center; gap: 2px; background: var(--bg); border-radius: 999px; padding: 2px; }
.n-qty button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--brand-strong); font: inherit; font-size: 1.35rem; font-weight: 700; cursor: pointer; padding: 0; }
.n-qty button:focus-visible { outline: 3px solid #9AD4CB; }
.n-qty output { min-width: 1.5em; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.shop .n-line__note { grid-column: 1 / -1; min-height: 40px; font-size: .86rem; background: var(--bg); border-color: transparent; border-radius: 12px; }
.n-more { display: inline-block; margin-top: 4px; color: var(--brand-strong); font-weight: 800; text-decoration: none; }
.n-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.n-paytile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; background: var(--card); }
.n-paytile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.n-paytile__ic { font-size: 1.4rem; line-height: 1; }
.n-paytile strong { font-weight: 800; font-size: .95rem; }
.n-paytile small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.n-paytile.is-on { border-color: var(--brand); background: var(--brand-soft); }
.n-paytile.is-on strong { color: var(--brand-deep); }
.n-paytile.is-on small { color: var(--brand-deep); }
.n-paytile.is-disabled { opacity: .55; cursor: not-allowed; }
.n-paytile:focus-within { outline: 3px solid #9AD4CB; outline-offset: 2px; }
.n-co .summary { border-radius: 22px; }
/* plovoucí tlačítko objednat – jen na telefonu, místo spodní lišty */
.n-cta { display: none; }
@media (max-width: 859px) {
  body.n-checkout .tabbar { display: none; }
  body.n-checkout, body.app.n-checkout { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .n-cta { display: block; position: fixed; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 28; }
  .n-cta .n-cart__btn { width: 100%; border: 0; font: inherit; font-weight: 900; font-size: 1.02rem; cursor: pointer; padding: 0 20px; min-height: 58px; }
  .n-cta .n-cart__btn:disabled { background: #7FA9A4; box-shadow: none; cursor: not-allowed; }
  .n-co .summary > .btn--big { display: none; }
}
.rx-dark .shop .n-line__tx b, .rx-dark .shop .n-more, .rx-dark .shop .n-qty button { color: #5EEAD4; }
.rx-dark .shop .n-paytile.is-on { background: #173C38; }
.rx-dark .shop .n-paytile.is-on strong, .rx-dark .shop .n-paytile.is-on small { color: #B7EDE5; }

/* větší písmo v telefonu: nic se nesmí mačkat do úzkého sloupce */
.n-line__opt { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.n-line__tx strong { overflow-wrap: anywhere; }
.n-cart__btn, .n-cta .n-cart__btn { padding-top: 8px; padding-bottom: 8px; line-height: 1.2; text-align: left; }
.n-cart__btn > span:last-child { white-space: nowrap; flex: none; }
.n-fact b, .n-eta { white-space: normal; }
.n-facts { grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); }
.n-rc__t { padding-right: 0; }
.n-rc__bd { padding-top: 20px; }
.n-dish__tx h3, .n-rh h1 { overflow-wrap: anywhere; }
.n-track__eta { flex-wrap: wrap; }
.n-track__eta > span { max-width: 100%; }
.n-steps span { overflow-wrap: anywhere; }
.n-line { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 6px 10px; }
.n-line__im { width: 46px; height: 46px; border-radius: 12px; }
.n-qty button { width: 36px; height: 36px; }
.n-line__tx strong, .shop .home-tile__label, .n-dish__tx h3, .n-rh h1, .n-steps span, .home-h { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.n-door { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--brand); color: #fff; }
.n-door strong { font-size: 1.35rem; font-weight: 900; letter-spacing: -.01em; line-height: 1.15; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-strong); font-weight: 800; text-decoration: underline; cursor: pointer; }
.rx-dark .shop .linkbtn { color: #5EEAD4; }
.n-getapp { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-deep); text-decoration: none; font-size: .9rem; }
.n-getapp strong { font-weight: 800; }
.rx-dark .shop .n-getapp { background: #173C38; color: #B7EDE5; }
