:root{
  --navy:#0A2D5A; --navy-d:#051630; --navy-2:#123B70;
  --orange:#F28C28; --orange-d:#D9741A; --orange-l:#FFF1E3; --amber:#FFB35C;
  --bg:#EEF1F6; --card:#fff; --ink:#0E1B2E; --muted:#5A6A82; --line:#DCE2EE; --green:#1F9D55; --red:#D64545; --soft:#F6F8FB;
  --r:16px; --shadow:0 6px 22px -14px rgba(6,29,61,.45);
  --top:env(safe-area-inset-top,0px); --bot:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme:dark){
  :root{ --bg:#060F20; --card:#0F1E38; --ink:#E9EEF7; --muted:#9AAAC4; --line:#21324F; --orange-l:#3A2612; --soft:#0B1830; --shadow:0 6px 22px -14px rgba(0,0,0,.8); }
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--ink);font:500 14.5px/1.45 Manrope,system-ui,-apple-system,"Segoe UI",sans-serif}
body{min-height:100vh;padding:calc(112px + var(--top)) 0 calc(68px + var(--bot))}
body.nosearch{padding-top:calc(58px + var(--top))}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
h1,h2,h3{font-family:Archivo,Manrope,sans-serif;letter-spacing:-.01em;margin:0}
.ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
[hidden]{display:none!important}
.muted{color:var(--muted)}.small{font-size:12.5px}

