/**
 * ویجت تصویر محصول برای Loop المنتور.
 * تمام selectorها زیر Block اختصاصی BEM محدود شده‌اند.
 */
.ba-product-gallery {
	--ba-product-gallery-radius: 14px;
	--ba-product-gallery-nav-size: 34px;
	--ba-product-gallery-aspect-ratio: 4 / 3;
	position: relative;
	width: 100%;
	min-width: 0;
}

.ba-product-gallery__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: var(--ba-product-gallery-radius);
	background: #f2f5f3;
	touch-action: pan-y;
}

.ba-product-gallery__slides {
	position: relative;
	width: 100%;
	aspect-ratio: var(--ba-product-gallery-aspect-ratio);
}

.ba-product-gallery__slide {
	position: absolute;
	inset: 0;
	display: none;
	width: 100%;
	height: 100%;
	margin: 0;
}

.ba-product-gallery__slide--active {
	display: block;
}

.ba-product-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: inherit;
}

.ba-product-gallery__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: var(--ba-product-gallery-nav-size);
	height: var(--ba-product-gallery-nav-size);
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.94);
	color: #07562f;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
	cursor: pointer;
	transform: translateY(-50%);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.ba-product-gallery__nav--prev {
	right: 8px;
}

.ba-product-gallery__nav--next {
	left: 8px;
}

.ba-product-gallery__nav:hover,
.ba-product-gallery__nav:focus-visible {
	background: #fff;
	transform: translateY(-50%) scale(1.04);
}

.ba-product-gallery__nav svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.ba-product-gallery--static .ba-product-gallery__viewport {
	cursor: default;
}

@media (prefers-reduced-motion: reduce) {
	.ba-product-gallery__nav {
		transition: none;
	}
}


.ba-product-gallery__notice {
	margin: 0;
	padding: 12px;
	border: 1px dashed #cfd8d3;
	border-radius: 10px;
	background: #f8faf9;
	color: #53635a;
	font-size: 12px;
	line-height: 1.9;
	text-align: center;
}
