/* ── Product detail ── */
.site-single-products {
	background: #fff;
}

.product-detail {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	background: #fff;
	padding: 72px 0 100px;
	box-sizing: border-box;
}

.product-detail__inner {
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
	padding: 0 20px;
	box-sizing: border-box;
}

/* ── Page title ── */
.product-detail__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 26px;
	text-align: center;
}

.product-detail__title-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	line-height: 1;
}

.product-detail__title-bg {
	display: block;
	max-width: 100%;
	font-family: var(--font-bold);
	font-size: 90px;
	font-weight: 700;
	line-height: 1.05;
	color: #000;
	opacity: .06;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	user-select: none;
}

.product-detail__title {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	margin: 0;
	width: 90%;
	max-width: 1100px;
	font-family: var(--font-bold);
	font-size: 46px;
	font-weight: 700;
	line-height: 1.2;
	color: #000;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.product-detail__line {
	display: block;
	width: 44px;
	height: 5px;
	margin-top: 4px;
	background: #111d5c;
	flex-shrink: 0;
}

/* ── Main row ── */
.product-detail__main {
	display: flex;
	align-items: flex-start;
	gap: 60px;
	margin-bottom: 80px;
}

/* ── Gallery: 650px total, thumbs 118px ── */
.product-gallery {
	flex: 0 0 650px;
	width: 650px;
	max-width: 650px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	box-sizing: border-box;
}

.product-gallery:has(.product-gallery__thumbs-wrap.is-carousel) {
	padding-top: 34px;
	padding-bottom: 34px;
}

.product-gallery__thumbs-wrap {
	position: relative;
	flex: 0 0 118px;
	width: 118px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.product-gallery__nav {
	display: none;
	position: absolute;
	left: 50%;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111d5c;
	cursor: pointer;
	flex-shrink: 0;
	z-index: 2;
	transform: translateX(-50%);
	transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.product-gallery__nav--prev {
	top: -34px;
}

.product-gallery__nav--next {
	bottom: -34px;
}

.product-gallery__thumbs-wrap.is-carousel .product-gallery__nav {
	display: inline-flex;
}

.product-gallery__nav:hover {
	color: #2685f9;
	transform: translateX(-50%) scale(1.08);
}

.product-gallery__thumbs-viewport {
	width: 118px;
	overflow: hidden;
}

.product-gallery__thumbs {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	width: 118px;
	will-change: transform;
}

.product-gallery__thumb {
	display: block;
	flex: 0 0 auto;
	flex-shrink: 0;
	width: 118px;
	height: auto;
	padding: 0;
	border: 2px solid transparent;
	background: transparent;
	overflow: visible;
	cursor: pointer;
	box-sizing: border-box;
	line-height: 0;
	transition: border-color .2s ease, opacity .2s ease;
}

.product-gallery__thumb img {
	display: block;
	width: 118px;
	max-width: 100%;
	height: auto;
	object-fit: unset;
	object-position: unset;
}

.product-gallery__thumb:hover {
	border-color: rgba(17, 29, 92, .35);
}

.product-gallery__thumb.is-active {
	border-color: #111d5c;
}

.product-gallery__main {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	background: #e8eef5;
}

.product-gallery__main-img,
.product-gallery__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	aspect-ratio: 516 / 520;
	object-fit: cover;
}

.product-gallery__placeholder {
	background: linear-gradient(135deg, #d8e4f2 0%, #eef3f9 100%);
}

.product-gallery--empty {
	min-height: 420px;
}

/* ── Info ── */
.product-detail__info {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 4px;
}

.product-detail__name {
	margin: 24px 0 12px;
	font-family: var(--font-bold);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.25;
	color: #000;
}

.product-detail__subname {
	margin: 0 0 28px;
	font-family: var(--font-light);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	color: #8a8f98;
}

.product-detail__content {
	margin: 0 0 36px;
	font-family: var(--font-light);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.85;
	color: #333;
	text-align: justify;
	word-break: break-word;
}

.product-detail__content > *:first-child {
	margin-top: 0;
}

.product-detail__content > *:last-child {
	margin-bottom: 0;
}

.product-detail__content p {
	margin: 0 0 1em;
}

.product-detail__content a {
	color: #111d5c;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.product-detail__content a:hover {
	color: #2685f9;
}

.product-detail__content ul,
.product-detail__content ol {
	margin: 0 0 1em;
	padding-left: 1.3em;
	text-align: left;
}

.product-detail__content img {
	max-width: 100%;
	height: auto;
}

.product-detail__inquiry {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	height: 50px;
	padding: 0 36px;
	background: #111d5c;
	color: #fff;
	font-family: var(--font-medium);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 6px;
	box-sizing: border-box;
	transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.product-detail__inquiry:hover {
	background: #2685f9;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(38, 133, 249, .28);
}

/* ── Product parameters ── */
.product-params {
	margin-bottom: 72px;
}

.product-params__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 40px;
	text-align: center;
}

.product-params__title-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	line-height: 1;
}

.product-params__title-bg {
	display: block;
	max-width: 100%;
	font-family: var(--font-bold);
	font-size: 72px;
	font-weight: 700;
	line-height: 1.05;
	color: #000;
	opacity: .06;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	user-select: none;
}

.product-params__title {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	margin: 0;
	font-family: var(--font-bold);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: #000;
	text-transform: uppercase;
	letter-spacing: .02em;
	white-space: nowrap;
}

.product-params__line {
	display: block;
	width: 44px;
	height: 5px;
	margin-top: 4px;
	background: #111d5c;
	flex-shrink: 0;
}

.product-params__content {
	font-family: var(--font-light);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.85;
	color: #333;
	word-break: break-word;
}

.product-params__content > *:first-child {
	margin-top: 0;
}

.product-params__content > *:last-child {
	margin-bottom: 0;
}

.product-params__content p {
	margin: 0 0 1em;
}

.product-params__content h2,
.product-params__content h3,
.product-params__content h4 {
	margin: 1.2em 0 .5em;
	font-family: var(--font-bold);
	font-weight: 700;
	color: #111;
}

.product-params__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
}

