/**
 * Single product — «Смотрите также» carousel cards (#related).
 * Scoped so archive/catalog grids stay unchanged.
 */
:root {
	--kgc-related-primary: #3456a3;
	--kgc-related-dark: #22232b;
	--kgc-related-text: #1a1a1a;
	--kgc-related-muted: #556070;
	--kgc-related-border: #e2e8f0;
	--kgc-related-bg-soft: #f5f7fb;
	--kgc-related-shadow: 0 8px 24px rgba(26, 35, 64, 0.06);
	--kgc-related-shadow-hover: 0 12px 28px rgba(26, 35, 64, 0.1);
}

body.single-product #related {
	padding-bottom: clamp(48px, 6vw, 72px);
}

body.single-product #related > .container {
	position: relative;
	max-width: 1200px;
}

body.single-product #related .title {
	margin: 0 0 28px;
	padding-right: 96px;
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	line-height: 1.25;
	font-weight: 700;
	color: var(--kgc-related-dark);
}

/* Owl nav — same anchor pattern as #sert */
body.single-product #related .owl-nav {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	margin: 0;
}

body.single-product #related .owl-nav button {
	font-size: 16px !important;
	font-weight: 400 !important;
	background: #fff !important;
	height: 35px !important;
	width: 35px !important;
	border: 1px solid #dce3ee !important;
	border-radius: 0 !important;
	margin-left: 3px;
	margin-right: 3px;
	color: var(--kgc-related-dark) !important;
	transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

body.single-product #related .owl-nav button:hover {
	border-color: var(--kgc-related-primary) !important;
	color: var(--kgc-related-primary) !important;
	background: #fff !important;
}

body.single-product #related .widget-products {
	margin: 0;
}

body.single-product #related .product-slider {
	margin-top: 0;
}

/* Equal-height slides */
body.single-product #related .owl-stage {
	display: flex;
	align-items: stretch;
}

body.single-product #related .owl-item {
	display: flex;
	height: auto;
}

body.single-product #related .product-slider .shop-item,
body.single-product #related .product-slider .product {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	margin: 0;
}

/* Kill Bono product-slider min-height + space-between gap */
body.single-product #related .product-slider .shop-item-inner,
body.single-product #related .product-slider .shop-item--type-standard .shop-item-inner {
	min-height: 0 !important;
	height: auto !important;
	justify-content: flex-start !important;
	align-items: stretch !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 0;
}

body.single-product #related .kgc-product-card {
	background: #fff;
	border: 1px solid var(--kgc-related-border) !important;
	border-radius: 0 !important;
	box-shadow: var(--kgc-related-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

body.single-product #related .kgc-product-card:hover {
	box-shadow: var(--kgc-related-shadow-hover);
	border-color: #c5d0e4 !important;
	transform: translateY(-2px);
}

body.single-product #related .kgc-product-card .shop-item-inner {
	overflow: hidden;
	border-radius: 0;
}

body.single-product #related .kgc-product-card .shop-item__image {
	position: relative;
	background: var(--kgc-related-bg-soft);
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0;
	flex: 0 0 auto;
}

body.single-product #related .kgc-product-card .shop-item__image-inner {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0;
	overflow: hidden;
}

body.single-product #related .kgc-product-card .shop-item__image-inner > a {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

body.single-product #related .kgc-product-card .shop-item__image img,
body.single-product #related .kgc-product-card .shop-item__image .attachment-woocommerce_thumbnail {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
}

body.single-product #related .kgc-product-card .shop-item__title {
	padding: 14px 16px 0;
	margin: 0 !important;
	font-size: 15px;
	line-height: 1.35;
	overflow: visible !important;
	max-height: none !important;
	flex: 0 0 auto;
}

body.single-product #related .kgc-product-card .shop-item__title a {
	display: block !important;
	color: var(--kgc-related-dark);
	font-weight: 700;
	text-decoration: none;
	white-space: normal !important;
	overflow: visible !important;
	max-height: none !important;
	background: transparent !important;
	position: static !important;
	z-index: auto !important;
}

body.single-product #related .kgc-product-card .shop-item__title a:hover {
	color: var(--kgc-related-primary);
}

body.single-product #related .kgc-product-card .shop-item-inner:hover .shop-item__title {
	overflow: visible !important;
}

body.single-product #related .kgc-product-card .kgc-card-attrs {
	display: none !important;
}

body.single-product #related .kgc-product-card .shop-item-nav {
	margin-top: 10px !important;
	padding: 10px 16px 14px !important;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 6px !important;
	flex: 0 0 auto !important;
	border-top: 1px solid #eef2f7;
	background: linear-gradient(180deg, #fcfdff 0%, #f6f8fc 100%);
}

body.single-product #related .kgc-product-card .kgc-card-meta {
	display: none;
}

body.single-product #related .kgc-product-card .shop-item__price {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 15px;
	font-weight: 700;
	color: var(--kgc-related-text);
}

body.single-product #related .kgc-product-card .shop-item__price .price,
body.single-product #related .kgc-product-card .shop-item__price .woocommerce-Price-amount {
	color: var(--kgc-related-text);
	font-weight: 700;
}

body.single-product #related .kgc-product-card .shop-item-buttons,
body.single-product #related .kgc-product-card .shop-item__outofstock {
	display: none !important;
}

body.single-product #related .kgc-product-card .kgc-price-m3 {
	margin-top: 4px;
	font-size: 12px;
	color: var(--kgc-related-muted);
	font-weight: 500;
}

@media (max-width: 767px) {
	body.single-product #related .title {
		padding-right: 0;
		margin-bottom: 48px;
	}

	body.single-product #related .owl-nav {
		top: 44px;
		right: 0;
	}
}