/* siymon customer home — mobile-first food-delivery look (scoped to body.home) */
body.home{--bg:#F8F8F8;--card:#fff;--text:#0F0F0F;--muted:#8a9099;--brand:#5DD62C;--brand-d:#337418;--soft:#EAF8E2;--ok:#337418;--line:#e8eaed;--sh:0 1px 3px rgba(0,0,0,.06),0 6px 16px rgba(0,0,0,.06);
 font-family:"Segoe UI","Noto Sans Arabic","Geeza Pro",Tahoma,system-ui,-apple-system,Roboto,Arial,sans-serif;background:var(--bg);background-image:none;color:var(--text);padding-bottom:84px;-webkit-font-smoothing:antialiased}
html[data-theme="dark"] body.home{--bg:#0F0F0F;--card:#202020;--text:#F8F8F8;--muted:#98a1a6;--soft:rgba(93,214,44,.16);--line:#2E2E2E;--sh:0 1px 3px rgba(0,0,0,.5)}
body.no-scroll{overflow:hidden}
.home .wrap{width:min(1100px,100%);padding:0 16px}

/* header: "delivery to" */
.home header{position:sticky!important;top:0;z-index:40;background:var(--card);border-bottom:1px solid var(--line);backdrop-filter:none}
.home .topbar{display:flex;justify-content:space-between;align-items:center;padding:10px 0;gap:8px}
.home .brand{gap:10px}
.home .logo-img{width:38px;height:38px;border-radius:10px;background:transparent!important;padding:0!important;object-fit:cover}
.home .brand div{display:flex;flex-direction:column}
.home .brand p{order:-1;margin:0;font-size:12px;color:var(--muted)}
.home .brand h1{margin:0;font-size:17px;font-weight:800;letter-spacing:0}
.home .actions{gap:6px;flex-wrap:nowrap}
.home .btn{font-family:inherit;font-weight:700;font-size:14px;border-radius:12px;padding:9px 12px;box-shadow:none;border:1px solid var(--line);background:var(--card);color:var(--text)}
.home .btn:hover{box-shadow:none;background:var(--bg)}
.home .btn:focus-visible,.home button:focus-visible,.home a:focus-visible{outline:2px solid var(--brand);outline-offset:2px;box-shadow:none}
.home .btn.ghost{background:transparent;border-color:transparent}
.home .icon-btn{width:38px;height:38px;padding:0}
.home .icon{width:20px;height:20px;fill:currentColor}
.home #myOrdersLink,.home #clearText{display:none}
.home #goCart{background:var(--text);color:var(--card);border-color:var(--text);border-radius:50%;width:40px;height:40px;padding:0}
.home #cartCount{position:absolute;margin:-26px 0 0 -26px;min-width:18px;height:18px;border-radius:9px;background:var(--brand);color:#0F0F0F;font-size:11px;line-height:18px;text-align:center}
.home #goCart{position:relative}
.home .btn.primary{background:var(--brand);border-color:var(--brand);color:#0F0F0F}
.home .btn.good{background:var(--ok);border-color:var(--ok);color:#fff;width:100%;padding:14px;font-size:16px;border-radius:14px;box-shadow:none}
.home .btn.good:hover{filter:brightness(.92)}

/* status + search */
.home main{padding:14px 0 24px}
.home .statusbar{padding:0 0 12px;gap:8px}
.home .badge{border-radius:999px;padding:5px 12px;font-size:13px;font-weight:700;box-shadow:none;border:1px solid var(--line);background:var(--card)}
.home .badge.open{color:var(--ok)}.home .badge.open .dot{background:var(--ok)}
.search{display:flex;align-items:center;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:0 14px;height:48px;margin-bottom:14px;color:var(--brand-text,#5DD62C)}
.search input{flex:1;border:0;outline:0;background:transparent;font:inherit;font-size:15px;color:var(--text);min-width:0}
.search:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(93,214,44,.15)}

/* round categories + restaurant chips */
.home .chips{flex-wrap:nowrap;overflow-x:auto;gap:14px;padding:2px 0 14px;scrollbar-width:none}
.home .chips::-webkit-scrollbar{display:none}
.home .chip{flex:none;border:0;background:none;box-shadow:none;padding:0;color:var(--text);font-weight:600;font-size:12px;text-align:center}
.home .chip.cat{display:flex;flex-direction:column;align-items:center;gap:6px;width:68px}
.home .cat-ic{width:62px;height:62px;border-radius:50%;background:var(--soft);display:grid;place-items:center;overflow:hidden;font-size:26px;border:2px solid transparent}
.home .cat-ic img{width:100%;height:100%;object-fit:cover}
.home .chip.cat.active .cat-ic{border-color:var(--brand)}
.home .chip.cat.active .cat-lb{color:var(--brand-text,#5DD62C);font-weight:800}
.home .cat-lb{max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home #restaurantChips{gap:8px}
.home #restaurantChips .chip{padding:8px 16px;border-radius:999px;background:var(--card);border:1px solid var(--line);font-size:14px}
.home #restaurantChips .chip.active{background:var(--brand);border-color:var(--brand);color:#0F0F0F}

/* promo banner */
.home .offers-banner{border-radius:18px;border:0;box-shadow:var(--sh);margin:0 0 18px}
.home .offers-banner-img{height:150px}
.home #featuredBannerCard{border:0!important;border-radius:18px!important;background:linear-gradient(120deg,#337418,#0F0F0F)!important;color:#F8F8F8;box-shadow:var(--sh)!important;min-height:140px!important}
.home #featuredBannerCard p,.home #featuredBannerCard b,.home #featuredBannerCard h3{color:#fff!important}
.home #featuredBannerCard>div:first-child span:first-child{background:rgba(255,255,255,.2)!important;color:#fff!important}
.home #featuredBannerCard .btn.primary{background:#5DD62C;color:#0F0F0F;border-color:#5DD62C;border-radius:999px!important}

/* layout + product cards */
.home .layout{grid-template-columns:1fr;gap:20px}
.home .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.home .card{position:relative;padding:0;border-radius:18px;border:1px solid var(--line);box-shadow:var(--sh);background:var(--card);cursor:pointer}
.home .card .img{height:auto;aspect-ratio:4/3;border-radius:0;position:relative}
.home .price-pill{position:absolute;top:8px;inset-inline-start:8px;background:var(--card);color:var(--text);font-weight:800;font-size:13px;padding:3px 10px;border-radius:999px;box-shadow:var(--sh)}
.home .card-body{padding:10px 12px 14px}
.home .card h3{margin:0 0 2px;font-size:15px;font-weight:700;line-height:1.35}
.home .card p{margin:0;min-height:0;font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home .card .addBtn{position:absolute;bottom:10px;inset-inline-end:10px;width:34px;height:34px;border-radius:50%;border:0;background:var(--brand);color:#0F0F0F;font-size:22px;line-height:1;cursor:pointer;box-shadow:var(--sh)}
.home .card .addBtn:active{transform:scale(.92)}
.home .card-body{padding-bottom:16px}
.home .card p{padding-inline-end:38px}

/* cart / checkout panel */
.home .panel{border-radius:18px;border:1px solid var(--line);box-shadow:var(--sh);padding:16px;background:var(--card)}
.home .cart-item{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:8px 0 12px}
.home .qty{background:var(--bg);border-radius:999px;padding:3px;gap:4px}
.home .qty button{width:28px;height:28px;border-radius:50%;border:0;background:var(--card);box-shadow:var(--sh);color:var(--text)}
.home .totals{border-top:1px solid var(--line);font-size:18px;font-weight:800}
.home .field input,.home .field textarea{font-family:inherit;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--card);color:var(--text);font-size:15px}
.home .field input:focus,.home .field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(93,214,44,.15)}
.home .empty{background:var(--bg);border:1px dashed var(--line);border-radius:14px}
.home .rating-card{background:var(--bg);border:0;box-shadow:none;border-radius:14px}
.home .rating-stars{color:#f5a623}
.home .login-gate{background:var(--soft);border:1px solid rgba(93,214,44,.3);border-radius:14px}

/* bottom nav */
.bottom-nav{position:fixed;inset:auto 0 0 0;z-index:45;display:flex;justify-content:space-around;background:var(--card);border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px))}
.bottom-nav>*{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;color:var(--muted);font:inherit;font-size:11px;font-weight:600;padding:6px 0;text-decoration:none;cursor:pointer;position:relative}
.bottom-nav .on{color:var(--brand-text,#5DD62C)}
.bottom-nav b{position:absolute;top:0;inset-inline-start:calc(50% + 6px);min-width:16px;height:16px;border-radius:8px;background:var(--brand);color:#0F0F0F;font-size:10px;line-height:16px;text-align:center}
.bottom-nav [hidden]{display:none}

/* product detail sheet */
.sheet{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.5);display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.sheet-card{width:min(520px,100%);max-height:94vh;background:var(--card);color:var(--text);border-radius:24px 24px 0 0;overflow:auto;display:flex;flex-direction:column}
.sheet-hero{position:relative;aspect-ratio:4/3;background:var(--bg)}
.sheet-hero img{width:100%;height:100%;object-fit:cover;display:block}
.round{position:absolute;top:14px;inset-inline-start:14px;width:38px;height:38px;border-radius:50%;border:0;background:var(--card);color:var(--text);box-shadow:var(--sh);cursor:pointer;font-size:16px}
.sheet-body{padding:18px 20px 8px}
.sheet-body h2{margin:0;font-size:22px}
.sheet-price{color:var(--brand-text,#5DD62C);font-weight:800;font-size:18px;margin:4px 0 10px}
.sheet-body p{margin:0;color:var(--muted);font-size:14px;line-height:1.7}
.sheet-bar{display:flex;gap:12px;padding:14px 20px calc(16px + env(safe-area-inset-bottom,0px));position:sticky;bottom:0;background:var(--card)}
.stepper{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:6px 10px}
.stepper button{width:30px;height:30px;border-radius:50%;border:0;background:var(--soft);color:var(--brand-text,#5DD62C);font-size:20px;cursor:pointer}
.stepper span{min-width:18px;text-align:center;font-weight:800}
.add-main{flex:1;border:0;border-radius:14px;background:var(--brand);color:#0F0F0F;font:inherit;font-weight:800;font-size:16px;cursor:pointer}
.add-main:active{background:var(--brand-d)}

.home footer{padding:12px 0 8px}
.home .toast{bottom:92px;background:var(--text);color:var(--card);border-radius:12px;font-family:inherit}

@media (min-width:760px){
 .home .grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
 .home #clearText{display:inline}
 .sheet{align-items:center}.sheet-card{border-radius:24px}
}
@media (min-width:980px){
 .home .layout{grid-template-columns:1fr}
 .home .side{position:sticky;top:78px}
 .home #myOrdersLink{display:inline-flex}

}
@media (prefers-reduced-motion:reduce){.home *{transition:none!important}}

/* header decluttered: only brand + menu + cart */
.home .actions>:not(#goCart):not(#menuBtn){display:none}
#menuBtn{display:inline-flex}
.menu-list{display:grid;gap:8px;padding:14px 16px calc(18px + env(safe-area-inset-bottom,0px))}
.menu-list .btn{display:inline-flex!important;width:100%;justify-content:flex-start;gap:12px;height:auto;padding:13px 14px;border:1px solid var(--line);background:var(--card);border-radius:14px;font-size:15px}
.menu-list .btn::after{content:attr(data-label);font-weight:700}
.menu-list #clearText{display:inline}
.menu-list #installBtn[style*="none"]{display:none!important}
.menu-list #langToggle{font-size:0}.menu-list #langToggle::after{font-size:15px}
.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 6px}
.sheet-head h2{margin:0;font-size:20px}
.sheet-head .round{position:static}
#catSheet,#menuSheet{z-index:55}#detailSheet{z-index:60}
#catGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px 16px calc(20px + env(safe-area-inset-bottom,0px))}
@media(min-width:760px){#catGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* category tiles (replace chips) */
.home #categoryChips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:visible;padding:0 0 18px}
.home .cat-tile{position:relative;display:block;border:0;padding:0;margin:0;border-radius:18px;overflow:hidden;aspect-ratio:4/3;background:var(--soft);cursor:pointer;box-shadow:var(--sh);text-align:start;font:inherit}
.home .cat-tile img{width:100%;height:100%;object-fit:cover;display:block}
.home .cat-tile .em{display:grid;place-items:center;width:100%;height:100%;font-size:44px}
.home .cat-tile .cat-name{position:absolute;inset:auto 0 0 0;padding:26px 12px 10px;color:#fff;font-weight:800;font-size:15px;background:linear-gradient(transparent,rgba(0,0,0,.65))}
.home .cat-tile:active{transform:scale(.98)}
@media(min-width:760px){.home #categoryChips{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1100px){.home #categoryChips{grid-template-columns:repeat(4,minmax(0,1fr))}}

.home .side{display:none}
#cartSheet{z-index:56}
#cartSheet #cartTitle{display:none}
#cartSheet .panel{border:0;box-shadow:none;padding:4px 2px}
.home .actions{display:none}
.home .topbar{justify-content:center}
.bottom-nav{max-width:640px;margin:0 auto;border-radius:18px 18px 0 0;border:1px solid var(--line);border-bottom:0}
.home .offers-banner,.home #offersBanner{margin-top:0}
body.home{padding-bottom:84px!important}
.home .toast{bottom:92px!important}

/* restaurant card */
.rest-card{background:var(--card);border-radius:20px;overflow:hidden;box-shadow:var(--sh);border:1px solid var(--line);margin-bottom:14px}
.rest-cover{height:150px;background:center/cover no-repeat var(--soft)}
.rest-cover.empty-cover{background:linear-gradient(120deg,#5DD62C,#337418)}
.rest-info{display:flex;align-items:center;gap:12px;padding:0 16px 14px;margin-top:-28px}
.rest-logo{width:64px;height:64px;flex:none;border-radius:50%;object-fit:cover;background:#fff;border:3px solid var(--card);box-shadow:var(--sh)}
.rest-text{padding-top:30px;min-width:0}
.rest-text h2{margin:0;font-size:19px;font-weight:800;line-height:1.3}
.rest-text p{margin:2px 0 0;color:var(--muted);font-size:13px}
.rest-text p:empty{display:none}
@media(min-width:760px){.rest-cover{height:200px}}

/* ---- v2: Tajawal, address bar, restaurant cards, favorites ---- */
body.home{font-family:"Tajawal","Segoe UI","Noto Sans Arabic",Tahoma,system-ui,-apple-system,Roboto,Arial,sans-serif}
.home #subtitle{display:none}
.home .brand h1{font-size:16px}
.addr-bar{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;margin:0 0 8px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--text);font:inherit;text-align:start;cursor:pointer;min-height:48px}
.addr-bar:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.addr-lbl{font-size:12px;color:var(--muted)}
.addr-val{font-size:15px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.addr-val::after{content:"▾";margin-inline-start:6px;color:var(--brand-text,#5DD62C)}
.sec-title{margin:4px 0 10px;font-size:19px;font-weight:800}
.rest-row{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 14px;scroll-snap-type:x proximity;scrollbar-width:none}
.rest-row::-webkit-scrollbar{display:none}
.rcard{position:relative;flex:none;width:248px;scroll-snap-align:start;background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;cursor:pointer;box-shadow:var(--sh)}
.rcard:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.rcard.sel{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand)}
.rcard-cover{height:112px;background:center/cover no-repeat var(--soft)}
.rcard-cover.empty{background:linear-gradient(120deg,#5DD62C,#337418)}
.rcard-fav{position:absolute;top:8px;inset-inline-end:8px;width:38px;height:38px;border-radius:50%;border:0;background:var(--card);color:var(--muted);display:grid;place-items:center;cursor:pointer;box-shadow:var(--sh)}
.rcard-fav .icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.rcard-fav.on{color:var(--brand-text,#5DD62C)}.rcard-fav.on .icon{fill:currentColor}
.rcard-logo{position:absolute;top:84px;inset-inline-start:12px;width:44px;height:44px;border-radius:50%;object-fit:cover;background:#fff;border:3px solid var(--card)}
.rcard-info{display:flex;flex-direction:column;gap:3px;padding:26px 12px 12px}
.rcard-name{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rcard-addr{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rcard-st{align-self:flex-start;font-size:12px;font-weight:700;padding:2px 10px;border-radius:999px;border:1px solid var(--line)}
.rcard-st.open{color:var(--ok)}.rcard-st.closed{color:#b3261e}
.rest-empty{padding:18px 4px;color:var(--muted);font-size:14px}
/* address sheet */
.addr-body{padding:4px 18px 22px;display:flex;flex-direction:column;gap:10px}
.addr-geo{width:100%;padding:12px;border-color:var(--brand);color:var(--brand-text,#5DD62C)}
.addr-field{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
.addr-field input{height:46px;border:1px solid var(--line);border-radius:12px;padding:0 12px;font:inherit;font-size:15px;background:var(--card);color:var(--text)}
.addr-field input:focus{outline:2px solid var(--brand);outline-offset:0;border-color:var(--brand)}
.addr-field input[readonly]{background:var(--bg)}
.addr-err{color:#b3261e;font-size:13px;min-height:0}
.addr-sub{margin:10px 0 0;font-size:16px}
.addr-row{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.addr-row.on{border-color:var(--brand)}
.addr-pick{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:0;background:none;color:var(--text);font:inherit;text-align:start;cursor:pointer;min-width:0}
.addr-pick span{font-size:13px;color:var(--muted)}
.addr-del{border:0;border-inline-start:1px solid var(--line);background:none;color:#b3261e;font:inherit;font-size:13px;padding:0 14px;cursor:pointer}
@media (prefers-reduced-motion:no-preference){.rcard{transition:box-shadow .15s,border-color .15s}}
.home #restCard{display:none!important}

/* ---- v2.1: dark pill bottom nav (icon-only, active = white pill with label) ---- */
body.home .bottom-nav{--navbg:#202020;--navfg:#A8A8A8;--pill:#5DD62C;
  inset:auto auto calc(12px + env(safe-area-inset-bottom)) 50%;transform:translateX(-50%);
  width:min(420px,calc(100% - 24px));max-width:none;margin:0;height:62px;padding:7px;gap:2px;
  display:flex;align-items:center;justify-content:space-between;
  background:var(--navbg);border-radius:999px;border:1px solid rgba(248,248,248,.12);box-shadow:0 10px 28px rgba(0,0,0,.5)}
body.home .bottom-nav>button{position:relative;flex:0 0 auto;height:48px;min-width:48px;padding:0 12px;border:0;border-radius:999px;
  display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;background:none;color:var(--navfg);font:inherit;font-size:15px;font-weight:700;cursor:pointer}
body.home .bottom-nav .ic{display:grid;place-items:center;width:26px;height:26px}
body.home .bottom-nav .ic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.home .bottom-nav .lb{display:none;white-space:nowrap}
body.home .bottom-nav>button.on{background:var(--pill);color:var(--navbg);padding:0 16px}
body.home .bottom-nav>button.on .lb{display:inline}
body.home .bottom-nav>button.on .fl{fill:currentColor}
body.home .bottom-nav>button.on .dt{stroke:var(--pill)}
body.home .bottom-nav>button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
body.home .bottom-nav b{position:absolute;top:2px;inset-inline-end:4px;min-width:18px;height:18px;border-radius:9px;background:var(--brand);color:#0F0F0F;font-size:11px;line-height:18px;text-align:center;padding:0 4px}
body.home .bottom-nav b[hidden]{display:none}
body.home{padding-bottom:104px!important}
.home .toast{bottom:104px!important}
@media (prefers-reduced-motion:no-preference){body.home .bottom-nav>button{transition:background .18s,color .18s}}

/* ---- profile sheet ---- */
.sheet-card.pf{width:min(520px,100%);height:94vh;background:var(--bg)}
.pf-body{padding:0 16px 28px;display:flex;flex-direction:column;gap:14px}
.pf-head{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 0 4px;text-align:center}
.pf-av{width:84px;height:84px;border-radius:50%;background:var(--soft);color:var(--brand-text,#5DD62C);display:grid;place-items:center;font-size:34px;font-weight:800;border:3px solid var(--card)}
.pf-name{font-size:20px;font-weight:800;margin-top:6px}
.pf-sub{font-size:14px;color:var(--muted);min-height:0}
.pf-btn{margin-top:10px;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 22px;border-radius:999px;border:1.5px solid var(--brand);color:var(--brand-text,#5DD62C);font-weight:700;font-size:15px;text-decoration:none;background:transparent}
.pf-btn.solid{background:var(--brand);color:#0F0F0F}
.pf-group{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:12px 6px 6px}
.pf-group h3{margin:0 0 4px;padding:0 12px;font-size:18px;font-weight:800}
.pf-row{width:100%;display:flex;align-items:center;gap:12px;min-height:52px;padding:0 12px;border:0;background:none;color:var(--text);font:inherit;font-size:16px;text-align:start;text-decoration:none;cursor:pointer;border-radius:12px}
.pf-row:hover{background:var(--bg)}
.pf-row:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.pf-ic{display:grid;place-items:center;width:26px;height:26px;flex:none}
.pf-ic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.pf-lb{flex:1;min-width:0}
.pf-val{color:var(--muted);font-size:15px}
.pf-row::after{content:"›";color:var(--muted);font-size:22px;line-height:1}
html[dir="rtl"] .pf-row::after{content:"‹"}
.pf-row.danger{color:#b3261e}
html[data-theme="dark"] .pf-row.danger{color:#ff8a80}

.addr-bar.out{border-color:#c0392b}
.addr-bar.out .addr-val{color:#c0392b}

/* v7 fixes */
.home #featuredBannerCard{margin-bottom:0!important}
.home .offers-banner{box-shadow:none;border-radius:18px;margin:0 0 16px}
.rest-row>.rcard:only-child{width:100%}

/* store selected banner (stores page) */
.store-bar{flex:0 0 100%;align-self:flex-start;height:auto;display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--soft);border-radius:14px;padding:10px 14px;margin-bottom:8px}
.store-bar-link{color:var(--brand-text,#5DD62C);font-weight:800;text-decoration:none}

/* ===== cart & checkout redesign (cards, payment methods, sticky total) ===== */
#cartSheet .sheet-card{background:var(--bg)}
#cartSheet .sheet-head{background:var(--bg);position:sticky;top:0;z-index:3}
#cartSheet .panel{background:transparent;padding:0}
#cartSheet .cart-items{gap:12px;margin:6px 0 14px}
.sec-h{margin:14px 0 8px;font-size:15px;font-weight:800;color:var(--text)}

#cartSheet .cart-item{display:grid;grid-template-columns:76px 1fr;gap:12px;align-items:center;padding:10px;background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:var(--sh);transition:opacity .16s,transform .16s}
#cartSheet .cart-item.removing{opacity:0;transform:scale(.96)}
.ci-img{width:76px;height:76px;border-radius:16px;overflow:hidden;background:var(--soft);display:grid;place-items:center;font-size:28px}
.ci-img img{width:100%;height:100%;object-fit:cover;display:block}
.ci-main{min-width:0;display:flex;flex-direction:column;gap:4px}
.ci-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.ci-name{font-size:15px;font-weight:800;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ci-unit{color:var(--muted);font-size:12.5px}
.ci-del{flex:none;width:36px;height:36px;margin:-4px;border:0;border-radius:50%;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.ci-del:hover,.ci-del:focus-visible{background:var(--soft);color:#c62828}
.ci-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ci-line{font-weight:800;font-size:16px;color:var(--brand-text,#5DD62C)}
#cartSheet .qty{background:var(--soft);padding:3px;gap:2px;border-radius:999px;justify-content:flex-start}
#cartSheet .qty button{width:34px;height:34px;border-radius:50%;font-size:18px;line-height:1;transition:transform .1s}
#cartSheet .qty button:active{transform:scale(.9)}
#cartSheet .qty span{min-width:26px;font-size:15px}

/* empty state */
.cart-empty{text-align:center;padding:36px 16px;background:var(--card);border:1px dashed var(--line);border-radius:20px;display:flex;flex-direction:column;align-items:center;gap:8px}
.cart-empty-ic{font-size:52px;line-height:1}
.cart-empty b{font-size:18px}
.cart-empty p{margin:0 0 8px;color:var(--muted);font-size:14px}
.cart-empty .btn{padding:12px 22px;border-radius:999px}
#cartPanel.is-empty .totals-row,#cartPanel.is-empty .totals,#cartPanel.is-empty .login-gate{display:none!important}

/* summary */
#cartSheet .totals-row{padding:6px 2px;font-weight:600;color:var(--muted)}
#cartSheet .totals{display:none}  /* total lives in the sticky bar */

/* form fields as soft cards */
#cartSheet .form{display:flex;flex-direction:column;gap:10px}

/* payment methods */
.pay-list{display:flex;flex-direction:column;gap:8px}
.pay-opt{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--card);border:1.5px solid var(--line);border-radius:16px;min-height:60px}
.pay-opt.is-selected{border-color:var(--brand);background:var(--soft);box-shadow:0 0 0 3px rgba(93,214,44,.12)}
.pay-opt.is-disabled{opacity:.6;cursor:not-allowed;background:var(--card);filter:grayscale(.35);user-select:none}
.pay-ic{flex:none;width:42px;height:32px;border-radius:9px;background:var(--bg);display:grid;place-items:center;font-size:18px;font-weight:800;color:var(--text)}
.pay-ic-visa{font-size:12px;color:#1a1f71;font-style:italic;letter-spacing:.5px}
.pay-ic-mastercard{font-size:12px;color:#eb001b}
.pay-ic-paypal{font-size:12px;color:#003087}
.pay-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.pay-txt b{font-size:15px}
.pay-txt small{color:var(--muted);font-size:12.5px}
.pay-opt.is-selected .pay-txt small{color:var(--text);opacity:.75}
.pay-check{flex:none;width:26px;height:26px;border-radius:50%;background:var(--brand);color:#0F0F0F;display:grid;place-items:center;font-size:15px;font-weight:800}
.pay-badge{flex:none;font-size:11px;font-weight:700;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:3px 9px;background:var(--bg);white-space:nowrap}

/* sticky total + confirm bar */
.cart-bar{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;gap:12px;margin:8px -14px -18px;padding:12px 14px calc(14px + env(safe-area-inset-bottom,0px));background:var(--card);border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(0,0,0,.08)}
.cart-bar.is-empty{display:none}
.cart-bar-total{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.cart-bar-total span{font-size:12px;color:var(--muted)}
.cart-bar-total b{font-size:19px;font-weight:800;color:var(--text);white-space:nowrap}
.cart-bar .btn.good{flex:1;width:auto;background:var(--brand);border-color:var(--brand);font-weight:800;min-height:50px}
.cart-bar .btn.good:disabled{opacity:.55;cursor:not-allowed;filter:none}
.cart-bar .btn.good.is-loading{position:relative;pointer-events:none}
.cart-bar .btn.good.is-loading::after{content:"";width:16px;height:16px;margin-inline-start:8px;border:2px solid #fff;border-top-color:transparent;border-radius:50%;animation:cartspin .7s linear infinite}
@keyframes cartspin{to{transform:rotate(360deg)}}
#cartSheet .hint{text-align:center}

@media(min-width:760px){
  #cartSheet .sheet-card{width:min(560px,100%)}
  .cart-bar{margin-bottom:-18px}
}
@media(max-width:360px){
  #cartSheet .cart-item{grid-template-columns:64px 1fr}
  .ci-img{width:64px;height:64px}
}
@media(prefers-reduced-motion:reduce){
  #cartSheet .cart-item,.cart-bar .btn.good.is-loading::after{transition:none;animation:none}
}

/* ===== delivery address: top bar + compact bottom sheet (v3) ===== */
.addr-bar{flex-direction:row;align-items:center;gap:8px;padding:0;background:transparent;border:0;cursor:default;min-height:0;margin:0 0 8px}
.addr-bar .addr-main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:8px 12px;min-height:52px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--text);font:inherit;text-align:start;cursor:pointer;box-shadow:var(--sh)}
.addr-bar .addr-main:focus-visible,.addr-bar .addr-refresh:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.addr-pin{flex:none;width:34px;height:34px;border-radius:50%;background:var(--soft);color:var(--brand-text,#5DD62C);display:grid;place-items:center}
.addr-pin svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.addr-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:0;line-height:1.3}
.addr-bar .addr-lbl{font-size:12px;color:var(--muted)}
.addr-bar .addr-val{font-size:15px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.addr-bar .addr-val::after{content:none}
.addr-chev{flex:none;color:var(--brand-text,#5DD62C);font-size:13px}
.addr-refresh{flex:none;width:52px;height:52px;border-radius:16px;border:1px solid var(--line);background:var(--card);color:var(--brand-text,#5DD62C);display:grid;place-items:center;cursor:pointer;box-shadow:var(--sh)}
.addr-refresh svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.addr-refresh:active{transform:scale(.94)}
.addr-bar.out .addr-main{border-color:#c0392b}
.addr-bar.out .addr-val{color:#c0392b}

#addrSheet .sheet-card{max-height:86vh;background:var(--card)}
#addrSheet .sheet-head{padding:14px 16px 4px;gap:10px}
#addrSheet .sheet-head h2{flex:1;font-size:19px}
#addrSheet .addr-back{flex:none}
.addr-body{padding:6px 16px calc(18px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:10px}
.addr-intro{margin:0 0 2px;color:var(--muted);font-size:14px;line-height:1.7}
.addr-geo{width:100%;min-height:52px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:14px;background:var(--brand)!important;border-color:var(--brand)!important;color:#0F0F0F!important;font-weight:800;font-size:16px}
.addr-geo svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.addr-geo:disabled{opacity:.8}
.addr-geo.is-loading::after{content:"";width:16px;height:16px;border:2px solid #fff;border-top-color:transparent;border-radius:50%;animation:cartspin .7s linear infinite}
.addr-manual{width:100%;min-height:48px;border-radius:14px;font-weight:700}
.addr-msg{min-height:0;font-size:13.5px;line-height:1.6;color:#b3261e}
.addr-msg:empty{display:none}
.addr-msg.ok{color:var(--ok);background:rgba(51,116,24,.08);border-radius:12px;padding:8px 12px}
.addr-sec{margin-top:6px;font-size:15px;font-weight:800}
.addr-none{color:var(--muted);font-size:14px;padding:4px 0}
.addr-row{display:flex;align-items:stretch;border:1.5px solid var(--line);border-radius:14px;overflow:hidden;background:var(--card)}
.addr-row.on{border-color:var(--brand);background:var(--soft)}
.addr-pick{flex:1;min-width:0}
.addr-pick b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.addr-pick span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.addr-side{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:2px;padding:6px 10px;border-inline-start:1px solid var(--line)}
.addr-cur{font-size:11px;font-weight:800;color:#0F0F0F;background:var(--brand);border-radius:999px;padding:2px 9px}
.addr-act{border:0;background:none;font:inherit;font-size:13px;color:var(--brand-text,#5DD62C);padding:6px 4px;cursor:pointer;min-height:32px}
.addr-act.addr-del{color:#b3261e;border:0;padding:6px 4px}
.addr-later{margin-top:2px;border:0;background:none;color:var(--muted);font:inherit;font-size:15px;min-height:44px;cursor:pointer}
.addr-city{display:flex;flex-direction:column;gap:2px;height:auto;min-height:46px;justify-content:center;padding:8px 12px;border-radius:12px;background:var(--bg);color:var(--text);font-size:15px;font-weight:700}
.addr-city small{font-weight:400;font-size:12px;color:var(--muted)}
.addr-chips{display:flex;gap:8px;margin-top:6px}
.addr-chip{flex:none;min-height:36px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--text);font:inherit;font-size:14px;cursor:pointer}
.addr-chip:hover,.addr-chip:focus-visible{border-color:var(--brand);color:var(--brand-text,#5DD62C)}
.addr-save{width:100%;min-height:52px;border-radius:14px;background:var(--brand)!important;border-color:var(--brand)!important;color:#0F0F0F!important;font-weight:800;font-size:16px;position:sticky;bottom:0}
.addr-field input{font-size:16px} /* >=16px avoids iOS zoom on focus */
@media(min-width:760px){#addrSheet .sheet-card{width:min(480px,100%)}}
