@import url('https://fonts.googleapis.com/css2?family=Italiana&display=swap');

/* Mesmerra: navy, paper and Italiana. Brand colours, primary buttons included
   (emphasisPrimary), come from theme.json; the rest of the storefront's tokens
   (global.css) are set here, so every store component matches these pages. */
:root {
	--bg-secondary: #fafafa;
	--bg-tertiary: #f2f2f2;
	--text-muted: rgba(0, 0, 0, 0.62);
	--ui-primary: rgba(0, 0, 0, 0.08);
	--ui-secondary: rgba(0, 0, 0, 0.12);
	--form-control-height: 48px;
	--container-max-width: 1320px;
	--font-body: 'Rethink Sans', sans-serif;
	/* Mesmerra's own. */
	--mz-display: 'Italiana', serif;
	--mz-gutter: clamp(20px, 4vw, 56px);
	--mz-section: clamp(64px, 9vw, 140px);
	--mz-ease: 250ms ease-in-out;
	/* The sticky header's height, which sticky page parts sit under. */
	--mz-head: 112px;
}

@media (max-width: 900px) {
	:root {
		--mz-head: 61px;
	}
}

html,
body {
	background: var(--bg-secondary);
}

body a:hover {
	color: var(--ax-primary);
}

h1,
h2,
h3,
h4 {
	font-weight: 400;
	letter-spacing: -0.02em;
}

@keyframes mzKen {
	0% {
		transform: scale(1.02);
	}
	100% {
		transform: scale(1.14) translate(-1.5%, -1%);
	}
}

/* ---------- Catalog: product cards read like the home page's ---------- */

body .product-card .product-images img,
body .product-card .product-images video,
body .product-card .product-fallback-icon {
	border-radius: var(--radius);
	background: var(--bg-primary);
}

body .product-card .product-info {
	align-items: flex-start;
	padding: var(--space-4) 0 var(--space-2);
}

body .product-card .product-name {
	font-size: var(--font-size-base);
	font-weight: 400;
	text-align: left;
	letter-spacing: -0.01em;
}

body .product-card .product-price {
	font-size: var(--font-size-sm);
	opacity: 1;
	color: var(--text-muted);
}

/* ---------- Shared pieces ---------- */

.mz-eyebrow {
	font-size: var(--font-size-xs);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ax-primary);
}

.mz-eyebrow.muted {
	color: var(--text-muted);
}

.mz-display {
	margin: 0;
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 0.95;
	font-size: clamp(40px, 5.5vw, 84px);
}

.mz-serif {
	font-family: var(--mz-display);
	letter-spacing: 0.01em;
}

.mz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: var(--space-4) var(--space-5);
	border: 0;
	border-radius: var(--radius);
	background: var(--ax-primary);
	color: var(--ax-text);
	font: inherit;
	font-size: var(--font-size-sm);
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--mz-ease);
}

body .mz-btn:hover {
	background: var(--bg-tint);
	color: var(--text-tint);
}

.mz-btn.light {
	background: var(--bg-primary);
	color: var(--text-primary);
}

body .mz-btn.light:hover {
	background: var(--ax-primary);
	color: var(--ax-text);
}

.mz-btn.dark {
	background: var(--bg-tint);
	color: var(--text-tint);
}

body .mz-btn.dark:hover {
	background: var(--ax-primary);
}

.mz-btn .material-symbols-outlined,
.mz-link .material-symbols-outlined {
	font-size: var(--font-size-xl);
	font-weight: 300;
}

.mz-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	align-self: flex-start;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--ax-primary);
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-primary);
	text-decoration: none;
}

.mz-card {
	background: var(--bg-primary);
	border: 1px solid var(--ui-primary);
	border-radius: var(--radius);
}

/* ---------- Header ---------- */

.mz-banner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-4);
	min-height: 38px;
	padding: var(--space-1) var(--mz-gutter);
	font-size: var(--font-size-xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: var(--ax-primary);
	color: var(--ax-text);
}

.mz-banner > span {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mz-diamond {
	width: 6px;
	height: 6px;
	background: currentColor;
	transform: rotate(45deg);
	flex: none;
}

.mz-banner .btn {
	height: 28px;
	border: 0;
	box-shadow: none;
	background: transparent;
	color: inherit;
	font-size: var(--font-size-xs);
	letter-spacing: 0.14em;
}

/* Under the portaled region and account menus. */
.mz-header {
	position: sticky;
	top: 0;
	z-index: calc(var(--z-dropdown) - 1);
	background: rgba(250, 250, 250, 0.9);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mz-bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--space-4);
	padding: 14px var(--mz-gutter) 10px;
}

.mz-menu-toggle {
	display: none;
}

.mz-wordmark {
	font-family: var(--mz-display);
	font-size: 28px;
	letter-spacing: 0.32em;
	padding-left: 0.32em;
	color: var(--text-primary);
	text-decoration: none;
	white-space: nowrap;
}

/* Four icons from three components, one hit area: 40px, no gaps between. */
.mz-actions {
	display: flex;
	align-items: center;
	margin-left: -10px;
}

.mz-actions.end {
	justify-content: flex-end;
	margin-left: 0;
	margin-right: -10px;
}

.mz-actions > *,
.mz-actions .account-btn {
	display: flex;
}

.mz-actions .btn,
body .mz-actions .icon-right a,
.mz-burger {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	box-shadow: none;
	background: transparent;
	color: var(--text-primary);
	cursor: pointer;
}