/* header */
.hdr{position:fixed;inset:0 0 auto;z-index:20;padding:var(--top) 10px 10px;background:linear-gradient(180deg,var(--navy),var(--navy-2));color:#fff;box-shadow:0 4px 18px -10px rgba(0,0,0,.6)}
.nosearch .hdr{padding-bottom:4px}
.hrow{display:flex;align-items:center;gap:4px;height:50px}
.brand{display:flex;align-items:center;gap:8px;min-width:0;margin-right:auto}
.brand img{height:30px;background:#fff;border-radius:8px;padding:3px 5px}
.brand span{display:flex;flex-direction:column;line-height:1.05}
.brand b{font-family:Archivo;font-size:16.5px}
.brand small{font-size:9.5px;letter-spacing:.16em;color:var(--amber);font-weight:800}
.ttl{flex:1;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:4px}
.hdr.sub .brand{display:none}
.hdr:not(.sub) .ttl{display:none}
.ib{width:42px;height:42px;border:0;border-radius:50%;background:transparent;display:grid;place-items:center;cursor:pointer;color:inherit;flex:none}
.ib:active{background:rgba(255,255,255,.14)}
.back .ico{transform:rotate(180deg)}
.sbar{display:flex;align-items:center;gap:10px;background:#fff;color:#0E1B2E;border-radius:12px;padding:0 12px;height:44px;margin:0}
.sbar input{flex:1;border:0;outline:none;background:transparent;font-size:15px;min-width:0;color:#0E1B2E}
.sbar .ico{color:#5A6A82}
.nosearch .sbar{display:none}
.bubble{position:relative;display:grid;place-items:center}
.cnt{position:absolute;top:-7px;right:-10px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--orange);color:#fff;font:800 11px/18px Manrope;font-style:normal;text-align:center}

/* bottom tabs */
.tabs{position:fixed;inset:auto 0 0;z-index:20;display:grid;grid-template-columns:repeat(5,1fr);padding:4px 4px calc(4px + var(--bot));background:var(--card);border-top:1px solid var(--line)}
.tabs a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0;font-size:11px;font-weight:700;color:var(--muted)}
.tabs a.on{color:var(--orange-d)}
@media (prefers-color-scheme:dark){.tabs a.on{color:var(--amber)}}

main{max-width:1100px;margin:0 auto;padding:12px 12px 24px;outline:none}
.sec{margin:20px 2px 10px;display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.sec h2{font-size:17.5px}.sec a{font-size:13px;font-weight:800;color:var(--orange-d);white-space:nowrap}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
.pad{padding:14px}

/* banners */
.banners{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;scrollbar-width:none;border-radius:18px}
.banners::-webkit-scrollbar{display:none}
.banner{flex:0 0 100%;scroll-snap-align:start;position:relative;min-height:190px;border-radius:18px;overflow:hidden;color:#fff;padding:18px;display:flex;flex-direction:column;justify-content:flex-end;background:var(--navy) center/cover}
.banner::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(5,22,48,.92) 10%,rgba(5,22,48,.35))}
.banner>*{position:relative}
.banner .tag{align-self:flex-start;background:var(--orange);font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:4px 9px;border-radius:99px}
.banner h2{font-size:24px;line-height:1.12;margin:10px 0 4px;max-width:330px}
.banner h2 em{font-style:normal;color:var(--amber)}
.banner p{margin:0 0 12px;color:#D5DEEC;font-size:13px;max-width:330px}
.dots{display:flex;justify-content:center;gap:6px;margin-top:8px}
.dots i{width:7px;height:7px;border-radius:4px;background:var(--line);transition:.25s}
.dots i.on{width:20px;background:var(--orange)}
@media (min-width:760px){.banner{flex-basis:calc(50% - 5px)}}

/* category circles */
.cats{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:4px 2px}
.cats::-webkit-scrollbar{display:none}
.cat{flex:0 0 78px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:11px;font-weight:700;line-height:1.2}
.cat .circ{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:var(--card);border:1px solid var(--line);color:var(--orange-d);box-shadow:var(--shadow)}
@media (prefers-color-scheme:dark){.cat .circ{color:var(--amber)}}

/* trust strip */
.trust{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
@media (min-width:640px){.trust{grid-template-columns:repeat(4,1fr)}}
.trust div{display:flex;gap:10px;align-items:center;padding:10px 12px;font-size:12.5px;font-weight:700}
.trust .ico{color:var(--green)}

/* product grid & cards */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
@media (min-width:600px){.grid{grid-template-columns:repeat(3,1fr)}}
@media (min-width:900px){.grid{grid-template-columns:repeat(5,1fr)}}
.rowscroll{display:grid;grid-auto-flow:column;grid-auto-columns:46%;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.rowscroll::-webkit-scrollbar{display:none}
@media (min-width:600px){.rowscroll{grid-auto-columns:30%}}
@media (min-width:900px){.rowscroll{grid-auto-columns:19%}}
.pc{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;position:relative}
.pc .im{aspect-ratio:1/1;background:#fff;display:grid;place-items:center;overflow:hidden}
.pc .im img{width:100%;height:100%;object-fit:cover}
.ph{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,var(--orange-l),var(--soft));color:var(--orange-d)}
.pc .ph .ico{width:40px;height:40px;stroke-width:1.5}
.pc .bd{padding:9px 10px 10px;display:flex;flex-direction:column;gap:4px;flex:1}
.pc .nm{font-weight:700;font-size:13.5px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px}
.pc .ct{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.price b{font:800 16px Archivo}
.price s{color:var(--muted);font-size:12px}
.price .off{color:var(--green);font-weight:800;font-size:12px}
.price small{color:var(--muted);font-size:11px}
.quote{color:var(--orange-d);font-weight:800;font-size:13px}
.pc .act{margin-top:auto;padding-top:6px}
.ribbon{position:absolute;top:8px;left:8px;background:var(--navy);color:#fff;font-size:10px;font-weight:800;letter-spacing:.06em;padding:3px 8px;border-radius:6px;text-transform:uppercase}
.ribbon.out{background:var(--red)}
.ribbon.own{background:var(--orange)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:11px 16px;font-weight:800;cursor:pointer;min-height:44px;font-size:14.5px}
.btn .ico{width:19px;height:19px}
.btn.pri{background:var(--orange);color:#fff}.btn.pri:active{background:var(--orange-d)}
.btn.buy{background:#FB641B;color:#fff}
.btn.navy{background:var(--navy);color:#fff}
.btn.ghost{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.35)}
.btn.line{background:var(--card);border:1.5px solid var(--line)}
.btn.oline{background:transparent;border:1.5px solid var(--orange);color:var(--orange-d)}
.btn.wa{background:#25D366;color:#fff}
.btn.sm{min-height:36px;padding:7px 12px;font-size:13px;border-radius:10px}
.btn.block{width:100%}
.btn:disabled{opacity:.55}

/* chips & filters */
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0 8px}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;padding:7px 12px;border-radius:99px;border:1.5px solid var(--line);background:var(--card);font-weight:700;font-size:12.5px;cursor:pointer;white-space:nowrap}
.chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:4px 2px 10px;flex-wrap:wrap}
.toolbar select{border:1.5px solid var(--line);background:var(--card);border-radius:10px;padding:7px 10px;font-weight:700;font-size:13px}
.head{display:flex;gap:12px;align-items:center;margin:2px 2px 12px}
.head .circ{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;background:var(--orange);color:#fff;flex:none}
.head p{margin:2px 0 0;color:var(--muted);font-size:12.5px}

/* product page */
.pd{display:grid;gap:12px}
@media (min-width:820px){.pd{grid-template-columns:1fr 1fr;align-items:start}}
.pd .gal{aspect-ratio:1/1;background:#fff;border-radius:16px;overflow:hidden;border:1px solid var(--line);display:grid;place-items:center}
.pd .gal img{width:100%;height:100%;object-fit:cover}
.pd .gal .ph .ico{width:90px;height:90px;stroke-width:1.2}
.crumbs{font-size:12px;color:var(--muted);font-weight:700}
.crumbs a{color:var(--orange-d)}
.pd h1{font-size:22px;line-height:1.2;margin:4px 0 8px}
.pd .price b{font-size:26px}
.pd .price s{font-size:14px}.pd .price .off{font-size:14px}
.badges{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.badge{font-size:11.5px;font-weight:800;padding:4px 9px;border-radius:7px;background:var(--soft);border:1px solid var(--line)}
.badge.ok{color:var(--green)}.badge.warn{color:#B35C0E}.badge.bad{color:var(--red)}
.info{display:grid;gap:10px;margin-top:4px}
.info div{display:flex;gap:10px;align-items:flex-start;font-size:13px}
.info .ico{color:var(--orange-d);width:20px;height:20px;margin-top:1px}
.buybar{position:fixed;left:0;right:0;bottom:calc(60px + var(--bot));z-index:15;display:flex;gap:8px;padding:8px 12px;background:var(--card);border-top:1px solid var(--line);box-shadow:0 -8px 22px -16px rgba(0,0,0,.5)}
.buybar .btn{flex:1}
.buybar .tot{flex:1;display:flex;flex-direction:column;justify-content:center;line-height:1.15}
.buybar .tot b{font:800 18px Archivo}
.hasbar{padding-bottom:84px}
.desc{white-space:pre-line;font-size:13.5px}

/* steppers & forms */
.stepper{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:10px;overflow:hidden;background:var(--card)}
.stepper button{width:38px;height:38px;border:0;background:transparent;font-size:20px;font-weight:800;cursor:pointer}
.stepper input{width:64px;border:0;text-align:center;font-weight:800;font-size:15px;background:transparent;outline:none}
label{display:block;font-size:12.5px;font-weight:800;color:var(--muted);margin:12px 0 5px}
.in{width:100%;border:1.5px solid var(--line);background:var(--card);border-radius:11px;padding:11px 12px;font-size:15px;outline:none}
.in:focus{border-color:var(--orange)}
.in.bad{border-color:var(--red)}
textarea.in{min-height:70px;resize:vertical}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.err{color:var(--red);font-weight:700;font-size:13px;min-height:18px;margin-top:8px}

/* cart */
.cl{display:flex;gap:12px;padding:12px}
.thumb{width:76px;height:76px;border-radius:12px;overflow:hidden;flex:none;background:#fff;border:1px solid var(--line);display:grid;place-items:center;color:var(--orange-d)}
.thumb img{width:100%;height:100%;object-fit:cover}
.cl .mid{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.cl .nm{font-weight:700;line-height:1.25}
.cl .row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.lk{border:0;background:transparent;color:var(--muted);font-weight:800;font-size:12.5px;cursor:pointer;padding:6px 0;display:inline-flex;gap:5px;align-items:center}
.lk .ico{width:16px;height:16px}
.sum{display:grid;gap:8px;font-size:14px}
.sum div{display:flex;justify-content:space-between;gap:10px}
.sum .tot{font:800 17px Archivo;border-top:1px dashed var(--line);padding-top:10px}
.qline{padding:12px}
.qline .meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.qline .meta .in{padding:9px 10px;font-size:14px}

/* checkout */
.step{padding:14px;margin-bottom:10px}
.step h3{font-size:15.5px;display:flex;gap:8px;align-items:center}
.step h3 .n{width:24px;height:24px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:12px}
.opt{display:flex;gap:10px;align-items:flex-start;padding:11px;border:1.5px solid var(--line);border-radius:12px;margin-top:8px;cursor:pointer;font-weight:600}
.opt input{margin-top:3px;accent-color:var(--orange);width:18px;height:18px;flex:none}
.opt.on{border-color:var(--orange);background:var(--orange-l)}
.opt small{color:var(--muted);display:block;font-weight:500}

/* orders */
.st{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:800;padding:4px 9px;border-radius:99px;background:var(--soft);border:1px solid var(--line);white-space:nowrap}
.st.placed,.st.new{color:#B35C0E;background:#FFF1E3;border-color:#FFD9B0}
.st.confirmed,.st.packed,.st.quoted{color:#1957B8;background:#E7F0FF;border-color:#C4D9FF}
.st.shipped{color:#6B3FC4;background:#F0EAFF;border-color:#D9CCFF}
.st.delivered,.st.won{color:#1C7A43;background:#E3F6EA;border-color:#BFE6CF}
.st.cancelled,.st.lost,.st.closed{color:#5A6A82}
.tl{list-style:none;margin:10px 0 0;padding:0 0 0 6px}
.tl li{position:relative;padding:0 0 16px 22px;font-size:13px}
.tl li::before{content:"";position:absolute;left:0;top:3px;width:12px;height:12px;border-radius:50%;background:var(--line)}
.tl li::after{content:"";position:absolute;left:5px;top:16px;bottom:0;width:2px;background:var(--line)}
.tl li:last-child::after{display:none}
.tl li.done::before,.tl li.done::after{background:var(--green)}
.tl li.cur b{color:var(--green)}
.tl small{color:var(--muted);display:block}
.seg{display:grid;grid-template-columns:1fr 1fr;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:4px;margin-bottom:12px}
.seg button{border:0;background:transparent;padding:9px;border-radius:9px;font-weight:800;cursor:pointer}
.seg button.on{background:var(--navy);color:#fff}

.empty{text-align:center;padding:36px 16px}
.empty .ico{width:54px;height:54px;color:var(--orange);stroke-width:1.5}
.empty h3{margin:12px 0 6px}
.done{text-align:center;padding:26px 18px}
.done .tick{width:76px;height:76px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;margin:0 auto 12px;animation:pop .45s cubic-bezier(.2,1.6,.4,1)}
.done .tick .ico{width:40px;height:40px;stroke-width:3}
.ref{font:900 24px Archivo;color:var(--orange-d);margin:4px 0}
@keyframes pop{from{transform:scale(.3);opacity:0}}
.note{background:var(--orange-l);border-radius:12px;padding:11px 13px;font-size:12.5px}
.install{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-top:12px;background:var(--navy);color:#fff;border:0}
.install img{width:42px;height:42px;border-radius:10px;background:#fff;padding:3px}
.install div{flex:1;font-size:12.5px}.install b{display:block;font-size:14px}
.menu a,.menu button{display:flex;align-items:center;gap:12px;padding:14px;border:0;background:transparent;width:100%;text-align:left;font-weight:700;border-bottom:1px solid var(--line);cursor:pointer}
.menu>:last-child{border-bottom:0}
.menu .ico{color:var(--orange-d)}
.menu .chev{margin-left:auto;color:var(--muted)}
.skel{background:linear-gradient(90deg,var(--line),var(--soft),var(--line));background-size:200% 100%;animation:sk 1.2s infinite;border-radius:14px}
@keyframes sk{to{background-position:-200% 0}}

/* sheet & toast */
.scrim{position:fixed;inset:0;z-index:40;background:rgba(5,15,30,.5);animation:fade .2s}
.sheet{position:fixed;inset:auto 0 0;z-index:41;max-height:90vh;overflow:auto;background:var(--card);border-radius:22px 22px 0 0;padding:8px 18px calc(18px + var(--bot));animation:up .25s cubic-bezier(.2,.9,.3,1);max-width:640px;margin:0 auto}
.sheet .grab{width:42px;height:5px;border-radius:3px;background:var(--line);margin:4px auto 12px}
.sheet h3{font-size:19px;padding-right:34px}
.x{border:0;background:transparent;color:var(--muted);width:36px;height:36px;border-radius:50%;display:grid;place-items:center;cursor:pointer}
@keyframes up{from{transform:translateY(100%)}}@keyframes fade{from{opacity:0}}
.toast{position:fixed;left:50%;bottom:calc(80px + var(--bot));transform:translate(-50%,20px);z-index:50;background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:12px;font-weight:700;font-size:14px;opacity:0;pointer-events:none;transition:.25s;max-width:90vw;text-align:center}
.toast.on{opacity:1;transform:translate(-50%,0)}
body.hasbarb .toast{bottom:calc(140px + var(--bot))}
