/**
 * Desktop-to-mobile collapse uses max-width because the desktop layout is the source and small screens simplify it. Queries are rem; 782px is the admin-bar exception only.
 *
 * Shop title banner — Figma node 816:453.
 *
 * Dark photo band (317px) with centered uppercase white title (28px / Bold / 1.1).
 */

.shop-title {
	--shop-title-height: 19.8125rem; /* 317px */
	--shop-title-side-margin: var(--layout-side-margin, 0.625rem);
	--shop-title-radius: var(--layout-radius, 0.75rem);
	--shop-title-overlay: #141414;
	--shop-title-image-opacity: 0.5;
	--shop-title-font-size: 1.75rem; /* 28px */
	--shop-title-line-height: 1.1;

	width: calc(100% - (var(--shop-title-side-margin) * 2));
	margin-inline: auto;
	padding-top: var(--header-edge-gap, 0.3125rem);
}

.shop-title__panel {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--shop-title-height);
	border-radius: var(--shop-title-radius);
	overflow: hidden;
	isolation: isolate;
	background: var(--shop-title-overlay);
}

.shop-title__media {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.shop-title__media-image {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	opacity: var(--shop-title-image-opacity);
}

.shop-title__heading {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: var(--content-shell);
	padding-inline: var(--section-pad-inline);
	color: #ffffff;
	font-family: var(--font-sans);
	font-size: var(--shop-title-font-size);
	font-weight: var(--font-weight-bold);
	line-height: var(--shop-title-line-height);
	letter-spacing: 0;
	text-align: center;
	text-transform: uppercase;
}

@media (max-width: 40rem) {
	.shop-title {
		--shop-title-height: 12.5rem;
		--shop-title-font-size: 1.375rem;
	}
}