.mz-actions .btn:hover,
.mz-actions .icon-right a:hover,
.mz-burger:hover {
	background: rgba(0, 0, 0, 0.04);
	color: var(--ax-primary);
}

.mz-actions svg {
	width: 21px;
	height: 21px;
	stroke-width: 1.6;
}

body .mz-actions .icon-right .badge {
	top: 3px;
	right: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: 0;
	border-radius: 50%;
	font-size: 9px;
	font-weight: 600;
	background: var(--ax-primary);
	color: var(--ax-text);
}

.mz-burger {
	display: none !important;
}

.mz-burger .material-symbols-outlined {
	font-size: var(--font-size-2xl);
}

.mz-nav {
	display: flex;
	justify-content: center;
	gap: clamp(20px, 3vw, 44px);
	padding: var(--space-1) var(--mz-gutter) 14px;
	font-size: var(--font-size-xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}

.mz-nav a {
	padding: var(--space-1) 0;
	border-bottom: 1px solid transparent;
	color: rgba(0, 0, 0, 0.72);
	text-decoration: none;
	transition: all var(--mz-ease);
}

.mz-nav a:hover {
	border-bottom-color: var(--ax-primary);
}

.mz-nav a.mobile {
	display: none;
}

@media (max-width: 900px) {
	.mz-bar {
		padding: 10px var(--mz-gutter);
	}

	.mz-burger {
		display: inline-flex !important;
	}

	.mz-wordmark {
		font-size: var(--font-size-xl);
		letter-spacing: 0.22em;
		padding-left: 0.22em;
	}

	.mz-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		max-height: calc(100vh - 80px);
		overflow-y: auto;
		padding: var(--space-2) var(--mz-gutter) var(--space-6);
		background: var(--bg-secondary);
		border-bottom: 1px solid var(--ui-primary);
		text-transform: none;
		letter-spacing: -0.01em;
	}

	.mz-nav a,
	.mz-nav a.mobile {
		display: block;
		padding: var(--space-4) 0;
		font-size: var(--font-size-xl);
		color: var(--text-primary);
		border-bottom: 1px solid var(--ui-primary);
	}

	.mz-menu-toggle:checked ~ .mz-nav {
		display: flex;
	}

	.mz-banner > span:first-child {
		font-size: 11px;
		letter-spacing: 0.1em;
	}
}

@media (max-width: 520px) {
	.mz-actions account-button {
		display: none;
	}
}

/* ---------- Footer ---------- */

.mz-footer {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	padding: 56px var(--mz-gutter) 28px;
	background: var(--bg-primary);
	border-top: 1px solid var(--ui-primary);
}

.mz-footer-top {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: var(--space-12);
}

@media (min-width: 1000px) {
	.mz-footer-top {
		grid-template-columns: minmax(300px, 1fr) 2fr;
	}
}

.mz-footer-brand {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 400px;
}

.mz-footer-brand .mz-wordmark {
	font-size: 26px;
	line-height: 1;
	letter-spacing: 0.28em;
	padding-left: 0;
	margin-bottom: var(--space-3);
	color: var(--ax-primary);
}

.mz-footer-brand strong {
	font-size: var(--font-size-lg);
	font-weight: 400;
	letter-spacing: -0.02em;
}

.mz-footer-brand p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-muted);
}

.mz-footer-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: var(--space-8);
}

.mz-footer-cols div {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 13px;
}

.mz-footer-cols span {
	margin-bottom: var(--space-1);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.5);
}

.mz-footer-cols a {
	color: rgba(0, 0, 0, 0.78);
	text-decoration: none;
}

.mz-footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
	font-size: 11px;
	letter-spacing: 0.08em;
	color: rgba(0, 0, 0, 0.5);
}

.mz-footer-bottom a {
	color: inherit;
}

.mz-footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-6);
}

.mz-footer newsletter-signup {
	display: block;
}

.mz-footer .newsletter-form input {
	height: 44px;
	padding: 0 14px;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: var(--radius);
	background: var(--bg-secondary);
	font-size: var(--font-size-sm);
	box-shadow: none;
}

.mz-footer .newsletter-form .btn {
	height: 44px;
	padding: 0 18px;
	border: 0;
	background: var(--bg-tint);
	color: var(--text-tint);
	font-size: var(--font-size-sm);
}

body .mz-footer .newsletter-form .btn:hover {
	background: var(--ax-primary);
}

/* ---------- Home ---------- */

body .main-content {
	padding-bottom: var(--mz-section);
}

.mz-home > section:last-child {
	padding-bottom: 0;
}

.mz-home > section {
	padding: 0 var(--mz-gutter) var(--mz-section);
}

.mz-home .mz-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: var(--space-6);
	flex-wrap: wrap;
	margin-bottom: var(--space-12);
}

.mz-home .mz-head > div {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mz-home > section.mz-hero {
	position: relative;
	/* Header plus trust row stay on the first screen. */
	height: calc(100svh - 240px);
	min-height: 380px;
	max-height: 860px;
	padding: 0;
	overflow: hidden;
	background: #111;
}

.mz-hero video,
.mz-hero img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.85) contrast(1.08) brightness(0.92);
	animation: mzKen 26s ease-in-out infinite alternate;
}

.mz-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.6) 100%);
	pointer-events: none;
}

