/* Studio product photo: transparent PNG + CSS background/shadow */
:root {
	/* Средний студийный синий (ближе к эталону), не пастель и не почти-чёрный */
	--fish-bg-center: #4E8BC0;
	--fish-bg-mid: #3A75AB;
	--fish-bg-outer: #2E5F8F;
	--fish-bg-edge: #244C73;
	--fish-shadow-opacity: 0.34;
	--fish-size: 80%;
	--fish-studio-bg:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.2 0 0 0 0 0.3 0 0 0 0 0.4 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
		radial-gradient(ellipse 88% 78% at 50% 40%,
			var(--fish-bg-center) 0%,
			var(--fish-bg-mid) 38%,
			var(--fish-bg-outer) 72%,
			var(--fish-bg-edge) 100%);
}

.product-photo--studio {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 7px;
	background: var(--fish-studio-bg);
	background-size: 160px 160px, 100% 100%;
}

/* Full-card clickable area for Fancybox */
.product-photo--studio > a {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

/* Soft depth shadow strip under the fish */
.product-photo--studio > a::after,
.product-photo--studio::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 20%;
	width: 58%;
	height: 12%;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center,
		rgba(8, 22, 40, var(--fish-shadow-opacity)) 0%,
		rgba(8, 22, 40, 0.16) 42%,
		rgba(8, 22, 40, 0) 72%);
	filter: blur(10px);
	pointer-events: none;
	z-index: 0;
}

/* Avoid double shadow when clickable <a> is present */
.product-photo--studio:has(> a)::after {
	content: none;
}

.product-photo--studio > img {
	position: relative;
	z-index: 1;
	display: block;
	width: var(--fish-size);
	height: auto;
	max-width: var(--fish-size);
	max-height: var(--fish-size);
	object-fit: contain;
	margin: 0;
	filter: drop-shadow(0 8px 12px rgba(8, 22, 40, 0.18));
}

.product-photo--studio > a img {
	position: relative;
	z-index: 1;
	width: var(--fish-size);
	height: auto;
	max-width: var(--fish-size);
	max-height: var(--fish-size);
	object-fit: contain;
	margin: 0;
	filter: drop-shadow(0 8px 12px rgba(8, 22, 40, 0.18));
}

.product-column__img.product-photo--studio {
	height: auto;
	width: 26rem;
	max-width: 100%;
}

.product-column__img.product-photo--studio .stickers {
	z-index: 2;
}

.card-slider .product-photo--studio {
	max-width: 60rem;
}

/* Fancybox: same studio background when opening main PNG */
.fancybox-skin.product-photo--studio-lightbox,
.fancybox-inner.product-photo--studio-lightbox {
	background: var(--fish-studio-bg) !important;
	background-size: 160px 160px, 100% 100% !important;
}

.fancybox-opened .fancybox-skin.product-photo--studio-lightbox {
	box-shadow: 0 10px 40px rgba(40, 70, 100, 0.28);
}

.fancybox-skin.product-photo--studio-lightbox .fancybox-image {
	filter: drop-shadow(0 10px 16px rgba(8, 22, 40, 0.2));
}
