/* Cart Yellanda — mobile-first app styles */
:root{
	--forest:#173B2F;--leaf:#3E7B4F;--harvest:#F4C542;--bg:#F7F8F5;--surface:#fff;--text:#19231D;--muted:#5f685f;
	--err:#C83E3E;--ok:#248A52;--line:#e6e9e2;--tint:#eef3ec;--r:16px;--r-sm:12px;
	--sh:0 1px 2px rgba(23,59,47,.06),0 4px 14px rgba(23,59,47,.06);
	--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--bn:64px;
	--font:Manrope,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:500 15px/1.45 var(--font);overflow-x:hidden;padding-bottom:calc(var(--bn) + var(--sab) + 8px);-webkit-tap-highlight-color:transparent}
img,svg{max-width:100%}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3,p{margin:0}
:focus-visible{outline:3px solid var(--harvest);outline-offset:2px;border-radius:8px}
[hidden]{display:none!important}
.ic{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.brand-ic,.boot-mark .ic{stroke:none}
.skip{position:absolute;left:-999px;top:8px;background:var(--forest);color:#fff;padding:10px 14px;border-radius:10px;z-index:100}
.skip:focus{left:8px}

/* boot / launch */
#boot{position:fixed;inset:0;z-index:200;background:var(--forest);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;animation:bootout .4s ease 2.6s forwards;transition:opacity .3s}
#boot.done{opacity:0;pointer-events:none}
.boot-mark .ic{width:84px;height:84px}
#boot b{font-size:22px;letter-spacing:.2px;margin-top:10px}#boot span{opacity:.75;font-size:13px}
@keyframes bootout{to{opacity:0;visibility:hidden;pointer-events:none}}

/* top bar */
.topbar{position:sticky;top:0;z-index:40;background:var(--forest);color:#fff;padding:calc(var(--sat) + 10px) 14px 12px}
.top-row{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr auto;gap:10px 12px;align-items:center}
.brand{display:none;align-items:center;gap:10px;font-weight:600;font-size:18px}
.brand b{color:var(--harvest);font-weight:800}
.brand-ic{width:34px;height:34px}
.loc{display:flex;align-items:center;gap:8px;background:none;border:0;color:#fff;text-align:left;padding:2px;min-width:0}
.loc span{display:flex;flex-direction:column;line-height:1.15;min-width:0}.loc small{opacity:.7;font-size:11px;font-weight:600}.loc b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.loc .ic:last-child{transform:rotate(90deg);width:16px;height:16px}
.searchbar{grid-column:1/-1;position:relative;display:flex;align-items:center;background:#fff;color:var(--text);border-radius:14px;padding:0 12px;height:46px}
.searchbar .ic{color:var(--muted);width:20px;height:20px}
.searchbar input{flex:1;border:0;background:none;outline:0;padding:0 10px;height:100%;min-width:0;font-size:16px}
.sugg{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.2);overflow:hidden;z-index:60;max-height:60vh;overflow-y:auto}
.sugg a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid var(--line)}
.sugg a:last-child{border:0}.sugg a:hover,.sugg a[aria-selected=true]{background:var(--tint)}.sugg small{color:var(--muted);margin-left:auto}
.dnav{display:none}
.badge{position:absolute;top:-6px;right:-8px;min-width:18px;height:18px;border-radius:9px;background:var(--harvest);color:var(--forest);font:800 11px/18px var(--font);text-align:center;padding:0 5px;font-style:normal}
body[data-route=apply] .searchbar,body[data-route=legal] .searchbar,body[data-route=product] .searchbar,body[data-route=cart] .searchbar,body[data-route=checkout] .searchbar,body[data-route=placed] .searchbar,body[data-route=orders] .searchbar,body[data-route=order] .searchbar,body[data-route=account] .searchbar,body[data-route=login] .searchbar,body[data-route=wishlist] .searchbar,body[data-route=merchant] .searchbar,body[data-route=delivery] .searchbar{display:none}

.offbar{background:#fff3cd;color:#664d03;padding:8px 14px;display:flex;gap:8px;align-items:center;font-size:13px;font-weight:600}.offbar .ic{width:18px;height:18px}

/* layout */
#view{max-width:1200px;margin:0 auto;padding:14px 14px 24px;outline:0;min-height:60vh}
section{margin-top:22px}section:first-child{margin-top:0}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px;gap:10px}
.sec-h h2{font-size:18px;font-weight:800;letter-spacing:-.2px}.sec-h a,.sec-h button{color:var(--leaf);font-weight:700;font-size:13px;background:none;border:0;padding:4px}
.page h1,.h1{font-size:22px;font-weight:800;letter-spacing:-.3px;margin-bottom:12px}
.prose{background:#fff;padding:20px;border-radius:var(--r);box-shadow:var(--sh)}
.muted{color:var(--muted)}.small{font-size:13px}.row{display:flex;gap:10px;align-items:center}.grow{flex:1}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.mt{margin-top:14px}
.card{background:var(--surface);border-radius:var(--r);box-shadow:var(--sh);padding:14px}
.tag{display:inline-block;font-size:11px;font-weight:800;padding:3px 8px;border-radius:8px;background:var(--tint);color:var(--forest)}
.tag.demo{background:#fff3cd;color:#664d03}.tag.ok{background:#dff3e6;color:#17663d}.tag.err{background:#fbe3e3;color:#9e2a2a}.tag.warn{background:#fff3cd;color:#664d03}

/* buttons / forms */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border-radius:14px;border:0;background:var(--forest);color:#fff;font-weight:800;transition:transform .1s,opacity .15s}
.btn:active:not(:disabled){transform:scale(.97)}
.btn.sec{background:var(--tint);color:var(--forest)}.btn.line{background:#fff;color:var(--forest);border:1.5px solid var(--forest)}.btn.yel{background:var(--harvest);color:var(--forest)}.btn.danger{background:#fff;color:var(--err);border:1.5px solid var(--err)}
.btn.sm{min-height:36px;padding:0 14px;font-size:13px;border-radius:10px}.btn.block{width:100%}
.btn:disabled,.btn[aria-busy=true]{opacity:.5;cursor:not-allowed}
.btn[aria-busy=true]::after{content:"";width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.field{display:block;margin-bottom:12px}.field>span{display:block;font-size:13px;font-weight:700;margin-bottom:5px}
.field input,.field select,.field textarea,.input{width:100%;min-height:46px;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;background:#fff;font-size:16px}
.field textarea{min-height:84px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus,.input:focus{border-color:var(--leaf);outline:0;box-shadow:0 0 0 3px rgba(62,123,79,.18)}
.field.bad input,.field.bad textarea,.field.bad select{border-color:var(--err)}
.ferr{color:var(--err);font-size:12.5px;font-weight:600;display:block;margin-top:4px}
.check{display:flex;gap:10px;align-items:center;min-height:36px}.check input{width:20px;height:20px;accent-color:var(--leaf)}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}
.chip{flex:none;padding:8px 14px;border-radius:999px;background:#fff;border:1.5px solid var(--line);font-weight:700;font-size:13px;white-space:nowrap}
.chip[aria-pressed=true],.chip.on{background:var(--forest);color:#fff;border-color:var(--forest)}
.filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.filters .input{min-height:42px;font-size:14px;padding:6px 10px}

/* banners */
.banners{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:var(--r)}.banners::-webkit-scrollbar{display:none}
.banner{flex:0 0 100%;scroll-snap-align:center;min-height:132px;border-radius:var(--r);color:#fff;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:12px;overflow:hidden}
.banner h3{font-size:19px;font-weight:800;line-height:1.2;max-width:240px}.banner p{opacity:.85;font-size:13px;margin-top:6px;max-width:240px}.banner .em{font-size:64px;line-height:1}

/* categories */
.cats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px 6px}
.cat{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:11.5px;font-weight:700;line-height:1.2}
.cat i{font-style:normal;width:100%;max-width:64px;aspect-ratio:1;border-radius:18px;background:var(--tint);display:grid;place-items:center;font-size:30px}
.cats.big{grid-template-columns:repeat(3,1fr);gap:14px 10px}.cats.big .cat{font-size:13px}.cats.big i{max-width:none;font-size:40px}

/* products */
.hrow{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 8px;margin:0 -14px;padding-inline:14px;scrollbar-width:none}.hrow::-webkit-scrollbar{display:none}
.hrow>.pc{flex:0 0 140px;scroll-snap-align:start}
.pgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.pgrid.list{grid-template-columns:1fr}.pgrid.list .pc{flex-direction:row}.pgrid.list .pimg{width:110px;aspect-ratio:1;flex:none;border-radius:var(--r) 0 0 var(--r)}
.pc{background:#fff;border-radius:var(--r);box-shadow:var(--sh);display:flex;flex-direction:column;overflow:hidden;position:relative;min-width:0}
.pimg{display:grid;place-items:center;aspect-ratio:1/.82;background:hsl(var(--h,120) 45% 94%);font-size:54px;position:relative;overflow:hidden}
.pimg img{width:100%;height:100%;object-fit:cover}
.off{position:absolute;top:8px;left:8px;background:var(--harvest);color:var(--forest);font:800 11px/1 var(--font);padding:5px 7px;border-radius:7px}
.heart{position:absolute;top:6px;right:6px;width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.9);display:grid;place-items:center;color:var(--muted)}.heart.on{color:var(--err)}.heart.on .ic{fill:currentColor}
.pb{padding:10px;display:flex;flex-direction:column;gap:2px;flex:1}
.pb h3{font-size:14px;font-weight:700;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pb .u{color:var(--muted);font-size:12px}.pr{display:flex;gap:6px;align-items:baseline;margin:4px 0 8px}.pr b{font-size:15px;font-weight:800}.pr s{color:var(--muted);font-size:12px}
.qc{margin-top:auto}.pb .qc .btn{width:100%;min-height:36px;font-size:13px;border-radius:10px;background:#fff;color:var(--ok);border:1.5px solid var(--ok)}
.pb .qc .btn:disabled{color:var(--muted);border-color:var(--line);background:var(--bg)}
.step{display:flex;align-items:center;justify-content:space-between;height:36px;background:var(--ok);color:#fff;border-radius:10px;overflow:hidden}
.step button{width:40px;height:100%;border:0;background:none;color:#fff;display:grid;place-items:center}.step .ic{width:18px;height:18px}.step span{font-weight:800}
.low{color:#b45309;font-size:11.5px;font-weight:700}

/* stores */
.sgrid{display:grid;grid-template-columns:1fr;gap:12px}
.sc{display:flex;gap:12px;background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:12px;align-items:center}
.sc.closed{opacity:.72}
.em{width:64px;height:64px;flex:none;border-radius:16px;background:hsl(var(--h,120) 45% 93%);display:grid;place-items:center;font-size:32px}
.sc h3{font-size:15px;font-weight:800}.sc p{font-size:12.5px;color:var(--muted)}.meta{display:flex;gap:10px;flex-wrap:wrap;font-size:12.5px;font-weight:600;margin-top:4px;color:var(--muted)}.meta span{display:inline-flex;gap:4px;align-items:center}.meta .ic{width:14px;height:14px}
.hrow>.sc{flex:0 0 280px}
.shead{display:flex;gap:14px;align-items:center}.shead .em{width:76px;height:76px;font-size:40px}

/* detail */
.detail{display:grid;gap:16px}
.detail .pimg{aspect-ratio:1/.7;font-size:110px;border-radius:var(--r)}
.dprice{display:flex;gap:10px;align-items:baseline}.dprice b{font-size:26px;font-weight:800}.dprice s{color:var(--muted)}

/* cart */
.line-item{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.line-item:last-child{border:0}
.line-item .th{width:52px;height:52px;border-radius:12px;display:grid;place-items:center;font-size:28px;background:hsl(var(--h,120) 45% 94%);flex:none}
.line-item .step{width:96px;flex:none}
.bill dl{display:flex;justify-content:space-between;margin:7px 0;font-size:14px}.bill dl.tot{font-size:17px;font-weight:800;border-top:1.5px dashed var(--line);padding-top:10px;margin-top:10px}
.bill .save{color:var(--ok);font-weight:700}
.notice{display:flex;gap:10px;padding:10px 12px;border-radius:12px;background:#fff3cd;color:#664d03;font-size:13px;font-weight:600;margin:10px 0}.notice.err{background:#fbe3e3;color:#8f2525}.notice.ok{background:#dff3e6;color:#17663d}.notice.info{background:var(--tint);color:var(--forest)}
.prog{height:6px;background:var(--tint);border-radius:3px;overflow:hidden;margin-top:6px}.prog i{display:block;height:100%;background:var(--leaf)}
.stickybar{position:sticky;bottom:calc(var(--bn) + var(--sab) + 8px);background:var(--bg);padding:10px 0 2px;margin-top:12px}

/* floating cart + bottom nav */
.cartbar{position:fixed;left:12px;right:12px;bottom:calc(var(--bn) + var(--sab) + 10px);z-index:35;max-width:560px;margin:0 auto}
.cartbar a{display:flex;align-items:center;justify-content:space-between;background:var(--ok);color:#fff;border-radius:16px;padding:12px 16px;box-shadow:0 8px 24px rgba(23,59,47,.3)}
.cartbar span:first-child{display:flex;flex-direction:column;line-height:1.2}.cartbar small{opacity:.9;font-weight:600}.cartbar .go{display:flex;align-items:center;gap:4px;font-weight:800}
.bnav{position:fixed;left:0;right:0;bottom:0;z-index:50;height:calc(var(--bn) + var(--sab));padding-bottom:var(--sab);background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr)}
.bnav a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:700;color:var(--muted)}
.bnav a.on{color:var(--forest)}.bnav a.on .ic{stroke-width:2.6}.bnav .badge{top:6px;right:calc(50% - 22px)}

/* states */
.state{text-align:center;padding:40px 20px;background:#fff;border-radius:var(--r);box-shadow:var(--sh)}
.state .big{width:68px;height:68px;border-radius:50%;background:var(--tint);color:var(--forest);display:grid;place-items:center;margin:0 auto 14px}.state .big .ic{width:30px;height:30px}
.state.bad .big{background:#fbe3e3;color:var(--err)}.state.good .big{background:#dff3e6;color:var(--ok)}
.state h2{font-size:18px;font-weight:800;margin-bottom:6px}.state p{color:var(--muted);max-width:380px;margin:0 auto 18px}.state .row{justify-content:center}
.skel{background:linear-gradient(90deg,#eceee8 25%,#f6f7f3 37%,#eceee8 63%);background-size:400% 100%;animation:sk 1.3s ease infinite;border-radius:var(--r)}
@keyframes sk{0%{background-position:100% 0}100%{background-position:0 0}}
.toasts{position:fixed;left:12px;right:12px;bottom:calc(var(--bn) + var(--sab) + 78px);z-index:90;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}
.toast{pointer-events:auto;display:flex;gap:10px;align-items:center;background:var(--forest);color:#fff;padding:11px 16px;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.25);font-weight:600;font-size:14px;max-width:420px;animation:up .25s ease}
.toast.err{background:var(--err)}.toast.ok{background:var(--ok)}.toast button{background:none;border:0;color:var(--harvest);font-weight:800;padding:2px 4px}
@keyframes up{from{opacity:0;transform:translateY(10px)}}
.dlg{border:0;border-radius:20px;padding:22px;max-width:min(92vw,400px);width:100%;box-shadow:0 20px 60px rgba(0,0,0,.35)}.dlg::backdrop{background:rgba(10,24,18,.5)}
.dlg h3{font-size:18px;margin-bottom:6px}.dlg p{color:var(--muted);margin-bottom:18px}.dlg .row{justify-content:flex-end}
.dlg label.opt{display:flex;gap:10px;align-items:center;padding:12px;border:1.5px solid var(--line);border-radius:12px;margin-bottom:8px;font-weight:700}.dlg label.opt:has(input:checked){border-color:var(--leaf);background:var(--tint)}

/* install banner */
.install{position:sticky;top:calc(var(--sat) + 0px);z-index:45;margin:10px 14px 0;max-width:560px;margin-inline:auto;background:#fff;border-radius:18px;box-shadow:0 10px 30px rgba(23,59,47,.22);border:1px solid var(--line);padding:14px;display:grid;grid-template-columns:auto 1fr;gap:4px 12px;animation:up .3s ease}
.install .ic.logo,.install .brand-ic{width:44px;height:44px;grid-row:span 2}
.install h3{font-size:15px;font-weight:800}.install p{font-size:13px;color:var(--muted)}.install .row{grid-column:1/-1;margin-top:8px}.install .row .btn{flex:1}
.install ol{grid-column:1/-1;margin:6px 0 0;padding-left:20px;font-size:13px}

/* order timeline & status */
.tl{list-style:none;margin:0;padding:0}.tl li{position:relative;padding:0 0 18px 34px;color:var(--muted);font-weight:600}.tl li:last-child{padding-bottom:0}
.tl li::before{content:"";position:absolute;left:8px;top:20px;bottom:-2px;width:2px;background:var(--line)}.tl li:last-child::before{display:none}
.tl li::after{content:"";position:absolute;left:0;top:2px;width:18px;height:18px;border-radius:50%;background:#fff;border:2px solid var(--line)}
.tl li.done{color:var(--text)}.tl li.done::before{background:var(--ok)}.tl li.done::after{background:var(--ok);border-color:var(--ok)}
.tl li.now::after{border-color:var(--ok);box-shadow:0 0 0 4px rgba(36,138,82,.2);background:#fff}
.tl small{display:block;font-weight:500;font-size:12px}
#map{height:260px;border-radius:var(--r-sm);margin-top:10px;z-index:0}
.ocard{display:block}.ocard+.ocard{margin-top:10px}

/* dashboard */
.tabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:14px;scrollbar-width:none}.tabs a{flex:none;padding:9px 16px;border-radius:999px;font-weight:700;font-size:14px;background:#fff;border:1.5px solid var(--line)}.tabs a.on{background:var(--forest);color:#fff;border-color:var(--forest)}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat{background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:14px}.stat small{color:var(--muted);font-weight:700;font-size:12px}.stat b{display:block;font-size:24px;font-weight:800;margin-top:2px}
.bars{display:flex;align-items:flex-end;gap:8px;height:120px;margin-top:8px}.bars div{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;height:100%;font-size:10.5px;color:var(--muted)}.bars i{display:block;width:100%;background:var(--leaf);border-radius:6px 6px 0 0;min-height:3px}
.toggle{position:relative;width:52px;height:30px;border-radius:15px;background:#c9cfc6;border:0;flex:none;transition:background .2s}.toggle::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .2s}.toggle[aria-checked=true]{background:var(--ok)}.toggle[aria-checked=true]::after{transform:translateX(22px)}
.menu a,.menu button{display:flex;align-items:center;gap:14px;width:100%;padding:14px 4px;background:none;border:0;border-bottom:1px solid var(--line);text-align:left;font-weight:700}.menu>*:last-child{border:0}.menu .ic{color:var(--leaf)}.menu .ic:last-child{margin-left:auto;color:var(--muted);width:18px;height:18px}

/* desktop */
@media(min-width:760px){
	.sgrid{grid-template-columns:repeat(2,1fr)}.pgrid{grid-template-columns:repeat(3,1fr)}.cats{grid-template-columns:repeat(5,1fr)}
	.banner{flex-basis:calc(50% - 6px)}.detail{grid-template-columns:1fr 1fr;align-items:start}
	.filters{grid-template-columns:repeat(4,1fr)}.stats{grid-template-columns:repeat(4,1fr)}
}
@media(min-width:960px){
	:root{--bn:0px}
	body{padding-bottom:0}
	.bnav{display:none}
	.top-row{grid-template-columns:auto auto 1fr auto}
	.brand{display:flex}.searchbar{grid-column:auto}.dnav{display:flex;align-items:center;gap:6px}
	.dnav a{padding:8px 12px;border-radius:10px;font-weight:700;font-size:14px;opacity:.9}.dnav a.on,.dnav a:hover{background:rgba(255,255,255,.12);opacity:1}
	.dcart{position:relative}
	.pgrid{grid-template-columns:repeat(4,1fr)}.sgrid{grid-template-columns:repeat(3,1fr)}.cats{grid-template-columns:repeat(10,1fr)}.hrow>.pc{flex-basis:170px}
	.banner{flex-basis:calc(33.3% - 8px)}
	.cartbar{display:none!important}.toasts{bottom:24px}
	.cols{display:grid;grid-template-columns:1fr 380px;gap:20px;align-items:start}.cols>aside{position:sticky;top:90px}
	body[data-route] .searchbar{display:flex!important}
}
@media(max-width:959px){.cols>aside{margin-top:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
