/* Catalogue priorities, unified labels and TZ7 promotion. */

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/montserrat-cyrillic-400-800.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/montserrat-latin-400-800.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.product-card .image > .buildline-product-badges {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	padding: 0;
}

.product-card .image {
	position: relative;
}

.product-card .image > .buildline-product-badges .sale-badge,
.product-card .image > .buildline-product-badges .stock-badge {
	display: inline-flex;
	position: static;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 34px;
	margin: 0;
	padding: 6px 16px;
	border-radius: 18px 0 0 18px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.product-card .image > .buildline-product-badges .stock-badge {
	background: #3fae62;
}

/* Homepage sale carousel: match the existing sale label exactly and keep
 * every visible card aligned to the tallest card in the carousel row. */
.home .stock .product-card .image > .buildline-product-badges .sale-badge,
.home .stock .product-card .image > .buildline-product-badges .stock-badge {
	height: 28px;
	min-height: 28px;
	padding: 5px 20px;
	font-family: var(--font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
}

.home .stock .swiper-wrapper {
	align-items: stretch;
}

.home .stock .swiper-slide {
	display: flex;
	height: auto;
}

.home .stock .product-card {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.home .stock .product-card .card-items {
	flex: 1 1 auto;
}

.home .stock .product-card .card-buttons {
	margin-top: auto;
}

.buildline-service-page .woocommerce-breadcrumb {
	margin-top: 0;
}

.bl-live-cover {
	position: relative;
	width: 100%;
	aspect-ratio: 545 / 893;
	overflow: hidden;
	background-color: #11181c;
	background-image: linear-gradient(180deg, rgba(8, 12, 15, .08), rgba(8, 12, 15, .1)), var(--bl-cover-image);
	background-position: center;
	background-size: cover;
	color: #fff;
	font-family: "Montserrat", Arial, sans-serif;
	text-align: left;
	container-type: inline-size;
}

.bl-live-cover * {
	color: #fff;
	font-family: "Montserrat", Arial, sans-serif;
}

.bl-live-cover__discount {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 44%;
	padding: 2.7% 4.2% 2.6%;
	border-radius: 0 0 0 14px;
	background: #ed1c24;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: clamp(21px, 8cqw, 34px);
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
}

.bl-live-cover__copy {
	position: absolute;
	top: 15.2%;
	left: 8.2%;
	right: 5%;
}

.bl-live-cover__title,
.bl-live-cover__subtitle,
.bl-live-cover__text {
	display: flex;
	flex-direction: column;
}

.bl-live-cover__title,
.bl-live-cover__title * {
	font-family: "Montserrat", Arial, sans-serif;
	font-size: clamp(26px, 9.45cqw, 47px);
	font-weight: 700;
	line-height: 1.19;
}

.bl-live-cover__discount {
	font-family: "Montserrat", Arial, sans-serif;
}

.bl-live-cover__subtitle,
.bl-live-cover__subtitle * {
	margin-top: 10.9%;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: clamp(18px, 6.1cqw, 30px);
	font-weight: 600;
	line-height: 1.28;
}

.bl-live-cover__subtitle * {
	margin-top: 0;
	font-family: "Montserrat", Arial, sans-serif;
}

.bl-live-cover__text,
.bl-live-cover__text * {
	margin-top: 2.2%;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: clamp(13px, 4.58cqw, 20px);
	font-weight: 400;
	line-height: 1.3;
}

.bl-live-cover__text * {
	margin-top: 0;
}

.bl-promo__visual .bl-live-cover {
	max-width: 340px;
}

.bl-promotions-grid .item--live-cover .bl-live-cover {
	height: 100%;
}

.bl-promo__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 12px;
	padding: 0 26px;
	border: 0;
	border-radius: 3px;
	background: var(--red);
	color: #fff;
	font-family: var(--font-bold);
	text-transform: uppercase;
	cursor: pointer;
}

.bl-promo__cta:hover,
.bl-promo__cta:focus-visible {
	background: var(--red-hover);
}

@media (max-width: 575px) {
	.product-card .image > .buildline-product-badges {
		gap: 4px;
	}

	.product-card .image > .buildline-product-badges .sale-badge,
	.product-card .image > .buildline-product-badges .stock-badge {
		min-height: 30px;
		padding: 5px 11px;
		font-size: 12px;
	}

	.home .stock .product-card .image > .buildline-product-badges .sale-badge,
	.home .stock .product-card .image > .buildline-product-badges .stock-badge {
		height: 22px;
		min-height: 22px;
		padding: 5px 20px;
		font-size: 12px;
		line-height: 1;
	}

	.bl-promo__visual .bl-live-cover {
		max-width: 100%;
	}
}
