/* Кнопка «на весь екран» у правому нижньому куті фото товару. */

.woocommerce-product-gallery.sh-gal-fs {
	position: relative;
}

/* Woodmart задає button { position: relative }, тому позицію фіксуємо жорстко. */

.woocommerce-product-gallery.sh-gal-fs .sh-gal-full {
	position: absolute !important;
	right: 8px !important;
	bottom: 8px !important;
	left: auto !important;
	top: auto !important;
	z-index: 6;
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px !important;
	min-width: 38px !important;
	max-width: 38px !important;
	height: 38px !important;
	min-height: 38px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba( 255, 255, 255, 0.94 ) !important;
	box-shadow: 0 2px 8px rgba( 20, 32, 58, 0.14 );
	color: var( --sh-text, #2b3445 ) !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.woocommerce-product-gallery.sh-gal-fs .sh-gal-full::before,
.woocommerce-product-gallery.sh-gal-fs .sh-gal-full::after {
	content: none !important;
}

.woocommerce-product-gallery.sh-gal-fs .sh-gal-full:hover,
.woocommerce-product-gallery.sh-gal-fs .sh-gal-full:focus-visible {
	background: #fff !important;
	color: var( --sh-ink, #101828 ) !important;
	transform: scale( 1.06 );
}

.woocommerce-product-gallery.sh-gal-fs .sh-gal-full svg {
	display: block;
	pointer-events: none;
}

@media (max-width: 768px) {
	.woocommerce-product-gallery.sh-gal-fs .sh-gal-full {
		right: 12px !important;
		bottom: 12px !important;
	}
}

/* ── Повноекранний перегляд ───────────────────────────────────── */

html.sh-lb-lock,
html.sh-lb-lock body {
	overflow: hidden !important;
	touch-action: none;
}

.sh-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transition: opacity 0.18s ease;
}

.sh-lb.is-open {
	opacity: 1;
}

.sh-lb[hidden] {
	display: none;
}

.sh-lb-bg {
	position: absolute;
	inset: 0;
	background: #0c1018;
}

.sh-lb-stage {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 56px 64px 12px;
}

.sh-lb-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 0;
	transform: scale( 0.985 );
	transition: opacity 0.2s ease, transform 0.2s ease;
	-webkit-user-select: none;
	user-select: none;
}

.sh-lb-img.is-ready {
	opacity: 1;
	transform: none;
}

.sh-lb .sh-lb-btn {
	position: absolute !important;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.12 );
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.sh-lb .sh-lb-btn:hover,
.sh-lb .sh-lb-btn:focus-visible {
	background: rgba( 255, 255, 255, 0.24 );
}

.sh-lb .sh-lb-close {
	top: 12px !important;
	right: 12px !important;
	bottom: auto !important;
	left: auto !important;
	width: 44px !important;
	height: 44px !important;
}

.sh-lb .sh-lb-prev,
.sh-lb .sh-lb-next {
	top: 50% !important;
	bottom: auto !important;
	width: 48px !important;
	height: 48px !important;
	margin-top: -24px;
}

.sh-lb .sh-lb-prev {
	left: 12px !important;
	right: auto !important;
}

.sh-lb .sh-lb-next {
	right: 12px !important;
	left: auto !important;
}

.sh-lb.is-single .sh-lb-prev,
.sh-lb.is-single .sh-lb-next,
.sh-lb.is-single .sh-lb-foot {
	display: none;
}

.sh-lb-foot {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 0 12px 14px;
}

.sh-lb-count {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba( 255, 255, 255, 0.72 );
}

.sh-lb-thumbs {
	display: flex;
	gap: 8px;
	max-width: 100%;
	padding: 2px;
	overflow-x: auto;
	scrollbar-width: none;
}

.sh-lb-thumbs::-webkit-scrollbar {
	display: none;
}

.sh-lb .sh-lb-thumb {
	flex: 0 0 auto;
	width: 56px !important;
	min-width: 56px !important;
	height: 56px !important;
	padding: 0 !important;
	border: 2px solid transparent !important;
	border-radius: 8px;
	background: rgba( 255, 255, 255, 0.08 );
	cursor: pointer;
	overflow: hidden;
	opacity: 0.6;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.sh-lb .sh-lb-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sh-lb .sh-lb-thumb:hover {
	opacity: 0.9;
}

.sh-lb .sh-lb-thumb.is-active {
	border-color: #fff !important;
	opacity: 1;
}

@media (max-width: 768px) {
	.sh-lb-stage {
		padding: 56px 12px 8px;
	}

	.sh-lb .sh-lb-prev,
	.sh-lb .sh-lb-next {
		display: none !important;
	}

	.sh-lb .sh-lb-thumb {
		width: 48px !important;
		min-width: 48px !important;
		height: 48px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sh-lb,
	.sh-lb-img,
	.woocommerce-product-gallery.sh-gal-fs .sh-gal-full {
		transition: none;
	}
}
