:root {
	--mty-ink: #2c2722;
	--mty-muted: #6a625b;
	--mty-paper: #fff;
	--mty-stone: #f3f1ee;
	--mty-canvas: #f0e8dd;
	--mty-clay: #b57f60;
	--mty-pine: #405449;
	--mty-rule: rgba(44, 39, 34, 0.16);
	--mty-shadow: 0 18px 50px rgba(44, 39, 34, 0.08);
	--mty-arch: 999px 999px 0 0;
	/* The hand-drawn rays from the logo, used as a mask so they take any color. */
	--mty-rays: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 1 28 13' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M16 2.5v7M9.5 4.5l2.6 4.6M22.5 4.5l-2.6 4.6M4 9.5l5 2.4M28 9.5l-5 2.4'/%3E%3C/svg%3E");
}

html {
	overflow-x: clip;
	scroll-behavior: smooth;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
	color: var(--mty-ink);
}

button,
input,
select,
textarea {
	font: inherit;
}

img {
	height: auto;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--mty-clay);
	outline-offset: 3px;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.wp-block-button__link,
.wp-element-button,
.wc-block-components-button,
.single_add_to_cart_button,
.button {
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.wc-block-components-button:hover,
.single_add_to_cart_button:hover,
.button:hover {
	background-color: var(--mty-clay);
	color: var(--mty-paper);
}

/* Header */
.mty-site-header {
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--mty-rule);
	position: relative;
	z-index: 20;
}

.mty-header-main {
	min-height: 6.4rem;
	padding-block: 1rem;
}

.mty-brand {
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}

.mty-brand img {
	display: block;
	height: auto;
	width: clamp(9rem, 15vw, 12.25rem);
}

.mty-primary-nav {
	font-size: 1rem;
	margin-inline: auto;
}

.mty-primary-nav .wp-block-navigation__container {
	gap: 2rem;
}

.mty-primary-nav a {
	text-decoration: none;
}

.mty-header-tools {
	gap: 0.6rem;
}

.mty-header-tools .wp-block-search {
	margin: 0;
	width: clamp(10rem, 16vw, 15rem);
}

.mty-header-tools .wp-block-search__inside-wrapper {
	border: 0;
	border-bottom: 1px solid var(--mty-ink);
	padding: 0;
}

.mty-header-tools .wp-block-search__input {
	background: transparent;
	border: 0;
	font-size: 0.875rem;
	padding: 0.55rem 0.25rem;
}

.mty-header-tools .wp-block-search__button {
	background: transparent;
	color: var(--mty-ink);
	margin: 0;
	padding: 0 0.25rem 0 0.5rem;
}

.mty-header-tools .wp-block-woocommerce-customer-account,
.mty-header-tools .wc-block-mini-cart {
	margin: 0;
}

.mty-header-tools .wc-block-customer-account__link,
.mty-header-tools .wc-block-mini-cart__button {
	align-items: center;
	border-radius: 50%;
	color: var(--mty-ink);
	display: inline-flex;
	height: 2.5rem;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s ease;
	width: 2.5rem;
}

.mty-header-tools .wc-block-customer-account__link:hover,
.mty-header-tools .wc-block-mini-cart__button:hover {
	background: var(--mty-stone);
	opacity: 1;
}

.mty-header-tools .wc-block-customer-account__visual,
.mty-header-tools .wc-block-mini-cart__quantity-badge {
	display: flex;
}

.mty-header-tools svg.mty-icon {
	display: block;
	fill: none;
	height: 1.375rem;
	margin: 0;
	width: 1.375rem;
}

.mty-header-tools .wc-block-mini-cart__badge {
	background: var(--mty-ink) !important;
	border: 0;
	box-shadow: 0 0 0 2px var(--mty-paper);
	color: #fff !important;
	font-size: 0.625rem;
	font-weight: 600;
	height: 1rem;
	left: auto;
	margin: 0;
	min-width: 1rem;
	right: -0.7rem;
	top: 0;
	transform: translateY(-50%);
}

.mty-trust-strip {
	background: var(--mty-canvas);
	column-gap: clamp(1rem, 4vw, 3.75rem);
	min-height: 2.25rem;
	padding: 0.35rem 1rem;
}

.mty-trust-strip p {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

.mty-trust-strip p:not(:first-child)::before {
	background: var(--mty-clay);
	content: "";
	display: inline-block;
	height: 0.5rem;
	-webkit-mask: var(--mty-rays) center / contain no-repeat;
	mask: var(--mty-rays) center / contain no-repeat;
	margin-right: clamp(1rem, 4vw, 3.75rem);
	vertical-align: 0.15em;
	width: 1.1rem;
}

/* Home */
.mty-hero {
	gap: clamp(1.5rem, 4vw, 5rem);
	grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 1.08fr) !important;
	min-height: min(700px, calc(100vh - 9rem));
	padding-block: clamp(3.5rem, 8vw, 7rem);
}

.mty-hero-copy {
	align-self: center;
}

.mty-hero-copy h1 {
	margin-block: 1rem 1.5rem;
}