.mz-hero-copy {
	position: absolute;
	z-index: 1;
	left: var(--mz-gutter);
	right: var(--mz-gutter);
	bottom: clamp(28px, 4vw, 48px);
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: var(--space-8);
	flex-wrap: wrap;
	color: var(--text-tint);
}

.mz-hero-copy > div {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mz-hero-copy .mz-eyebrow {
	color: rgba(255, 255, 255, 0.85);
}

.mz-hero-copy h1 {
	margin: 0;
	font-family: var(--mz-display);
	font-weight: 400;
	font-size: clamp(32px, 3.4vw, 52px);
	line-height: 1;
	letter-spacing: 0.01em;
	white-space: normal;
}

.mz-home > section.mz-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-6);
	padding: 28px var(--mz-gutter);
	margin-bottom: var(--mz-section);
	font-size: var(--font-size-xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-muted);
	border-bottom: 1px solid var(--ui-primary);
}

.mz-collections {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--space-4);
}

.mz-collections a {
	display: flex;
	flex-direction: column;
	gap: 18px;
	color: var(--text-primary);
	text-decoration: none;
}

.mz-collections figure {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius);
	overflow: hidden;
	background: #ececec;
}

.mz-collections img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.8);
	transition:
		transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
		filter 600ms ease;
}

.mz-collections a:hover img {
	transform: scale(1.06);
	filter: saturate(1);
}

.mz-collections figure span {
	position: absolute;
	top: 18px;
	left: 18px;
	padding: 6px 10px;
	border-radius: var(--radius);
	font-size: var(--font-size-xs);
	letter-spacing: 0.14em;
	background: rgba(250, 250, 250, 0.85);
	backdrop-filter: blur(8px);
}

.mz-collections div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--space-3);
	padding-top: var(--space-4);
	border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.mz-collections h3 {
	margin: 0;
	font-size: 28px;
	font-weight: 400;
	letter-spacing: -0.02em;
}

.mz-collections div span {
	font-size: 13px;
	color: var(--text-muted);
}

/* Tabs and the shape picker are radio groups: no script needed. */
.mz-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mz-home .mz-head > .mz-tabs {
	flex-direction: row;
}

.mz-tabs {
	display: flex;
	gap: 6px;
	padding: var(--space-1);
	background: var(--bg-primary);
	border: 1px solid var(--ui-primary);
	border-radius: var(--radius);
}

.mz-tabs label {
	padding: 9px 14px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	color: rgba(0, 0, 0, 0.7);
	cursor: pointer;
	transition: all var(--mz-ease);
}

.mz-panel {
	display: none;
}

#mz-tab-all:checked ~ .mz-head label[for='mz-tab-all'],
#mz-tab-rings:checked ~ .mz-head label[for='mz-tab-rings'],
#mz-tab-earrings:checked ~ .mz-head label[for='mz-tab-earrings'],
#mz-tab-bracelets:checked ~ .mz-head label[for='mz-tab-bracelets'] {
	background: var(--bg-tint);
	color: var(--text-tint);
}

#mz-tab-all:checked ~ .mz-panel.all,
#mz-tab-rings:checked ~ .mz-panel.rings,
#mz-tab-earrings:checked ~ .mz-panel.earrings,
#mz-tab-bracelets:checked ~ .mz-panel.bracelets {
	display: block;
}

.mz-panel .product-grid {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.mz-signature {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	background: var(--ax-primary);
	color: var(--ax-text);
	border-radius: var(--radius);
	overflow: hidden;
}

.mz-signature figure {
	position: relative;
	min-height: 560px;
	margin: 0;
	background: #14244f;
}

.mz-signature figure img,
.mz-atelier figure img,
.mz-page-hero img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mz-signature > div {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--space-12);
	padding: clamp(32px, 5vw, 72px);
}

.mz-signature > div > div {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.mz-signature .mz-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.72);
}

.mz-signature h2 {
	margin: 0;
	font-size: clamp(44px, 5vw, 76px);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: -0.04em;
}

.mz-signature p {
	margin: 0;
	max-width: 440px;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	text-wrap: pretty;
}

.mz-signature .mz-btn.light {
	align-self: flex-start;
	color: var(--ax-primary);
}

body .mz-signature .mz-btn.light:hover {
	background: var(--bg-secondary);
	color: var(--text-primary);
}

.mz-builder {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

.mz-builder > div:first-child {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.mz-steps > div {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: var(--space-4);
	padding: var(--space-5) 0;
	border-top: 1px solid var(--ui-secondary);
}

.mz-steps > div > span {
	font-size: 13px;
	color: var(--ax-primary);
}

.mz-steps p {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-size: var(--font-size-lg);
}

.mz-steps small {
	font-size: var(--font-size-sm);
	line-height: 1.5;
	color: var(--text-muted);
}

.mz-shapes {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: clamp(28px, 3.5vw, 48px);
}

.mz-shape-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-2);
}

.mz-shape-grid label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 88px;
	border: 1px solid var(--ui-secondary);
	border-radius: var(--radius);
	background: var(--bg-secondary);
	font-size: var(--font-size-sm);
	cursor: pointer;
	transition: all var(--mz-ease);
}

.mz-shape-grid label:hover {
	border-color: var(--ax-primary);
}

.mz-shape-result {
	display: none;
	justify-content: space-between;
	align-items: end;
	gap: var(--space-5);
	padding-top: var(--space-6);
	border-top: 1px solid var(--ui-primary);
	flex-wrap: wrap;
}

