/* ============ Jhatpat Go Now — Blinkit-jaisi green-yellow theme ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, 'Segoe UI', Roboto, sans-serif; background: #f7f8f7; color: #1d2418; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  background: #0c831f; color: #fff; padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.logo { font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: .3px; white-space: nowrap; }
.search { flex: 1; max-width: 560px; }
.search input {
  width: 100%; padding: 11px 16px; border: none; border-radius: 10px;
  font-size: 15px; background: #fff; color: #333;
}
.search input:focus { outline: 3px solid #f4cb30; }
.cart-btn {
  color: #fff; text-decoration: none; font-weight: 700;
  background: rgba(255,255,255,.15); padding: 10px 16px; border-radius: 10px; white-space: nowrap;
}
.cart-btn:hover { background: rgba(255,255,255,.28); }
.badge {
  background: #f4cb30; color: #0c831f; border-radius: 999px;
  font-size: 12px; padding: 1px 8px; margin-left: 6px; font-weight: 800;
}

/* Category chips */
.cats {
  display: flex; gap: 10px; overflow-x: auto; padding: 14px 20px;
  background: #fff; border-bottom: 1px solid #e6e8e4; scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  text-decoration: none; color: #3a4534; background: #f2f4f1;
  padding: 8px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; font-weight: 600;
}
.cats a.active { background: #e7f6e9; color: #0c831f; border: 1.5px solid #0c831f; }

/* Layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 22px 20px 60px; }
.wrap.narrow { max-width: 640px; }
.wrap.center { text-align: center; }
.sec-title { font-size: 20px; margin-bottom: 16px; }

/* Product grid */
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.card {
  background: #fff; border: 1px solid #e9ebe7; border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; gap: 6px; text-align: center;
}
.p-emoji { font-size: 44px; line-height: 1.2; }
.p-name { font-size: 14px; font-weight: 600; min-height: 38px; }
.p-shop { font-size: 11px; color: #6d7767; margin-top: -3px; }
.p-unit { font-size: 12px; color: #7a8574; }
.p-price { font-size: 15px; display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.p-price s { color: #9aa394; font-size: 13px; }
.off { color: #0c831f; font-size: 12px; font-weight: 800; }
.add-btn {
  margin-top: 6px; text-decoration: none; border: 1.5px solid #0c831f; color: #0c831f;
  font-weight: 800; padding: 7px 0; border-radius: 8px; font-size: 13px; letter-spacing: .5px;
}
.add-btn:hover { background: #0c831f; color: #fff; }

/* Cart */
.cart-list { background: #fff; border: 1px solid #e9ebe7; border-radius: 14px; overflow: hidden; }
.cart-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid #f0f2ee;
}
.cart-row:last-child { border-bottom: none; }
.c-emoji { font-size: 30px; }
.c-info { flex: 1; }
.c-name { font-weight: 600; font-size: 14px; }
.c-unit { font-size: 12px; color: #7a8574; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty a {
  text-decoration: none; width: 26px; height: 26px; line-height: 24px; text-align: center;
  border: 1.5px solid #0c831f; color: #0c831f; border-radius: 7px; font-weight: 800; font-size: 15px;
}
.qty span { font-weight: 700; min-width: 18px; text-align: center; }
.c-sub { font-weight: 700; min-width: 64px; text-align: right; }
.c-del { color: #c0392b; text-decoration: none; font-size: 15px; padding: 4px 6px; }

/* Bill box */
.bill { background: #fff; border: 1px solid #e9ebe7; border-radius: 14px; padding: 14px 16px; margin: 16px 0; }
.bill .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: #4d5647; }
.bill .row.total { font-weight: 800; color: #1d2418; border-top: 1px dashed #d8dcd6; margin-top: 6px; padding-top: 10px; }
.hint { color: #0c831f; font-size: 13px; font-weight: 600; }

/* Buttons */
.cta {
  display: inline-block; background: #0c831f; color: #fff; text-decoration: none;
  font-weight: 800; padding: 12px 22px; border-radius: 10px; border: none; font-size: 15px; cursor: pointer;
}
.cta:hover { background: #0a6f1a; }
.cta.big { width: 100%; text-align: center; font-size: 16px; padding: 14px; }
.clear { display: block; text-align: center; margin-top: 12px; color: #c0392b; font-size: 13px; text-decoration: none; }
.empty, .empty-cart { text-align: center; padding: 40px 0; color: #7a8574; font-size: 16px; }
.err { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }

/* Checkout */
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.checkout-form label { font-size: 13px; font-weight: 700; color: #4d5647; display: flex; flex-direction: column; gap: 6px; }
.checkout-form input, .checkout-form textarea {
  padding: 12px 14px; border: 1.5px solid #d8dcd6; border-radius: 10px; font-size: 15px; font-family: inherit;
}
.checkout-form input:focus, .checkout-form textarea:focus { outline: 3px solid #f4cb30; border-color: #0c831f; }

/* Success */
.success { background: #fff; border: 1px solid #e9ebe7; border-radius: 16px; padding: 40px 24px; }
.big-emoji { font-size: 64px; margin-bottom: 10px; }
.success p { margin: 6px 0; font-size: 15px; }
.success .cta { margin-top: 18px; }

/* User area (topbar) */
.user-area { display: flex; gap: 8px; align-items: center; }
.user-link { color: #eafbe7; text-decoration: none; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.user-link:hover { text-decoration: underline; }

/* Auth pages */
.auth-card { background: #fff; border: 1px solid #e9ebe7; border-radius: 16px; padding: 26px; margin-top: 10px; }
.auth-card h2 { margin-bottom: 6px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.auth-form label { font-size: 13px; font-weight: 700; color: #4d5647; display: flex; flex-direction: column; gap: 6px; }
.auth-form input { padding: 12px 14px; border: 1.5px solid #d8dcd6; border-radius: 10px; font-size: 15px; }
.auth-form input:focus { outline: 3px solid #f4cb30; border-color: #0c831f; }
.auth-switch { margin-top: 16px; text-align: center; font-size: 13.5px; color: #7a8574; }
.auth-switch a { color: #0c831f; font-weight: 700; }
.dim-sub { font-size: 13.5px; color: #7a8574; margin-bottom: 6px; }
.dim-sub a { color: #0c831f; font-weight: 700; }

/* Coupon box */
.coupon-box { background: #fff; border: 1.5px dashed #b7d8bb; border-radius: 12px; padding: 12px 14px; margin: 14px 0; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input {
  flex: 1; padding: 10px 12px; border: 1.5px solid #d8dcd6; border-radius: 9px;
  font-size: 14.5px; text-transform: uppercase; letter-spacing: .5px;
}
.coupon-form input:focus { outline: 3px solid #f4cb30; border-color: #0c831f; }
.apply-btn {
  background: #f4cb30; color: #123018; border: none; font-weight: 800;
  padding: 10px 18px; border-radius: 9px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.coupon-applied {
  display: flex; justify-content: space-between; align-items: center;
  background: #e7f6e9; border-radius: 9px; padding: 10px 12px; font-size: 14.5px;
}
.coupon-applied .green, .green { color: #0c831f; }
.green-row { color: #0c831f !important; font-weight: 700; }
.err.small { padding: 6px 2px 0; margin: 0; border: none; background: none; font-size: 13px; }

/* Status pills (my orders) */
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status.placed { background: #fdf1d0; color: #8a6d00; }
.status.packed { background: #e0ecff; color: #1a56b0; }
.status.out-for-delivery { background: #ffe8d0; color: #a34d00; }
.status.delivered { background: #ddf4e0; color: #0c831f; }
.status.cancelled { background: #fde0dc; color: #b3261e; }

/* My orders */
.order-card { background: #fff; border: 1px solid #e9ebe7; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.coupon-tag { background: #fdf1d0; color: #8a6d00; border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 2px 9px; margin-left: 4px; }
.order-items { list-style: none; font-size: 13.5px; color: #4d5647; }
.order-items li { padding: 3px 0; display: flex; justify-content: space-between; border-bottom: 1px dashed #f0f2ee; }
.order-items li:last-child { border-bottom: none; }
.order-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eef1ed; margin-top: 8px; padding-top: 8px; font-size: 14.5px; }

/* Location bar */
.loc-bar {
  background: #fff; border-bottom: 1px solid #e6e8e4; padding: 8px 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px;
}
.loc-ok { color: #0c831f; font-weight: 600; }
.loc-ask { color: #4d5647; font-weight: 600; }
.loc-form { display: flex; gap: 6px; }
.loc-form input {
  padding: 7px 10px; border: 1.5px solid #d8dcd6; border-radius: 8px; width: 130px; font-size: 13.5px;
}
.loc-form button {
  background: #0c831f; color: #fff; border: none; border-radius: 8px;
  padding: 7px 14px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit;
}
.loc-change { color: #0c831f; font-weight: 700; text-decoration: none; margin-left: auto; }
.loc-msg.ok { color: #0c831f; font-weight: 600; }
.loc-msg.bad { color: #b3261e; font-weight: 600; }

/* Search autocomplete dropdown */
.search { position: relative; }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); display: none;
  z-index: 60; overflow: hidden; border: 1px solid #e6e8e4;
}
.suggest a {
  display: flex; gap: 10px; align-items: center; padding: 10px 13px;
  text-decoration: none; color: #1d2418; font-size: 13.5px;
}
.suggest a:hover { background: #e7f6e9; }
.s-emoji { font-size: 20px; }
.s-name { flex: 1; }
.s-price { color: #0c831f; font-weight: 700; font-size: 12.5px; }

/* Payment select */
.pay-select { display: flex; flex-direction: column; gap: 8px; }
.pay-title { font-size: 13px; font-weight: 700; color: #4d5647; }
.pay-opt {
  display: flex; gap: 10px; align-items: center; border: 1.5px solid #d8dcd6;
  border-radius: 10px; padding: 12px 14px; font-size: 14.5px; cursor: pointer; font-weight: 600;
}
.pay-opt:has(input:checked) { border-color: #0c831f; background: #e7f6e9; }
.pay-opt input { width: auto; accent-color: #0c831f; }
.pay-card { background: #fff; border: 1px solid #e9ebe7; border-radius: 16px; padding: 30px 24px; }
.pay-card h2 { margin-bottom: 6px; }
.pay-card .cta { margin: 18px 0 10px; }

/* Order tracking timeline */
.timeline { display: flex; margin: 18px 0 20px; }
.t-step { flex: 1; text-align: center; position: relative; font-size: 11.5px; color: #8a9384; font-weight: 600; }
.t-step .dot {
  width: 28px; height: 28px; border-radius: 50%; background: #e4e8e2; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center; font-size: 14px; position: relative; z-index: 1;
}
.t-step.done .dot { background: #0c831f; color: #fff; }
.t-step.current .dot { background: #f4cb30; box-shadow: 0 0 0 4px rgba(244,203,48,.35); }
.t-step.done, .t-step.current { color: #1d2418; font-weight: 800; }
.t-step::before {
  content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: #e4e8e2;
}
.t-step:first-child::before { display: none; }
.t-step.done::before, .t-step.current::before { background: #0c831f; }
.cancel-note {
  background: #fdecea; border: 1px solid #f5c6c2; color: #b3261e;
  padding: 12px 14px; border-radius: 10px; font-size: 14px; margin: 10px 0;
}

/* OTP login */
.otp-demo {
  background: #fdf6e0; border: 1.5px dashed #d9b53c; color: #8a6d00;
  padding: 12px; border-radius: 10px; font-size: 14px; text-align: center; margin: 10px 0;
}
.link-btn {
  background: none; border: none; color: #0c831f; font-weight: 700; cursor: pointer;
  font-size: inherit; padding: 0; text-decoration: underline;
}
.two-col-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.track-form { margin-bottom: 18px; }
.track-line { margin: 0 0 8px; font-size: 13.5px; }
.track-line a { color: #0c831f; font-weight: 700; text-decoration: none; }
.track-line a:hover { text-decoration: underline; }
.center-text { text-align: center; }

/* Store layout: sidebar + sections */
.store-layout { display: flex; gap: 18px; align-items: flex-start; max-width: 1200px; margin: 0 auto; }
.side-cats {
  width: 220px; flex-shrink: 0; background: #fff; border: 1px solid #e9ebe7;
  border-radius: 14px; padding: 10px; position: sticky; top: 74px; max-height: calc(100vh - 90px); overflow-y: auto;
}
.side-cats a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; text-decoration: none; color: #3a4534; font-size: 13.5px; font-weight: 600;
}
.side-cats a:hover { background: #f2f4f1; }
.side-cats a.active { background: #e7f6e9; color: #0c831f; }
.sc-emoji { font-size: 18px; }
.sc-name { flex: 1; }
.sc-count {
  font-size: 11px; background: #f0f3ee; border-radius: 999px; padding: 1px 7px; color: #8a9384; font-weight: 700;
}
.store-main { flex: 1; min-width: 0; }
.sec-header { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 12px; gap: 10px; }
.sec-header:first-of-type { margin-top: 4px; }
.sec-header h2 { font-size: 18px; }
.sec-count { font-size: 13px; color: #8a9384; font-weight: 600; }
.sec-header a { font-size: 13px; color: #0c831f; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sec-header a:hover { text-decoration: underline; }
.p-emoji-link { text-decoration: none; font-size: 44px; line-height: 1.2; }

@media (max-width: 900px) {
  .store-layout { flex-direction: column; }
  .side-cats { display: none; }
  .sec-header h2 { font-size: 16px; }
}
@media (min-width: 901px) {
  .cats { display: none; }
}

/* Size-wise variants */
.pd-unit-chip { display: inline-block; background: #e8f5e9; color: #1b5e20; border-radius: 8px; padding: 5px 12px; font-size: 13.5px; font-weight: 600; margin: 8px 0 2px; }
.variant-box { background: #f7f8f7; border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.v-title { font-size: 13.5px; font-weight: 800; color: #3c4436; margin-bottom: 10px; }
.variant-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.v-chip { border: 2px solid #d8dcd6; border-radius: 10px; padding: 7px 12px; cursor: pointer; display: flex; flex-direction: column; min-width: 86px; font-size: 12.5px; }
.v-chip input { display: none; }
.v-chip.sel { border-color: #0c831f; background: #edf7ee; }
.v-chip b { color: #3c4436; }
.v-chip span { color: #0c831f; font-weight: 800; }
.from-tag { font-size: 10.5px; color: #6d7767; font-weight: 700; margin-left: 2px; }
.v-count { font-size: 10.5px; color: #6d7767; }
.add-btn.alt { background: #fff; border: 1.5px solid #0c831f; color: #0c831f; }

/* Ratings & stock */
.p-rating { font-size: 11.5px; color: #6d7767; }
.p-rating .stars { color: #e8a200; letter-spacing: 1px; }
.pd-rating { font-size: 14.5px; margin-bottom: 10px; }
.pd-rating .stars { color: #e8a200; font-size: 17px; letter-spacing: 1.5px; }
.stock-low { font-size: 11px; color: #a34d00; font-weight: 700; background: #ffe8d0; border-radius: 6px; padding: 2px 6px; }
.stock-out { font-size: 11px; color: #b3261e; font-weight: 700; background: #fde0dc; border-radius: 6px; padding: 2px 6px; }
.add-btn.out { border-color: #c9cfc7; color: #b9bfb7; cursor: not-allowed; }

/* Reviews */
.review-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.star-pick { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; color: #4d5647; }
.star-radio { display: flex; gap: 4px; cursor: pointer; }
.star-radio input { display: none; }
.star-radio span { color: #d8dcd6; font-size: 16px; letter-spacing: 1px; }
.star-radio:hover span, .star-radio input:checked + span { color: #e8a200; }
.review-form textarea { padding: 10px 12px; border: 1.5px solid #d8dcd6; border-radius: 10px; font-size: 14px; font-family: inherit; }
.review-list { display: flex; flex-direction: column; gap: 10px; }
.review-card { background: #f7f8f7; border-radius: 10px; padding: 10px 14px; }
.review-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.review-head .stars { color: #e8a200; letter-spacing: 1px; }
.review-card p { font-size: 13.5px; color: #3c4436; margin-top: 4px; }

/* Product detail page */
.crumbs { font-size: 13px; color: #8a9384; margin-bottom: 14px; }
.crumbs a { color: #0c831f; font-weight: 700; text-decoration: none; }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; background: #fff; border: 1px solid #e9ebe7; border-radius: 16px; padding: 22px; }
.pd-main-img { border-radius: 14px; overflow: hidden; background: #f2f6f0; }
.pd-main-img img { width: 100%; display: block; }
.pd-noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; }
.pd-noimg span { font-size: 120px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.pd-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2.5px solid transparent; }
.pd-thumbs img.sel, .pd-thumbs img:hover { border-color: #0c831f; }
.pd-info h1 { font-size: 26px; margin-bottom: 6px; }
.pd-shop { color: #6d7767; font-size: 14px; margin-bottom: 12px; }
.pd-price { font-size: 26px; display: flex; gap: 10px; align-items: center; }
.pd-price s { color: #9aa394; font-size: 18px; }
.pd-price .off { font-size: 15px; }
.pd-qty { display: flex; gap: 12px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.pd-qty span { font-size: 14px; font-weight: 700; color: #4d5647; }
.pd-qty select { padding: 10px 12px; border-radius: 9px; border: 1.5px solid #d8dcd6; font-size: 15px; }
.pd-usps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; font-size: 13.5px; color: #4d5647; background: #f4f8f3; border-radius: 12px; padding: 14px; }
.pd-usps div { padding: 4px 0; }
.pd-desc { background: #fff; border: 1px solid #e9ebe7; border-radius: 16px; padding: 22px; margin-top: 20px; }
.pd-desc h2 { font-size: 17px; margin-bottom: 10px; }
.pd-desc p { font-size: 14.5px; line-height: 1.7; color: #3c4436; }
.pd-specs { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13.5px; }
.pd-specs th, .pd-specs td { text-align: left; padding: 8px 10px; border-bottom: 1px dashed #e8ece6; }
.pd-specs th { color: #6d7767; width: 160px; font-weight: 700; }
.pd-link { color: #1d2418; text-decoration: none; }
.pd-link:hover { color: #0c831f; text-decoration: underline; }

@media (max-width: 700px) {
  .pd { grid-template-columns: 1fr; }
  .pd-usps { grid-template-columns: 1fr; }
}

/* Footer */
.footer { text-align: center; padding: 18px; color: #8a9384; font-size: 12.5px; border-top: 1px solid #e6e8e4; }

@media (max-width: 600px) {
  .search { max-width: none; }
  .topbar { flex-wrap: wrap; }
  .cart-btn { margin-left: auto; }
  .c-sub { min-width: 52px; }
}

/* Card stepper (Blinkit-style) */
.qty-stepper { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: #edf7ee; border: 1.5px solid #0c831f; border-radius: 10px; padding: 3px 6px; }
.qty-stepper .qs-btn { background: #0c831f; color: #fff; border: none; width: 26px; height: 26px; border-radius: 7px; font-size: 16px; line-height: 1; cursor: pointer; font-weight: 700; }
.qty-stepper .qs-btn:hover { background: #0a6b19; }
.qty-stepper .qs-num { font-weight: 800; color: #0c831f; min-width: 20px; text-align: center; font-size: 14.5px; }
button.add-btn { width: 100%; cursor: pointer; }

/* Sticky bottom cart bar */
.cart-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 2.5px solid #0c831f; box-shadow: 0 -4px 16px rgba(0,0,0,.13); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; z-index: 60; animation: slideup .25s; }
.cart-bar.hidden { display: none; }
@keyframes slideup { from { transform: translateY(100%); } }
.cb-left { font-size: 14.5px; color: #3c4436; }
.cb-left b { color: #0a6b19; }
.cb-right { display: flex; gap: 8px; }
.cb-btn { padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; text-decoration: none; background: #edf7ee; color: #0a6b19; border: 1.5px solid #0c831f; }
.cb-btn.go { background: #0c831f; color: #fff; border-color: #0c831f; }
.cb-btn.go:hover { background: #0a6b19; }
@media (min-width: 700px) { .cart-bar { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: 14px 14px 0 0; } .cart-bar.hidden { display: none; } }
body { padding-bottom: 64px; }

.cart-pill { background: #0c831f; color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 11.5px; font-weight: 800; }

/* ============ Mobile responsive (full pass v5) ============ */
@media (max-width: 700px) {
  /* --- Topbar: logo+cart upar, search poori width, links neeche --- */
  .topbar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 10px 12px; }
  .topbar .logo { font-size: 19px; grid-row: 1; grid-column: 1; }
  .topbar .cart-btn { grid-row: 1; grid-column: 2; margin: 0; }
  .topbar .search { grid-row: 2; grid-column: 1 / -1; max-width: none; order: unset; }
  .topbar .user-area { grid-row: 3; grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }
  .topbar .user-link { font-size: 12.5px; padding: 4px 2px; }

  /* --- Cards: 2 column, chhote gap --- */
  .wrap { padding: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .p-emoji-link { font-size: 38px; }
  .card { padding: 10px; }

  /* --- Product page --- */
  .pd { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .pd-main-img img { max-height: 230px; }
  .pd-thumbs { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .pd-thumbs img { width: 56px; height: 56px; flex: 0 0 auto; }
  .pd-qty { flex-wrap: wrap; gap: 10px; }
  .variant-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }

  /* --- Cart/checkout --- */
  .cart-row { flex-wrap: wrap; gap: 10px; }
  .cart-row .c-info { flex: 1 1 55%; }
  .qty a { width: 36px; height: 36px; font-size: 18px; }
  .bill { padding: 12px 14px; }
  .two-col, .two-col-inline { grid-template-columns: 1fr; }

  /* --- Forms: 16px to stop iOS zoom --- */
  input, select, textarea { font-size: 16px !important; }
  .cta.big { padding: 13px; font-size: 15.5px; }
  .auth-card { padding: 18px 16px; }

  /* --- Large touch buttons (for fingers) --- */
  .add-btn, .cb-btn, .s-btn { min-height: 38px; }
  .qs-btn { width: 30px; height: 30px; }

  /* --- Baaki --- */
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .offers-strip { margin: 0 -12px 10px; padding: 0 12px; }
  .rest-banner { padding: 14px; gap: 10px; flex-direction: column; text-align: center; align-items: center; }
  .rest-emoji { font-size: 34px; }
  .share-box { justify-content: center; }
  .review-head { gap: 6px; }
  .flash-msg { margin: 8px 10px; }
}

/* Tablet --- beech ka size --- */
@media (min-width: 701px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* Welcome naam (topbar) */
.welcome { font-size: 13.5px; color: #2c3328; background: #e8f5e9; border: 1.5px solid #a5d6a7; border-radius: 20px; padding: 5px 12px; white-space: nowrap; }
.welcome b { color: #0a6b19; }
.logout-link { color: #b3261e !important; font-weight: 700; }

/* Delivery OTP + driver alert */
.cust-otp { background: #fff3e0; border: 2px dashed #f57c00; border-radius: 12px; padding: 14px 16px; font-size: 15px; margin: 10px 0; }
.cust-otp b { font-size: 22px; letter-spacing: 6px; color: #e65100; }
.otp-notify { background: #e8f5e9; border: 2px dashed #0c831f; border-radius: 12px; padding: 12px 16px; font-size: 16px; margin: 10px 0; }
.drv-alert { position: sticky; top: 0; background: #b3261e; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; z-index: 40; animation: pulse-red 1.2s infinite; }
.drv-alert.hidden { display: none; }
.drv-alert .da-link { color: #fff; font-weight: 800; text-decoration: underline; }
@keyframes pulse-red { 50% { box-shadow: 0 0 0 6px rgba(179,38,30,.25); } }

/* PWA install tip */
.install-tip { position: fixed; bottom: 70px; left: 12px; right: 12px; background: #0a6b19; color: #fff; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; z-index: 70; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.install-tip.hidden { display: none; }

.ver-badge { background: #eef3ee; border-radius: 6px; padding: 2px 8px; font-size: 10.5px; color: #6d7767; font-weight: 700; }

/* Category photos (real image instead of emoji) */
.sc-img { width: 30px; height: 30px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.chip-img { width: 20px; height: 20px; object-fit: cover; border-radius: 50%; vertical-align: -5px; margin-right: 3px; }
.sec-img { width: 28px; height: 28px; object-fit: cover; border-radius: 8px; vertical-align: -7px; margin-right: 4px; }

/* Real photo on the card (instead of emoji) — and the photo is clickable */
.p-img-link { display: block; text-decoration: none; }
.card-img { width: 100%; height: 132px; object-fit: cover; border-radius: 10px; display: block; }

/* ============ Live tracking map (Mapbox / OpenStreetMap) ============ */
.live-map-wrap { background: #fff; border: 1px solid #e9ebe7; border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.lm-head { font-weight: 800; font-size: 14.5px; margin-bottom: 8px; }
.live-map { height: 260px; border-radius: 10px; overflow: hidden; background: #eef1ec; }
.lm-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.lm-wa { background: #25d366; color: #fff; text-decoration: none; font-weight: 700; font-size: 12.5px; padding: 8px 13px; border-radius: 20px; }

/* "Meri location" button (loc-bar me) */
.loc-me { background: #0c831f; color: #fff; border: none; border-radius: 9px; padding: 8px 12px; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.loc-me:disabled { opacity: .6; }

/* store timing strip */
.store-strip { background:#0f1a12; color:#eafbe9; font-size:12.5px; font-weight:700; text-align:center; padding:6px 12px; }
.store-strip.open { background:#0c831f; color:#fff; }
.store-strip.closed { background:#7a1f18; color:#ffe9e6; }
.closed-banner { background:#fdecea; border:2px solid #e57373; color:#b3261e; border-radius:12px; padding:12px 16px; font-size:14px; margin:12px 0; }

/* ===== Ads / Advertisement ===== */
.ad-strip { display:flex; gap:12px; overflow-x:auto; padding:4px 2px 12px; scrollbar-width:none; }
.ad-strip::-webkit-scrollbar { display:none; }
.ad-card { position:relative; flex:0 0 auto; width:300px; background:#fff; border:1.5px solid #e2e6e0; border-radius:14px; overflow:hidden; text-decoration:none; color:inherit; box-shadow:0 3px 12px rgba(20,40,20,.07); }
.ad-card img { width:100%; height:120px; object-fit:cover; display:block; }
.ad-card .ad-body { padding:9px 12px 12px; }
.ad-card .ad-body b { font-size:14px; display:block; }
.ad-card .ad-body span { font-size:12.5px; color:#6b736a; }
.ad-tag { position:absolute; top:8px; right:8px; background:rgba(0,0,0,.6); color:#fff; font-size:10px; font-weight:800; padding:2px 7px; border-radius:6px; letter-spacing:.4px; }
.ad-wide { display:flex; align-items:center; gap:14px; background:linear-gradient(120deg,#eef7ef,#e3f2e5); border:1.5px solid #c9e2cd; border-radius:14px; padding:12px 16px; text-decoration:none; color:inherit; margin:14px 0; position:relative; }
.ad-wide img { width:120px; height:76px; object-fit:cover; border-radius:10px; }
.ad-wide b { font-size:15px; display:block; }
.ad-wide span { font-size:12.5px; color:#55604f; }

/* parcel button */
.parcel-btn { background:#fff4e0; color:#7a5200; border:1.5px solid #f0b429; border-radius:10px; padding:8px 14px; font-weight:800; font-size:13px; text-decoration:none; white-space:nowrap; }
.parcel-tag { display:inline-block; background:#fff4e0; color:#7a5200; border:1px solid #f0b429; font-size:11px; font-weight:800; padding:1px 7px; border-radius:20px; }

/* payment QR */
.qr-wrap { display:flex; align-items:center; gap:14px; justify-content:center; background:#fff; border-radius:12px; padding:12px; margin:10px 0; border:1px solid #e2e6e0; }
.upi-qr { border-radius:10px; display:block; }
.qr-note { font-size:13px; font-weight:700; color:#16241a; }
.paid-btn { background:#0c831f !important; margin-top:8px; }
.upi-id { cursor:pointer; user-select:all; }
.upi-id.copied { opacity:.6; }

.qr-fail-note { display:none; font-size:12.5px; color:#b3261e; font-weight:700; }
.qr-wrap.qr-failed .upi-qr { display:none; }
.qr-wrap.qr-failed .qr-fail-note { display:block; }

/* ============ Mobile responsive (full pass v6 — naye components) ============ */
@media (max-width: 700px) {
  /* Zomato-style home */
  .z-hero { padding: 20px 0 22px; border-radius: 0 0 18px 18px; }
  .z-hero .z-h1 { font-size: 21px; line-height: 1.25; }
  .z-hero .z-sub { font-size: 13px; margin-bottom: 12px; }
  .z-search { padding: 7px 8px; gap: 6px; }
  .z-search .z-loc { font-size: 12.5px; }
  .z-search input { font-size: 15px; padding: 8px 4px; }
  .z-search button { padding: 9px 14px; font-size: 13.5px; }
  .z-tags { gap: 6px; margin-top: 10px; }
  .z-tags span { font-size: 11.5px; padding: 3px 10px; }
  .z-sec { margin: 18px 0 8px; padding: 0 2px; }
  .z-sec h2 { font-size: 17px; }
  .z-mind { gap: 12px; }
  .z-circle { width: 82px; }
  .z-circle .zc-img { width: 82px; height: 82px; font-size: 32px; border-width: 2px; }
  .z-circle .zc-name { font-size: 11.5px; }
  .z-rests { grid-template-columns: 1fr; gap: 12px; }
  .z-rest .zr-img { height: 150px; }
  .z-rest .zr-name { font-size: 15px; }

  /* Ads */
  .ad-card { width: 78vw; max-width: 300px; }
  .ad-card img { height: 100px; }
  .ad-wide { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .ad-wide img { width: 100%; height: 110px; }

  /* Product grid (vendor + customer) */
  .grid-prod { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard .th { height: 105px; }
  .pcard .nm { font-size: 12.5px; }

  /* Tables (orders, settlements, slips) */
  .table, table.tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table th, .table td, table.tbl th, table.tbl td { padding: 8px 9px; font-size: 12.5px; white-space: nowrap; }

  /* Payment boxes + QR */
  .upi-box { padding: 14px; border-radius: 12px; }
  .upi-box h3 { font-size: 15px; }
  .qr-wrap { gap: 10px; padding: 10px; }
  .upi-qr { width: 150px !important; height: 150px !important; }
  .upi-id { font-size: 13px; word-break: break-all; }

  /* Parcel page */
  .pr-hero { padding: 20px 0 22px; }
  .pr-hero h1 { font-size: 22px; }
  .pr-card { padding: 14px; }
  .pr-two { grid-template-columns: 1fr; }
  .pr-fee b, .pr-otp b { font-size: 20px; }

  /* Advertise page */
  .adv-hero { padding: 22px 0 24px; }
  .adv-hero h1 { font-size: 22px; }
  .adv-packs { grid-template-columns: 1fr; gap: 12px; }
  .adv-why { grid-template-columns: 1fr; }

  /* Live map + tracking */
  .live-map { height: 220px; }
  .lm-head { font-size: 13.5px; }
  .lm-foot { flex-direction: column; align-items: stretch; }
  .lm-wa { text-align: center; }
  .eta-box, .cust-otp { font-size: 13.5px; padding: 12px; }
  .cust-otp b { font-size: 19px; letter-spacing: 4px; }

  /* Driver step chips */
  .drv-steps { gap: 6px; }
  .drv-step { font-size: 11px; padding: 3px 9px; }
  .drv-actions { flex-direction: column; align-items: stretch; }
  .drv-actions form { display: flex !important; flex-wrap: wrap; gap: 8px; }
  .drv-actions .cta, .drv-actions .btn-plain { width: 100%; text-align: center; }
  .drv-actions input[type=text] { width: 100% !important; }

  /* Photo manager */
  .pm-grid { gap: 8px; }
  .pm-item { width: calc(50% - 4px); }
  .photo-mgr { padding: 10px; }

  /* Timeline */
  .timeline { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}
@media (max-width: 420px) {
  .grid-prod, .grid { grid-template-columns: repeat(2, 1fr); }
  .z-hero .z-h1 { font-size: 19px; }
  .pm-item { width: 100%; }
  .upi-qr { width: 130px !important; height: 130px !important; }
}

/* Tables: swipe hint on mobile + compact */
@media (max-width: 700px) {
  .table::before, table.tbl::before { content: "👉 Swipe the table sideways to see the full data"; display: block; font-size: 11px; font-weight: 700; color: #8a9384; padding: 2px 2px 8px; white-space: normal; }
  .table th, .table td { padding: 8px 9px !important; font-size: 12.5px !important; }
  .table td.big { font-size: 18px !important; }
  .stats { gap: 8px !important; }
}
