/* Product listing pages — Branded Products / Signature Innovations
   Shares zh-product-card system from homepage.css */

body.page-template-product-listing .page-title-container {
	display: none !important;
}

.ziran-listing-wrapper,
body.page-template-product-listing .content-wrapper,
body.page-template-product-listing .content-wrapper .content {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.ziran-listing {
	font-family: "Outfit", system-ui, sans-serif;
	color: #1e293b;
	background: #fff;
}

.zh-accent {
	color: #e87722;
}

.zh-container {
	width: min(1280px, calc(100% - 48px));
	margin: 0 auto;
}

@media (min-width: 1440px) {
	.zh-container {
		width: min(1320px, calc(100% - 80px));
	}
}

/* Hero */
.zl-hero {
	position: relative;
	padding: 8.5rem 0 3.25rem;
	background:
		radial-gradient(1200px 420px at 85% -10%, rgba(232, 119, 34, 0.16), transparent 60%),
		radial-gradient(900px 360px at 10% 0%, rgba(15, 23, 42, 0.05), transparent 55%),
		linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	overflow: hidden;
}

.zl-hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #e87722;
}

.zl-hero__title {
	margin: 0 0 0.85rem;
	font-size: clamp(2.2rem, 4.5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.1;
	text-wrap: balance;
	color: #1e293b;
}

.zl-hero__subtitle {
	margin: 0 0 0.85rem;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	font-weight: 600;
	color: #334155;
	text-wrap: pretty;
}

.zl-hero__lead {
	margin: 0;
	max-width: 40rem;
	font-size: 1.02rem;
	line-height: 1.65;
	color: #64748b;
	text-wrap: pretty;
}

/* Grid section */
.zl-grid {
	padding: 1.25rem 0 4rem;
	background: #fff;
}

.zh-products__grid--listing {
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.zh-products__grid--listing {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.zh-products__grid--listing {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.35rem;
	}

	.zh-products__grid--listing .zh-product-card {
		height: 400px;
	}

	/* Single signature card shouldn't stretch full row awkwardly */
	.ziran-listing--signature .zh-products__grid--listing {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ziran-listing--signature .zh-products__grid--listing .zh-product-card {
		max-width: 360px;
	}
}

.zh-product-card--solid .zh-product-card__bg--pattern {
	background:
		radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 40%),
		radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.12), transparent 45%);
}

.zh-product-card--solid .zh-product-card__bg::after {
	background: linear-gradient(
		115deg,
		rgba(0, 0, 0, 0.28) 0%,
		rgba(0, 0, 0, 0.12) 50%,
		transparent 100%
	);
}

/* Bottom CTA */
.zl-cta {
	padding: 0 0 4.5rem;
}

.zl-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.75rem 1.75rem;
	border-radius: 1.35rem;
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	color: #fff;
}

.zl-cta__copy h2 {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: #fff;
}

.zl-cta__copy p {
	margin: 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.95rem;
	line-height: 1.5;
}

.zl-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.zl-cta .zh-btn--primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e87722;
	color: #fff !important;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	padding: 0.85rem 1.35rem;
	border-radius: 999px;
	border: none;
	box-shadow: 0 10px 22px rgba(232, 119, 34, 0.3);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.zl-cta .zh-btn--primary:hover {
	background: #d1661d;
	color: #fff !important;
	transform: translateY(-1px);
}

.zl-cta .zh-btn--outline-light {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: #fff !important;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	padding: 0.8rem 1.3rem;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.zl-cta .zh-btn--outline-light:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
	color: #fff !important;
	transform: translateY(-1px);
}

@media (max-width: 900px) {
	.zl-hero {
		padding-top: 6.5rem;
		padding-bottom: 2.5rem;
	}
}

/* Speciality Ingredients — standardized botanical product list */
.zl-specialty__table-wrap {
	border: 1px solid #e2e8f0;
	border-radius: 1.15rem;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.zl-specialty__table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.zl-specialty__table thead {
	background: #0f172a;
	color: #fff;
}

.zl-specialty__table th {
	padding: 1rem 1.25rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.zl-specialty__table td {
	padding: 1rem 1.25rem;
	border-top: 1px solid #e2e8f0;
	color: #475569;
	font-size: 0.95rem;
	line-height: 1.5;
	vertical-align: middle;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
	max-width: 100%;
}

.zl-specialty__table tbody tr:hover {
	background: #f8fafc;
}

.zl-specialty__name {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.85rem;
	max-width: 100%;
	color: #0f172a !important;
	font-weight: 700;
	text-decoration: none;
}

.zl-specialty__name span {
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.zl-specialty__name:hover {
	color: #e87722 !important;
}

.zl-specialty__name img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid #e87722;
	background: #fff;
}

.zl-specialty__table em {
	font-style: italic;
	color: #334155;
}

@media (max-width: 760px) {
	.zl-specialty__table-wrap {
		overflow: visible;
	}

	.zl-specialty__table thead {
		display: none;
	}

	.zl-specialty__table,
	.zl-specialty__table tbody,
	.zl-specialty__table tr,
	.zl-specialty__table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.zl-specialty__table tr {
		padding: 1rem 1.1rem 1.15rem;
		border-top: 1px solid #e2e8f0;
	}

	.zl-specialty__table tr:first-child {
		border-top: 0;
	}

	.zl-specialty__table td {
		padding: 0.25rem 0;
		border: 0;
	}

	.zl-specialty__table td:nth-child(2)::before {
		content: "Botanical name";
		display: block;
		font-size: 0.68rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: #94a3b8;
		margin-bottom: 0.15rem;
	}

	.zl-specialty__table td:nth-child(3)::before {
		content: "Assay";
		display: block;
		font-size: 0.68rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: #94a3b8;
		margin-bottom: 0.15rem;
	}

	.zl-specialty__name {
		display: flex;
		margin-bottom: 0.45rem;
	}
}

/* LeptoMax card — keep face visible on branded products listing */
.ziran-listing--branded .zh-product-card--leptomax .zh-product-card__img {
	object-position: 68% 8% !important;
}
