.hx-elementx-product-image-wrap {
	position: relative;
	display: block;
}

.hx-elementx-product-image-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	background-color: #e02020;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 3px;
	pointer-events: none;
	line-height: 1.4;
}

.hx-elementx-product-image-zoom {
	position: relative;
	overflow: hidden;
	cursor: zoom-in;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: 200%;
	aspect-ratio: 1 / 1;
}

.hx-elementx-product-image-zoom img.hx-elementx-product-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: opacity 0.15s ease;
}

.hx-elementx-product-image-zoom.is-zoomed img.hx-elementx-product-image {
	opacity: 0;
}

@media (hover: none) {
	.hx-elementx-product-image-zoom {
		cursor: default;
	}
}

/* ── Mobile swipe dots ── */
.hx-pimg-dots {
	display: none;
}

@media (hover: none) {
	.hx-pimg-dots {
		display: flex;
		justify-content: center;
		gap: 6px;
		margin-top: 10px;
	}

	.hx-pimg-dot {
		width: 7px;
		height: 7px;
		border-radius: 50%;
		background: #ccc;
		cursor: pointer;
		transition: background 0.2s;
	}

	.hx-pimg-dot.is-active {
		background: #333;
	}
}

/* ── Mobile: pull image column to the top ── */
@media (max-width: 1024px) {
	/* Works for both Elementor classic columns and Flexbox containers */
	.elementor-column:has(.elementor-widget-hx-elementx-product-image),
	.e-con:has(.elementor-widget-hx-elementx-product-image),
	.e-con-inner:has(.elementor-widget-hx-elementx-product-image) {
		order: -1 !important;
	}
}
