[hidden] { display: none !important; }
:root {
  --blue: #0d47a1; --blue2: #1565c0; --sky: #e8f0fb; --yellow: #ffd600; --red: #e53935;
  --ink: #0f1b2d; --muted: #5d6b80; --line: #dde5f0; --bg: #f5f8fc; --card: #fff;
  --radius: 14px; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); padding-bottom: calc(90px + var(--safe-b)); }
a { color: var(--blue2); }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* Fejléc */
.hero { position: relative; background: var(--blue); color: #fff; overflow: hidden; padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 22px; }
.hero-stripes { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.07) 0 14px, transparent 14px 28px); }
.hero-inner { position: relative; display: flex; gap: 14px; align-items: center; max-width: 760px; margin: 0 auto; }
.hero-logo { border-radius: 50%; border: 3px solid #fff; background: #fff; flex: none; }
.hero h1 { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -.5px; text-transform: uppercase; }
.tagline { margin: 2px 0 0; font-weight: 600; color: var(--yellow); }
.addr { margin: 4px 0 0; font-size: 14px; opacity: .9; }

/* Bannerek */
#banners { max-width: 760px; margin: 0 auto; padding: 0 12px; }
.banner { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); font-weight: 600; }
.banner.closed { background: #fdecea; color: #a31515; border: 1px solid #f5c2c0; }
.banner.info { background: #fff8d6; border: 1px solid #f1df8a; }
.banner.install { background: var(--sky); border: 1px solid #c8daf3; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.banner.install img { width: 40px; height: 40px; border-radius: 10px; }
.banner.install .grow { flex: 1; }
.banner.install button { border: 0; background: var(--blue); color: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.banner.install .x { background: none; color: var(--muted); padding: 4px 6px; }

/* Kategória sáv */
.cats { position: sticky; top: 0; z-index: 5; background: rgba(245,248,252,.96); backdrop-filter: blur(8px); display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; color: var(--blue); background: #fff; border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.cats a.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Étlap */
.menu { max-width: 760px; margin: 0 auto; padding: 4px 12px 0; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }
.cat { scroll-margin-top: 62px; }
.cat h2 { margin: 22px 4px 10px; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; color: #fff; background: var(--blue); display: inline-block; padding: 5px 12px; border-radius: 8px; }
.item { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 12px 14px; margin-bottom: 8px; width: 100%; text-align: left; color: inherit; }
.item:active { transform: scale(.99); }
.item .info { flex: 1; min-width: 0; }
.item .name { font-weight: 800; font-size: 16px; }
.item .desc { color: var(--muted); font-size: 13px; margin-top: 3px; }
.item .price { font-weight: 800; color: var(--blue); margin-top: 6px; }
.item .price small { color: var(--muted); font-weight: 500; }
.item .add { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); font-size: 24px; font-weight: 800; line-height: 1; display: grid; place-items: center; position: relative; }
.item .badge { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; font-size: 12px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.item.soldout { opacity: .5; }
.item.soldout .add { background: #ddd; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; background: #fdecea; color: #a31515; padding: 2px 6px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }

/* Lábléc */
.foot { max-width: 760px; margin: 28px auto 0; padding: 18px 16px; color: var(--muted); font-size: 14px; text-align: center; }
.foot .small { font-size: 12px; }
.foot a.tel { display: inline-block; margin: 4px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--blue); }

/* Kosár sáv */
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 10; max-width: 736px; margin: 0 auto; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 16px; padding: 14px 16px; background: var(--red); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 8px 24px rgba(229,57,53,.35); }
.cart-bar span:nth-child(2) { flex: 1; text-align: left; }
.cart-count { background: #fff; color: var(--red); border-radius: 8px; min-width: 28px; padding: 2px 6px; text-align: center; }

/* Alsó lap (sheet) */
.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10,20,40,.45); animation: fade .2s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 22px 16px calc(20px + var(--safe-b)); max-width: 760px; margin: 0 auto; animation: up .25s ease-out; -webkit-overflow-scrolling: touch; }
@media (min-width: 800px) { .sheet-panel { bottom: auto; top: 5vh; border-radius: 20px; max-height: 90vh; } }
.sheet-x { position: absolute; top: 10px; right: 10px; border: 0; background: var(--sky); width: 34px; height: 34px; border-radius: 50%; font-size: 16px; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.sheet h3 { margin: 0 40px 4px 0; font-size: 21px; }
.sheet .sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.group { margin: 14px 0; }
.group > label, .group > .lbl { display: block; font-weight: 800; margin-bottom: 6px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: block; padding: 9px 14px; border: 2px solid var(--line); border-radius: 12px; font-weight: 600; }
.chips input:checked + span { border-color: var(--blue); background: var(--sky); color: var(--blue); }
.chips input:focus-visible + span { outline: 2px solid var(--blue2); }
.field { width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; }
.field:focus { outline: none; border-color: var(--blue2); }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.row > .zip { flex: 0 0 92px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { border: 0; background: var(--sky); width: 40px; height: 40px; font-size: 20px; font-weight: 800; color: var(--blue); }
.qty b { min-width: 36px; text-align: center; }
.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 15px; font-weight: 800; font-size: 17px; background: var(--red); color: #fff; margin-top: 16px; }
.btn.blue { background: var(--blue); }
.btn.ghost { background: var(--sky); color: var(--blue); }
.btn:disabled { opacity: .6; }
.cart-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line .grow { flex: 1; min-width: 0; }
.cart-line .opts { color: var(--muted); font-size: 13px; }
.cart-line .qty button { width: 32px; height: 32px; font-size: 17px; }
.cart-line .qty b { min-width: 26px; }
.sum { margin-top: 12px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.sum .total { font-size: 19px; font-weight: 900; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; }
.seg { display: flex; background: var(--sky); padding: 4px; border-radius: 14px; gap: 4px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px; border-radius: 11px; font-weight: 800; color: var(--blue); }
.seg input:checked + span { background: #fff; box-shadow: 0 2px 6px rgba(13,71,161,.15); }
.pay label { display: flex; gap: 10px; align-items: center; padding: 12px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 8px; font-weight: 600; }
.pay label:has(input:checked) { border-color: var(--blue); background: var(--sky); }
.pay .barion { margin-left: auto; font-size: 12px; font-weight: 800; color: #fff; background: #0097db; padding: 3px 8px; border-radius: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 14px; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.err { background: #fdecea; color: #a31515; padding: 10px 12px; border-radius: 12px; white-space: pre-line; font-weight: 600; margin-top: 12px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Rendelés állapota */
.status-view { max-width: 760px; margin: 0 auto; padding: 16px 12px; }
.status-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 16px; text-align: center; }
.status-card .big { font-size: 52px; }
.status-card h2 { margin: 6px 0; }
.steps { display: flex; justify-content: space-between; margin: 22px 0 8px; position: relative; }
.steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 15px; height: 4px; background: var(--line); }
.step { position: relative; flex: 1; font-size: 12px; color: var(--muted); font-weight: 600; }
.step i { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; background: var(--line); font-style: normal; }
.step.on { color: var(--blue); }
.step.on i { background: var(--blue); color: #fff; }
.order-lines { text-align: left; margin-top: 16px; font-size: 14px; }
.order-lines div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }

.toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 30; font-weight: 600; font-size: 14px; animation: up .2s; max-width: 90vw; }
