/* ==========================================================================
   WC Product Image Carousel v5
   ========================================================================== */

/* ---------- Container ---------- */
.wcpic-carousel {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	background: #FFFCFC;
}

/* ---------- Viewport ---------- */
.wcpic-viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	height: var(--wcpic-height, 520px);
	border-radius: 14px;
	background: #FFFCFC;
	cursor: pointer;
}

.wcpic-track {
	display: flex;
	height: 100%;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

.wcpic-track.dragging {
	transition: none;
}

/* ---------- Slides ---------- */
.wcpic-slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #FFFCFC;
}

/* Default: cover (for landscape images) */
.wcpic-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-select: none;
}

/* Portrait images: contain (show complete, no cropping) */
.wcpic-slide.wcpic-portrait img {
	object-fit: contain;
}

/* ---------- Arrows — pure chevrons, no background ---------- */
.wcpic-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	border: none !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
	margin: 0;
	width: auto;
	height: auto;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	-webkit-appearance: none;
	appearance: none;
}

.wcpic-arrow-left {
	left: 12px;
}

.wcpic-arrow-right {
	right: 12px;
}

.wcpic-arrow svg {
	width: 36px;
	height: 36px;
	stroke: #c8507a;
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
	transition: stroke 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

.wcpic-arrow:hover svg {
	stroke: #a03060;
	transform: scale(1.15);
}

.wcpic-arrow:active svg {
	transform: scale(0.9);
}

/* ---------- Dots — small circles below image ---------- */
.wcpic-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 12px 0 6px;
	background: #FFFCFC;
}

.wcpic-dot {
	width: 9px;
	height: 9px;
	border-radius: 50% !important;
	border: 1.5px solid #c8507a !important;
	background: transparent !important;
	background-color: transparent !important;
	cursor: pointer;
	padding: 0 !important;
	margin: 0;
	outline: none !important;
	box-shadow: none !important;
	transition: all 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
	min-width: 0;
	min-height: 0;
	line-height: 0;
	font-size: 0;
}

.wcpic-dot:hover {
	background: rgba(200, 80, 122, 0.2) !important;
	background-color: rgba(200, 80, 122, 0.2) !important;
}

.wcpic-dot.active {
	background: #c8507a !important;
	background-color: #c8507a !important;
	border-color: #c8507a !important;
	transform: scale(1.2);
}

/* ---------- Lightbox ---------- */
.wcpic-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	cursor: zoom-out;
}

.wcpic-lightbox.open {
	opacity: 1;
	visibility: visible;
}

.wcpic-lightbox img {
	max-width: 92vw;
	max-height: 92vh;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
	transform: scale(0.92);
	transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wcpic-lightbox.open img {
	transform: scale(1);
}

.wcpic-lightbox-close {
	position: absolute;
	top: 16px;
	right: 20px;
	width: 40px;
	height: 40px;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	z-index: 10;
}

.wcpic-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.25);
}

.wcpic-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: none;
	cursor: pointer;
	padding: 0;
	outline: none;
	z-index: 10;
}

.wcpic-lightbox-nav svg {
	width: 36px;
	height: 36px;
	stroke: rgba(255, 255, 255, 0.7);
	fill: none;
	transition: stroke 0.2s ease;
}

.wcpic-lightbox-nav:hover svg {
	stroke: #fff;
}

.wcpic-lightbox-prev {
	left: 16px;
}

.wcpic-lightbox-next {
	right: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.wcpic-viewport {
		height: calc(var(--wcpic-height, 520px) * 0.75);
		border-radius: 10px;
	}

	.wcpic-arrow svg {
		width: 28px;
		height: 28px;
	}
}

@media (max-width: 480px) {
	.wcpic-viewport {
		height: calc(var(--wcpic-height, 520px) * 0.55);
		border-radius: 8px;
	}

	.wcpic-arrow svg {
		width: 24px;
		height: 24px;
	}

	.wcpic-dots {
		gap: 6px;
		padding: 8px 0 4px;
	}

	.wcpic-dot {
		width: 7px;
		height: 7px;
	}
}
