/**
 * Product Lightbox Modal Component
 * Figma: node-id=2116-5893
 * Main image: 746px × 746px, Overlay: rgba(44,44,52,0.17)
 * Navigation: 48px circles, Thumbnails: 97px below main image
 */

/* ============================================
   Lightbox Modal Overlay
   ============================================ */

.product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(44, 44, 52, 0.17);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.product-lightbox.active {
	display: flex;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.product-lightbox__overlay {
	position: absolute;
	inset: 0;
	cursor: pointer;
}

/* ============================================
   Lightbox Container
   ============================================ */

.product-lightbox__container {
	position: relative;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

/* ============================================
   Close Button (48px circle, top-right corner)
   ============================================ */

.product-lightbox__close {
	position: absolute;
	top: 0;
	right: -72px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--color-white, #FCFDFF);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 24px;
	color: var(--color-black, #2C2C34);
	transition: all 0.3s ease;
	z-index: 10001;
}

.product-lightbox__close:hover {
	background: var(--color-black, #2C2C34);
	color: var(--color-white, #FCFDFF);
}

/* ============================================
   Main Image Area (746px × 746px)
   ============================================ */

.product-lightbox__main {
	position: relative;
	width: 746px;
	height: 746px;
	background: var(--color-white, #FCFDFF);
}

.product-lightbox__swiper {
	width: 100%;
	height: 100%;
}

.product-lightbox__slide {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-white, #FCFDFF);
}

.product-lightbox__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ============================================
   Navigation Buttons (48px circles, outside image)
   ============================================ */

.product-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--color-white, #FCFDFF);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 24px;
	color: var(--color-black, #2C2C34);
	transition: all 0.3s ease;
	z-index: 10001;
}

.product-lightbox__nav:hover {
	background: var(--color-black, #2C2C34);
	color: var(--color-white, #FCFDFF);
}

.product-lightbox__nav--prev {
	left: -72px;
}

.product-lightbox__nav--next {
	right: -72px;
}

.product-lightbox__nav.swiper-button-disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

/* ============================================
   Thumbnails (97px, below main image)
   ============================================ */

.product-lightbox__thumbnails {
	display: flex;
	gap: 16px;
	justify-content: center;
}

.product-lightbox__thumb {
	width: 97px;
	height: 97px;
	flex-shrink: 0;
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
	opacity: 0.2;
	transition: opacity 0.3s ease;
}

.product-lightbox__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
}

.product-lightbox__thumb:hover,
.product-lightbox__thumb--active {
	opacity: 1;
}

/* ============================================
   Swiper Core Overrides
   ============================================ */

/* Hide default Swiper buttons (we use custom) */
.product-lightbox__swiper .swiper-button-next,
.product-lightbox__swiper .swiper-button-prev {
	display: none;
}

/* Hide default pagination (we use custom thumbnails) */
.product-lightbox__swiper .swiper-pagination {
	display: none;
}

/* ============================================
   Responsive: Desktop 1440px
   ============================================ */

@media (max-width: 1440px) {
	.product-lightbox__main {
		width: 600px;
		height: 600px;
	}

	.product-lightbox__nav--prev {
		left: -60px;
	}

	.product-lightbox__nav--next {
		right: -60px;
	}

	.product-lightbox__close {
		right: -60px;
	}

	.product-lightbox__thumb {
		width: 80px;
		height: 80px;
	}
}

/* ============================================
   Responsive: Tablet (1024px)
   ============================================ */

@media (max-width: 1024px) {
	.product-lightbox__main {
		width: 500px;
		height: 500px;
	}

	.product-lightbox__nav {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}

	.product-lightbox__nav--prev {
		left: -52px;
	}

	.product-lightbox__nav--next {
		right: -52px;
	}

	.product-lightbox__close {
		width: 40px;
		height: 40px;
		font-size: 18px;
		right: -52px;
	}

	.product-lightbox__thumb {
		width: 70px;
		height: 70px;
	}
}

/* ============================================
   Responsive: Mobile (768px)
   ============================================ */

@media (max-width: 768px) {
	.product-lightbox__container {
		gap: 12px;
	}

	.product-lightbox__main {
		width: 90vw;
		height: 90vw;
		max-width: 500px;
		max-height: 500px;
	}

	.product-lightbox__nav {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}

	.product-lightbox__nav--prev {
		left: 8px;
	}

	.product-lightbox__nav--next {
		right: 8px;
	}

	.product-lightbox__close {
		top: 8px;
		right: 8px;
		width: 36px;
		height: 36px;
		font-size: 16px;
	}

	.product-lightbox__thumbnails {
		gap: 8px;
	}

	.product-lightbox__thumb {
		width: 50px;
		height: 50px;
	}
}

/* ============================================
   Responsive: Mobile (375px)
   ============================================ */

@media (max-width: 375px) {
	.product-lightbox__main {
		width: 343px;
		height: 343px;
	}

	.product-lightbox__nav {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.product-lightbox__nav--prev {
		left: 4px;
	}

	.product-lightbox__nav--next {
		right: 4px;
	}

	.product-lightbox__close {
		width: 32px;
		height: 32px;
		font-size: 14px;
		top: 4px;
		right: 4px;
	}

	.product-lightbox__thumb {
		width: 40px;
		height: 40px;
	}
}

/* ============================================
   Animation & Transitions
   ============================================ */

/* Zoom in animation when opening */
@keyframes zoomIn {
	from {
		transform: scale(0.9);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.product-lightbox.active .product-lightbox__container {
	animation: zoomIn 0.3s ease;
}
