/* Wrapper & Title */
.wvc-product-carousel-wrapper {
	text-align: center;
	width: 100%;
	margin: 30px auto;
}

.wvc-product-carousel-wrapper h3 {
	text-transform: uppercase;
	font-weight: 800;
	letter-spacing: 1px;
	margin-bottom: 20px;
	font-size: 1.1rem;
	color: #000;
}

.wvc-swiper-container {
	width: 100%;
	padding-top: 10px;
	padding-bottom: 20px;
	overflow: hidden; 
}

.wvc-slide {
	background-position: center;
	background-size: cover;
	border-radius: 15px; /* Softer, story-like */
	overflow: hidden;
	position: relative;
	cursor: pointer;
	
	/* Aspect Ratio 9:16 */
	aspect-ratio: 9/16;
	width: auto; 
	height: auto;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Subtle shadow */
}

.wvc-video-poster {
	width: 100%;
	height: 100%;
	background-color: #000;
	background-size: cover;
	background-position: center;
	display: block; /* Changed from flex center to allow absolute positioning of icon */
	position: relative;
}

.wvc-video-preview {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
}

/* Style 1: Classic (Rounded, Gradient) */
.wvc-style-1 .wvc-slide {
	border-radius: 15px;
	box-shadow: none; /* Let main class handle or remove */
}
.wvc-style-1 .wvc-video-info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 15px;
	background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
	color: #fff;
	display: none; /* Hide info by default to match clean look, enable if needed */
}

/* Style 2: Modern (Sharp, Minimal) */
.wvc-style-2 .wvc-slide {
	border-radius: 4px;
}
.wvc-style-2 .wvc-video-info {
	position: absolute;
	bottom: 10px;
	left: 10px;
	padding: 5px 10px;
	background: #fff;
	color: #000;
	border-radius: 4px;
}
.wvc-style-2 .wvc-video-info h4 {
	color: #000;
	margin: 0;
	font-size: 0.9rem;
	text-transform: uppercase;
	font-weight: bold;
}

/* Style 3: Card (Bordered, White Box) */
.wvc-style-3 .wvc-slide {
	border: 5px solid #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	border-radius: 8px;
}
.wvc-style-3 .wvc-video-info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	padding: 10px;
	text-align: center;
	border-top: 1px solid #eee;
}
.wvc-style-3 .wvc-video-info h4 {
	color: #333;
	font-size: 0.9rem;
	margin-bottom: 5px;
}
.wvc-slide-price {
	color: #666;
	font-weight: bold;
	font-size: 0.85rem;
}


/* Common Icons */
.wvc-play-icon {
	font-size: 0; /* Hide text character */
	width: 36px;
	height: 36px;
	border: 1.5px solid #fff;
	border-radius: 50%;
	position: absolute;
	bottom: 12px;
	left: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.2);
	backdrop-filter: blur(2px);
	opacity: 0.9;
	transition: all 0.3s ease;
}

.wvc-play-icon::after {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent #fff;
	margin-left: 2px; /* Visual center adjustment */
}

.wvc-slide:hover .wvc-play-icon {
	opacity: 1;
	transform: scale(1.1);
	background: rgba(0,0,0,0.4);
}

.wvc-video-info h4 {
	margin: 0;
	font-size: 1rem;
	color: #fff; /* Default override by style */
}

/* Modal */
.wvc-modal {
	display: none; 
	position: fixed; 
	z-index: 2147483647; /* Max Safe Integer to beat all themes/admin bar */
	left: 0;
	top: 0;
	width: 100%; 
	height: 100%;
	height: 100dvh; /* Dynamic viewport height for mobile */
	overflow: hidden; /* Prevent modal background scrolling, content scrolls inside */
	background-color: rgba(0,0,0,0.9); 
	backdrop-filter: blur(5px);
}

/* Lock Body Scroll when Modal is Open */
body.wvc-modal-open {
	overflow: hidden !important;
	height: 100% !important;
}

.wvc-modal-content {
	background-color: #fff;
	margin: 5vh auto; /* Vertical centering roughly */
	padding: 0;
	border: 1px solid #888;
	width: 90%;
	max-width: 1000px;
	display: flex;
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	height: 80vh; 
	height: 80dvh;
	box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.wvc-close {
	color: #fff;
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	z-index: 2147483648; /* Higher than modal */
	line-height: 1;
	background: rgba(0,0,0,0.5);
	width: 40px;
	height: 40px;
	text-align: center;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wvc-video-container {
	flex: 2;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.wvc-product-info {
	flex: 1;
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #fff;
	overflow-y: auto;
}

@media (max-width: 768px) {
	.wvc-modal-content {
		flex-direction: column;
		width: 100%;
		height: 100%;
		height: 100dvh;
		margin: 0;
		border-radius: 0;
	}
	.wvc-video-container {
		flex: 1.5;
		width: 100%;
		height: 50%;
	}
	.wvc-product-info {
		flex: 1;
		padding: 20px;
		height: 50%;
	}
	.wvc-close {
		top: 15px;
		right: 15px;
		width: 35px;
		height: 35px;
		font-size: 28px;
	}
}

/* Navigation Buttons - Hidden for Story Style */
.swiper-button-next, .swiper-button-prev, .swiper-pagination {
	display: none !important;
}
