/**
 * ANNABIS promotions: discount badge, savings line, homepage section and
 * shop filter chips. Brand palette: #FAFCFC #E8F3F4 #B3D9DB #278B90 #143F46.
 */

/* Discount badge (shop, categories, related, single product, homepage). */
.annabis-sale-badge,
body.woocommerce ul.products li.product .onsale.annabis-sale-badge,
body.woocommerce-shop ul.products li.product .onsale.annabis-sale-badge,
body.tax-product_cat ul.products li.product .onsale.annabis-sale-badge,
body.single-product div.product .onsale.annabis-sale-badge {
	position: absolute;
	z-index: 3;
	top: 14px;
	right: auto;
	left: 14px;
	display: inline-flex;
	align-items: center;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 7px 11px 6px;
	border: 0;
	border-radius: 999px;
	background: #143f46;
	box-shadow: 0 6px 16px rgba(20, 63, 70, 0.22);
	color: #fff;
	font-family: "Jost", system-ui, sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	text-transform: none;
}

body.single-product div.product .onsale.annabis-sale-badge {
	top: 18px;
	left: 18px;
	padding: 9px 14px 8px;
	font-size: 1rem;
}

.annabis-home__sale-badge {
	top: 12px;
	left: 12px;
}

/* Prices on sale: old price clearly struck, new price strong. */
.annabis-home__product-card.is-on-sale .annabis-home__price del,
body.woocommerce-shop ul.products li.product.sale .price del,
body.tax-product_cat ul.products li.product.sale .price del {
	margin-right: 4px;
	color: #6c8287;
	font-size: 0.68em;
	font-weight: 600;
	text-decoration-color: rgba(20, 63, 70, 0.55);
	text-decoration-thickness: 1.5px;
}

.annabis-home__product-card.is-on-sale .annabis-home__price ins,
body.woocommerce-shop ul.products li.product.sale .price ins,
body.tax-product_cat ul.products li.product.sale .price ins {
	color: #143f46;
	font-weight: 750;
	text-decoration: none;
}

/* "Спестявате X €" */
.annabis-sale-savings {
	width: 100%;
	margin: -2px 0 8px;
	color: #278b90;
	font-family: "Jost", system-ui, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}

/* Bosa renders the loop title/price inside a flex column link; keep savings after the price. */
ul.products li.product .woocommerce-loop-product__link > .annabis-sale-savings {
	order: 10;
	margin-top: -4px;
}

/* Kirki's inline typography (Dosis) targets the amount after this file. */
.annabis-sale-savings .woocommerce-Price-amount,
.annabis-sale-savings .woocommerce-Price-amount bdi,
.annabis-sale-savings .woocommerce-Price-currencySymbol {
	color: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

/* Homepage "Промоции" section. */
.annabis-home__promotions {
	background: linear-gradient(180deg, #e8f3f4 0%, #fafcfc 100%);
}

.annabis-home__promotions .annabis-home__product-card {
	border-color: rgba(39, 139, 144, 0.35);
}

/* Shop / category filter chips. */
.annabis-promo-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	margin: 0 0 22px;
}

.annabis-promo-filter__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 9px 18px;
	border: 1px solid #b3d9db;
	border-radius: 999px;
	background: #fff;
	color: #143f46;
	font-family: "Jost", system-ui, sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.annabis-promo-filter__chip:hover,
.annabis-promo-filter__chip:focus-visible {
	border-color: #278b90;
	color: #143f46;
	text-decoration: none;
}

.annabis-promo-filter__chip:focus-visible {
	outline: 2px solid #278b90;
	outline-offset: 2px;
}

.annabis-promo-filter__chip.is-active {
	border-color: #143f46;
	background: #143f46;
	color: #fff;
}

.annabis-promo-filter__count {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: #e8f3f4;
	color: #143f46;
	font-size: 0.8125rem;
	font-weight: 700;
}

.annabis-promo-filter__chip.is-active .annabis-promo-filter__count {
	background: #278b90;
	color: #fff;
}

@media (max-width: 767px) {
	.annabis-sale-badge,
	body.woocommerce-shop ul.products li.product .onsale.annabis-sale-badge,
	body.tax-product_cat ul.products li.product .onsale.annabis-sale-badge {
		top: 10px;
		left: 10px;
		padding: 6px 9px 5px;
		font-size: 0.8125rem;
	}

	.annabis-sale-savings {
		font-size: 0.8125rem;
	}

	.annabis-promo-filter {
		gap: 8px;
	}

	.annabis-promo-filter__chip {
		min-height: 44px;
		padding: 9px 14px;
		font-size: 0.875rem;
	}
}
