/* =========================================================
   Category / shop hero (mockup)
   ========================================================= */

:root {
	--rr-hero-bg: #141414;
	--rr-hero-accent: #c62828;
	--rr-hero-text: #ffffff;
	--rr-hero-muted: rgba(255, 255, 255, 0.78);
}

.rr-cat-hero {
	position: relative;
	isolation: isolate;
	background: var(--rr-hero-bg);
	color: var(--rr-hero-text);
	overflow: hidden;
	margin: 0 !important;
	padding: 48px 0 40px;
}

.rr-cat-hero.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--rr-hero-image);
	background-size: cover;
	background-position: center;
	opacity: 0.28;
	z-index: 0;
}

.rr-cat-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.82) 100%);
	z-index: 1;
	pointer-events: none;
}

.rr-cat-hero-inner {
	position: relative;
	z-index: 2;
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
	text-align: center;
}

.rr-cat-hero-title {
	margin: 0 0 12px !important;
	padding: 0 !important;
	font-size: clamp(28px, 4vw, 44px) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	color: #fff !important;
	display: block !important;
	text-align: center !important;
	white-space: normal;
}

.rr-cat-hero-accent {
	color: var(--rr-hero-accent) !important;
}

.rr-cat-hero-rest {
	color: #fff !important;
	margin-left: 0.28em;
}

.rr-cat-hero-sub {
	margin: 0 auto 28px !important;
	max-width: 640px;
	font-size: 15px !important;
	line-height: 1.5 !important;
	font-weight: 400 !important;
	color: var(--rr-hero-muted) !important;
}

.rr-cat-hero-features {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px 36px;
}

.rr-cat-hero-feature {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	padding: 0 !important;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.rr-cat-hero-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1.5px solid var(--rr-hero-accent);
	border-radius: 999px;
	color: var(--rr-hero-accent);
	flex-shrink: 0;
}

.rr-cat-hero-feature-icon svg {
	display: block;
}

/* Hide leftover Basel title if it still prints somehow */
body.tax-product_cat .page-title.title-shop,
body.tax-product_tag .page-title.title-shop,
body.post-type-archive-product .page-title.title-shop {
	display: none !important;
}

@media (max-width: 768px) {
	.rr-cat-hero {
		padding: 32px 0 28px;
	}

	.rr-cat-hero-inner {
		width: calc(100% - 28px);
	}

	.rr-cat-hero-sub {
		margin-bottom: 22px !important;
		font-size: 14px !important;
	}

	.rr-cat-hero-features {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px 12px;
		text-align: left;
	}

	.rr-cat-hero-feature {
		font-size: 12px;
		gap: 8px;
	}

	.rr-cat-hero-feature-icon {
		width: 34px;
		height: 34px;
	}
}

@media (max-width: 480px) {
	.rr-cat-hero-features {
		grid-template-columns: 1fr;
	}
}
