/* LocalBazaar web store */
:root{
  --brand:#256fd0;--brand-600:#2163ba;--brand-700:#1b4f97;--brand-50:#eef4ff;--brand-100:#dbe7fb;
  --accent:#F4A51C;--accent-50:#FEF4E0;
  --ink:#16191D;--ink-2:#3C434B;--muted:#6B737C;--line:#E6E3DC;
  --bg:#F6F5F1;--card:#FFFFFF;--danger:#D64545;--ok:#1E9E5A;--warn:#C98A00;
  --r:16px;--r-sm:10px;--shadow:0 1px 2px rgba(22,25,29,.05),0 6px 20px rgba(22,25,29,.06);
  --wrap:1200px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Plus Jakarta Sans',system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.5;padding-bottom:72px}
@media(min-width:900px){body{padding-bottom:0}}
body.no-scroll{overflow:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit;color:inherit}
[x-cloak]{display:none!important}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 16px}
.page{min-height:60vh}
h1,h2,h3{margin:0;line-height:1.2;letter-spacing:-.01em}
h1{font-size:28px;font-weight:800}
h2{font-size:20px;font-weight:800}
h3{font-size:16px;font-weight:700}
.muted{color:var(--muted)}.small{font-size:13px}.tiny{font-size:12px}
.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrapflex{flex-wrap:wrap}
.grow{flex:1;min-width:0}.center{text-align:center}
.stack>*+*{margin-top:12px}
.mt-1{margin-top:6px}.mt-2{margin-top:12px}.mt-3{margin-top:20px}.mt-4{margin-top:32px}.mb-2{margin-bottom:12px}.mb-3{margin-bottom:20px}
.ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* header */
.hdr{position:sticky;top:0;z-index:40;background:rgba(246,245,241,.92);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.hdr-in{display:flex;align-items:center;gap:14px;height:64px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;white-space:nowrap}
.brand img{height:34px;width:auto}
.loc-btn{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:var(--card);border:1px solid var(--line);max-width:260px;cursor:pointer}
.loc-btn span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hdr-search{flex:1;display:none}
@media(min-width:900px){.hdr-search{display:block}}
.hdr-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;border:1px solid var(--line);background:var(--card);cursor:pointer}
.badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--accent);color:#1b1300;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center}
.svc-nav{display:flex;gap:6px;overflow-x:auto;padding:0 0 10px;scrollbar-width:none}
.svc-nav::-webkit-scrollbar{display:none}
.svc-nav a{flex:none;padding:7px 14px;border-radius:999px;font-weight:600;font-size:14px;color:var(--ink-2);border:1px solid transparent}
.svc-nav a:hover,.svc-nav a.on{background:var(--card);border-color:var(--line);color:var(--ink)}
@media(max-width:899px){.loc-btn{max-width:150px;font-size:13px}.brand .name{display:none}}

