/* yl-theme sold-out state: .outofstock cards get a desaturated image under a dark scrim with a centered "ناموجود" badge, muted text and a grey button (still links to the product). */
html body .wd-product.outofstock .product-wrapper{background:color-mix(in srgb,var(--yl-card) 70%,var(--yl-bg));border-style:dashed}
html body .wd-product.outofstock .product-element-top img{filter:grayscale(1) brightness(.55);transition:filter .2s}
html body .wd-product.outofstock:hover .product-element-top img{filter:grayscale(.6) brightness(.7)}
html body .wd-product.outofstock .product-element-top{position:relative!important}
html body .wd-product.outofstock .product-element-top::after{content:"ناموجود"!important;position:absolute!important;inset:auto 0!important;top:50%!important;width:auto!important;height:auto!important;opacity:1!important;visibility:visible!important;transform:translateY(-50%)!important;z-index:4;display:block!important;padding:6px 0;text-align:center;font:800 15px/1.4 var(--yl-font);color:#fff;background:rgb(5 11 24/.82);border-block:1px solid rgb(255 255 255/.18);pointer-events:none}
html body .wd-product.outofstock .product-labels .out-of-stock{display:none}
html body .wd-product.outofstock .wd-entities-title a,html body .wd-product.outofstock .price,html body .wd-product.outofstock .wrapp-product-price .yl-rate{color:var(--yl-fg-2)!important;opacity:.7}
html body .wd-product.outofstock .wd-add-btn>a{background:transparent!important;background-image:none!important;border:1px solid var(--yl-border);box-shadow:none!important}
html body .wd-product.outofstock .wd-add-btn>a:hover{border-color:var(--yl-fg-2)}
html body .wd-product.outofstock .wd-add-btn .wd-action-text{font-size:0!important}
html body .wd-product.outofstock .wd-add-btn .wd-action-text::after{content:"ناموجود";font-size:13px;font-weight:600;color:var(--yl-fg-2)}
html body .wd-product.outofstock .wd-add-btn .wd-action-icon{display:none!important}
/* single product: make the label an obvious pill and mute the price */
html body.single-product .product-labels .out-of-stock{padding:6px 14px;border-radius:999px;background:#2a3550!important;color:#fff!important;font-weight:800;border:1px solid var(--yl-fg-2)}
html body.single-product .product.outofstock .summary .price{opacity:.6}
