/**
 * Shared product-image finishing.
 *
 * This file changes only the image element, not the configured card, gallery,
 * cart, or search-result shell. It provides one consistent corner treatment
 * across product surfaces without flattening their parent shapes.
 *
 * @package Radkar
 * @since 2.25.31
 */

:is(
	.radkar-product-card__media,
	.radkar-hero-stage-main__image,
	.radkar-hero-stage-minis span,
	.radkar-hero-product__image,
	.radkar-mini-product__image,
	.radkar-header-cart-panel__image,
	.radkar-side-cart__image,
	.radkar-search-results,
	.radkar-product-gallery .woocommerce-product-gallery__image,
	.radkar-product-gallery .flex-control-thumbs li,
	.woocommerce-cart-form__cart-item .product-thumbnail,
	.zarintar-wholesale-product-card__image
) > img,
.radkar-search-results img,
.radkar-product-gallery .woocommerce-product-gallery__image > a > img,
.radkar-product-gallery .flex-control-thumbs li > img,
.woocommerce-cart-form__cart-item .product-thumbnail img,
.woocommerce-cart table.shop_table.cart .product-thumbnail img,
.zarintar-wholesale-product-card__image img {
	border-radius: var(--radkar-product-image-radius, 8px) !important;
}

/* WooCommerce fallbacks when a product loop is not rendered by Radkar markup. */
.woocommerce ul.products li.product > a > img,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img {
	border-radius: 8px;
}
