/* =========================================================
   PRODUCT IMAGE ZOOM
========================================================= */

.product__image-zoom {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.product__image-zoom .product__image-main {
	display: block;
	width: 100%;
	height: auto;
}


/* Zoom icon */

.product__zoom-icon {
	position: absolute;
	right: 1rem;
	bottom: 1rem;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 2.5rem;
	height: 2.5rem;

	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #10162a;

	font-size: 1.5rem;
	line-height: 1;

	opacity: 0;
	transform: scale(0.9);

	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.product__image-zoom:hover .product__zoom-icon,
.product__image-zoom:focus-visible .product__zoom-icon {
	opacity: 1;
	transform: scale(1);
}


/* =========================================================
   LIGHTBOX
========================================================= */

.product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 3rem;

	background: rgba(8, 11, 20, 0.94);

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
}

.product-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}


/* Image container */

.product-lightbox__inner {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	height: 100%;
}


/* Enlarged image */

.product-lightbox__image {
	display: block;

	max-width: 95vw;
	max-height: 90vh;

	width: auto;
	height: auto;

	object-fit: contain;

	box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.4);
}


/* Close button */

.product-lightbox__close {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;

	z-index: 2;

	width: 3rem;
	height: 3rem;

	padding: 0;

	border: 0;
	border-radius: 50%;

	background: rgba(255, 255, 255, 0.95);
	color: #10162a;

	font-size: 2rem;
	line-height: 1;

	cursor: pointer;

	transition:
		transform 0.2s ease,
		background 0.2s ease;
}

.product-lightbox__close:hover {
	transform: scale(1.05);
	background: #fff;
}


/* Prevent page scrolling while lightbox is open */

body.product-lightbox-open {
	overflow: hidden;
}


/* Mobile */

@media (max-width: 767px) {

	.product-lightbox {
		padding: 1rem;
	}

	.product-lightbox__image {
		max-width: 100%;
		max-height: 85vh;
	}

	.product-lightbox__close {
		top: 0.75rem;
		right: 0.75rem;

		width: 2.75rem;
		height: 2.75rem;
	}

	.product__zoom-icon {
		opacity: 1;
		transform: scale(1);
	}

}