/* Approved 30 Sep 2026 layout refinements, folded into the theme kit. */
h1,
h2,
.vsc-section-header,
.vsc-section-header h1,
.vsc-section-header h2,
.vscds-home-section-heading,
.vscds-home-conversion h2,
.vscds-launch-actions,
.vscds-p1-core-intro h2,
.vscds-p1-core-card h2,
.vscds-p1-core-note h2 {
	text-wrap: balance;
}

body.home .entry-content > * {
	margin-block: 0;
}

body.home .entry-content > * + * {
	margin-top: clamp(40px, 5vw, 72px);
}

.vscds-homepage-confident-navigator .vscds-home-care-routes + .vscds-home-inclusion {
	margin-top: 16px;
}

.vscds-homepage-confident-navigator .vscds-home-inclusion + .vscds-home-inclusion-note {
	margin-top: 8px;
}

.vscds-homepage-confident-navigator .vsc-section-header + :is(.vscds-home-care-routes, .vscds-home-navigator, .vscds-home-card-grid),
.vscds-homepage-confident-navigator .vscds-home-section-heading + :is(.vscds-home-care-routes, .vscds-home-navigator, .vscds-home-card-grid) {
	margin-top: 24px;
}

.vscds-p1-core-review {
	width: min(1120px, calc(100% - 2rem));
}

