.term-vitality-flow,
.term-deep-grounding,
.term-radiant-glow,
.term-dream-sanctuary {
	background: #14061b;
}

.term-vitality-flow .ei-site-main,
.term-deep-grounding .ei-site-main,
.term-radiant-glow .ei-site-main,
	.term-dream-sanctuary .ei-site-main {
	background: linear-gradient(180deg, #110519 0%, #1a0723 42%, #120516 100%);
}

.herbal-energy-page {
	--herbal-bg: #16071d;
	--herbal-bg-2: #220a2c;
	--herbal-panel: rgba(24, 8, 30, 0.92);
	--herbal-gold: #d8a743;
	--herbal-gold-soft: #f3d490;
	--herbal-gold-dark: #8f6123;
	--herbal-ink: #170b10;
	--herbal-text: #f6e7c8;
	--herbal-muted: #cfb783;
	--herbal-border: rgba(216, 167, 67, 0.58);
	--herbal-accent: #a84545;
	color: var(--herbal-text);
	font-family: var(--ei-body-font);
	background: var(--herbal-bg);
}

.herbal-energy-page--black {
	--herbal-bg: #09040e;
	--herbal-bg-2: #16071d;
	--herbal-accent: #7f7782;
}

.herbal-energy-page--purple {
	--herbal-accent: #9d61d1;
}

.herbal-energy-page--green {
	--herbal-accent: #65946b;
}

.herbal-container {
	width: min(100% - 24px, 1320px);
	margin-inline: auto;
}

.herbal-hero {
	position: relative;
	min-height: 540px;
	overflow: hidden;
	isolation: isolate;
	background: var(--herbal-bg);
}

.herbal-hero::before,
.herbal-hero::after {
	position: absolute;
	inset: 0;
	content: "";
	pointer-events: none;
}

.herbal-hero::before {
	z-index: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	filter: saturate(1.08) contrast(1.08) brightness(0.96);
}

.herbal-energy-page--vitality-flow .herbal-hero::before {
	background-image: url("../images/herbal-energy/vitality-flow/hero.jpg");
}

.herbal-energy-page--deep-grounding .herbal-hero::before {
	background-image: url("../images/herbal-energy/deep-grounding/hero.jpg");
}

.herbal-energy-page--radiant-glow .herbal-hero::before {
	background-image: url("../images/herbal-energy/radiant-glow/hero.jpg");
}

.herbal-energy-page--dream-sanctuary .herbal-hero::before {
	background-image: url("../images/herbal-energy/dream-sanctuary/hero.jpg");
}

.herbal-hero::after {
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(16, 5, 23, 0.95) 0%, rgba(16, 5, 23, 0.76) 28%, rgba(16, 5, 23, 0.14) 62%, rgba(16, 5, 23, 0.02) 100%),
		linear-gradient(180deg, rgba(16, 5, 23, 0.1) 0%, rgba(16, 5, 23, 0.02) 55%, var(--herbal-bg) 100%);
}

.herbal-hero__inner {
	position: relative;
	z-index: 2;
	width: min(100% - 48px, 1320px);
	min-height: 540px;
	margin-inline: auto;
	padding: 28px 0 54px;
}

.herbal-hero .woocommerce-breadcrumb {
	margin: 0 0 54px;
	color: rgba(246, 231, 200, 0.72);
	font-family: var(--ei-ui-font);
	font-size: 0.78rem;
}

.herbal-hero .woocommerce-breadcrumb a {
	color: rgba(246, 231, 200, 0.86);
}

.herbal-hero__copy {
	max-width: 500px;
}

.herbal-kicker {
	margin: 0 0 8px;
	color: var(--herbal-gold-soft);
	font-family: var(--ei-ui-font);
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
}

.herbal-hero h1 {
	margin: 0;
	color: #f5c978;
	font-family: var(--ei-heading-font);
	font-size: 4.15rem;
	font-weight: 500;
	line-height: 1;
	text-shadow: 0 0 30px rgba(216, 167, 67, 0.18);
}

