:root{
  --g900:#0f3d27;--g800:#14532d;--g700:#1a6640;--g600:#1f7a4d;--g500:#2f9462;--g200:#bfe0cc;--g100:#e3f1e8;--g50:#f3f8f5;
  --ink:#13261b;--muted:#5b6f62;--line:#d9e6dd;--card:#fff;--amber:#8a5a00;--amber-bg:#fff4d6;--red:#a12a2a;--red-bg:#fde8e8;--blue:#1d4f7a;--blue-bg:#e5f0fa;
  --r:16px;--shadow:0 1px 2px rgba(15,61,39,.06),0 4px 14px rgba(15,61,39,.06);
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--g50);color:var(--ink);font:17px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;-webkit-text-size-adjust:100%}
a{color:var(--g700)}
h1{font-size:26px;line-height:1.2;margin:4px 0 12px}h2{font-size:21px;margin:22px 0 10px}h3{font-size:18px;margin:0 0 6px}
p{margin:6px 0}
.muted{color:var(--muted)}.small{font-size:14px}.center{text-align:center}.right{text-align:right}.nowrap{white-space:nowrap}
.wrap{max-width:720px;margin:0 auto;padding:12px 16px 110px}
.wide .wrap{max-width:1100px}

/* Top bar */
.top{position:sticky;top:0;z-index:20;background:var(--g800);color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.top .in{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:10px;padding:10px 16px;min-height:58px}
.brand{font-weight:800;font-size:21px;color:#fff;text-decoration:none;display:flex;align-items:center;gap:8px;letter-spacing:-.01em}
.brand .leaf{width:32px;height:32px;border-radius:10px;background:var(--g500);display:grid;place-items:center;font-size:18px}
.top .sp{flex:1}
.top .who{font-size:14px;opacity:.9;text-align:right;line-height:1.2}
.top button.link{background:none;border:0;color:#fff;font-size:15px;text-decoration:underline;cursor:pointer;padding:6px}
.rolebar{background:var(--g900);color:var(--g200);font-size:13px;text-align:center;padding:3px 8px}

/* Bottom nav (customer) / tab nav (portal) */
.bnav{position:fixed;bottom:0;left:0;right:0;z-index:20;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:center;padding-bottom:env(safe-area-inset-bottom)}
.bnav a{flex:1;max-width:180px;text-align:center;text-decoration:none;color:var(--muted);font-size:13px;padding:8px 4px 10px;position:relative}
.bnav a .i{display:block;font-size:24px;line-height:1.1}
.bnav a.on{color:var(--g700);font-weight:700}
.bnav .badge{position:absolute;top:4px;left:calc(50% + 6px)}
.pnav{display:flex;gap:6px;overflow-x:auto;padding:10px 16px;max-width:1100px;margin:0 auto;scrollbar-width:none}
.pnav a{white-space:nowrap;text-decoration:none;padding:10px 16px;border-radius:99px;background:#fff;border:1px solid var(--line);color:var(--ink);font-weight:600;font-size:15px}
.pnav a.on{background:var(--g700);border-color:var(--g700);color:#fff}

/* Cards, buttons, forms */
.card{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);padding:16px;margin:12px 0;border:1px solid #e8f0ea}
.card.flat{box-shadow:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:12px 20px;border-radius:14px;border:2px solid var(--g600);background:var(--g600);color:#fff;font-size:17px;font-weight:700;cursor:pointer;text-decoration:none;line-height:1.2;transition:transform .05s,background .15s}
.btn:active{transform:scale(.98)}.btn:hover{background:var(--g700)}
.btn.block{display:flex;width:100%}
.btn.ghost{background:#fff;color:var(--g700)}.btn.ghost:hover{background:var(--g100)}
.btn.soft{background:var(--g100);border-color:var(--g100);color:var(--g800)}
.btn.warn{background:#fff;border-color:var(--red);color:var(--red)}
.btn.sm{min-height:40px;padding:8px 14px;font-size:15px;border-radius:11px}
.btn.huge{min-height:76px;font-size:24px;border-radius:18px}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.row{display:flex;gap:10px;align-items:center}.row.wrap-ok{flex-wrap:wrap}.row>.grow{flex:1}
.stack>*+*{margin-top:10px}
label{display:block;font-weight:600;margin:12px 0 6px;font-size:16px}
input,select,textarea{width:100%;font:inherit;padding:13px 14px;border:2px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);min-height:52px}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--g500);box-shadow:0 0 0 3px var(--g100)}
textarea{min-height:80px;resize:vertical}
input[type=checkbox],input[type=radio]{width:22px;height:22px;min-height:0;accent-color:var(--g600)}
.check{display:flex;gap:10px;align-items:center;font-weight:500}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.err{background:var(--red-bg);color:var(--red);padding:12px 14px;border-radius:12px;margin:10px 0;font-weight:600}
.note{background:var(--amber-bg);color:var(--amber);padding:12px 14px;border-radius:12px;margin:10px 0;font-size:15px}
.info{background:var(--blue-bg);color:var(--blue);padding:12px 14px;border-radius:12px;margin:10px 0;font-size:15px}
.ok{background:var(--g100);color:var(--g800);padding:12px 14px;border-radius:12px;margin:10px 0;font-weight:600}

/* Tags */
.tag{display:inline-block;padding:4px 11px;border-radius:99px;font-size:14px;font-weight:700;background:var(--g100);color:var(--g800);white-space:nowrap}
.tag.amber{background:var(--amber-bg);color:var(--amber)}.tag.blue{background:var(--blue-bg);color:var(--blue)}.tag.red{background:var(--red-bg);color:var(--red)}.tag.grey{background:#eef1ef;color:#4b5a51}
.badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:#d63c3c;color:#fff;font-size:12px;font-weight:800}

/* Hero / search */
.hero{background:linear-gradient(160deg,var(--g700),var(--g900));color:#fff;border-radius:22px;padding:22px 18px;margin:8px 0 16px}
.hero h1{color:#fff;font-size:28px}
.hero p{color:var(--g200)}
.hero form{display:flex;gap:8px;margin-top:14px}
.hero input{border-color:transparent;text-transform:uppercase;font-size:19px}
.hero .btn{background:#fff;color:var(--g800);border-color:#fff;white-space:nowrap}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px;font-size:13px;color:var(--g200)}
.steps b{display:block;font-size:22px}

/* Shop cards */
.shop{display:flex;gap:14px;align-items:center;text-decoration:none;color:inherit}
.shop .logo{width:62px;height:62px;border-radius:14px;background:var(--g100);display:grid;place-items:center;font-size:28px;flex:none;overflow:hidden}
.shop .logo img{width:100%;height:100%;object-fit:cover}
.shop .go{font-size:28px;color:var(--g600)}
.dist{font-weight:800;color:var(--g700)}

/* Products */
.chips{display:flex;gap:8px;overflow-x:auto;padding:4px 0 10px;margin:0 -16px;padding-left:16px;padding-right:16px;scrollbar-width:none;position:sticky;top:58px;background:var(--g50);z-index:5}
.chip{white-space:nowrap;border:2px solid var(--line);background:#fff;border-radius:99px;padding:9px 15px;font-size:15px;font-weight:600;cursor:pointer;color:var(--ink)}
.chip.on{background:var(--g700);border-color:var(--g700);color:#fff}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.prod{background:#fff;border-radius:var(--r);border:1px solid #e8f0ea;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}
.prod .ph{aspect-ratio:4/3;display:grid;place-items:center;font-size:54px;background:var(--g100);position:relative}
.prod .ph img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;background:#fff;padding:8px;box-sizing:border-box}
.prod .bd{padding:10px 12px 12px;display:flex;flex-direction:column;gap:4px;flex:1}
.prod .nm{font-weight:650;font-size:16px;line-height:1.25}
.price{font-size:20px;font-weight:800;color:var(--g800)}.price small{font-size:14px;font-weight:600;color:var(--muted)}
.prod .btn{margin-top:auto}
.prod.oos{opacity:.6}
.ribbon{position:absolute;top:8px;left:8px;background:var(--g800);color:#fff;font-size:12px;font-weight:700;padding:3px 9px;border-radius:99px}
.ribbon.grey{background:#6b766f}
.cat-ph-Meat{background:#f8e6e1}.cat-ph-Fresh{background:#e6f4dd}.cat-ph-Dairy{background:#eef3fb}.cat-ph-Bakery{background:#f8efdf}.cat-ph-Rice{background:#f6f1e4}.cat-ph-Spices{background:#fbeadd}.cat-ph-Frozen{background:#e5f2f7}.cat-ph-Drinks{background:#eae8f8}.cat-ph-Household{background:#eef0ef}

/* Basket */
.line{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);align-items:flex-start}
.line:last-child{border-bottom:0}
.line .em{font-size:30px;width:48px;text-align:center;flex:none}
.line .grow{flex:1;min-width:0}
.qty{display:flex;align-items:center;gap:6px}
.qty button{width:44px;height:44px;border-radius:12px;border:2px solid var(--line);background:#fff;font-size:22px;font-weight:700;cursor:pointer;color:var(--g800)}
.qty span{min-width:54px;text-align:center;font-weight:700}
.totals{display:grid;grid-template-columns:1fr auto;gap:6px 12px;font-size:18px}
.totals .big{font-size:22px;font-weight:800}
.paybox{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.paybox>div{border-radius:14px;padding:14px;text-align:center}
.paybox .now{background:var(--g700);color:#fff}.paybox .store{background:var(--amber-bg);color:var(--amber)}
.paybox b{display:block;font-size:26px}
.opt{display:flex;gap:12px;align-items:flex-start;border:2px solid var(--line);border-radius:14px;padding:14px;margin:8px 0;cursor:pointer;background:#fff}
.opt.on{border-color:var(--g600);background:var(--g50)}
.opt input{margin-top:2px;flex:none}
.opt b{display:block}
.sticky-cta{position:fixed;left:0;right:0;bottom:66px;z-index:15;padding:10px 16px;background:linear-gradient(transparent,var(--g50) 30%)}
.sticky-cta .in{max-width:688px;margin:0 auto}

/* Order status */
.ref{font-size:40px;font-weight:900;letter-spacing:.04em;color:var(--g800);text-align:center;margin:4px 0}
.qr{display:block;margin:6px auto;width:200px;height:200px;border-radius:12px}
.track{display:flex;justify-content:space-between;position:relative;margin:22px 4px 8px}
.track:before{content:"";position:absolute;top:17px;left:8%;right:8%;height:4px;background:var(--line);border-radius:4px}
.track .bar{position:absolute;top:17px;left:8%;height:4px;background:var(--g600);border-radius:4px;transition:width .4s}
.track .st{position:relative;text-align:center;width:25%;font-size:13px;color:var(--muted);font-weight:600}
.track .dot{width:38px;height:38px;border-radius:50%;background:#fff;border:3px solid var(--line);margin:0 auto 6px;display:grid;place-items:center;font-size:17px}
.track .st.done{color:var(--g800)}.track .st.done .dot{background:var(--g600);border-color:var(--g600);color:#fff}
.track .st.cur .dot{box-shadow:0 0 0 6px var(--g100)}

/* Portal */
.ocard{display:block;text-decoration:none;color:inherit}
.ocard .top-row{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.oref{font-size:22px;font-weight:900;color:var(--g800);letter-spacing:.02em;white-space:nowrap}
.ocard .top-row{flex-wrap:wrap}.ocard .top-row .right{flex:none}
.ogrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:12px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.kpi{background:#fff;border-radius:14px;border:1px solid var(--line);padding:14px}
.kpi b{display:block;font-size:26px;color:var(--g800)}
.kpi span{color:var(--muted);font-size:14px}
table.t{width:100%;border-collapse:collapse;font-size:15px}
table.t th,table.t td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
table.t th{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
table.t td.r,table.t th.r{text-align:right}
.tscroll{overflow-x:auto;margin:0 -16px;padding:0 16px}
.bars{display:flex;align-items:flex-end;gap:4px;height:150px;padding-top:10px}
.bars .b{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;font-size:11px;color:var(--muted);gap:3px}
.bars .b i{display:block;width:100%;background:var(--g500);border-radius:6px 6px 2px 2px;min-height:2px}
.bars .b.hi i{background:var(--g800)}
.hbar{display:flex;align-items:center;gap:8px;margin:6px 0;font-size:15px}
.hbar .lbl{width:44%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hbar .trk{flex:1;background:var(--g100);border-radius:6px;height:14px}
.hbar .trk i{display:block;height:100%;background:var(--g600);border-radius:6px}
.item-row{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.item-row.unavail{opacity:.55}.item-row.unavail .nm{text-decoration:line-through}
.alertbar{position:fixed;top:68px;left:50%;transform:translateX(-50%);z-index:50;display:flex;flex-direction:column;gap:8px;width:min(94vw,460px)}
.toast{background:var(--g900);color:#fff;padding:14px 16px;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.25);font-weight:600;animation:pop .25s ease-out;cursor:pointer}
.toast small{display:block;font-weight:400;opacity:.85}
@keyframes pop{from{transform:translateY(-10px);opacity:0}}
.modal-bg{position:fixed;inset:0;background:rgba(10,30,20,.45);z-index:60;display:flex;align-items:flex-end;justify-content:center}
.modal{background:#fff;width:100%;max-width:560px;max-height:92vh;overflow:auto;border-radius:22px 22px 0 0;padding:18px 18px 26px;animation:up .2s ease-out}
@media(min-width:700px){.modal-bg{align-items:center}.modal{border-radius:22px}}
@keyframes up{from{transform:translateY(30px);opacity:.4}}
.modal .x{float:right;background:var(--g100);border:0;width:42px;height:42px;border-radius:50%;font-size:22px;cursor:pointer;color:var(--g800)}
.seg{display:flex;flex-wrap:wrap;gap:8px}
.seg button{border:2px solid var(--line);background:#fff;border-radius:12px;padding:10px 14px;font:inherit;font-size:15px;font-weight:600;cursor:pointer;min-height:46px;color:var(--ink)}
.seg button.on{border-color:var(--g600);background:var(--g100);color:var(--g800)}
.demo{background:#fff;border:2px dashed var(--g200);border-radius:14px;padding:12px 14px;font-size:15px}
.demo code{background:var(--g100);padding:1px 6px;border-radius:6px;font-size:14px}
.empty{text-align:center;padding:34px 10px;color:var(--muted)}
.empty .i{font-size:46px}
.hours{display:grid;grid-template-columns:auto 1fr;gap:2px 14px;font-size:15px}
.hours .today{font-weight:800;color:var(--g800)}
.video{width:100%;border-radius:14px;background:#000;max-height:300px}
@media(max-width:420px){.grid2{grid-template-columns:1fr}.ref{font-size:34px}.hero h1{font-size:24px}.pgrid{grid-template-columns:1fr 1fr;gap:10px}}
@media print{.top,.bnav,.pnav,.noprint{display:none!important}}
.catrow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}.catrow h2{margin:10px 0 0}

/* product photos */
.cat-ph-Chilled{background:#e9f3ef}.cat-ph-Food{background:#f6efe6}.cat-ph-Snacks{background:#f9e9ef}.cat-ph-Health{background:#eef1f8}.cat-ph-Baby{background:#fdf2e3}.cat-ph-Fish{background:#e3eff6}
.line .em img,.item-row .em img{width:48px;height:48px;object-fit:contain;background:#fff;border-radius:10px;border:1px solid var(--line);display:block}
.item-row .em{width:48px;flex:none;text-align:center}
.mimg{display:block;width:100%;max-height:220px;object-fit:contain;background:#fff;border-radius:12px;margin:4px 0 8px}
.prod .ph .ribbon{z-index:1}

/* =====================  Storefront design  ===================== */
:root{--font:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--lime:#eef6e4;--lime2:#dcedc8;--dark:#10291c}
html,body{font-family:var(--font)}
h1,h2,h3{letter-spacing:-.015em}
.ic{width:22px;height:22px;flex:none}
.mark{width:38px;height:38px;flex:none}
.brand .mark{width:32px;height:32px}
body.cust{background:#fff}
body.cust .wrap{max-width:960px;padding:18px 20px 40px}
body.cust.lg .wrap{max-width:1140px}
body.cust.xl .wrap{max-width:1240px}

/* top strip + header */
.strip{background:var(--g900);color:var(--g200);font-size:13px}
.strip .in{max-width:1240px;margin:0 auto;padding:7px 20px;display:flex;gap:22px;align-items:center}
.strip span{display:inline-flex;align-items:center;gap:6px}.strip .ic{width:15px;height:15px;color:#7cc79b}
.strip a{margin-left:auto;color:#fff;font-weight:600;text-decoration:none}
.hdr{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid #e6eee9}
.hdr .in{max-width:1240px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;gap:28px}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--g900);font-size:23px;font-weight:600;letter-spacing:-.02em;flex:none}
.logo b{font-weight:800;color:var(--g600)}
.logo.light{color:#fff}.logo.light b{color:#7cc79b}
.hsearch{flex:1;display:flex;max-width:620px;border:2px solid var(--g600);border-radius:14px;overflow:hidden;background:#fff}
.hsearch input{border:0;min-height:48px;border-radius:0;font-size:16px;padding:10px 16px}
.hsearch input:focus{box-shadow:none}
.hsearch button{border:0;background:var(--g600);color:#fff;width:58px;cursor:pointer;display:grid;place-items:center}
.hsearch button:hover{background:var(--g700)}
.hicons{display:flex;gap:6px;margin-left:auto}
.hi{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none;color:var(--ink);font-size:13px;font-weight:600;padding:6px 12px;border-radius:12px;min-width:64px}
.hi .ic{width:25px;height:25px;color:var(--g700)}
.hi:hover{background:var(--g50)}
.hi.basket{background:var(--g600);color:#fff;flex-direction:row;gap:8px;padding:10px 16px;font-size:15px}
.hi.basket .ic{color:#fff}.hi.basket:hover{background:var(--g700)}
.hi .badge{position:absolute;top:0;right:4px;font-style:normal}
.hi.basket .badge{top:-6px;right:-6px;background:#f2a531;color:#2b1d00}
.catnav{background:#fff;border-bottom:1px solid #e6eee9;position:sticky;top:79px;z-index:25}
.catnav:empty{display:none}
.catnav .in{max-width:1240px;margin:0 auto;padding:0 20px;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.catnav a{white-space:nowrap;text-decoration:none;color:var(--ink);font-size:14.5px;font-weight:600;padding:12px 12px;border-bottom:3px solid transparent;display:inline-flex;align-items:center;gap:6px}
.catnav a:hover{color:var(--g600)}
.catnav a.on{color:var(--g700);border-bottom-color:var(--g600)}
.catnav a.strong{color:var(--g800)}.catnav a.strong .ic{width:18px;height:18px}
.alertbar{top:140px}

/* home hero */
.hero2{display:grid;grid-template-columns:1.05fr 1fr;gap:28px;align-items:center;background:linear-gradient(120deg,#e9f5ee 0%,#f6fbf2 55%,#fff7e6 100%);border-radius:28px;padding:44px 44px;margin:4px 0 22px;position:relative;overflow:hidden}
.eyebrow{display:inline-block;background:#fff;color:var(--g700);font-weight:700;font-size:13px;padding:6px 12px;border-radius:99px;border:1px solid var(--g200);text-transform:uppercase;letter-spacing:.06em}
.hero2 h1{font-size:46px;line-height:1.08;margin:16px 0 14px;color:var(--g900);font-weight:800}
.hero2 p{font-size:18px;color:#3e5547;max-width:520px}
.pcf{display:flex;align-items:center;gap:8px;background:#fff;border-radius:18px;padding:8px 8px 8px 16px;box-shadow:0 10px 30px rgba(15,61,39,.12);margin-top:22px;max-width:540px}
.pcf .ic{color:var(--g600)}
.pcf input{border:0;min-height:50px;font-size:17px;text-transform:uppercase;padding:8px 6px}
.pcf input::placeholder{text-transform:none}
.pcf input:focus{box-shadow:none}
.pcf .btn{white-space:nowrap;border-radius:13px}
.ticks{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:18px;font-size:14.5px;font-weight:600;color:var(--g800)}
.ticks span{display:inline-flex;align-items:center;gap:6px}.ticks .ic{width:18px;height:18px;color:var(--g600)}
.hart{position:relative;height:380px}
.hart div{position:absolute;background:#fff;border-radius:24px;box-shadow:0 14px 34px rgba(15,61,39,.14);display:grid;place-items:center;overflow:hidden}
.hart img{width:100%;height:100%;object-fit:contain;padding:10px}
.hart .h0{left:4%;top:2%;width:44%;height:52%}
.hart .h1{right:6%;top:0;width:34%;height:38%}
.hart .h2{right:0;top:41%;width:30%;height:40%}
.hart .h3{left:30%;bottom:0;width:30%;height:36%}
.hart .h4{left:52%;top:23%;width:30%;height:42%;z-index:2}
.hart .h5{left:0;bottom:2%;width:28%;height:36%}
.how{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 10px}
.how div{background:#fff;border:1px solid #e6eee9;border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:4px}
.how .ic{width:36px;height:36px;color:var(--g600);background:var(--g100);border-radius:12px;padding:7px;margin-bottom:6px;box-sizing:content-box}
.how b{font-size:16px}.how span{color:var(--muted);font-size:14.5px}
.sechead{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:34px 0 14px}
.sechead h2{margin:0;font-size:24px;color:var(--g900)}
.browse{display:inline-flex;align-items:center;gap:2px;font-weight:700;text-decoration:none;color:var(--g700);white-space:nowrap}
.browse .ic{width:18px;height:18px}

/* shop cards */
.shopgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px}
.scard{border:1px solid #e3ece6;border-radius:22px;overflow:hidden;text-decoration:none;color:inherit;background:#fff;transition:box-shadow .2s,transform .2s;display:flex;flex-direction:column}
.scard:hover{box-shadow:0 14px 34px rgba(15,61,39,.13);transform:translateY(-2px)}
.sban{height:108px;background:linear-gradient(135deg,var(--g700),var(--g500));position:relative;display:flex;align-items:flex-end;padding:0 18px}
.sban .tag{position:absolute;top:14px;right:14px}
.slogo{width:76px;height:76px;border-radius:20px;background:#fff;border:4px solid #fff;box-shadow:0 6px 16px rgba(0,0,0,.12);display:grid;place-items:center;overflow:hidden;margin-bottom:-30px;flex:none}
.slogo img{width:100%;height:100%;object-fit:cover}
.slogo span{font-weight:800;font-size:26px;color:var(--g700)}
.slogo.big{width:96px;height:96px;margin:0;border:1px solid #e3ece6;box-shadow:none;background:var(--lime)}
.sbody{padding:40px 18px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.sbody h3{font-size:19px;margin:0}
.smeta{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;font-size:14px;color:var(--muted);margin:2px 0 8px}
.smeta span{display:inline-flex;align-items:center;gap:5px}.smeta .ic{width:16px;height:16px}
.sbody .btn{margin-top:auto}

/* category tiles */
.ctiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.ctile{display:flex;flex-direction:column;align-items:center;gap:8px;text-decoration:none;color:var(--ink);background:var(--lime);border-radius:20px;padding:14px 10px 12px;border:2px solid transparent;text-align:center;transition:background .15s,border-color .15s}
.ctile:hover{background:var(--lime2)}
.ctile.on{border-color:var(--g600);background:#fff}
.cimg{width:84px;height:84px;border-radius:50%;background:#fff;display:grid;place-items:center;overflow:hidden}
.cimg img{width:100%;height:100%;object-fit:contain;padding:10px}
.cimg .ic{width:38px;height:38px;color:var(--g600)}
.cname{font-weight:700;font-size:14.5px;line-height:1.25}
.cname small{display:block;font-weight:500;color:var(--muted);font-size:12.5px;margin-top:2px}
.shopcats{grid-template-columns:repeat(auto-fill,minmax(128px,1fr));margin:18px 0 6px}
.shopcats .cimg{width:64px;height:64px}

/* shop page */
.crumbs{font-size:14px;color:var(--muted);margin:2px 0 14px}
.crumbs a{color:var(--muted);text-decoration:none}.crumbs a:hover{color:var(--g700);text-decoration:underline}
.crumbs span{color:var(--ink)}
.shophead{display:flex;gap:20px;align-items:center;border:1px solid #e3ece6;border-radius:24px;padding:20px;background:#fff}
.shophead h1{margin:0 0 6px;font-size:30px;color:var(--g900)}
.shopmeta{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;color:var(--muted);font-size:15px;margin-top:4px}
.shopmeta span,.shopmeta a{display:inline-flex;align-items:center;gap:6px}.shopmeta .ic{width:17px;height:17px}
.ccbox{display:flex;gap:12px;align-items:center;background:var(--lime);border-radius:18px;padding:14px 16px;max-width:300px}
.ccbox .ic{width:34px;height:34px;color:var(--g700)}
.ccbox b{display:block;color:var(--g800)}.ccbox span{font-size:13.5px;color:#46604f}
.toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0 14px}
.toolbar:empty{display:none}
.toolbar h2{margin:0;font-size:24px}
.sortby{display:flex;align-items:center;gap:8px;font-weight:600;margin:0;font-size:14px;color:var(--muted)}
.sortby select{min-height:44px;padding:8px 12px;width:auto;font-size:15px}
.prow{margin-top:8px}
.prow .sechead{margin:28px 0 12px}
.railwrap{position:relative}
.rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 5*14px)/6);gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 2px 8px}
.rail::-webkit-scrollbar{display:none}
.rail>.prod{scroll-snap-align:start}
.rarr{position:absolute;top:34%;z-index:3;width:42px;height:42px;border-radius:50%;border:1px solid #dfe9e3;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.12);cursor:pointer;display:grid;place-items:center;color:var(--g700)}
.rarr.l{left:-16px}.rarr.r{right:-16px}
.rarr:hover{background:var(--g50)}

/* product cards */
.pgrid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.prod{border-radius:18px;border:1px solid #e6eee9;box-shadow:none;transition:box-shadow .2s,border-color .2s}
.prod:hover{box-shadow:0 10px 28px rgba(15,61,39,.12);border-color:#d5e5db}
.prod .ph{aspect-ratio:1/1;background:#fff;border-bottom:1px solid #f0f4f1}
.prod .ph img{padding:14px}
.prod .ph .emo{font-size:64px}
.prod .ph[class*="cat-ph"]:has(.emo){background:var(--lime)}
.prod .bd{padding:12px 14px 14px;gap:3px}
.prod .nm{font-weight:600;font-size:15px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.prod .unit{font-size:13px;color:var(--muted)}
.prod .price{font-size:21px;margin:4px 0 8px;color:var(--g800)}
.prod .btn.sm{min-height:44px;border-radius:12px;font-size:15px}
.prod .qty button{width:42px;height:42px}
.ribbon{top:10px;left:10px;background:#f2a531;color:#2b1d00;font-size:11.5px;letter-spacing:.02em}
.ribbon.grey{background:#6b766f;color:#fff}

/* join band + footer */
.joinband{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(120deg,var(--g800),var(--g600));color:#fff;border-radius:26px;padding:32px 36px;margin:42px 0 10px}
.joinband h2{color:#fff;margin:0 0 6px;font-size:26px}.joinband p{color:var(--g200);max-width:640px;margin:0}
.btn.light{background:#fff;color:var(--g800);border-color:#fff;white-space:nowrap}.btn.light:hover{background:var(--g100)}
#foot:empty{display:none}
.foot{background:var(--dark);color:#b9cfc1;margin-top:46px;padding-bottom:70px}
.foot .in{max-width:1240px;margin:0 auto;padding:0 20px}
.foot .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:30px;padding-top:44px;padding-bottom:34px}
.foot h4{color:#fff;margin:4px 0 12px;font-size:15px}
.foot .cols a,.foot .cols span{display:block;color:#b9cfc1;text-decoration:none;font-size:14.5px;margin:7px 0}
.foot .cols a:hover{color:#fff}
.foot .about p{font-size:14.5px;max-width:300px;margin-top:12px}
.foot .about .logo{display:inline-flex;margin:0;color:#fff}
.foot .base{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;border-top:1px solid #24453a;padding-top:18px;padding-bottom:18px;font-size:13.5px}
.pays{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pays .ic{width:18px;height:18px}
.pays i{font-style:normal;background:#fff;color:#1a2b22;border-radius:6px;padding:3px 8px;font-weight:700;font-size:12px}

/* basket */
.bcols{display:grid;grid-template-columns:1fr 400px;gap:22px;align-items:start}
.bside{position:sticky;top:150px}
.bside .card{margin-top:12px}
.bside .btn.huge{font-size:20px;min-height:64px}

/* portal header logo */
.top .brand{gap:10px}

/* responsive */
@media(min-width:900px){body.cust .bnav{display:none}.foot{padding-bottom:0}}
@media(max-width:1100px){.rail{grid-auto-columns:calc((100% - 4*14px)/5)}.foot .cols{grid-template-columns:1fr 1fr}}
@media(max-width:900px){
  .hdr .in{flex-wrap:wrap;gap:10px 14px;padding:10px 16px}
  .hsearch{order:3;flex-basis:100%;max-width:none}
  .hsearch input{min-height:44px}
  .hi{min-width:0;padding:6px 8px}.hi span{display:none}.hi.basket{padding:9px 12px}.hi.basket span{display:inline}
  .hide-sm{display:none!important}
  .catnav{top:121px}
  .hero2{grid-template-columns:1fr;padding:28px 22px}.hero2 h1{font-size:34px}.hart{display:none}
  .how{grid-template-columns:1fr 1fr}
  .rail{grid-auto-columns:calc((100% - 2*12px)/2.4);gap:12px}.rarr{display:none}
  .shophead{flex-wrap:wrap}.ccbox{max-width:none;flex-basis:100%}
  .bcols{grid-template-columns:1fr}.bside{position:static}
  .joinband{flex-direction:column;align-items:flex-start;padding:26px 22px}
  .alertbar{top:130px}
}
@media(max-width:560px){
  body.cust .wrap{padding:12px 14px 110px}
  .logo{font-size:20px}.mark{width:34px;height:34px}
  .hero2{border-radius:22px;margin-top:0}.hero2 h1{font-size:29px}.hero2 p{font-size:16px}
  .pcf{flex-wrap:wrap;padding:10px}.pcf input{flex:1;min-width:0}.pcf .btn{flex-basis:100%}
  .how{grid-template-columns:1fr}
  .ctiles{grid-template-columns:repeat(3,1fr);gap:8px}.ctile{padding:10px 6px;border-radius:16px}.cimg{width:62px;height:62px}.cname{font-size:13px}
  .shopcats{display:flex;overflow-x:auto;scrollbar-width:none;margin:14px -14px 4px;padding:0 14px}.shopcats .ctile{flex:0 0 108px}
  .shophead{padding:16px}.slogo.big{width:66px;height:66px}.shophead h1{font-size:23px}
  .pgrid{grid-template-columns:1fr 1fr;gap:10px}
  .sechead h2,.toolbar h2{font-size:20px}
  .foot .cols{grid-template-columns:1fr}
}
.shophead .grow{flex:1;min-width:0}
.bnav a .i .ic{width:24px;height:24px;display:block;margin:0 auto 2px}
.bnav a.on .i .ic{color:var(--g600)}
@media(max-width:560px){
  .shophead{gap:12px;align-items:flex-start}.shophead .ccbox{display:none}
  .shopmeta{font-size:14px}
  .strip .in{justify-content:center}
}

/* Install button only shows when the browser offers installation */
.install-only{display:none}
body.can-install .install-only{display:inline-flex}
/* Weight entry on shop order page */
.wt{display:flex;gap:8px;align-items:center;margin-top:6px;flex-wrap:wrap}
.wt input{max-width:110px;padding:8px 10px;font-size:18px}
/* Catalogue picker */
.cat-row{gap:10px}
.cat-img{width:52px;height:52px;flex:none;display:flex;align-items:center;justify-content:center;font-size:28px;border-radius:10px;background:#fff;overflow:hidden}
.cat-img img{width:52px;height:52px;object-fit:contain}
.cat-price{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:150px}
.cat-price input{width:90px;padding:8px;font-size:16px;text-align:right}
.cat-price .small{width:100%;text-align:right}
.catbar{position:sticky;bottom:0;z-index:15;margin:14px -16px 0;padding:10px 16px;background:#fff;border-top:2px solid var(--line);box-shadow:0 -4px 12px rgba(0,0,0,.06)}
.catbar .in{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cat-row{flex-wrap:wrap}
.cat-row .grow{flex:1 1 200px;min-width:0}
.cat-price{margin-left:auto;flex:none}
@media (max-width:600px){
  .cat-row .grow{flex:1 1 calc(100% - 110px)}
  .cat-price{max-width:none;width:100%;justify-content:flex-end;padding-left:94px}
  .cat-price .small{width:auto;margin-left:6px}
  .catbar .in{gap:8px}
  .catbar .btn{flex:1}
}

/* Legal pages */
.legal{max-width:760px;line-height:1.65}
.legal h2{font-size:19px;margin:28px 0 8px;scroll-margin-top:90px}
.legal ul{padding-left:22px;margin:8px 0}.legal li{margin:4px 0}
.legal .toc{display:flex;flex-direction:column;gap:4px;margin:18px 0 8px;padding:14px 18px}
.legal .toc b{margin-bottom:4px}
.legal-links{margin-top:32px}
.foot .base a{color:inherit;text-decoration:underline}
.check a{font-weight:600}
label.check{align-items:flex-start;margin-top:16px}label.check input{margin-top:4px;flex:none}

/* Get the app bar */
.instbar{background:#e8f3ec;border-bottom:1px solid #cfe3d6}
.instbar .in{max-width:1200px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;gap:12px}
.instbar .mark{width:36px;height:36px;flex:none}
.instbar .t{flex:1;min-width:0;display:flex;flex-direction:column;font-size:14px;line-height:1.35;color:#163b2b}
.instbar .t b{font-size:15px}
.instbar .x{flex:none;width:44px;height:44px;border:0;background:none;font-size:26px;line-height:1;color:#4d6b5c;cursor:pointer;border-radius:10px}
.instbar .x:hover{background:#d8eadf}

/* Category chips: on computers and tablets show every category on wrapped rows (no hidden sideways scroll);
   on phones they stay one swipeable row */
@media (min-width: 700px){.chips{flex-wrap:wrap;overflow-x:visible;margin:0;padding-left:0;padding-right:0}}

/* Demo shop banner */
.demobar{background:#fdf3d8;border:1.5px solid #e2b64a;color:#3d2a00;border-radius:12px;padding:12px 16px;margin:12px 0;font-size:15px;line-height:1.4}

/* Show/hide password */
.pwwrap{position:relative}
.pwwrap input{padding-right:52px !important;width:100%;box-sizing:border-box}
.pweye{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;background:none;color:#4d6b5c;cursor:pointer;border-radius:10px;display:flex;align-items:center;justify-content:center}
.pweye:hover{background:#e8f3ec;color:#163b2b}
