/* Taaza: 30-minute grocery delivery app demo. Fresh, green, clean. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --accent: #10a74a;
  --accent-2: #46cf6d;
  --accent-grad: linear-gradient(135deg, #12b457 0%, #52d27e 100%);
  --ink: #15201a;
  --ink-2: #3f4a44;
  --muted: #8a938d;
  --line: #ecefed;
  --surface: #ffffff;
  --app-bg: #f4f7f4;
  --chip: #eef3ef;
  --mint: #e7f8ee;
  --star: #ffb020;
  --save: #e8512f;
  --shadow-sm: 0 2px 10px rgba(16, 30, 22, 0.05);
  --shadow-md: 0 10px 26px rgba(16, 40, 26, 0.09);
  --shadow-lg: 0 20px 50px rgba(10, 30, 18, 0.16);
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink); background: #0f1512; display: grid; place-items: center; min-height: 100dvh; overflow: hidden;
}
.stage { position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(900px 500px at 15% 8%, #17331f 0%, transparent 60%), radial-gradient(900px 600px at 90% 92%, #122a1a 0%, transparent 55%), #0d130f; }
.stage-hint { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); color: #6f7d72; font-size: 12.5px; font-weight: 500; z-index: 1; }

.phone { position: relative; z-index: 2; width: 392px; height: 836px; background: #0a0d0b; border-radius: 54px; padding: 12px; box-shadow: var(--shadow-lg), 0 0 0 2px #232a25 inset; }
.screen { position: relative; width: 100%; height: 100%; background: var(--app-bg); border-radius: 44px; overflow: hidden; display: flex; flex-direction: column; }
.statusbar { height: 46px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 30px; font-size: 13px; font-weight: 700; color: var(--ink); position: relative; z-index: 6; }
.statusbar.onhero { color: #fff; }
.statusbar .notch { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 118px; height: 26px; background: #0a0d0b; border-radius: 16px; }
.sb-right { display: flex; align-items: center; gap: 6px; }
.sb-right svg { width: 17px; height: 17px; }

#app { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#app > div { flex: 1; min-height: 0; }
.view { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.view::-webkit-scrollbar, .rsheet::-webkit-scrollbar, .track-sheet::-webkit-scrollbar { display: none; }
.pad { padding: 0 18px; }
.gap-bottom { height: 100px; }
.anim-in { animation: slideIn .32s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
button:active { transform: scale(.97); }
img { display: block; }

/* header */
.gro-hero { background: var(--accent-grad); padding: 0 18px 20px; border-radius: 0 0 26px 26px; color: #fff; box-shadow: 0 14px 30px -18px rgba(16, 167, 74, .7); }
.loc-row { display: flex; align-items: center; justify-content: space-between; }
.loc { display: flex; align-items: center; gap: 9px; }
.loc .pin { width: 34px; height: 34px; background: rgba(255,255,255,.18); border-radius: 11px; display: grid; place-items: center; }
.loc .pin svg { width: 18px; height: 18px; }
.loc small { display: block; font-size: 10.5px; opacity: .9; font-weight: 700; letter-spacing: .4px; }
.loc b { font-size: 15px; display: flex; align-items: center; gap: 4px; }
.loc b svg { width: 15px; height: 15px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); display: grid; place-items: center; background: rgba(255,255,255,.2); font-size: 20px; }
.express { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.16); border-radius: 11px; padding: 7px 12px; margin: 15px 0 13px; font-size: 13px; font-weight: 700; }
.express svg { width: 16px; height: 16px; }
.express b { font-weight: 800; }
.searchbar { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 15px; padding: 13px 15px; color: var(--muted); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-md); }
.searchbar svg { width: 19px; height: 19px; color: var(--accent); flex: none; }
.searchbar .mic { margin-left: auto; width: 30px; height: 30px; background: var(--mint); border-radius: 9px; display: grid; place-items: center; }
.searchbar .mic svg { width: 16px; height: 16px; color: var(--accent); }

.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 13px; }
.sec-head h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.3px; display: inline-flex; align-items: center; gap: 7px; }
.sec-head h3 svg { width: 17px; height: 17px; color: var(--accent); }
.sec-head a { color: var(--accent); font-size: 13px; font-weight: 700; }

