.product-gallery {
	--swiper-theme-color: #427ab1;
	--gallery-thumb-size: 84px;
	--gallery-thumb-height: 63px;
	min-width: 0;
}
.product-gallery__main {
	width: 100%;
	height: auto;
	margin: 0 !important;
	padding: 0 !important;
	aspect-ratio: 1;
	max-height: 520px;
	border-radius: 12px;
	background: #fff;
}
.product-gallery__main .swiper-wrapper {
	position: absolute;
	inset: 0;
	height: auto;
}
.product-gallery__main .swiper-slide,
.product-gallery__image-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.product-gallery__main img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	cursor: zoom-in;
}
.product-gallery__main:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none; }
.product-gallery__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #dbe3ec;
	border-radius: 50%;
	background: #fff;
	color: #345b80;
	box-shadow: 0 2px 8px #20364b12;
	cursor: pointer;
	transition: background .15s, border-color .15s, opacity .15s;
}
.product-gallery__arrow svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.product-gallery__arrow--prev svg { transform: rotate(180deg); }
.product-gallery__arrow:hover:not(:disabled) { background: #eff5fb; border-color: #427ab1; }
.product-gallery__arrow:disabled { opacity: .3; cursor: default; box-shadow: none; }
.product-gallery__arrow:focus-visible,
.product-gallery__thumb:focus-visible { outline: 3px solid #427ab1; outline-offset: 2px; }
.product-gallery__main-prev,
.product-gallery__main-next {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
}
.product-gallery__main-prev { left: 8px; }
.product-gallery__main-next { right: 8px; }
.product-gallery__counter {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 20px;
	background: #f0f4f8eb;
	color: #475569;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}
.product-gallery__thumb-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}
.product-gallery__thumbs {
	flex: 1;
	min-width: 0;
	margin: 0 !important;
	padding: 4px 0 18px !important;
	box-sizing: border-box;
}
.product-gallery__thumbs .swiper-wrapper { align-items: flex-start; }
.product-gallery__thumbs .product-gallery__thumb {
	flex-shrink: 0;
	width: var(--gallery-thumb-size);
	height: var(--gallery-thumb-height);
	box-sizing: border-box;
	padding: 0;
	overflow: hidden;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.product-gallery__thumbs .product-gallery__thumb:hover { border-color: #9bb8d4; }
.product-gallery__thumbs .swiper-slide-thumb-active,
.product-gallery__thumbs [aria-current="true"] {
	border-color: #427ab1;
	box-shadow: 0 0 0 2px #427ab11f;
}
.product-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.product-gallery__thumbs .product-gallery__scrollbar {
	bottom: 2px;
	height: 5px;
	background: #e8eef4;
	cursor: pointer;
}
.product-gallery__scrollbar .swiper-scrollbar-drag { background: #92aec9; }
.product-gallery__thumb-row .swiper-button-lock { visibility: hidden; display: flex; }
@media (max-width: 767.98px) {
	.product-gallery { --gallery-thumb-size: 72px; --gallery-thumb-height: 54px; }
	.product-gallery__thumb-row { margin-top: 8px; }
	.product-gallery__thumb-prev,
	.product-gallery__thumb-next { display: none !important; }
	.product-gallery__main-prev { left: 4px; }
	.product-gallery__main-next { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.product-gallery *, .product-gallery .swiper-wrapper { transition-duration: 0ms !important; }
}
