/* Only the catalog listing explicitly opts in with MP_CATALOG_CARDS.
   Specificity exceeds legacy component, inner and catalog-redesign layers. */
.mp-dev .mp-stage2.mp-catalog-redesign .mp-catalog-grid.mp-catalog-cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.bx_catalog_item {
	display: flex;
	padding: 0;
	min-width: 0;
	border: 1px solid #e5e8ea;
	border-radius: 4px;
	transition:
		border-color 0.18s,
		box-shadow 0.18s;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.bx_catalog_item:hover {
	transform: none;
	border-color: #bacbdc;
	box-shadow: 0 3px 12px #1528400a !important;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card,
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.bx_catalog_item:hover
	.mp-product-card {
	width: 100%;
	height: 100%;
	padding: 14px !important;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-card-media {
	position: relative;
	width: 100%;
	height: 0;
	padding-top: 100%;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 3px;
	background: #f6f7f7;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-card-media
	> .bx_catalog_item_images {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 12px;
	/* Legacy style.css applies padding-top:100% !important to this anchor.
	   The square is already provided by mp-card-media, not by the anchor. */
	padding-top: 12px !important;
	margin: 0;
	background-color: #f6f7f7;
	opacity: 1;
	visibility: visible;
	transform: none;
	z-index: 1;
	animation: none !important;
	transition: none;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-card-photo {
	display: block;
	position: relative;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.bx_stick {
	max-width: calc(100% - 16px);
	padding: 3px 6px;
	font-size: 11px;
	line-height: 1.3;
	overflow-wrap: anywhere;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card-title {
	height: auto !important;
	min-height: 4.5em;
	margin: 14px 0 12px;
	font:
		400 15px/1.5 Arial,
		sans-serif;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card-title
	a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
	overflow-wrap: anywhere;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: auto 0 14px;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-price-value {
	width: 100%;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.bx_price {
	font:
		600 24px/1.3 Arial,
		sans-serif;
	color: #16263b;
	overflow-wrap: normal;
	word-break: normal;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.bx_price
	> span[style*="line-through"] {
	display: block;
	font-size: 13px;
	font-weight: 400;
	margin-top: 4px;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-card-stock {
	display: block;
	font-size: 12px;
	line-height: 1.4;
	color: #67717b;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-card-stock.is-available {
	color: #30834e;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card-action {
	margin: 0 0 8px;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card-action
	.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 10px 6px;
	font-size: 14px;
	border-radius: 2px;
	background: #102a50;
	color: #fff;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card-action
	.btn:hover {
	background: #1c3a5c;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card-action
	.btn:active {
	background: #0a1d39;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card-secondary {
	padding: 0;
	margin: 0;
	border: 0;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card-secondary
	.btn-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card-secondary
	label.btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 6px 3px;
	font-size: 11px;
	line-height: 1.3;
	background: #fff;
	color: #526071;
	border: 1px solid #dce4eb;
	border-radius: 2px;
	overflow-wrap: anywhere;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card-secondary
	label.btn.active,
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card-secondary
	label.btn:has(input:checked) {
	background: #eaf0f6;
	color: #102a50;
	border-color: #102a50;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card-secondary
	label.btn:hover {
	background: #f1f5f8;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-product-card-secondary
	input {
	display: block !important;
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.bx_catalog_item_articul {
	width: auto;
	min-height: 0;
	margin: 10px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #67717b;
	font-size: 11px !important;
	line-height: 1.4;
	text-align: left;
	overflow-wrap: anywhere;
}
.mp-dev
	.mp-stage2.mp-catalog-redesign
	.mp-catalog-grid.mp-catalog-cards
	.mp-action-status {
	font-size: 11px;
	margin: 6px 0 0;
}
@media (max-width: 1100px) {
	.mp-dev .mp-stage2.mp-catalog-redesign .mp-catalog-grid.mp-catalog-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}
@media (max-width: 600px) {
	.mp-dev .mp-stage2.mp-catalog-redesign .mp-catalog-grid.mp-catalog-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.mp-dev
		.mp-stage2.mp-catalog-redesign
		.mp-catalog-grid.mp-catalog-cards
		.mp-product-card,
	.mp-dev
		.mp-stage2.mp-catalog-redesign
		.mp-catalog-grid.mp-catalog-cards
		.bx_catalog_item:hover
		.mp-product-card {
		padding: 8px !important;
	}
	.mp-dev
		.mp-stage2.mp-catalog-redesign
		.mp-catalog-grid.mp-catalog-cards
		.mp-product-card-title {
		min-height: 6em;
		margin: 10px 0;
		font-size: 13px;
	}
	.mp-dev
		.mp-stage2.mp-catalog-redesign
		.mp-catalog-grid.mp-catalog-cards
		.mp-product-card-title
		a {
		-webkit-line-clamp: 4;
	}
	.mp-dev
		.mp-stage2.mp-catalog-redesign
		.mp-catalog-grid.mp-catalog-cards
		.bx_price {
		font-size: 18px;
	}
	.mp-dev
		.mp-stage2.mp-catalog-redesign
		.mp-catalog-grid.mp-catalog-cards
		.mp-product-card-secondary
		label.btn {
		font-size: 10px;
	}
	.mp-dev
		.mp-stage2.mp-catalog-redesign
		.mp-catalog-grid.mp-catalog-cards
		.bx_catalog_item_articul {
		font-size: 10px !important;
	}
}
@media (max-width: 359px) {
	.mp-dev .mp-stage2.mp-catalog-redesign .mp-catalog-grid.mp-catalog-cards {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (prefers-reduced-motion: reduce) {
	.mp-dev
		.mp-stage2.mp-catalog-redesign
		.mp-catalog-grid.mp-catalog-cards
		.bx_catalog_item {
		transition: none;
	}
}

/* Related products (RECOMMEND) on the product page and in the basket; title matches "Товары бренда". */
.mp-dev .mp-related-products {
	clear: both;
	margin: 40px 0 0;
}
.mp-dev .mp-stage2.mp-catalog-redesign.mp-related-products--standalone {
	padding-bottom: 0;
}
.mp-dev .mp-related-products-title {
	margin: 0 0 20px;
	font:
		600 22px/1.3 Arial,
		sans-serif;
	color: #102a50;
}
@media (max-width: 600px) {
	.mp-dev .mp-related-products-title {
		font-size: 19px;
	}
}

/* Compact "С этим покупают" under the purchase panel on the product page. */
.mp-dev .mp-related-products--compact {
	margin: 24px 0 0;
}
.mp-dev .mp-related-products--compact .mp-related-products-title {
	margin: 0 0 12px;
	font-size: 17px;
}
.mp-dev .mp-related-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mp-dev .mp-related-item {
	min-width: 0;
	margin: 0;
	padding: 0;
}
.mp-dev .mp-related-item::before {
	content: none;
}
.mp-dev .mp-related-link {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 8px;
	background: #fff;
	border: 1px solid #dce4eb;
	border-radius: 4px;
	color: #16263b;
	text-decoration: none;
	transition: border-color 0.15s;
}
.mp-dev .mp-related-link:hover,
.mp-dev .mp-related-link:focus-visible {
	border-color: #102a50;
	color: #102a50;
	text-decoration: none;
}
.mp-dev .mp-related-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	background: #f4f5f4;
	border-radius: 3px;
	overflow: hidden;
}
.mp-dev .mp-related-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.mp-dev .mp-related-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.mp-dev .mp-related-name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.mp-dev .mp-related-price {
	font-weight: 600;
	font-size: 14px;
	color: #102a50;
	white-space: nowrap;
}
@media (max-width: 767px) {
	.mp-dev .mp-related-list {
		flex-direction: row;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
	}
	.mp-dev .mp-related-item {
		flex: 0 0 min(240px, 78%);
		scroll-snap-align: start;
	}
}
@media (prefers-reduced-motion: reduce) {
	.mp-dev .mp-related-link {
		transition: none;
	}
}
