/* Lightbox gallery — product detail only */
.pd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 56px;
	box-sizing: border-box;
	background: rgba(15, 23, 42, 0.94);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}
.pd-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}
.pd-lightbox__backdrop {
	position: absolute;
	inset: 0;
	cursor: zoom-out;
	border: 0;
	padding: 0;
	background: transparent;
}
.pd-lightbox__stage {
	position: relative;
	z-index: 1;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.pd-lightbox__stage img {
	pointer-events: auto;
	max-width: min(96vw, 1600px);
	max-height: min(88vh, 1200px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.pd-lightbox__caption {
	pointer-events: none;
	margin-top: 12px;
	max-width: min(96vw, 640px);
	text-align: center;
	font-size: 14px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.88);
}
.pd-lightbox__close,
.pd-lightbox__prev,
.pd-lightbox__next {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}
.pd-lightbox__close:hover,
.pd-lightbox__prev:hover,
.pd-lightbox__next:hover,
.pd-lightbox__close:focus-visible,
.pd-lightbox__prev:focus-visible,
.pd-lightbox__next:focus-visible {
	background: rgba(255, 255, 255, 0.22);
	outline: none;
}
.pd-lightbox__close {
	top: 12px;
	right: 12px;
	font-size: 32px;
	font-weight: 300;
}
.pd-lightbox__prev {
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
}
.pd-lightbox__next {
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
}
.pd-lightbox__prev:disabled,
.pd-lightbox__next:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.pd-lightbox__counter {
	position: absolute;
	z-index: 2;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.75);
}
body.pd-lightbox-open {
	overflow: hidden;
}
.detail-product .js-product-main-image-stack [data-pd-lightbox-index],
.detail-product .gallery-top .swiper-slide[data-pd-lightbox-index] {
	cursor: zoom-in;
}

@media (max-width: 576px) {
	.pd-lightbox {
		padding: 44px 10px;
	}
	.pd-lightbox__prev {
		left: 6px;
	}
	.pd-lightbox__next {
		right: 6px;
	}
	.pd-lightbox__close {
		right: 8px;
		top: 8px;
	}
}