.mz-shape-result > div {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mz-shape-result .mz-serif {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	font-size: clamp(40px, 4vw, 60px);
	line-height: 1;
}

/* Diamond shape glyphs from the storefront's shape-font (icons.css). */
.mz-shapes i {
	font: normal 28px/1 shape-font;
	font-style: normal;
}

.mz-shape-result .mz-serif i {
	font-size: 0.8em;
	color: var(--ax-primary);
}

body .mz-shape-result a:not(.mz-btn),
body .mz-prose a,
body .mz-footer-bottom a,
body .mz-page-head a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.mz-shape-result a:not(.mz-btn) {
	font-size: var(--font-size-sm);
	color: var(--text-muted);
}

#mz-shape-round:checked ~ .mz-shape-grid label[for='mz-shape-round'],
#mz-shape-oval:checked ~ .mz-shape-grid label[for='mz-shape-oval'],
#mz-shape-pear:checked ~ .mz-shape-grid label[for='mz-shape-pear'],
#mz-shape-emerald:checked ~ .mz-shape-grid label[for='mz-shape-emerald'],
#mz-shape-cushion:checked ~ .mz-shape-grid label[for='mz-shape-cushion'],
#mz-shape-princess:checked ~ .mz-shape-grid label[for='mz-shape-princess'] {
	background: var(--ax-primary);
	border-color: var(--ax-primary);
	color: var(--ax-text);
}

#mz-shape-round:checked ~ .mz-shape-result.round,
#mz-shape-oval:checked ~ .mz-shape-result.oval,
#mz-shape-pear:checked ~ .mz-shape-result.pear,
#mz-shape-emerald:checked ~ .mz-shape-result.emerald,
#mz-shape-cushion:checked ~ .mz-shape-result.cushion,
#mz-shape-princess:checked ~ .mz-shape-result.princess {
	display: flex;
}

.mz-index > a {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--space-5);
	padding: 22px 0;
	border-top: 1px solid var(--ui-secondary);
	color: var(--text-primary);
	text-decoration: none;
	transition: all var(--mz-ease);
}

.mz-index > a:hover {
	padding-left: var(--space-4);
}

.mz-index > a > span:first-child {
	font-size: 13px;
	color: rgba(0, 0, 0, 0.5);
}

.mz-index > a > span:nth-child(2) {
	font-size: clamp(36px, 6vw, 92px);
	letter-spacing: -0.04em;
	line-height: 1;
}

.mz-index .material-symbols-outlined {
	font-size: 36px;
	font-weight: 300;
}

.mz-atelier {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: var(--space-4);
}

.mz-atelier figure {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius);
	overflow: hidden;
	background: #ececec;
}

.mz-atelier > div {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--space-10);
	padding: clamp(8px, 3vw, 48px);
}

.mz-atelier blockquote {
	margin: 0;
	font-family: var(--mz-display);
	font-size: clamp(34px, 3.6vw, 56px);
	line-height: 1.1;
	text-wrap: pretty;
}

.mz-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--space-6);
	padding-top: 28px;
	border-top: 1px solid var(--ui-secondary);
}

.mz-facts p {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-size: 15px;
}

.mz-facts small {
	font-size: 13px;
	line-height: 1.5;
	color: rgba(0, 0, 0, 0.6);
}

.mz-services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: var(--space-4);
}

.mz-services a {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 56px;
	min-height: 300px;
	padding: clamp(28px, 3.5vw, 44px);
	color: var(--text-primary);
	text-decoration: none;
	transition: all var(--mz-ease);
}

body .mz-services a:hover {
	background: var(--ax-primary);
	color: var(--ax-text);
}

.mz-services a > div {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mz-services a > div:first-child {
	flex-direction: row;
	justify-content: space-between;
	align-items: start;
}

.mz-services .material-symbols-outlined {
	font-size: var(--font-size-3xl);
	font-weight: 300;
}

.mz-services strong {
	font-size: clamp(28px, 2.6vw, 38px);
	font-weight: 400;
	letter-spacing: -0.025em;
}

.mz-services small {
	max-width: 380px;
	font-size: 15px;
	line-height: 1.5;
	opacity: 0.7;
}

/* ---------- Static pages ---------- */

.mz-page {
	display: flex;
	flex-direction: column;
	gap: clamp(40px, 6vw, 88px);
	width: 100%;
	padding: clamp(8px, 3vw, 48px) 0 0;
}

.mz-page-head {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
	max-width: 880px;
}

.mz-page-head h1 {
	margin: 0;
	font-size: clamp(44px, 6vw, 96px);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: -0.04em;
	white-space: normal;
}

.mz-page-head p {
	margin: 0;
	max-width: 620px;
	font-size: var(--font-size-lg);
	line-height: 1.6;
	color: var(--text-muted);
}

.mz-page-hero {
	position: relative;
	aspect-ratio: 21 / 9;
	min-height: 280px;
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	background: #ececec;
}

.mz-prose {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-width: 880px;
}

.mz-prose section {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: var(--space-4);
	padding: 28px 0;
	border-top: 1px solid var(--ui-secondary);
}

.mz-prose section > span {
	padding-top: 6px;
	font-size: 13px;
	color: var(--ax-primary);
}

.mz-prose h2 {
	margin: 0 0 var(--space-3);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 400;
	letter-spacing: -0.02em;
}

.mz-prose p,
.mz-prose li {
	margin: 0 0 var(--space-3);
	font-size: var(--font-size-base);
	line-height: 1.65;
	color: rgba(0, 0, 0, 0.72);
}

.mz-prose ul,
.mz-prose ol {
	margin: 0 0 var(--space-3);
	padding-left: var(--space-5);
}

.mz-prose strong {
	font-weight: 500;
	color: var(--text-primary);
}

.mz-prose a {
	color: var(--ax-primary);
}

.mz-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.mz-table th,
.mz-table td {
	padding: var(--space-3) var(--space-2);
	text-align: left;
	border-bottom: 1px solid var(--ui-primary);
}

.mz-table th {
	font-size: var(--font-size-xs);
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.mz-cta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-6);
	flex-wrap: wrap;
	padding: clamp(28px, 4vw, 56px);
	background: var(--ax-primary);
	color: var(--ax-text);
	border-radius: var(--radius);
}