.product-params__content th,
.product-params__content td {
	border: 1px solid #dce3ec;
	padding: 12px 14px;
	text-align: left;
}

.product-params__content img {
	max-width: 100%;
	height: auto;
}

/* ── Prev / Next ── */
.product-detail__pager {
	margin-top: 8px;
}

.site-single-products .article-pager {
	gap: 1px;
	background: #d5dbe8;
	border: 1px solid #d5dbe8;
}

.site-single-products .pager-link {
	background: #fff;
	padding: 24px 28px;
	transition: background .25s ease, color .25s ease;
}

.site-single-products .pager-link:hover {
	background: #111d5c;
	text-decoration: none;
}

.site-single-products .pager-dir {
	font-family: var(--font-medium);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #111d5c;
	transition: color .25s ease;
}

.site-single-products .pager-title {
	font-family: var(--font-medium);
	font-size: 15px;
	font-weight: 500;
	color: #333;
	line-height: 1.4;
	transition: color .25s ease;
}

.site-single-products .pager-link:hover .pager-dir,
.site-single-products .pager-link:hover .pager-title {
	color: #fff;
}

.site-single-products .pager-link.is-empty {
	background: #f5f6f9;
}

.site-single-products .pager-link.is-empty .pager-dir {
	color: #8a8f98;
}

.site-single-products .pager-link.is-empty .pager-title {
	color: #9aa0a8;
}

/* ── Related products ── */
.related-products {
	margin: 0 0 72px;
}

.related-products__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 48px;
	text-align: center;
}

.related-products__title-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	line-height: 1;
}

.related-products__title-bg {
	display: block;
	max-width: 100%;
	font-family: var(--font-bold);
	font-size: 72px;
	font-weight: 700;
	line-height: 1.05;
	color: #000;
	opacity: .06;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	user-select: none;
}

.related-products__title {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	margin: 0;
	font-family: var(--font-bold);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: #000;
	text-transform: uppercase;
	letter-spacing: .02em;
	white-space: nowrap;
}

.related-products__line {
	display: block;
	width: 44px;
	height: 5px;
	margin-top: 4px;
	background: #111d5c;
	flex-shrink: 0;
}

.related-products__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}

.related-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #fff;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}

.related-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 28px rgba(17, 29, 92, .12);
}

.related-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #e8eef5;
}

.related-card__media img,
.related-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}

.related-card__placeholder {
	background: linear-gradient(135deg, #d8e4f2 0%, #eef3f9 100%);
}

.related-card:hover .related-card__media img {
	transform: scale(1.05);
}

.related-card__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 4px 4px;
}

.related-card__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.related-card__name {
	font-family: var(--font-bold);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.related-card__label {
	font-family: var(--font-light);
	font-size: 13px;
	font-weight: 300;
	line-height: 1.3;
	color: #9aa0a8;
}

.related-card__btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: #111d5c;
	color: #fff;
	transition: background .25s ease, transform .25s ease;
}

.related-card:hover .related-card__btn {
	background: #2685f9;
	transform: translateX(2px);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
	.product-detail__main {
		gap: 36px;
	}

	.product-gallery {
		flex: 0 0 clamp(420px, 48vw, 560px);
		width: clamp(420px, 48vw, 560px);
		max-width: 48%;
	}

	.product-detail__name {
		font-size: 30px;
	}

	.product-detail__title-bg {
		font-size: clamp(40px, 7vw, 64px);
	}

	.product-detail__title {
		font-size: clamp(24px, 3.2vw, 34px);
	}

	.product-params__title-bg {
		font-size: clamp(32px, 5vw, 52px);
	}

	.product-params__title {
		font-size: clamp(20px, 2.6vw, 28px);
	}
}

