/*
 * Novus DNA – shop and category pages, and the product grids and stack
 * sections on product pages (inc/shop.php, template-parts/shop/archive.php,
 * template-parts/product/stack-contents.php and in-stacks.php).
 */

/* ---------------------------------------------------------------
 * Grid of cards
 * ------------------------------------------------------------- */
.nv-grid {
	display: grid;
	gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-grid--cards {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}

.nv-grid > li {
	min-inline-size: 0;
}

/* Two columns on phones: shoppers compare products side by side. */
@media (max-width: 39.99em) {
	.nv-grid--cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nv-grid--cards .nv-card__body {
		padding: 0.75rem 0.75rem 0.85rem;
	}

	.nv-grid--cards .nv-card__title {
		font-size: 0.9375rem;
	}

	.nv-grid--cards .nv-card__subtitle {
		font-size: 0.8125rem;
	}

	/* A single card uses the full width rather than half of it. */
	.nv-grid--cards > li:only-child {
		grid-column: 1 / -1;
		max-inline-size: 22rem;
	}

	/* The "3 products" label stays; the names are on the stack's page. */
	.nv-grid--cards .nv-card__includes {
		display: none;
	}

	.nv-grid--cards .nv-card__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.nv-grid--cards .nv-card__footer .nv-button {
		inline-size: 100%;
		white-space: normal;
	}
}

/* What a stack contains, on its card. */
.nv-card__includes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.75rem;
}

.nv-card__includes li {
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: var(--nv-paper);
	color: var(--nv-ink);
	font-weight: 500;
	line-height: 1.5;
}

/* ---------------------------------------------------------------
 * Shop and category pages
 * ------------------------------------------------------------- */
.nv-shop {
	background: #fff;
}

.nv-shop__hero {
	padding-block: 0 clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
	background:
		radial-gradient(ellipse 60% 120% at 100% 0%, rgba(0, 181, 203, 0.1), transparent 70%),
		radial-gradient(ellipse 50% 100% at 85% 100%, rgba(230, 0, 126, 0.07), transparent 70%),
		var(--nv-paper);
}

.nv-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding-block: 1.1rem clamp(1.5rem, 1rem + 2vw, 2.5rem);
	color: var(--nv-muted);
	font-size: 0.8125rem;
}

.nv-crumbs a {
	color: inherit;
	text-decoration: none;
}

.nv-crumbs a:hover {
	color: var(--nv-ink);
	text-decoration: underline;
}

.nv-shop__title {
	margin: 0;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.08;
}

.nv-shop__intro {
	max-inline-size: 44rem;
	margin-block-start: 1rem;
	color: var(--nv-muted);
	font-size: 1.0625rem;
}

.nv-shop__intro p + p {
	margin-block-start: 0.75rem;
}

.nv-shop__hero .nv-placeholder,
.nv-shop__hero .novus-placeholder {
	margin-block-start: 1rem;
}

.nv-shop__body {
	padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) var(--nv-section);
}

.nv-shop__notices:empty {
	display: none;
}

/* Filters */
.nv-filters {
	display: grid;
	gap: 1rem;
	margin-block-end: 1.5rem;
}

.nv-filters__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-filters__goals {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.85rem;
}

.nv-filters__label {
	color: var(--nv-muted);
	font-family: var(--nv-heading);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nv .nv-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-block-size: 2.5rem;
	padding: 0 1rem;
	border: 1px solid var(--nv-line);
	border-radius: 999px;
	background: #fff;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nv .nv-chip:hover {
	border-color: var(--nv-ink);
}

.nv .nv-chip[aria-current] {
	border-color: var(--nv-ink);
	background: var(--nv-ink);
	color: #fff;
}

.nv-chip__dot {
	inline-size: 0.5rem;
	block-size: 0.5rem;
	border-radius: 50%;
	background: var(--accent, var(--nv-ink));
}

/* Selected goal: ink (AA contrast for white text) with the goal colour as the dot and ring. */
.nv .nv-chip--goal[aria-current] {
	border-color: var(--nv-ink);
	background: var(--nv-ink);
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent, var(--nv-ink));
}

.nv .nv-chip--goal[aria-current] .nv-chip__dot {
	box-shadow: 0 0 0 2px #fff;
}

.nv-chip .icon {
	inline-size: 0.75rem;
	block-size: 0.75rem;
}

/* Count and sorting */
.nv-shop__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin-block-end: 1.25rem;
	padding-block-start: 1.25rem;
	border-block-start: 1px solid var(--nv-line);
}

