/**
 * Brand category banners – full-bleed, desktop + mobile.
 */

.dmh-bb-has-banner {
	overflow-x: clip;
}

.dmh-bb {
	--dmh-bb-ink: #ffffff;
	--dmh-bb-shade: rgba(12, 16, 24, 0.42);
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	max-width: 100vw;
	margin-inline: 0;
	margin-bottom: 1.25rem;
	overflow: hidden;
	background: #1a1f2e;
	isolation: isolate;
	box-sizing: border-box;
}

.dmh-bb__media,
.dmh-bb__media picture,
.dmh-bb__img {
	display: block;
	width: 100%;
}

.dmh-bb__img {
	height: auto;
	aspect-ratio: 1920 / 630;
	object-fit: cover;
	object-position: center;
}

.dmh-bb--overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(8, 12, 20, 0.62) 0%,
		rgba(8, 12, 20, 0.28) 45%,
		rgba(8, 12, 20, 0.18) 100%
	);
	pointer-events: none;
	z-index: 1;
}

.dmh-bb__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
	padding: clamp(1.25rem, 4vw, 2.75rem) clamp(1rem, 4vw, 2rem);
	color: var(--dmh-bb-ink);
	pointer-events: none;
}

.dmh-bb__title {
	margin: 0;
	color: #fff !important;
	font-size: clamp(1.35rem, 3.2vw, 2.35rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.15;
	text-transform: uppercase;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.dmh-bb__text {
	margin-top: 0.55rem;
	max-width: 42rem;
	color: #fff !important;
	font-size: clamp(0.85rem, 1.6vw, 1rem);
	line-height: 1.55;
	opacity: 0.95;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
	.dmh-bb {
		margin-bottom: 1rem;
	}

	.dmh-bb__img {
		aspect-ratio: 800 / 640;
		max-height: 38vh;
	}

	.dmh-bb__content {
		justify-content: flex-end;
		padding: 1.1rem 1rem 1.25rem;
	}

	.dmh-bb__title {
		letter-spacing: 0.04em;
		font-size: clamp(1.2rem, 6vw, 1.55rem);
	}

	.dmh-bb__text {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: 0.88rem;
		margin-top: 0.4rem;
	}
}

/* Keep archive layout breathing after full-bleed breakout */
.dmh-bb-has-banner .dmh-be__bar,
.dmh-bb-has-banner .woocommerce-result-count {
	margin-top: 0.25rem;
}