.herbal-hero__chinese {
	display: inline-flex;
	margin: 14px 0 18px;
	padding: 5px 18px;
	border: 1px solid var(--herbal-gold);
	border-radius: 6px;
	color: var(--herbal-gold-soft);
	font-size: 1.18rem;
	line-height: 1.2;
}

.herbal-hero__copy > p:not(.herbal-kicker, .herbal-hero__chinese) {
	max-width: 430px;
	margin: 0 0 26px;
	color: #f7dfae;
	font-size: 1.13rem;
	line-height: 1.42;
}

.herbal-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 11px 26px;
	border: 1px solid rgba(255, 231, 172, 0.52);
	border-radius: 7px;
	color: #1c0b14;
	font-family: var(--ei-ui-font);
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
	background: linear-gradient(180deg, #f2c769, #b97925);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 244, 196, 0.32);
	transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.herbal-button:hover,
.herbal-button:focus-visible {
	color: #10060d;
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34), 0 0 22px rgba(216, 167, 67, 0.18);
}

.herbal-need-band {
	position: relative;
	padding: 22px 0 26px;
	overflow: hidden;
	color: #170c0c;
	background-color: #d8a743;
	background-position: center;
	background-size: cover;
}

.herbal-energy-page--vitality-flow .herbal-need-band {
	background-image: url("../images/herbal-energy/vitality-flow/gold-band.jpg");
}

.herbal-energy-page--deep-grounding .herbal-need-band {
	background-image: url("../images/herbal-energy/deep-grounding/gold-band.jpg");
}

.herbal-energy-page--radiant-glow .herbal-need-band {
	background-image: url("../images/herbal-energy/radiant-glow/gold-band.jpg");
}

.herbal-energy-page--dream-sanctuary .herbal-need-band {
	background-image: url("../images/herbal-energy/dream-sanctuary/gold-band.jpg");
}

.herbal-need-band::after {
	position: absolute;
	inset: 0;
	content: "";
	pointer-events: none;
	background: linear-gradient(90deg, rgba(255, 237, 180, 0.38), rgba(255, 213, 111, 0.2));
}

.herbal-need-band .herbal-container {
	position: relative;
	z-index: 1;
}

.herbal-need-band h2,
.herbal-cta h2,
.herbal-related h2 {
	margin: 0 0 18px;
	text-align: center;
	font-family: var(--ei-heading-font);
	font-size: 1.85rem;
	font-weight: 500;
	line-height: 1.1;
}

.herbal-need-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 0;
}

.herbal-need {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 8px;
	min-height: 98px;
	padding: 0 18px;
	text-align: center;
	border-right: 1px solid rgba(56, 32, 12, 0.34);
}

.herbal-need:last-child {
	border-right: 0;
}

.herbal-need .ei-icon {
	width: 34px;
	height: 34px;
	color: #32180d;
}

.herbal-need__icon-image {
	display: block;
	width: 46px;
	height: 46px;
	object-fit: contain;
	filter: drop-shadow(0 1px 0 rgba(255, 238, 178, 0.26));
}

.herbal-need span {
	max-width: 170px;
	font-family: var(--ei-ui-font);
	font-size: 0.85rem;
	font-weight: 800;
	line-height: 1.14;
}

.herbal-ingredients {
	padding: 26px 0 32px;
	background: #15061d;
}

/*
 * Flex + centre rather than a fixed six-track grid: series carrying fewer than
 * six stones (every Soul & Paw pairing has four) otherwise hug the left edge and
 * leave two dead tracks on the right. The basis reproduces the old 6-up track
 * width, so six-stone series are pixel-identical to before.
 */
.herbal-ingredients__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
}

.herbal-ingredient {
	flex: 0 0 calc((100% - 5 * 22px) / 6);
	display: grid;
	justify-items: center;
	gap: 12px;
	min-width: 0;
	text-align: center;
}

