/* /shop only: two presentation modes share the existing cart and filters. */
.shop-shell{width:100%;max-width:none;margin:0;padding:0 28px 32px}
.shop-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 0 18px}
.shop-eyebrow{display:block;color:#1d4ed8;font-size:14px;font-weight:700;margin-bottom:7px}
.shop-intro h1{font-size:clamp(24px,3vw,34px);line-height:1.5;color:#111827;margin:0;font-weight:800}
.shop-intro p{margin:7px 0 0;color:#52647e;font-size:14px;line-height:1.9}
.shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 14px;padding:8px 12px;background:#fff;border:1px solid #e1e8f2;border-radius:14px}
.shop-results{font-size:14px;color:#52647e}
.shop-view-switch{display:flex;gap:6px;padding:4px;background:#f2f5fa;border-radius:10px}
.shop-view-switch button{min-height:44px;padding:8px 14px;display:flex;gap:7px;align-items:center;border:0;border-radius:8px;background:transparent;color:#52647e;font:600 14px Vazirmatn,sans-serif;cursor:pointer}
.shop-view-switch button[aria-pressed="true"]{color:#fff;background:#1d4ed8;box-shadow:0 3px 9px #1d4ed82b}
.shop-view-switch button:focus-visible,.shop-card button:focus-visible,.shop-more:focus-visible{outline:3px solid #93b4ff;outline-offset:3px}
.shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
.shop-card{min-width:0;background:#fff;border:1px solid #e0e7f0;border-radius:17px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 3px 14px #14274206;transition:border-color .18s,box-shadow .18s;content-visibility:auto;contain-intrinsic-size:auto 460px}
.shop-card:hover,.shop-card:focus-within{border-color:#adc5f5;box-shadow:0 8px 24px #1a397612}
.shop-card-media{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 150px;height:150px;width:100%;padding:12px;border:0;border-bottom:1px solid #edf1f7;background:#fff;color:#8a9ab1;cursor:zoom-in}
.shop-card-media:disabled{cursor:default;opacity:1}
.shop-card-media img{width:100%;height:100%;max-height:100%;object-fit:contain;background:#fff}
.shop-image-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:11px;color:#8a9ab1;font:400 14px Vazirmatn,sans-serif}
.shop-image-placeholder i{font-size:46px;color:#bdc9db}
.shop-zoom-label{position:absolute;bottom:10px;left:10px;display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border-radius:7px;background:#f1f5fb;color:#52647e;font:400 12px Vazirmatn,sans-serif}
.shop-card-content{display:flex;flex-direction:column;gap:8px;padding:12px;flex:1}
.shop-card-meta{display:flex;align-items:center;justify-content:space-between;gap:7px}
.shop-brand{color:#234686;background:#edf3ff;border-radius:6px;padding:4px 8px;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.shop-stock{font-size:14px;font-weight:600;white-space:nowrap}
.shop-stock.is-available{color:#17714b}
.shop-stock.is-unavailable{color:#ad304b}
.shop-card-name{font-size:16px;line-height:1.65;font-weight:700;color:#142742;margin:0;overflow-wrap:anywhere}
.shop-card-spec{display:grid;gap:4px;margin:0;font-size:14px;color:#52647e}
.shop-card-spec div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.shop-card-spec dt{color:#7c8ba1;white-space:nowrap}
.shop-card-spec dd{margin:0;color:#334766;text-align:end;overflow-wrap:anywhere}
.shop-card-spec bdi{font-family:ui-monospace,monospace}
.shop-card-price{margin-top:auto;display:flex;flex-direction:column;gap:2px;border-top:1px solid #edf1f7;padding-top:9px}
.shop-card-price>span{font-size:14px;color:#697c96}
.shop-card-price strong{font-size:19px;font-weight:800;color:#142742}
.shop-card-price a{color:#1d4ed8;font-size:14px}
.shop-card-quantity{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;color:#52647e}
.shop-card .qty-wrap{padding:0;border:0;width:auto;margin:0;gap:5px;direction:ltr}
.shop-card .qty-wrap::before{content:none}
.shop-card .qbtn{width:38px;min-width:38px;height:40px;border-radius:8px;background:#f5f8ff;border-color:#d8e4fa;color:#1d4ed8}
.shop-card .qinp{width:44px;height:40px;border-radius:8px;font-size:16px}
.shop-card .qbtn:disabled,.shop-card .qinp:disabled{opacity:.45;cursor:default}
.shop-card-total{display:none}
.shop-add{width:100%;min-height:44px;border:0;border-radius:9px;background:#1d4ed8;color:white;font:600 14px Vazirmatn,sans-serif;cursor:pointer}
.shop-add:hover{background:#163fae}
.shop-add:disabled{background:#edf1f7;color:#8a98ac;cursor:default}
.shop-more{display:block;margin:22px auto 0;min-height:44px;padding:10px 30px;background:white;border:1px solid #c8d8f1;border-radius:10px;color:#1d4ed8;font:600 14px Vazirmatn,sans-serif;cursor:pointer}
.shop-empty{grid-column:1/-1;padding:55px 20px;text-align:center;background:white;border:1px solid #dce5f2;border-radius:16px;color:#52647e;font-size:16px;line-height:2}
.shop-empty a,.shop-empty button{display:inline-block;margin-top:14px;min-height:44px;padding:7px 18px;border:0;border-radius:8px;background:#1d4ed8;color:white;font:600 14px Vazirmatn,sans-serif;cursor:pointer}
.shop-skeleton{height:440px;border-radius:16px;background:linear-gradient(100deg,#eaf0f8,#f7faff,#eaf0f8);background-size:200%;animation:skeleton 1.5s infinite}
.shop-shell .table-wrap{padding:0;overflow-x:auto}
.shop-shell .tbl td,.shop-shell .tbl th{font-size:14px}
.shop-image-dialog{width:min(850px,calc(100% - 30px));max-height:90dvh;padding:18px;border:1px solid #dce6f3;border-radius:16px;background:white;color:#142742}
.shop-image-dialog::backdrop{background:#0c193acc}
.shop-image-dialog header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.shop-image-dialog h2{font-size:16px;line-height:1.8;margin:0}
.shop-image-dialog button{min-width:44px;min-height:44px;border:1px solid #dce6f3;border-radius:9px;background:#f4f7fc;color:#142742;font:inherit;cursor:pointer}
.shop-image-dialog img{display:block;width:100%;height:min(65dvh,620px);object-fit:contain;background:white}
.shop-image-error{color:#536a83;text-align:center;padding:30px}
#shopCards[hidden],.shop-zoom-label[hidden],.shop-card-media img[hidden],#shopImageError[hidden],#shopList[hidden],#shopMore[hidden],.shop-image-placeholder[hidden],#shopImageZoom[hidden]{display:none!important}
@media(min-width:1300px){.shop-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1650px){.shop-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1100px){.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-shell{padding-inline:16px}}
@media(max-width:520px){.shop-grid{grid-template-columns:1fr}.shop-shell{padding-inline:12px;padding-bottom:100px}.shop-card{content-visibility:visible}.shop-intro{padding-top:18px}.shop-intro h1{font-size:25px}.shop-toolbar{align-items:stretch}.shop-view-switch{width:100%}.shop-view-switch button{flex:1;justify-content:center}.shop-card .qbtn,.shop-card .qinp{min-width:44px;height:44px}.action-bar{position:sticky;top:56px;z-index:25;background:#f5f8fe;padding:10px 12px}.action-bar .ab-cart{max-width:none;min-height:44px}.action-bar .cart-btn-text{display:inline}.shop-shell .table-wrap{padding:0}}
@media(prefers-reduced-motion:reduce){.shop-card,.shop-skeleton{transition:none;animation:none}}

header.shop-shell{padding-bottom:0}.shop-card-media img{max-width:100%}.shop-card .qty-status{width:14px}

