.spx-header-basket-wrap{position:relative;direction:rtl;z-index:200000!important}
.spx-header-basket{position:relative;display:inline-flex;align-items:center;gap:8px;min-width:120px;height:46px;padding:0 11px;border:1px solid #E4EAF3;border-radius:13px;background:#fff;color:var(--spx-text,#0B1220);font:inherit;text-align:right;text-decoration:none;cursor:pointer;box-shadow:0 5px 16px rgba(16,24,40,.04);transition:border-color .2s,box-shadow .2s,transform .2s}
.spx-header-basket:hover,.spx-header-basket[aria-expanded=true]{border-color:var(--spx-primary,#2B5CE6);box-shadow:0 8px 20px rgba(43,92,230,.12);transform:translateY(-1px)}
.spx-header-basket__icon{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:8px;background:#f3edff;color:var(--spx-primary,#2B5CE6)}
.spx-header-basket__icon svg{width:17px;height:17px}
.spx-header-basket__body{display:grid;gap:2px;min-width:0;line-height:1.2}
.spx-header-basket__body small{color:var(--spx-muted,#5B6B84);font-size:9px}
.spx-header-basket__body strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.spx-header-basket-count{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border:2px solid #fff;border-radius:999px;background:#ef6c4d;color:#fff;font-size:9px;font-weight:800;line-height:1}
.spx-cart-drawer{position:fixed!important;top:var(--spx-admin-bar-height,0px);right:0;bottom:0;left:0;z-index:2147483000!important;direction:rtl}
.spx-cart-drawer[hidden]{display:none}
.spx-cart-drawer__overlay{position:absolute;inset:0;z-index:0;width:100%;height:100%;padding:0;border:0;background:rgba(15,23,42,.48)!important;cursor:pointer}
.spx-cart-drawer__panel{position:absolute;top:0;right:auto;bottom:0;left:0;z-index:1;display:flex;flex-direction:column;width:min(410px,calc(100% - 28px));height:100%;min-height:0;background:#fff;border-radius:26px 0 0 26px;box-shadow:18px 0 45px rgba(15,23,42,.28);animation:spx-cart-drawer-in .3s cubic-bezier(.22,1,.36,1) both}
@keyframes spx-cart-drawer-in{from{transform:translateX(-60px);opacity:0}to{transform:translateX(0);opacity:1}}
.spx-cart-drawer__header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 22px 20px;border-bottom:0;background:linear-gradient(135deg,#2B5CE6 0%,#8b5cf6 55%,#7fb5ff 100%);color:#fff;overflow:hidden}
.spx-cart-drawer__header::after{content:'';position:absolute;top:-40px;left:-30px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.12);pointer-events:none}
.spx-cart-drawer__header::before{content:'';position:absolute;bottom:-55px;right:-20px;width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.08);pointer-events:none}
.spx-cart-drawer__header .spx-eyebrow{color:rgba(255,255,255,.85);font-size:10px;font-weight:700;letter-spacing:.02em}
.spx-cart-drawer__header h2{margin:4px 0 0;color:#fff;font-size:20px;text-shadow:0 1px 8px rgba(11,18,32,.18)}
.spx-cart-drawer__close{display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.16);color:#fff;cursor:pointer;transition:background .2s}
.spx-cart-drawer__close:hover{background:rgba(255,255,255,.3)}
.spx-cart-drawer__close-icon{display:grid;place-items:center;width:100%;height:100%;line-height:1;transition:transform .3s ease;transform-origin:center center}
.spx-cart-drawer__close-icon svg{display:block}
.spx-cart-drawer__close:hover .spx-cart-drawer__close-icon{transform:rotate(90deg)}
/* Full-drawer loading state while an item is being removed */
.spx-cart-drawer__panel.is-busy{pointer-events:none}
.spx-cart-drawer__panel.is-busy::after{content:'';position:absolute;inset:0;z-index:5;background:rgba(255,255,255,.55);backdrop-filter:blur(2px);border-radius:inherit}
.spx-cart-drawer__panel.is-busy::before{content:'';position:absolute;top:50%;left:50%;z-index:6;width:34px;height:34px;margin:-17px 0 0 -17px;border:3px solid rgba(43,92,230,.18);border-top-color:#2B5CE6;border-radius:50%;animation:spx-remove-spin .7s linear infinite}
.spx-cart-drawer__panel{position:absolute}
.spx-cart-drawer__items{display:flex;flex:1 1 auto;flex-direction:column;align-items:stretch;align-content:flex-start;gap:10px;min-height:0;overflow-y:auto;padding:18px 18px 24px;box-sizing:border-box;background:linear-gradient(180deg,#F7F9FC 0%,#fff 120px)}
.spx-cart-drawer__empty{display:grid;place-items:center;flex:0 0 auto;gap:10px;min-height:260px;padding:32px 22px;margin-top:8px;border:0;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(43,92,230,.10);color:var(--spx-muted,#5B6B84);text-align:center}
.spx-cart-drawer__empty strong{color:var(--spx-text,#0B1220);font-size:16px}
.spx-cart-drawer__empty-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#2B5CE6 0%,#7fb5ff 100%);box-shadow:0 10px 24px rgba(43,92,230,.3);font-size:30px;animation:spx-empty-float 3s ease-in-out infinite}
@keyframes spx-empty-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.spx-cart-drawer__empty-cta{display:inline-block;margin-top:6px;padding:11px 26px;border-radius:999px;background:linear-gradient(135deg,#2B5CE6 0%,#7fb5ff 100%);color:#fff;font-size:12px;font-weight:800;text-decoration:none;box-shadow:0 8px 18px rgba(43,92,230,.3);transition:transform .2s,box-shadow .2s}
.spx-cart-drawer__empty-cta:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(43,92,230,.38);color:#fff}
.spx-cart-drawer__item{display:grid;grid-template-columns:56px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--spx-border,#E4EAF3);border-radius:16px;background:#fff;box-shadow:0 3px 12px rgba(43,92,230,.06);transition:transform .2s,box-shadow .2s}
.spx-cart-drawer__item:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(43,92,230,.12)}
.spx-cart-drawer__item-image--fallback{display:grid;place-items:center;font-size:22px;background:linear-gradient(135deg,#f3ecff,#eef4ff)}
.spx-cart-drawer__item{display:grid;grid-template-columns:56px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--spx-border,#E4EAF3);border-radius:14px;background:#fff}
.spx-cart-drawer__item-image{width:56px;height:56px;border-radius:12px;background:linear-gradient(135deg,#f3ecff,#eef4ff);object-fit:cover}
.spx-cart-drawer__item-title{display:block;overflow:hidden;color:var(--spx-text,#0B1220);font-size:12px;font-weight:800;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}
.spx-cart-drawer__item-meta{margin-top:5px;color:var(--spx-muted,#5B6B84);font-size:10px}
.spx-cart-drawer__item-total{color:var(--spx-text,#0B1220);font-size:11px;white-space:nowrap}
.spx-cart-drawer__item-remove{display:grid;place-items:center;width:26px;height:26px;padding:0;border:1px solid #f1d6d6;border-radius:50%;background:#fff7f7;color:#c2410c;font-size:18px;line-height:1;cursor:pointer;transition:background .2s,color .2s,transform .2s}
.spx-cart-drawer__item-remove:hover{background:#c2410c;color:#fff;transform:scale(1.06)}
.spx-cart-drawer__item-remove.is-loading{pointer-events:none;font-size:0}
.spx-cart-drawer__item-remove-spinner{display:block;width:14px;height:14px;border:2px solid rgba(194,65,12,.25);border-top-color:#c2410c;border-radius:50%;animation:spx-remove-spin .7s linear infinite}
@keyframes spx-remove-spin{to{transform:rotate(360deg)}}
.spx-cart-drawer__item.is-removing{opacity:0;transform:translateX(24px) scale(.94);transition:opacity .35s ease,transform .35s ease;pointer-events:none}
.spx-cart-drawer__footer{padding:18px 20px 20px;border-top:0;background:linear-gradient(180deg,#fff,#F7F9FC);border-radius:0;box-shadow:0 -6px 20px rgba(43,92,230,.07)}
.spx-cart-drawer__footer>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;color:var(--spx-muted,#5B6B84);font-size:12px}
.spx-cart-drawer__footer>div:first-child strong{color:var(--spx-text,#0B1220);font-size:15px}
.spx-cart-drawer__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.spx-cart-drawer__actions .spx-button,.spx-cart-drawer__checkout{min-height:42px;box-sizing:border-box;text-align:center}
.spx-cart-drawer__checkout{display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border-radius:12px;background:linear-gradient(135deg,#2B5CE6 0%,#7fb5ff 100%);color:#fff!important;font-size:12px;font-weight:800;text-decoration:none;box-shadow:0 6px 16px rgba(43,92,230,.25);transition:transform .2s,box-shadow .2s}
.spx-cart-drawer__checkout:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(43,92,230,.35)}
.spx-cart-drawer__continue{display:block;margin-top:13px;color:var(--spx-muted,#5B6B84);font-size:11px;text-align:center;text-decoration:none}
.spx-cart-drawer__continue:hover{text-decoration:underline}
.spx-header-basket-wrap--mobile .spx-header-basket{min-width:46px;width:46px;padding:0;justify-content:center}
.spx-header-basket-wrap--mobile .spx-header-basket__body{display:none}
/*
 * Lock the document root instead of turning body into a new scroll
 * container. The home template contains a sticky storefront header and
 * body overflow locking makes that header recalculate its height/offset.
 */
/* قفل اسکرول؛ جبران عرض اسکرول‌بار با padding روی <html> توسط JS انجام می‌شود */
html.spx-cart-drawer-open{overflow:hidden!important}
body.spx-cart-drawer-open{overflow:visible!important}
body.admin-bar{--spx-admin-bar-height:32px}
@media(max-width:782px){body.admin-bar{--spx-admin-bar-height:46px}}
@media(max-width:520px){.spx-header-basket-wrap--desktop .spx-header-basket{min-width:46px;width:46px;padding:0;justify-content:center}.spx-header-basket-wrap--desktop .spx-header-basket__body{display:none}}