.herbal-ingredient img {
	width: min(100%, 118px);
	aspect-ratio: 1;
	box-sizing: border-box;
	object-fit: contain;
	padding: 10px;
	border: 1px solid var(--herbal-gold);
	border-radius: 50%;
	background: #07050a;
	box-shadow: 0 0 0 5px rgba(216, 167, 67, 0.08), 0 14px 28px rgba(0, 0, 0, 0.32);
}

.herbal-ingredient span {
	color: var(--herbal-gold);
	font-size: 1.04rem;
	line-height: 1.2;
}

.herbal-wearing {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--herbal-border);
	border-bottom: 1px solid var(--herbal-border);
	background: #08040b;
}

.herbal-wearing img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-right: 1px solid rgba(216, 167, 67, 0.44);
}

.herbal-wearing img:last-child {
	border-right: 0;
}

.herbal-gold-wrap {
	padding: 46px 0 42px;
	color: var(--herbal-ink);
	background-color: #d7a949;
	background-position: center;
	background-size: cover;
}

.herbal-energy-page--vitality-flow .herbal-gold-wrap {
	background-image: linear-gradient(rgba(216, 167, 67, 0.74), rgba(216, 167, 67, 0.74)), url("../images/herbal-energy/vitality-flow/gold-texture.jpg");
}

.herbal-energy-page--deep-grounding .herbal-gold-wrap {
	background-image: linear-gradient(rgba(216, 167, 67, 0.74), rgba(216, 167, 67, 0.74)), url("../images/herbal-energy/deep-grounding/gold-texture.jpg");
}

.herbal-energy-page--radiant-glow .herbal-gold-wrap {
	background-image: linear-gradient(rgba(216, 167, 67, 0.74), rgba(216, 167, 67, 0.74)), url("../images/herbal-energy/radiant-glow/gold-texture.jpg");
}

.herbal-energy-page--dream-sanctuary .herbal-gold-wrap {
	background-image: linear-gradient(rgba(216, 167, 67, 0.74), rgba(216, 167, 67, 0.74)), url("../images/herbal-energy/dream-sanctuary/gold-texture.jpg");
}

.herbal-notices {
	margin-bottom: 18px;
}

.herbal-product {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
	gap: 34px;
	align-items: center;
}

.herbal-product__gallery,
.herbal-product__summary {
	min-width: 0;
}

.herbal-product__main {
	display: block;
	width: 100%;
	aspect-ratio: 1.44 / 1;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 18px 36px rgba(61, 36, 11, 0.24);
}

.herbal-product__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.herbal-product__thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1.45 / 1;
	object-fit: cover;
	border: 1px solid rgba(52, 29, 12, 0.34);
	border-radius: 7px;
}

.herbal-product__heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.herbal-product h2 {
	margin: 0;
	color: #2a140b;
	font-family: var(--ei-heading-font);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.05;
}

.herbal-product__heading span {
	flex: 0 0 auto;
	padding: 4px 10px;
	border: 1px solid #5f3513;
	border-radius: 999px;
	color: #341807;
	font-family: var(--ei-ui-font);
	font-size: 0.74rem;
	font-weight: 800;
}

.herbal-tags,
.herbal-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.herbal-tags span {
	padding: 7px 12px;
	border: 1px solid rgba(55, 29, 10, 0.4);
	border-radius: 999px;
	font-family: var(--ei-ui-font);
	font-size: 0.78rem;
	font-weight: 700;
}

.herbal-product__summary p {
	margin: 0 0 13px;
	color: #281307;
	font-size: 0.94rem;
	line-height: 1.35;
}

.herbal-purchase {
	display: grid;
	grid-template-columns: auto minmax(190px, 280px);
	gap: 18px;
	align-items: center;
	margin: 22px 0 10px;
}

.herbal-price {
	color: #2a1208;
	font-family: var(--ei-ui-font);
	font-size: 1.42rem;
	font-weight: 800;
}

.herbal-button--cart {
	width: 100%;
	min-height: 42px;
	padding-inline: 20px;
}

