:root {
  --primary: #0c831f;
  --primary-dark: #0a6b19;
  --primary-soft: #e6f4ea;
  --yellow: #f8cb46;
  --teal: #0c831f;
  --teal-dark: #0a6b19;
  --teal-soft: #e6f4ea;
  --bg: #f8f8f8;
  --card: #ffffff;
  --text: #1f1f1f;
  --text-2: #535665;
  --text-3: #939393;
  --border: #e5e5e5;
  --danger: #e11d48;
  --success: #0c831f;
  --warn: #b45309;
  --shadow: 0 1px 2px rgba(31, 31, 31, .05), 0 2px 8px rgba(31, 31, 31, .04);
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--text); }
::placeholder { color: var(--text-3); }

/* ---------- App shell ---------- */
.app-root { max-width: 1280px; margin: 0 auto; min-height: 100vh; padding-bottom: 90px; }
.desktop-nav {
  position: sticky; top: 0; z-index: 40; display: none;
  align-items: center; gap: 20px; padding: 0 28px; height: var(--nav-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.desktop-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.desktop-nav .brand .logo { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #f97316, #f59e0b); display: grid; place-items: center; font-size: 20px; box-shadow: 0 4px 12px rgba(249, 115, 22, .35); }
.desktop-nav .nav-links { display: flex; gap: 4px; flex: 1; }
.desktop-nav .nav-links a { padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--text-2); font-size: 14px; }
.desktop-nav .nav-links a.on, .desktop-nav .nav-links a:hover { color: var(--primary-dark); background: var(--primary-soft); }
.top-search { flex: 1; max-width: 360px; position: relative; }
.top-search input { width: 100%; padding: 9px 14px 9px 38px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--bg); outline: none; }
.top-search input:focus { border-color: var(--primary); background: #fff; }
.top-search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.nav-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; cursor: pointer; }
.nav-avatar.cart { background: var(--primary); position: relative; }
.nav-avatar.cart .badge { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; }

.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; background: #fff; border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px 8px; font-size: 11px; font-weight: 600; color: var(--text-3);
}
.mobile-nav a.on { color: var(--primary-dark); }
.mobile-nav a .mi { font-size: 21px; line-height: 1; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #ff8a3d 0%, #f97316 45%, #fb923c 100%);
  color: #fff; border-radius: 0 0 28px 28px; padding: 26px 20px 60px; position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: rgba(255,255,255,.12); border-radius: 50%; }
.hero::before { content: ""; position: absolute; right: 40px; bottom: -60px; width: 140px; height: 140px; background: rgba(255,255,255,.1); border-radius: 50%; }
.hero .brand-line { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; position: relative; z-index: 1; }
.hero .brand-line .logo { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 24px; }
.hero h1 { position: relative; z-index: 1; font-size: 27px; font-weight: 800; margin-top: 18px; line-height: 1.2; }
.hero p { position: relative; z-index: 1; margin-top: 8px; font-size: 15px; opacity: .95; max-width: 460px; }
.hero-search { position: relative; z-index: 2; margin-top: 22px; background: #fff; border-radius: 16px; padding: 6px; display: flex; box-shadow: 0 10px 30px rgba(124, 45, 18, .25); max-width: 560px; }
.hero-search input { flex: 1; border: 0; outline: 0; padding: 10px 12px; font-size: 16px; background: transparent; }
.hero-search button { background: var(--teal); color: #fff; border: 0; border-radius: 12px; padding: 10px 20px; font-weight: 700; }
.hero-chips { position: relative; z-index: 2; display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hero-chips a { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 22px 16px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; font-weight: 800; }
.section-head .more { color: var(--teal); font-size: 13px; font-weight: 700; }
.section-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (min-width: 720px) { .section-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

/* ---------- Category chips ---------- */
.cat-chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 78px; }
.cat-chip .ic { width: 54px; height: 54px; border-radius: 18px; background: #fff; border: 1.5px solid var(--border); display: grid; place-items: center; font-size: 26px; box-shadow: var(--shadow); transition: .15s; }
.cat-chip:hover .ic { transform: translateY(-2px); border-color: var(--primary); }
.cat-chip span { font-size: 12px; font-weight: 600; color: var(--text-2); text-align: center; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-pad { padding: 16px; }
.card-title { font-size: 15px; font-weight: 800; padding: 14px 16px 10px; display: flex; align-items: center; justify-content: space-between; }
.card-title small { color: var(--text-3); font-weight: 600; font-size: 12px; }

.store-card { cursor: pointer; position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: .15s; }
.store-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,23,42,.12); }
.store-card .img { height: 110px; background: linear-gradient(135deg, #ffedd5, #fed7aa); display: grid; place-items: center; font-size: 44px; }
.store-card .img img { width: 100%; height: 100%; object-fit: cover; }
.store-card .body { padding: 12px 14px 14px; }
.store-card .name { font-weight: 800; font-size: 15px; }
.store-card .meta { color: var(--text-2); font-size: 12.5px; margin-top: 3px; }
.store-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.rating-pill { background: var(--success); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 3px; }
.veg-pill { width: 14px; height: 14px; border: 2px solid var(--success); border-radius: 3px; display: inline-grid; place-items: center; }
.veg-pill::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--success); }

.listing-card { cursor: pointer; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; gap: 12px; align-items: flex-start; transition: .15s; }
.listing-card:hover { transform: translateY(-2px); }
.listing-card .av { width: 50px; height: 50px; border-radius: 14px; flex: 0 0 auto; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, var(--teal-soft), #a7f3d0); }
.listing-card .av img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.listing-card .info { flex: 1; min-width: 0; }
.listing-card .name { font-weight: 800; font-size: 14.5px; }
.listing-card .sub { color: var(--text-2); font-size: 12.5px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-card .tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--text-2); }
.tag.acc { background: var(--teal-soft); color: var(--teal-dark); }
.tag.ver { background: #dcfce7; color: var(--success); }

/* ---------- Buttons / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius-sm); padding: 12px 18px; font-weight: 700; font-size: 15px; transition: .15s; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; box-shadow: 0 6px 16px rgba(249, 115, 22, .35); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-soft { background: var(--bg); color: var(--text); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn-lg { padding: 15px 20px; font-size: 16px; }
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-warn { background: var(--primary-soft); color: var(--primary-dark); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.input, .select, .textarea { padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); outline: none; background: #fff; width: 100%; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); }
.textarea { resize: vertical; min-height: 84px; }
.form-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Page ---------- */
.page { padding: 0 0 24px; }
.page-header { padding: 20px 16px 12px; }
.page-header .page-title { font-size: 22px; font-weight: 800; }
.page-header .page-sub { color: var(--text-2); font-size: 13.5px; margin-top: 3px; }
.page-pad { padding: 0 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Cart ---------- */
.cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .pi { width: 58px; height: 58px; border-radius: 14px; background: var(--primary-soft); display: grid; place-items: center; font-size: 28px; flex: 0 0 auto; overflow: hidden; }
.cart-item .pi img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name { font-weight: 700; font-size: 14.5px; }
.cart-item .unit { color: var(--text-3); font-size: 12.5px; }
.cart-item .price { font-weight: 800; color: var(--primary-dark); margin-top: 2px; }
.qty { display: inline-flex; align-items: center; gap: 2px; background: var(--primary-soft); border-radius: 999px; padding: 3px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; font-weight: 800; font-size: 16px; color: var(--primary-dark); display: grid; place-items: center; }
.qty b { min-width: 24px; text-align: center; font-size: 14px; }

.bill-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--text-2); }
.bill-line b { color: var(--text); }
.bill-line.grand { font-size: 17px; font-weight: 800; color: var(--text); border-top: 1.5px dashed var(--border); margin-top: 6px; padding-top: 12px; }

/* ---------- Store / menu ---------- */
.store-hero { height: 150px; background: linear-gradient(135deg, #fed7aa, #fdba74); display: grid; place-items: center; font-size: 60px; position: relative; }
.store-hero img { width: 100%; height: 100%; object-fit: cover; }
.store-head { padding: 14px 16px 0; }
.store-title { display: flex; align-items: center; gap: 12px; }
.store-title .av { width: 62px; height: 62px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 32px; margin-top: -26px; border: 3px solid #fff; overflow: hidden; }
.store-title .av img { width: 100%; height: 100%; object-fit: cover; }
.store-title .nm { font-weight: 800; font-size: 19px; }
.store-title .mt { color: var(--text-2); font-size: 13px; }
.open-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-right: 5px; }
.menu-cat { margin-top: 18px; }
.menu-cat .mh { font-weight: 800; font-size: 15px; padding: 6px 16px 10px; }
.product-row { display: flex; gap: 12px; padding: 12px 16px; align-items: center; }
.product-row .pi { width: 64px; height: 64px; border-radius: 14px; background: #f1f5f9; display: grid; place-items: center; font-size: 32px; flex: 0 0 auto; overflow: hidden; }
.product-row .pi img { width: 100%; height: 100%; object-fit: cover; }
.product-row .info { flex: 1; min-width: 0; }
.product-row .name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.product-row .desc { color: var(--text-3); font-size: 12px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.product-row .price { font-weight: 800; color: var(--primary-dark); font-size: 14.5px; margin-top: 3px; }
.product-row .price .mrp { color: var(--text-3); font-weight: 600; text-decoration: line-through; font-size: 12.5px; margin-left: 6px; }
.add-btn { width: 34px; height: 34px; border-radius: 11px; background: var(--primary); color: #fff; border: 0; font-size: 20px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(249,115,22,.3); }

/* ---------- Order timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; padding: 6px 0; }
.tstep { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.tstep:last-child { padding-bottom: 0; }
.tstep::before { content: ""; position: absolute; left: 14px; top: 32px; bottom: 0; width: 2px; background: var(--border); }
.tstep:last-child::before { display: none; }
.tstep .dot { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--border); display: grid; place-items: center; font-size: 14px; flex: 0 0 auto; z-index: 1; color: var(--text-3); }
.tstep.done .dot { border-color: var(--success); background: var(--success); color: #fff; }
.tstep.active .dot { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 0 5px var(--primary-soft); }
.tstep.done::before { background: var(--success); }
.tstep .tl { padding-top: 3px; }
.tstep .tl b { font-size: 14px; }
.tstep .tl span { color: var(--text-3); font-size: 12.5px; }

/* ---------- Auth ---------- */
.auth-card { max-width: 420px; margin: 30px auto; padding: 26px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.auth-logo { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, #f97316, #f59e0b); display: grid; place-items: center; font-size: 34px; margin: 0 auto 12px; box-shadow: 0 8px 20px rgba(249,115,22,.4); }
.auth-title { text-align: center; font-size: 21px; font-weight: 800; }
.auth-sub { text-align: center; color: var(--text-2); font-size: 13.5px; margin-top: 5px; margin-bottom: 20px; }
.auth-tabs { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--text-2); }
.auth-tabs button.on { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.otp-input { letter-spacing: 12px; font-size: 26px; text-align: center; font-weight: 800; padding: 14px; }
.auth-join { text-align: center; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.auth-join a { color: var(--teal-dark); font-weight: 700; font-size: 13.5px; text-decoration: none; }

/* ---------- Segmented ---------- */
.segmented { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--text-2); }
.segmented button.on { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow); }

/* ---------- Admin stats ---------- */
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 14px; }
.stat-card .v { font-size: 24px; font-weight: 800; }
.stat-card .l { color: var(--text-2); font-size: 12.5px; font-weight: 600; margin-top: 2px; }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--text-3); font-size: 12px; text-transform: uppercase; padding: 10px 12px; border-bottom: 1.5px solid var(--border); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:hover td { background: #faf9f7; }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--text-3); }
.empty .ei { font-size: 52px; }
.empty b { display: block; color: var(--text); font-size: 16px; margin-top: 10px; }
.empty p { font-size: 13.5px; margin-top: 5px; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .service-grid { grid-template-columns: 1fr; } }
.mm-rider { background: var(--primary); border: 2px solid #fff; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.mm-pin { font-size: 22px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.map-wrap .leaflet-container { font-family: inherit; }
.service-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--text); }
.service-card .ic { font-size: 24px; }
.service-card b { font-size: 15px; }
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.tbl-wrap { overflow-x: auto; }
.tel { text-decoration: none; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.gap4 { gap: 4px; } .gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.flex { display: flex; } .aic { align-items: center; } .jcb { justify-content: space-between; } .fwrap { flex-wrap: wrap; }
.col { color: var(--text-2); } .sm { font-size: 13px; } .xs { font-size: 12px; }
.bold { font-weight: 800; } .center { text-align: center; } .right { text-align: right; }
.green { color: var(--success); } .red { color: var(--danger); } .orange { color: var(--primary-dark); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.chip-green { background: #dcfce7; color: var(--success); }
.chip-orange { background: var(--primary-soft); color: var(--primary-dark); }
.chip-gray { background: var(--bg); color: var(--text-2); }
.chip-red { background: #fee2e2; color: var(--danger); }
.chip-teal { background: var(--teal-soft); color: var(--teal-dark); }
.chip-blue { background: #dbeafe; color: #1d4ed8; }
.chip-brand { background: var(--primary); color: #fff; border: 2px solid var(--primary); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }

/* ---------- Toast / modal ---------- */
#toast-root { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { padding: 12px 16px; border-radius: 14px; color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: slideDown .25s; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--teal); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

#modal-root { position: fixed; inset: 0; z-index: 100; display: none; }
#modal-root.on { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(3px); }
.modal-box { position: absolute; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 22px 22px 0 0; padding: 22px; max-height: 86vh; overflow: auto; animation: slideUp .25s; }
@media (min-width: 640px) { .modal-box { bottom: auto; top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); width: min(94vw, 500px); border-radius: 22px; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; }

/* ---------- Splash ---------- */
.splash { position: fixed; inset: 0; z-index: 500; background: #f8cb46; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #1f1f1f; }
.splash-logo { width: 96px; height: 96px; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 12px 32px rgba(31,31,31,.18); }
.splash-logo img { width: 100%; height: 100%; object-fit: cover; }
.splash-title { font-size: 30px; font-weight: 800; margin-top: 14px; }
.splash-sub { font-size: 14px; opacity: .72; }
.spinner { width: 34px; height: 34px; margin-top: 26px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; gap: 10px; overflow-x: auto; padding: 14px 16px 4px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar .f { flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; font-weight: 700; font-size: 13.5px; color: var(--text-2); }
.filter-bar .f.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Loading ---------- */
.skel { border-radius: 12px; background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%); background-size: 400% 100%; animation: skel 1.4s ease infinite; }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.spin-ic { display: inline-block; width: 18px; height: 18px; border: 2.5px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- Admin ---------- */
.img-preview { border-radius: 12px; border: 1.5px dashed var(--border); background: #fafafa; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; font-size: 22px; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.brand .logo img, .brand-line .logo img, .auth-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.tab-filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.tab-filters::-webkit-scrollbar { display: none; }
.tab-filters .f { flex: 0 0 auto; padding: 6px 13px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; font-weight: 700; font-size: 12.5px; color: var(--text-2); }
.tab-filters .f.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.tbl tbody tr { cursor: pointer; }
.tbl .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.rev-store { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.rev-store:last-child { border-bottom: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13.5px; }
.detail-grid .lg { grid-column: 1 / -1; }
.stat-card.clickable { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.stat-card.clickable:active { transform: scale(.97); }
.mm-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 18px; color: var(--text-2); cursor: pointer; }

@media (min-width: 900px) {
  .desktop-nav { display: flex; }
  .mobile-nav { display: none; }
  .app-root { padding-bottom: 40px; }
  .hero { border-radius: 0 0 34px 34px; padding: 40px 60px 70px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  .page-pad { padding: 0 28px; }
  .page-header { padding: 24px 28px 14px; }
  .section { padding: 28px 28px 0; }
}
.store-btn { display: flex; align-items: center; gap: 12px; background: #000; color: #fff; border-radius: 12px; padding: 12px 18px; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.store-btn:hover { filter: brightness(1.15); }
.store-ic { display: flex; align-items: center; }
.store-txt { display: flex; flex-direction: column; line-height: 1.15; }
.store-top { font-size: 11px; letter-spacing: .5px; opacity: .8; text-transform: uppercase; }
.store-main { font-size: 18px; font-weight: 700; }

.install-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; font-size: 14px; background: var(--bg); }
.install-step .ic { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#f97316,#ea580c); color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mi-ic { font-size: 17px; }

.brand .logo:has(img), .hero .brand-line .logo:has(img) { background: transparent; box-shadow: none; }

.inst-hero { text-align: center; padding: 4px 0 16px; }
.inst-logo { width: 86px; height: 86px; margin: 0 auto; padding: 7px; border-radius: 26px; background: linear-gradient(135deg,#f97316,#ea580c); box-shadow: 0 12px 28px rgba(249,115,22,.42); display: grid; place-items: center; }
.inst-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 20px; }
.inst-name { font-size: 21px; font-weight: 800; margin-top: 12px; }
.inst-tag { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.inst-feats { border: 1.5px solid var(--border); border-radius: 16px; padding: 6px 14px; margin-bottom: 14px; background: #fff; }
.inst-feat { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.inst-feat:last-child { border-bottom: 0; }
.inst-feat .fc { font-size: 21px; flex: 0 0 auto; }
.inst-feat b { display: block; font-size: 14.5px; line-height: 1.2; }
.inst-feat span { font-size: 12.5px; color: var(--text-2); }
.inst-steps { margin-bottom: 6px; }
.inst-steps-t { font-size: 13.5px; font-weight: 700; text-align: center; margin-bottom: 10px; color: var(--text-2); }
#inst-yes { box-shadow: 0 8px 20px rgba(249,115,22,.35); }

.inst-logo { background: #fff; border: 2px solid #fed7aa; }
.inst-logo img { background: #fff; }
.desktop-nav .brand .logo:has(img) { background: transparent; box-shadow: none; width: auto; height: 42px; }
.desktop-nav .brand .logo:has(img) img { width: auto; height: 100%; object-fit: contain; border-radius: 0; }
.hero .brand-line .logo:has(img) { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); width: auto; height: 48px; padding: 5px 8px; border-radius: 12px; }
.hero .brand-line .logo:has(img) img { width: auto; height: 100%; object-fit: contain; border-radius: 6px; }
.hero .brand-line .brand-text { font-size: 19px; font-weight: 800; }

.g-signin { display: flex; justify-content: center; margin: 14px 0 2px; }
.or-divider { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; color: var(--text-3); font-size: 12.5px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.cart-bar { position: fixed; left: 12px; right: 12px; bottom: 78px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.cart-bar .cb-info { display: flex; flex-direction: column; min-width: 0; }
.cart-bar .cb-info b { font-size: 15px; }
.cart-bar .cb-info span { color: var(--text-3); font-size: 13px; }
.cart-bar .btn { flex-shrink: 0; }
@media (min-width: 768px) { .cart-bar { left: auto; right: 24px; bottom: 24px; min-width: 260px; } }

/* ---------- In-app notification banner ---------- */
.notif-banner { display: flex; align-items: flex-start; gap: 10px; background: #fff; color: var(--text-1); border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); animation: slideDown .25s; }
.notif-banner .nb-ic { font-size: 20px; line-height: 1.2; }
.notif-banner .nb-body { flex: 1; min-width: 0; }
.notif-banner .nb-body b { font-size: 14px; }
.notif-banner .nb-txt { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.notif-banner .nb-x { border: 0; background: transparent; color: var(--text-3); font-size: 14px; cursor: pointer; padding: 2px 4px; }

/* ---------- Vendor new-order accept flow ---------- */
.new-order { border: 2px solid var(--primary) !important; box-shadow: 0 8px 24px rgba(255, 99, 71, .15); animation: slideDown .3s; }
.no-badge { background: var(--primary); color: #fff; font-weight: 700; font-size: 12.5px; padding: 6px 10px; border-radius: 10px; margin-bottom: 10px; display: inline-block; }

/* ---------- Vendor plan picker ---------- */
.plan-card { border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; transition: .15s; }
.plan-card:has(input:checked), .plan-card.selected { border-color: var(--primary); background: var(--primary-soft); }
.plan-card input[type="radio"] { accent-color: var(--primary); }
.plan-feats { color: var(--text-3); }

/* ---------- Master product picker & price dashboard ---------- */
.mp-drop { max-height: 210px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; margin-top: 6px; background: #fff; }
.mp-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; cursor: pointer; border-bottom: 1px solid var(--border); }
.mp-item:last-child { border-bottom: 0; }
.mp-item:hover, .mp-item.selected { background: var(--primary-soft); }
.mp-thumb { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--primary-soft); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.mp-thumb.lg { width: 46px; height: 46px; font-size: 24px; }
.mp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mp-name { flex: 1; font-weight: 600; font-size: 14px; }
.mp-empty { padding: 12px; color: var(--text-3); font-size: 13px; }
.dash-offer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; margin-top: 6px; }
.dash-offer.low { border-color: var(--success); background: #f0fdf4; }
.dash-store { font-weight: 600; font-size: 13.5px; }
.dash-price { font-weight: 700; }

/* ---------- Book a ride ---------- */
.rk-type { flex-wrap: wrap; }
.rk-type button { display: flex; flex-direction: column; gap: 3px; padding: 12px 6px; line-height: 1.25; }
.rk-type button b { font-size: 14px; }
.rk-type .rk-sub { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.ride-fare { text-align: center; }
.ride-fare .rk-fare-amount { font-size: 40px; font-weight: 800; line-height: 1.15; }
.ride-fare .rk-fare-break { font-size: 13.5px; opacity: .9; }

/* ---------- UPI ---------- */
.hidden { display: none !important; }
.upi-qr-wrap { display: flex; justify-content: center; padding: 10px 0 4px; }
.upi-qr-wrap img { background: #fff; border: 1.5px solid var(--border); box-shadow: 0 4px 14px rgba(15,23,42,.08); }

/* ---------- Area bar & store tags ---------- */
.area-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; }
.area-lbl { font-size: 13px; font-weight: 700; color: var(--text-3); margin-right: 2px; white-space: nowrap; }
.area-chip { border: 1.5px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: all .15s; }
.area-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.store-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--primary-dark); background: var(--primary-soft); border-radius: 999px; padding: 3px 10px; }
.store-tag img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }

/* ================= BLINKIT RESKIN v15 ================= */
.btn-primary { background: var(--primary); box-shadow: none; }
.btn-primary:hover { background: var(--primary-dark); filter: none; }
.desktop-nav { background: #fff; border-bottom: 1px solid var(--border); }
.desktop-nav .brand .logo { background: var(--yellow); box-shadow: none; }
.desktop-nav .nav-links a.on, .desktop-nav .nav-links a:hover { color: var(--primary-dark); background: var(--primary-soft); }
.nav-avatar.cart { background: var(--yellow); color: #1f1f1f; }
.mobile-nav a.on { color: var(--primary); }

/* --- Yellow hero banner --- */
.hero { background: var(--yellow); color: #1f1f1f; border-radius: 0 0 18px 18px; padding: 24px 18px 52px; }
.hero::after, .hero::before { display: none; }
.hero .brand-line .logo { background: rgba(31,31,31,.08); }
.hero h1 { color: #1f1f1f; font-weight: 800; }
.hero p { color: #4a4a4a; }
.hero-search { border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.hero-search button { background: var(--primary); border-radius: 10px; }
.hero-chips a { background: rgba(255,255,255,.75); border-color: rgba(31,31,31,.12); color: #1f1f1f; }
.hero-chips a:hover { background: #fff; }

/* --- Category tiles (round) --- */
.cat-chip .ic { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--border); box-shadow: none; transition: .15s; }
.cat-chip:hover .ic { border-color: var(--primary); transform: translateY(-2px); }
.cat-chip span { color: var(--text-2); }

/* --- ADD button (Blinkit pill) --- */
.add-btn { width: auto; min-width: 78px; height: 32px; padding: 0 16px; border-radius: 8px;
  background: #fff; color: var(--primary); border: 1.5px solid var(--primary);
  font-size: 13px; font-weight: 800; letter-spacing: .5px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(12,131,31,.14); transition: .15s; flex: 0 0 auto; }
.add-btn:hover { background: var(--primary); color: #fff; }

/* --- Quantity stepper --- */
.pqr { display: inline-flex; align-items: center; justify-content: space-between; min-width: 78px; height: 32px;
  background: var(--primary); border-radius: 8px; padding: 0 2px; flex: 0 0 auto; }
.step-btn { width: 28px; height: 28px; border: 0; background: transparent; color: #fff; font-size: 17px; font-weight: 800; line-height: 1; display: grid; place-items: center; }
.step-btn:active { background: rgba(255,255,255,.18); border-radius: 6px; }
.pqr b { color: #fff; font-size: 13.5px; min-width: 20px; text-align: center; }

/* --- Product rows (flat cards) --- */
.menu-cat .card { border: 1px solid var(--border); box-shadow: none; border-radius: var(--radius); }
.product-row { align-items: center; }
.product-row .pi { width: 68px; height: 68px; border-radius: 10px; background: #fafafa; border: 1px solid var(--border); }
.product-row .price { color: var(--text); }

/* --- Horizontal product rail + vertical card --- */
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.p-card { flex: 0 0 156px; width: 156px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; }
.p-card .pim { height: 108px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; font-size: 36px; background: #fff; margin-bottom: 8px; }
.p-card .pim img { max-width: 100%; max-height: 100%; object-fit: contain; }
.p-card .pn { font-size: 13px; font-weight: 600; line-height: 1.3; height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.p-card .pu { color: var(--text-3); font-size: 11.5px; margin-top: 2px; }
.p-card .prow2 { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; gap: 6px; }
.p-card .pp { font-weight: 700; font-size: 13.5px; color: var(--text); white-space: nowrap; }
.p-card .pp .mrp { color: var(--text-3); font-weight: 500; text-decoration: line-through; font-size: 11px; margin-left: 4px; }
.p-card .addwrap { margin-left: auto; }

/* --- Misc accents --- */
.chip-orange { background: #fdf3d7; color: #8a6d1a; }
.rating-pill { background: var(--success); }
.service-card:hover { border-color: var(--primary); }
.spinner { border: 3px solid rgba(31,31,31,.15); border-top-color: var(--primary); }

/* ================= v16 ADDITIONS ================= */
.deliv-pill { display: inline-flex; align-items: center; gap: 6px; background: #0c831f; color: #fff;
  font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; margin-top: 14px; position: relative; z-index: 2; }

/* Category photo band */
.band-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .band-grid { grid-template-columns: repeat(3, 1fr); } }
.band-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px; transition: .15s; }
.band-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.band-card b { font-size: 13.5px; line-height: 1.3; }
.band-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.band-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #fafafa; }
.band-photos .ph { width: 100%; aspect-ratio: 1; border-radius: 8px; background: #f4f4f4; display: grid; place-items: center; font-size: 18px; }

/* Premium store banner rail */
.prem-rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.prem-rail::-webkit-scrollbar { display: none; }
.prem-card { flex: 0 0 250px; border: 1.5px solid var(--yellow); border-radius: 14px; overflow: hidden;
  background: #fff; position: relative; box-shadow: var(--shadow); }
.prem-card .pb { height: 110px; background: #fafafa; display: grid; place-items: center; font-size: 40px; }
.prem-card .pb img { width: 100%; height: 100%; object-fit: cover; }
.prem-card .pbody { padding: 10px 12px 12px; }
.prem-card .pbody b { font-size: 14px; display: block; }
.prem-chip { position: absolute; top: 10px; left: 10px; background: var(--yellow); color: #1f1f1f;
  font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; z-index: 1; }

/* Deal badge */
.deal-badge { position: absolute; top: 8px; right: 8px; background: var(--danger); color: #fff;
  font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; letter-spacing: .3px; }

/* --- FIX: ADD button overlapping price --- */
.p-card { position: relative; width: 168px; flex: 0 0 168px; }
.prow2 { flex-wrap: nowrap; align-items: center; gap: 6px; }
.pp { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pp .mrp { display: none; }
.addwrap { display: inline-flex; flex: 0 0 auto; max-width: 100%; }
.p-card .add-btn, .p-card .pqr { min-width: 70px; height: 30px; padding: 0 10px; letter-spacing: 0; font-size: 12.5px; }
.product-row .addwrap { margin-left: 10px; }
.product-row .info { min-width: 0; }

/* Footer credit */
.site-credit { text-align: center; font-size: 12px; color: #687382; padding: 22px 16px calc(78px + env(safe-area-inset-bottom)); background: transparent; }
.site-credit b { color: #0c831f; font-weight: 700; }

/* Store product grid */
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 16px 4px; }
@media (min-width: 900px) { .p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.view-all { display: block; margin: 10px auto 0; }

.store-toolbar{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.store-toolbar .input{width:100%;padding:12px 14px;border-radius:12px;border:1.5px solid var(--line,#e8e8e8);font-size:14.5px;background:#fff}
.pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;padding:0 2px 8px}
.pager button[disabled]{opacity:.4;pointer-events:none}

.p-grid .p-card{width:auto;flex:1 1 auto}
.bp-card{background:#fff;border:1px solid var(--border,#e8e8e8);border-radius:12px;padding:10px;display:flex;flex-direction:column}
.bp-imgwrap{position:relative;aspect-ratio:1/1;display:grid;place-items:center;margin-bottom:14px}
.bp-imgwrap img{max-width:92%;max-height:92%;object-fit:contain}
.bp-addwrap{margin-top:auto;padding-top:8px;display:flex;justify-content:flex-end}
.bp-name{font-size:13.5px;font-weight:600;line-height:1.35;height:37px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.bp-unit{color:var(--text-3,#7b817e);font-size:12px;margin-top:2px}
.bp-off{color:#318616;font-size:11.5px;font-weight:700;margin-top:3px}
.bp-priceline{display:flex;align-items:center;margin-top:4px;font-weight:700;font-size:14px}
.cat-layout{display:flex;gap:16px;align-items:flex-start;padding:0 16px}
.cat-side{display:none;width:195px;flex-shrink:0;position:sticky;top:74px;background:#fff;border:1px solid var(--border,#e8e8e8);border-radius:12px;padding:6px}
.cat-side button{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:9px 11px;border:none;background:none;font-size:13px;color:#5b605e;border-radius:8px;text-align:left;cursor:pointer}
.cat-side button.on{background:#f2f7f2;color:#0c831f;font-weight:700}
.cat-side button b{font-weight:600;color:#a8aba0;font-size:12px}
.cat-body{flex:1;min-width:0}
@media(min-width:1000px){.cat-side{display:block}.store-toolbar .filter-bar{display:none}}

.store-title{align-items:flex-end}
.store-title .nm{line-height:1.25;word-break:break-word}
.bp-card{position:relative}
.bp-card .deal-badge{position:absolute;top:8px;left:8px;background:#318616;color:#fff;font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:6px;z-index:3}
#st-tabs{background:#fff;border:1px solid var(--border,#e8e8e8);border-radius:14px;padding:6px;gap:6px;box-shadow:0 1px 4px rgba(0,0,0,.04)}
#st-tabs button{flex:1;border-radius:10px;font-weight:700;font-size:13.5px}
.vwrap{position:relative;display:flex;width:100%}
.vwrap .input{width:100%;padding-right:38px}
.s-mic{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:none;background:none;font-size:17px;padding:4px;cursor:pointer;line-height:1}
.s-mic.rec{animation:micpulse 1s infinite}
@keyframes micpulse{0%,100%{opacity:1}50%{opacity:.35}}
#lang-seg{margin-left:auto}
