/* Suntk Plus 5.1 compact product cards */
.woocommerce ul.products,.suntk-home-products{align-items:stretch}
.woocommerce ul.products li.product.suntk-product-card,.suntk-product-card{display:flex!important;flex-direction:column!important;min-height:0!important;height:100%;background:#fff;border:1px solid var(--suntk-border);border-radius:14px;overflow:hidden;box-shadow:none}
.suntk-product-card__media{display:block!important;position:relative;padding:12px;background:#fff;border:0!important}
.suntk-product-card__media img{display:block;width:100%;height:210px!important;aspect-ratio:auto!important;object-fit:contain;transition:transform .22s ease}
.suntk-product-card__body{display:block!important;flex:0 0 auto!important;padding:0 13px 10px!important}
.suntk-product-card h2.woocommerce-loop-product__title{font-size:13px!important;line-height:1.75!important;font-weight:800!important;margin:0!important;padding:0!important;min-height:46px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.suntk-product-card h2 a{color:var(--suntk-text)}
.suntk-product-card__footer{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:10px!important;margin-top:auto!important;padding:11px 13px 13px!important;border-top:1px solid #edf1f2!important;background:#fff}
.suntk-product-card__pricing{display:grid;gap:5px;min-width:0}
.suntk-product-card__price-line{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;min-width:0;font-size:10.5px;line-height:1.45}
.suntk-product-card__price-line>span{color:var(--suntk-muted);white-space:nowrap}
.suntk-product-card__price-line del{position:relative;color:#8a969c;text-decoration:none;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suntk-product-card__price-line del:after{content:"";position:absolute;left:0;right:0;top:50%;height:2px;background:#e11d48;transform:rotate(-4deg);border-radius:5px}
.suntk-product-card__price-line.is-current strong{color:var(--suntk-product-price);font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suntk-product-card__actions{display:flex;align-items:flex-end}
.suntk-product-card__actions .button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:94px!important;height:38px!important;padding:0 11px!important;border-radius:9px!important;font-size:10.5px!important;line-height:1.3!important;white-space:nowrap!important}
.suntk-product-card__actions .button:before{display:none!important;content:none!important}
.suntk-product-card .added_to_cart{display:none!important}
.suntk-product-card .suntk-badge,.suntk-product-card .suntk-stock-badge{font-size:9px;padding:3px 7px}
.suntk-card-hover-lift .suntk-product-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(18,59,69,.09)}
.suntk-card-hover-border .suntk-product-card:hover{border-color:var(--suntk-primary)}
.suntk-card-hover-zoom .suntk-product-card:hover .suntk-product-card__media img{transform:scale(1.035)}
/* Three intentionally different, compact card choices. */
.suntk-card-compact .suntk-product-card{border-radius:14px}
.suntk-card-bordered .suntk-product-card{border:2px solid var(--suntk-border);border-radius:9px}
.suntk-card-bordered .suntk-product-card__footer{background:#f8fafb}
.suntk-card-horizontal .suntk-product-card{display:grid!important;grid-template-columns:43% 57%!important;grid-template-rows:auto 1fr auto!important}
.suntk-card-horizontal .suntk-product-card__media{grid-row:1/4;padding:10px;border-left:1px solid var(--suntk-border)!important}
.suntk-card-horizontal .suntk-product-card__media img{height:100%!important;min-height:190px;max-height:240px}
.suntk-card-horizontal .suntk-product-card__body{padding:14px 12px 8px!important}
.suntk-card-horizontal .suntk-product-card__footer{grid-column:2;padding:9px 12px 12px!important;grid-template-columns:1fr!important}
.suntk-card-horizontal .suntk-product-card__actions .button{width:100%!important}
@media(max-width:1100px){.suntk-product-card__media img{height:185px!important}.suntk-product-card__footer{grid-template-columns:1fr!important}.suntk-product-card__actions .button{width:100%!important}.suntk-card-horizontal .suntk-product-card{display:flex!important}.suntk-card-horizontal .suntk-product-card__media img{min-height:0;height:185px!important}}
@media(max-width:680px){.woocommerce ul.products,.suntk-home-products{gap:9px!important}.suntk-product-card__media{padding:8px}.suntk-product-card__media img{height:145px!important}.suntk-product-card__body{padding:0 9px 7px!important}.suntk-product-card h2.woocommerce-loop-product__title{font-size:11.5px!important;min-height:41px!important}.suntk-product-card__footer{padding:8px 9px 10px!important;gap:7px!important}.suntk-product-card__price-line{grid-template-columns:1fr;gap:1px;font-size:9px}.suntk-product-card__price-line.is-current strong{font-size:11px}.suntk-product-card__actions .button{min-width:0!important;height:35px!important;padding:0 6px!important;font-size:9px!important}}


/* Products that are out of stock remain readable but their media is visually muted. */
body.suntk-dim-outofstock .suntk-product-card.outofstock .suntk-product-card__media img,
body.suntk-dim-outofstock .suntk-product-card.product-type-variable.outofstock .suntk-product-card__media img{
    opacity:var(--suntk-outofstock-opacity,.48)!important;
    filter:grayscale(.28) saturate(.68) contrast(.94)!important;
    transition:opacity .22s ease,filter .22s ease,transform .22s ease!important;
}
body.suntk-dim-outofstock .suntk-product-card.outofstock:hover .suntk-product-card__media img{
    opacity:calc(var(--suntk-outofstock-opacity,.48) + .08)!important;
    filter:grayscale(.18) saturate(.78) contrast(.97)!important;
}
body.suntk-dim-outofstock .suntk-product-card.outofstock .suntk-product-card__media:after{
    content:"ناموجود";
    position:absolute;
    inset:50% auto auto 50%;
    transform:translate(-50%,-50%);
    z-index:4;
    padding:6px 11px;
    color:#fff;
    background:rgba(30,41,59,.76);
    border-radius:999px;
    font-size:10px;
    font-weight:900;
    pointer-events:none;
    backdrop-filter:blur(4px);
}
