/* ویدیوی گالری محصول — اسلاید + بندانگشتی */

.wbkb-pv-slide {
	position: relative;
}

.wbkb-pv-stage {
	position: relative;
	width: 100%;
	aspect-ratio: var(--wbkb-pv-ratio, 1 / 1);
	overflow: hidden;
	border-radius: inherit;
	background-color: #0f172a;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

/* لایه‌ی تیره‌ی ملایم روی کاور تا دکمه پخش همیشه خوانا باشد */
.wbkb-pv-stage:not(.is-playing)::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(15, 23, 42, .05) 0%, rgba(15, 23, 42, .35) 100%);
	transition: background .3s ease;
	pointer-events: none;
}

.wbkb-pv-stage--no-poster {
	background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.wbkb-pv-stage:not(.is-playing):hover::before {
	background: radial-gradient(circle at center, rgba(15, 23, 42, .15) 0%, rgba(15, 23, 42, .5) 100%);
}

.wbkb-pv-play {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	z-index: 2;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 76px !important;
	height: 76px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, .45) !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .18) !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25) !important;
	color: #fff !important;
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: transform .25s ease, background .25s ease;
}

.wbkb-pv-play::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .6);
	animation: wbkb-pv-pulse 2.2s ease-out infinite;
	pointer-events: none;
}

.wbkb-pv-play svg {
	width: 30px;
	height: 30px;
	margin-left: 4px; /* مرکز بصری مثلث */
	fill: currentColor;
}

.wbkb-pv-play:hover,
.wbkb-pv-play:focus-visible {
	background: var(--wbkb-color-primary, #093c75) !important;
	transform: translate(-50%, -50%) scale(1.06);
	outline: none;
}

@keyframes wbkb-pv-pulse {
	0%   { transform: scale(1); opacity: .9; }
	100% { transform: scale(1.45); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.wbkb-pv-play::after {
		animation: none;
	}
}

.wbkb-pv-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(15, 23, 42, .65);
	color: #fff;
	font-size: 11px;
	line-height: 1.8;
	pointer-events: none;
}

.wbkb-pv-caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	padding: 28px 16px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent);
	color: #fff;
	font-size: 13px;
	line-height: 1.8;
	text-align: right;
	pointer-events: none;
}

.wbkb-pv-player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
	object-fit: contain;
}

/* تصویر مخفی فقط برای هم‌ترازی لایت‌باکس ووکامرس */
.wbkb-pv-slide .wbkb-pv-lightbox-poster {
	display: none !important;
}

/* بندانگشتی اسلاید ویدیو در نوار تصاویر کوچک */
.flex-control-thumbs li.wbkb-pv-thumb {
	position: relative;
}

.flex-control-thumbs li.wbkb-pv-thumb::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(15, 23, 42, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l8.5-5.5z'/%3E%3C/svg%3E") center / 16px no-repeat;
	transform: translate(-50%, -50%);
	pointer-events: none;
}