.herbal-shipping {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 20px;
	padding: 4px 12px;
	border-radius: 999px;
	color: #563316;
	background: rgba(255, 243, 206, 0.42);
	font-family: var(--ei-ui-font);
	font-size: 0.78rem;
	font-weight: 700;
}

.herbal-shipping .ei-icon {
	width: 16px;
	height: 16px;
}

.herbal-trust {
	margin: 22px 0 0;
}

.herbal-trust span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #271207;
	font-family: var(--ei-ui-font);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.1;
}

.herbal-trust .ei-icon {
	width: 24px;
	height: 24px;
	color: #35200d;
}

.herbal-related {
	padding: 38px 0 34px;
	background: linear-gradient(180deg, #17071f, #100413);
}

.herbal-related h2,
.herbal-cta h2 {
	display: table;
	margin-inline: auto;
	padding: 8px 72px;
	border: 1px solid rgba(255, 232, 166, 0.42);
	border-radius: 7px;
	color: #210f07;
	background: linear-gradient(180deg, #f0c56e, #ad7229);
	box-shadow: inset 0 1px 0 rgba(255, 246, 206, 0.35);
}

.herbal-related__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px;
	padding: 22px 18px 18px;
	border: 1px solid rgba(216, 167, 67, 0.5);
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(33, 11, 44, 0.84), rgba(16, 5, 23, 0.96));
}

/*
 * Flex column, not grid: product names run one to three lines, and with rows packed
 * to the top the price and Add to cart button landed at a different height in every
 * card. The auto margin pushes the button to the card bottom so a row lines up.
 */
.herbal-related-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 0;
	text-align: center;
}

.herbal-related-card__price {
	margin-top: auto;
}

/*
 * Child combinator, not descendant: this styles the card's image link only. As a
 * descendant selector it also caught the title's own link (first child of its h3)
 * and rendered the product name inside a clipped 150px circle.
 */
.herbal-related-card > a:first-child {
	display: block;
	flex-shrink: 0;
	width: min(100%, 150px);
	aspect-ratio: 1;
	border: 1px solid var(--herbal-gold);
	border-radius: 50%;
	background: #08040b;
	overflow: hidden;
}

.herbal-related-card h3 a {
	color: inherit;
	text-decoration: none;
}

.herbal-related-card h3 a:hover,
.herbal-related-card h3 a:focus-visible {
	text-decoration: underline;
}

.herbal-related-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.herbal-related-card h3 {
	min-height: 2.5em;
	margin: 0;
	color: #f5d78e;
	font-family: var(--ei-heading-font);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.15;
}

.herbal-related-card p {
	min-height: 2.4em;
	margin: 0;
	color: #d8c09a;
	font-size: 0.78rem;
	line-height: 1.2;
}

.herbal-related-card__price {
	color: #f2c769;
	font-family: var(--ei-ui-font);
	font-size: 0.95rem;
	font-weight: 800;
}

.herbal-related-card .herbal-button {
	min-height: 30px;
	padding: 6px 13px;
	font-size: 0.72rem;
}

.herbal-cta {
	padding: 0 0 46px;
	background: #14061d;
}

.herbal-cta__grid {
	display: grid;
	/* Fill the row evenly whether there are 3 or 4 cards (no empty phantom column). */
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.herbal-cta-card {
	position: relative;
	display: grid;
	min-height: 138px;
	overflow: hidden;
	border: 1px solid rgba(216, 167, 67, 0.62);
	border-radius: 8px;
	color: #f7dfae;
	text-decoration: none;
	background: #08040b;
}

.herbal-cta-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.72) saturate(1.05);
	transition: transform 520ms ease, filter 520ms ease;
}

.herbal-cta-card::after {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(90deg, rgba(14, 5, 19, 0.86), rgba(14, 5, 19, 0.2));
}

.herbal-cta-card span {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	/* Anchor the button to the bottom so it lines up across cards even when the
	   title wraps to a second line (cards stretch to equal height in the grid). */
	justify-content: flex-end;
	gap: 10px;
	min-height: 138px;
	padding: 20px;
}

