/*
 * Alsaad watermark overlay — display only.
 * The logo is drawn by the browser on top of product images. The underlying
 * image files (and their thumbnails) are never touched.
 */

/* The image link / gallery figure is the image box; make it the anchor. */
a.product-image-link,
a.wd-product-img-link,
.woocommerce-product-gallery__image {
    position: relative;
}

.alsaad-wm {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    aspect-ratio: 569 / 356;
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    /* PNG fallback first, then WebP (smaller) where supported. */
    background-image: url("watermark.png");
    background-image: image-set(
        url("watermark.webp") type("image/webp"),
        url("watermark.png") type("image/png")
    );
    opacity: 0.22;
    pointer-events: none;
    user-select: none;
    z-index: 5;
}

/* No drag-to-save from the browser. */
a.product-image-link img,
a.wd-product-img-link img,
.woocommerce-product-gallery__image img {
    -webkit-user-drag: none;
    user-select: none;
}