/* =========================================================
   VOX category hero — modern banner above product grid
   ========================================================= */

.vox-cat-hero {
	position: relative;
	margin: 0 0 28px;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
	isolation: isolate;
}

.vox-cat-hero--gradient {
	background: linear-gradient(125deg, #141414 0%, #252525 38%, #3d1215 72%, #ee1d23 130%);
}

.vox-cat-hero--has-image {
	background: #1a1a1a;
}

.vox-cat-hero__media {
	position: relative;
	aspect-ratio: 21 / 8;
	min-height: 200px;
	max-height: 420px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.vox-cat-hero__media--gradient {
	background:
		linear-gradient(125deg, #141414 0%, #252525 38%, #3d1215 72%, #ee1d23 130%),
		radial-gradient(circle at 85% 20%, rgba(238, 29, 35, 0.35) 0%, transparent 55%);
}

.vox-cat-hero__media--image {
	background-color: #1a1a1a;
}

.vox-cat-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 1 !important;
	transform: scale(1.02);
	transition: transform 0.6s ease;
}

/* LiteSpeed lazy-load keeps data-src after load — Kallyas would hide these. */
.vox-cat-hero__img[data-src],
.vox-cat-hero__img[data-lazyloaded],
.vox-cat-hero__img.litespeed-loaded,
.vox-cat-hero__img.entered {
	opacity: 1 !important;
}

.vox-cat-hero:hover .vox-cat-hero__img {
	transform: scale(1.05);
}

.vox-cat-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 42%, rgba(0, 0, 0, 0.12) 100%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, transparent 58%),
		linear-gradient(135deg, rgba(238, 29, 35, 0.12) 0%, transparent 45%);
	pointer-events: none;
}

.vox-cat-hero__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 28px 32px;
	color: #fff;
}

.vox-cat-hero__eyebrow {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

.vox-cat-hero__title {
	margin: 0;
	font-size: clamp(24px, 4vw, 42px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: #fff;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* Hide duplicate Kallyas page title — hero is the H1. */
.vox-has-cat-hero .zn_woo_archive_elemenent > .page-title,
.vox-has-cat-hero .woocommerce-products-header__title,
.vox-has-cat-hero .page-header .page-title {
	display: none !important;
}

/* Keep hero inside Kallyas shop column */
.woocommerce .vox-cat-hero,
.woocommerce-page .vox-cat-hero {
	width: 100%;
}

/* Space before term description text */
.vox-cat-hero + .term-description {
	margin-top: 4px;
}

@media (max-width: 767px) {
	.vox-cat-hero {
		margin-bottom: 20px;
		border-radius: 14px;
	}

	.vox-cat-hero__media {
		aspect-ratio: 16 / 10;
		min-height: 180px;
		max-height: 280px;
	}

	.vox-cat-hero__content {
		padding: 18px 16px 20px;
	}

	.vox-cat-hero__eyebrow {
		font-size: 10px;
		margin-bottom: 6px;
	}

	.vox-cat-hero__title {
		font-size: 22px;
	}
}
