/* Nexvio Mart — marketplace theme (Daraz-style): orange accent, grey canvas, white cards.
   Loaded LAST. Pure visual layer: no ids/classes used by scripts were renamed. */
:root{--dz:#f85606;--dz2:#d94700;--dz-soft:#fff1ea;--bg:#eff0f5;--card:#fff;--ink:#212121;--mute:#757575;--line:#e8e8e8;
--g:#f85606;--g2:#d94700;--r:#f85606;--y:#f85606;--rad:6px;--sh:0 1px 3px rgba(0,0,0,.08),0 4px 14px rgba(0,0,0,.05)}
html body{background:var(--bg);color:var(--ink);font-size:16px}
body{padding-bottom:0}
@media(max-width:760px){html body{padding-bottom:calc(62px + env(safe-area-inset-bottom))}}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--dz);outline-offset:2px}

/* ---------- top strip ---------- */
html body .top{background:linear-gradient(90deg,#f85606,#ff7a1a)!important;color:#fff!important;font-size:13px;font-weight:500;padding:6px 12px}

/* ---------- header ---------- */
html body .hd{background:#fff!important;border-bottom:0!important;box-shadow:0 1px 0 #ececec,0 4px 12px rgba(0,0,0,.04)}
html body .hd .bar{display:flex;flex-wrap:wrap;align-items:center;height:auto;gap:10px 16px;padding-top:10px;padding-bottom:0}
html body .hd .logo{order:1;margin-right:8px}
html body .hd .logo img{height:56px;max-width:140px}
html body .hd .hs{order:2;flex:1 1 360px;max-width:680px;margin:0 auto 0 0;display:flex}
html body .hd .hs input{flex:1;min-width:0;width:auto;height:42px;background:#fff!important;border:1.5px solid var(--dz)!important;border-right:0!important;border-radius:4px 0 0 4px!important;padding:0 14px;font-size:15px;color:var(--ink)!important}
html body .hd .hs input::placeholder{color:#9a9a9a!important}
html body .hd .hs input:focus{outline:0;box-shadow:0 0 0 3px #f8560622}
.hs-b{height:42px;padding:0 22px;border:0;background:var(--dz);color:#fff;font:inherit;font-weight:600;border-radius:0 4px 4px 0;cursor:pointer}
.hs-b:hover{background:var(--dz2)}
html body .hd .btn.cartbtn{order:5;background:#fff!important;color:var(--dz)!important;border:1.5px solid var(--dz)!important;border-radius:4px;padding:8px 16px;height:42px;font-weight:600}
html body .hd .btn.cartbtn:hover{background:var(--dz-soft)!important;box-shadow:none}
html body .hd .btn.cartbtn span{background:var(--dz)!important;color:#fff!important;min-width:20px;line-height:20px;font-size:12px}
html body .hd .lang-toggle{order:4;background:#fff!important;color:#444!important;border:1px solid #d9d9d9!important;border-radius:4px!important;height:42px;font-weight:600}
html body .hd .account-trigger{order:4;background:#fff;border:0;border-radius:4px;color:#333;font-weight:600;font-size:14px;height:42px}
html body .hd .account-trigger:hover{background:var(--dz-soft);color:var(--dz)}
.hd-fav{order:3;display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:#333;font-weight:600;font-size:14px;height:42px;padding:0 10px;border-radius:4px}
.hd-fav svg{width:22px;height:22px;stroke:currentColor}.hd-fav:hover{color:var(--dz);background:var(--dz-soft)}
html body .hd .mn{order:10;flex:1 1 100%;margin:4px 0 0;padding:0;gap:2px;border-top:1px solid #f1f1f1}
html body .hd .mn a,html body .hd .dd>button{color:#333!important;font-size:15px;font-weight:600;border-radius:0;padding:10px 14px;border-bottom:2px solid transparent;background:none!important}
html body .hd .mn a:hover,html body .hd .mn a.on,html body .hd .dd>button:hover{color:var(--dz)!important;background:none!important;border-bottom-color:var(--dz)}
html body .hd .ddm{background:#fff!important;border:0!important;border-radius:4px;box-shadow:0 8px 24px rgba(0,0,0,.14);padding:6px;top:calc(100% + 1px)}
html body .hd .ddm a{color:#333!important;border:0;border-radius:4px;padding:9px 12px}
html body .hd .ddm a:hover{background:var(--dz-soft)!important;color:var(--dz)!important}
#mHam{color:var(--dz)!important;order:0}

/* mobile header: row 1 = menu, logo, cart ; row 2 = full width search */
@media(max-width:760px){
 html body .hd .bar{gap:8px;padding-top:8px;padding-bottom:10px}
 html body .hd .logo{margin-right:auto}
 html body .hd .logo img{height:44px;max-width:104px}
 html body .hd .hs{order:20;flex:1 1 100%;max-width:none;margin:0}
 html body .hd .hs input{height:40px;border-radius:20px 0 0 20px!important;padding-left:16px}
 .hs-b{height:40px;border-radius:0 20px 20px 0;padding:0 18px}
 html body .hd .btn.cartbtn{height:36px;padding:0 12px;font-size:13px;border-radius:18px}
 html body .hd .lang-toggle{height:36px;border-radius:18px!important}
 .hd-fav{display:none}
}
@media(min-width:761px) and (max-width:1000px){.hd-fav span{display:none}}

/* ---------- generic buttons ---------- */
html body .btn,html body .hero .btn{background:var(--dz)!important;border-color:var(--dz)!important;color:#fff!important;border-radius:4px;box-shadow:none;font-weight:600}
html body .btn:hover{background:var(--dz2)!important;border-color:var(--dz2)!important;box-shadow:0 4px 12px rgba(248,86,6,.3)}
html body .btn.alt{background:#fff!important;color:var(--dz)!important;border-color:var(--dz)!important}
html body .btn.alt:hover{background:var(--dz-soft)!important}
html body .btn.y{background:var(--dz)!important;border-color:var(--dz)!important;color:#fff!important}

/* ---------- home: white content blocks on grey canvas ---------- */
body[data-page=home] main>section{padding:0}
body[data-page=home] main>section.wrap{background:#fff;border-radius:6px;margin:12px auto;padding:16px 18px;max-width:1160px}
@media(max-width:760px){
 body[data-page=home] main>section.wrap{border-radius:0;margin:8px 0;padding:14px 12px;max-width:none}
 .wrap{padding-left:12px;padding-right:12px}
}
body[data-page=home] main>section.trust{background:#fff;border:0;margin:12px 0;padding:0}
.sh{align-items:center;margin-bottom:14px}
.sh h2,.sec-h h2{font-size:20px;font-weight:700;color:#212121;letter-spacing:0}
.sh .sub{font-size:13.5px;margin-top:2px}
html body .sh a,.sec-h a{color:var(--dz)!important;border:1px solid var(--dz);border-radius:4px;padding:5px 14px;font-size:14px;font-weight:600;text-decoration:none;background:#fff}
.sh a:hover{background:var(--dz-soft)}

/* banner */
html body .mb{margin:12px auto;border-radius:6px;box-shadow:none;border:0;max-width:1160px}
html body .mb .sl a{background:#fff;color:var(--dz)!important;border-radius:4px;font-weight:700;box-shadow:none;padding:9px 22px}
.mb .dots i{width:8px;height:8px}.mb .dots i.on{width:22px;background:#fff}
@media(max-width:760px){html body .mb{margin:0;border-radius:0}}

/* trust strip */
.trust .tg{gap:0;padding:0}.tg>div{padding:14px 16px;border-right:1px solid #f0f0f0}.tg>div:last-child{border-right:0}
.tg svg{background:var(--dz-soft)!important;stroke:var(--dz)!important;border-radius:50%}
@media(max-width:820px){.tg>div{border-right:0;border-bottom:1px solid #f4f4f4;padding:12px 4px}}

/* quick icon grid (Daraz-style octagon badges) */
.qi{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:minmax(84px,1fr);gap:14px 6px;overflow-x:auto;scrollbar-width:none;padding:2px 0 8px}
.qi::-webkit-scrollbar{display:none}
.qi a{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:#333;font-size:13px;font-weight:500;text-align:center;line-height:1.25}
.qi .ic{width:58px;height:58px;display:grid;place-items:center;color:#fff;clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%);background:linear-gradient(145deg,var(--c1,#ff8a3d),var(--c2,#f85606));transition:transform .15s}
.qi a:hover .ic{transform:scale(1.06)}
.qi .ic svg{width:26px;height:26px;stroke:#fff;stroke-width:1.8}
.qi-wrap{padding:14px 16px!important}
@media(max-width:760px){.qi{grid-auto-columns:76px}.qi .ic{width:52px;height:52px}}

/* ---------- product & collection cards ---------- */
.grid{gap:12px}
html body .card,.cc{background:#fff;border:0;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.08);transition:box-shadow .15s,transform .15s}
html body .card:hover,.cc:hover{box-shadow:0 6px 18px rgba(0,0,0,.14);transform:translateY(-2px)}
.ph{background:#f5f5f5}
.card:hover .ph img,.cc:hover .cv img{transform:none}
.in{padding:8px 10px 12px;gap:2px}
.in h3{font-size:14px;font-weight:400;line-height:1.4;color:#212121;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cd{font-size:12px;color:#9a9a9a;font-weight:400;letter-spacing:0}
.cd b{background:var(--dz-soft);color:var(--dz)}
.pr{gap:6px;margin-top:2px;align-items:center}
.pr b{font-size:19px;font-weight:500;color:var(--dz)}
.pr s{color:#9e9e9e;font-size:13px!important;opacity:1!important}
.off{background:transparent;color:#212121;padding:0;font-size:12.5px;font-weight:500;border-radius:0}
.off::before{content:"-"}
.fr{background:#e8f7ef;color:#0d7a44;border-radius:3px;font-size:11.5px;font-weight:600;padding:1px 7px}
html body .fav{top:8px;right:8px;width:32px;height:32px;line-height:32px;color:var(--dz);box-shadow:0 1px 4px rgba(0,0,0,.2);font-size:18px}
.cm{padding:10px 12px 12px}.cm h3{font-size:15px;font-weight:600}.cm .meta{color:var(--dz)}
.cats{gap:12px}.cv{aspect-ratio:1/1}
.cc{border:0}

/* home "new arrivals" as a flash-sale style strip */
#newrow .card{border:1px solid #f1f1f1;box-shadow:none}
@media(max-width:820px){#newrow .card{flex-basis:44%}}

/* ---------- tabs / chips / search ---------- */
.chip{border-radius:99px;font-weight:500;font-size:14px;padding:5px 15px;border:1px solid #e0e0e0}
.chip:hover{border-color:var(--dz);color:var(--dz)}
.chip.on{background:var(--dz);border-color:var(--dz);color:#fff}
.tool input{border-radius:4px;border:1.5px solid var(--dz);background:#fff}
input:focus,select:focus,textarea:focus{border-color:var(--dz)!important;outline:3px solid #f8560622!important}
body:not([data-page=home]) main>section.wrap{padding-top:18px}
.crumb a{color:var(--dz)}

/* ---------- product page ---------- */
.pimg{border-radius:4px;box-shadow:none;border:0;background:#fff}
.pd{background:#fff;border-radius:4px;padding:20px}
@media(max-width:820px){.pd{padding:12px;border-radius:0}}
.big b{color:var(--dz);font-weight:500}
.sizes button{border-radius:3px;border:1px solid #d6d6d6}
.sizes button[aria-pressed=true]{border-color:var(--dz);background:var(--dz-soft);color:var(--dz)}
.sw.on{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--dz)}
.feat{border-radius:4px;background:#fafafa;border:0}.feat li::before{color:var(--dz)}
.dc{border:0;border-radius:4px}.dc li::before{background:var(--dz)}
.steps div{border:0;background:#fafafa;border-radius:4px}.steps b{background:var(--dz)}
.btns .btn{border-radius:3px;min-height:46px}

/* ---------- cart drawer & checkout ---------- */
html body .drawer{box-shadow:-8px 0 30px rgba(0,0,0,.2)}
.dh{background:var(--dz);color:#fff;border-bottom:0}.dh h2{color:#fff;font-size:19px}
.dh button{background:rgba(255,255,255,.2);color:#fff}
.sum{background:#fafafa;border-radius:4px}.sum .t{color:var(--dz)}
#items .qty button{border-radius:3px}.qty .rm{color:var(--dz);border-color:#f8c2a8}
body .payment-choice{border:1px solid #f1d2c1!important;background:#fffaf7!important;color:#212121}
body .payment-choice legend{color:var(--dz)!important}
body .payment-choice label{border-color:#efe3dc!important;border-radius:4px!important}
body .payment-choice input[type=radio]{accent-color:var(--dz)!important}
fieldset input[type=radio]{accent-color:var(--dz)}
.toast{background:#212121;border-radius:4px}

/* ---------- account modal ---------- */
.bm-account-tabs button.active,.bm-account-action,.bm-account-form button{background:var(--dz)!important;color:#fff!important}
.bm-account-tabs button{background:#f3f3f3;color:#444}.bm-account-link{color:var(--dz)}
.bm-account-card{border-radius:8px}

/* ---------- success popup & banners that were green ---------- */
.cb,.cbs,.fo{background:linear-gradient(135deg,#f85606,#ff8a3d)!important}
.cb p,.cbs p{color:#fff3ea}.cb h3,.cbs b,.fot h2,.amt b{color:#fff!important}
.sm{background:var(--dz-soft);color:var(--dz2)}
.dcard h2{color:var(--dz)}
.tag{background:rgba(255,255,255,.22)}

/* ---------- mobile drawer menu ---------- */
#mDr nav b{color:var(--dz)!important}
#mDr nav a{border-bottom:1px solid #f2f2f2}#mDr nav a:active{background:var(--dz-soft)}

/* ---------- bottom nav (mobile only) ---------- */
.bn{display:none!important}
html body .bnav{display:none!important;background:#fff!important;border-top:1px solid #e6e6e6!important;box-shadow:0 -2px 10px rgba(0,0,0,.06);padding-bottom:env(safe-area-inset-bottom)}
@media(max-width:760px){html body .bnav{display:flex!important}}
html body .bnav a,html body .bnav button{color:#757575!important;font-size:11.5px;font-weight:500;padding:7px 2px 6px}
html body .bnav a.on,html body .bnav a:active,html body .bnav button:active{color:var(--dz)!important}
html body .bnav b{color:inherit!important;font-size:0;line-height:0;display:flex;justify-content:center;margin-bottom:3px}
.bnav svg{width:23px;height:23px;stroke:currentColor;fill:none}
html body .bnav em{background:var(--dz)!important;color:#fff!important;font-size:10.5px;min-width:16px;line-height:16px;padding:0 4px;top:3px;left:54%;text-align:center}
.bnav em:empty{display:none}
.wa{bottom:18px}
@media(max-width:760px){.wa{display:none}}

/* ---------- footer ---------- */
.ft{background:#fff!important;color:#555!important;border-top:3px solid var(--dz);margin-top:24px}
.ft h4{color:#212121!important}.ft a{color:#666!important}.ft a:hover{color:var(--dz)!important}
.ft .logo b,.ft .logo span{color:var(--dz)!important}
.ft .copy{border-top-color:#eee;color:#888}

/* trust strip aligned with the 1160px content column */
body[data-page=home] main>section.trust{background:transparent!important;margin:12px 0}
body[data-page=home] .trust .tg{background:#fff;border-radius:6px;max-width:1160px}
@media(max-width:760px){body[data-page=home] .trust .tg{border-radius:0;padding:0 12px}}


/* ---------- flash sale ---------- */
.ph{position:relative}
.fsb{position:absolute;left:0;top:8px;z-index:2;background:linear-gradient(90deg,#f85606,#ff7a1a);color:#fff;font-size:11.5px;font-weight:700;padding:2px 10px 2px 8px;border-radius:0 12px 12px 0;line-height:1.5}
.flash-sec .sh{flex-wrap:wrap}
.fs-hd{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.fs-hd h2{display:flex;align-items:center;gap:6px;color:var(--dz)}
.fs-hd h2 svg{width:24px;height:24px;fill:var(--dz);stroke:var(--dz)}
.fs-t{display:flex;align-items:center;gap:4px;font-weight:700}
.fs-t small{font-size:13px;color:#757575;font-weight:500;margin-right:6px}
.fs-t i{font-style:normal;background:#212121;color:#fff;border-radius:3px;min-width:30px;padding:2px 6px;text-align:center;font-size:15px}
.fs-t u{text-decoration:none;color:#212121}
#flashrow{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
@media(min-width:821px){#flashrow{grid-template-columns:repeat(6,1fr)}}
@media(max-width:820px){#flashrow{display:flex;overflow-x:auto;gap:10px;margin:0 -12px;padding:2px 12px 8px;scroll-snap-type:x mandatory;scrollbar-width:none}#flashrow .card{flex:0 0 44%;scroll-snap-align:start}}
.flash-sec .card{border:1px solid #fde0d0}
.fs-pb{background:var(--dz-soft);color:var(--dz2);border:1px solid #fcd5c0;border-radius:4px;padding:6px 12px;font-weight:600;font-size:14px;margin:6px 0 4px}


/* ---------- admin-managed banner slides ---------- */
.mb .sl.has-img:before{display:none}
.mb .sl.img-only{min-height:0;aspect-ratio:16/5;padding:0}
@media(max-width:760px){.mb .sl.img-only{aspect-ratio:16/7}}
html body .mb .sl a.sl-all{position:absolute;inset:0;z-index:1;background:transparent;box-shadow:none;padding:0;margin:0;border-radius:0;align-self:auto}
html body .mb .sl a.sl-btn{position:relative;z-index:2}
.mb .dots{z-index:3}.mb .dots i{cursor:pointer}
