/* Карточка товара: «Рекомендуемые товары» — автономные стили, без lightshop_product_tabs.css */
.ptb-related {
	margin-top: 40px;
	padding-bottom: 8px;
}

.ptb-related > .container > .h2 {
	display: block;
	margin: 0 0 24px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: #282828;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ptb-related__splide {
	position: relative;
	padding: 0 52px;
}

.ptb-related__splide .splide__track {
	overflow: hidden;
	padding: 0 0 8px;
}

.ptb-related__splide .splide__list {
	display: flex !important;
	align-items: stretch !important;
}

.ptb-related__splide .splide__slide {
	display: flex !important;
	height: auto !important;
	align-self: stretch;
}

.ptb-related__splide .splide__slide > .ptb-related__item {
	display: flex;
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-width: 0;
}

.ptb-related__item {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	height: 100%;
	box-shadow: none !important;
}

.ptb-related__item .products-list__link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.ptb-related__item .products-list__img {
	display: block;
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	height: auto !important;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f3f3f3;
	text-align: left;
}

.ptb-related__item .products-list__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ptb-related__item .products-list__label {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	pointer-events: none;
}

.ptb-related__item .products-list__label .label {
	margin: 0;
}

.ptb-related.ptb-related .products-list__caption,
.ptb-related__item .products-list__caption {
	display: grid !important;
	grid-template-rows: 40px 44px 40px;
	gap: 12px;
	flex: 1 1 auto;
	align-content: start;
	padding: 16px !important;
	box-sizing: border-box;
	background: #fff;
	overflow: hidden !important;
	position: relative !important;
}

.ptb-related__item .product__rating {
	display: none !important;
}

.ptb-related__item .products-list__name,
.ptb-related__item .catalogue__product-name.products-list__name {
	display: block !important;
	height: 40px !important;
	max-height: 40px !important;
	min-height: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 20px !important;
	color: #181818 !important;
	text-decoration: none;
}

.ptb-related__item .products-list__name span,
.ptb-related__item .catalogue__product-name.products-list__name span {
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	max-height: 40px;
	line-height: 20px !important;
	word-break: break-word;
}

.ptb-related__item .products-list__name:hover,
.ptb-related__item .products-list__name:hover span {
	color: #006562 !important;
}

.ptb-related__item .products-list__price-block {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 44px;
	min-height: 44px;
	max-height: 44px;
	margin: 0 !important;
	overflow: hidden;
}

.ptb-related__item .products-list__price-block .catalogue__price-old--sm {
	float: none !important;
	display: block !important;
	height: 16px;
	margin: 0 0 2px !important;
	padding: 0 !important;
	font-size: 13px;
	line-height: 16px;
	color: #9a9a9a;
}

.ptb-related__item .products-list__price-block .catalogue__price-old--placeholder {
	visibility: hidden;
	user-select: none;
}

.ptb-related__item .products-list__price-block .catalogue__price--sm {
	display: block !important;
	float: none !important;
	height: 22px;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 20px;
	font-weight: 600;
	line-height: 22px;
	color: #282828;
	white-space: nowrap;
}

.ptb-related__item .catalogue__buy-with-discount {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 40px !important;
	min-height: 40px !important;
	margin: 0 !important;
	padding: 11px 0 !important;
	border: 0;
	border-radius: 90px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	box-sizing: border-box;
	align-self: end;
}

.ptb-related__splide .splide__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	border: 0;
	border-radius: 50%;
	background: #f5f5f5;
	opacity: 1;
	transition: background 0.2s ease;
}

.ptb-related__splide .splide__arrow svg {
	width: 12px;
	height: 12px;
	fill: #666;
}

.ptb-related__splide .splide__arrow:hover {
	background: #e8e8e8;
}

.ptb-related__splide .splide__arrow:hover svg {
	fill: #333;
}

.ptb-related__splide .splide__arrow--prev {
	left: 0;
}

.ptb-related__splide .splide__arrow--next {
	right: 0;
}

.ptb-related__splide .splide__arrow:disabled {
	opacity: 0.35;
	pointer-events: none;
}

@media (max-width: 767px) {
	.ptb-related {
		margin-top: 28px;
	}

	.ptb-related > .container > .h2 {
		margin-bottom: 16px;
		font-size: 18px;
	}

	.ptb-related__splide {
		padding: 0;
	}

	.ptb-related__splide .splide__arrow {
		display: none;
	}

	.ptb-related.ptb-related .products-list__caption,
	.ptb-related__item .products-list__caption {
		grid-template-rows: 32px 40px 36px;
		gap: 10px;
		padding: 8px !important;
	}

	.ptb-related__item .products-list__name,
	.ptb-related__item .catalogue__product-name.products-list__name {
		height: 32px !important;
		max-height: 32px !important;
		min-height: 32px !important;
		font-size: 14px !important;
		line-height: 16px !important;
	}

	.ptb-related__item .products-list__name span,
	.ptb-related__item .catalogue__product-name.products-list__name span {
		max-height: 32px;
		line-height: 16px !important;
	}

	.ptb-related__item .products-list__price-block {
		height: 40px;
		min-height: 40px;
		max-height: 40px;
	}

	.ptb-related__item .products-list__price-block .catalogue__price--sm {
		font-size: 18px;
		height: 20px;
		line-height: 20px;
	}

	.ptb-related__item .catalogue__buy-with-discount {
		height: 36px !important;
		min-height: 36px !important;
		font-size: 14px;
	}
}
