/* ViandPro Category Hero */
.vpch-active .woocommerce-products-header {
	display: none;
}

/* Blocksy renders its own archive title/thumbnail hero above WooCommerce.
   Hide it only when a ViandPro category hero is active. */
.vpch-active .hero-section {
	display: none !important;
}

.vpch-hero {
	--vpch-accent: #c86f2b;
	--vpch-dark: #172231;

	position: relative;
	width: 100vw;
	min-height: 360px;
	margin-left: calc(50% - 50vw);
	margin-bottom: 34px;
	display: flex;
	align-items: stretch;
	overflow: hidden;
	background-color: var(--vpch-dark);
	color: #fff;
}

.vpch-hero-bg {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}

.vpch-hero.vpch-focal-left .vpch-hero-bg {
	background-position: left center;
}

.vpch-hero.vpch-focal-right .vpch-hero-bg {
	background-position: right center;
}

.vpch-hero-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			90deg,
			rgba(10, 18, 28, .82) 0%,
			rgba(10, 18, 28, .68) 34%,
			rgba(10, 18, 28, .30) 66%,
			rgba(10, 18, 28, .08) 100%
		);
}

.vpch-hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 34px 30px 54px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.vpch-breadcrumbs {
	min-height: 28px;
	margin-bottom: 42px;
}

.vpch-breadcrumbs .woocommerce-breadcrumb {
	margin: 0 !important;
	color: rgba(255,255,255,.64) !important;
	font-size: 12px !important;
	line-height: 1.4;
}

.vpch-breadcrumbs .woocommerce-breadcrumb a {
	color: rgba(255,255,255,.78) !important;
	text-decoration: none;
}

.vpch-breadcrumbs .woocommerce-breadcrumb a:hover {
	color: #fff !important;
}

.vpch-breadcrumb-separator {
	display: inline-block;
	margin: 0 8px;
	color: rgba(255,255,255,.36);
}

.vpch-copy {
	max-width: 700px;
	padding: 18px 0;
}

.vpch-kicker {
	margin: 0 0 10px;
	color: var(--vpch-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.8px;
	text-transform: uppercase;
}

.vpch-copy h1 {
	margin: 0 0 15px !important;
	color: #fff !important;
	font-size: clamp(36px, 5vw, 56px) !important;
	line-height: 1.08 !important;
	font-weight: 700 !important;
	letter-spacing: -.7px;
}

.vpch-intro {
	max-width: 650px;
	color: rgba(255,255,255,.90);
	font-size: 16px;
	line-height: 1.7;
}

.vpch-intro p {
	margin: 0 0 10px;
}

.vpch-intro p:last-child {
	margin-bottom: 0;
}

/* Lower SEO content */
.vpch-seo {
	clear: both;
	margin: 56px 0 10px;
	padding: 46px 0 8px;
	border-top: 1px solid #e5e5e1;
}

.vpch-seo-inner {
	max-width: 980px;
	margin: 0 auto;
}

.vpch-seo h2 {
	margin: 0 0 18px !important;
	color: #172231 !important;
	font-size: clamp(25px, 3vw, 33px) !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
}

.vpch-seo-content {
	color: #515960;
	font-size: 15px;
	line-height: 1.75;
}

.vpch-seo-content p {
	margin: 0 0 16px;
}

.vpch-seo-content h2,
.vpch-seo-content h3,
.vpch-seo-content h4 {
	color: #172231;
	margin-top: 28px;
	margin-bottom: 10px;
}

.vpch-seo-content h3 {
	font-size: 20px;
}

.vpch-seo-content h4 {
	font-size: 17px;
}

.vpch-seo-content ul,
.vpch-seo-content ol {
	margin: 12px 0 18px;
	padding-left: 22px;
}

.vpch-seo-content li {
	margin-bottom: 6px;
}

.vpch-seo-content a {
	color: #c86f2b;
}

@media (max-width: 900px) {
	.vpch-hero {
		min-height: 350px;
		margin-bottom: 30px;
	}

	.vpch-hero-shade {
		background: rgba(10, 18, 28, .60);
	}

	.vpch-hero-inner {
		padding: 26px 22px 42px;
	}

	.vpch-breadcrumbs {
		margin-bottom: 30px;
	}

	.vpch-seo {
		margin-top: 42px;
		padding-top: 34px;
	}

	.vpch-seo-inner {
		padding: 0 20px;
	}
}

@media (max-width: 600px) {
	.vpch-hero {
		min-height: 320px;
	}

	.vpch-copy h1 {
		font-size: 36px !important;
	}

	.vpch-intro {
		font-size: 15px;
		line-height: 1.6;
	}

	.vpch-breadcrumbs {
		display: none;
	}
}

/* Child product category navigation */
.vpch-subcats {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-bottom: 34px;
	padding: 28px 24px 2px;
	background: #fff;
}
.vpch-subcats-inner { max-width: 1240px; margin: 0 auto; }
.vpch-subcats-head { margin-bottom: 17px; }
.vpch-subcats-kicker {
	margin-bottom: 4px;
	color: #c86f2b;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}
.vpch-subcats-head h2 {
	margin: 0 !important;
	color: #172231 !important;
	font-size: 24px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
}
.vpch-subcats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0,1fr));
	gap: 14px;
}
.vpch-subcat-card {
	display: grid;
	grid-template-columns: 94px minmax(0,1fr);
	min-height: 94px;
	overflow: hidden;
	border: 1px solid #e2e4e5;
	background: #fff;
	color: #172231 !important;
	text-decoration: none !important;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.vpch-subcat-card:hover {
	transform: translateY(-2px);
	border-color: #c8cdd0;
	box-shadow: 0 7px 20px rgba(23,34,49,.07);
}
.vpch-subcat-media { position: relative; overflow: hidden; background: #f5f5f2; }
.vpch-subcat-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	object-fit: cover;
	transition: transform .28s ease;
}
.vpch-subcat-card:hover .vpch-subcat-media img { transform: scale(1.035); }
.vpch-subcat-placeholder {
	width: 100%;
	height: 100%;
	min-height: 94px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9ca2a7;
}
.vpch-subcat-placeholder svg { width: 27px; height: 27px; stroke: currentColor; }
.vpch-subcat-copy {
	position: relative;
	min-width: 0;
	padding: 17px 36px 15px 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.vpch-subcat-copy h3 {
	margin: 0 0 3px !important;
	color: #172231 !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
}
.vpch-subcat-count { color: #7a8289; font-size: 11px; line-height: 1.4; }
.vpch-subcat-arrow {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #c86f2b;
	font-size: 19px;
	line-height: 1;
	transition: transform .18s ease;
}
.vpch-subcat-card:hover .vpch-subcat-arrow { transform: translate(3px,-50%); }
@media (max-width: 1050px) {
	.vpch-subcats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
	.vpch-subcats { padding: 24px 16px 2px; margin-bottom: 28px; }
	.vpch-subcats-head h2 { font-size: 21px !important; }
	.vpch-subcats-grid { grid-template-columns: 1fr; gap: 10px; }
	.vpch-subcat-card { grid-template-columns: 82px minmax(0,1fr); min-height: 82px; }
	.vpch-subcat-placeholder { min-height: 82px; }
	.vpch-subcat-copy { padding-top: 13px; padding-bottom: 13px; }
}