.mty-hero-copy h1 em {
	color: var(--mty-clay);
	font-weight: inherit;
}

.mty-hero-copy > p:not(.mty-eyebrow) {
	color: var(--mty-muted);
	font-size: clamp(1rem, 1.2vw, 1.18rem) !important;
	max-width: 33rem;
}

.mty-eyebrow {
	align-items: center;
	color: var(--mty-clay);
	display: flex;
	font-size: 0.72rem;
	font-weight: 700;
	gap: 0.6em;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.mty-eyebrow::before {
	background: currentColor;
	content: "";
	flex: none;
	height: 0.8em;
	-webkit-mask: var(--mty-rays) center / contain no-repeat;
	mask: var(--mty-rays) center / contain no-repeat;
	transform: translateY(-0.2em);
	width: 1.75em;
}

.has-text-align-center.mty-eyebrow,
.mty-empty-state .mty-eyebrow { justify-content: center; }

/* The hero photo sits in a rounded arch window, with a canvas arch behind it. */
.mty-hero-art {
	align-self: stretch;
	min-height: 34rem;
	position: relative;
}

.mty-hero-art::before {
	background: var(--mty-canvas);
	border-radius: min(14rem, 40%) min(14rem, 40%) 0 0 / min(14rem, 30%) min(14rem, 30%) 0 0;
	content: "";
	inset: 1.5rem -1.5rem -1.5rem 1.5rem;
	position: absolute;
}

.mty-hero-image {
	border-radius: min(14rem, 40%) min(14rem, 40%) 0 0 / min(14rem, 30%) min(14rem, 30%) 0 0;
	container-type: size;
	inset: 0;
	margin: 0;
	overflow: hidden;
	position: absolute;
}

/*
 * The scene keeps the photo's 3:4 shape and covers the arch window, so the
 * banner layer stays pinned to the wall at every size. Banner position and
 * hanging point are measured from the 1350 x 1800 photo.
 */
.mty-hero-scene {
	--mty-scene-w: max(100cqw, 75cqh);
	aspect-ratio: 3 / 4;
	left: calc((100cqw - var(--mty-scene-w)) / 2);
	position: absolute;
	top: calc((100cqh - var(--mty-scene-w) * 4 / 3) * 0.48);
	width: var(--mty-scene-w);
}

.mty-hero-room {
	display: block;
	height: 100%;
	width: 100%;
}

.mty-hero-banner {
	filter: drop-shadow(0.15rem 0.3rem 0.25rem rgba(44, 39, 34, 0.22));
	height: auto;
	left: 56.593%;
	position: absolute;
	top: 20%;
	transform-origin: 42.54% 1.82%;
	width: 36.741%;
}

/*
 * Scroll scene: the photo opens close on the banner and pulls back to the
 * whole nursery as the page scrolls. The banner sways on its string in front
 * of the wall, and the arch behind drifts for depth.
 * CSS only; browsers without scroll timelines keep the still layout.
 */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: scroll()) {
		.mty-hero-scene {
			animation: mty-hero-pull cubic-bezier(0.2, 0.6, 0.35, 1) both;
			animation-range: 0 50vh;
			animation-timeline: scroll(root);
			transform-origin: 72% 36%;
		}

		.mty-hero-banner {
			animation: mty-hero-sway ease-in-out both;
			animation-range: 0 45vh;
			animation-timeline: scroll(root);
		}

		.mty-hero-image {
			animation: mty-hero-rise cubic-bezier(0.2, 0.6, 0.35, 1) both;
			animation-range: 0 50vh;
			animation-timeline: scroll(root);
		}

		.mty-hero-art::before {
			animation: mty-hero-drift cubic-bezier(0.2, 0.6, 0.35, 1) both;
			animation-range: 0 50vh;
			animation-timeline: scroll(root);
		}
	}
}

@keyframes mty-hero-pull {
	from { transform: scale(1.32); }
	to { transform: scale(1); }
}

@keyframes mty-hero-sway {
	0% { transform: rotate(0deg); }
	15% { transform: rotate(3deg) translateX(-0.2%); }
	40% { transform: rotate(-2deg); }
	65% { transform: rotate(0.9deg); }
	85% { transform: rotate(-0.3deg); }
	100% { transform: rotate(0deg); }
}

@keyframes mty-hero-rise {
	to { transform: translateY(-1.5rem); }
}

@keyframes mty-hero-drift {
	to { transform: translate(0.75rem, 1.75rem); }
}

.mty-shop-intro {
	border-top: 1px solid var(--mty-rule);
	margin-top: clamp(1rem, 4vw, 4rem);
	padding-top: clamp(2rem, 5vw, 4rem);
}

