/* MEDIX Store theme v1 (2026-11-30): brand identity + light/dark */
:root{--grad:linear-gradient(135deg,#0F63F9 0%,#6A2BE0 55%,#AC0AB7 100%);--grad2:linear-gradient(90deg,#08B6F3,#0F63F9 45%,#AC0AB7);--card:#fff;--card2:#F7F8FC;--line2:#ECEEF5;--glow:0 14px 34px rgba(15,99,249,.22)}
html[data-theme=dark]{--ink:#070916;--txt:#ECEEFA;--mut:#9AA0C3;--line:#232849;--line2:#20254a;--bg:#0B0D1F;--card:#13162D;--card2:#181C38;color-scheme:dark}

/* ---------- identity (both themes) ---------- */
body{background:radial-gradient(900px 500px at 100% -10%,rgba(15,99,249,.07),transparent 60%),radial-gradient(800px 500px at -10% 30%,rgba(172,10,183,.06),transparent 60%),var(--bg);background-attachment:fixed}
.top{background:rgba(11,13,31,.94);-webkit-backdrop-filter:saturate(160%) blur(14px);backdrop-filter:saturate(160%) blur(14px)}
.top:after{content:"";position:absolute;inset:auto 0 0 0;height:2px;background:linear-gradient(90deg,transparent,#0F63F9 20%,#08B6F3 50%,#AC0AB7 80%,transparent);opacity:.9}
.sr button,.np.all{background:var(--grad)}
.btn.pri{background:var(--grad);box-shadow:var(--glow)}
.btn.pri:hover{background:var(--grad);filter:brightness(1.08);box-shadow:0 18px 40px rgba(106,43,224,.35)}
.sh h2,.h2,main h2{position:relative}
.sh h2:after{content:"";display:block;width:34px;height:4px;border-radius:4px;margin-top:8px;background:var(--grad2)}
.bc,.pv{transition:transform .2s,box-shadow .2s,border-color .2s}
.bc:hover,.pv:hover{transform:translateY(-3px);border-color:transparent;box-shadow:0 0 0 1.5px rgba(106,43,224,.45),0 18px 40px rgba(15,99,249,.14)}
.vo input:checked + .vb,.m:has(input:checked),.reg.on{border-color:#6A2BE0}
.tbar button.on{color:#6A2BE0}
.thb{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff;cursor:pointer;flex:none}
.thb:hover{background:rgba(255,255,255,.14)}
.thb .sun{display:none}html[data-theme=dark] .thb .sun{display:block}html[data-theme=dark] .thb .moon{display:none}

/* ---------- mobile header: search on its own row ---------- */
@media(max-width:640px){
.hd{flex-wrap:wrap;height:auto;padding-top:8px;row-gap:8px}
.hd .sr{order:5;flex:1 0 100%;height:44px;margin-bottom:4px}
.hd .acts{margin-inline-start:auto;gap:4px}
.ib{min-width:40px;height:40px;padding:0 8px}
.thb{width:38px;height:38px}
}

/* ---------- dark theme surfaces ---------- */
html[data-theme=dark] body{color:var(--txt)}
html[data-theme=dark] .sr{background:#1A1E3A}
html[data-theme=dark] .sr input{color:#fff}
html[data-theme=dark] .sr input::placeholder{color:#8C92B8}
html[data-theme=dark] :is(.dd,.drw,.trust,.bc,.pv,.how li,.faq details,.facts li,.pinfo,.vb,.in,.tabs,.cl,.cq button,.csum,.box,.wal,.empty,.buybar,.btn.gho2,.mx-hubc,.mx-cnt,.mx-step,.mx-bl-c,.mx-hc,.mx-card,.mx-ab-c,.mx-ft-r,article,details){background:var(--card);border-color:var(--line);color:var(--txt)}
html[data-theme=dark] :is(.ddi:hover,.x,.dc,.dsi,.dsr input,.scpay,th){background:var(--card2);color:var(--txt);border-color:var(--line)}
html[data-theme=dark] :is(.reg.on,.vo input:checked + .vb,.m:has(input:checked)){background:rgba(106,43,224,.16);color:#fff}
html[data-theme=dark] :is(.reg,.vb,.in,.qty,.m,.db1){border-color:#2B3157}
html[data-theme=dark] :is(.buybar,.tbar,.row.tot,td,th,hr){border-color:var(--line)}
html[data-theme=dark] :is(input,select,textarea){background:var(--card2);color:var(--txt);border-color:#2B3157}
html[data-theme=dark] .alert.warn{background:#2A2110;color:#F5C26B}
html[data-theme=dark] .alert.err,html[data-theme=dark] .ok.r{background:#2C1219;color:#FCA5A5}
html[data-theme=dark] .alert.ok{background:#0F2A1C;color:#86EFAC}
html[data-theme=dark] .ok.y{background:#2A2110;color:#F5C26B}
html[data-theme=dark] .mx-cmp{color:#7E84A8}
html[data-theme=dark] .btn.sec2{background:var(--grad)}
html[data-theme=dark] .fxp{background:var(--card);color:var(--txt);border-color:var(--line)}
html[data-theme=dark] .fxp input{background:var(--card2);color:var(--txt);border-color:var(--line)}
html[data-theme=dark] .fxl button:hover,html[data-theme=dark] .fxl button.on{background:rgba(106,43,224,.2);color:#C4B5FD}
html[data-theme=dark] .fxn{background:var(--card2);border-color:var(--line);color:var(--mut)}
html[data-theme=dark] .bc:hover,html[data-theme=dark] .pv:hover{box-shadow:0 0 0 1.5px rgba(124,92,255,.6),0 18px 40px rgba(0,0,0,.45)}
html[data-theme=dark] .trust,html[data-theme=dark] .buybar{box-shadow:0 12px 40px rgba(0,0,0,.35)}
html[data-theme=dark] img[src$="medix-logo-256.webp"]{filter:none}
html[data-theme=dark] :is(.pvh-i b,.pvh-p strong,.mx-h2,.mx-step h3,.mx-hc b,.pol h2,.pol .kv b,.mx-ab-c h2,.mx-card h3,.mx-acc summary){color:var(--txt)}
html[data-theme=dark] :is(details.mx-rv p,.sec>p,.lead,.mx-steps p,.mx-acc p,.mx-acc li,.mx-acc b,.pol p,.pol li,.pol b,.pol a){color:#C3C7E3}
html[data-theme=dark] :is(.mx-steps li,.mx-ab-ch li,.pol nav){background:var(--card2);border-color:var(--line)}
html[data-theme=dark] nav.d a{background:var(--card);color:var(--txt);border-color:var(--line)}
html[data-theme=dark] .pol a.on{background:rgba(106,43,224,.22);color:#C4B5FD}
html[data-theme=dark] .pol .note{background:#2A2110;color:#F5C26B;border-color:#4A3A16}html[data-theme=dark] .pol .note a{color:#F5C26B}
html[data-theme=dark] .mx-ab-tags a{background:rgba(15,99,249,.16);color:#9DB9FF}
html[data-theme=dark] .mx-eyebrow{color:#D06BE0}
html[data-theme=dark] .pl{background:#fff;color:#14172e;border-color:#fff}
html[data-theme=dark] .btn.sec2{background:#1E2347;border:1px solid #2F3563;color:#fff}
html{overflow-x:hidden}
html[data-theme=dark] .pgrid .pv-hot{background:linear-gradient(var(--card),var(--card)) padding-box,linear-gradient(135deg,#0F63F9,#AC0AB7,#FF0164) border-box}
html[data-theme=dark] .pvh-i small{color:var(--mut)}
/* store bottom nav (phones) */
.sbn{display:none}
@media(max-width:820px){
body{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
.sbn{display:flex;position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:45;height:64px;border-radius:22px;background:rgba(11,13,31,.96);border:1px solid rgba(255,255,255,.1);box-shadow:0 14px 34px rgba(0,0,0,.38);justify-content:space-around;align-items:center;padding:0 4px}
.sbn:before{content:"";position:absolute;inset:-1px -1px auto -1px;height:2px;border-radius:22px 22px 0 0;background:linear-gradient(90deg,transparent,#08B6F3,#0F63F9,#AC0AB7,transparent);opacity:.8}
.sbn a,.sbn button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:100%;color:#9AA0C3;font:inherit;font-size:10.5px;font-weight:600;background:none;border:0;padding:0;position:relative;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sbn .on{color:#fff}.sbn .on svg{color:#08B6F3}
.sbn .ctr .ic{width:50px;height:50px;margin-top:-30px;border-radius:17px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#0F63F9,#6A2BE0 55%,#AC0AB7);box-shadow:0 10px 24px rgba(106,43,224,.5),0 0 0 5px rgba(11,13,31,.96)}
.sbn i{position:absolute;top:7px;left:calc(50% + 4px);font-style:normal;min-width:17px;height:17px;padding:0 5px;border-radius:99px;background:#FF0164;color:#fff;font-size:10px;font-weight:800;display:grid;place-items:center}
.mx-fab,[class*="mx-fab "]{bottom:calc(88px + env(safe-area-inset-bottom))!important}
}
/* checkout in dark (2026-11-30) */
html[data-theme=dark] :is(.gbtn,.pay2 .m,.sc-wal,.sc-qr,.pp .fld input[type=file]){background:var(--card);border-color:var(--line);color:var(--txt)}
html[data-theme=dark] .pay2 .m:has(input:checked){background:rgba(15,99,249,.14)}
html[data-theme=dark] .pp{background:var(--card2);border-color:var(--line)}
html[data-theme=dark] .sc-wal code{color:#9DB9FF}
html[data-theme=dark] .pay2 .m .chip{background:#fff;color:#14172e}
html[data-theme=dark] :is(.csum .row.it span,.csum .row.it b,.gbtn span){color:#C3C7E3}
html[data-theme=dark] .vok{background:#0F2A1C;border-color:#14532d;color:#86EFAC}html[data-theme=dark] .vok small{color:#86EFAC}
html[data-theme=dark] .cd-off{background:#2A2110;border-color:#4A3A16;color:#F5C26B}
html[data-theme=dark] .vmsg.err{color:#FCA5A5}html[data-theme=dark] .vmsg.ok{color:#86EFAC}html[data-theme=dark] .coerr{background:#2C1219;border-color:#7f1d1d;color:#FCA5A5}
/* store auth pages in dark (2026-11-30) */
html[data-theme=dark] .au .card{background:var(--card);border-color:var(--line)}
html[data-theme=dark] .au .tabs{background:var(--card2)}html[data-theme=dark] .au .tabs a.on{background:var(--card);color:var(--txt)}
html[data-theme=dark] .au h1{color:var(--txt)}html[data-theme=dark] .au .gbtn{background:var(--card2);color:var(--txt);border-color:var(--line)}
html[data-theme=dark] .au .msg.err{color:#FCA5A5}html[data-theme=dark] .au .msg.ok{color:#86EFAC}
