/* Add custom CSS styles below */
/* المنتجات المنتهية */
.s-product-card-out-of-stock {
    position: relative;
    filter: grayscale(50%) brightness(80%) !important;
    opacity: 0.9 !important;
    transition: .3s ease;
}

/* طبقة سوداء خفيفة */
.s-product-card-out-of-stock::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    border-radius: inherit;
    pointer-events: none;
}

/* المنتجات المنتهية */
.s-product-card-out-of-stock {
    position: relative;
    filter: grayscale(50%) brightness(80%) !important;
    opacity: .9 !important;
    transition: .3s ease;
    overflow: hidden;
}

/* المنتجات المنتهية */
.s-product-card-out-of-stock {
    position: relative;
    overflow: hidden;
    filter: grayscale(50%) brightness(80%) !important;
    opacity: 0.9 !important;
    transition: all .3s ease;
}

/* نفدت الكمية داخل صورة المنتج */
.s-product-card-out-of-stock .s-product-card-image {
    position: relative;
}

.s-product-card-out-of-stock .s-product-card-image::after {
    content: "نفدت الكمية";
    position: absolute;
    top: 78%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 16px;
    background: #b3262d;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    border-radius: 7px;
    white-space: nowrap;
    z-index: 999;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* فاصل بين أقسام المنتجات - صفحة جميع المنتجات فقط */
body.product-index section[data-testid="store-home-products-slider"],
section[data-testid="store-home-fixed-products"] {
    border-top: 1px solid #e5e5e5;
    padding-top: 18px;
    margin-top: 18px;
}