.mty-shop-intro a {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.mty-home-products {
	margin-bottom: clamp(4rem, 9vw, 8rem);
}

.mty-home-products:has(+ .mty-favorites-intro) { margin-bottom: 0; }

.mty-home-products .wc-block-product-template,
.mty-product-grid .wc-block-product-template {
	gap: clamp(1rem, 2.5vw, 2rem);
}

@media (min-width: 721px) {
	.mty-product-grid .wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

.mty-home-products .wc-block-components-product-image,
.mty-product-grid .wc-block-components-product-image {
	background: var(--mty-stone);
	border-radius: 10px;
	overflow: hidden;
}

.mty-home-products .wc-block-components-product-image img,
.mty-product-grid .wc-block-components-product-image img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 250ms ease;
}

.mty-home-products .wc-block-components-product-image:hover img,
.mty-product-grid .wc-block-components-product-image:hover img {
	transform: scale(1.015);
}

.mty-home-products .wp-block-post-title,
.mty-product-grid .wp-block-post-title {
	margin-block: 0.75rem 0.2rem;
}

.mty-product-grid .wp-block-post-title {
	font-size: clamp(1.125rem, 1.35vw, 1.25rem) !important;
	line-height: 1.25;
}

.mty-home-products .wp-block-post-title a,
.mty-product-grid .wp-block-post-title a {
	text-decoration: none;
}

.mty-process {
	padding-block: clamp(4rem, 8vw, 7rem);
}

.mty-process > h2 {
	margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.mty-process .wp-block-columns {
	gap: clamp(2rem, 5vw, 5rem);
}

.mty-process .wp-block-column {
	border-top: 1px solid var(--mty-ink);
	padding-top: 1.25rem;
}

.mty-process-number {
	color: var(--mty-clay);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.4rem;
	margin: 0;
}

/* Product and catalog */
.mty-product-page,
.mty-shop-page,
.mty-page-shell,
.mty-checkout-shell {
	padding-block: clamp(2rem, 5vw, 5rem);
}

.mty-product-page .woocommerce-breadcrumb,
.mty-shop-page .woocommerce-breadcrumb {
	color: var(--mty-muted);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin-bottom: clamp(1.5rem, 4vw, 3rem);
	text-transform: uppercase;
}

.mty-product-layout {
	align-items: flex-start !important;
	gap: clamp(2rem, 5vw, 5.5rem);
}

.mty-product-gallery .wc-block-product-gallery-large-image {
	background: var(--mty-stone);
	border-radius: 10px;
	overflow: hidden;
}

.mty-product-gallery .wc-block-product-gallery-thumbnails__thumbnail__image {
	border-radius: 10px;
}

.mty-product-buy {
	position: sticky;
	top: 2rem;
}

.admin-bar .mty-product-buy {
	top: calc(2rem + 32px);
}

/* The gallery stays in view while the options column scrolls past it. */
.mty-product-gallery {
	position: sticky;
	top: 2rem;
}

.admin-bar .mty-product-gallery { top: calc(2rem + 32px); }

@media (max-width: 781px) {
	.mty-product-gallery { position: static; }
}

.mty-product-buy .wp-block-post-title {
	font-size: clamp(1.9rem, 2.9vw, 3.4rem) !important;
	margin: 0 0 1rem;
}

.mty-product-buy .wc-block-components-product-price {
	font-weight: 600;
	margin-block: 0.75rem 1.25rem;
}

.mty-product-buy .wp-block-post-excerpt {
	color: var(--mty-muted);
	font-size: 0.95rem;
	margin-bottom: 1.4rem;
}

.mty-product-promises {
	border-block: 1px solid var(--mty-rule);
	margin-block: 1.25rem 1.75rem;
	padding-block: 1rem;
}

.mty-product-promises p {
	font-size: 0.82rem;
	margin: 0.35rem 0;
}

.mty-product-promises span {
	color: var(--mty-pine);
	font-weight: 800;
	margin-right: 0.45rem;
}

/* Quantity and Add to cart share one row and one height. */
.mty-product-buy .wp-block-group:has(> .wc-block-add-to-cart-with-options__quantity-selector) {
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.mty-product-buy .wc-block-add-to-cart-with-options__quantity-selector {
	border: 1px solid rgba(44, 39, 34, 0.38);
	border-radius: 0.625rem;
	flex: none;
	overflow: hidden;
}

.mty-product-buy .wc-block-components-quantity-selector {
	height: 3.25rem;
	min-width: 0;
}

.mty-product-buy .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	font-size: 1.25rem;
	line-height: 1;
	opacity: 1;
	transition: background-color 150ms ease;
	width: 2.75rem;
}

.mty-product-buy .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover:not(:disabled) { background: var(--mty-stone); }

.mty-product-buy .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled { color: rgba(44, 39, 34, 0.3); }

.mty-product-buy .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	border: 0;
	border-radius: 0;
	font-size: 1rem;
	font-weight: 600;
	min-width: 0;
	padding: 0;
	width: 2.5rem;
}

.mty-product-buy .wc-block-components-quantity-selector :is(button, input):focus { box-shadow: none; }

.mty-product-buy .wp-block-woocommerce-product-button {
	flex: 1 1 auto;
	margin: 0;
}

.mty-product-buy .wp-block-woocommerce-product-button .single_add_to_cart_button {
	height: 100%;
	justify-content: center;
	letter-spacing: 0.04em;
	width: 100%;
}

.mty-product-buy .single_add_to_cart_button {
	background: var(--mty-ink);
	border: 1px solid var(--mty-ink);
	border-radius: 0.625rem;
	color: var(--mty-paper);
	cursor: pointer;
	font-weight: 700;
	min-height: 3.25rem;
	padding-inline: 1.5rem;
}

.mty-product-buy .single_add_to_cart_button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.mty-product-buy label,
.mty-product-buy legend {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.045em;
}

.mty-product-buy input[type="text"],
.mty-product-buy input[type="number"]:not(.wc-block-components-quantity-selector__input),
.mty-product-buy select,
.mty-product-buy textarea {
	background: var(--mty-paper);
	border: 1px solid rgba(44, 39, 34, 0.45);
	border-radius: 2px;
	box-sizing: border-box;
	padding: 0.78rem;
}

/* Personalization fields: label, then instructions, then a soft rounded box. */
.mty-product-buy .mty-personalisation { margin: 1.75rem 0 0.75rem; }

.mty-product-buy .mty-personalisation legend {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.35rem;
	font-weight: 400;
	letter-spacing: 0;
	margin-bottom: 1rem;
	padding: 0;
}

.mty-product-buy .mty-personalisation__field { margin: 0 0 1.35rem; }

/* The character count sits inside the usual gap, so every field spaces evenly. */
.mty-product-buy .mty-personalisation__field:has(.mty-character-count) { margin-bottom: 0.35rem; }

.mty-product-buy .mty-personalisation__field label {
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0;
	margin-bottom: 0.5rem;
}

.mty-product-buy .mty-personalisation__field label:has(+ .mty-field-hint) { margin-bottom: 0.15rem; }

.mty-field-optional { color: var(--mty-muted); font-weight: 400; }

.mty-field-hint {
	color: var(--mty-muted);
	display: block;
	font-size: 0.9rem;
	line-height: 1.45;
	margin-bottom: 0.55rem;
}

.mty-product-buy .mty-personalisation__field :is(input, textarea),
.mty-product-buy .mty-color-select__trigger {
	background: var(--mty-paper);
	border: 1px solid rgba(44, 39, 34, 0.38);
	border-radius: 0.625rem;
	min-height: 3.1rem;
	padding: 0.8rem 0.95rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mty-product-buy .mty-color-select__trigger { font-size: 1rem; padding-right: 2.6rem; }

.mty-product-buy .mty-personalisation__field input { font-size: 1rem; }

.mty-product-buy .mty-personalisation__field :is(input, textarea):hover,
.mty-product-buy .mty-color-select__trigger:hover { border-color: rgba(44, 39, 34, 0.7); }

.mty-product-buy .mty-personalisation__field :is(input, textarea):focus,
.mty-product-buy .mty-color-select.is-open .mty-color-select__trigger {
	border-color: var(--mty-ink);
	box-shadow: 0 0 0 1px var(--mty-ink);
	outline: 0;
}

.mty-product-buy .mty-color-select__trigger[aria-invalid="true"] {
	border-color: #b32d2e;
	box-shadow: 0 0 0 1px #b32d2e;
	outline: 0;
}

.mty-product-buy .mty-color-select__menu { border-radius: 0.625rem; }

.mty-product-buy .mty-color-select__swatch { height: 1.25rem; width: 1.25rem; }

.mty-product-buy .mty-character-count {
	color: var(--mty-muted);
	font-size: 0.85rem;
	line-height: 1;
	margin-top: 0.3rem;
	opacity: 1;
}

.mty-order-help {
	background: var(--mty-stone);
	margin-top: 1.25rem;
	padding: 0.75rem 1rem;
	text-align: center;
}

.mty-order-help p { margin:0; }

.mty-category-tagline { background:var(--mty-canvas); margin-top:clamp(1rem,2.5vw,2.5rem); padding:clamp(1.25rem,3vw,2.25rem); text-align:center; }

.mty-category-tagline p { font-family:var(--wp--preset--font-family--display); font-size:clamp(1.2rem,2vw,1.65rem); margin:0 auto; max-width:48rem; }

.mty-product-details { margin-block:clamp(1.5rem,4vw,3rem) clamp(3rem,7vw,7rem); }

.mty-product-details .wc-block-components-tabs__list { border-bottom-color:var(--mty-rule); }

/* Related products. Selectors follow the block structure so saved Site Editor
 * copies of the product template match the theme version. */
.mty-product-page > .wp-block-separator,
.mty-product-page > .wp-block-heading + .wp-block-woocommerce-product-collection > .wp-block-heading { display: none; }

.mty-product-page > .wp-block-heading { margin-top: clamp(2rem, 5vw, 4rem); }

.mty-product-page .wp-block-woocommerce-product-collection { margin-bottom: clamp(3rem, 7vw, 6rem); }

.mty-product-page .wp-block-woocommerce-product-collection .wc-block-product-template {
	display: grid !important;
	gap: clamp(1rem, 2.5vw, 2rem);
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	margin: 0;
	padding: 0;
}

.mty-product-page .wp-block-woocommerce-product-collection .wc-block-product {
	margin: 0;
	max-width: none !important;
	text-align: left;
	width: auto !important;
}

.mty-product-page .wp-block-woocommerce-product-collection .wc-block-product:nth-child(n+5) { display: none; }

.mty-product-page .wp-block-woocommerce-product-collection .wc-block-components-product-image {
	background: var(--mty-stone);
	border-radius: 10px;
	margin: 0;
	overflow: hidden;
}

.mty-product-page .wp-block-woocommerce-product-collection .wc-block-components-product-image img {
	aspect-ratio: 4 / 5 !important;
	height: auto !important;
	object-fit: cover;
	transition: transform 250ms ease;
	width: 100%;
}

.mty-product-page .wp-block-woocommerce-product-collection .wc-block-components-product-image:hover img { transform: scale(1.015); }

.mty-product-page .wp-block-woocommerce-product-collection .wp-block-post-title {
	font-size: clamp(1.125rem, 1.35vw, 1.25rem) !important;
	line-height: 1.25;
	margin: 0.75rem 0 0.2rem !important;
	text-align: left !important;
}

.mty-product-page .wp-block-woocommerce-product-collection .wp-block-post-title a { text-decoration: none; }

.mty-product-page .wp-block-woocommerce-product-collection .wc-block-components-product-price { text-align: left !important; }

.mty-product-page .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-button { display: none; }

@media (max-width: 720px) {
	.mty-product-page .wp-block-woocommerce-product-collection .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

	.mty-product-page .wp-block-woocommerce-product-collection .wp-block-post-title { font-size: 1.1rem !important; }
}

.mty-product-buy .wc-block-components-product-summary {
	color: var(--mty-muted);
	font-size: 0.9375rem !important;
	line-height: 1.6;
}

.mty-product-gallery .wc-block-product-gallery-thumbnails__thumbnail__image {
	filter: none !important;
	opacity: 0.6;
	transition: opacity 150ms ease;
}

.mty-product-gallery .wc-block-product-gallery-thumbnails__thumbnail__image:is(:hover, .wc-block-product-gallery-thumbnails__thumbnail__image--is-active) { opacity: 1; }

.mty-product-gallery .wc-block-product-gallery-thumbnails__thumbnail__image--is-active {
	outline: 2px solid var(--mty-ink);
	outline-offset: -2px;
}

/* Empty cart suggestions match the shop cards. Personalized items need their
 * product page, so the quick add buttons are hidden. */
.wp-block-product-new .wc-block-grid__products {
	display: grid;
	gap: clamp(1rem, 2.5vw, 2rem);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
}

.wp-block-product-new .wc-block-grid__product {
	border: 0;
	flex: none !important;
	margin: 0;
	max-width: none !important;
	padding: 0;
	text-align: left;
	width: auto !important;
}

@media (max-width: 720px) { .wp-block-product-new .wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.wp-block-product-new .wc-block-grid__product-link { color: inherit; display: block; text-decoration: none; }

.wp-block-product-new .wc-block-grid__product-image img {
	aspect-ratio: 4 / 5;
	background: var(--mty-stone);
	border-radius: 10px;
	display: block;
	object-fit: cover;
	width: 100%;
}

.wp-block-product-new .wc-block-grid__product-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	font-weight: 400;
	margin-top: 0.75rem;
}

.wp-block-product-new .wc-block-grid__product-price { font-size: 0.8125rem; }

.wp-block-product-new .wc-block-grid__product-add-to-cart { display: none; }

.mty-description--collapsed{max-height:22rem;overflow:hidden;position:relative}
.mty-description--collapsed:after{background:linear-gradient(#fff0,var(--mty-paper));bottom:0;content:"";height:5rem;inset-inline:0;position:absolute}
.mty-description-toggle{background:none;border:0;border-bottom:1px solid;cursor:pointer;font-weight:700;margin-top:1rem;padding:.2rem 0}
.mty-description-toggle:after{content:" ↓"}
.mty-description-toggle[aria-expanded=true]:after{content:" ↑"}
.mty-description-toggle:hover{color:var(--mty-clay)}

.mty-shop-page > .wp-block-query-title { margin-bottom:1.5rem; }

.mty-shop-page > .wp-block-term-description {
	color: var(--mty-muted);
	margin-inline: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) auto !important;
	max-width: 43rem;
	width: min(43rem, var(--wp--style--global--wide-size));
}

.mty-category-section { margin-block:clamp(2.5rem,6vw,5.5rem); }

.mty-home > .mty-category-section { margin-top:clamp(1.5rem,3vw,2.5rem); }

/* Category navigation: arch-topped photo tiles on the home page. */
.mty-category-grid {
	display: grid;
	gap: clamp(1rem, 2.5vw, 2rem);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.mty-category-card a {
	color: inherit;
	display: block;
	text-decoration: none;
}

.mty-category-media {
	aspect-ratio: 4 / 5;
	background: var(--mty-canvas);
	border-radius: var(--mty-arch);
	display: block;
	overflow: hidden;
}

.mty-category-card:nth-child(even) .mty-category-media { background: var(--mty-stone); }

.mty-category-media img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
	width: 100%;
}

.mty-category-card a:hover img { transform: scale(1.04); }

.mty-category-name {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.2;
	margin-top: 1rem;
}

.mty-category-name::after {
	color: var(--mty-clay);
	content: "\a0→";
	display: inline-block;
	transition: transform 200ms ease;
}

.mty-category-card a:hover .mty-category-name::after { transform: translateX(0.25em); }

.mty-category-text {
	color: var(--mty-muted);
	display: block;
	font-size: 0.8125rem;
	line-height: 1.5;
	margin-top: 0.3rem;
}

/* On shop and category pages the same links become a compact switcher. */
.mty-shop-page .mty-category-section { margin-block: clamp(1.5rem, 3vw, 2.5rem) 0; }

.mty-shop-page .mty-category-section .mty-eyebrow { display: none; }

.mty-shop-page .mty-category-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.mty-shop-page .mty-category-card a {
	align-items: center;
	border: 1px solid var(--mty-rule);
	border-radius: 999px;
	display: flex;
	gap: 0.7rem;
	padding: 0.35rem 1.15rem 0.35rem 0.35rem;
	transition: border-color 150ms ease, background-color 150ms ease;
}

.mty-shop-page .mty-category-card a:hover { border-color: var(--mty-ink); }

.mty-shop-page .mty-category-card.is-current a {
	background: var(--mty-canvas);
	border-color: var(--mty-ink);
}

.mty-shop-page .mty-category-media {
	border-radius: 999px;
	flex: none;
	width: 2.5rem;
	aspect-ratio: 1;
}

.mty-shop-page .mty-category-name {
	font-size: 1.0625rem;
	margin: 0;
}

.mty-shop-page .mty-category-name::after,
.mty-shop-page .mty-category-text { display: none; }

.mty-shop-tools {
	align-items: center;
	border-block: 1px solid var(--mty-rule);
	margin-block: clamp(2rem, 5vw, 4rem) 2rem;
	padding-block: 0.8rem;
}

.mty-product-filters {
	margin: 0;
}

.mty-product-filters .wc-block-product-filters__open-overlay {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--mty-ink);
	cursor: pointer;
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 700;
	gap: 0.45rem;
	letter-spacing: 0.07em;
	padding: 0.45rem 0;
	text-transform: uppercase;
}

.mty-product-filters .wc-block-product-filters__open-overlay:hover {
	background: transparent;
	color: var(--mty-clay);
}

.mty-product-filters .wc-block-product-filters__overlay-content {
	background: var(--mty-paper);
	padding: 1.5rem;
}

/* WooCommerce displays drawer filters inline above 600px by default. Keep the
 * same compact trigger and off-canvas interaction at every viewport size. */
@media (min-width: 601px) {
	.mty-product-filters,
	.mty-product-filters.is-overlay-opened {
		display: inline-flex;
	}

	.mty-product-filters .wc-block-product-filters__open-overlay,
	.mty-product-filters.is-overlay-opened .wc-block-product-filters__open-overlay {
		display: inline-flex;
	}

	.mty-product-filters .wc-block-product-filters__overlay,
	.mty-product-filters.is-overlay-opened .wc-block-product-filters__overlay {
		background: transparent;
		inset: 0;
		pointer-events: none;
		position: fixed;
		transition: background-color 180ms ease;
		z-index: 9999;
	}

	.mty-product-filters .wc-block-product-filters__overlay-wrapper,
	.mty-product-filters.is-overlay-opened .wc-block-product-filters__overlay-wrapper {
		height: 100%;
		width: 100%;
	}

	.mty-product-filters .wc-block-product-filters__overlay-dialog,
	.mty-product-filters.is-overlay-opened .wc-block-product-filters__overlay-dialog {
		background: var(--mty-paper);
		box-shadow: var(--mty-shadow);
		inset: 0 0 0 auto;
		max-height: 100%;
		position: absolute;
		transform: translateX(100%);
		transition: transform 180ms ease, visibility 0s linear 180ms;
		visibility: hidden;
		width: min(28rem, 100%);
	}

	.mty-product-filters .wc-block-product-filters__overlay-header,
	.mty-product-filters .wc-block-product-filters__overlay-footer,
	.mty-product-filters.is-overlay-opened .wc-block-product-filters__overlay-header,
	.mty-product-filters.is-overlay-opened .wc-block-product-filters__overlay-footer {
		display: flex;
	}

	.mty-product-filters .wc-block-product-filters__overlay-content,
	.mty-product-filters.is-overlay-opened .wc-block-product-filters__overlay-content {
		overflow-y: auto;
		padding: 1.5rem;
	}

	.mty-product-filters.is-overlay-opened .wc-block-product-filters__overlay {
		background: rgba(44, 39, 34, 0.28);
		pointer-events: auto;
	}

	.mty-product-filters.is-overlay-opened .wc-block-product-filters__overlay-dialog {
		transform: translateX(0);
		transition: transform 180ms ease;
		visibility: visible;
	}
}

.mty-product-filters .wc-block-product-filter-attribute {
	border-bottom: 1px solid var(--mty-rule);
	padding-block: 1.25rem;
}

.mty-shop-tools select {
	background-color: transparent;
	border: 0;
	font-size: 0.82rem;
}

.mty-shop-page .wp-block-query-pagination {
	gap: 0.5rem;
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

.mty-shop-page .wp-block-query-pagination-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
}

.mty-shop-page :is(
	.wp-block-query-pagination-previous,
	.wp-block-query-pagination-next,
	.wp-block-query-pagination-numbers a.page-numbers,
	.wp-block-query-pagination-numbers span.page-numbers.current
) {
	align-items: center;
	background: var(--mty-paper);
	border: 1px solid rgba(44, 39, 34, 0.38);
	border-radius: 2px;
	color: var(--mty-ink);
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1;
	min-height: 2.75rem;
	min-width: 2.75rem;
	padding: 0.75rem 0.9rem;
	text-decoration: none;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.mty-shop-page .wp-block-query-pagination-numbers span.page-numbers.current {
	background: var(--mty-ink);
	border-color: var(--mty-ink);
	color: var(--mty-paper);
}

.mty-shop-page :is(
	.wp-block-query-pagination-previous,
	.wp-block-query-pagination-next,
	.wp-block-query-pagination-numbers a.page-numbers
):hover {
	background: var(--mty-clay);
	border-color: var(--mty-clay);
	color: var(--mty-paper);
}

/* Content, checkout and footer */
.mty-page-shell > .wp-block-post-title {
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

.mty-page-shell .wp-block-post-content {
	line-height: 1.7;
}

.mty-page-shell .wp-block-post-content > :is(h2, h3) {
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

.mty-page-shell .wp-block-post-content > :is(.mty-story-intro, .mty-value-grid) {
	left: 50%;
	max-width: var(--wp--style--global--wide-size);
	position: relative;
	transform: translateX(-50%);
	width: var(--wp--style--global--wide-size);
}

.mty-page-shell .wp-block-details {
	border-bottom: 1px solid var(--mty-rule);
	margin: 0;
	padding-block: 1.25rem;
}

.mty-page-shell .wp-block-details:first-of-type { border-top:1px solid var(--mty-rule); }

.mty-page-shell .wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
	line-height: 1.25;
	list-style: none;
	padding-right: 2rem;
	position: relative;
}

.mty-page-shell .wp-block-details summary::-webkit-details-marker { display:none; }

.mty-page-shell .wp-block-details summary::after { color:var(--mty-clay); content:"+"; position:absolute; right:0; top:0; }

.mty-page-shell .wp-block-details[open] summary::after { content:"−"; }

.mty-page-shell .wp-block-details[open] summary { margin-bottom:1rem; }

.mty-story-intro {
	align-items: end;
	background: var(--mty-canvas);
	gap: clamp(2rem, 7vw, 7rem);
	grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 0.65fr) !important;
	margin-bottom: clamp(3rem, 7vw, 6rem);
	padding: clamp(2rem, 6vw, 5rem);
}

.mty-story-intro > * { margin:0; }

.mty-story-copy { margin-bottom:clamp(3rem,7vw,6rem); }

.mty-value-grid { gap:1rem; }

.mty-value-grid .wp-block-column { border-top:1px solid var(--mty-ink); padding-top:1.25rem; }

.mty-contact-panel,
.mty-contact-details {
	background: var(--mty-canvas);
	padding: clamp(2rem, 6vw, 4.5rem);
}

.mty-contact-panel > :first-child,
.mty-contact-details > :first-child { margin-top:0; }

.mty-post-card { border-bottom:1px solid var(--mty-rule); padding-block:2rem; }

.mty-empty-state { min-height:60vh; padding-block:clamp(5rem,12vw,10rem); text-align:center; }

.mty-empty-state .wp-block-search,
.mty-empty-state .wp-block-buttons {
	justify-content: center;
	margin-inline: auto;
	max-width: 32rem;
}

.mty-shop-page > .mty-search-again { margin:1.5rem max(0px,calc((100% - var(--wp--style--global--wide-size))/2)) 0 !important; max-width:32rem; }

.mty-shop-tools:not(:has(.wc-block-product-filters,.woocommerce-ordering,.woocommerce-result-count)) { display:none; }

.mty-no-results { padding-block:clamp(2rem,6vw,4rem); text-align:center; }

.mty-no-results .wp-block-buttons { justify-content:center; }

.mty-checkout-header {
	align-items: center;
	border-bottom: 1px solid var(--mty-rule);
	display: flex;
	justify-content: space-between;
	padding-block: 1.25rem;
}

.mty-checkout-header .mty-brand img { width:10rem; }

.mty-checkout-note {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	margin: 0;
	text-transform: uppercase;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-form .wc-block-components-textarea {
	border-radius: 2px !important;
}

.mty-site-footer {
	background: var(--mty-ink);
	color: var(--mty-canvas);
	margin-top: 0;
	padding-block: clamp(4rem, 8vw, 7rem) 1.5rem;
}

.mty-site-footer a,
.mty-site-footer h3 {
	color: var(--mty-canvas);
}

.mty-site-footer .wp-block-columns {
	gap: clamp(2rem, 6vw, 7rem);
}

.mty-site-footer .wp-block-navigation {
	font-size: 0.8rem;
	letter-spacing: normal;
	text-transform: none;
}

.mty-brand--footer img {
	filter: invert(93%) sepia(8%) saturate(396%) hue-rotate(343deg) brightness(102%);
	margin-bottom: 1.5rem;
	width: 12rem;
}

.mty-site-footer .wp-block-column:first-child p {
	max-width: 25rem;
}

/* Customer Reviews badge: fit the dark footer and show only the store rating. */
.mty-site-footer .cr-trustbadgef { margin-top:1.5rem; }

.mty-site-footer .cr-trustbadgef .cr-badge { background:none !important; border:0; color:inherit; font-family:inherit; padding:0; visibility:visible; }

.mty-site-footer .cr-badge :is(.badge__store,.verified,.rating__product) { display:none; }

.mty-site-footer .cr-badge .badge__stars { margin:0 0 .4rem; }

.mty-site-footer .cr-badge .badge__star { height:1.1rem; margin-right:2px; width:1.1rem; }

.mty-site-footer .cr-badge .rating { font-size:0; }

.mty-site-footer .cr-badge :is(.rating__store,.rating__reviews) { font-size:.8125rem; margin-right:.35em; }

.mty-footer-legal {
	border-top: 1px solid rgba(240, 232, 221, 0.25);
	font-size: 0.7rem;
	margin-top: 3rem;
	padding-top: 1.25rem;
	width: 100%;
}

.mty-footer-legal p {
	margin: 0;
}

@media (max-width: 960px) {
	.mty-header-main {
		min-height: 5.25rem;
	}

	.mty-primary-nav {
		margin-inline: 0 0;
		order: 3;
	}

	.mty-header-tools .wp-block-search {
		display: none;
	}

	.mty-hero {
		grid-template-columns: 1fr 1fr !important;
	}

	.mty-product-layout {
		gap: 2.25rem;
	}

	.mty-product-buy {
		position: static;
	}
}

@media (max-width: 720px) {
	.mty-header-main {
		padding-block: 0.75rem;
	}

	.mty-brand img {
		width: 8.75rem;
	}

	.mty-primary-nav .wp-block-navigation__responsive-container-open {
		display: flex;
	}

	.mty-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		align-items: center;
		background: var(--mty-paper);
		border: 1px solid var(--mty-rule);
		border-radius: 50%;
		color: var(--mty-ink);
		display: flex;
		height: 3rem;
		justify-content: center;
		padding: 0;
		position: absolute;
		right: 1rem;
		top: 1rem;
		width: 3rem;
		z-index: 2;
	}

	.mty-primary-nav .wp-block-navigation__responsive-container-close svg {
		height: 1.5rem;
		width: 1.5rem;
	}

	.mty-trust-strip p:not(:last-child) { display: none; }

	.mty-trust-strip p:last-child::before { display: none; }

	.mty-hero {
		grid-template-columns: 1fr !important;
		min-height: 0;
		padding-block: 3rem;
	}

	.mty-hero-art {
		margin-right: 1rem;
		min-height: 26rem;
	}

	.mty-hero-art::before { inset: 1rem -1rem -1rem 1rem; }

	.mty-home-products .wc-block-product-template,
	.mty-product-grid .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	/* Swipeable rows keep categories to one screen height on phones. */
	.mty-category-grid,
	.mty-shop-page .mty-category-grid {
		flex-wrap: nowrap;
		margin-inline: calc(-1 * clamp(1rem, 3vw, 2rem));
		overflow-x: auto;
		padding-inline: clamp(1rem, 3vw, 2rem);
		scroll-padding-inline: clamp(1rem, 3vw, 2rem);
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.mty-category-grid { grid-auto-columns: 42%; grid-auto-flow: column; grid-template-columns: none; }

	.mty-category-card { flex: none; scroll-snap-align: start; }

	.mty-category-text { display: none; }

	.mty-category-name { font-size: 1.125rem; margin-top: 0.75rem; }

	.mty-category-name::after { display: none; }

	.mty-product-layout {
		gap: 1.5rem;
	}

	.mty-product-buy .wp-block-post-title {
		font-size: clamp(1.85rem, 9vw, 2.65rem) !important;
	}

	.mty-product-details {
		margin-block: 3rem;
	}

	.mty-story-intro {
		grid-template-columns: 1fr !important;
	}

	.mty-site-footer .wp-block-columns {
		gap: 2rem;
	}
}

@media (max-width: 430px) {
	.mty-header-tools {
		gap: 0.1rem;
	}

	.mty-header-tools .wc-block-mini-cart__badge {
		font-size: 0.6rem;
	}

	.mty-home-products .wc-block-product-template,
	.mty-product-grid .wc-block-product-template {
		column-gap: 0.8rem;
	}

	.mty-home-products .wp-block-post-title,
	.mty-product-grid .wp-block-post-title {
		font-size: 1.1rem !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