.nv-shop__count {
	color: var(--nv-muted);
	font-size: 0.875rem;
}

.nv-shop__sort .woocommerce-ordering {
	margin: 0;
}

.nv-shop__sort select {
	min-block-size: 2.5rem;
	padding: 0 2.25rem 0 1rem;
	border: 1px solid var(--nv-line);
	border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232b255e' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
	color: var(--nv-ink);
	font: 500 0.875rem/1 var(--nv-body);
	appearance: none;
	cursor: pointer;
}

.nv-shop__empty {
	display: grid;
	justify-items: start;
	gap: 1rem;
	padding: 2.5rem;
	border-radius: var(--nv-radius);
	background: var(--nv-paper);
}

.nv-shop__more {
	margin-block-start: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.nv-shop__subtitle {
	margin: 0 0 1.25rem;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.nv-shop .woocommerce-pagination {
	margin-block-start: 2rem;
}

/* ---------------------------------------------------------------
 * Product pages: what a stack includes
 * ------------------------------------------------------------- */
/* Testing of the products in a stack (0.25.8): component reports only. */
.nv-stack-tests {
	margin-block-start: 2rem;
	padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
	border: 1px solid var(--nv-line);
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: 0 1px 2px rgba(23, 20, 58, 0.04), 0 18px 40px -24px rgba(23, 20, 58, 0.25);
}

.nv-stack-tests__head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	margin-block-end: 1.25rem;
}

.nv .nv-stack-tests__title {
	margin: 0;
	color: var(--nv-ink-deep, #1b1740);
	font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.nv .nv-stack-tests__notice {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	margin: 0 0 1.5rem;
	padding: 1rem 1.15rem;
	border: 1px solid rgba(78, 37, 131, 0.18);
	border-radius: 0.9rem;
	background: #f4f2f8;
	color: #2b255e;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.nv-stack-tests__notice-icon {
	display: grid;
	flex: none;
	place-items: center;
	inline-size: 2.25rem;
	block-size: 2.25rem;
	border-radius: 0.65rem;
	background: #fff;
	color: #4e2583;
}

.nv-stack-tests__notice-icon .icon {
	inline-size: 1.05rem;
	block-size: 1.05rem;
}

.nv-stack-tests__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-stack-tests__card {
	display: grid;
	align-content: start;
	gap: 0.85rem;
	padding: 1rem;
	border: 1px solid var(--nv-line);
	border-radius: 1rem;
	background: #fbfaf8;
}

.nv-stack-tests__product {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.nv-stack-tests__thumb {
	flex: none;
	overflow: hidden;
	inline-size: 3rem;
	block-size: 3rem;
	border-radius: 0.65rem;
	background: #fff;
}

.nv-stack-tests__thumb img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.nv-stack-tests__name {
	color: var(--nv-ink-deep, #1b1740);
	font-family: var(--nv-heading);
	font-weight: 600;
	line-height: 1.3;
}

.nv-stack-tests__reports {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-stack-tests__report {
	display: grid;
	gap: 0.15rem;
	padding: 0.75rem 0.85rem;
	border-radius: 0.75rem;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--nv-line);
}

.nv-stack-tests__lab {
	color: #2b255e;
	font-size: 0.9375rem;
	font-weight: 600;
}

.nv-stack-tests__meta {
	color: #5d596e;
	font-size: 0.8125rem;
}

.nv .nv-stack-tests .nv-tp-cert {
	justify-self: start;
	margin-block-start: 0.55rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-block-size: 2.5rem;
	padding: 0 0.9rem;
	border: 1px solid #2b255e;
	border-radius: 999px;
	background: #2b255e;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.nv .nv-stack-tests .nv-tp-cert:hover,
.nv .nv-stack-tests .nv-tp-cert:focus-visible {
	border-color: #4e2583;
	background: #4e2583;
	color: #fff;
}

.nv-stack-tests .nv-tp-cert svg,
.nv-stack-tests .nv-tp-cert .icon {
	flex: none;
	inline-size: 1rem;
	block-size: 1rem;
}

.nv .nv-stack-tests__none {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	margin: 0;
	padding: 0.75rem 0.85rem;
	border-radius: 0.75rem;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--nv-line);
	color: #5d596e;
	font-size: 0.875rem;
}

.nv-stack-tests__none .icon {
	flex: none;
	inline-size: 1rem;
	block-size: 1rem;
	opacity: 0.6;
}

.nv .nv-stack-tests__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #4e2583;
	font-weight: 600;
}

.nv-stack-tests__more .icon {
	inline-size: 1rem;
	block-size: 1rem;
}

.nv-included__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-included__item {
	position: relative;
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	align-items: center;
	gap: 1rem;
	padding: 0.85rem;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: #fff;
	transition: box-shadow 0.25s ease;
}

.nv-included__item:hover {
	box-shadow: 0 18px 40px -24px rgba(27, 23, 64, 0.35);
}

.nv-included__media {
	overflow: hidden;
	aspect-ratio: 1;
	border-radius: var(--nv-radius-s);
	background: var(--nv-paper);
}

.nv-included__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.nv-included__text {
	display: grid;
	gap: 0.25rem;
}

.nv .nv-included__name {
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

/* The whole card is the link. */
.nv-included__name::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.nv-included__item:focus-within {
	outline: 2px solid #00b5cb;
	outline-offset: 3px;
}

.nv-included__name:focus-visible {
	outline: none !important;
}

.nv-included__note {
	color: var(--nv-muted);
	font-size: 0.875rem;
	line-height: 1.45;
}

.nv-included__more {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--nv-ink);
	font-size: 0.8125rem;
	font-weight: 600;
}

.nv-included__more .icon {
	inline-size: 0.8rem;
	block-size: 0.8rem;
}

/* ---------------------------------------------------------------
 * Collection pages, art direction (0.15.0)
 *
 * The visual language of the Quality & Testing page, kept commercial:
 * 1. a dark header (midnight navy, violet light, faint measurement grid);
 * 2. filters on a warm-white band;
 * 3. products on white, the packaging providing the colour;
 * 4. a dark quality band that runs into the footer.
 * Shop, filtered views (type, goal, offer) and product categories share
 * template-parts/shop/archive.php; everything here is scoped to .nv-shop.
 * ------------------------------------------------------------- */
.nv-shop,
.nv-cards {
	--nv-shop-ink: #2b255e;
	--nv-shop-deep: #17143a;
	--nv-shop-deeper: #110f2c;
	--nv-shop-muted: #5d596e;
	--nv-shop-accent: #4e2583;
	--nv-shop-frame: #f6f4f1;
	--nv-shop-paper: #f8f6f2;
	--nv-shop-line: rgba(43, 37, 94, 0.1);
	--nv-shop-line-strong: rgba(43, 37, 94, 0.2);
	--nv-shop-tint: #f4f2f8;
	--nv-shop-spectrum: linear-gradient(90deg, #00b5cb 0%, #4e2583 52%, #e6007e 100%);
	--nv-shop-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 1. Header ------------------------------------------------------ */
.nv-shop .nv-shop__hero {
	--glow-a: rgba(78, 37, 131, 0.62);
	--glow-b: rgba(0, 181, 203, 0.16);
	--glow-c: rgba(230, 0, 126, 0.08);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: 0 clamp(1.75rem, 1.25rem + 1.6vw, 2.5rem);
	border: 0;
	background: var(--nv-shop-deep);
	color: #fff;
}

/* Accent light per collection, all within the brand spectrum. */
.nv-shop .nv-shop__hero--supplements {
	--glow-a: rgba(78, 37, 131, 0.5);
	--glow-b: rgba(0, 181, 203, 0.26);
	--glow-c: rgba(0, 181, 203, 0.06);
}

.nv-shop .nv-shop__hero--stacks {
	--glow-a: rgba(78, 37, 131, 0.58);
	--glow-b: rgba(230, 0, 126, 0.16);
	--glow-c: rgba(230, 0, 126, 0.1);
}

.nv-shop__glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(52rem 30rem at 88% 0%, var(--glow-a), transparent 62%),
		radial-gradient(36rem 22rem at 4% 120%, var(--glow-b), transparent 62%),
		radial-gradient(28rem 18rem at 55% 115%, var(--glow-c), transparent 65%),
		linear-gradient(180deg, var(--nv-shop-deep) 0%, var(--nv-shop-deeper) 100%);
}

/* The fine measurement grid from Quality & Testing, fading out to the left. */
.nv-shop__glow::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 3.5rem 3.5rem;
	background-position: right -1px top -1px;
	-webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 80%);
	mask-image: linear-gradient(90deg, transparent 25%, #000 80%);
}

/* A fine spectrum rule where the header meets the filters. */
.nv-shop .nv-shop__hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	block-size: 1px;
	background: var(--nv-shop-spectrum);
	opacity: 0.55;
}

.nv-shop .nv-shop__hero .nv-crumbs {
	padding-block: 1.1rem clamp(1.25rem, 0.9rem + 1.2vw, 1.75rem);
	color: rgba(255, 255, 255, 0.58);
}

.nv-shop .nv-shop__hero .nv-crumbs a:hover {
	color: #fff;
}

.nv-shop__heading {
	display: grid;
	gap: 1.1rem 4rem;
	align-items: end;
}

@media (min-width: 64em) {
	.nv-shop__heading {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}
}

.nv-shop .nv-shop__hero .nv-eyebrow {
	margin-block-end: 1rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
}

.nv-shop .nv-shop__title {
	margin: 0;
	color: #fff;
	font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.02;
	text-wrap: balance;
}

.nv-shop .is-main .nv-shop__title {
	font-size: clamp(2.5rem, 1.55rem + 3.6vw, 4.25rem);
	line-height: 0.98;
}

.nv-shop .nv-shop__intro {
	max-inline-size: 34rem;
	margin: 0;
	color: rgba(255, 255, 255, 0.76);
	font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
	line-height: 1.65;
}

@media (min-width: 64em) {
	.nv-shop .nv-shop__intro {
		padding-block-end: 0.35rem;
	}

	.nv-shop .is-main .nv-shop__intro {
		padding-inline-start: 2rem;
		border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
	}
}

.nv-shop__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 2rem;
	margin: clamp(1.25rem, 0.9rem + 1.2vw, 1.75rem) 0 0;
	padding: 1rem 0 0;
	border-block-start: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	list-style: none;
}

.nv-shop__trust li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.nv-shop__trust .icon {
	inline-size: 1rem;
	block-size: 1rem;
	flex: none;
	color: #7fe3ee;
}

/* 2. Filters on a warm-white band ------------------------------- */
.nv-shop .nv-shop__browse {
	padding-block-start: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
	border-block-end: 1px solid var(--nv-shop-line);
	background: linear-gradient(180deg, #f3f0f8 0%, var(--nv-shop-paper) 55%);
}

.nv-shop .nv-shop__body {
	padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem) clamp(3rem, 2.25rem + 3vw, 4.5rem);
}

.nv-shop .nv-filters {
	gap: 1.1rem;
	margin-block-end: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

/* Product types: one segmented control; the selection in ink. */
.nv-shop .nv-filters > .nv-filters__row {
	display: inline-flex;
	flex-wrap: nowrap;
	justify-self: start;
	gap: 0.25rem;
	padding: 0.25rem;
	border-radius: 999px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--nv-shop-line);
}

.nv-shop .nv-filters > .nv-filters__row .nv-chip {
	min-block-size: 2.375rem;
	padding: 0 1.25rem;
	border: 0;
	background: transparent;
	color: var(--nv-shop-muted);
	font-size: 0.875rem;
	font-weight: 500;
	transition: background-color 0.25s var(--nv-shop-ease), color 0.25s var(--nv-shop-ease);
}

.nv-shop .nv-filters > .nv-filters__row .nv-chip:hover {
	background: var(--nv-shop-tint);
	color: var(--nv-shop-ink);
}

.nv-shop .nv-filters > .nv-filters__row .nv-chip[aria-current] {
	background: var(--nv-shop-ink);
	color: #fff;
	font-weight: 600;
	box-shadow: none;
}

.nv-shop .nv-filters__goals {
	flex-wrap: nowrap;
	gap: 0.5rem 1.1rem;
	min-inline-size: 0;
}

.nv-shop .nv-filters__label {
	flex: none;
	color: var(--nv-shop-ink);
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
}

.nv-shop .nv-filters__goals .nv-filters__row {
	gap: 0.45rem;
}

.nv-shop .nv-chip--goal {
	min-block-size: 2.25rem;
	padding: 0 0.95rem;
	border-color: var(--nv-shop-line);
	background: #fff;
	color: var(--nv-shop-ink);
	font-size: 0.8125rem;
	font-weight: 500;
	white-space: nowrap;
	transition: border-color 0.25s var(--nv-shop-ease), background-color 0.25s var(--nv-shop-ease);
}

.nv-shop .nv-chip--goal:hover {
	border-color: var(--nv-shop-line-strong);
}

/* Selected goal: a light wash of the goal's colour, ink text (AA contrast). */
.nv-shop .nv-chip--goal[aria-current] {
	border-color: var(--accent, var(--nv-shop-ink));
	background: color-mix(in srgb, var(--accent, var(--nv-shop-ink)) 9%, #fff);
	color: var(--nv-shop-ink);
	font-weight: 600;
	box-shadow: none;
}

.nv-shop .nv-chip--goal[aria-current] .nv-chip__dot {
	box-shadow: none;
}

/* Count and sorting: the last line of the band. */
.nv-shop .nv-shop__bar {
	margin: 0;
	padding-block: 0.9rem;
	border-block-start: 1px solid var(--nv-shop-line);
}

.nv-shop .nv-shop__count {
	color: var(--nv-shop-muted);
	font-size: 0.8125rem;
	letter-spacing: 0.01em;
}

.nv-shop .nv-shop__sort select {
	min-block-size: 2.25rem;
	border-color: var(--nv-shop-line);
	background-color: #fff;
	font-size: 0.8125rem;
}

/* 3. Products ----------------------------------------------------
 * The card rules also apply to homepage product rows (.nv-cards, 0.16.0). */
/* Grid: four columns on desktop, three on tablets, two on phones. */
.nv-shop .nv-grid--cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 0.875rem;
}

@media (min-width: 48em) {
	.nv-shop .nv-grid--cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2.75rem 1.5rem;
	}
}

@media (min-width: 64em) {
	.nv-shop .nv-grid--cards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 3rem 1.75rem;
	}
}

