/* Модалка галереи товара (product-image-modal.js) */
.mfp-fade.mfp-bg {
	opacity: 0 !important;
	transition: opacity 0.35s ease-out;
}
.mfp-fade.mfp-bg.mfp-ready {
	opacity: 0.92 !important;
}
.mfp-fade.mfp-bg.mfp-removing {
	opacity: 0 !important;
}
.mfp-fade.mfp-wrap .mfp-figure {
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-figure {
	opacity: 1;
	transform: scale(1);
}
.mfp-product-gallery .mfp-container {
	padding-bottom: 88px;
}
.mfp-product-gallery .mfp-figure img.mfp-img {
	transition: opacity 0.2s ease-out;
}
.mfp-product-gallery .mfp-arrow {
	opacity: 0.85;
}
.mfp-product-gallery .mfp-arrow:hover {
	opacity: 1;
}
.mfp-product-thumbs {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1046;
	display: flex;
	gap: 8px;
	padding: 12px 16px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	background: rgba(0, 0, 0, 0.75);
	box-sizing: border-box;
}
.mfp-product-thumbs__btn {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	opacity: 0.65;
	transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.mfp-product-thumbs__btn:hover {
	opacity: 0.9;
}
.mfp-product-thumbs__btn.is-active {
	opacity: 1;
	border-color: #c9a227;
	transform: scale(1.05);
}
.mfp-product-thumbs__btn img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 2px;
}
@media (max-width: 767px) {
	.mfp-product-gallery .mfp-container {
		padding-bottom: 76px;
	}
	.mfp-product-thumbs {
		padding: 8px 12px;
		gap: 6px;
	}
	.mfp-product-thumbs__btn {
		width: 52px;
		height: 52px;
	}
}