/* promo */
.promo { margin: 16px 18px 0; border-radius: var(--r-lg); overflow: hidden; position: relative; background: linear-gradient(120deg, #0f3d26 0%, #1c5a38 100%); color: #fff; padding: 18px 20px; min-height: 116px; display: flex; align-items: center; box-shadow: var(--shadow-md); }
.promo .tag { display: inline-block; background: #ffd23f; color: #1a3d1f; font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 7px; letter-spacing: .3px; }
.promo h4 { margin: 8px 0 3px; font-size: 20px; font-weight: 800; line-height: 1.12; letter-spacing: -.3px; }
.promo p { margin: 0; font-size: 12px; opacity: .85; }
.promo .emoji { position: absolute; right: 12px; bottom: 6px; font-size: 76px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); }

/* category grid */
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; padding: 0 18px; }
.catcard { background: var(--surface); border-radius: 16px; padding: 13px 6px 11px; text-align: center; box-shadow: var(--shadow-sm); }
.catcard .ci { width: 46px; height: 46px; margin: 0 auto 7px; border-radius: 14px; display: grid; place-items: center; font-size: 25px; }
.catcard span { font-size: 10.5px; font-weight: 700; color: var(--ink-2); line-height: 1.2; display: block; }

/* product tile (grid) */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 0 18px; }
.hscroll { display: flex; gap: 13px; overflow-x: auto; padding: 0 18px 4px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .ptile { flex: none; width: 150px; }
.ptile { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 10px; position: relative; display: flex; flex-direction: column; }
.ptile .save { position: absolute; top: 8px; left: 8px; background: var(--save); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 7px; z-index: 2; }
.ptile .best { position: absolute; top: 8px; left: 8px; background: #1a3d1f; color: #ffd23f; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 7px; z-index: 2; }
.ptile .pimg { height: 104px; display: grid; place-items: center; background: var(--mint); border-radius: 12px; margin-bottom: 9px; }
.ptile .pimg img { max-width: 82%; max-height: 86%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(16,40,26,.14)); }
.ptile b { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.ptile .unit { color: var(--muted); font-size: 11.5px; font-weight: 600; margin: 2px 0 10px; }
.ptile .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ptile .prc { display: flex; flex-direction: column; line-height: 1.1; }
.ptile .prc b { font-size: 15px; font-weight: 800; }
.ptile .prc s { color: var(--muted); font-size: 11px; font-weight: 600; }
.add-pill { border: 1.5px solid var(--accent); color: var(--accent); background: var(--mint); border-radius: 11px; padding: 7px 15px; font-weight: 800; font-size: 13px; }
.pstep { display: flex; align-items: center; gap: 0; background: var(--accent); border-radius: 11px; overflow: hidden; }
.pstep button { width: 30px; height: 32px; display: grid; place-items: center; color: #fff; }
.pstep button svg { width: 15px; height: 15px; }
.pstep b { color: #fff; font-weight: 800; font-size: 13px; min-width: 18px; text-align: center; }

/* tabbar + cart bar + cta (shared) */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; z-index: 15; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-around; padding-bottom: 6px; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 10.5px; font-weight: 700; width: 64px; position: relative; }
.tab svg { width: 23px; height: 23px; }
.tab.active { color: var(--accent); }
.tab .cnt { position: absolute; top: -5px; right: 12px; background: var(--save); color: #fff; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.cartbar { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 20; background: var(--accent-grad); border-radius: 17px; color: #fff; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 16px 34px -10px rgba(16,167,74,.6); animation: cartUp .34s var(--ease) both; }
.cartbar.with-tabs { bottom: 86px; }
@keyframes cartUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cartbar .ci { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 13.5px; }
.cartbar .badge { width: 28px; height: 28px; background: rgba(255,255,255,.22); border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.cartbar small { display: block; font-size: 11px; opacity: .85; font-weight: 600; }
.cartbar .go { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; }
.cartbar .go svg { width: 17px; height: 17px; }
.cta { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 20; background: var(--accent-grad); color: #fff; border-radius: 17px; padding: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 15.5px; box-shadow: 0 16px 34px -10px rgba(16,167,74,.6); }
.cta.block { position: static; margin: 16px 0 0; width: 100%; }
.cta svg { width: 19px; height: 19px; }

/* plain head */
.plain-head { display: flex; align-items: center; gap: 14px; padding: 6px 18px 10px; }
.circ { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.circ svg { width: 19px; height: 19px; color: var(--ink); }
.circ.sm { width: 38px; height: 38px; }
.plain-head h2 { margin: 0; font-size: 20px; font-weight: 800; }

/* cart */
.freebar { background: var(--surface); border-radius: var(--r-md); padding: 13px 15px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.freebar .ft { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 9px; }
.freebar .ft svg { width: 16px; height: 16px; color: var(--accent); }
.freebar .track { height: 7px; background: var(--chip); border-radius: 5px; overflow: hidden; }
.freebar .fill { height: 100%; background: var(--accent-grad); border-radius: 5px; transition: width .4s var(--ease); }
.citem { display: flex; gap: 13px; align-items: center; background: var(--surface); border-radius: var(--r-md); padding: 10px; margin-bottom: 11px; box-shadow: var(--shadow-sm); }
.citem .ci-img { width: 60px; height: 60px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; flex: none; }
.citem .ci-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.citem .cb { flex: 1; min-width: 0; }
.citem .cb b { font-size: 13.5px; font-weight: 700; display: block; }
.citem .cb small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.citem .cb .price { font-size: 14px; font-weight: 800; margin-top: 3px; display: block; }
.stepper { display: flex; align-items: center; background: var(--accent); border-radius: 11px; overflow: hidden; }
.stepper button { width: 30px; height: 32px; display: grid; place-items: center; color: #fff; }
.stepper button svg { width: 15px; height: 15px; }
.stepper b { color: #fff; font-weight: 800; font-size: 13px; min-width: 20px; text-align: center; }
.promo-in { display: flex; gap: 10px; margin: 14px 0 2px; }
.promo-in input { flex: 1; border: 1.5px dashed #cfdcd3; border-radius: 13px; padding: 12px 14px; font-family: inherit; font-size: 13px; font-weight: 600; background: var(--surface); }
.promo-in input:focus { outline: none; border-color: var(--accent); }
.promo-in button { background: var(--ink); color: #fff; border-radius: 13px; padding: 0 18px; font-weight: 700; font-size: 13px; }
.bill { background: var(--surface); border-radius: var(--r-md); padding: 16px 16px 6px; box-shadow: var(--shadow-sm); margin-top: 6px; }
.bline { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 12px; }
.bline.total { border-top: 1px dashed var(--line); padding-top: 13px; font-size: 16px; font-weight: 800; color: var(--ink); }

/* checkout */
.block-card { background: var(--surface); border-radius: var(--r-md); padding: 15px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.block-card .bh { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.block-card .bh svg { width: 17px; height: 17px; color: var(--accent); }
.addr { display: flex; gap: 12px; align-items: flex-start; }
.addr .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; flex: none; }
.addr .ic svg { width: 19px; height: 19px; color: var(--accent); }
.addr b { font-size: 14px; }
.addr p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.addr .edit { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 12.5px; }
.slot { display: flex; gap: 10px; }
.slotopt { flex: 1; border: 1.5px solid var(--line); border-radius: 13px; padding: 12px 10px; text-align: center; }
.slotopt.sel { border-color: var(--accent); background: var(--mint); }
.slotopt b { font-size: 13px; display: block; }
.slotopt small { color: var(--muted); font-size: 11px; font-weight: 600; }
.slotopt.sel small { color: var(--accent); }
.pay { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 13px; margin-bottom: 10px; width: 100%; text-align: left; }
.pay.sel { border-color: var(--accent); background: var(--mint); }
.pay .picon { width: 42px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }
.pay b { font-size: 13.5px; }
.pay small { color: var(--muted); font-size: 11.5px; font-weight: 500; display: block; }
.pay .radio { margin-left: auto; width: 21px; height: 21px; border-radius: 50%; border: 2px solid #ccd6cf; display: grid; place-items: center; }
.pay.sel .radio { border-color: var(--accent); }
.pay.sel .radio::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }

/* order tracking */
.track-map { height: 230px; position: relative; flex: none; background: linear-gradient(160deg, #d9f0e0, #cfe8f5); overflow: hidden; }
.track-map svg.roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.track-map .rider { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-grad); display: grid; place-items: center; box-shadow: var(--shadow-md); border: 3px solid #fff; offset-path: path('M 40 205 C 120 120, 180 180, 250 90 S 340 44, 352 36'); animation: ride 7s var(--ease) infinite alternate; z-index: 3; }
.track-map .rider svg { width: 24px; height: 24px; color: #fff; }
@keyframes ride { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.track-map .home-pin, .track-map .shop-pin { position: absolute; width: 36px; height: 36px; border-radius: 50% 50% 50% 2px; display: grid; place-items: center; color: #fff; transform: rotate(45deg); box-shadow: var(--shadow-sm); }
.track-map .home-pin { right: 30px; top: 18px; background: var(--ink); }
.track-map .shop-pin { left: 26px; bottom: 22px; background: var(--accent); }
.track-map .home-pin svg, .track-map .shop-pin svg { transform: rotate(-45deg); width: 18px; height: 18px; }
.track-sheet { margin-top: -26px; background: var(--app-bg); border-radius: 26px 26px 0 0; position: relative; z-index: 4; padding: 20px 18px 0; flex: 1; overflow-y: auto; }
.eta-card { background: var(--accent-grad); color: #fff; border-radius: var(--r-md); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-md); }
.eta-card .l small { opacity: .85; font-size: 12px; font-weight: 600; }
.eta-card .l b { font-size: 24px; font-weight: 800; display: block; letter-spacing: -.5px; }
.eta-card .ring { width: 52px; height: 52px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { margin: 22px 0 6px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 22px; position: relative; }
.step::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: -4px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .sdot { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; flex: none; z-index: 1; }
.step .sdot svg { width: 15px; height: 15px; color: var(--muted); }
.step.done .sdot { background: var(--accent); border-color: var(--accent); }
.step.done .sdot svg { color: #fff; }
.step.active .sdot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(16,167,74,.16); }
.step.active .sdot svg { color: #fff; }
.step .st b { font-size: 14px; font-weight: 700; }
.step .st small { color: var(--muted); font-size: 12px; font-weight: 500; display: block; margin-top: 2px; }
.step.active .st b { color: var(--accent); }
.rider-card { display: flex; align-items: center; gap: 13px; background: var(--surface); border-radius: var(--r-md); padding: 13px; box-shadow: var(--shadow-sm); margin: 6px 0 20px; }
.rider-card .rav { width: 50px; height: 50px; border-radius: 50%; background: var(--accent-grad); display: grid; place-items: center; font-size: 24px; flex: none; }
.rider-card .rc { flex: 1; }
.rider-card .rc b { font-size: 14px; }
.rider-card .rc small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 4px; font-weight: 600; }
.rider-card .rc small svg { width: 12px; height: 12px; color: var(--star); }
.rider-card .call { width: 42px; height: 42px; border-radius: 13px; background: var(--mint); display: grid; place-items: center; }
.rider-card .call svg { width: 19px; height: 19px; color: var(--accent); }

/* category screen list */
.catrow { display: flex; gap: 12px; align-items: center; padding: 11px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-sm); margin-bottom: 11px; }
.catrow .ci { width: 48px; height: 48px; border-radius: 13px; background: var(--mint); display: grid; place-items: center; font-size: 25px; flex: none; }
.catrow b { font-size: 14.5px; font-weight: 700; }
.catrow small { color: var(--muted); font-size: 12px; font-weight: 600; display: block; }
.catrow .ch { margin-left: auto; color: var(--muted); }
.catrow .ch svg { width: 18px; height: 18px; }

/* empty + toast + profile */
.empty { text-align: center; padding: 60px 30px; color: var(--muted); }
.empty .big { font-size: 54px; margin-bottom: 10px; }
.empty b { color: var(--ink); font-size: 17px; display: block; margin-bottom: 5px; }
.toast { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 13px; font-weight: 700; z-index: 40; opacity: 0; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-md); pointer-events: none; }
.toast svg { width: 16px; height: 16px; color: #6ee7a0; }
.toast.show { animation: toast 1.8s var(--ease) forwards; }
@keyframes toast { 10%,80% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(10px); } }
.prof-top { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.prof-top .pav { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-grad); display: grid; place-items: center; font-size: 27px; }
.prof-top b { font-size: 17px; }
.prof-top small { color: var(--muted); font-size: 12.5px; font-weight: 500; display: block; margin-top: 2px; }
.prof-row { display: flex; align-items: center; gap: 13px; background: var(--surface); border-radius: 14px; padding: 14px 15px; box-shadow: var(--shadow-sm); margin-bottom: 11px; font-weight: 700; font-size: 14px; }
.prof-row .pi { width: 38px; height: 38px; border-radius: 11px; background: var(--mint); display: grid; place-items: center; }
.prof-row .pi svg { width: 18px; height: 18px; color: var(--accent); }
.prof-row .ch { margin-left: auto; color: var(--muted); }
.prof-row .ch svg { width: 18px; height: 18px; }

@media (max-width: 440px) {
  body { background: var(--app-bg); }
  .stage, .stage-hint { display: none; }
  .phone { width: 100vw; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; }
  .screen { border-radius: 0; }
}
