/* Витрина / слайдер вкладок */
.take-present-img {
	margin-top: 0;
}

.vitrina-slider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
}

.online-vitrina-item {
	display: block;
	width: 115px;
	height: 115px;
	padding: 4px;
	border-radius: 50%;
	background: linear-gradient(to right, #c11960, #5b0c8b);
}

.online-vitrina-background {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	padding: 4px;
	box-sizing: border-box;
}

.online-vitrina-background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

#vintrina-tabs-carousel {
	width: 700px;
}

.product-tabs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

.product-tabs-header h2 {
	margin: 0;
}

.product-tabs-header-arrows {
	display: flex;
	gap: 12px;
}

.product-tabs-arrow-left,
.product-tabs-arrow-right {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.product-tabs-arrow-right svg {
	transform: rotate(180deg);
}

/* Сетка главной: не вылезает за .container на мобильном */
.recomend .catalogue__content,
.recomend .catalogue__products-lists,
.recomend .catalogue__products-list {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.recomend .catalogue__products-list-item,
.recomend .catalogue__products-list--four .catalogue__products-list-item,
.recomend .catalogue__products-list--five .catalogue__products-list-item,
.recomend .splide .catalogue__products-list-item {
	overflow: hidden;
	min-width: 0;
	max-width: 100%;
	width: auto;
	box-sizing: border-box;
	border-radius: 10px;
}

.recomend .products-list__link {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow: hidden;
	border-radius: 10px;
}

.recomend .products-list__img,
.recomend .catalogue__products-list .products-list__img {
	border-radius: 10px 10px 0 0;
	overflow: hidden;
}

.recomend .products-list__img picture,
.recomend .products-list__img img {
	border-radius: 10px 10px 0 0;
}

/* Плашка «Привезём бесплатно» — как в category_main.twig */
.recomend .products-list__caption {
	position: relative;
	min-width: 0;
	box-sizing: border-box;
	overflow: visible;
}

/* Карточка товара: слайдер «Рекомендуемые товары» — одинаковая высота и выравнивание */
.recomend-slider .slick-track {
	display: flex !important;
	align-items: stretch;
}

.recomend-slider .slick-slide {
	height: auto;
	display: flex;
}

.recomend-slider .slick-slide > div {
	display: flex;
	width: 100%;
}

.recomend-slider .catalogue__products-list-item {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.recomend-slider .products-list__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	height: 100%;
}

.recomend-slider .products-list__caption {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 16px;
}

.recomend-slider .products-list__name,
.recomend-slider .catalogue__product-name.products-list__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
	line-height: 1.3;
	padding: 0 0 12px;
	margin: 0;
}

.recomend-slider .products-list__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.recomend-slider .products-list__price-block {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 2.5em;
}

.recomend-slider .products-list__price-block .catalogue__price-old--sm {
	display: block;
	float: none;
	margin: 0 0 2px;
	line-height: 1.2;
}

.recomend-slider .products-list__price-block .catalogue__price--sm {
	display: block;
	line-height: 1.2;
}

.recomend-slider .product-list__cart {
	position: static;
	right: auto;
	bottom: auto;
	flex-shrink: 0;
	opacity: 1;
	margin: 0;
}

@media screen and (max-width: 767px) {
	.recomend-slider .products-list__caption {
		padding: 8px;
	}

	.recomend-slider .products-list__name,
	.recomend-slider .catalogue__product-name.products-list__name {
		min-height: 2.4em;
		padding-bottom: 8px;
	}

	.recomend-slider .product-list__cart {
		width: 80px;
		height: 28px;
	}
}

.recomend .products-list__img {
	position: relative;
}

.recomend .free-delivery-badge {
	position: absolute;
	right: 8px;
	bottom: 8px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
	justify-content: flex-end;
	width: auto;
	min-height: 0;
	padding: 0;
	line-height: 1.1;
	color: #fff;
	text-align: right;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	z-index: 3;
	pointer-events: none;
}

.recomend .free-delivery-badge::before {
	display: none;
}

.recomend .free-delivery-badge span,
.recomend .free-delivery-badge strong {
	display: block;
	position: relative;
	width: max-content;
	max-width: 100%;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 10px rgba(0, 0, 0, 0.35);
	align-self: flex-end;
}

.recomend .free-delivery-badge span {
	font-size: 8px;
	font-weight: 500;
}

.recomend .free-delivery-badge strong {
	font-size: 9px;
	font-weight: 700;
	margin-top: 1px;
}

@media screen and (max-width: 767px) {
	.recomend .container,
	.recomend .catalogue__content {
		max-width: 100%;
		overflow-x: clip;
	}

	.recomend .catalogue__products-list {
		grid-template-columns: 1fr 1fr;
		gap: 15px;
	}

	.recomend .products-list__name,
	.recomend .catalogue__product-name {
		word-break: break-word;
		overflow-wrap: anywhere;
	}

	.recomend .free-delivery-badge {
		right: 6px;
		bottom: 6px;
		font-size: 8px;
	}

	.recomend .free-delivery-badge span {
		font-size: 7px;
	}

	.recomend .free-delivery-badge strong {
		font-size: 8px;
		margin-top: 1px;
	}

	/* Главная mobile: зазор под чипами (см. ptb-home-hero --ptb-chips-zone) */
	main.content > .container.ptb-home-hero:last-of-type + .recomend > .container > h2.gradient-header.al {
		margin-top: 0 !important;
	}

	/* +10px снизу от сетки товаров до следующего блока на главной */
	main.content .recomend .catalogue__content {
		padding-bottom: 11px !important;
	}

	.take-present-img {
		margin-top: 24px;
	}

	.vitrina-slider {
		justify-content: space-between;
		width: 100%;
		gap: 0;
	}

	.online-vitrina-item {
		width: 65px;
		height: 65px;
		padding: 2px;
	}

	.online-vitrina-background {
		padding: 2px;
	}

	#vintrina-tabs-carousel {
		width: 236px;
	}

	.product-tabs-header {
		margin-bottom: 20px;
	}

	.product-tabs-header h2 {
		font-size: 16px;
	}

	.product-tabs-header-arrows {
		display: none;
	}

	.recomend .vitrina-slider .product-tabs-arrow-left,
	.recomend .vitrina-slider .product-tabs-arrow-right {
		width: 30px;
		height: 30px;
	}
}

/* Home view 2: превью товара */
.recomend .catalogue__products-list .products-list__img,
.catalogue__products-list .products-list__img {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.catalogue__products-list .products-list__img picture,
.catalogue__products-list .products-list__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-products-crawler-links {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.home-products-crawler-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