.herbal-cta-card strong {
	max-width: 230px;
	font-family: var(--ei-heading-font);
	font-size: 1.14rem;
	font-weight: 600;
	line-height: 1.1;
}

.herbal-cta-card em {
	display: inline-flex;
	width: fit-content;
	padding: 7px 12px;
	border-radius: 999px;
	color: #1c0b14;
	font-family: var(--ei-ui-font);
	font-size: 0.76rem;
	font-style: normal;
	font-weight: 800;
	background: linear-gradient(180deg, #f2c769, #b97925);
}

.herbal-cta-card:hover img,
.herbal-cta-card:focus-visible img {
	filter: brightness(0.86) saturate(1.12);
	transform: scale(1.04);
}

@media (max-width: 1180px) {
	.herbal-related__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.herbal-ingredient {
		flex-basis: calc((100% - 2 * 22px) / 3);
	}

	.herbal-product {
		grid-template-columns: 1fr;
	}

	.herbal-product__main {
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 900px) {
	.herbal-hero,
	.herbal-hero__inner {
		min-height: 500px;
	}

	.herbal-hero::after {
		background:
			linear-gradient(90deg, rgba(16, 5, 23, 0.95), rgba(16, 5, 23, 0.58)),
			linear-gradient(180deg, rgba(16, 5, 23, 0.04), var(--herbal-bg));
	}

	.herbal-hero h1 {
		font-size: 3.05rem;
	}

	.herbal-need-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 0;
	}

	.herbal-need:nth-child(even) {
		border-right: 0;
	}

	.herbal-wearing,
	.herbal-cta__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.herbal-container,
	.herbal-hero__inner {
		width: min(100% - 20px, 1320px);
	}

	.herbal-hero,
	.herbal-hero__inner {
		min-height: 480px;
	}

	.herbal-hero__inner {
		padding-top: 18px;
	}

	.herbal-hero .woocommerce-breadcrumb {
		margin-bottom: 38px;
		font-size: 0.72rem;
	}

	.herbal-hero h1 {
		font-size: 2.35rem;
	}

	.herbal-hero__chinese {
		font-size: 1rem;
	}

	.herbal-hero__copy > p:not(.herbal-kicker, .herbal-hero__chinese) {
		font-size: 1rem;
	}

	.herbal-need-band h2,
	.herbal-cta h2,
	.herbal-related h2 {
		font-size: 1.35rem;
	}

	.herbal-related h2,
	.herbal-cta h2 {
		display: block;
		padding-inline: 20px;
	}

	.herbal-need-grid,
	.herbal-related__grid,
	.herbal-wearing,
	.herbal-cta__grid {
		grid-template-columns: 1fr;
	}

	.herbal-need {
		min-height: 76px;
		border-right: 0;
		border-bottom: 1px solid rgba(56, 32, 12, 0.24);
	}

	.herbal-need:last-child {
		border-bottom: 0;
	}

	.herbal-ingredient {
		flex-basis: calc((100% - 22px) / 2);
	}

	.herbal-wearing img {
		border-right: 0;
		border-bottom: 1px solid rgba(216, 167, 67, 0.44);
	}

	.herbal-product {
		gap: 24px;
	}

	.herbal-product__thumbs,
	.herbal-purchase {
		grid-template-columns: 1fr 1fr;
	}

	.herbal-product h2 {
		font-size: 1.55rem;
	}

	.herbal-product__heading {
		display: grid;
	}

	.herbal-purchase {
		align-items: stretch;
	}

	.herbal-button--cart {
		min-width: 0;
	}

	.herbal-related__grid {
		padding-inline: 12px;
	}
}

@media (max-width: 430px) {
	.herbal-product__thumbs,
	.herbal-purchase {
		grid-template-columns: 1fr;
	}

	.herbal-ingredient {
		flex-basis: 100%;
	}
}

/* ============================================================
   粉水晶效果图 parity (细节问题.docx 二): zoomable main image,
   4 sub-variant thumbs that swap the main, sliding wearing carousel.
   ============================================================ */
.herbal-product__stage {
	position: relative;
	cursor: zoom-in;
	border-radius: 18px;
	overflow: hidden;
}
.herbal-product__stage .herbal-product__main {
	display: block;
	width: 100%;
	transition: transform 600ms ease;
}
.herbal-product__stage:hover .herbal-product__main { transform: scale(1.03); }
.herbal-product__zoom-hint {
	position: absolute;
	bottom: 10px;
	right: 10px;
	padding: 5px 11px;
	font-size: 0.68rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff5e6;
	background: rgba(30, 12, 10, 0.66);
	border: 1px solid rgba(255, 210, 170, 0.4);
	border-radius: 999px;
	pointer-events: none;
}
.herbal-thumb {
	padding: 0;
	background: none;
	border: 2px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 180ms ease, transform 180ms ease;
}
.herbal-thumb:hover { transform: translateY(-2px); }
.herbal-thumb.is-active { border-color: currentColor; }
.herbal-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/*
 * Thumbs are links to each sub-variant's own product page, so they need to read
 * as such: name the destination instead of leaving four unlabelled swatches.
 */
.herbal-thumb {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

/*
 * The grid stretches each thumb to the row height; a 100%-height image would then
 * eat that whole box and push the label out of the overflow:hidden corner. Let the
 * aspect-ratio drive the image height and leave the label its own strip.
 */
.herbal-thumb img {
	height: auto;
}

.herbal-thumb__label {
	margin-top: auto;
}

.herbal-thumb__label {
	display: block;
	padding: 5px 6px 6px;
	font-size: 0.68rem;
	line-height: 1.25;
	text-align: center;
	background: rgba(7, 5, 10, 0.72);
	color: #f2e6cf;
}

.herbal-thumb:hover .herbal-thumb__label,
.herbal-thumb:focus-visible .herbal-thumb__label {
	background: rgba(216, 167, 67, 0.9);
	color: #1b1208;
}

.herbal-wearing__carousel { position: relative; }
.herbal-wearing__track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 2px 2px 8px;
}
.herbal-wearing__track::-webkit-scrollbar { display: none; }
.herbal-wearing__slide {
	flex: 0 0 auto;
	width: clamp(240px, 28vw, 360px);
	margin: 0;
	scroll-snap-align: start;
}
.herbal-wearing__slide img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 16px;
}
.herbal-wearing__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 46px;
	height: 46px;
	font-size: 1.6rem;
	line-height: 1;
	color: #fff5e6;
	background: rgba(30, 12, 10, 0.8);
	border: 1px solid rgba(255, 210, 170, 0.5);
	border-radius: 50%;
	display: grid;
	place-items: center;
}
.herbal-wearing__arrow--prev { left: 6px; }
.herbal-wearing__arrow--next { right: 6px; }