.vscds-p0-visual-template .vscds-launch-hero .vscds-yuwell-product-hero {
	display: grid;
	min-height: 0;
	place-items: center;
	padding: clamp(1rem, 2.5vw, 2rem);
	background: linear-gradient(145deg, #f8f4fb, #fff);
}

.vscds-p0-visual-template .vscds-launch-hero .vscds-yuwell-product-hero img {
	width: 100%;
	height: auto;
	min-height: 0;
	max-height: 290px;
	object-fit: contain;
}

@media (min-width: 761px) {
	.vscds-homepage-confident-navigator .vscds-home-navigator > div {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vscds-p0-visual-template .vscds-brand-authority-page .vscds-launch-hero {
		grid-template-columns: minmax(0, 1.45fr) minmax(240px, .75fr);
	}
}

@media (max-width: 760px) {
	.vscds-p0-visual-template .vscds-launch-hero .vscds-yuwell-product-hero img {
		height: auto;
		max-height: 210px;
	}
}

@media (min-width: 1025px) {
	.vsc-section-header {
		width: min(1120px, calc(100% - 2rem));
		max-width: 1120px;
	}

	.vsc-section-header p {
		max-width: 800px;
	}

	.vscds-p0-visual-template .vscds-launch-hero {
		grid-template-columns: minmax(0, 1.9fr) minmax(240px, .8fr);
	}

	.vscds-p0-visual-template .vscds-brand-authority-page .vscds-launch-hero {
		grid-template-columns: minmax(0, 1.9fr) minmax(260px, .8fr);
	}

	.vscds-p0-visual-template .vscds-launch-hero h1 {
		font-size: clamp(2.35rem, 3.6vw, 3.5rem);
		letter-spacing: -.035em;
	}

	.vscds-homepage-confident-navigator .vscds-home-navigator > div {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Shop archive: approved Option 1 soft-lavender introduction. */
body.woocommerce-shop .woocommerce-products-header {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-top: 1rem;
	padding: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 5vw, 4rem) 1rem;
	border-radius: 24px;
	background: #f7f2fb;
}

body.woocommerce-shop .woocommerce-products-header::after {
	position: absolute;
	z-index: -1;
	top: -55%;
	right: -5%;
	width: min(48vw, 620px);
	height: 210%;
	background:
		radial-gradient(ellipse at 35% 48%, rgba(104, 64, 154, .11) 0 18%, transparent 19%),
		radial-gradient(ellipse at 74% 58%, rgba(104, 64, 154, .075) 0 24%, transparent 25%);
	content: '';
	transform: rotate(-8deg);
	pointer-events: none;
}

body.woocommerce-shop .woocommerce-products-header__title {
	position: relative;
	max-width: 900px;
	margin: 0;
	color: #130f2a;
	font-size: clamp(2.25rem, 4vw, 3.65rem);
	letter-spacing: -.04em;
	line-height: 1.04;
	text-wrap: balance;
}

body.woocommerce-shop .woocommerce-products-header__title::before {
	display: block;
	width: 48px;
	height: 3px;
	margin-bottom: 1rem;
	border-radius: 999px;
	background: #e7b94f;
	content: '';
}

body.woocommerce-shop .woocommerce-products-header .page-description {
	position: relative;
	max-width: 850px;
	margin-top: 1.15rem;
	color: #4e405d;
	font-size: clamp(1rem, 1.4vw, 1.12rem);
	line-height: 1.65;
}

body.woocommerce-shop .woocommerce-products-header .page-description p {
	margin: 0;
}

body.woocommerce-shop .woocommerce-products-header .page-description a {
	color: #68409a;
	font-weight: 700;
}

.vscds-product-search {
	margin: 1rem 0 1.5rem;
}
.vscds-product-search label {
	display: block;
	font-weight: 700;
	margin-bottom: .5rem;
}
.vscds-product-search__controls {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}
.vscds-product-search__controls input {
	flex: 1 1 16rem;
	min-width: 0;
	max-width: 100%;
	min-height: 48px;
}
.vscds-product-search__controls button {
	min-height: 48px;
	background: #5f3b8c;
	color: #fff;
}
.vscds-product-search__controls :focus-visible {
	outline: 3px solid #5f3b8c;
	outline-offset: 3px;
}
.vscds-launch-availability {
	font-size: 1rem;
	line-height: 1.6;
}
body.woocommerce-shop .vscds-shop-pathways {
	clear: both;
	margin: 0 0 clamp(2rem, 4vw, 3rem);
}

body.woocommerce-shop .vscds-shop-pathways__heading {
	margin-bottom: 1.5rem;
}

body.woocommerce-shop .vscds-shop-pathways__heading p {
	margin: 0 0 .35rem;
	color: #68409a;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

body.woocommerce-shop .vscds-shop-pathways__heading h2 {
	margin: 0;
	color: #130f2a;
	font-size: clamp(1.65rem, 2.8vw, 2.35rem);
	letter-spacing: -.025em;
}

body.woocommerce-shop .vscds-shop-pathways__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

body.woocommerce-shop .vscds-shop-pathway {
	display: flex;
	min-width: 0;
	min-height: 230px;
	padding: 1.35rem;
	border: 1px solid rgba(104, 64, 154, .15);
	border-top: 3px solid #e7b94f;
	border-radius: 16px;
	flex-direction: column;
	background: #fff;
	box-shadow: 0 8px 24px rgba(19, 15, 42, .055);
	color: #4e405d;
	text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.woocommerce-shop .vscds-shop-pathway:hover,
body.woocommerce-shop .vscds-shop-pathway:focus-visible {
	border-color: rgba(104, 64, 154, .35);
	box-shadow: 0 12px 30px rgba(19, 15, 42, .1);
	transform: translateY(-2px);
}

body.woocommerce-shop .vscds-shop-pathway--active {
	border-color: #68409a;
	background: #f7f2fb;
	box-shadow: 0 10px 28px rgba(19, 15, 42, .1);
}

body.woocommerce-shop .vscds-shop-pathway:focus-visible {
	outline: 3px solid #e7b94f;
	outline-offset: 3px;
}

body.woocommerce-shop .vscds-shop-pathway__number {
	margin-bottom: 1.1rem;
	color: #68409a;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .1em;
}

body.woocommerce-shop .vscds-shop-pathway strong {
	margin-bottom: .55rem;
	color: #130f2a;
	font-size: 1.15rem;
	line-height: 1.25;
}

body.woocommerce-shop .vscds-shop-pathway > span:not(.vscds-shop-pathway__number):not(.vscds-shop-pathway__action) {
	font-size: .94rem;
	line-height: 1.55;
}

body.woocommerce-shop .vscds-shop-pathway__action {
	margin-top: auto;
	padding-top: 1rem;
	color: #68409a;
	font-size: .9rem;
	font-weight: 800;
}

/* Equal-height catalogue cards keep all purchase actions on one baseline. */
body.woocommerce-shop ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.4vw, 2rem);
}

/* Legacy WooCommerce clearfix pseudo-elements otherwise occupy grid cells. */
body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after {
	content: none;
	display: none;
}

body.woocommerce-shop ul.products li.product {
	display: flex;
	float: none;
	width: auto;
	height: 100%;
	margin: 0;
	flex-direction: column;
}

body.woocommerce-shop ul.products li.product .woocommerce-LoopProduct-link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

body.woocommerce-shop ul.products li.product .button {
	align-self: flex-start;
	margin-top: auto;
}

@media (min-width: 641px) and (max-width: 1024px) {
	body.woocommerce-shop .vscds-shop-pathways__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.woocommerce-shop ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body.woocommerce-shop .woocommerce-products-header {
		border-radius: 18px;
	}

	body.woocommerce-shop .woocommerce-products-header::after {
		op: -15%;
		right: -30%;
		width: 88vw;
		height: 130%;
	}

	body.woocommerce-shop .vscds-shop-pathways__grid {
		grid-template-columns: 1fr;
	}

	body.woocommerce-shop ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.woocommerce-shop .vscds-shop-pathway {
		min-height: 0;
	}
}

@media (max-width: 480px) {
	body.woocommerce-shop ul.products {
		grid-template-columns: 1fr;
	}
}