.mz-cta strong {
	font-family: var(--mz-display);
	font-size: clamp(30px, 3.4vw, 48px);
	font-weight: 400;
	line-height: 1.05;
}

.mz-cta p {
	margin: var(--space-2) 0 0;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.78);
}

/* ---------- Guides, FAQ, policies ---------- */

.mz-prose hr {
	display: none;
}

.mz-prose h3 {
	margin: var(--space-5) 0 var(--space-2);
	font-size: var(--font-size-lg);
	font-weight: 500;
}

.mz-glyph {
	font: normal 44px/1 shape-font;
	color: var(--ax-primary);
}

.mz-shape-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--space-4);
	margin: var(--space-2) 0 var(--space-3);
}

.mz-shape-list > div {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: var(--space-6);
}

.mz-shape-list strong {
	font-size: var(--font-size-lg);
	font-weight: 400;
}

.mz-shape-list p {
	margin: 0;
	font-size: var(--font-size-sm);
}

.mz-guides {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--space-4);
}

.mz-guides a {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--space-10);
	min-height: 220px;
	padding: 28px;
	color: var(--text-primary);
	text-decoration: none;
	transition: all var(--mz-ease);
}

body .mz-guides a:hover {
	background: var(--ax-primary);
	color: var(--ax-text);
}

.mz-guides a > div {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.mz-guides strong {
	font-size: 26px;
	font-weight: 400;
	letter-spacing: -0.02em;
}

.mz-guides small {
	font-size: var(--font-size-sm);
	line-height: 1.5;
	opacity: 0.7;
}

.mz-guides .material-symbols-outlined {
	align-self: flex-end;
	font-size: 26px;
	font-weight: 300;
}

.mz-faq {
	display: flex;
	flex-direction: column;
	max-width: 880px;
}

.mz-faq h2 {
	margin: var(--space-10) 0 var(--space-2);
	font-size: var(--font-size-xs);
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ax-primary);
}

.mz-faq details {
	border-top: 1px solid var(--ui-secondary);
}

.mz-faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-4);
	padding: 22px 0;
	font-size: var(--font-size-lg);
	cursor: pointer;
	list-style: none;
}

.mz-faq summary::-webkit-details-marker {
	display: none;
}

.mz-faq summary::after {
	content: '+';
	font-size: var(--font-size-2xl);
	font-weight: 300;
	color: var(--ax-primary);
}

.mz-faq details[open] summary::after {
	content: '–';
}

.mz-faq details p {
	margin: 0 0 22px;
	max-width: 720px;
	font-size: var(--font-size-base);
	line-height: 1.65;
	color: rgba(0, 0, 0, 0.72);
}

/* ---------- Product pages ---------- */

[v-cloak] {
	visibility: hidden;
}

.mz-pdp {
	display: flex;
	flex-direction: column;
	gap: clamp(64px, 8vw, 120px);
	padding: 0 var(--mz-gutter);
}

.mz-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: var(--space-5);
	margin-bottom: calc(-1 * clamp(44px, 6vw, 100px));
	font-size: var(--font-size-xs);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
}

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

.mz-crumbs > span:last-child {
	color: var(--text-primary);
}

.mz-pdp-main {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: clamp(32px, 4vw, 72px);
	align-items: start;
}

.mz-pdp-media {
	position: relative;
	min-width: 0;
}

.mz-pdp-badge {
	position: absolute;
	top: 18px;
	left: 18px;
	padding: 6px 10px;
	border-radius: var(--radius);
	background: var(--ax-primary);
	color: var(--ax-text);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	pointer-events: none;
}

/* Gallery: the lead image across both columns, the rest in pairs. */
body .mz-pdp .image-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
}

body .mz-pdp .image-grid > :first-child {
	grid-column: 1 / -1;
}

body .mz-pdp .grid-image,
body .mz-pdp .carousel-main,
body .mz-pdp .thumb-btn {
	border: 0;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-primary);
}

body .mz-pdp .carousel-main,
body .mz-pdp .carousel-main > * {
	max-height: none;
}

body .mz-pdp .carousel-thumbs {
	gap: var(--space-3);
}

body .mz-pdp .thumb-btn {
	width: 72px;
	height: 72px;
	border: 1px solid var(--ui-primary);
}

body .mz-pdp .thumb-btn.active {
	border-color: var(--ax-primary);
}

.mz-pdp-info {
	position: sticky;
	top: 150px;
	display: flex;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
}