/* Override the old 4-col grid so the wearing carousel lays out correctly. */
.herbal-wearing {
	display: block;
	padding: clamp(30px, 4vw, 54px) 0;
}
.herbal-wearing__carousel {
	max-width: var(--ei-container, 1560px);
	margin-inline: auto;
	padding-inline: clamp(24px, 4vw, 56px);
}

/* ---- Soul & Paw series pages (herbal layout reuse) ---- */

.page .herbal-energy-page {
	margin-block-start: 0;
}

.herbal-energy-page--pink {
	--herbal-accent: #d98ba8;
}

.herbal-energy-page--white {
	--herbal-accent: #cfc8bd;
}

.herbal-energy-page--soul-guardian-series .herbal-hero::before {
	background-image: url("../images/soul-paw/soul-guardian-series/hero.jpg");
}

.herbal-energy-page--calm-together-series .herbal-hero::before {
	background-image: url("../images/soul-paw/calm-together-series/hero.jpg");
}

.herbal-energy-page--heart-bond-series .herbal-hero::before {
	background-image: url("../images/soul-paw/heart-bond-series/hero.jpg");
}

.herbal-energy-page--eternal-connection-series .herbal-hero::before {
	background-image: url("../images/soul-paw/eternal-connection-series/hero.jpg");
}