@media (max-width: 1100px) {
	.related-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (max-width: 1024px) {
	.product-detail__main {
		flex-direction: column;
		gap: 36px;
		margin-bottom: 64px;
	}

	.product-gallery {
		flex: none;
		width: 100%;
		max-width: none;
	}

	.product-gallery__main-img,
	.product-gallery__placeholder {
		min-height: 320px;
		aspect-ratio: 4 / 3;
	}

	.product-detail__info {
		width: 100%;
	}
}

@media (max-width: 900px) {
	.product-detail {
		padding: 48px 0 64px;
	}

	.product-detail__head {
		margin-bottom: 36px;
	}

	.product-detail__title-bg {
		font-size: 42px;
	}

	.product-detail__title {
		font-size: 26px;
	}

	.product-detail__name {
		font-size: 26px;
	}

	.product-params__title-bg {
		font-size: 36px;
	}

	.product-params__title {
		font-size: 22px;
		white-space: normal;
		width: 92%;
	}

	.related-products__title-bg {
		font-size: 48px;
	}

	.related-products__title {
		font-size: 26px;
	}

	.product-gallery__thumbs-wrap {
		flex: 0 0 96px;
		width: 96px;
	}

	.product-gallery__thumbs-viewport,
	.product-gallery__thumbs,
	.product-gallery__thumb {
		width: 96px;
	}

	.product-gallery__thumb img {
		width: 96px;
	}
}

/* Mobile: main on top, horizontal thumbs below */
@media (max-width: 768px) {
	.product-detail {
		padding: 40px 0 56px;
	}

	.product-detail__main {
		gap: 28px;
		margin-bottom: 48px;
	}

	.product-gallery {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		width: 100%;
		max-width: none;
		padding-top: 0;
		padding-bottom: 0;
	}

	.product-gallery:has(.product-gallery__thumbs-wrap.is-carousel) {
		padding-top: 0;
		padding-bottom: 0;
	}

	.product-gallery__thumbs-wrap {
		order: 2;
		position: relative;
		flex: none;
		width: 100%;
		max-width: 100%;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 8px;
	}

	.product-gallery__main {
		order: 1;
		width: 100%;
	}

	.product-gallery__main-img,
	.product-gallery__placeholder {
		min-height: 220px;
		width: 100%;
		aspect-ratio: 4 / 3;
	}

	.product-gallery__nav {
		position: static;
		left: auto;
		top: auto;
		bottom: auto;
		transform: none;
		width: 32px;
		height: 32px;
		flex-shrink: 0;
	}

	.product-gallery__nav--prev,
	.product-gallery__nav--next {
		top: auto;
		bottom: auto;
		left: auto;
	}

	.product-gallery__nav--prev svg,
	.product-gallery__nav--next svg {
		transform: rotate(-90deg);
	}

	.product-gallery__nav:hover {
		transform: scale(1.08);
	}

	.product-gallery__thumbs-viewport {
		flex: 0 1 auto;
		width: auto;
		max-width: calc(100% - 80px);
		height: auto;
		overflow: hidden;
	}

	.product-gallery__thumbs {
		flex-direction: row;
		width: max-content;
		gap: 10px;
	}

	.product-gallery__thumb {
		width: 72px;
	}

	.product-gallery__thumb img {
		width: 72px;
		max-width: 72px;
	}

	.product-detail__title-wrap {
		flex-direction: column;
	}

	.product-detail__title-bg {
		font-size: 28px;
		white-space: normal;
		line-height: 1.15;
	}

	.product-detail__title {
		position: relative;
		left: auto;
		top: auto;
		transform: none;
		width: 100%;
		margin: 8px 0 0;
		font-size: 22px;
	}

	.product-detail__name {
		font-size: 22px;
	}

	.product-detail__inquiry {
		width: 100%;
	}

	.product-params__title-wrap {
		flex-direction: column;
	}

	.product-params__title-bg {
		font-size: 28px;
		white-space: normal;
	}

	.product-params__title {
		position: relative;
		left: auto;
		top: auto;
		transform: none;
		width: 100%;
		margin: 6px 0 0;
		font-size: 18px;
		white-space: normal;
	}

	.product-params__head {
		margin-bottom: 24px;
	}

	.related-products {
		margin-bottom: 48px;
	}

	.related-products__head {
		margin-bottom: 28px;
	}

	.related-products__title-wrap {
		flex-direction: column;
	}

	.related-products__title-bg {
		font-size: 28px;
		white-space: normal;
	}

	.related-products__title {
		position: relative;
		left: auto;
		top: auto;
		transform: none;
		width: 100%;
		margin: 6px 0 0;
		font-size: 18px;
		white-space: normal;
	}

	.related-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.related-card__name {
		font-size: 15px;
	}

	.related-card__btn {
		width: 36px;
		height: 36px;
	}

	.site-single-products .pager-link {
		padding: 18px 16px;
	}

	.site-single-products .article-pager {
		grid-template-columns: 1fr;
	}

	.site-single-products .pager-link.next {
		text-align: left;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.product-gallery__thumb {
		width: 64px;
	}

	.product-gallery__thumb img {
		width: 64px;
		max-width: 64px;
	}

	.related-products__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.product-detail__content,
	.product-params__content {
		font-size: 14px;
		text-align: left;
	}
}