.mz-pdp-head {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mz-pdp-head h1 {
	margin: 0;
	font-family: var(--mz-display);
	font-weight: 400;
	font-size: clamp(40px, 4.4vw, 72px);
	line-height: 0.95;
	letter-spacing: 0.01em;
	white-space: normal;
}

.mz-pdp-head p {
	margin: 0;
	font-size: var(--font-size-base);
	line-height: 1.5;
	color: rgba(0, 0, 0, 0.68);
}

.mz-pdp-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-3);
	padding-top: 6px;
	font-size: 28px;
	letter-spacing: -0.02em;
}

.mz-pdp-price small {
	font-size: 13px;
	letter-spacing: 0;
	color: var(--text-muted);
}

/* Variant swatches, purity chips and the ring size field. */
.mz-pdp-options {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding-top: 28px;
	border-top: 1px solid var(--ui-secondary);
}

.mz-pdp-options:not(:has(button, select, input)) {
	display: none;
}

.mz-pdp-options .mz-link {
	align-self: flex-end;
	margin-top: -8px;
	font-size: 11px;
}

body .mz-pdp .variant-picker {
	gap: var(--space-6);
}

body .mz-pdp .variant-label,
body .mz-pdp .optional-form .form-label {
	margin-bottom: var(--space-3);
	font-size: var(--font-size-xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-muted);
}

body .mz-pdp .variant-label strong {
	font-weight: 400;
}

body .mz-pdp .swatches {
	gap: 10px;
}

body .mz-pdp .swatch {
	width: 44px;
	height: 44px;
	border: 1px solid var(--ui-secondary);
	box-shadow: inset 0 0 0 4px var(--text-tint);
}

body .mz-pdp .swatch.selected {
	border-color: var(--ax-primary);
	border-width: 1px;
}

body .mz-pdp .chips {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: var(--space-2);
}

body .mz-pdp .chip {
	height: 46px;
	border: 1px solid var(--ui-secondary);
	border-radius: var(--radius);
	background: var(--bg-primary);
	box-shadow: none;
	font-size: var(--font-size-sm);
}

body .mz-pdp .chip.selected {
	border-color: var(--ax-primary);
	background: var(--ax-primary);
	color: var(--ax-text);
}

body .mz-pdp product-variants {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}

body .mz-pdp .optional-form,
body .mz-pdp .optional-form .form-group {
	display: block;
	width: 100%;
}

body .mz-pdp .optional-form .form-label {
	display: block;
}

body .mz-pdp .optional-form select,
body .mz-pdp .optional-form input {
	width: 100%;
	height: 50px;
	padding: 0 var(--space-4);
	border: 1px solid var(--ui-secondary);
	border-radius: var(--radius);
	background: var(--bg-primary);
	font-size: 15px;
}

.mz-pdp-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	border: 1px solid var(--ui-secondary);
	border-radius: var(--radius);
	background: var(--ui-secondary);
}

.mz-pdp-specs div {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px var(--space-5);
	background: var(--bg-primary);
}

.mz-pdp-specs span {
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.mz-pdp-specs strong {
	font-size: 17px;
	font-weight: 400;
}

.mz-pdp-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mz-pdp-buy {
	display: flex;
	align-items: stretch;
	gap: var(--space-2);
}

.mz-pdp-buy product-add {
	flex: 1;
}

body .mz-pdp-actions .btn.primary,
body .mz-pdp-actions .compose-button {
	width: 100%;
	height: 56px;
	border: 0;
	border-radius: var(--radius);
	/* The primary-button tokens, so the compose call matches every .btn.primary. */
	background: var(--bg-neutral);
	color: var(--bg-secondary);
	font-size: 15px;
	font-weight: 500;
}

body .mz-pdp-actions .btn.primary:hover {
	background: var(--bg-tint);
}

/* Beside the composer's call, adding the loose stone is the quieter choice. */
body .mz-pdp-actions compose-button + .mz-pdp-buy .btn.primary {
	height: 52px;
	border: 1px solid var(--ui-secondary);
	background: var(--bg-primary);
	color: var(--text-primary);
	font-weight: 400;
}

body .mz-pdp-actions compose-button + .mz-pdp-buy .btn.primary:hover {
	border-color: var(--ax-primary);
	color: var(--ax-primary);
}

.mz-pdp-buy product-save {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	border: 1px solid var(--ui-secondary);
	border-radius: var(--radius);
	background: var(--bg-primary);
	color: var(--ax-primary);
	font-size: 22px;
}

.mz-pdp-visit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	border: 1px solid var(--ui-secondary);
	border-radius: var(--radius);
	color: var(--text-primary);
	font-size: var(--font-size-sm);
	text-decoration: none;
	transition: all var(--mz-ease);
}

.mz-pdp-visit:hover {
	border-color: var(--ax-primary);
}

.mz-pdp-visit.quiet {
	height: auto;
	padding: 10px 0;
	border: 0;
	font-size: 13px;
	color: rgba(0, 0, 0, 0.72);
}

.mz-pdp-visit .material-symbols-outlined {
	font-size: var(--font-size-xl);
}

.mz-pdp-perks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4) var(--space-5);
	padding: var(--space-6) 0;
	border-block: 1px solid var(--ui-secondary);
	font-size: 13px;
	color: rgba(0, 0, 0, 0.72);
}