/* inputs & buttons */
.input,.select,.textarea{width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--card);outline:none;transition:border .15s,box-shadow .15s}
.input:focus,.select:focus,.textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-50)}
.textarea{min-height:90px;resize:vertical}
label.lbl{display:block;font-size:13px;font-weight:600;color:var(--ink-2);margin-bottom:6px}
.search{position:relative}
.search input{padding-left:44px;height:46px;border-radius:999px}
.search svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:12px;border:1px solid transparent;font-weight:700;cursor:pointer;background:var(--brand);color:#fff;transition:transform .05s,background .15s;white-space:nowrap}
.btn:hover{background:var(--brand-600)}.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn.ghost{background:var(--card);color:var(--ink);border-color:var(--line)}.btn.ghost:hover{background:#fbfaf7}
.btn.soft{background:var(--brand-50);color:var(--brand-600)}
.btn.accent{background:var(--accent);color:#1b1300}
.btn.danger{background:#fff;color:var(--danger);border-color:#f0caca}
.btn.sm{padding:8px 12px;border-radius:10px;font-size:13px}
.btn.block{width:100%}
.chip{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:var(--card);font-weight:600;font-size:13px;cursor:pointer;white-space:nowrap}
.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.pill{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:700;background:var(--brand-50);color:var(--brand-600)}
.pill.warn{background:var(--accent-50);color:#8a5b00}.pill.danger{background:#fdeaea;color:var(--danger)}.pill.grey{background:#eeece7;color:var(--ink-2)}

/* cards */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
.card.pad{padding:18px}
.section{margin-top:36px}
.section-h{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:14px}
.section-h a{font-weight:700;color:var(--brand);font-size:14px}
.grid{display:grid;gap:14px}
.g-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-products{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-vendors{grid-template-columns:repeat(1,minmax(0,1fr))}
@media(min-width:640px){.g-products{grid-template-columns:repeat(3,minmax(0,1fr))}.g-vendors{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1000px){.g-products{grid-template-columns:repeat(5,minmax(0,1fr))}.g-vendors{grid-template-columns:repeat(3,minmax(0,1fr))}}
.hscroll{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(170px,1fr);gap:14px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x mandatory;scrollbar-width:thin}
.hscroll>*{scroll-snap-align:start}
@media(min-width:1000px){.hscroll{grid-auto-columns:calc((100% - 56px)/5)}}
.hscroll.wide{grid-auto-columns:minmax(260px,1fr)}
@media(min-width:1000px){.hscroll.wide{grid-auto-columns:calc((100% - 28px)/3)}}

/* hero */
.hero{margin-top:18px;border-radius:24px;padding:34px 22px;background:radial-gradient(1200px 300px at 100% 0%,rgba(244,165,28,.28),transparent 60%),linear-gradient(135deg,var(--brand),var(--brand-700,var(--brand-600)));color:#fff;position:relative;overflow:hidden}
.hero h1{font-size:30px;max-width:620px}
.hero p{opacity:.9;max-width:560px;margin:10px 0 18px}
.hero .search input{border:none;height:52px}
.hero-pattern{position:absolute;right:-40px;bottom:-40px;width:260px;height:260px;border-radius:50%;border:38px solid rgba(255,255,255,.07)}
@media(min-width:900px){.hero{padding:48px 44px}.hero h1{font-size:40px}}

/* services */
.services{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media(min-width:700px){.services{grid-template-columns:repeat(8,minmax(0,1fr))}}
.svc{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px;border-radius:var(--r);background:var(--card);border:1px solid var(--line);text-align:center;font-weight:700;font-size:13px;transition:transform .15s,box-shadow .15s}
.svc:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.svc .ic{width:54px;height:54px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:var(--brand-50);overflow:hidden}
.svc .ic img{width:44px;height:44px;object-fit:contain}

/* product card */
.pcard{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;transition:box-shadow .15s,transform .15s}
.pcard:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.pcard .ph{position:relative;aspect-ratio:1/1;background:#f1efe9}
.pcard .ph img{width:100%;height:100%;object-fit:cover}
.pcard .off{position:absolute;top:10px;left:10px;background:var(--accent);color:#1b1300;font-weight:800;font-size:12px;border-radius:8px;padding:3px 8px}
.pcard .bd{padding:12px;display:flex;flex-direction:column;gap:4px;flex:1}
.pcard .nm{font-weight:700;font-size:14px}
.price{font-weight:800}
.price s{color:var(--muted);font-weight:500;font-size:12px;margin-left:6px}
.add-btn{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:6px;padding-top:8px}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--card)}
.qty button{width:34px;height:34px;border:none;background:transparent;cursor:pointer;font-size:18px;font-weight:700}
.qty span{min-width:28px;text-align:center;font-weight:700}

/* vendor card */
.vcard{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;transition:box-shadow .15s}
.vcard:hover{box-shadow:var(--shadow)}
.vcard .cover{position:relative;aspect-ratio:16/7;background:#ece9e1}
.vcard .cover img{width:100%;height:100%;object-fit:cover}
.vcard .logo{position:absolute;left:14px;bottom:-22px;width:52px;height:52px;border-radius:14px;border:3px solid #fff;background:#fff;object-fit:cover;box-shadow:var(--shadow)}
.vcard .bd{padding:30px 14px 14px}
.closed-tag{position:absolute;top:10px;right:10px}
.meta{display:flex;flex-wrap:wrap;gap:6px 12px;color:var(--muted);font-size:13px}
.meta b{color:var(--ink)}
.star{color:#E8A317}

/* vendor page */
.vhead{margin-top:18px;border-radius:24px;overflow:hidden;background:var(--card);border:1px solid var(--line)}
.vhead .cover{aspect-ratio:16/5;background:#ece9e1}
.vhead .cover img{width:100%;height:100%;object-fit:cover}
.vhead .info{display:flex;gap:16px;padding:0 20px 20px;align-items:flex-end;margin-top:-36px}
.vhead .info img.logo{width:88px;height:88px;border-radius:20px;border:4px solid #fff;background:#fff;object-fit:cover;box-shadow:var(--shadow)}
.layout-2{display:grid;gap:20px;margin-top:20px}
@media(min-width:1000px){.layout-2{grid-template-columns:240px 1fr}.layout-2.right{grid-template-columns:1fr 360px}}
.side-nav{position:sticky;top:84px;align-self:start}
.side-nav a{display:block;padding:9px 12px;border-radius:10px;font-weight:600;color:var(--ink-2)}
.side-nav a.on,.side-nav a:hover{background:var(--card);color:var(--ink)}
@media(max-width:999px){.side-nav{position:static;display:flex;overflow-x:auto;gap:6px}.side-nav a{flex:none;border:1px solid var(--line);background:var(--card)}}
.list-item{display:flex;gap:12px;padding:12px;border-radius:var(--r);background:var(--card);border:1px solid var(--line)}
.list-item .th{width:84px;height:84px;border-radius:12px;object-fit:cover;flex:none;background:#f1efe9}

/* product page */
.pdp{display:grid;gap:24px;margin-top:20px}
@media(min-width:900px){.pdp{grid-template-columns:1.1fr 1fr}}
.gallery .main{aspect-ratio:1/1;border-radius:20px;overflow:hidden;background:#f1efe9;border:1px solid var(--line)}
.gallery .main img{width:100%;height:100%;object-fit:cover}
.thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto}
.thumbs img{width:64px;height:64px;border-radius:10px;object-fit:cover;cursor:pointer;border:2px solid transparent}
.thumbs img.on{border-color:var(--brand)}
.opt-group{border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--card)}
.opt{display:flex;align-items:center;gap:10px;padding:10px 4px;border-top:1px dashed var(--line);cursor:pointer}
.opt:first-of-type{border-top:none}
.opt input{accent-color:var(--brand);width:18px;height:18px}
.desc{color:var(--ink-2)}
.desc img{border-radius:12px}

/* summary / checkout */
.sum-row{display:flex;justify-content:space-between;gap:10px;padding:6px 0;color:var(--ink-2)}
.sum-row.total{border-top:1px solid var(--line);margin-top:6px;padding-top:12px;color:var(--ink);font-weight:800;font-size:17px}
.choice{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);cursor:pointer}
.choice.on{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-50)}
.choice img{width:36px;height:36px;object-fit:contain;border-radius:8px}
.choice.disabled{opacity:.5;cursor:not-allowed}
.steps{display:flex;gap:8px;margin:18px 0}
.steps div{flex:1;height:4px;border-radius:4px;background:var(--line)}
.steps div.on{background:var(--brand)}
.sticky-side{align-self:start}
@media(min-width:1000px){.sticky-side{position:sticky;top:84px}}

/* status timeline */
.timeline{position:relative;padding-left:22px}
.timeline:before{content:"";position:absolute;left:7px;top:6px;bottom:6px;width:2px;background:var(--line)}
.tl{position:relative;padding:4px 0 14px}
.tl:before{content:"";position:absolute;left:-20px;top:9px;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid var(--line)}
.tl.done:before{background:var(--brand);border-color:var(--brand)}

/* map */
.map{height:320px;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:#e9e6df}
.map.tall{height:420px}
.map-pin{position:relative}
.leaflet-container{font-family:inherit}

/* modal */
.modal-bg{position:fixed;inset:0;z-index:60;background:rgba(15,18,22,.45);display:flex;align-items:flex-end;justify-content:center}
@media(min-width:700px){.modal-bg{align-items:center}}
.modal{width:100%;max-width:560px;max-height:92vh;overflow:auto;background:var(--card);border-radius:22px 22px 0 0;padding:20px}
@media(min-width:700px){.modal{border-radius:22px}}
.modal-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.x{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:#fff;cursor:pointer;font-size:18px}
.sugg{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-top:8px}
.sugg button{display:block;width:100%;text-align:left;padding:10px 12px;border:none;border-top:1px solid var(--line);background:#fff;cursor:pointer}
.sugg button:first-child{border-top:none}
.sugg button:hover{background:var(--bg)}

/* footer & bottom nav */
.ftr{margin-top:60px;background:#12161A;color:#cfd4d9;padding:40px 0 30px}
.ftr a{color:#cfd4d9}.ftr a:hover{color:#fff}
.ftr-grid{display:grid;gap:24px;grid-template-columns:repeat(2,1fr)}
@media(min-width:800px){.ftr-grid{grid-template-columns:2fr 1fr 1fr 1fr}}
.ftr h4{color:#fff;margin:0 0 10px;font-size:14px}
.ftr ul{list-style:none;padding:0;margin:0}.ftr li{margin:6px 0;font-size:14px}
.bnav{position:fixed;left:0;right:0;bottom:0;z-index:45;background:#fff;border-top:1px solid var(--line);display:flex;padding-bottom:env(safe-area-inset-bottom)}
.bnav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 0 8px;font-size:11px;font-weight:700;color:var(--muted);position:relative}
.bnav a.on{color:var(--brand)}
.bnav .badge{top:2px;right:calc(50% - 22px)}
@media(min-width:900px){.bnav{display:none}}

/* misc */
.skeleton{background:linear-gradient(90deg,#eceae4 25%,#f5f3ee 37%,#eceae4 63%);background-size:400% 100%;animation:sk 1.3s ease infinite;border-radius:12px}
@keyframes sk{0%{background-position:100% 50%}100%{background-position:0 50%}}
.empty{padding:40px 20px;text-align:center;color:var(--muted)}
.empty .em{font-size:40px;margin-bottom:8px}
.toasts{position:fixed;top:76px;left:50%;transform:translateX(-50%);z-index:80;display:flex;flex-direction:column;gap:8px;width:min(92vw,420px)}
.toast{padding:12px 16px;border-radius:12px;background:var(--ink);color:#fff;font-weight:600;box-shadow:var(--shadow);animation:tin .2s ease}
.toast.error{background:var(--danger)}.toast.success{background:var(--ok)}
@keyframes tin{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.spinner{width:22px;height:22px;border-radius:50%;border:3px solid var(--brand-100);border-top-color:var(--brand);animation:spin .8s linear infinite;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}
.loading-block{display:flex;justify-content:center;padding:40px}
.alert{padding:12px 14px;border-radius:12px;background:var(--accent-50);color:#7a5200;font-weight:600;font-size:14px}
.alert.error{background:#fdeaea;color:var(--danger)}
.alert.info{background:var(--brand-50);color:var(--brand-600)}
.auth-wrap{max-width:440px;margin:40px auto}
.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow-x:auto}
.tabs button{padding:10px 14px;border:none;background:none;font-weight:700;color:var(--muted);border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap}
.tabs button.on{color:var(--ink);border-color:var(--brand)}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;font-size:14px}
.kv dt{color:var(--muted)}.kv dd{margin:0;font-weight:600}
.trust{display:grid;gap:14px;grid-template-columns:repeat(2,1fr)}
@media(min-width:900px){.trust{grid-template-columns:repeat(4,1fr)}}
.trust .card{padding:16px}
.trust .ic{font-size:24px}
.promo{display:block;border-radius:18px;overflow:hidden;aspect-ratio:16/7;background:#e7e3da}
.promo img{width:100%;height:100%;object-fit:cover}
.cat{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;font-weight:600;font-size:13px}
.cat .ci{width:76px;height:76px;border-radius:50%;overflow:hidden;background:var(--card);border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.cat .ci img{width:100%;height:100%;object-fit:cover}
.hscroll.cats{grid-auto-columns:92px}
@media(min-width:1000px){.hscroll.cats{grid-auto-columns:96px}}
.vehicle{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer}
.vehicle.on{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-50)}
.vehicle img{width:56px;height:40px;object-fit:contain}

/* ===== Home: LocalBazaar layout (slider, we offer, categories, new arrivals, popular vendors, marketplace) ===== */
.ws-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:16px}
.ws-head h2{margin:0;font-size:22px;font-weight:800;letter-spacing:-.01em}
.ws-head p{margin:2px 0 0;color:var(--muted);font-size:14px}
.ws-head a{flex:none;font-weight:700;font-size:14px;color:var(--brand);white-space:nowrap}
@media(min-width:900px){.ws-head h2{font-size:26px}}

/* slider */
.ws-slider{position:relative;overflow:hidden;border-radius:22px;background:#e7e3da;box-shadow:var(--shadow)}
.ws-track{display:flex;transition:transform .55s cubic-bezier(.22,.61,.36,1)}
.ws-slide{flex:0 0 100%;display:block;aspect-ratio:16/6}
@media(max-width:699px){.ws-slide{aspect-ratio:16/8}}
.ws-slide img{width:100%;height:100%;object-fit:cover;display:block}
.ws-arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:999px;border:0;background:rgba(255,255,255,.92);color:var(--ink);font-size:26px;line-height:1;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s}
.ws-slider:hover .ws-arrow{opacity:1}
@media(hover:none){.ws-arrow{display:none}}
.ws-arrow.prev{left:14px}.ws-arrow.next{right:14px}
.ws-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:6px}
.ws-dots button{width:8px;height:8px;border-radius:999px;border:0;padding:0;background:rgba(255,255,255,.6);cursor:pointer;transition:width .25s,background .25s}
.ws-dots button.on{width:24px;background:#fff}

/* we offer */
.ws-offer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(min-width:640px){.ws-offer{grid-template-columns:repeat(4,minmax(0,1fr))}}
.ws-offer-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px;border-radius:var(--r);background:var(--card);border:1px solid var(--line);transition:transform .15s,box-shadow .15s,border-color .15s}
.ws-offer-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--brand-100)}
.ws-offer-card .ic{width:56px;height:56px;border-radius:16px;background:var(--brand-50);display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:4px}
.ws-offer-card .ic img{width:44px;height:44px;object-fit:contain}
.ws-offer-card b{font-size:15px}
.ws-offer-card small{color:var(--muted);font-size:12.5px;line-height:1.45}

/* categories */
.ws-cats{display:grid;grid-auto-flow:column;grid-auto-columns:112px;gap:12px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x mandatory;scrollbar-width:thin}
@media(min-width:1000px){.ws-cats{grid-auto-columns:128px}}
.ws-cat{scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px 8px 12px;border-radius:18px;background:var(--card);border:1px solid var(--line);text-align:center;transition:transform .15s,box-shadow .15s}
.ws-cat:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.ws-cat .ci{width:100%;aspect-ratio:1/1;border-radius:14px;background:var(--brand-50);overflow:hidden;display:flex;align-items:center;justify-content:center}
.ws-cat .ci img{width:78%;height:78%;object-fit:contain}
.ws-cat .nm{font-weight:700;font-size:13px;line-height:1.3}

/* product + vendor rows */
.ws-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(168px,1fr);gap:14px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory;scrollbar-width:thin}
@media(min-width:1000px){.ws-row{grid-auto-columns:calc((100% - 70px)/6)}}
.ws-row.vendors{grid-auto-columns:minmax(220px,1fr)}
@media(min-width:1000px){.ws-row.vendors{grid-auto-columns:calc((100% - 42px)/4)}}
.ws-row>*{scroll-snap-align:start}
.ws-prod{position:relative;display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;transition:box-shadow .15s,transform .15s}
.ws-prod:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.ws-prod .ph{position:relative;display:block;aspect-ratio:1/1;background:#f4f6fb;margin:8px;border-radius:14px;overflow:hidden}
.ws-prod .ph img{width:100%;height:100%;object-fit:cover}
.ws-prod .off{position:absolute;top:8px;left:8px;background:var(--accent);color:#1b1300;font-weight:800;font-size:11px;border-radius:7px;padding:2px 7px}
.ws-prod .phw{position:relative}
.ws-prod .ws-add{display:flex;position:absolute;right:16px;bottom:16px;margin:0;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;border:0;background:var(--brand);color:#fff;font-size:22px;font-weight:700;line-height:1;cursor:pointer;box-shadow:0 6px 14px rgba(0,0,0,.18)}
.ws-prod .bd{padding:2px 12px 12px;display:flex;flex-direction:column;gap:3px;flex:1}
.ws-prod .nm{font-weight:700;font-size:14px;line-height:1.35}
.ws-prod .vd{font-size:12px;color:var(--muted)}
.ws-prod .ft{margin-top:auto;padding-top:6px;display:flex;align-items:center;justify-content:space-between;gap:6px}
.ws-prod .unit{font-size:11px;font-weight:700;color:var(--ink-2);background:#f1f3f8;border-radius:6px;padding:2px 6px}
.ws-prod .price{font-size:14.5px;color:var(--brand)}
.ws-vendor{position:relative;display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;transition:box-shadow .15s,transform .15s}
.ws-vendor:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.ws-vendor .cv{position:relative;aspect-ratio:16/9;background:#eceef4}
.ws-vendor .cv img{width:100%;height:100%;object-fit:cover}
.ws-vendor .closed{position:absolute;top:10px;right:10px;background:var(--danger);color:#fff;font-size:11px;font-weight:800;border-radius:7px;padding:2px 8px}
.ws-vendor .lg{position:absolute;left:14px;top:calc(56.25% - 26px);width:52px;height:52px;border-radius:999px;border:3px solid #fff;background:#fff;object-fit:cover;box-shadow:var(--shadow)}
.ws-vendor .bd{padding:32px 14px 14px;display:flex;flex-direction:column;gap:4px}
.ws-vendor .bd>b{font-size:15px}
.ws-vendor .mt{display:flex;gap:10px;font-size:12.5px;color:var(--ink-2);align-items:center}
.ws-vendor .star{color:var(--accent)}
.ws-vendor .mn{font-size:12.5px;font-weight:700;color:var(--brand)}

/* marketplace */
.ws-market{display:grid;gap:18px;align-items:center;padding:28px 24px;border-radius:24px;color:#fff;overflow:hidden;position:relative;background:radial-gradient(700px 260px at 100% 0%,rgba(244,165,28,.32),transparent 60%),linear-gradient(135deg,var(--brand-700,var(--brand-600)),var(--brand));transition:transform .15s,box-shadow .15s}
.ws-market:hover{transform:translateY(-2px);box-shadow:0 18px 40px -18px rgba(0,0,0,.45);color:#fff}
@media(min-width:800px){.ws-market{grid-template-columns:1.4fr 1fr;padding:40px 44px}}
.ws-market .tag{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:rgba(255,255,255,.18);border-radius:999px;padding:4px 10px}
.ws-market h2{margin:10px 0 6px;font-size:26px;font-weight:800}
.ws-market p{margin:0;color:rgba(255,255,255,.88);max-width:520px}
.ws-market .go{display:inline-block;margin-top:16px;background:#fff;color:var(--brand-700,var(--brand));font-weight:800;border-radius:12px;padding:10px 16px}
.ws-market .art{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;justify-self:end;width:100%;max-width:340px}
.ws-market .art span{aspect-ratio:1/1;border-radius:18px;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;font-size:30px}
@media(max-width:799px){.ws-market .art{justify-self:start;max-width:260px}}

.ws-prod .price s{margin-left:5px;font-size:11.5px;font-weight:500;color:var(--muted)}

/* module category blocks (one line) */
.ws-mods{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,1fr);gap:14px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x mandatory;scrollbar-width:thin}
@media(min-width:1000px){.ws-mods{grid-auto-columns:calc((100% - 42px)/4)}}
.ws-mod{scroll-snap-align:start;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:12px}
.ws-mod-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ws-mod-h h3{margin:0;font-size:18px;font-weight:800}
.ws-mod-h a{font-size:13px;font-weight:700;color:var(--brand);white-space:nowrap}
.ws-mod-g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ws-mc{display:flex;flex-direction:column;gap:6px;min-width:0}
.ws-mc .ci{aspect-ratio:1/1;border-radius:14px;background:var(--brand-50);display:flex;align-items:center;justify-content:center;overflow:hidden;transition:transform .15s}
.ws-mc:hover .ci{transform:scale(1.03)}
.ws-mc .ci img{width:72%;height:72%;object-fit:contain}
.ws-mc .nm{font-size:12.5px;font-weight:700;text-align:center}

/* New Arrivals grid (reference style: image, title, vendor, unit, price) */
.ws-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(min-width:640px){.ws-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:900px){.ws-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1150px){.ws-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
.ws-na{display:flex;flex-direction:column;gap:3px;min-width:0;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:10px 10px 12px;transition:box-shadow .15s,transform .15s}
.ws-na:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.ws-na .ph{display:block;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:#f4f6fb;margin-bottom:6px}
.ws-na .ph img{width:100%;height:100%;object-fit:cover}
.ws-na .nm{font-weight:700;font-size:14px;color:var(--ink)}
.ws-na .vd{font-size:12.5px;color:var(--muted)}
.ws-na .un{font-size:12px;color:var(--ink-2);min-height:16px}
.ws-na .pr{font-weight:800;font-size:15px;color:var(--brand)}

/* Banner carousel: multiple rounded cards per view (overrides the full-width slider) */
.ws-slider{overflow:visible;border-radius:0;background:none;box-shadow:none;padding-bottom:26px}
.ws-slider .ws-viewport,.ws-slider{--gap:14px}
.ws-track{margin:0 calc(var(--gap) / -2);overflow:visible}
.ws-slider{overflow-x:clip}
.ws-slide{flex:0 0 100%;aspect-ratio:auto;padding:0 calc(var(--gap) / 2)}
@media(max-width:639px){.ws-slide{flex-basis:88%}}
@media(min-width:640px){.ws-slide{flex-basis:50%}}
@media(min-width:1000px){.ws-slide{flex-basis:33.3333%}}
.ws-slide img{aspect-ratio:16/8;height:auto;border-radius:18px;box-shadow:0 6px 18px -10px rgba(0,0,0,.35);transition:transform .2s}
.ws-slide:hover img{transform:translateY(-2px)}
.ws-arrow{top:calc(50% - 13px);opacity:1;width:38px;height:38px;font-size:24px;background:#fff;border:1px solid var(--line)}
.ws-arrow.prev{left:10px}.ws-arrow.next{right:10px}
@media(max-width:639px){.ws-arrow{display:none}}
.ws-dots{bottom:0}
.ws-dots button{background:#cfd6e4}
.ws-dots button.on{background:var(--brand)}

/* Hero brand logo (right side) */
.hero>*:not(.hero-pattern):not(.hero-logo){position:relative;z-index:1}
.hero-logo{position:absolute;z-index:0;right:18px;top:18px;width:58px;height:58px;border-radius:16px;overflow:hidden;box-shadow:0 10px 24px -8px rgba(0,0,0,.45),0 0 0 3px rgba(255,255,255,.18)}
.hero-logo img{width:100%;height:100%;display:block;object-fit:cover}
@media(max-width:899px){.hero h1{padding-right:70px}}
@media(min-width:900px){
  .hero-logo{top:50%;right:56px;width:200px;height:200px;border-radius:44px;transform:translateY(-50%) rotate(-6deg);box-shadow:0 30px 60px -20px rgba(0,0,0,.55),0 0 0 8px rgba(255,255,255,.12);animation:lbFloat 6s ease-in-out infinite}
  .hero h1,.hero p,.hero .search{max-width:min(620px,calc(100% - 270px))!important}
}
@media(min-width:1150px){.hero-logo{width:230px;height:230px;right:80px}}
@keyframes lbFloat{0%,100%{transform:translateY(-50%) rotate(-6deg)}50%{transform:translateY(calc(-50% - 10px)) rotate(-4deg)}}
@media(prefers-reduced-motion:reduce){.hero-logo{animation:none}}

/* Header wordmark logo */
.brand{flex:none}
.brand img.wordmark{height:42px;width:auto;display:block}
@media(max-width:899px){
  .hdr-in{gap:10px;height:60px}
  .brand img.wordmark{height:32px}
  .loc-btn{min-width:0;flex:1 1 auto;max-width:none}
  .loc-btn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:380px){.brand img.wordmark{height:28px}.hdr-actions{gap:6px}}
@media(max-width:479px){.loc-btn{padding-left:10px;padding-right:10px}.loc-btn svg{flex:none}}

/* ===== Module / store / item pages (reference layout) ===== */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:16px;font-size:13px;color:var(--muted)}
.crumbs a{color:var(--muted);font-weight:600}.crumbs a:hover{color:var(--brand)}
.crumbs b{color:var(--ink);font-weight:700;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mod-head{margin-top:10px}
.mod-head h1{font-size:28px;font-weight:800;margin:0}
.mod-head p{color:var(--muted);margin:6px 0 0;max-width:680px}
.ws-cats.all{grid-auto-flow:row;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));overflow:visible}
.ws-cat.on{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-100)}
.ws-cat.on .nm{color:var(--brand)}
.ws-vgrid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.ws-na .pr s{margin-left:6px;font-size:12px;font-weight:500;color:var(--muted)}

/* store header */
.vstore{margin-top:12px;background:var(--card);border:1px solid var(--line);border-radius:22px;overflow:hidden}
.vstore .cover{position:relative;aspect-ratio:16/4.5;background:#e9edf5}
@media(max-width:699px){.vstore .cover{aspect-ratio:16/7}}
.vstore .cover img{width:100%;height:100%;object-fit:cover}
.vstore .fav{position:absolute;top:12px;right:12px;width:40px;height:40px;border-radius:999px;border:0;background:rgba(255,255,255,.95);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:var(--shadow)}
.vstore .fav.on{color:var(--danger)}
.vstore .top{display:flex;align-items:flex-end;gap:14px;padding:0 20px;margin-top:-38px;position:relative}
.vstore .logo{width:92px;height:92px;border-radius:22px;border:4px solid #fff;background:#fff;object-fit:cover;box-shadow:var(--shadow);flex:none}
.vstore .who{flex:1;min-width:0;padding-bottom:4px}
.vstore .nm{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.vstore h1{margin:0;font-size:24px;font-weight:800}
.vstore .st{font-size:12px;font-weight:800;border-radius:999px;padding:3px 10px}
.vstore .st.open{background:#e3f6ec;color:var(--ok)}.vstore .st.closed{background:#fde8e8;color:var(--danger)}
.vstore .addr{font-size:13px;color:var(--muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vstore .srch{flex:none;display:inline-flex;align-items:center;gap:6px;margin-bottom:6px}
.vstore .about{margin:12px 20px 0;color:var(--ink-2);font-size:14px;line-height:1.55}
.vstore .stats{display:flex;flex-wrap:wrap;gap:10px;padding:14px 20px 18px}
.vstore .stats>div{background:#f5f7fb;border:1px solid var(--line);border-radius:14px;padding:8px 14px;min-width:120px}
.vstore .stats small{display:block;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.vstore .stats b{font-size:15px}
@media(max-width:599px){.vstore .top{flex-wrap:wrap;padding:0 14px}.vstore .logo{width:76px;height:76px}.vstore .srch{display:none}.vstore .about,.vstore .stats{margin-left:0;padding-left:14px;padding-right:14px}.vstore .about{margin:10px 14px 0;padding:0}.vstore .stats>div{min-width:0;flex:1 1 40%}}
.vcats{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.vcats button{flex:none;border:1px solid var(--line);background:var(--card);border-radius:999px;padding:8px 16px;font-weight:700;font-size:13.5px;color:var(--ink-2);cursor:pointer}
.vcats button.on{background:var(--brand);border-color:var(--brand);color:#fff}

/* item page */
.pdp2{display:grid;gap:24px;margin-top:14px}
@media(min-width:900px){.pdp2{grid-template-columns:1fr 1fr;gap:36px}}
.pdp2 .gallery .main{aspect-ratio:1/1;border-radius:20px;overflow:hidden;background:#f4f6fb;border:1px solid var(--line)}
.pdp2 .gallery .main img{width:100%;height:100%;object-fit:contain}
.pdp2 .gallery .thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto}
.pdp2 .gallery .thumbs img{width:68px;height:68px;border-radius:12px;object-fit:cover;border:2px solid transparent;cursor:pointer;flex:none;background:#f4f6fb}
.pdp2 .gallery .thumbs img.on{border-color:var(--brand)}
.pdp2 .info{display:flex;flex-direction:column;gap:12px}
.pdp2 h1{margin:0;font-size:26px;font-weight:800;line-height:1.2}
.pdp2 .by{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--brand);align-self:flex-start}
.pdp2 .by img{width:28px;height:28px;border-radius:8px;object-fit:cover;border:1px solid var(--line)}
.pdp2 .meta{display:flex;flex-wrap:wrap;gap:14px;font-size:13.5px;color:var(--ink-2)}
.pdp2 .meta .ok{color:var(--ok);font-weight:700}.pdp2 .meta .bad{color:var(--danger);font-weight:700}
.pprice{display:flex;align-items:baseline;gap:10px;font-size:28px;font-weight:800;color:var(--brand)}
.pprice s{font-size:16px;color:var(--muted);font-weight:500}
.pprice em{font-style:normal;font-size:12px;font-weight:800;background:var(--accent);color:#1b1300;border-radius:7px;padding:2px 7px}
.pdp2 .buy{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.pdp2 .buy .btn{min-height:48px;justify-content:center}
.pdp2 .buy .btn.ghost{border-color:var(--brand);color:var(--brand)}
@media(max-width:599px){.pdp2 .buy .qty{width:100%;justify-content:space-between}}
.perks{list-style:none;margin:4px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#f8fafd;display:grid;gap:8px;font-size:14px}
.perks li{display:flex;gap:10px;align-items:center}
.share{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);font-weight:600}
.share a{width:34px;height:34px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:#eef2f9;color:var(--ink);font-weight:800;font-size:14px}
.share a:hover{background:var(--brand);color:#fff}
@media(max-width:599px){
  .vstore .top{flex-direction:column;align-items:flex-start;gap:8px;margin-top:-34px}
  .vstore .who{width:100%;padding:0}
  .vstore h1{font-size:20px}
  .vstore .addr{white-space:normal}
  .vstore .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .vstore .stats>div{padding:7px 10px}
  .vstore .stats small{font-size:10px}
  .vstore .stats b{font-size:13.5px}
}

/* Header: compact location after search + highlighted Deals */
.hdr-search{order:2}
.loc-btn{order:3}
.hdr-actions{order:4}
.loc-btn{gap:8px;padding:5px 10px 5px 6px;height:44px;max-width:230px;border-radius:12px;background:var(--card);border:1px solid var(--line);color:var(--ink);transition:border-color .15s,box-shadow .15s;flex:0 1 auto;min-width:0;text-align:left}
.loc-btn:hover{border-color:var(--brand-100);box-shadow:0 0 0 3px var(--brand-50)}
.loc-btn .lic{flex:none;width:32px;height:32px;border-radius:9px;background:var(--brand-50);color:var(--brand);display:flex;align-items:center;justify-content:center}
.loc-btn .ltx{display:flex;flex-direction:column;min-width:0;line-height:1.15;overflow:visible}
.loc-btn .ltx small{font-size:10.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.loc-btn .ltx b{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.loc-btn .lch{flex:none;color:var(--muted)}
.hdr-search .input{height:44px}
@media(max-width:899px){
  .loc-btn{max-width:none;height:40px;padding:4px 8px 4px 4px;margin-left:auto;flex:1 1 auto}
  .loc-btn .lic{width:30px;height:30px}
  .loc-btn .ltx small{font-size:9.5px}
  .loc-btn .ltx b{font-size:12.5px}
  .hdr-actions{margin-left:0}
}
.svc-nav a.deals{color:#b45309;background:linear-gradient(135deg,#fff4dc,#ffe7b8);border-color:#f8d48a;font-weight:800}
.svc-nav a.deals:hover,.svc-nav a.deals.on{background:linear-gradient(135deg,#ffb020,#f59e0b);border-color:#f59e0b;color:#fff}
@media(max-width:899px){
  .loc-btn .lch{display:none}
  .loc-btn{padding-right:10px}
  .hdr-actions .btn.sm{padding-left:12px;padding-right:12px}
  .svc-nav a.deals{order:-1}
}
@media(max-width:420px){
  .loc-btn .ltx small{display:none}
  .loc-btn .lic{width:26px;height:26px;border-radius:8px}
  .loc-btn{height:38px;gap:6px}
}

/* ===== Header polish: one 44px rhythm, matching radii, brand block with divider ===== */
.hdr-in{height:72px;gap:12px}
.brand{height:44px;padding-right:16px;margin-right:4px;border-right:1px solid var(--line);display:flex;align-items:center;transition:opacity .15s}
.brand:hover{opacity:.88}
.brand img.wordmark{height:40px;width:auto;filter:drop-shadow(0 1px 0 rgba(255,255,255,.6))}
.hdr-search{position:relative}
.hdr-search .input{height:44px;border-radius:12px;background:#fff;border:1px solid var(--line);padding-left:44px;font-size:14.5px;transition:border-color .15s,box-shadow .15s}
.hdr-search .input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-50)}
.hdr-search svg{left:15px;color:var(--muted)}
.hdr-actions{gap:8px}
.hdr-actions .icon-btn{width:44px;height:44px;border-radius:12px;background:#fff;border:1px solid var(--line)}
.hdr-actions .icon-btn:hover{border-color:var(--brand-100);color:var(--brand)}
.hdr-actions .btn.sm{height:44px;border-radius:12px;padding:0 18px;font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:6px}
.svc-nav{padding:2px 0 12px;gap:4px}
.svc-nav a{padding:7px 14px;font-size:13.5px}
@media(max-width:899px){
  .hdr-in{height:62px;gap:8px}
  .brand{height:38px;padding-right:10px;margin-right:0}
  .brand img.wordmark{height:32px}
  .hdr-actions .icon-btn,.hdr-actions .btn.sm{height:40px}
  .hdr-actions .icon-btn{width:40px}
  .loc-btn{height:40px}
}
@media(max-width:420px){
  .brand{border-right:0;padding-right:2px}
  .brand img.wordmark{height:28px}
  .hdr-actions .icon-btn,.hdr-actions .btn.sm,.loc-btn{height:38px}
  .hdr-actions .icon-btn{width:38px}
  .hdr-actions .btn.sm{padding:0 12px}
}

/* Marketplace nav link + framed page */
.svc-nav a.market{color:var(--brand);background:var(--brand-50);border-color:var(--brand-100);font-weight:800}
.svc-nav a.market:hover,.svc-nav a.market.on{background:var(--brand);border-color:var(--brand);color:#fff}
@media(max-width:899px){.svc-nav a.market{order:-1}}
.page-market{padding-bottom:0!important}
.mk-wrap{margin-top:12px}
.mk-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.mk-t{display:flex;align-items:center;gap:8px;min-width:0}
.mk-t span{font-size:20px}.mk-t b{font-size:17px;font-weight:800;white-space:nowrap}
.mk-t small{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-open{flex:none;font-size:13px;font-weight:700;color:var(--brand);border:1px solid var(--brand-100);background:#fff;border-radius:10px;padding:7px 12px}
.mk-open:hover{background:var(--brand-50)}
.mk-frame-box{position:relative;height:calc(100vh - 190px);min-height:420px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.mk-frame-box iframe{width:100%;height:100%;border:0;display:block}
.mk-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#fff}
@media(max-width:599px){.mk-t small{display:none}.mk-frame-box{border-radius:14px}}

/* ===== Compact header (shared size with the main website header) ===== */
.hdr-in{height:64px;gap:10px}
.brand{height:40px;padding-right:14px}
.brand img.wordmark{height:34px}
.hdr-search .input{height:40px;font-size:14px;padding-left:40px}
.hdr-search svg{left:14px}
.loc-btn{height:40px;padding:4px 10px 4px 5px;max-width:220px}
.loc-btn .lic{width:30px;height:30px;border-radius:8px}
.loc-btn .ltx small{font-size:10px}
.loc-btn .ltx b{font-size:12.5px}
.hdr-actions .icon-btn{width:40px;height:40px}
.hdr-actions .btn.sm{height:40px;padding:0 16px;font-size:13.5px}
.svc-nav{padding:0 0 10px}
.svc-nav a{padding:6px 13px;font-size:13px}
@media(max-width:899px){
  .hdr-in{height:58px}
  .brand{height:36px}
  .brand img.wordmark{height:30px}
  .loc-btn,.hdr-actions .icon-btn,.hdr-actions .btn.sm{height:36px}
  .hdr-actions .icon-btn{width:36px}
  .loc-btn .lic{width:28px;height:28px}
}
@media(max-width:420px){.brand img.wordmark{height:27px}}

/* Hero search — same design as the main website hero search (.lb-search) */
.hero .hs{display:flex;align-items:center;gap:4px;margin-top:4px;max-width:620px;height:56px;background:#fff;border-radius:14px;padding:5px;border:2px solid transparent;box-shadow:0 14px 34px -16px rgba(5,20,60,.55);transition:border-color .2s,box-shadow .2s;box-sizing:border-box}
.hero .hs:focus-within{border-color:rgba(255,255,255,.9);box-shadow:0 0 0 4px rgba(255,255,255,.22),0 14px 34px -16px rgba(5,20,60,.55)}
.hero .hs label{display:flex;align-items:center;gap:8px;margin:0;height:100%;color:#64748b}
.hero .hs svg{flex:none}
.hero .hs select,.hero .hs input,.hero .hs button{font-family:inherit}
.hero .hs select:focus,.hero .hs input:focus{outline:none!important;box-shadow:none!important;border:0!important}
.hs-type{position:relative;padding:0 14px 0 12px;border-radius:10px;background:#f3f6fc;cursor:pointer;transition:background .15s}
.hs-type:hover,.hs-type:focus-within{background:#e9effa}
.hs-type svg{color:var(--brand)}
.hs-type select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center;padding:0 20px 0 0;height:100%;font-weight:700;color:#0f172a;font-size:14.4px;cursor:pointer}
.hs-input{flex:1;min-width:0;padding:0 10px 0 12px}
.hs-input input{flex:1;min-width:0;height:100%;border:0;outline:none;background:transparent;font-size:15.5px;color:#0f172a;padding:0}
.hs-input input::placeholder{color:#94a3b8}
.hs-input input::-webkit-search-cancel-button{display:none}
.hs-btn{height:100%;border:0;border-radius:10px;padding:0 24px;font-weight:700;font-size:15px;color:#fff;background:var(--brand);cursor:pointer;transition:background .15s}
.hs-btn:hover{background:var(--brand-600)}
.hs-quick{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:12px;font-size:12.8px;position:relative;z-index:1}
.hs-quick span{color:rgba(255,255,255,.72);font-weight:600;margin-right:3px}
.hs-quick a{color:#fff;padding:4px 11px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);font-weight:600;transition:background .15s}
.hs-quick a:hover{background:rgba(255,255,255,.24)}
@media(min-width:900px){.hero .hs,.hero .hs-quick{max-width:min(620px,calc(100% - 270px))!important}}
@media(max-width:575px){
  /* one compact row: [type ▾][🔍 search…][⌕] */
  .hero .hs{height:50px;flex-wrap:nowrap;gap:4px;padding:4px;border-radius:13px}
  .hs-type{flex:none;height:100%;padding:0 6px 0 9px;gap:0;border-radius:10px}
  .hs-type svg{display:none}
  .hs-type select{font-size:12.5px;padding-right:16px;background-size:11px;max-width:92px;text-overflow:ellipsis}
  .hs-input{flex:1 1 auto;min-width:0;height:100%;padding:0 4px 0 8px;gap:6px}
  .hs-input svg{width:15px;height:15px}
  .hs-input input{font-size:14px}
  .hs-btn{flex:none;width:42px;height:100%;padding:0;font-size:0;border-radius:10px;
    background:var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat center}
  .hs-btn:hover,.hs-btn:focus-visible,.hs-btn:active{background:var(--brand-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat center!important;box-shadow:0 6px 14px -6px rgba(25,76,143,.8)}
  /* popular searches: a single line (scrolls if a phone is very narrow) */
  .hs-quick{flex-wrap:nowrap;gap:5px;margin-top:10px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
    margin-right:-4px;padding-right:4px;-webkit-mask-image:linear-gradient(90deg,#000 92%,transparent);mask-image:linear-gradient(90deg,#000 92%,transparent)}
  .hs-quick::-webkit-scrollbar{display:none}
  .hs-quick span{display:none}
  .hs-quick a{flex:none;padding:3px 8px;font-size:11.5px;white-space:nowrap}
}
@media(max-width:479px){
  .hs-type select{max-width:84px}
  .hs-quick{gap:4px;-webkit-mask-image:none;mask-image:none}
  .hs-quick a{padding:3px 7px}
  .hs-quick a:nth-of-type(n+6){display:none}
}

/* Footer: Kathmandu skyline rising out of the footer (image used as a mask, painted in the footer colour) */
.ftr{position:relative;margin-top:110px}
.ftr::before{content:"";position:absolute;left:0;right:0;bottom:calc(100% - 1px);height:84px;background:#12161A;pointer-events:none;
  -webkit-mask:url("img/ktm-skyline.png") repeat-x center bottom/auto 100%;mask:url("img/ktm-skyline.png") repeat-x center bottom/auto 100%}
@media(max-width:699px){.ftr{margin-top:80px}.ftr::before{height:52px}}
/* Footer matches the main website footer (navy) */
.ftr{background:#0b1f4b;color:rgba(255,255,255,.72)}
.ftr::before{background:#0b1f4b}
.ftr a{color:rgba(255,255,255,.72)}.ftr a:hover{color:#fff}
.ftr .brand{height:auto;padding-right:0;margin-right:0;border-right:0}
/* Shared footer on store pages: keep navy behind the phone bottom nav */
/* (store pages leave room for the phone bottom nav via body padding) */
/* Signed-in header on small phones: Account shows as an icon so the location stays readable */
@media(max-width:479px){.hdr-actions .btn.ghost.sm{width:36px;padding:0;justify-content:center}.hdr-actions .btn.ghost.sm span{display:none}}

/* ===== Account area (profile, referrals, orders, stays, wallet, addresses, favourites) ===== */

    .pf-grid { display: grid; gap: 20px; margin-top: 12px; align-items: start; }
    @media (min-width: 960px) { .pf-grid { grid-template-columns: 260px 1fr; gap: 24px; } }

    .pf-side { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
    @media (min-width: 960px) { .pf-side { position: sticky; top: 130px; } }
    .pf-me { display: flex; align-items: center; gap: 10px; padding: 6px 6px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
    .pf-me div { min-width: 0; } .pf-me b { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pf-me small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pf-menu-title { margin: 12px 8px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
    .pf-menu { display: grid; gap: 2px; }
    .pf-menu a, .pf-out { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
    .pf-menu a span, .pf-out span { width: 22px; text-align: center; }
    .pf-menu a:hover { background: #f4f6fb; color: var(--ink); }
    .pf-menu a.on { background: var(--brand-50); color: var(--brand); font-weight: 700; }
    .pf-out { width: 100%; margin-top: 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; background: none; cursor: pointer; font: inherit; font-weight: 700; color: var(--danger); padding-top: 12px; height: auto; padding-bottom: 6px; }
    /* Phones/tablets: the account menu becomes a scrollable row of pills above the content */
    @media (max-width: 959px) {
        .pf-side { padding: 8px; border-radius: 14px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
        .pf-side::-webkit-scrollbar { display: none; }
        .pf-me, .pf-menu-title { display: none; }
        .pf-menu { display: flex; gap: 6px; }
        .pf-menu a, .pf-out { flex: none; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
        .pf-menu a:not(.on) { background: #f4f6fb; }
        .pf-out { width: auto; margin: 0; border: 0; padding: 0 12px; height: 36px; background: #fdecec; }
    }

    .pf-av { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
        background: linear-gradient(135deg, var(--brand), #0b1f4b); color: #fff; font-weight: 800; font-size: 26px; box-shadow: 0 0 0 4px #fff, 0 8px 20px -8px rgba(11,31,75,.5); }
    .pf-av.sm { width: 40px; height: 40px; font-size: 14px; box-shadow: none; }
    .pf-av img { width: 100%; height: 100%; object-fit: cover; }

    .pf-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 16px; }
    .pf-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
        background: linear-gradient(135deg, var(--brand-50), #fff 60%); }
    .pf-who { flex: 1; min-width: 200px; }
    .pf-who h1 { margin: 0; font-size: 24px; font-weight: 800; color: var(--ink); }
    .pf-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
    .pf-wallet { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 14px; background: #0b1f4b; color: #fff; min-width: 150px; transition: transform .15s; }
    .pf-wallet:hover { transform: translateY(-2px); color: #fff; }
    .pf-wallet small { font-size: 11.5px; color: rgba(255,255,255,.72); font-weight: 600; }
    .pf-wallet b { font-size: 20px; color: #fff; }

    .pf-card-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
    .pf-card-h h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
    .pf-card-h p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
    .pf-form { display: grid; gap: 14px 16px; }
    @media (min-width: 700px) { .pf-form { grid-template-columns: 1fr 1fr; } .pf-form .full { grid-column: 1 / -1; } }
    .pf-form label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
    .pf-form label > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
    .pf-form input { height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
    .pf-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
    .pf-err { margin: -4px 0 0; font-size: 13px; color: var(--danger); font-weight: 600; }
    .pf-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
    .pf-btn { height: 44px; padding: 0 20px; border: 1px solid var(--brand); border-radius: 12px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background .15s; }
    .pf-btn:hover { background: var(--brand-600); }
    .pf-btn.ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
    .pf-btn.ghost:hover { border-color: var(--brand-100); color: var(--brand); }
    .pf-btn[disabled] { opacity: .5; cursor: not-allowed; }

    .pf-quick { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pf-quick a { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
    .pf-quick a:hover { border-color: var(--brand-100); transform: translateY(-2px); }
    .pf-quick span { font-size: 22px; } .pf-quick b { font-size: 14.5px; color: var(--ink); margin-top: 4px; } .pf-quick small { font-size: 12.5px; color: var(--muted); }

    @media (max-width: 599px) {
        .pf-card { padding: 18px; border-radius: 16px; }
        .pf-hero { gap: 14px; } .pf-av { width: 64px; height: 64px; font-size: 22px; }
        .pf-who h1 { font-size: 20px; }
        .pf-wallet { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
        .pf-quick { grid-template-columns: 1fr; }
        .pf-actions .pf-btn { flex: 1; }
    }

    /* shared building blocks for account pages */
    .pf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
    .pf-head h1 { margin: 0; font-size: 24px; font-weight: 800; color: var(--ink); }
    .pf-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
    .pf-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #f1f4f9; }
    .pf-seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 8px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
    .pf-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
    .pf-list { list-style: none; margin: 0; padding: 0; }
    .pf-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); color: inherit; }
    .pf-list > :first-child .pf-row, .pf-list > .pf-row:first-child { border-top: 0; }
    a.pf-row:hover { background: #fafbfe; }
    .pf-row .th { flex: none; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #f1f4f9; border: 1px solid var(--line); }
    .pf-row .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--brand-50); color: var(--brand); }
    .pf-row .bd { flex: 1; min-width: 0; }
    .pf-row .bd b { display: block; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pf-row .bd small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
    .pf-row .end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
    .pf-row .end b { font-size: 15px; color: var(--ink); }
    .pf-tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #f1f4f9; color: var(--ink-2); }
    .pf-tag.ok { background: #e6f6ee; color: var(--ok); } .pf-tag.warn { background: #fff4dc; color: #b45309; } .pf-tag.bad { background: #fdecec; color: var(--danger); } .pf-tag.info { background: var(--brand-50); color: var(--brand); }
    .pf-empty { text-align: center; padding: 36px 12px 20px; color: var(--muted); }
    .pf-empty .em { font-size: 36px; } .pf-empty b { display: block; margin-top: 6px; font-size: 15px; color: var(--ink); } .pf-empty p { margin: 4px 0 12px; font-size: 13.5px; }
    .pf-btn.sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
    .pf-btn.danger { background: #fff; color: var(--danger); border-color: #f3c7c7; } .pf-btn.danger:hover { background: #fdecec; }
    a.pf-btn { display: inline-flex; align-items: center; justify-content: center; }
    .pf-more { display: flex; justify-content: center; padding-top: 10px; }
.pf-grid > * { min-width: 0; }
.pf-list .pf-row { border-top: 0; }
.pf-list .pf-row ~ .pf-row { border-top: 1px solid var(--line); }

/* ===== Ride & Parcel booking pages (rx-*, px-*) ===== */
.rx { padding-bottom: 32px; }
.rx .crumbs { margin: 14px 0 12px; }
.rx-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 20px; align-items: start; }
.rx-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rx-head { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #eef4ff, #fff); border: 1px solid #e3eaf6; border-radius: 20px; padding: 18px 20px; }
.rx-head h1 { margin: 0; font-size: 1.45rem; font-weight: 800; color: #0f172a; letter-spacing: -.01em; }
.rx-head p { margin: 2px 0 0; color: #64748b; font-size: .86rem; }
.rx-logo { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; background: #fff; border: 1px solid #e3eaf6; flex: none; }
.rx-emo { display: grid; place-items: center; font-size: 1.6rem; }
.rx-card { background: #fff; border: 1px solid #e3eaf6; border-radius: 18px; padding: 18px; box-shadow: 0 14px 40px -32px rgba(15, 23, 42, .4); margin-bottom: 14px; }
.rx-panel .rx-card { margin-bottom: 0; }
.rx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rx-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1rem; font-weight: 800; color: #0f172a; }
.rx-lbl { display: block; font-size: .74rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.rx .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; border: 3px solid var(--brand); background: #fff; }
.rx .dot.b { border-color: #D64545; background: #D64545; box-shadow: inset 0 0 0 2px #fff; }

/* location inputs */
.rx-loc { display: flex; gap: 12px; align-items: stretch; }
.rx-line { display: flex; flex-direction: column; align-items: center; padding: 22px 0; }
.rx-line .bar { flex: 1; width: 2px; margin: 4px 0; background: repeating-linear-gradient(#cbd5e1 0 4px, transparent 4px 8px); }
.rx-fields { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rx-field { position: relative; display: block; background: #f5f8fe; border: 1.5px solid transparent; border-radius: 14px; padding: 8px 44px 8px 14px; cursor: text; transition: border-color .15s, background .15s; }
.rx-field.on { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(37, 111, 208, .1); }
.rx-field small { display: block; font-size: .68rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.rx-field input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: .92rem; font-weight: 600; color: #0f172a; padding: 2px 0; }
.rx-ic { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 10px; border: 0; background: #eef4ff; color: var(--brand); display: grid; place-items: center; cursor: pointer; }
.rx-swap { align-self: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid #e3eaf6; background: #fff; font-size: 1.05rem; cursor: pointer; color: #475569; }
.rx-swap:hover { border-color: var(--brand); color: var(--brand); }
.rx-sugg { margin-top: 10px; border: 1px solid #e3eaf6; border-radius: 14px; overflow: hidden; max-height: 280px; overflow-y: auto; }
.rx-sugg button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: #fff; cursor: pointer; border-bottom: 1px solid #f1f5f9; font: inherit; }
.rx-sugg button:hover { background: #f5f8fe; }
.rx-sugg b { display: block; font-size: .88rem; color: #0f172a; }
.rx-sugg small { display: block; font-size: .78rem; color: #64748b; }
.rx-tip { margin: 10px 0 0; font-size: .8rem; color: #64748b; }

/* vehicle / courier list */
.rx-vlist { display: flex; flex-direction: column; gap: 8px; }
.rx-veh { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border: 1.5px solid #e3eaf6; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.rx-veh:hover { border-color: #c9d8f2; }
.rx-veh.on { border-color: var(--brand); background: #f5f8fe; box-shadow: 0 0 0 4px rgba(37, 111, 208, .08); }
.rx-veh img { width: 56px; height: 44px; object-fit: contain; border-radius: 10px; background: #f8fafc; flex: none; }
.rx-veh b { display: block; color: #0f172a; font-size: .92rem; }
.rx-veh small { display: block; color: #64748b; font-size: .78rem; margin-top: 2px; }
.rx-price { color: #0f172a; font-size: .98rem; white-space: nowrap; }
.rx-pay .choice { border-radius: 14px; }
.rx-coupon { margin-top: 12px; }
.rx-coupon input, .px-input, .px-select { width: 100%; height: 44px; border: 1.5px solid #e3eaf6; border-radius: 12px; padding: 0 14px; font: inherit; font-size: .9rem; color: #0f172a; background: #fff; outline: 0; box-sizing: border-box; }
.rx-coupon input:focus, .px-input:focus, .px-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 111, 208, .1); }
.rx-total { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 12px; padding: 12px 14px; border-radius: 14px; background: #f5f8fe; color: #475569; font-size: .9rem; }
.rx-total b { color: #0f172a; font-size: 1.15rem; }
.rx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; text-decoration: none; transition: background .15s; }
.rx-btn.block { width: 100%; }
.rx-btn.grow { flex: 1; }
.rx-btn.primary { background: var(--brand); color: #fff; box-shadow: 0 12px 24px -14px rgba(37, 111, 208, .9); }
.rx-btn.primary:hover { background: var(--brand-700, #194c8f); }
.rx-btn.primary:disabled { opacity: .7; cursor: wait; }
.rx-btn.ghost { background: #fff; border-color: #e3eaf6; color: #0f172a; }
.rx-btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.rx-btn.danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.rx-actions { display: flex; gap: 10px; margin-top: 14px; }
.rx-alert { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: .86rem; margin-bottom: 12px; }
.rx-alert a { flex: none; height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; }
.rx-empty { margin: 0; color: #64748b; font-size: .88rem; text-align: center; padding: 8px 0; }
.rx-skel { display: flex; flex-direction: column; gap: 8px; }
.rx-skel i { height: 62px; border-radius: 14px; background: linear-gradient(90deg, #f1f5f9, #f8fafc, #f1f5f9); background-size: 200% 100%; animation: rxSk 1.2s infinite; }
.rx-skel.big i { height: 120px; }
@keyframes rxSk { to { background-position: -200% 0; } }
.rx-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rx-perks li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: #fff; border: 1px solid #e3eaf6; font-size: .76rem; font-weight: 700; color: #475569; text-align: center; }
.rx-perks span { font-size: 1.2rem; }

/* live ride */
.rx-route { display: flex; flex-direction: column; gap: 10px; position: relative; }
.rx-stop { display: flex; gap: 12px; align-items: flex-start; }
.rx-stop .dot { margin-top: 4px; }
.rx-stop small { display: block; font-size: .68rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.rx-stop span { font-size: .88rem; color: #0f172a; font-weight: 600; }
.rx-driver { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 14px; background: #f5f8fe; }
.rx-driver img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.rx-call { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; text-decoration: none; }

/* map */
.rx-mapwrap { position: sticky; top: 84px; height: calc(100vh - 110px); min-height: 520px; border-radius: 22px; overflow: hidden; border: 1px solid #e3eaf6; box-shadow: 0 20px 50px -34px rgba(15, 23, 42, .45); }
.rx-map { position: absolute; inset: 0; }
.rx-mapchip { position: absolute; right: 16px; top: 16px; z-index: 500; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: .85rem; box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .35); }

/* parcel */
.px-top { margin-bottom: 14px; }
.px-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 16px; padding: 6px; background: #fff; border: 1px solid #e3eaf6; border-radius: 16px; }
.px-steps li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; border-radius: 12px; font-size: .84rem; font-weight: 700; color: #94a3b8; }
.px-steps li i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; font-size: .75rem; }
.px-steps li.on { background: #eef4ff; color: var(--brand); }
.px-steps li.on i { background: var(--brand); color: #fff; }
.px-steps li.done { color: #16a34a; }
.px-steps li.done i { background: #dcfce7; color: #16a34a; }
.px-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.px-main { min-width: 0; }
.px-n { width: 26px; height: 26px; border-radius: 50%; background: #eef4ff; color: var(--brand); display: grid; place-items: center; font-size: .78rem; }
.px-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.px-type { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; border: 1.5px solid #e3eaf6; border-radius: 16px; background: #fff; cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.px-type:hover { border-color: #c9d8f2; }
.px-type.on { border-color: var(--brand); background: #f5f8fe; box-shadow: 0 0 0 4px rgba(37, 111, 208, .08); }
.px-type img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 4px; }
.px-type b { font-size: .88rem; color: #0f172a; }
.px-type small { font-size: .74rem; color: #64748b; line-height: 1.35; }
.px-inline { max-width: 220px; }
.px-unit { display: flex; align-items: center; border: 1.5px solid #e3eaf6; border-radius: 12px; overflow: hidden; }
.px-unit input { flex: 1; height: 42px; border: 0; outline: 0; padding: 0 12px; font: inherit; min-width: 0; }
.px-unit span { padding: 0 12px; color: #64748b; font-weight: 700; background: #f8fafc; height: 42px; display: grid; place-items: center; border-left: 1px solid #e3eaf6; }
.px-route { display: flex; flex-direction: column; gap: 14px; }
.px-stop { display: flex; gap: 12px; align-items: flex-start; }
.px-stop .dot { margin-top: 32px; }
.px-link { border: 0; background: none; color: var(--brand); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: 0; margin-bottom: 6px; }
.px-newaddr { margin-top: 14px; padding: 14px; border-radius: 14px; background: #f8fafc; border: 1px dashed #cbd5e1; }
.px-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.px-rate { font-size: .82rem; font-weight: 700; color: #f59e0b; white-space: nowrap; }
.px-side { position: sticky; top: 84px; }
.px-sum { padding: 0; overflow: hidden; }
.px-map { height: 190px; background: #eef2f8; }
.px-sumin { padding: 16px 18px 18px; }
.px-dl { margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #eef2f8; padding-top: 12px; }
.px-dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; }
.px-dl dt { color: #64748b; } .px-dl dd { margin: 0; color: #0f172a; font-weight: 700; text-align: right; }
.px-price { margin-top: 12px; border-top: 1px solid #eef2f8; padding-top: 10px; }
.px-mobile-sum { display: none; }

@media (max-width: 1023px) {
    .rx-grid { grid-template-columns: minmax(0, 1fr); }
    .rx-mapwrap { position: relative; top: 0; height: 300px; min-height: 0; order: -1; border-radius: 18px; }
    .rx-grid > .rx-panel { order: 2; }
    .px-grid { grid-template-columns: minmax(0, 1fr); }
    .px-side { position: static; order: -1; }
    .px-price { display: none !important; }
    .px-mobile-sum { display: block; }
}
@media (max-width: 575px) {
    .rx-head { padding: 14px; border-radius: 16px; } .rx-head h1 { font-size: 1.2rem; } .rx-logo { width: 44px; height: 44px; border-radius: 12px; }
    .rx-card { padding: 14px; border-radius: 16px; }
    .rx-mapwrap { height: 240px; }
    .px-steps li span { display: none; } .px-steps li.on span { display: inline; }
    .px-two { grid-template-columns: 1fr; }
    .px-types { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Stays / Booking listing (st-*) ===== */
.st { padding-bottom: 36px; }
.st .crumbs { margin: 14px 0 10px; }
.st-intro h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #0f172a; letter-spacing: -.01em; }
.st-intro p { margin: 4px 0 0; color: #64748b; font-size: .95rem; }
.st-search { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr auto; align-items: stretch; margin: 18px 0 14px; background: #fff; border: 1px solid #e3eaf6; border-radius: 20px; padding: 8px; box-shadow: 0 18px 44px -30px rgba(15, 23, 42, .45); }
.st-f { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; cursor: text; min-width: 0; position: relative; }
.st-f + .st-f::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: #e3eaf6; }
.st-f:hover, .st-f:focus-within { background: #f5f8fe; }
.st-f:focus-within::before, .st-f:hover::before { opacity: 0; }
.st-ic { font-size: 1.05rem; flex: none; }
.st-in { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.st-in small { font-size: .68rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.st-in input { border: 0; outline: 0; background: transparent; font: inherit; font-size: .92rem; font-weight: 600; color: #0f172a; padding: 2px 0; width: 100%; min-width: 0; }
.st-step { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.st-step button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid #dbe6f7; background: #fff; color: var(--brand); font-weight: 800; cursor: pointer; line-height: 1; }
.st-step b { min-width: 16px; text-align: center; color: #0f172a; }
.st-go { border: 0; border-radius: 14px; padding: 0 26px; background: var(--brand); color: #fff; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 12px 24px -14px rgba(37, 111, 208, .9); }
.st-go:hover { background: var(--brand-700, #194c8f); }
.st-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.st-chips::-webkit-scrollbar { display: none; }
.st-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #e3eaf6; background: #fff; font: inherit; font-size: .86rem; font-weight: 700; color: #475569; cursor: pointer; transition: all .15s; }
.st-chip img { width: 20px; height: 20px; object-fit: contain; }
.st-chip:hover { border-color: #c9d8f2; color: var(--brand); }
.st-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 20px -14px rgba(37, 111, 208, .9); }
.st-headrow { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 12px; }
.st-headrow h2 { margin: 0; font-size: 1.25rem; font-weight: 800; color: #0f172a; }
.st-count { font-size: .85rem; color: #64748b; }
.st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.st-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e3eaf6; border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.st-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(15, 23, 42, .45); }
.st-img { position: relative; aspect-ratio: 4 / 3; background: #eef2f8; overflow: hidden; }
.st-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.st-card:hover .st-img img { transform: scale(1.04); }
.st-badge { position: absolute; top: 12px; left: 12px; background: #ef4444; color: #fff; font-size: .72rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(239, 68, 68, .7); }
.st-instant { position: absolute; bottom: 12px; left: 12px; background: rgba(255, 255, 255, .95); color: #0f172a; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.st-bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.st-row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.st-row h3 { margin: 0; font-size: .98rem; font-weight: 800; color: #0f172a; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-rate { flex: none; font-size: .8rem; font-weight: 800; color: #0f172a; background: #fff7e6; border-radius: 8px; padding: 3px 7px; }
.st-rate { color: #b45309; }
.st-loc { margin: 0; font-size: .8rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-meta { margin: 0; display: flex; gap: 10px; font-size: .76rem; color: #94a3b8; }
.st-meta span + span::before { content: '·'; margin-right: 10px; }
.st-price { margin-top: auto; padding-top: 8px; border-top: 1px solid #f1f5f9; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.st-price b { font-size: 1.08rem; color: var(--brand); font-weight: 800; }
.st-price small { color: #64748b; font-size: .8rem; }
.st-price s { color: #94a3b8; font-size: .82rem; }
.st-sk .st-img { background: linear-gradient(90deg, #f1f5f9, #f8fafc, #f1f5f9); background-size: 200% 100%; animation: rxSk 1.2s infinite; }
.st-sk i { display: block; height: 12px; border-radius: 6px; background: #f1f5f9; margin-bottom: 8px; }
.st-sk i:nth-child(2) { width: 70%; } .st-sk i:nth-child(3) { width: 40%; }
.st-empty { text-align: center; padding: 50px 16px; background: #fff; border: 1px dashed #dbe6f7; border-radius: 18px; color: #64748b; }
.st-empty div { font-size: 2.4rem; } .st-empty b { display: block; color: #0f172a; margin-top: 6px; } .st-empty p { margin: 4px 0 0; font-size: .88rem; }
@media (max-width: 1100px) { .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
    .st-search { grid-template-columns: 1fr 1fr; gap: 6px; }
    .st-where { grid-column: 1 / -1; }
    .st-f { background: #f8fafc; } .st-f + .st-f::before { display: none; }
    .st-go { grid-column: 1 / -1; height: 48px; }
    .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 479px) {
    .st-grid { grid-template-columns: minmax(0, 1fr); }
    .st-guests { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
    .st-f { padding: 8px 12px; gap: 8px; }
    .st-search .st-f:nth-child(2) .st-ic, .st-search .st-f:nth-child(3) .st-ic { display: none; }
    .st-in input[type=date] { font-size: .86rem; }
}


/* ---- Header pills: Marketplace with the LocalBazaar icon (backend app logo), Deals as plain natural red ---- */
.svc-nav a.market{display:inline-flex;align-items:center;gap:7px;padding-left:6px}
.svc-nav a.market .mk-ic{width:22px;height:22px;border-radius:7px;object-fit:cover;background:#256ecf;box-shadow:0 1px 3px rgba(15,23,42,.18);flex:none}
.svc-nav a.market:hover .mk-ic,.svc-nav a.market.on .mk-ic{box-shadow:0 0 0 2px rgba(255,255,255,.85)}
.svc-nav a.deals,
.svc-nav a.deals:hover,
.svc-nav a.deals.on{background:none!important;border-color:transparent!important;box-shadow:none!important;color:#dc2626!important;font-weight:800}
.svc-nav a.deals:hover{color:#b91c1c!important}
.svc-nav a.deals.on{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}
@media(max-width:379px){.hs-quick{gap:3px}.hs-quick a{padding:3px 6px;font-size:11px}}

/* "We offer" modules on phones: compact icon tiles, 5 per row → all modules in 2 lines */
@media(max-width:639px){
  .ws-offer{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 8px}
  .ws-offer:has(> .ws-offer-card:nth-of-type(9)){grid-template-columns:repeat(5,minmax(0,1fr));gap:8px 6px}
  .ws-offer-card{align-items:center;text-align:center;gap:5px;padding:8px 2px 7px;border-radius:14px;min-width:0}
  .ws-offer-card:hover{transform:none}
  .ws-offer-card .ic{width:44px;height:44px;border-radius:13px;margin:0}
  .ws-offer-card .ic img{width:34px;height:34px}
  .ws-offer-card b{font-size:11.5px;font-weight:700;line-height:1.2;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ws-offer-card small{display:none}
}
@media(max-width:359px){
  .ws-offer{gap:6px 4px}
  .ws-offer-card .ic{width:40px;height:40px}
  .ws-offer-card .ic img{width:30px;height:30px}
  .ws-offer-card b{font-size:10.5px}
}

/* Marketplace tile in "We offer": mobile only */
.ws-offer-market { display: none !important; }
@media (max-width: 639px) {
  .ws-offer-market { display: flex !important; }
  .ws-offer-market b { font-size: 10px !important; letter-spacing: -.25px; text-overflow: clip !important; }
  .ws-offer-market .ic img { object-fit: cover; padding: 0; width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 5px 12px -6px rgba(37,110,207,.6); }
}

/* Popular vendors: grid instead of a slider (4 / 3 / 2 per row) */
.ws-vgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media(max-width:999px){.ws-vgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
@media(max-width:699px){
  .ws-vgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ws-vgrid .ws-vendor{border-radius:14px}
  .ws-vgrid .ws-vendor .lg{left:10px;width:40px;height:40px;top:calc(56.25% - 20px);border-width:2px}
  .ws-vgrid .ws-vendor .bd{padding:24px 10px 10px;gap:3px}
  .ws-vgrid .ws-vendor .bd>b{font-size:13.5px}
  .ws-vgrid .ws-vendor .mt{gap:8px;font-size:11.5px;flex-wrap:wrap}
  .ws-vgrid .ws-vendor .mn{font-size:11.5px}
  .ws-vgrid .ws-vendor .closed{top:7px;right:7px;font-size:10px;padding:2px 6px}
}

/* Module blocks: auto + manual slider on every screen (3 per view on desktop, 2 on tablet, 1.15 on phones) */
.ws-mods-wrap{position:relative}
.ws-mods{grid-auto-columns:calc((100% - 28px)/3)!important;scrollbar-width:none;scroll-behavior:smooth;padding-bottom:2px}
.ws-mods::-webkit-scrollbar{display:none}
@media(max-width:999px){.ws-mods{grid-auto-columns:calc((100% - 14px)/2)!important}}
@media(max-width:639px){.ws-mods{grid-auto-columns:86%!important;gap:10px}}
.ws-mods-nav{position:absolute;top:50%;z-index:3;width:40px;height:40px;margin-top:-20px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink,#0f172a);font-size:24px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 20px -10px rgba(15,23,42,.45);transition:background .15s,color .15s,opacity .15s,transform .15s}
.ws-mods-nav:hover{background:var(--brand,#256fd0);color:#fff;border-color:transparent}
.ws-mods-nav.prev{left:-14px}
.ws-mods-nav.next{right:-14px}
.ws-mods-nav.off{opacity:.45}
@media(max-width:639px){.ws-mods-nav{width:32px;height:32px;margin-top:-16px;font-size:20px}.ws-mods-nav.prev{left:-6px}.ws-mods-nav.next{right:-6px}}

/* "We offer": pro module cards (label, name, full description, button; image on the right) */
.ws-oc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media(max-width:999px){.ws-oc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
.ws-oc{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k ic" "nm ic" "ds ic" "go go";align-content:start;column-gap:14px;padding:18px 18px 18px 20px;border-radius:20px;background:linear-gradient(135deg,#fff 55%,#eef5ff);border:1px solid var(--line);color:inherit;overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s}
.ws-oc:hover{transform:translateY(-3px);border-color:rgba(37,111,208,.35);box-shadow:0 18px 36px -22px rgba(22,63,140,.5)}
.ws-oc .k{grid-area:k;justify-self:start;max-width:100%;font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#256fd0;background:#e7f0fd;border-radius:999px;padding:3px 10px;margin-bottom:10px}
.ws-oc .nm{grid-area:nm;font-size:18px;font-weight:800;line-height:1.25;color:var(--ink);margin-bottom:4px}
.ws-oc .ds{grid-area:ds;font-size:13px;line-height:1.5;color:var(--ink-2,#64748b);font-weight:500}
.ws-oc .go{grid-area:go;justify-self:start;margin-top:14px;padding:7px 14px;border-radius:999px;background:#256fd0;color:#fff;font-size:12.5px;font-weight:800;box-shadow:0 8px 18px -10px rgba(37,111,208,.85);transition:background .2s}
.ws-oc:hover .go{background:#194c8f}
.ws-oc .ic{grid-area:ic;align-self:center;width:84px;height:84px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 45%,#fff 0 55%,#dbe9fc 56% 100%);box-shadow:inset 0 0 0 5px rgba(255,255,255,.6)}
.ws-oc .ic img{width:64px;height:64px;object-fit:contain;transition:transform .25s}
.ws-oc:hover .ic img{transform:scale(1.07) rotate(-2deg)}
.ws-oc .ic.tile img{width:48px;height:48px;object-fit:cover;border-radius:14px;box-shadow:0 6px 14px -6px rgba(37,110,207,.6)}
/* hide the old Marketplace-only mobile tile rules' effect */
.ws-oc-market{display:grid!important}
@media(max-width:639px){
  .ws-oc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .ws-oc{grid-template-columns:minmax(0,1fr);grid-template-areas:"ic" "k" "nm" "ds" "go";padding:12px 11px;border-radius:16px;text-align:left}
  .ws-oc:hover{transform:none}
  .ws-oc .ic{width:50px;height:50px;justify-self:start;margin-bottom:8px}
  .ws-oc .ic img{width:38px;height:38px}
  .ws-oc .ic.tile img{width:30px;height:30px;border-radius:9px}
  .ws-oc .k{font-size:8.5px;padding:2px 7px;margin-bottom:6px;letter-spacing:.05em}
  .ws-oc .nm{font-size:14.5px;margin-bottom:3px}
  .ws-oc .ds{font-size:11.5px;line-height:1.45}
  .ws-oc .go{margin-top:10px;padding:5px 10px;font-size:11px}
  /* odd count: the last card (Marketplace) spans the full width, image on the right */
  .ws-oc-grid > .ws-oc:last-child:nth-of-type(odd){grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k ic" "nm ic" "ds ic" "go ic"}
  .ws-oc-grid > .ws-oc:last-child:nth-of-type(odd) .ic{margin:0 0 0 6px}
}
/* keep the buttons aligned at the bottom of cards in the same row */
.ws-oc{grid-template-rows:auto auto 1fr auto;align-content:stretch}
.ws-oc .ds{align-self:start}
.ws-oc .go{align-self:end}
@media(max-width:639px){
  .ws-oc{grid-template-rows:auto auto auto 1fr auto}
  .ws-oc-grid > .ws-oc:last-child:nth-of-type(odd){grid-template-rows:auto auto 1fr auto}
}

/* Phones: no cart icon in the sticky header (Cart is in the bottom menu) */
@media(max-width:639px){.hdr-cart{display:none!important}}
/* Phones: no account button in the sticky header (Account is in the bottom menu) */
@media(max-width:639px){.hdr-acct{display:none!important}}

/* Phones: compact category blocks — 4 categories in one row, small images */
@media(max-width:639px){
  .ws-mods{grid-auto-columns:88%!important;gap:8px}
  .ws-mod{padding:11px 11px 12px;border-radius:16px;gap:9px}
  .ws-mod-h h3{font-size:15px}
  .ws-mod-h a{font-size:12px}
  .ws-mod-g{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  .ws-mc{gap:4px}
  .ws-mc .ci{border-radius:12px}
  .ws-mc .ci img{width:78%;height:78%}
  .ws-mc .nm{font-size:10.5px;line-height:1.2;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.4em}
  .ws-mods-nav{display:none}
}

/* Phones: "We offer" cards match the main website's mobile services cards —
   label on top, name + short button on the left, module image in a circle on the right, no description */
.ws-oc .go-short{display:none}
@media(max-width:639px){
  .ws-oc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .ws-oc,
  .ws-oc-grid > .ws-oc:last-child:nth-of-type(odd){grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;grid-template-areas:"k k" "nm ic" "go ic"!important;align-content:start!important;align-items:center;column-gap:6px;padding:10px 9px 10px 11px!important;border-radius:16px!important;min-height:0}
  .ws-oc .ds{display:none!important}
  .ws-oc .k{grid-area:k;font-size:8.5px!important;padding:2px 7px!important;margin-bottom:6px!important;letter-spacing:.06em!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ws-oc .nm{grid-area:nm;align-self:end;font-size:14px!important;line-height:1.2;margin:0 0 6px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ws-oc .go{grid-area:go;align-self:start!important;margin:0!important;padding:4px 9px!important;font-size:10.5px!important;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;box-shadow:0 6px 12px -8px rgba(37,111,208,.9)}
  .ws-oc .go-full{display:none}
  .ws-oc .go-short{display:inline}
  .ws-oc .ic,
  .ws-oc-grid > .ws-oc:last-child:nth-of-type(odd) .ic{grid-area:ic;align-self:center;justify-self:end;width:50px!important;height:50px!important;margin:0!important;box-shadow:inset 0 0 0 4px rgba(255,255,255,.6)}
  .ws-oc .ic img{width:38px!important;height:38px!important}
  .ws-oc .ic.tile img{width:30px!important;height:30px!important;border-radius:9px!important}
  .ws-oc-grid > .ws-oc:last-child:nth-of-type(odd) .ic{width:56px!important;height:56px!important}
}
@media(max-width:359px){
  .ws-oc .ic{width:42px!important;height:42px!important}
  .ws-oc .ic img{width:32px!important;height:32px!important}
  .ws-oc .nm{font-size:12.5px!important}
}
@media(max-width:639px){.ws-oc-grid > .skeleton{height:95px!important;border-radius:16px!important}}

/* Phones: 3 module cards per line, with the full description (overrides the compact 2-per-line layout) */
@media(max-width:639px){
  .ws-oc-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  .ws-oc,
  .ws-oc-grid > .ws-oc:last-child:nth-of-type(odd){grid-column:auto!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto 1fr auto!important;grid-template-areas:"ic" "k" "nm" "ds" "go"!important;align-content:stretch!important;align-items:start;padding:9px 7px 9px!important;border-radius:14px!important;text-align:left}
  .ws-oc .ic,
  .ws-oc-grid > .ws-oc:last-child:nth-of-type(odd) .ic{justify-self:start!important;width:40px!important;height:40px!important;margin:0 0 6px!important}
  .ws-oc .ic img{width:30px!important;height:30px!important}
  .ws-oc .ic.tile img{width:24px!important;height:24px!important;border-radius:7px!important}
  .ws-oc .k{justify-self:start;max-width:100%;font-size:7px!important;padding:2px 5px!important;margin-bottom:4px!important;letter-spacing:.03em!important}
  .ws-oc .nm{align-self:start;font-size:12.5px!important;margin:0 0 3px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.2}
  .ws-oc .ds{display:block!important;font-size:10px!important;line-height:1.4!important;color:var(--ink-2,#64748b)}
  .ws-oc .go{align-self:end!important;justify-self:start;margin-top:8px!important;padding:4px 8px!important;font-size:10px!important}
  .ws-oc-grid > .skeleton{height:190px!important;border-radius:14px!important}
}
@media(max-width:359px){
  .ws-oc-grid{gap:5px!important}
  .ws-oc{padding:8px 6px!important}
  .ws-oc .nm{font-size:11.5px!important}
  .ws-oc .ds{font-size:9.5px!important}
}
@media(max-width:639px){.ws-oc .k{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.25!important;border-radius:6px!important}}
/* Phones: module image back on the right (next to the name), label on top, full description below */
@media(max-width:639px){
  .ws-oc,
  .ws-oc-grid > .ws-oc:last-child:nth-of-type(odd){grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto 1fr auto!important;grid-template-areas:"k k" "nm ic" "ds ds" "go go"!important;column-gap:4px!important}
  .ws-oc .ic,
  .ws-oc-grid > .ws-oc:last-child:nth-of-type(odd) .ic{justify-self:end!important;align-self:center!important;width:36px!important;height:36px!important;margin:0 0 4px!important}
  .ws-oc .ic img{width:27px!important;height:27px!important}
  .ws-oc .ic.tile img{width:22px!important;height:22px!important;border-radius:6px!important}
  .ws-oc .nm{align-self:center!important;margin:0 0 4px!important}
}
/* Phones: image top-right beside the label, so the name gets the full card width (no clipping) */
@media(max-width:639px){
  .ws-oc,
  .ws-oc-grid > .ws-oc:last-child:nth-of-type(odd){grid-template-rows:auto auto 1fr auto!important;grid-template-areas:"k ic" "nm nm" "ds ds" "go go"!important;column-gap:4px!important}
  .ws-oc .k{align-self:start!important;margin:2px 0 6px!important}
  .ws-oc .ic,
  .ws-oc-grid > .ws-oc:last-child:nth-of-type(odd) .ic{align-self:start!important;margin:0 0 6px!important}
  .ws-oc .nm{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
}
