/* Bhejo Bhaiya web ordering — mobile-first, styled to match the customer
 * app (navy #1E3A8A outline inputs, filled/outline button pairs, white
 * cards). Screens: auth (login/register/OTP/guest) → menu → cart → status. */
:root {
  --navy: #1e3a8a;
  --navy-dark: #172c69;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f7f9;
  --green: #16a34a;
  --red: #dc2626;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.45;
}
button { font: inherit; border: 0; cursor: pointer; background: none; }
input, textarea { font: inherit; }
img { display: block; }
[v-cloak] { display: none; }

#app { max-width: 560px; margin: 0 auto; min-height: 100%; }

/* ---- top header (navy, like the app's status/header band) ---- */
.hdr {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy); color: #fff;
  padding: 12px 16px 10px;
}
.hdr .brand { display: flex; align-items: center; gap: 10px; }
.hdr .logo {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  flex: none; overflow: hidden; font-size: 20px;
}
.hdr .logo img { width: 26px; height: auto; }
.hdr .tit { font-size: 12px; opacity: .85; letter-spacing: .3px; }
.hdr h1 { font-size: 18px; font-weight: 800; line-height: 1.2; }
.pill {
  flex: none; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.15);
}
.pill.open { background: #16a34a; }
.pill.closed { background: #dc2626; }
.hdr .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.outbtn {
  color: #fff; font-size: 12px; font-weight: 700; border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px; padding: 4px 10px;
}

/* ================= AUTH SCREENS (replica of the app's login) ============ */
.authwrap { padding: 18px 16px 40px; }
.authcard {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 20px 26px; text-align: center;
}
.authlogo {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto;
  border: 3px solid var(--navy); background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 40px;
}
.authlogo img { width: 58px; height: auto; }
.authcard h2 { font-size: 19px; font-weight: 800; margin: 18px 0 20px; }
.field {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--navy); border-radius: 14px;
  padding: 13px 14px; margin-bottom: 14px; background: #fff;
}
.field .ic { flex: none; color: var(--muted); font-size: 17px; line-height: 1; }
.field .pweye {
  flex: none; border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 17px; line-height: 1; color: var(--muted);
}
.field input {
  border: 0; outline: none; width: 100%; font-size: 16px; background: transparent;
}
.linkrow { text-align: right; margin: -4px 0 14px; }
.linkrow a, .alink {
  color: var(--navy); font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer;
}
.btn {
  display: block; width: 100%; padding: 14px; border-radius: 14px;
  font-size: 17px; font-weight: 800; margin-bottom: 13px;
}
.btn.solid { background: var(--navy); color: #fff; }
.btn.solid:disabled { background: #cbd5e1; }
.btn.outline { border: 2px solid var(--navy); color: var(--navy); background: #fff; }
.btnrow { display: flex; gap: 12px; }
.btnrow .btn { margin-bottom: 0; font-size: 15.5px; padding: 13px 6px; }
.authfoot { margin-top: 18px; font-size: 13px; color: var(--muted); }
.notice {
  background: #eef2ff; border: 1px solid #c7d2fe; color: var(--navy);
  border-radius: 10px; padding: 11px 12px; font-size: 14px; font-weight: 600;
  margin-bottom: 14px; text-align: left;
}

/* ---- category chips ---- */
.chips {
  position: sticky; top: 60px; z-index: 19;
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
  background: var(--bg); scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 14px; border-radius: 999px; font-size: 13.5px;
  font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---- items ---- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 16px 120px; }
@media (min-width: 480px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card .ph {
  aspect-ratio: 4 / 3; background: #eef1f5; position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .oos-tag {
  position: absolute; inset: 0; background: rgba(255,255,255,.72);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--red); font-size: 13px; letter-spacing: .4px;
}
.card .bd { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.nm { font-size: 14px; font-weight: 600; display: flex; align-items: flex-start; gap: 6px; }
.veg { flex: none; width: 13px; height: 13px; border: 1.5px solid; border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 3px; }
.veg::after { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.veg.v { border-color: #15803d; } .veg.v::after { background: #15803d; }
.veg.n { border-color: #b91c1c; } .veg.n::after { background: #b91c1c; }
.pr { font-size: 14px; font-weight: 700; margin-top: auto; }
.addb {
  width: 100%; padding: 8px 0; border-radius: 9px; background: var(--navy);
  color: #fff; font-weight: 700; font-size: 14px;
}
.addb:disabled { background: #cbd5e1; }
.step {
  display: flex; align-items: center; border-radius: 9px; background: var(--navy);
  color: #fff; font-weight: 800; overflow: hidden;
}
.step button { color: #fff; font-size: 19px; font-weight: 800; padding: 6px 0; width: 36%; }
.step span { flex: 1; text-align: center; font-size: 14.5px; }

/* ---- floating cart bar (matches the app's "View cart" pill) ---- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: 560px; margin: 0 auto; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.cartbar .in {
  background: var(--ink); color: #fff; border-radius: 14px;
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .35);
}
.cartbar .n {
  background: var(--navy); border-radius: 50%; width: 30px; height: 30px; flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.cartbar .amt { font-weight: 800; }
.cartbar .go { margin-left: auto; font-weight: 800; font-size: 15px; color: #fff; }

/* ================= CART SCREEN (replica of the app's "My cart") ========= */
.backrow { display: flex; align-items: center; gap: 12px; padding: 14px 16px 0; }
.backrow button {
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); font-size: 19px;
}
.backrow .h { }
.backrow .h b { font-size: 21px; font-weight: 800; display: block; line-height: 1.15; }
.backrow .h small { color: var(--muted); font-size: 13.5px; }
.sheet { padding: 6px 16px 130px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 12px; }
.box h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 4px; }
.box .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.etarow { display: flex; align-items: center; gap: 12px; }
.etarow .tile {
  width: 48px; height: 48px; border-radius: 12px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none;
}
.etarow b { font-size: 16.5px; display: block; }
.etarow small { color: var(--muted); font-size: 13.5px; }
.cline { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.cline:last-of-type { border-bottom: 0; }
.cline .th {
  width: 52px; height: 52px; border-radius: 10px; background: #eef1f5; flex: none;
  overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.cline .th img { width: 100%; height: 100%; object-fit: cover; }
.cline .inf { flex: 1; min-width: 0; }
.cline .inf b { font-size: 15px; display: block; }
.cline .inf span { font-size: 14px; font-weight: 700; }
.cline .step { width: 106px; flex: none; }
.frow { margin-bottom: 10px; }
.frow input {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; background: #f8fafc; outline: none;
}
.frow input:focus { border-color: var(--navy); background: #fff; }
.locbtn {
  display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center;
  padding: 12px; border-radius: 12px; border: 1.5px dashed var(--navy); color: var(--navy);
  font-weight: 700; font-size: 14px; background: #eef2ff;
}
.locbtn.ok { border-style: solid; background: #dcfce7; border-color: var(--green); color: var(--green); }
.mut { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.err {
  margin-top: 12px; background: #fef2f2; border: 1px solid #fecaca; color: var(--red);
  border-radius: 10px; padding: 11px 12px; font-size: 14px; font-weight: 600;
}

/* bottom pay bar — matches the app's "₹total · Proceed to Pay" bar */
.paybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: 560px; margin: 0 auto;
  background: #fff; border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
}
.paybar .t b { font-size: 20px; font-weight: 800; display: block; line-height: 1.1; }
.paybar .t small { color: var(--muted); font-size: 12.5px; }
.paybar .paybtn {
  margin-left: auto; background: var(--ink); color: #fff; font-weight: 800;
  font-size: 16px; padding: 15px 22px; border-radius: 14px;
}
.paybar .paybtn:disabled { background: #cbd5e1; }

/* ================= STATUS / PLACED ================= */
.done { text-align: center; padding: 34px 16px 10px; }
.done .big { font-size: 52px; }
.done h2 { font-size: 20px; font-weight: 800; margin-top: 8px; }
.done .oid { color: var(--muted); font-size: 14px; margin-top: 4px; }
.steps { margin-top: 6px; }
.steps .s { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; opacity: .38; }
.steps .s.hit { opacity: 1; }
.steps .dot {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e2e8f0;
  display: flex; align-items: center; justify-content: center; font-size: 13px; margin-top: 1px;
}
.steps .s.hit .dot { background: var(--green); color: #fff; }
.steps .t b { font-size: 14.5px; display: block; }
.steps .t small { color: var(--muted); font-size: 12.5px; }
.cancelbtn { width: 100%; margin-top: 14px; padding: 13px; border-radius: 12px;
  border: 1.5px solid var(--red); color: var(--red); font-weight: 800; background: #fff; }
.againbtn { width: 100%; margin-top: 10px; padding: 13px; border-radius: 12px;
  background: var(--navy); color: #fff; font-weight: 800; }

.loading { text-align: center; padding: 60px 20px; color: var(--muted); }
.spin {
  width: 34px; height: 34px; border: 3.5px solid var(--line); border-top-color: var(--navy);
  border-radius: 50%; margin: 0 auto 14px; animation: sp 0.8s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 26px 0 110px; }
.foot a { color: var(--navy); font-weight: 700; text-decoration: none; }