.mz-pdp-perks > span {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mz-pdp-perks .material-symbols-outlined {
	font-size: var(--font-size-xl);
	color: var(--ax-primary);
}

.mz-pdp-panels details {
	border-bottom: 1px solid var(--ui-secondary);
}

.mz-pdp-panels summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--space-5) 0;
	font-size: 15px;
	cursor: pointer;
	list-style: none;
}

.mz-pdp-panels summary::-webkit-details-marker {
	display: none;
}

.mz-pdp-panels summary::after {
	content: 'add';
	font-family: 'Material Symbols Outlined';
	font-size: var(--font-size-xl);
	font-weight: 300;
}

.mz-pdp-panels details[open] summary::after {
	content: 'remove';
}

.mz-pdp-panels dl {
	margin: 0 0 var(--space-5);
}

.mz-pdp-panels dl div,
body .mz-pdp-panels .tbl tr {
	display: flex;
	justify-content: space-between;
	gap: var(--space-5);
	padding: 9px 0;
	font-size: var(--font-size-sm);
}

.mz-pdp-panels dt,
body .mz-pdp-panels .tbl td:first-child {
	color: rgba(0, 0, 0, 0.58);
}

.mz-pdp-panels dd {
	margin: 0;
	text-align: right;
}

body .mz-pdp-panels .tbl {
	width: 100%;
	margin-bottom: var(--space-5);
	background: none;
}

body .mz-pdp-panels .tbl td {
	width: auto;
	padding: 0;
	border: 0;
	background: none;
	opacity: 1;
}

body .mz-pdp-panels .tbl td:last-child {
	text-align: right;
}

/* Navy fact panel: copy on one side, four figures on the other. */
.mz-pdp-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--ax-primary);
	color: var(--ax-text);
}

.mz-pdp-facts > div:first-child {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--space-12);
	padding: clamp(32px, 5vw, 72px);
}

.mz-pdp-facts .mz-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.72);
}

.mz-pdp-facts h2 {
	margin: 0 0 var(--space-6);
	font-weight: 400;
	font-size: clamp(36px, 4.2vw, 64px);
	line-height: 0.95;
	letter-spacing: -0.04em;
}

.mz-pdp-facts p {
	margin: 0;
	max-width: 440px;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}

.mz-pdp-fact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.mz-pdp-fact-grid > div {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 10px;
	min-height: 180px;
	padding: clamp(24px, 3vw, 40px);
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mz-pdp-fact-grid strong {
	font-family: var(--mz-display);
	font-size: clamp(34px, 3.6vw, 56px);
	font-weight: 400;
	line-height: 1;
}

.mz-pdp-fact-grid small {
	margin-left: 6px;
	font-family: var(--font-body, sans-serif);
	font-size: var(--font-size-base);
	color: rgba(255, 255, 255, 0.72);
}

.mz-pdp-fact-grid span {
	font-size: var(--font-size-xs);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.mz-pdp-related h2 {
	margin: 0;
	font-weight: 400;
	font-size: clamp(32px, 3.6vw, 56px);
	line-height: 0.95;
	letter-spacing: -0.035em;
}

.mz-pdp-related-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: end;
	gap: var(--space-6);
	margin-bottom: var(--space-10);
}

.mz-pdp-related-head > div {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mz-pdp-related-head .mz-link {
	align-self: auto;
}

body .mz-pdp .similar-row {
	padding: var(--space-5) 0;
	border-color: var(--ui-secondary);
	font-size: 15px;
	transition: all var(--mz-ease);
}

body .mz-pdp a.similar-row:hover {
	padding-left: var(--space-3);
	color: var(--ax-primary);
}

body .mz-pdp .similar-head {
	padding-top: 0;
	font-size: 11px;
	letter-spacing: 0.16em;
}

@media (max-width: 900px) {
	.mz-pdp-info {
		position: static;
	}

	.mz-crumbs {
		margin-bottom: -40px;
	}
}

/* ---------- Finished build ---------- */

.mz-build-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
}

.mz-build-gallery img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	border-radius: var(--radius);
	background: var(--bg-primary);
}

.mz-build-gallery img:first-child {
	grid-column: 1 / -1;
}

.mz-build-parts {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--ui-secondary);
}

.mz-build-part {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	gap: var(--space-4);
	align-items: center;
	padding: var(--space-4) 0;
	border-bottom: 1px solid var(--ui-secondary);
}

.mz-build-part img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: var(--radius);
	background: var(--bg-primary);
}

.mz-build-part > div {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
}

.mz-build-part > div:last-child {
	align-items: flex-end;
}

.mz-build-part a:not(.mz-link) {
	color: var(--text-primary);
	font-size: var(--font-size-base);
	text-decoration: none;
}

.mz-build-part small {
	font-size: 13px;
	color: var(--text-muted);
}

.mz-build-part .mz-link {
	align-self: flex-end;
	padding-bottom: 2px;
	font-size: 11px;
}

/* ---------- Shop (category search) ---------- */

.mz-serp {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	padding: var(--space-12) var(--mz-gutter) 0;
}

/* Results on the left, filters in a column on the right. The bar and the
   column both pin under the header; the column scrolls on its own when it
   outgrows the screen, and keeps that scroll from moving the page. */
.mz-serp-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
	gap: clamp(32px, 4vw, 64px);
}

.mz-serp-main {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	min-width: 0;
}