/* Cards: the photograph is the card; text sits beneath it on the page. */
.nv-r :is(.nv-shop, .nv-cards) .nv-card,
:is(.nv-shop, .nv-cards) .nv-card {
	position: relative; /* Keeps hidden name separators inside sideways-scrolling rows. */
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.nv-r :is(.nv-shop, .nv-cards) .nv-card:hover,
:is(.nv-shop, .nv-cards) .nv-card:hover {
	box-shadow: none;
	transform: none;
}

.nv-r :is(.nv-shop, .nv-cards) .nv-card__media,
:is(.nv-shop, .nv-cards) .nv-card__media {
	overflow: hidden;
	aspect-ratio: 1;
	border-radius: 1rem;
	background: var(--nv-shop-frame);
	box-shadow: inset 0 0 0 1px rgba(43, 37, 94, 0.04);
}

:is(.nv-shop, .nv-cards) .nv-card__media img {
	transition: transform 0.6s var(--nv-shop-ease);
}

:is(.nv-shop, .nv-cards) .nv-card:hover .nv-card__media img {
	transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
	:is(.nv-shop, .nv-cards) .nv-card__media img {
		transition: none;
	}

	:is(.nv-shop, .nv-cards) .nv-card:hover .nv-card__media img {
		transform: none;
	}
}

.nv-r :is(.nv-shop, .nv-cards) .nv-card__body,
:is(.nv-shop, .nv-cards) .nv-card__body {
	gap: 0.3rem;
	padding: 1rem 0.125rem 0;
}

:is(.nv-shop, .nv-cards) .nv-card__label {
	color: var(--nv-shop-accent);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
}

.nv-r :is(.nv-shop, .nv-cards) .nv-card__title,
:is(.nv-shop, .nv-cards) .nv-card__title {
	color: var(--nv-shop-ink);
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

:is(.nv-shop, .nv-cards) .nv-card__name,
:is(.nv-shop, .nv-cards) .nv-card__size {
	display: block;
}

:is(.nv-shop, .nv-cards) .nv-card__size {
	margin-block-start: 0.25rem;
	color: var(--nv-shop-muted);
	font-family: var(--nv-body);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.nv-r :is(.nv-shop, .nv-cards) .nv-card__subtitle,
:is(.nv-shop, .nv-cards) .nv-card__subtitle {
	color: var(--nv-shop-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

.nv-r :is(.nv-shop, .nv-cards) .nv-card__footer,
:is(.nv-shop, .nv-cards) .nv-card__footer {
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	padding-block-start: 0.85rem;
}

.nv-r :is(.nv-shop, .nv-cards) .nv-card__price,
:is(.nv-shop, .nv-cards) .nv-card__price {
	color: var(--nv-shop-ink);
	font-size: 1rem;
	font-weight: 600;
}

/* One button style on every card: a fine ink outline that fills on hover. */
.nv-r :is(.nv-shop, .nv-cards) .nv-card .nv-button,
.nv-r :is(.nv-shop, .nv-cards) .nv-card a.button,
.nv-r :is(.nv-shop, .nv-cards) .nv-card a.button.nv-button {
	inline-size: 100%;
	min-block-size: 2.75rem;
	padding-inline: 1rem;
	border: 1px solid var(--nv-shop-ink) !important;
	background: #fff !important;
	color: var(--nv-shop-ink) !important;
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	white-space: normal;
}

.nv-r :is(.nv-shop, .nv-cards) .nv-card .nv-button:hover,
.nv-r :is(.nv-shop, .nv-cards) .nv-card a.button:hover {
	background: var(--nv-shop-ink) !important;
	color: #fff !important;
}

/* WooCommerce's "View basket" link after adding from a card: under the button,
   in the gap between rows, so the cards in the row stay aligned. */
:is(.nv-shop, .nv-cards) .nv-card__footer {
	position: relative;
}

:is(.nv-shop, .nv-cards) .nv-card .added_to_cart {
	position: absolute;
	inset-block-start: 100%;
	inset-inline: 0;
	margin: 0.4rem 0 0;
	color: var(--nv-shop-ink);
	font-size: 0.8125rem;
	text-align: center;
}

/* Badges: small capitals on a light pill over the photograph. */
.nv-r :is(.nv-shop, .nv-cards) .nv-card__badge,
:is(.nv-shop, .nv-cards) .nv-card__badge {
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
	padding: 0.4rem 0.65rem;
	border-radius: 999px;
	background: var(--nv-shop-ink);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	line-height: 1;
	text-transform: uppercase;
}

.nv-r :is(.nv-shop, .nv-cards) .nv-card__badge--offer,
:is(.nv-shop, .nv-cards) .nv-card__badge--offer {
	background: rgba(255, 255, 255, 0.94);
	color: var(--nv-shop-ink);
	box-shadow: 0 0 0 1px rgba(43, 37, 94, 0.08), 0 1px 2px rgba(23, 20, 58, 0.06);
}

/* "More from Novus DNA" */
.nv-shop .nv-shop__more {
	padding-block-start: clamp(2rem, 1.5rem + 2vw, 3rem);
	border-block-start: 1px solid var(--nv-shop-line);
}

.nv-shop .nv-shop__subtitle {
	margin-block-end: 1.5rem;
	font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
	font-weight: 500;
	letter-spacing: -0.025em;
}

/* 4. Quality band, running into the footer ----------------------- */
.nv-shop-feature {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
	border-block-end: 1px solid rgba(255, 255, 255, 0.08);
	background: var(--nv-shop-deep);
	color: #fff;
}

.nv-shop-feature__glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(48rem 26rem at 8% 0%, rgba(78, 37, 131, 0.55), transparent 62%),
		radial-gradient(32rem 20rem at 100% 30%, rgba(230, 0, 126, 0.1), transparent 62%),
		linear-gradient(180deg, #1b1744 0%, var(--nv-shop-deep) 100%);
}

/* The grid again, fading out towards the footer. */
.nv-shop-feature__glow::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 3.5rem 3.5rem;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.nv-shop-feature::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	block-size: 1px;
	background: var(--nv-shop-spectrum);
	opacity: 0.55;
}

.nv-shop-feature__grid {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 64em) {
	.nv-shop-feature__grid {
		grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
		gap: 5rem;
		align-items: end;
	}

	.nv-shop-feature__aside {
		padding-inline-start: 3rem;
		border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
	}
}

@media (max-width: 63.99em) {
	.nv-shop-feature__aside {
		padding-block-start: 2.5rem;
		border-block-start: 1px solid rgba(255, 255, 255, 0.12);
	}
}

.nv .nv-shop-feature__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.1rem;
	color: #c9bff0;
	font-family: var(--nv-heading);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.nv-shop-feature__kicker::before {
	content: "";
	inline-size: 2rem;
	block-size: 2px;
	border-radius: 2px;
	background: var(--nv-shop-spectrum);
}

.nv .nv-shop-feature__title,
.nv .nv-shop-feature__subtitle {
	margin: 0;
	color: #fff;
	font-family: var(--nv-heading);
	font-weight: 600;
	text-wrap: balance;
}

.nv-shop-feature__title {
	max-inline-size: 16ch;
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
	letter-spacing: -0.035em;
	line-height: 1.02;
}

.nv-shop-feature__subtitle {
	font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.nv .nv-shop-feature__text {
	max-inline-size: 32rem;
	margin: 1rem 0 1.75rem;
	color: rgba(255, 255, 255, 0.74);
	font-size: 1.0625rem;
	line-height: 1.65;
}

.nv-shop-feature .nv-button {
	gap: 0.5rem;
}

.nv-shop-feature .nv-button .icon {
	inline-size: 1rem;
	block-size: 1rem;
}

/* Phones */
@media (max-width: 47.99em) {
	.nv-shop .nv-shop__intro {
		font-size: 1rem;
	}

	.nv-shop .nv-shop__hero .nv-crumbs {
		padding-block-end: 1.25rem;
	}

	.nv-shop .nv-shop__hero .nv-eyebrow {
		margin-block-end: 0.75rem;
	}

	.nv-shop .is-main .nv-shop__title {
		font-size: clamp(2.35rem, 1.6rem + 3.6vw, 3rem);
	}

	.nv-shop__glow::after {
		background-size: 2.5rem 2.5rem;
		-webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 70%);
		mask-image: linear-gradient(200deg, #000 10%, transparent 70%);
	}

	.nv-shop .nv-shop__browse {
		padding-block-start: 1.25rem;
	}

	.nv-shop-feature .nv-button {
		inline-size: 100%;
	}

	.nv-shop__trust {
		gap: 0.5rem 1.25rem;
		font-size: 0.75rem;
	}

	/* Types fill the width; goals scroll sideways instead of stacking up. */
	.nv-shop .nv-filters > .nv-filters__row {
		display: flex;
		justify-self: stretch;
	}

	.nv-shop .nv-filters > .nv-filters__row > li {
		flex: 1 1 auto;
	}

	.nv-shop .nv-filters > .nv-filters__row .nv-chip {
		inline-size: 100%;
		justify-content: center;
		padding-inline: 0.65rem;
		font-size: 0.8125rem;
		white-space: nowrap;
	}

	/* What a stack contains stays on its page; the card keeps "6 products". */
	.nv-r :is(.nv-shop, .nv-cards) .nv-card__includes,
	:is(.nv-shop, .nv-cards) .nv-card__includes {
		display: none;
	}

	.nv-shop .nv-filters__goals {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}

	.nv-shop .nv-filters__goals .nv-filters__row {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-block: 0.15rem;
		padding-inline-end: 1.5rem;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}

	.nv-shop .nv-filters__goals .nv-filters__row::-webkit-scrollbar {
		display: none;
	}

	.nv-shop .nv-filters__goals .nv-filters__row > li {
		flex: none;
	}

	.nv-r :is(.nv-shop, .nv-cards) .nv-card__body,
	:is(.nv-shop, .nv-cards) .nv-card__body {
		padding: 0.75rem 0 0;
	}

	.nv-r :is(.nv-shop, .nv-cards) .nv-card__title,
	:is(.nv-shop, .nv-cards) .nv-card__title {
		font-size: 0.9375rem;
	}

	:is(.nv-shop, .nv-cards) .nv-card__size {
		font-size: 0.625rem;
	}

	.nv-r :is(.nv-shop, .nv-cards) .nv-card__subtitle,
	:is(.nv-shop, .nv-cards) .nv-card__subtitle {
		display: -webkit-box;
		overflow: hidden;
		font-size: 0.8125rem;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.nv-r :is(.nv-shop, .nv-cards) .nv-card .nv-button,
	.nv-r :is(.nv-shop, .nv-cards) .nv-card a.button,
	.nv-r :is(.nv-shop, .nv-cards) .nv-card a.button.nv-button {
		min-block-size: 2.5rem;
		padding-inline: 0.5rem;
		white-space: nowrap;
	}

	.nv-r :is(.nv-shop, .nv-cards) .nv-card__badge,
	:is(.nv-shop, .nv-cards) .nv-card__badge {
		inset-block-start: 0.5rem;
		inset-inline-start: 0.5rem;
		padding: 0.35rem 0.5rem;
		font-size: 0.625rem;
		letter-spacing: 0.06em;
	}
}

/* Smallest phones: the offer badge in normal case keeps to one line. */
@media (max-width: 23.99em) {
	.nv-r :is(.nv-shop, .nv-cards) .nv-card__badge,
	:is(.nv-shop, .nv-cards) .nv-card__badge {
		font-size: 0.625rem;
		letter-spacing: 0.01em;
		text-transform: none;
		white-space: nowrap;
	}
}

/* ---------------------------------------------------------------
 * 0.25.8 shop refinement (Novus, 24 Nov 2026): the About page's
 * language. Grouped sections with a spectrum-line label, and white
 * cards with a fine border, quantity chip, stock line and the price
 * and button aligned at the foot of every card. Shop grids only;
 * homepage rows keep their own cards.
 * ------------------------------------------------------------- */
.nv-shop .nv-shop__group + .nv-shop__group {
	margin-block-start: clamp(3.5rem, 2.5rem + 3.5vw, 5.5rem);
	padding-block-start: clamp(2.5rem, 2rem + 2vw, 3.5rem);
	border-block-start: 1px solid var(--nv-shop-line);
}

.nv-shop .nv-shop__more {
	padding-block-start: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.nv-shop .nv-shop__group-head {
	display: grid;
	gap: 0.75rem 3rem;
	align-items: end;
	margin-block-end: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
}

.nv-shop .nv-shop__group-title {
	margin: 0;
	color: var(--nv-shop-ink);
	font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.625rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.1;
	text-wrap: balance;
}

.nv-shop .nv-shop__group-side {
	display: grid;
	gap: 0.5rem;
}

.nv-shop .nv-shop__group-intro {
	max-inline-size: 34rem;
	margin: 0;
	color: var(--nv-shop-muted);
	font-size: 1rem;
	line-height: 1.6;
}

.nv-shop .nv-shop__group-count {
	margin: 0;
	color: var(--nv-shop-accent);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

@media (min-width: 64em) {
	.nv-shop .nv-shop__group-head {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

/* Cards */
.nv-shop .nv-shop__grid > li {
	display: flex;
}

.nv-r .nv-shop .nv-shop__grid .nv-card,
.nv-shop .nv-shop__grid .nv-card {
	display: flex;
	flex-direction: column;
	inline-size: 100%;
	padding: 0.625rem;
	border: 1px solid var(--nv-shop-line);
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: 0 1px 2px rgba(23, 20, 58, 0.04), 0 16px 34px -24px rgba(23, 20, 58, 0.28);
	transition: border-color 0.25s var(--nv-shop-ease), box-shadow 0.25s var(--nv-shop-ease);
}

.nv-r .nv-shop .nv-shop__grid .nv-card:hover,
.nv-shop .nv-shop__grid .nv-card:hover {
	border-color: rgba(78, 37, 131, 0.28);
	box-shadow: 0 1px 2px rgba(23, 20, 58, 0.04), 0 22px 44px -22px rgba(23, 20, 58, 0.36);
}

.nv-r .nv-shop .nv-shop__grid .nv-card__media,
.nv-shop .nv-shop__grid .nv-card__media {
	border-radius: 0.875rem;
}

.nv-r .nv-shop .nv-shop__grid .nv-card__body,
.nv-shop .nv-shop__grid .nv-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem 0.5rem 0.4rem;
}

.nv-r .nv-shop .nv-shop__grid .nv-card__footer,
.nv-shop .nv-shop__grid .nv-card__footer {
	margin-block-start: auto;
	padding-block-start: 1rem;
	border-block-start: 1px solid var(--nv-shop-line);
}

.nv-shop .nv-shop__grid .nv-card__size {
	display: inline-block;
	margin-block-start: 0.45rem;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	background: var(--nv-shop-tint);
	color: var(--nv-shop-accent);
}

.nv-shop .nv-shop__grid .nv-card__label {
	margin: 0;
}

.nv .nv-card__stock {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	color: #1d6b4a;
	font-size: 0.8125rem;
	font-weight: 600;
}

.nv-card__stock-dot {
	inline-size: 0.5rem;
	block-size: 0.5rem;
	border-radius: 50%;
	background: #22a06b;
	box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.15);
}

.nv .nv-card__stock.is-out {
	color: #8a2340;
}

.nv-card__stock.is-out .nv-card__stock-dot {
	background: #c2185b;
	box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.15);
}

@media (max-width: 47.99em) {
	.nv-r .nv-shop .nv-shop__grid .nv-card,
	.nv-shop .nv-shop__grid .nv-card {
		padding: 0.4rem;
		border-radius: 1rem;
	}

	.nv-r .nv-shop .nv-shop__grid .nv-card__body,
	.nv-shop .nv-shop__grid .nv-card__body {
		padding: 0.75rem 0.35rem 0.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nv-shop .nv-shop__grid .nv-card {
		transition: none;
	}
}
