/* ============================================================
   Curated category overview (纵览) pages
   ============================================================ */

.ei-cat-overview {
	color: #f7ecd5;
	background: linear-gradient(180deg, #08050d 0%, #160720 48%, #09050f 100%);
	font-family: var(--ei-body-font);
}

/* hero */
.ei-cat-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: 620px;
	overflow: hidden;
	isolation: isolate;
}

.ei-cat-hero > img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.72) saturate(1.06);
}

.ei-cat-hero::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
	background:
		linear-gradient(90deg, rgba(7, 6, 18, 0.92), rgba(7, 6, 18, 0.55) 52%, rgba(7, 6, 18, 0.14)),
		linear-gradient(180deg, rgba(7, 6, 18, 0), rgba(7, 6, 18, 0.86));
}

.ei-cat-hero__inner {
	position: relative;
	z-index: 2;
	width: min(100% - 48px, 1360px);
	margin-inline: auto;
	padding: 128px 0 84px;
}

.ei-cat-hero .woocommerce-breadcrumb {
	margin: 0 0 18px;
	color: rgba(247, 236, 213, 0.72);
	font-family: var(--ei-ui-font);
	font-size: 0.82rem;
}

.ei-cat-hero .woocommerce-breadcrumb a {
	color: #f2d690;
	text-decoration: none;
}

.ei-cat-kicker {
	margin: 0 0 10px;
	color: #d8a743;
	font-family: var(--ei-ui-font);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ei-cat-hero h1 {
	max-width: 780px;
	margin: 0;
	color: #f2d690;
	font-family: var(--ei-heading-font);
	font-size: clamp(2.6rem, 5vw, 4rem);
	font-weight: 500;
	line-height: 1.02;
}

.ei-cat-hero__lead {
	max-width: 620px;
	margin: 20px 0 0;
	color: rgba(247, 236, 213, 0.85);
	font-size: 1.14rem;
	line-height: 1.55;
}

.ei-cat-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 30px;
	min-height: 48px;
	padding: 13px 26px;
	border: 1px solid rgba(255, 231, 172, 0.52);
	border-radius: 8px;
	color: #1c0b14;
	font-family: var(--ei-ui-font);
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
	background: linear-gradient(180deg, #f2c769, #b97925);
	transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.ei-cat-btn:hover,
.ei-cat-btn:focus-visible {
	transform: translateY(-1px);
	filter: brightness(1.07);
	box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34), 0 0 22px rgba(216, 167, 67, 0.18);
}

/* grid */
.ei-cat-grid-section {
	padding: 86px 0;
}

.ei-cat-grid-section .ei-container {
	width: min(100% - 28px, 1360px);
	margin-inline: auto;
}

.ei-cat-center {
	text-align: center;
}

.ei-cat-heading {
	margin: 6px 0 42px;
	color: #f2d690;
	font-family: var(--ei-heading-font);
	font-size: clamp(1.9rem, 3.2vw, 2.6rem);
	font-weight: 500;
	line-height: 1.08;
	text-align: center;
}

.ei-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.ei-cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(216, 167, 67, 0.32);
	border-radius: 12px;
	color: #f7ecd5;
	text-decoration: none;
	background: #0a0611;
	box-shadow: 0 22px 46px rgba(0, 0, 0, 0.32);
	transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.ei-cat-card > img {
	display: block;
	width: 100%;
	aspect-ratio: 1.2 / 1;
	object-fit: cover;
	filter: brightness(0.92) saturate(1.05);
	transition: transform 560ms ease, filter 560ms ease;
}

.ei-cat-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	padding: 22px 22px 24px;
}

.ei-cat-card__num {
	color: #d8a743;
	font-family: var(--ei-ui-font);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.ei-cat-card strong {
	color: #f2d690;
	font-family: var(--ei-heading-font);
	font-size: 1.34rem;
	font-weight: 600;
	line-height: 1.1;
}

.ei-cat-card em {
	color: rgba(247, 236, 213, 0.8);
	font-size: 0.98rem;
	font-style: normal;
	line-height: 1.42;
}

.ei-cat-card__link {
	margin-top: auto;
	padding-top: 10px;
	color: #d8a743;
	font-family: var(--ei-ui-font);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.03em;
}

.ei-cat-card:hover,
.ei-cat-card:focus-visible {
	border-color: rgba(246, 216, 145, 0.72);
	box-shadow: 0 26px 54px rgba(0, 0, 0, 0.42), 0 0 26px rgba(216, 167, 67, 0.12);
	transform: translateY(-3px);
}

.ei-cat-card:hover > img {
	transform: scale(1.05);
	filter: brightness(1) saturate(1.12);
}

@media (max-width: 1080px) {
	.ei-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.ei-cat-hero {
		min-height: 520px;
	}

	.ei-cat-hero__inner {
		width: min(100% - 20px, 1360px);
		padding: 112px 0 56px;
	}

	.ei-cat-grid-section {
		padding: 54px 0;
	}

	.ei-cat-grid {
		grid-template-columns: 1fr;
	}
}
