:root{--deep:#174e39;--green:#146c4c;--accent:#e8f6ed;--ink:#202d27;--muted:#758078;--line:#dfe8e1;--bg:#f7faf7;--white:#fff;--red:#ae3b36;--gold:#a26b13}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.48 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:default}.hidden{display:none!important}.shell{max-width:1080px;margin:auto;min-height:100vh;padding-bottom:90px}a{color:inherit;text-decoration:none}
.topbar{height:65px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:10px 19px;gap:10px;position:sticky;top:0;z-index:15}.identity{display:flex;align-items:center;gap:10px;min-width:0}.identity strong{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.identity small{font-size:11px;color:var(--muted);display:block}.brandicon{flex:none;display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:var(--deep);color:white;font-size:24px}.toptools{display:flex;align-items:center;gap:8px}.status{color:#54675b;background:#eef3f0;padding:6px 9px;border-radius:18px;font-size:10px;font-weight:750;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status.error{background:#ffecea;color:var(--red)}.status.good{background:#e5f5e9;color:var(--green)}.iconbtn{border:1px solid var(--line);background:#fff;border-radius:10px;height:35px;width:35px;font-size:20px}
#publicArea{padding:16px}.authcard{background:white;max-width:450px;margin:8vh auto;padding:30px 25px;border:1px solid var(--line);border-radius:19px;box-shadow:0 12px 38px #18382910}.authcard h1{font-size:26px;margin:8px 0}.authcard p{color:var(--muted);font-size:13px}.heroicon{width:52px;height:52px;border-radius:15px;background:#e5f5eb;color:var(--green);display:grid;place-items:center;font-size:27px}.authcard label{display:block;margin:16px 0 5px;font-weight:700;font-size:12px}.authcard input,.searchrow input,.sheet input,.sheet select{width:100%;min-height:45px;border:1px solid #cddad0;border-radius:10px;padding:10px;background:white;color:var(--ink)}.authcard input:focus,.searchrow input:focus,.sheet select:focus{outline:3px solid #b5e3c6;border-color:#248458}.primarybtn{border:0;background:var(--deep);color:white;border-radius:11px;min-height:46px;padding:11px 16px;font-weight:850}.authcard .primarybtn{width:100%;margin-top:22px}.quietnote{font-size:11px!important;margin-top:20px}
.welcome{background:linear-gradient(125deg,#eaf6ef,#fff);border:1px solid #d9e9df;border-radius:17px;padding:18px;display:flex;justify-content:space-between;gap:15px;align-items:center}.welcome h1{font-size:25px;margin:3px 0;overflow-wrap:anywhere}.welcome p{margin:0;font-size:12px;color:#61766a}.eyebrow{color:#268055;font-size:10px;font-weight:900;letter-spacing:.09em}.welcome-avatar{display:grid;place-items:center;border-radius:16px;background:var(--deep);color:white;min-width:54px;height:54px;font-size:27px;font-weight:900}
.banner{margin-top:12px;background:#143e35;color:#fff;border-radius:16px;padding:17px 20px;min-height:90px;background-size:cover;background-position:center}.banner h2{margin:0 0 5px;font-size:18px}.banner p{margin:0;color:#e1ece7}.searchrow{margin-top:15px;display:flex;gap:8px}.searchrow input{min-width:0;flex:1;background:#fff}.plainbtn,.textbtn{border:1px solid var(--line);border-radius:10px;padding:8px 11px;background:white;color:var(--green);font-weight:750}.category-strip{display:flex;gap:7px;overflow-x:auto;padding:12px 0 7px;scrollbar-width:none}.category-strip button{white-space:nowrap;border:1px solid var(--line);background:white;border-radius:99px;padding:8px 13px;font-weight:750;font-size:12px}.category-strip button.active{color:white;background:var(--deep);border-color:var(--deep)}
.section{margin-top:13px}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 14px}.sectionhead h2{margin:0;font-size:19px}.sectionhead span{font-size:11px;color:var(--muted)}.productgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.product{border:1px solid var(--line);background:#fff;border-radius:14px;overflow:hidden;min-width:0;box-shadow:0 3px 11px #173b2907}.productphoto{background:#f0f5f0;height:138px;display:grid;place-items:center;color:#6a8374;font-size:35px;overflow:hidden}.productphoto img{width:100%;height:100%;object-fit:cover}.productbody{padding:12px}.product h3{font-size:14px;line-height:1.35;min-height:2.7em;margin:0 0 5px;overflow-wrap:anywhere}.small{font-size:11px;color:var(--muted)}.price{font-weight:900;font-size:15px;margin-top:9px;color:var(--deep)}.product-foot{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-top:10px}.addbtn{border:0;border-radius:9px;background:#e7f4ec;color:var(--green);font-weight:850;min-height:35px;padding:7px 13px}.flag{font-size:9px;font-weight:900;border-radius:99px;background:#fff2d5;color:#935b00;padding:4px 6px}.product .small{overflow-wrap:anywhere}
.bottomnav{position:fixed;bottom:0;left:0;right:0;margin:auto;max-width:1080px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));z-index:18;box-shadow:0 -4px 18px #143d260c;padding:6px 4px max(7px,env(safe-area-inset-bottom))}.bottomnav button{border:0;background:none;padding:3px 0;color:#73857a;font-size:10px;font-weight:800;min-width:0}.bottomnav span{font-size:23px;line-height:1.25;display:block}.bottomnav button.selected{color:var(--green)}.bottomnav i{font-style:normal;font-size:10px;border-radius:20px;background:var(--green);color:white;padding:1px 4px}
.empty{background:#fff;border:1px dashed #d3ded7;border-radius:14px;padding:25px;text-align:center;color:#7c8b80;font-size:13px}.morebtn{width:100%;padding:12px;border:1px solid #c9dace;border-radius:10px;background:#fff;color:var(--deep);font-weight:800;margin-top:11px}.line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center;padding:14px;background:white;border:1px solid var(--line);border-radius:12px;margin:8px 0}.line strong{display:block;overflow-wrap:anywhere}.line small{display:block;color:var(--muted)}.line .right{text-align:right}.qtycontrol{display:flex;align-items:center;gap:9px;margin-top:7px}.qtycontrol button{width:30px;height:29px;border:1px solid var(--line);border-radius:8px;background:#f2f8f4;color:var(--green);font-size:20px}.cartfooter{background:white;border:1px solid var(--line);border-radius:14px;margin-top:15px;padding:15px}.cartfooter .sum{display:flex;justify-content:space-between;font-weight:850;font-size:17px;margin-bottom:12px}.cartfooter .primarybtn{width:100%}.cartfooter .small{margin-top:10px}.warning{padding:11px;border:1px solid #eedba9;border-radius:10px;background:#fff8e4;color:#835b13;font-size:12px;margin-top:10px}.hint{border-radius:12px;padding:12px;background:#eff7f0;color:#4b6c58;font-size:12px}.tag{display:inline-block;border-radius:7px;padding:3px 7px;background:#eaf5ee;color:#186a45;font-weight:750;font-size:10px}
.overlay{position:fixed;inset:0;background:#0008;display:flex;align-items:flex-end;justify-content:center;z-index:99}.sheet{background:white;position:relative;border-radius:22px 22px 0 0;width:min(100%,550px);max-height:94dvh;overflow-y:auto;padding:23px 19px 30px;box-shadow:0 -10px 50px #122a1d28}.close{position:absolute;right:15px;top:11px;border:0;background:#f3f6f3;border-radius:50%;width:34px;height:34px;font-size:24px}.sheet h2{margin:2px 35px 8px 0;line-height:1.25}.modalphoto{height:155px;background:#f1f6f2;border-radius:12px;display:grid;place-items:center;margin:12px 0 15px;overflow:hidden;font-size:36px}.modalphoto img{width:100%;height:100%;object-fit:contain}.unitselect{margin:10px 0 13px}.unitselect label{display:block;margin-bottom:5px;font-size:12px;color:var(--muted)}.stepper{display:flex;justify-content:space-between;align-items:center;gap:10px}.stepper button{width:45px;height:45px;border-radius:11px;border:1px solid var(--line);background:#eef7f1;font-size:25px;color:var(--green)}.stepper strong{font-size:23px}.modalbottom{display:flex;align-items:center;justify-content:space-between;margin-top:19px;gap:11px}.modalbottom .primarybtn{flex:1}
.toaster{position:fixed;left:50%;transform:translateX(-50%);bottom:100px;max-width:min(90vw,500px);background:#172d20;color:white;border-radius:12px;padding:11px 16px;font-weight:750;z-index:120;box-shadow:0 12px 30px #172d2044}.toaster.error{background:#9a3730}
@media(max-width:760px){.productgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:360px){.topbar{padding:9px}.identity strong{font-size:13px}.productgrid{gap:7px}.productphoto{height:110px}.productbody{padding:9px}.product h3{font-size:12px}.welcome h1{font-size:20px}.status{max-width:95px}}
/* Keep cart controls and totals inside their cards on narrow phones. */
#cartList .line{align-items:start;min-width:0}#cartList .line>div{min-width:0}#cartList .qtycontrol{flex-wrap:wrap;gap:6px}#cartList .qtycontrol .textbtn{font-size:11px;padding:5px 9px;min-height:29px}
@media(max-width:440px){#cartList .line{grid-template-columns:1fr}#cartList .line .right{text-align:right;padding-top:4px;border-top:1px solid #eef2ee}}
