/*
 * Product category banner — replaces the Elementor/Astra Custom Layout banners.
 * Values copied from the old Elementor layout (e.g. #999182844, Allergy).
 */

.boiron-cat-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	overflow: hidden;
	font-family: Montserrat, sans-serif;
	color: #000;
}

/* White "torn paper" edge at the bottom */
.boiron-cat-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--bcb-scratch) center bottom / 100% auto no-repeat;
	pointer-events: none;
}

.boiron-cat-banner.bcb-no-edge::after {
	display: none;
}

.boiron-cat-banner .bcb-media,
.boiron-cat-banner .bcb-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
}

.boiron-cat-banner .bcb-media img {
	object-fit: cover;
	object-position: left top;
}

.boiron-cat-banner .bcb-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1140px;
	padding: 10px;
	box-sizing: border-box;
	text-align: center;
}

.boiron-cat-banner .bcb-title {
	margin: 0;
	font-family: inherit;
	font-size: 70px;
	font-weight: 400;
	line-height: 80px;
	color: inherit;
}

.boiron-cat-banner .bcb-subtitle {
	margin: 20px 150px 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 27px;
}

/* Hidden H1 when the heading field is empty (kept for SEO / screen readers) */
.boiron-cat-banner .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.boiron-cat-banner .bcb-subtitle p {
	margin: 0;
}

@media (max-width: 1024px) {
	.boiron-cat-banner .bcb-media img {
		object-position: center center;
	}

	/* Torn-paper edge is desktop only */
	.boiron-cat-banner::after {
		display: none;
	}
}

@media (max-width: 767px) {
	.boiron-cat-banner {
		min-height: 120px;
	}

	.boiron-cat-banner .bcb-title {
		font-size: 50px;
		line-height: 1.2;
	}

	.boiron-cat-banner .bcb-subtitle {
		display: none;
		margin: 12px 0 0;
		font-size: 16px;
		line-height: 1.4;
	}

	.boiron-cat-banner.bcb-sub-mobile .bcb-subtitle {
		display: block;
	}
}
