/* Product loops: every image sits in the same square box and is shown whole (never cropped). */
.wd-product .product-element-top .product-image-link,
.wd-product .product-element-top .hover-img > a {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: #fff;
	overflow: hidden;
	cursor: zoom-in;
}

.wd-product .product-element-top .product-image-link img,
.wd-product .product-element-top .hover-img > a img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Lightbox */
.sb-lb {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 56px 16px 16px;
	background: rgba(10, 18, 16, .96);
	-webkit-tap-highlight-color: transparent;
}

.sb-lb.is-open {
	display: flex;
	animation: sb-lb-fade .2s ease-out;
}

@keyframes sb-lb-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.sb-lb-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
}

.sb-lb-img {
	display: block;
	max-width: min(92vw, 1100px);
	max-height: calc(100vh - 200px);
	width: auto;
	height: auto;
	object-fit: contain;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
	transition: opacity .2s ease;
}

.sb-lb.is-loading .sb-lb-img {
	opacity: 0;
}

.sb-lb-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: sb-lb-spin .8s linear infinite;
	display: none;
}

.sb-lb.is-loading .sb-lb-spinner {
	display: block;
}

@keyframes sb-lb-spin {
	to { transform: rotate(360deg); }
}

.sb-lb button.sb-lb-btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease;
}

.sb-lb button.sb-lb-btn:hover,
.sb-lb button.sb-lb-btn:focus-visible {
	background: rgba(255, 255, 255, .3);
	color: #fff;
}

.sb-lb-close {
	top: 10px;
	right: 12px;
}

.sb-lb-prev {
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
}

.sb-lb-next {
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
}

.sb-lb-count {
	position: absolute;
	top: 22px;
	left: 18px;
	color: rgba(255, 255, 255, .8);
	font-size: 14px;
}

.sb-lb-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 20px;
	max-width: 92vw;
	margin-top: 16px;
	color: #fff;
	text-align: center;
}

.sb-lb-title {
	font-size: 17px;
	font-weight: 600;
}

.sb-lb-price,
.sb-lb-price .amount,
.sb-lb-price ins {
	color: #fff;
	font-weight: 600;
}

.sb-lb-price del,
.sb-lb-price del .amount {
	color: rgba(255, 255, 255, .6);
	font-weight: 400;
}

.sb-lb a.sb-lb-view {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 4px;
	background: var(--wd-primary-color, #7eb38b);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
}

.sb-lb a.sb-lb-view:hover {
	color: #fff;
	opacity: .9;
}

.sb-lb.is-single .sb-lb-prev,
.sb-lb.is-single .sb-lb-next,
.sb-lb.is-single .sb-lb-count {
	display: none;
}

@media (max-width: 767px) {
	.sb-lb {
		padding: 56px 8px 12px;
	}

	.sb-lb-img {
		max-width: 96vw;
		max-height: calc(100vh - 220px);
	}

	.sb-lb button.sb-lb-prev,
	.sb-lb button.sb-lb-next {
		width: 38px;
		height: 38px;
		background: rgba(0, 0, 0, .45);
	}

	.sb-lb-prev {
		left: 4px;
	}

	.sb-lb-next {
		right: 4px;
	}
}
