/* السلة الجانبية — ألوان المتجر من متغيّراته، وبتفتح من ناحية البداية (يمين في العربي) */
.sc-ov{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:9998;opacity:0;transition:opacity .25s}
.sc-ov.on{opacity:1}
.sc-drawer{position:fixed;top:0;bottom:0;inset-inline-start:0;width:min(420px,92vw);background:var(--bg,#fff);z-index:9999;display:flex;flex-direction:column;box-shadow:0 0 40px rgba(0,0,0,.18);transform:translateX(100%);transition:transform .28s cubic-bezier(.2,.8,.2,1)}
[dir=ltr] .sc-drawer{transform:translateX(-100%)}
.sc-drawer.on{transform:none}
.sc-load{margin:auto;width:32px;height:32px;border:3px solid var(--line,#eee);border-top-color:var(--p,#111);border-radius:50%;animation:scSpin .8s linear infinite}
@keyframes scSpin{to{transform:rotate(360deg)}}
.sc-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line,#eee)}
.sc-head b{font-size:18px}
.sc-x{width:44px;height:44px;border:0;background:none;font-size:28px;line-height:1;cursor:pointer;color:inherit;border-radius:50%}
.sc-x:hover{background:var(--line,#f2f2f2)}
.sc-err{margin:10px 18px 0;padding:9px 12px;border-radius:9px;background:#fef3f2;color:#b42318;font-size:13px;font-weight:700}
.sc-free{padding:12px 18px;border-bottom:1px solid var(--line,#eee)}
.sc-free p{margin:0 0 7px;font-size:13.5px}
.sc-free i{display:block;height:6px;border-radius:9px;background:var(--line,#eee);overflow:hidden}
.sc-free s{display:block;height:100%;background:var(--p,#111);border-radius:9px;transition:width .4s}
.sc-lines{list-style:none;margin:0;padding:6px 18px;overflow-y:auto;flex:1}
.sc-lines li{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line,#eee);transition:opacity .2s}
.sc-lines li:last-child{border-bottom:0}
.sc-img{flex:none;width:72px;height:90px;border-radius:9px;overflow:hidden;background:var(--line,#f3f3f3)}
.sc-img img{width:100%;height:100%;object-fit:cover}
.sc-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.sc-info>a{font-weight:700;font-size:14px;line-height:1.4;color:inherit;text-decoration:none}
.sc-info small{color:var(--muted,#888);font-size:12.5px}
.sc-q{display:flex;align-items:center;gap:4px;margin-top:auto}
.sc-q button{min-width:34px;height:34px;border:1px solid var(--line,#ddd);background:none;border-radius:8px;cursor:pointer;font:inherit;color:inherit}
.sc-q button:disabled{opacity:.35;cursor:not-allowed}
.sc-q span{min-width:26px;text-align:center;font-weight:700}
.sc-q .sc-rm{border:0;margin-inline-start:auto;text-decoration:underline;color:var(--muted,#888);font-size:12.5px;min-width:44px}
.sc-pr{white-space:nowrap;font-size:14px}
.sc-foot{padding:14px 18px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line,#eee);display:flex;flex-direction:column;gap:6px}
.sc-row{display:flex;justify-content:space-between;font-size:14px}
.sc-row.d{color:#16a34a;font-weight:700}
.sc-row.t{font-size:16px;padding-top:4px}
.sc-note{color:var(--muted,#888);font-size:12px}
.sc-go{margin-top:6px}
.sc-view{text-align:center;font-size:13px;color:var(--muted,#666);padding:6px}
.sc-empty{margin:auto;text-align:center;padding:30px}
@media (prefers-reduced-motion:reduce){.sc-drawer,.sc-ov{transition:none}}
