/* 产品详情页主图放大镜（外置，filemtime 版本控制） */
.product-media-layout:has(.product-gallery.is-zooming),
.product-gallery-wrap:has(.product-gallery.is-zooming),
.product-media-card:has(.product-gallery.is-zooming) {
	overflow: visible;
	z-index: 15;
}

.product-gallery-zoom-hint {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(26, 29, 33, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center/18px no-repeat;
	pointer-events: none;
	z-index: 6;
	opacity: 0.85;
}

.product-gallery-zoom-lens {
	position: absolute;
	width: 140px;
	height: 140px;
	border: 2px solid #f47629;
	border-radius: 50%;
	background-repeat: no-repeat;
	background-color: rgba(255, 255, 255, 0.15);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
	pointer-events: none;
	z-index: 8;
	display: none;
}

.product-gallery.is-zooming .product-gallery-zoom-lens {
	display: block;
}

.product-gallery-zoom-result {
	position: absolute;
	left: calc(100% + 16px);
	top: 0;
	width: min(420px, 36vw);
	height: 100%;
	min-height: 260px;
	border: 1px solid #d4d4d0;
	border-radius: 4px;
	background: #fff center/cover no-repeat;
	box-shadow: 0 10px 28px rgba(14, 52, 91, 0.14);
	pointer-events: none;
	z-index: 30;
	display: none;
}

.product-gallery.is-zooming .product-gallery-zoom-result {
	display: block;
}

.product-gallery.is-zooming .product-gallery-img {
	cursor: crosshair;
}

@media (max-width: 1100px) {
	.product-gallery-zoom-result {
		display: none !important;
	}
	.product-gallery-zoom-lens {
		width: 110px;
		height: 110px;
	}
}

@media (max-width: 768px) {
	.product-gallery-zoom-lens,
	.product-gallery-zoom-result,
	.product-gallery-zoom-hint {
		display: none !important;
	}
	.product-gallery.is-zooming {
		overflow: hidden;
	}
}