/* Above the cards' own layers (their hearts sit at 2), under the header's menus. */
.mz-serp-bar {
	position: sticky;
	top: var(--mz-head);
	z-index: 10;
	display: flex;
	align-items: center;
	gap: var(--space-4);
	padding: var(--space-4) 0;
	border-block: 1px solid var(--ui-secondary);
	background: var(--bg-secondary);
	font-size: var(--font-size-xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.mz-serp-bar > span {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mz-serp-sort {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-5);
	white-space: nowrap;
}

.mz-serp-sort button {
	padding: 0 0 var(--space-1);
	border: 0;
	border-bottom: 1px solid transparent;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
}

.mz-serp-sort button.on {
	border-color: var(--ax-primary);
	color: var(--text-primary);
}

/* Plain case: a select sizes to its options without the bar's tracking. */
.mz-serp-sort-menu {
	flex-shrink: 0;
	min-width: 112px;
	padding: var(--space-2) 0;
	border: 0;
	background: none;
	color: var(--text-primary);
	font: inherit;
	font-size: 13px;
}

.mz-serp-toggle {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: var(--space-2) 14px;
	border: 1px solid var(--ui-secondary);
	border-radius: var(--radius);
	background: var(--bg-primary);
	color: var(--text-primary);
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
}

.mz-serp-toggle .material-symbols-outlined {
	font-size: var(--font-size-lg);
}

.mz-serp-side {
	position: sticky;
	top: var(--mz-head);
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	max-height: calc(100dvh - var(--mz-head));
	/* Slider thumbs overhang their track; they must not scroll the column sideways. */
	overflow: hidden auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--ui-secondary) transparent;
	scrollbar-gutter: stable;
	/* A gutter so the scrollbar never touches the filters. */
	padding: var(--space-5) var(--space-4) var(--space-8) 0;
}

.mz-serp-side-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mz-serp-close {
	display: flex;
	padding: var(--space-1);
	border: 0;
	background: none;
	color: var(--text-primary);
	cursor: pointer;
}

/* Drawer parts; body outranks the store's .btn display. */
body .mz-serp-sort-menu,
body .mz-serp-toggle,
body .mz-serp-close,
body .mz-serp-apply,
body .mz-serp-scrim {
	display: none;
}

/* Outranks the accordion layout's own gutter bleed and white card. */
body .mz-serp .mz-serp-side .filters-container.accordion-layout .accordion {
	margin: 0;
	padding: 18px 0;
	border: 0;
	border-top: 1px solid var(--ui-secondary);
	border-radius: 0;
	background: none;
	font-size: var(--font-size-xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-primary);
}

/* One field per line in the narrow column. */
body .mz-serp-side .filter-row {
	flex-direction: column;
	align-items: stretch;
}

/* Swatches wrap into a grid rather than scroll sideways. */
body .mz-serp-side .swatch-wrap .options {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-3) var(--space-1);
	overflow: visible;
	width: 100%;
}

body .mz-serp-side .swatch-wrap .scroller {
	display: none;
}

/* Text chips wrap at their own width. */
body .mz-serp-side .swatch-wrap.text-mode .options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* Small screens: the bar carries a sort menu and a Filters button, and the
   column becomes a drawer rising from the bottom. */
@media (max-width: 900px) {
	.mz-serp-body {
		grid-template-columns: minmax(0, 1fr);
	}

	.mz-serp-bar {
		margin-inline: calc(-1 * var(--mz-gutter));
		padding: 10px var(--mz-gutter);
	}

	.mz-serp-sort {
		display: none;
	}

	body .mz-serp-sort-menu,
	body .mz-serp-toggle,
	body .mz-serp-close {
		display: flex;
	}

	.mz-serp-side {
		position: fixed;
		inset: auto 0 0;
		z-index: calc(var(--z-overlay) + 1);
		max-height: 85dvh;
		padding: 0 var(--space-5);
		border-radius: 20px 20px 0 0;
		background: var(--bg-secondary);
		box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12);
		transform: translateY(100%);
		visibility: hidden;
		transition:
			transform 300ms ease,
			visibility 300ms;
	}

	.mz-serp-body.open .mz-serp-side {
		transform: none;
		visibility: visible;
	}

	.mz-serp-side-head {
		position: sticky;
		top: 0;
		z-index: 1;
		padding: var(--space-6) 0 var(--space-2);
		background: var(--bg-secondary);
	}

	/* The drawer's grab handle. */
	.mz-serp-side-head::before {
		content: '';
		position: absolute;
		top: 8px;
		left: calc(50% - 18px);
		width: 36px;
		height: 4px;
		border-radius: 2px;
		background: var(--ui-secondary);
	}

	body .mz-serp-apply {
		position: sticky;
		bottom: 0;
		display: block;
		flex-shrink: 0;
		width: 100%;
		height: 52px;
		margin: var(--space-2) 0 max(var(--space-4), env(safe-area-inset-bottom));
		box-shadow: 0 -16px 16px var(--bg-secondary);
	}

	body .mz-serp-scrim {
		position: fixed;
		inset: 0;
		z-index: var(--z-overlay);
		display: block;
		background: rgba(0, 0, 0, 0.35);
		opacity: 0;
		pointer-events: none;
		transition: opacity 300ms ease;
	}

	.mz-serp-body.open .mz-serp-scrim {
		opacity: 1;
		pointer-events: auto;
	}

	/* The page stays put behind an open drawer. */
	body:has(.mz-serp-body.open) {
		overflow: hidden;
	}
}
