[hidden] { display: none !important; }
:root {
  --brand: #6b3e26;
  --brand-ink: #fff;
  --bg: #fbf7f2;
  --card: #fff;
  --ink: #1f1a17;
  --muted: #7a6e66;
  --line: #ece4dc;
  --ok: #1f8a4c;
  --warn: #c2410c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31,26,23,.06), 0 4px 16px rgba(31,26,23,.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { padding-bottom: 96px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: rgba(251,247,242,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; min-width: 0; }
.brand strong { display: block; font-size: 1.05rem; }
.brand small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; flex: none; background-size: cover; background-position: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); text-decoration: none; }

main { max-width: 760px; margin: 0 auto; padding: 16px; }

.banner { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; }
.banner.closed { background: #fde8e8; color: #9b1c1c; }
.banner.active { background: #e8f4ec; color: #14532d; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; }

.chips { position: sticky; top: 65px; z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; margin: 0 -16px 4px; padding-left: 16px;
  background: var(--bg); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; white-space: nowrap; font-weight: 600; font-size: .92rem; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.cat { margin: 18px 0 8px; font-size: 1.15rem; scroll-margin-top: 130px; }
.products { display: grid; gap: 10px; }
.product { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 0; text-align: left; width: 100%; cursor: pointer; transition: transform .08s; }
.product:active { transform: scale(.985); }
.product .info { flex: 1; min-width: 0; }
.product h3 { font-size: 1rem; margin: 0 0 3px; }
.product p { margin: 0; color: var(--muted); font-size: .86rem; }
.product .price { font-weight: 700; margin-top: 6px; }
.product .add { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; }
.product.na { opacity: .5; cursor: not-allowed; }
.product .thumb { width: 64px; height: 64px; border-radius: 12px; background: #f3ebe3 center/cover; flex: none; display: grid; place-items: center; font-size: 1.8rem; }

.cart-bar { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: 728px; margin: 0 auto; z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 0; border-radius: 16px; background: var(--brand); color: var(--brand-ink);
  font-size: 1.05rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); cursor: pointer; }
.cart-bar span:nth-child(2) { flex: 1; text-align: left; }
.cart-count { min-width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: .9rem; }

dialog.sheet { border: 0; padding: 0; width: 100%; max-width: 560px; max-height: 92vh; border-radius: 20px 20px 0 0; margin: auto auto 0; background: var(--card); color: var(--ink); }
@media (min-width: 640px) { dialog.sheet { border-radius: 20px; margin: auto; } }
dialog.sheet::backdrop { background: rgba(20,14,10,.5); }
.sheet-body { padding: 20px; overflow-y: auto; max-height: calc(92vh - 84px); }
.sheet-foot { display: flex; gap: 12px; align-items: center; padding: 14px 20px; padding-bottom: max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.sheet .close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f3ebe3; font-size: 1.2rem; cursor: pointer; }
.opt-group { margin: 18px 0; }
.opt-group h4 { margin: 0 0 8px; font-size: .95rem; display: flex; justify-content: space-between; }
.opt-group h4 small { color: var(--muted); font-weight: 500; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; font-size: .92rem; user-select: none; }
.opt input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, white); font-weight: 600; }
.opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.opt em { font-style: normal; color: var(--muted); font-size: .82rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; }
.qty button { width: 42px; height: 44px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; }
.qty output { min-width: 26px; text-align: center; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 1rem; text-decoration: none; }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.small { padding: 8px 12px; font-size: .88rem; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: wait; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .q { font-weight: 700; min-width: 28px; }
.line .d { flex: 1; }
.line .d small { display: block; color: var(--muted); }
.line .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }

label.f { display: block; margin: 12px 0 4px; font-weight: 600; font-size: .9rem; }
.in { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; }
.in:focus { outline: none; border-color: var(--brand); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg .opt span { width: 100%; text-align: center; padding: 12px; }
.err { color: #b91c1c; font-weight: 600; margin: 10px 0; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }

/* Tracking */
.track-head { text-align: center; padding: 10px 0 4px; }
.track-head .num { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; }
.status-big { font-size: 1.3rem; font-weight: 800; margin: 6px 0; }
.steps { list-style: none; padding: 0; margin: 16px 0; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: var(--muted); }
.steps li .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: .8rem; background: #fff; }
.steps li.done { color: var(--ink); }
.steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now .dot { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--brand) 5%, transparent); } }
.conn { font-size: .8rem; color: var(--muted); text-align: center; }
.conn.bad { color: var(--warn); font-weight: 700; }
.ready-flash { animation: flashbg 1s 4; }
@keyframes flashbg { 50% { background: #d1fae5; } }

.toast { position: fixed; left: 50%; top: 20px; transform: translate(-50%, calc(-100% - 60px)); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  z-index: 100; transition: transform .25s; max-width: 90vw; font-weight: 600; }
.toast.show { transform: translate(-50%, 0); }
.tabs { display: flex; gap: 6px; background: #efe7df; padding: 4px; border-radius: 12px; margin-bottom: 12px; }
.tabs button { flex: 1; padding: 10px; border-radius: 9px; border: 0; background: none; font-weight: 700; cursor: pointer; }
.tabs button.on { background: #fff; box-shadow: var(--shadow); }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.paybox { border: 2px dashed var(--line); border-radius: 14px; padding: 14px; margin: 12px 0; background: #fffdf9; }

/* Επιβεβαίωση «Το είδα» */
.ack-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10, 60, 30, .92); display: grid; place-items: center; padding: 20px; animation: ackpulse 1.2s infinite; }
@keyframes ackpulse { 50% { background: rgba(20, 110, 55, .95); } }
.ack-overlay.min { inset: auto 12px 12px 12px; padding: 0; background: none; animation: none; }
.ack-overlay.min .ack-icon, .ack-overlay.min .ack-msg, .ack-overlay.min .ack-chat, .ack-overlay.min .ack-sound { display: none; }
.ack-overlay.min .ack-box { padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.ack-box { background: #fff; border-radius: 22px; padding: 24px; width: min(420px, 100%); text-align: center; }
.ack-icon { font-size: 3.4rem; }
.ack-title { font-size: 1.5rem; font-weight: 800; margin: 6px 0; }
.ack-msg { color: var(--muted); margin-bottom: 16px; }
.ack-btn { background: var(--ok); font-size: 1.2rem; padding: 18px; }
.ack-chat { margin-top: 8px; }
.ack-sound { color: var(--warn); font-weight: 700; }

/* Chat */
.chat-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 0 10px; }
.chat-list:empty::before { content: 'Δεν υπάρχουν μηνύματα. Μπορείτε να γράψετε στο κατάστημα, π.χ. αν θα αργήσετε.'; color: var(--muted); font-size: .88rem; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 14px; }
.msg small { display: block; font-size: .72rem; opacity: .7; margin-top: 2px; }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: #f1e9e1; border-bottom-left-radius: 4px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.quick .chip { font-size: .85rem; padding: 7px 11px; }
.chat-form { display: flex; gap: 8px; }
.chat-form .btn { padding: 12px 14px; }

/* Σταθερό «ΤΕΛΟΣ» & γρήγορη επαναπαραγγελία */
.finish-bar { position: sticky; top: 66px; z-index: 15; margin: -4px -16px 12px; padding: 8px 16px; background: rgba(251,247,242,.95); backdrop-filter: blur(8px); }
.finish-btn { width: 100%; background: var(--ok); font-size: 1.05rem; padding: 14px; box-shadow: 0 6px 16px rgba(31,138,76,.35); }
.reorder-fab { position: fixed; right: 16px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px); z-index: 40; border: 0; border-radius: 999px;
  padding: 12px 16px; background: var(--ink); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 8px 24px rgba(0,0,0,.3); cursor: pointer; }
.outside-btn { background: #1d4ed8; margin-bottom: 14px; font-size: 1.1rem; padding: 16px; }
.cancel-btn { margin-top: 8px; color: #b91c1c; border-color: #fecaca; }
