/* ===================== ClickGuard — phone / narrow window layout ===================== */
.ham,.side-tools,.side-shade{display:none}
body.mobile{font-size:15px}
body.mobile .top{height:auto;flex-wrap:wrap;gap:8px;padding:8px 10px calc(8px);padding-top:max(8px,env(safe-area-inset-top))}
body.mobile .ham{display:grid;order:1}
body.mobile .logo{order:2;height:34px;margin:0 auto 0 2px}
body.mobile .vdiv{display:none}
body.mobile .lgroup{order:3}
body.mobile #eyeBtn{order:3}
body.mobile .cart-btn{order:4;height:42px;padding:0 12px}
body.mobile .cart-btn b{display:none}
body.mobile #modeSeg{order:5;flex:1 1 100%;margin:0}
body.mobile #modeSeg button{flex:1;height:38px}
body.mobile .search{order:6;flex:1 1 150px;max-width:none;min-width:0;height:44px}
body.mobile .search input{min-width:0;width:100%}
body.mobile .rate{order:7;height:44px;padding:0 8px}
body.mobile .rate input{width:62px}
body.mobile .icon-btn{width:42px;height:42px}
body.mobile input,body.mobile select,body.mobile textarea{font-size:16px}
/* side drawer with categories + tools */
body.mobile .side{position:fixed;z-index:45;top:0;bottom:0;left:0;width:min(86vw,340px);transform:translateX(-105%);transition:transform .35s cubic-bezier(.2,.8,.2,1);box-shadow:10px 0 40px rgba(0,0,0,.2);padding-top:env(safe-area-inset-top)}
body.mobile.side-open .side{transform:none}
body.mobile .side-shade{display:block;position:fixed;inset:0;z-index:44;background:var(--shade);opacity:0;pointer-events:none;transition:opacity .3s}
body.mobile.side-open .side-shade{opacity:1;pointer-events:auto}
body.mobile .side-tools{display:flex;flex-wrap:wrap;gap:8px;padding:12px 12px 4px;border-bottom:1px solid var(--line)}
body.mobile .side-tools .seg{flex:1}
body.mobile .side-tools .seg button{flex:1}
body.mobile .catw .grip{display:none}
/* catalog */
body.mobile .main{padding:12px 10px 90px}
body.mobile .chead h1{font-size:22px}
body.mobile .sec-h{top:-12px;font-size:14px;padding:9px 12px}
body.mobile .prow{grid-template-columns:1fr;gap:10px;padding:12px;border-radius:14px}
body.mobile .prow .pimg{width:100%;height:260px}
body.mobile .pname{font-size:16px}
body.mobile .desc{font-size:13.5px}
body.mobile .pprice{border-left:0;padding-left:0;border-top:1px solid var(--line2);padding-top:10px;display:grid;grid-template-columns:1fr 1fr;align-items:center}
body.mobile .pprice .pr-client{grid-column:1/2}
body.mobile .pprice .pr-part{grid-column:2/3}
body.mobile .pprice .qty,body.mobile .pprice .addbtn{height:44px}
body.mobile .pprice .tocat,body.mobile .pprice .inord{grid-column:1/-1}
body.mobile .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.mobile .gcard{padding:8px;border-radius:12px}
body.mobile .gcard .pimg{height:170px}
body.mobile .gcard .pname{font-size:13px}
body.mobile .gcard .usd{font-size:18px}
body.mobile .gcard .tocat.ic{display:none}
/* order drawer + modals full screen */
body.mobile .drawer{width:100%;padding-bottom:env(safe-area-inset-bottom)}
body.mobile .dr-client{grid-template-columns:1fr}
body.mobile .dr-client textarea{grid-column:1}
body.mobile .modal{padding:0;align-items:stretch}
body.mobile .mbox,body.mobile .mbox.small{max-width:none;max-height:none;height:100%;border-radius:0;padding:18px 14px}
body.mobile .det{grid-template-columns:1fr;gap:14px}
body.mobile .det .pimg{width:100%;height:320px}
body.mobile .themes{grid-template-columns:repeat(3,1fr)}
body.mobile .linkrow{flex-direction:column}
body.mobile .lightbox img#lbImg{max-width:96vw;max-height:70vh;min-width:0;min-height:0}
body.mobile .lbnav{width:44px;height:64px;font-size:30px}
body.mobile .toast{bottom:calc(18px + env(safe-area-inset-bottom));max-width:92vw;text-align:center}
/* login screen (web) */
#cgLogin{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:linear-gradient(160deg,#fff 0%,#f6eeee 60%,#f1dede 100%);padding:20px}
.cg-login{width:min(380px,100%);background:#fff;border-radius:22px;box-shadow:0 20px 60px rgba(60,10,10,.15);padding:28px 24px;display:flex;flex-direction:column;gap:12px;text-align:center;animation:cardIn .5s cubic-bezier(.2,.8,.2,1)}
.cg-login img{width:200px;margin:0 auto 6px}
.cg-login input{height:50px;border:1px solid #e3d9d9;border-radius:12px;padding:0 14px;font-size:16px;outline:none}
.cg-login input:focus{border-color:#d71f26;box-shadow:0 0 0 4px rgba(215,31,38,.15)}
.cg-login button{height:50px;border:0;border-radius:12px;background:#d71f26;color:#fff;font-weight:700;font-size:16px;cursor:pointer}
.cg-login button:disabled{opacity:.6}
.cg-login p{color:#c0392b;min-height:18px;margin:0;font-size:14px}
.cg-login small{color:#999}
body.mobile.mode-clienti .rate{display:none}
