/* UNISHOP2_PROMOTIONS_CARD_GEOMETRY_POLISH_R45
 * R28 remains the product-card typography/action contract. This file contains
 * only homepage promotions layout and promotion-specific presentation deltas.
 */
:root {
	--eo-r43-red: #e6362c;
	--eo-r43-red-dark: #c6251d;
	--eo-r43-ink: #202126;
	--eo-r43-muted: #747880;
}

.eo-r43-promotions__header,
.eo-r43-promo-card__discount {
	display: none;
}

.home-page .eo-r43-promotions__legacy-heading {
	display: none !important;
}

/* `header` is sticky globally on desktop; the section header must stay in flow. */
.home-page .eo-r43-promotions__header {
	position: static !important;
	top: auto !important;
	z-index: auto !important;
	display: flex;
	margin: 72px 0 40px;
	padding: 0;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	color: var(--eo-r43-ink);
	text-transform: none;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}

.home-page .eo-r43-promotions__heading {
	min-width: 0;
	max-width: 780px;
}

.home-page .eo-r43-promotions__heading h2 {
	margin: 0;
	color: var(--eo-r43-ink);
	font-size: clamp(28px, 3.1vw, 44px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.03em;
	text-transform: none;
}

.home-page .eo-r43-promotions__heading p {
	margin: 12px 0 0;
	color: var(--eo-r43-muted);
	font-size: clamp(15px, 1.2vw, 17px);
	font-weight: 400;
	line-height: 1.65;
}

.home-page .eo-r43-promotions__all {
	display: inline-flex;
	min-height: 46px;
	padding: 0 20px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 10px;
	white-space: nowrap;
	text-decoration: none !important;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	color: #c92922 !important;
	background: #fff4f2;
	border: 1px solid #f0aaa5;
	border-radius: 999px;
	box-shadow: none;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.home-page .eo-r43-promotions__all:hover,
.home-page .eo-r43-promotions__all:focus-visible {
	color: #fff !important;
	background: #ef3128;
	border-color: #ef3128;
}

.home-page .eo-r43-promotions,
.home-page .eo-r43-promotions__carousel,
.home-page .eo-r43-promotions__carousel .uni-module__wrapper {
	margin-top: 0;
	padding-top: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	transform: none;
}

.home-page .eo-r43-promotions__carousel .owl-stage {
	display: flex;
	align-items: stretch;
}

.home-page .eo-r43-promotions__carousel .owl-item {
	display: flex;
	height: auto;
	align-items: stretch;
}

/* Owl already owns the 10px item gutters, as it does for R28 cards. */
.home-page .eo-r43-promotions__carousel .owl-item > .eo-r43-promo-card {
	width: 100%;
	height: auto;
	margin: 0 0 8px;
}

.home-page .eo-r43-promotions__carousel .uni-module__wrapper:not(.owl-carousel) > .eo-r43-promo-card {
	width: calc(25% - 20px);
	margin: 0 10px 8px;
}

/* R28 owns the card shell. Natural height removes the R44 empty lower zone. */
.home-page .eo-r43-promo-card {
	position: relative;
	min-width: 0;
	min-height: 0;
	height: auto;
}

/* CSS-only DOM flow: badge row, dedicated square image row, then timer row. */
.home-page .eo-r43-promo-card .product-thumb__image {
	position: relative;
	display: flex;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 12px 0 0;
	align-items: stretch;
	justify-content: flex-start;
	flex: 0 0 auto;
	flex-direction: column;
	overflow: visible;
	aspect-ratio: auto;
	background: #fff;
	border: 0;
	box-shadow: none;
}

.home-page .eo-r43-promo-card .product-thumb__image > a {
	display: flex;
	width: 100%;
	height: auto;
	padding: 2px 4px;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	box-sizing: border-box;
	aspect-ratio: 1 / 1;
}

.home-page .eo-r43-promo-card .product-thumb__image img,
.home-page .eo-r43-promo-card .product-thumb__image .img-responsive {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 336px;
	max-height: 336px;
	margin: 0 auto;
	opacity: 1;
	filter: none;
	object-fit: contain;
	transform: none;
}

.home-page .eo-r43-promo-card .sticker {
	display: none !important;
}

/* Badge participates in layout and therefore cannot cover the product image. */
.home-page .eo-r43-promo-card__discount {
	position: static;
	z-index: auto;
	display: inline-flex;
	min-height: 34px;
	margin: 0 14px 10px;
	padding: 0 11px;
	align-items: center;
	align-self: flex-start;
	flex: 0 0 auto;
	white-space: nowrap;
	font-size: 11.5px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	background: var(--eo-r43-red);
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(230, 54, 44, .18);
}

/* Native controls live in the reserved top meta row, away from the image. */
.home-page .eo-r43-promo-card .product-thumb__wishlist,
.home-page .eo-r43-promo-card .product-thumb__compare {
	position: absolute;
	z-index: 4;
	top: 12px;
	width: 34px;
	height: 34px;
	min-height: 34px;
	margin: 0;
	padding: 0;
	flex: 0 0 34px;
	border-radius: 9px;
}

.home-page .eo-r43-promo-card .product-thumb__wishlist {
	right: 54px;
}

.home-page .eo-r43-promo-card .product-thumb__compare {
	right: 14px;
}

/* R66: full-width timer panel with one label row and four equal countdown columns. */
.home-page .eo-r43-promo-card .uni-timer {
	position: static;
	z-index: auto;
	display: grid !important;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-width: 0;
	height: auto;
	min-height: 0;
	margin: 10px 0 0;
	padding: 10px 12px;
	align-items: center;
	align-self: stretch;
	justify-content: stretch;
	flex: 0 0 auto;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 7px;
	row-gap: 6px;
	visibility: visible !important;
	opacity: 1 !important;
	overflow: hidden;
	color: #5f6269;
	background: #fff7f6;
	border: 1px solid #f3dedb;
	border-radius: 11px;
	box-shadow: none;
}

.home-page .eo-r43-promo-card .uni-timer::before {
	display: block;
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
	margin: 0;
	content: "До конца акции";
	white-space: nowrap;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.01em;
	text-align: left;
	color: #e6362c;
}

.home-page .eo-r43-promo-card .uni-timer__group {
	display: flex;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	padding: 4px 7px;
	align-items: baseline;
	justify-content: center;
	gap: 2px;
	white-space: nowrap;
	color: #353a41;
	background: #fff;
	border: 1px solid #f0dfdc;
	border-radius: 8px;
	box-shadow: none;
}

.home-page .eo-r43-promo-card .uni-timer__group.g-1::before,
.home-page .eo-r43-promo-card .uni-timer__group.g-2::before,
.home-page .eo-r43-promo-card .uni-timer__group.g-3::before {
	display: none;
	content: none;
}

.home-page .eo-r43-promo-card .uni-timer__digit {
	letter-spacing: 0;
	font-size: 12.5px;
	font-weight: 750;
	line-height: 1;
	color: #17191e;
}

.home-page .eo-r43-promo-card .uni-timer__text {
	margin: 0;
	font-size: 0;
	line-height: 1;
	color: #777b82;
}

.home-page .eo-r43-promo-card .uni-timer__text::after {
	font-size: 10.5px;
	font-weight: 550;
	line-height: 1;
}

.home-page .eo-r43-promo-card .uni-timer__group.g-0 .uni-timer__text::after { content: "дн."; }
.home-page .eo-r43-promo-card .uni-timer__group.g-1 .uni-timer__text::after { content: "ч."; }
.home-page .eo-r43-promo-card .uni-timer__group.g-2 .uni-timer__text::after { content: "мин."; }
.home-page .eo-r43-promo-card .uni-timer__group.g-3 .uni-timer__text::after { content: "сек."; }

.home-page .eo-r43-promo-card .product-thumb__caption {
	height: auto;
	overflow: visible;
}

/* Full names remain visible while all font metrics continue to come from R28. */
.home-page .eo-r43-promo-card .product-thumb__name {
	display: block !important;
	min-height: 0;
	overflow: visible !important;
	text-overflow: clip;
	-webkit-box-orient: initial;
	-webkit-line-clamp: unset !important;
}

.home-page .eo-r43-promo-card .product-thumb__name::after {
	display: none !important;
	content: none !important;
}

.home-page .eo-r43-promo-card .product-thumb__description,
.home-page .eo-r43-promo-card .product-thumb__option,
.home-page .eo-r43-promo-card .product-thumb__attribute,
.home-page .eo-r43-promo-card .product-thumb__quantity-indicator {
	display: none !important;
}

.home-page .eo-r43-promo-card .product-thumb__rating:not(:has(.fas.fa-star)) {
	display: none !important;
}

.home-page .eo-r43-promo-card .product-thumb__price {
	margin-top: auto;
}

.home-page .eo-r43-promotions__carousel .owl-dots {
	margin-top: 12px;
}

@media (min-width: 992px) and (max-width: 1399px) {
	.home-page .eo-r43-promo-card .uni-timer {
		padding: 9px;
		column-gap: 5px;
	}

	.home-page .eo-r43-promo-card .uni-timer__group {
		padding: 4px 6px;
	}

}
@media (max-width: 991px) {
	.home-page .eo-r43-promotions__header {
		margin-top: 44px;
		align-items: center;
	}

	.home-page .eo-r43-promotions__carousel .uni-module__wrapper:not(.owl-carousel) > .eo-r43-promo-card {
		width: calc(50% - 20px);
	}
}

@media (max-width: 699px) {
	.home-page .eo-r43-promotions__header {
		margin: 36px 0 28px;
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
	}

	.home-page .eo-r43-promotions__all {
		min-height: 44px;
		padding: 0 17px;
	}

	.home-page .eo-r43-promotions__carousel .uni-module__wrapper:not(.owl-carousel) > .eo-r43-promo-card {
		width: calc(100% - 20px);
	}

	.home-page .eo-r43-promo-card .uni-timer {
		padding: 10px 12px;
		column-gap: 8px;
		row-gap: 6px;
	}

	.home-page .eo-r43-promo-card .uni-timer__group {
		padding: 4px 7px;
	}

	.home-page .eo-r43-promo-card .uni-timer__digit {
		font-size: 12.5px;
	}

	.home-page .eo-r43-promo-card .uni-timer__text::after {
		font-size: 10.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-page .eo-r43-promotions__all {
		transition: none;
	}
}