.herbal-energy-page--soul-guardian-series .herbal-need-band {
	background-image: url("../images/herbal-energy/deep-grounding/gold-band.jpg");
}

.herbal-energy-page--calm-together-series .herbal-need-band {
	background-image: url("../images/herbal-energy/radiant-glow/gold-band.jpg");
}

.herbal-energy-page--heart-bond-series .herbal-need-band {
	background-image: url("../images/herbal-energy/vitality-flow/gold-band.jpg");
}

.herbal-energy-page--eternal-connection-series .herbal-need-band {
	background-image: url("../images/herbal-energy/dream-sanctuary/gold-band.jpg");
}

.herbal-energy-page--soul-guardian-series .herbal-gold-wrap {
	background-image: linear-gradient(rgba(216, 167, 67, 0.74), rgba(216, 167, 67, 0.74)), url("../images/herbal-energy/deep-grounding/gold-texture.jpg");
}

.herbal-energy-page--calm-together-series .herbal-gold-wrap {
	background-image: linear-gradient(rgba(216, 167, 67, 0.74), rgba(216, 167, 67, 0.74)), url("../images/herbal-energy/radiant-glow/gold-texture.jpg");
}

.herbal-energy-page--heart-bond-series .herbal-gold-wrap {
	background-image: linear-gradient(rgba(216, 167, 67, 0.74), rgba(216, 167, 67, 0.74)), url("../images/herbal-energy/vitality-flow/gold-texture.jpg");
}

.herbal-energy-page--eternal-connection-series .herbal-gold-wrap {
	background-image: linear-gradient(rgba(216, 167, 67, 0.74), rgba(216, 167, 67, 0.74)), url("../images/herbal-energy/dream-sanctuary/gold-texture.jpg");
}

.herbal-energy-page .ei-sp-crystal {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--herbal-gold-dark);
	font-weight: 600;
	letter-spacing: 0.04em;
}

.herbal-energy-page .ei-sp-crystal svg {
	width: 18px;
	height: 18px;
}

.herbal-energy-page .herbal-related-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
}

/* --- Quick-buy zone specs (2026-07-24: 尺码进购物车 + 点击选中 + 加购反馈) --- */
.herbal-size-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 0;
}

.herbal-size-option {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 92px;
	padding: 9px 16px;
	color: var(--herbal-ink);
	font-family: var(--ei-ui-font);
	font-size: 0.85rem;
	background: rgba(255, 250, 235, 0.55);
	border: 1px solid rgba(56, 32, 12, 0.38);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.herbal-size-option strong {
	font-size: 1.06rem;
	line-height: 1.1;
}

.herbal-size-option.is-active {
	background: rgba(255, 250, 235, 0.92);
	border-color: var(--herbal-gold-dark);
	box-shadow: 0 0 0 1px var(--herbal-gold-dark);
}

.herbal-details-link {
	display: inline-block;
	margin: 4px 0 8px;
	color: var(--herbal-gold-dark);
	font-size: 0.94rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.herbal-details-link:hover {
	color: var(--herbal-ink);
}

/* The "View cart" link WooCommerce drops in after an AJAX add was invisible on
 * the gold panel — part of why adding felt like nothing happened. */
.herbal-purchase .added_to_cart {
	grid-column: 2;
	justify-self: center;
	color: var(--herbal-gold-dark);
	font-size: 0.9rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.herbal-button--cart.is-added-flash {
	background: #35104a;
	border-color: #35104a;
	color: #f4ddaa;
}

/* Chosen size = solid gold, matching the detail page accent. */
.herbal-size-option.is-active {
	background: linear-gradient(180deg, #f0c56e, #ad7229);
	border-color: rgba(143, 97, 35, 0.9);
	box-shadow: inset 0 1px 0 rgba(255, 246, 206, 0.4);
}
