:root {
	--niomah-ink: #252421;
	--niomah-paper: #fbfaf8;
	--niomah-stone: #efede9;
	--niomah-silver: #b8b9b8;
	--niomah-taupe: #827b72;
	--niomah-line: rgba(37, 36, 33, .14);
	--niomah-header-top: 0px;
}

html { scroll-behavior: smooth; }
html:has(.wp-site-blocks .niomah-header) {
	scroll-padding-block-start: calc(var(--niomah-header-top) + var(--niomah-header-height, 5rem));
}
@media (min-width: 601px) {
	html:has(#wpadminbar) { --niomah-header-top: var(--wp-admin--admin-bar--height, 32px); }
}
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .22em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--niomah-taupe); outline-offset: 4px; }

.niomah-continue-shopping {
	margin-block-start: var(--wp--preset--spacing--60);
}
.niomah-continue-shopping .niomah-continue-shopping__links {
	list-style: none;
	padding-inline-start: 0;
	border-block-start: 1px solid var(--niomah-line);
}
.niomah-continue-shopping__links li {
	margin: 0;
	border-block-end: 1px solid var(--niomah-line);
}
.niomah-continue-shopping__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: .75rem;
	color: inherit;
	text-decoration: none;
}
.niomah-continue-shopping__links a:hover,
.niomah-continue-shopping__links a:focus-visible {
	text-decoration: underline;
}
.niomah-continue-shopping__links a::after {
	content: "";
	width: .5em;
	height: .5em;
	flex: none;
	border-block-start: 1px solid currentColor;
	border-inline-end: 1px solid currentColor;
	margin-inline-end: .25em;
	transform: rotate(45deg);
}

/* Shopping Bag and the native WooCommerce drawer. */
.niomah-shopping-bag > .wp-block-post-title {
	margin-block: 0 clamp(.75rem, 2vw, 1.5rem);
	font-size: clamp(2.5rem, 5vw, 4rem);
}
.niomah-shopping-bag > .wp-block-post-content,
.niomah-shopping-bag .wc-block-cart {
	margin-block: 0;
}
.niomah-shopping-bag .niomah-continue-shopping {
	margin-block-start: 1.75rem;
	padding-inline: 0;
}
.niomah-shopping-bag .niomah-continue-shopping h2 {
	margin-block-end: .65rem;
	font-size: clamp(1.55rem, 3vw, 2rem);
}
.niomah-shopping-bag .niomah-continue-shopping__links {
	margin-block: 0;
}
.niomah-shopping-bag .niomah-continue-shopping__links a {
	box-sizing: border-box;
	min-block-size: 44px;
	padding-block: .55rem;
}
.niomah-shopping-bag .wp-block-woocommerce-empty-cart-block {
	max-inline-size: 32rem;
	margin-inline: auto;
}
.niomah-bag-empty {
	text-align: center;
}
.niomah-bag-empty::before {
	content: "";
	display: block;
	inline-size: 2rem;
	block-size: 2rem;
	margin: 0 auto .85rem;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M6 10h20l2 19H4L6 10Z M11 13V8a5 5 0 0 1 10 0v5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.niomah-bag-empty h2 {
	margin-block: 0 .5rem;
	font-size: clamp(2rem, 4vw, 2.75rem);
}
.niomah-bag-empty p {
	margin-block: 0;
}
:is(.niomah-shopping-bag, .wc-block-mini-cart__drawer) .wc-block-components-product-metadata__description {
	display: none;
}
:is(.niomah-shopping-bag, .wc-block-mini-cart__drawer) table.wc-block-cart-items .wc-block-cart-item__image img:not([hidden]) {
	display: block;
	aspect-ratio: 1;
	object-fit: cover;
}
.wc-block-mini-cart__drawer {
	max-inline-size: 100vw;
}
.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row {
	grid-template-columns: clamp(70px, 20vw, 88px) minmax(0, 1fr);
}
.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__image {
	padding-inline-end: 0;
}
.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-title-block {
	padding-inline-end: 3.25rem;
}
@media (min-width: 900px) {
	.niomah-shopping-bag .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image {
		width: 112px;
	}
}
@media (max-width: 899px) {
	.niomah-shopping-bag .wc-block-cart .wc-block-components-sidebar-layout {
		flex-direction: column;
	}
	.niomah-shopping-bag .wc-block-cart :is(.wc-block-cart__main, .wc-block-cart__sidebar) {
		box-sizing: border-box;
		width: 100%;
		margin-inline: 0;
		padding-inline: 0;
	}
	.niomah-shopping-bag .wc-block-cart .wc-block-components-sidebar .wc-block-cart__totals-title {
		display: block;
	}
	.niomah-shopping-bag .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: clamp(70px, 20vw, 96px) minmax(0, 1fr);
	}
	.niomah-shopping-bag .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image {
		padding-inline-end: 0;
	}
	:is(.niomah-shopping-bag, .wc-block-mini-cart__drawer) .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
		min-width: 44px;
		min-height: 44px;
	}
	:is(.niomah-shopping-bag, .wc-block-mini-cart__drawer) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity {
		flex-wrap: wrap;
		gap: 4px 10px;
	}
	:is(.niomah-shopping-bag, .wc-block-mini-cart__drawer) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__remove-link {
		width: auto;
		min-height: 44px;
	}
	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions {
		flex-direction: column;
	}
}

/* Store header: navigation and WooCommerce utilities. */
.niomah-header { position: relative; z-index: 5; border-bottom: 1px solid var(--niomah-line); }
body:not(.niomah-homepage) .wp-site-blocks > :is(.niomah-header, header:has(.niomah-header), .wp-block-template-part:has(.niomah-header)) {
	position: sticky;
	inset-block-start: var(--niomah-header-top);
	z-index: 50;
}
.niomah-header__inner {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(.75rem, 2vw, 2rem);
}
.niomah-primary-navigation { grid-column: 1; grid-row: 1; min-width: 0; justify-self: start; }
.niomah-primary-navigation .wp-block-navigation__container { flex-wrap: nowrap !important; gap: clamp(.8rem, 1.8vw, 1.75rem); }
.niomah-primary-navigation .wp-block-navigation-item__content { white-space: nowrap; }
.niomah-primary-navigation .wp-block-navigation-item.niomah-mobile-account-link { display: none; }
.niomah-wordmark a, .niomah-footer__wordmark a { color: inherit; text-decoration: none; }
.niomah-header-utilities { grid-column: 3; grid-row: 1; justify-self: end; align-items: center; gap: clamp(.5rem, 1vw, 1rem) !important; min-width: 0; }
.niomah-header-utilities a { white-space: nowrap; text-decoration: none; }
.niomah-header .wp-block-navigation a { text-decoration: none; }
.niomah-header .wp-block-navigation a:hover, .niomah-header-utilities a:hover { text-decoration: underline; text-underline-offset: .4em; }
.niomah-account-link { margin: 0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.niomah-header-utilities .wp-block-search { width: auto; flex: 0 0 auto; }
.niomah-header-utilities .wp-block-search__inside-wrapper { width: auto; }
.niomah-header-utilities .wp-block-search__input { width: min(8rem, 12vw); }
.niomah-header-utilities .wp-block-search__button { width: 2.75rem; height: 2.75rem; margin: 0; padding: .5rem; border: 0; background: transparent; color: var(--niomah-ink); }
.niomah-header-utilities .wp-block-search__button svg { width: 1.3rem; height: 1.3rem; }
.niomah-header-utilities:has(.wc-block-mini-cart__button:not([disabled]), .niomah-header-cart-fallback) .niomah-cart-link,
.niomah-header-utilities .wp-block-woocommerce-mini-cart:has(> .wc-block-mini-cart__button[disabled]) { display: none; }
.niomah-header-cart-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	min-height: 44px;
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.niomah-header .wc-block-mini-cart__button { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .45rem; border: 0; background: transparent; color: var(--niomah-ink); }
.niomah-header .wc-block-mini-cart__button::after { content: "Shopping Bag"; margin-left: .45rem; font-size: .7rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.niomah-header .wc-block-mini-cart__icon { width: 1.45rem; height: 1.45rem; }

/* The home header overlays the hero and changes surface without changing layout. */
.niomah-homepage .niomah-header {
	position: absolute;
	inset: 113px 0 auto;
	width: 100%;
	z-index: 50;
	border-bottom-color: transparent;
	background: transparent !important;
	color: var(--niomah-ink);
	transition: background-color .28s ease, color .28s ease, box-shadow .28s ease, border-color .28s ease;
}
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wp-block-navigation a,
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .niomah-wordmark a,
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .niomah-account-link a,
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wc-block-mini-cart__button,
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wp-block-search__button { color: inherit; }
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wp-block-search__input { color: inherit; border-color: currentColor; }
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wp-block-search__input::placeholder { color: currentColor; opacity: .72; }
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--niomah-paper); color: var(--niomah-ink); }
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wp-block-navigation__responsive-container.is-menu-open a,
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wp-block-navigation__responsive-container-close { color: var(--niomah-ink); }

/* Full-width Cover blocks outside the homepage retain their theme treatment. */
.niomah-hero {
	min-height: min(78vh, 760px);
	display: flex;
	align-items: center;
	background-color: var(--niomah-charcoal, #41413f);
	background-image: linear-gradient(112deg, #33322f 0%, #696761 48%, #c9c9c6 100%);
	background-size: cover;
	background-position: center;
}
.niomah-hero .wp-block-cover__inner-container { width: 100%; }
.niomah-hero-copy { width: min(100%, 1280px); margin-inline: auto; padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 5rem); }
.niomah-hero .niomah-eyebrow { color: #f7f5f1; }
.niomah-hero h1, .niomah-hero p { text-shadow: 0 1px 14px rgba(0, 0, 0, .18); }
.niomah-hero .wp-block-buttons { margin-top: .75rem; }
.wp-block-cover.niomah-vision-story {
	box-sizing: border-box;
	min-height: var(--niomah-half-hero-height, 0px);
	overflow-wrap: anywhere;
}
.niomah-eyebrow { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.niomah-section-heading { max-width: 14ch; }

/* Brand story and journal media placeholders remain replaceable in the editor. */
.niomah-brand-story__columns { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.niomah-brand-story__columns > .wp-block-column { min-width: 0; width: auto !important; flex-basis: auto !important; }
.niomah-editorial-image { overflow: hidden; background-color: var(--niomah-stone); }
.niomah-brand-story__image { min-height: clamp(400px, 44vw, 600px) !important; background-image: radial-gradient(ellipse at 68% 30%, rgba(255,255,255,.78), transparent 32%), linear-gradient(145deg, #d7d6d2 0%, #b7b8b7 48%, #e9e6e1 100%); background-size: cover; background-position: center; }
.niomah-journal { background: var(--niomah-paper); }
.niomah-journal .wp-block-post-template { gap: clamp(1rem, 2.5vw, 2.5rem); }
.niomah-journal-card { height: 100%; }
.niomah-journal-card .wp-block-post-featured-image { overflow: hidden; background: var(--niomah-stone); }
.niomah-journal-card .wp-block-post-featured-image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.niomah-journal-card .wp-block-post-featured-image:hover img { transform: scale(1.025); }
.niomah-journal-card .wp-block-post-date { margin-top: .5rem; color: var(--niomah-taupe); letter-spacing: .08em; text-transform: uppercase; }
.niomah-journal-empty { width: 100%; }
.niomah-journal-placeholder { min-height: clamp(260px, 30vw, 380px) !important; overflow: hidden; background-color: var(--niomah-stone); background-image: linear-gradient(145deg, #d6d5d1, #f4f2ee 55%, #b9bbba); background-size: cover; }
.niomah-journal-placeholder--two { background-image: linear-gradient(35deg, #c8c8c5, #efede9 52%, #aaaead); }
.niomah-journal-placeholder--three { background-image: linear-gradient(150deg, #e8e5df, #b9bbba 55%, #d8d6d1); }
.niomah-newsletter { text-align: center; }
.niomah-newsletter .niomah-eyebrow { color: #d4d1cb; }
.niomah-newsletter__form-slot { min-height: 1rem; }

/* Premium, intentional photo placeholders. Covers remain replaceable from Gutenberg. */
.niomah-image-placeholder { overflow: hidden; background-color: var(--niomah-stone); background-image: linear-gradient(138deg, #d5d2cc 0%, #f0eeea 46%, #aaaead 100%); background-size: cover; background-position: center; }
.niomah-image-placeholder__editor-note { display: none; }
.niomah-category-grid { gap: clamp(1rem, 2vw, 2rem); margin-top: 2rem; }
.niomah-category-grid > .wp-block-column { min-width: 0; }
.niomah-category-card { aspect-ratio: 4 / 5; min-height: 0 !important; align-items: flex-end; }
.niomah-category-card--earrings { background-image: radial-gradient(ellipse at 75% 28%, rgba(255,255,255,.7), transparent 28%), linear-gradient(145deg, #b9b8b4, #e7e4de 48%, #9b9d9d); }
.niomah-category-card--rings { background-image: radial-gradient(ellipse at 25% 30%, rgba(255,255,255,.75), transparent 25%), linear-gradient(35deg, #c9c7c2, #eeece7 52%, #a5a7a6); }
.niomah-category-card .wp-block-cover__inner-container { width: 100%; padding: clamp(1.5rem, 4vw, 3rem); }
.niomah-category-card h3 { margin: 0 0 1rem; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 400; }
.niomah-category-card .wp-block-button__link { border: 1px solid rgba(255,255,255,.82); background: transparent; color: #fff; }
.niomah-product-section .wp-block-woocommerce-product-template { gap: clamp(1rem, 2.5vw, 2.5rem); }
.niomah-shop-all .wc-block-product-template { gap: clamp(1rem, 2vw, 2rem); }
.niomah-shop-all .wc-block-components-product-image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.niomah-shop-all .wp-block-query-pagination { gap: .8rem; margin-top: 2rem; }
.niomah-shop-all .wp-block-query-pagination a { color: var(--niomah-ink); text-underline-offset: .25em; }
.niomah-shop-all .wp-block-buttons { margin-top: .5rem; }

.woocommerce-shop .niomah-header {
	box-sizing: border-box;
	padding: .55rem clamp(.75rem, 3vw, 2.75rem) !important;
	color: var(--niomah-ink);
}

.woocommerce-shop .niomah-header .wp-block-navigation__submenu-container {
	background: var(--niomah-paper);
	color: var(--niomah-ink);
}

.woocommerce-shop .niomah-header .wp-block-search__input {
	background: var(--niomah-paper);
	color: var(--niomah-ink);
}

.niomah-shop {
	padding-block: clamp(1.5rem, 4vw, 3.75rem) clamp(3rem, 7vw, 6rem);
}

.woocommerce-shop .niomah-shop {
	margin-block-start: 0;
}

.woocommerce-shop .niomah-shop__archive-heading,
body:not(.woocommerce-shop) .niomah-shop__intro {
	display: none;
}

.niomah-shop .woocommerce-breadcrumb {
	margin-block-end: 0;
	color: var(--wp--preset--color--charcoal);
	font-size: .8125rem;
}

.niomah-shop .niomah-shop__intro {
	margin-block-start: clamp(.75rem, 2vw, 1.5rem);
}

.niomah-shop__intro h1 {
	margin: 0;
	font-size: clamp(2.25rem, 5vw, 4.25rem);
}

.niomah-shop__intro p {
	margin-block: .5rem 0;
	color: var(--wp--preset--color--charcoal);
}

.niomah-shop .niomah-shop__tools {
	gap: .5rem 1rem;
}

.niomah-shop__tools:empty {
	display: none;
}

.niomah-shop__tools :is(form, select) {
	max-width: 100%;
}

.woocommerce-shop .niomah-shop__collection .wc-block-product-template {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 3.5rem) clamp(.75rem, 2vw, 1.75rem);
}

.niomah-shop__collection .wc-block-product-template > li {
	min-width: 0;
}

.woocommerce-shop .niomah-shop__collection .wc-block-product-template > li {
	display: flex;
	flex-direction: column;
}

.niomah-shop__collection .wc-block-components-product-image {
	background: var(--niomah-stone);
}

.niomah-shop__collection .wp-block-post-title {
	margin-block: .75rem .3rem;
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	overflow-wrap: anywhere;
}

.niomah-shop__collection .wp-block-woocommerce-product-price {
	margin-block-start: 0;
	font-size: .875rem;
}

.woocommerce-shop .niomah-shop__collection .wc-block-product-template > li > .wp-block-woocommerce-product-price {
	margin-block-start: auto;
}

@media (max-width: 1023px) {
	.woocommerce-shop .niomah-shop__collection .wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.woocommerce-shop .niomah-header {
		padding: .25rem clamp(.625rem, 3vw, 1.25rem) !important;
	}

	.woocommerce-shop .niomah-shop__collection .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.niomah-difference__grid { gap: clamp(1.5rem, 4vw, 4rem); margin-top: 3rem; }
.niomah-difference__grid > .wp-block-column { border-top: 1px solid rgba(255,255,255,.28); padding-top: 1.25rem; }
.niomah-difference .niomah-eyebrow { color: #d4d1cb; }
.niomah-everyday__columns { gap: clamp(2rem, 6vw, 6rem); }
.niomah-everyday__columns > .wp-block-column { min-width: 0; }
.niomah-everyday__image { aspect-ratio: 4 / 5; min-height: 0 !important; background-image: radial-gradient(ellipse at 62% 25%, rgba(255,255,255,.8), transparent 32%), linear-gradient(155deg, #c6c5c0, #ebe9e3 55%, #a8abaa); }
.niomah-journal-card__image { aspect-ratio: 4 / 5; min-height: 0 !important; }
.niomah-gifting { background-image: linear-gradient(110deg, #585650 0%, #8e8a82 52%, #d2d0ca 100%); }
.niomah-gifting__copy { padding: clamp(4rem, 9vw, 8rem) 0; }
.niomah-gifting h2 { max-width: 10ch; }
.niomah-silver-standard__grid { gap: clamp(2rem, 6vw, 6rem); margin-top: 2.5rem; }
.niomah-silver-standard__grid > .wp-block-column { min-width: 0; }
.niomah-silver-standard__columns { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.niomah-silver-standard__columns > .wp-block-column { min-width: 0; width: auto !important; flex-basis: auto !important; }
.niomah-silver-standard__image { aspect-ratio: 4 / 5; min-height: 0 !important; background-image: radial-gradient(ellipse at 65% 28%, rgba(255,255,255,.78), transparent 30%), linear-gradient(145deg, #d7d6d2, #b7b8b7 48%, #e9e6e1); }
.niomah-silver-standard__care { border-top: 1px solid var(--niomah-line); margin-top: 2rem; padding-top: 2rem; gap: 2rem; }
.niomah-silver-standard__care > .wp-block-group { flex: 1 1 28rem; }
.niomah-customer-love .niomah-section-heading { max-width: 18ch; }
.niomah-editorial-note { color: var(--niomah-ink); }
.niomah-editorial-note__columns { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.niomah-editorial-note__columns > .wp-block-column { min-width: 0; width: auto !important; flex-basis: auto !important; }
.niomah-editorial-note__image { aspect-ratio: 4 / 5; min-height: 0 !important; background-image: radial-gradient(ellipse at 58% 24%, rgba(255,255,255,.78), transparent 30%), linear-gradient(145deg, #d7d6d2, #b7b8b7 48%, #e9e6e1); }

/* Shared product and footer styling. */
.niomah-divider { border-color: var(--niomah-line); }
.niomah-footer { border-top: 1px solid var(--niomah-line); }
.niomah-footer__columns { gap: clamp(2rem, 5vw, 5rem); }
.niomah-footer__columns > .wp-block-column { min-width: 0; }
.niomah-footer__wordmark { max-width: none; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: .08em; }
.niomah-footer__wordmark { margin: 0 0 1rem; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.8rem; font-weight: 500; letter-spacing: .24em; }
.niomah-footer a { text-decoration: none; }
.niomah-footer a:hover { text-decoration: underline; }
.niomah-footer .wp-block-navigation__container { align-items: flex-start; gap: .7rem; }
.niomah-footer__bottom { gap: .75rem 2rem; }

.niomah-footer .niomah-footer__eyebrow {
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.niomah-footer__faq > .niomah-footer__feature-link {
	margin-block-start: 0;
}

.niomah-footer__feature-link > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 44px;
	padding-inline-end: 0.25rem;
	font-family: var(--wp--preset--font-family--editorial);
	line-height: 1.2;
}

.niomah-footer__feature-link > a::after {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-block-start: 1px solid currentColor;
	border-inline-end: 1px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.65;
}

@media (max-width: 768px) {
	.niomah-footer__feature-link > a {
		font-size: 1.375rem;
	}
}
.wp-block-button__link, .wc-block-components-button { transition: background-color .2s ease, color .2s ease; }
.wp-block-button__link:hover { background: var(--niomah-taupe); color: #fff; text-decoration: none; }
.woocommerce ul.products li.product a img { background: var(--niomah-stone); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.2rem; font-weight: 400; }
.woocommerce div.product .product_title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; }
.woocommerce span.onsale { background: var(--niomah-ink); border-radius: 0; }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button { border-radius: 0; letter-spacing: .1em; text-transform: uppercase; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--niomah-silver); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--niomah-taupe); }
.wp-block-woocommerce-product-template { gap: clamp(1rem, 2.5vw, 2.5rem); }
.wp-block-woocommerce-product-template .wc-block-components-product-image img { background: var(--niomah-stone); }

@media (max-width: 781px) {
	.niomah-header { padding-block: .75rem !important; }
	.niomah-header__inner { grid-template-columns: minmax(2rem, 1fr) auto minmax(2rem, 1fr); gap: .35rem; }
	.niomah-primary-navigation { grid-column: 1; grid-row: 1; }
	.niomah-wordmark { font-size: 1.3rem; letter-spacing: .22em; }
	.niomah-header-utilities { gap: .35rem !important; }
	.niomah-header-utilities .wp-block-search__input { width: min(5rem, 18vw); font-size: .75rem; }
	.niomah-account-link { font-size: .65rem; letter-spacing: .04em; }
	.niomah-header-utilities .wp-block-search__button { width: 2.25rem; height: 2.5rem; }
	.niomah-header .wc-block-mini-cart__button { min-height: 2.5rem; padding: .25rem; }
	.niomah-header .wp-block-navigation__responsive-container { padding: 2rem 1.25rem; }
	.niomah-header .wp-block-navigation__responsive-container-content { align-items: flex-start; }
	.niomah-primary-navigation .is-menu-open .wp-block-navigation-item.niomah-mobile-account-link {
		display: flex;
		align-self: stretch;
		border-block-start: 1px solid var(--niomah-line);
		padding-block-start: .55rem;
	}
	.niomah-primary-navigation .is-menu-open .niomah-mobile-account-link > a {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-block-size: 44px;
	}
	.niomah-primary-navigation .is-menu-open .niomah-mobile-account-link > a::before {
		content: "";
		flex: none;
		inline-size: 1em;
		block-size: 1em;
		background: currentColor;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='4.5' r='2.5'/%3E%3Cpath d='M2.5 14v-1a5.5 4 0 0 1 11 0v1z'/%3E%3C/svg%3E") center / contain no-repeat;
	}
	.niomah-header .wp-block-navigation__container { align-items: flex-start; gap: 1.5rem; }
	.niomah-header .wp-block-navigation-item__content { font-size: .9rem; }
	.niomah-hero { min-height: 72svh; }
	.niomah-hero-copy { padding: 4rem 1.25rem; }
	.niomah-brand-story__columns, .niomah-everyday__columns, .niomah-silver-standard__columns, .niomah-editorial-note__columns { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.niomah-brand-story__image { min-height: 390px !important; }
	.niomah-journal .wp-block-post-template { grid-template-columns: minmax(0, 1fr) !important; }
	.niomah-journal-placeholder { min-height: 280px !important; }
	.niomah-category-grid, .niomah-difference__grid, .niomah-silver-standard__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
	.niomah-category-card, .niomah-everyday__image { min-height: 0 !important; }
	.niomah-difference__grid { gap: 1.5rem; }
	.niomah-gifting { min-height: 480px !important; }
	.niomah-footer__columns { gap: 2rem; }
}
@media (max-width: 430px) {
	.niomah-header__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: .2rem; }
	.niomah-wordmark { font-size: 1.15rem; letter-spacing: .16em; }
	.niomah-header-utilities { gap: .2rem !important; }
	.niomah-header-utilities .wp-block-search__input { width: 2.6rem; padding-inline: .2rem; font-size: .68rem; }
	.niomah-account-link { font-size: .58rem; }
}
@media (max-width: 600px) {
	.niomah-shop-all .wc-block-product-template__responsive.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Homepage header and blank, editable hero. */
.niomah-homepage .niomah-header {
	position: absolute;
	inset: 113px 0 auto;
	width: 100%;
	z-index: 50;
	padding: .55rem clamp(.75rem, 3vw, 2.75rem) !important;
	border-bottom: 0;
	background: transparent !important;
	color: var(--niomah-ink);
}
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header__inner {
	min-height: 3.5rem;
	width: 100%;
	max-width: none !important;
	box-sizing: border-box;
	grid-template-columns: minmax(0, 1fr) auto;
	justify-content: space-between;
}
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-primary-navigation { grid-column: 1; justify-self: start; }
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-primary-navigation .wp-block-navigation__container {
	justify-content: flex-start;
	gap: clamp(.85rem, 1.7vw, 1.6rem);
}
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-primary-navigation .wp-block-navigation-item:first-child .wp-block-navigation-item__content {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(1.35rem, 1.8vw, 1.75rem);
	font-weight: 500;
	letter-spacing: .13em;
	text-transform: none;
}
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header-utilities { grid-column: 2; justify-self: end; }
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-cart-link { margin: 0; }
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-cart-link a {
	min-width: 48px;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
}
.niomah-homepage .wp-site-blocks { position: relative; gap: 0; }
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wp-block-navigation-item__content { min-height: 44px; display: inline-flex; align-items: center; }
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wp-block-navigation-item__content { color: inherit; text-decoration: none; }
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header-utilities .niomah-account-link a {
	min-width: 48px;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wp-block-navigation a:hover,
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .niomah-header-utilities a:hover { opacity: .76; text-decoration: underline; }
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header :focus-visible { outline-color: currentColor; }
:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--niomah-paper);
	color: var(--niomah-ink);
}
.niomah-homepage .niomah-hero {
	margin-block-start: 0;
	background-color: #FFFFFF;
	background-image: none;
}
.niomah-hero {
	position: relative;
	background-color: #77716b;
	background-image: none;
	align-items: stretch;
}
.niomah-hero .wp-block-cover__image-background { object-position: center center; }
.niomah-hero .wp-block-cover__inner-container {
	width: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
}
.niomah-hero .wp-block-cover__inner-container > .niomah-hero-copy {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 clamp(1.25rem, 5vw, 5rem) clamp(1.75rem, 5vh, 4rem);
	box-sizing: border-box;
	text-align: right;
	color: var(--niomah-ink);
}
.niomah-hero-copy h1 {
	max-width: none;
	margin: 0;
	font-family: 'Storystone', 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(5rem, 12vw, 11rem);
	font-weight: 400;
	line-height: .86;
	text-shadow: none;
}
.niomah-hero-copy p {
	margin: 3px 0 0;
	font-size: clamp(.65rem, .9vw, .8rem);
	letter-spacing: .24em;
	text-transform: uppercase;
	text-shadow: none;
}
.niomah-header-utilities .wp-block-search__button,
.niomah-header .wc-block-mini-cart__button { min-width: 48px; min-height: 48px; }
.niomah-homepage .niomah-header.is-scrolled {
	position: fixed;
	inset: var(--niomah-header-top) 0 auto;
}
.niomah-header.is-scrolled {
	background: #000 !important;
	border-bottom-color: rgba(255, 255, 255, .14);
	color: #fff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.niomah-homepage #best-sellers {
	scroll-margin-block-start: 1rem;
}
.niomah-header.is-scrolled :is(
	.wp-block-navigation__responsive-container:not(.is-menu-open) a:not(.wp-block-navigation__submenu-container a),
	.wp-block-navigation__responsive-container-open,
	.wp-block-navigation__submenu-icon:not(.wp-block-navigation__submenu-container *, .is-menu-open *),
	.niomah-wordmark a,
	.niomah-account-link a,
	.niomah-cart-link a,
	.niomah-header-cart-fallback,
	.wc-block-mini-cart__button,
	.wp-block-search__button
) { color: #fff; }
.niomah-header.is-scrolled :is(.wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open) {
	background: var(--niomah-paper);
	color: var(--niomah-ink);
}
.niomah-header.is-scrolled :is(.wp-block-navigation__submenu-container, .wp-block-navigation__responsive-container.is-menu-open) :is(a, button) {
	color: var(--niomah-ink);
}
@media (prefers-reduced-motion: reduce) {
	.niomah-homepage .niomah-header { transition: none; }
}
@media (max-width: 781px) {
	:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wp-block-navigation__responsive-container-open { min-width: 48px; min-height: 48px; color: inherit; }
	:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-primary-navigation .wp-block-navigation-item:first-child .wp-block-navigation-item__content { font-size: 1.45rem; }
	:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header-utilities { gap: .2rem !important; }
	.niomah-hero .wp-block-cover__inner-container > .niomah-hero-copy { padding: 0 1.25rem 2rem; }
	.niomah-hero-copy h1 { font-size: clamp(4.5rem, 17vw, 7rem); }
	.niomah-hero-copy p { letter-spacing: .17em; }
}
@media (min-width: 782px) {
	:is(.niomah-homepage, .woocommerce-shop, .niomah-story-page) .niomah-header .wp-block-navigation__responsive-container { display: block !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
	.niomah-homepage .niomah-header { inset-block-start: 83px; }
}

@media (max-width: 767px) {
	.niomah-homepage .niomah-header { inset-block-start: 57px; }
}

.niomah-mobile-wordmark { display: none; }

@media (min-width: 782px) {
	.niomah-header-utilities:has(> .wp-block-search:not(.niomah-mobile-search)) > .niomah-mobile-search { display: none; }
}

@media (min-width: 769px) {
	.niomah-homepage .niomah-hero-mobile-image > :is(.wp-block-cover__image-background, .wp-block-cover__video-background, .wp-block-cover__background) {
		display: none;
	}
}

@media (max-width: 781px) {
	.niomah-header .niomah-header__inner {
		min-height: 44px;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		gap: .25rem;
	}

	.niomah-header .niomah-mobile-wordmark {
		display: block;
		grid-column: 2;
		grid-row: 1;
		margin: 0;
		font: 500 clamp(1.65rem, 7vw, 2rem)/1 'Cormorant Garamond', Georgia, serif;
		letter-spacing: .055em;
	}

	.niomah-header .niomah-header-utilities { grid-column: 3; gap: .2rem !important; }
	.niomah-header .niomah-account-link,
	.niomah-header-utilities:has(> .niomah-mobile-search) > .wp-block-search:not(.niomah-mobile-search) { display: none; }

	.niomah-header .niomah-primary-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }

	.niomah-header .niomah-mobile-wordmark a,
	.niomah-header .niomah-primary-navigation :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close),
	.niomah-header .niomah-header-utilities :is(.wp-block-search__button, .wc-block-mini-cart__button, .niomah-header-cart-fallback) {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}

	.niomah-header .wc-block-mini-cart__button::after { content: none; }
	.niomah-header .wc-block-mini-cart__amount,
	.niomah-header-cart-fallback > span { display: none; }
}

@media (max-width: 768px) {
	.niomah-homepage .niomah-header {
		box-sizing: border-box;
		inset-block-start: .5rem;
		padding: .25rem clamp(.625rem, 3vw, 1.25rem) !important;
		color: #fff;
	}

	.niomah-homepage .niomah-hero {
		min-height: clamp(25rem, 78vh, 43rem) !important;
		min-height: clamp(25rem, 78svh, 43rem) !important;
		padding-inline: 0;
		isolation: isolate;
	}

	.niomah-homepage .niomah-hero + .niomah-vision-story { margin-block-start: 0; }

	.niomah-homepage .niomah-hero::after {
		content: '';
		position: absolute;
		inset: 0;
		z-index: 1;
		pointer-events: none;
		background: linear-gradient(180deg, rgb(25 21 18 / .65), transparent 32%, transparent 67%, rgb(25 21 18 / .75));
	}

	.niomah-homepage .niomah-hero > .wp-block-cover__inner-container { z-index: 2; }
	.niomah-homepage .niomah-hero .niomah-hero-copy {
		padding: 0 clamp(1rem, 5vw, 1.5rem) clamp(1.25rem, 5svh, 2rem);
		color: #fff;
	}

	.niomah-homepage .niomah-hero-copy h1 {
		font-size: clamp(2.925rem, 13.5vw, 5.175rem) !important;
		overflow-wrap: anywhere;
	}

	.niomah-homepage .niomah-hero-copy p { letter-spacing: .14em !important; }

	.niomah-homepage .niomah-vision-story { min-height: 0; }

	.niomah-homepage .niomah-vision-story > .wp-block-cover__background.has-background-dim-80 {
		opacity: .86;
	}

	.niomah-homepage .niomah-vision-story + .wp-block-niomah-best-sellers {
		margin-block-start: 0;
		padding-block-start: 1.25rem;
	}

	.niomah-homepage .wp-block-niomah-best-sellers { padding-block-end: .75rem; }

	.niomah-homepage .wp-block-niomah-best-sellers .niomah-carousel-track {
		grid-auto-columns: calc((100% - var(--carousel-gap)) / 1.5);
	}

	.niomah-homepage .wp-block-niomah-best-sellers .niomah-carousel-image {
		position: relative;
		aspect-ratio: 1;
		overflow: hidden;
	}

	.niomah-homepage .wp-block-niomah-best-sellers .niomah-carousel-image img {
		position: absolute;
		inset: 0;
	}

	.niomah-homepage .wp-block-niomah-best-sellers + .niomah-shop-by-category {
		margin-block-start: 0;
		padding-block-start: 1.5rem;
	}
}

/* Shop by Category: two-panel sticky reveal, scoped to this pattern. */
.niomah-shop-by-category {
	--niomah-category-panel-height: 100vh;
	padding: clamp(2.5rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5rem);
}

/* Start the ivory section within the category's trailing padding. */
.niomah-shop-by-category + .niomah-why {
	margin-block-start: calc(16px - clamp(2.5rem, 6vw, 6rem));
}

@media (max-width: 767px) {
	.niomah-shop-by-category + .niomah-why {
		margin-block-start: calc(12px - clamp(2.5rem, 6vw, 6rem));
	}
}

@supports (height: 100svh) {
	.niomah-shop-by-category { --niomah-category-panel-height: 100svh; }
}
.niomah-shop-by-category > .niomah-shop-category-title {
	margin: 0 0 clamp(2rem, 4vw, 4rem);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-weight: 400;
	line-height: 1;
}
.niomah-shop-by-category .niomah-shop-category + .niomah-shop-category { margin-block-start: 0; }
.niomah-shop-by-category .niomah-shop-category,
.niomah-shop-by-category .niomah-category-layout,
.niomah-shop-by-category .niomah-category-image-track,
.niomah-shop-by-category .niomah-category-content-track,
.niomah-shop-by-category .niomah-category-text-track {
	overflow: visible !important;
}
.niomah-shop-by-category .niomah-category-layout > *,
.niomah-shop-by-category .niomah-category-content-track > *,
.niomah-shop-by-category .niomah-category-text-track > * { margin-block: 0 !important; }
.niomah-shop-by-category .niomah-category-layout {
	display: grid !important;
	width: 100%;
	max-width: none !important;
	min-width: 0;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
}
.niomah-shop-by-category .niomah-category-image-track,
.niomah-shop-by-category .niomah-category-content-track,
.niomah-shop-by-category .niomah-category-text-track { min-width: 0; }
.niomah-shop-by-category .niomah-category-content-track {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}
.niomah-shop-by-category .niomah-category-card {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: var(--niomah-category-panel-height);
	min-height: var(--niomah-category-panel-height) !important;
	margin: 0;
	aspect-ratio: auto;
}
.niomah-shop-by-category .niomah-category-first-panel {
	background-color: var(--niomah-paper);
}
.niomah-shop-by-category .niomah-category-first-panel > .wp-block-cover__inner-container {
	width: 100%;
	height: 100%;
	padding: 0;
}
.niomah-shop-by-category .niomah-category-first-panel .niomah-category-text { background: transparent; color: var(--wp--preset--color--charcoal, #41413f); }
.niomah-shop-by-category .niomah-category-text {
	display: flex !important;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(1.5rem, 4vw, 4rem);
	background: var(--niomah-paper);
	text-align: left;
}
.niomah-shop-by-category .niomah-category-text h3 {
	margin: 0 0 .5rem;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(2rem, 4vw, 3.75rem);
	font-weight: 400;
	line-height: 1;
}
.niomah-shop-by-category .niomah-category-text p { margin: 0; max-width: 38ch; }
.niomah-shop-by-category .niomah-category-image,
.niomah-shop-by-category .niomah-category-second-image {
	background: var(--niomah-stone);
	background-image: none;
	overflow: hidden;
}
@media (min-width: 768px) {
	.niomah-shop-by-category.alignfull { padding-inline: 0; }
	.niomah-shop-by-category > .niomah-shop-category-title { padding-inline: clamp(1.25rem, 5vw, 5rem); }

	/* Undo only the constrained layout applied to these two category groups. */
	.niomah-shop-by-category > .niomah-shop-category {
		width: 100%;
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.niomah-shop-by-category > .niomah-shop-category > .niomah-category-layout {
		width: 100%;
		max-width: none !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(2, var(--niomah-category-panel-height));
		height: calc(2 * var(--niomah-category-panel-height));
	}
	.niomah-shop-by-category .niomah-category-image-track,
	.niomah-shop-by-category .niomah-category-content-track {
		grid-row: 1 / span 2;
		align-self: stretch;
	}
	.niomah-shop-by-category .niomah-category-rings .niomah-category-image-track { grid-column: 2; }
	.niomah-shop-by-category .niomah-category-rings .niomah-category-content-track { grid-column: 1; }
	.niomah-shop-by-category .niomah-category-earrings .niomah-category-image-track { grid-column: 1; }
	.niomah-shop-by-category .niomah-category-earrings .niomah-category-content-track { grid-column: 2; }
	.niomah-shop-by-category .niomah-category-content-track {
		grid-template-rows: repeat(2, var(--niomah-category-panel-height));
		position: relative;
		isolation: isolate;
	}
	.niomah-shop-by-category .niomah-category-text-track {
		grid-column: 1;
		grid-row: 1 / span 2;
		position: relative;
		z-index: 1;
	}
	.niomah-shop-by-category .niomah-category-image,
	.niomah-shop-by-category .niomah-category-first-panel {
		position: sticky;
		top: 0;
		bottom: auto;
		align-self: start;
	}
	.niomah-shop-by-category .niomah-category-image { z-index: 1; }
	.niomah-shop-by-category .niomah-category-first-panel { z-index: 1; }
	.niomah-shop-by-category .niomah-category-second-image {
		grid-column: 1;
		grid-row: 2;
		position: relative;
		z-index: 2;
	}
}
@media (max-width: 767px) {
	.niomah-shop-by-category {
		--niomah-category-sticky-top: var(--niomah-mobile-header-height, 5rem);
		--niomah-category-reveal-height: max(1px, calc(var(--niomah-category-panel-height) - var(--niomah-category-sticky-top)));
	}
	.niomah-shop-by-category .niomah-category-layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: var(--niomah-category-panel-height) repeat(2, var(--niomah-category-reveal-height));
		height: auto;
	}
	.niomah-shop-by-category .niomah-category-image-track {
		grid-column: 1;
		grid-row: 1;
	}
	.niomah-shop-by-category .niomah-category-content-track {
		grid-column: 1;
		grid-row: 2 / span 2;
		grid-template-rows: repeat(2, var(--niomah-category-reveal-height));
		isolation: isolate;
	}
	/* Let the text stay pinned until the second panel reaches the same top edge. */
	.niomah-shop-by-category .niomah-category-text-track {
		grid-column: 1;
		grid-row: 1 / span 2;
		position: relative;
		z-index: 1;
	}
	.niomah-shop-by-category .niomah-category-first-panel,
	.niomah-shop-by-category .niomah-category-second-image {
		height: var(--niomah-category-reveal-height);
		min-height: var(--niomah-category-reveal-height) !important;
	}
	.niomah-shop-by-category .niomah-category-first-panel {
		position: sticky;
		top: var(--niomah-category-sticky-top);
	}
	.niomah-shop-by-category .niomah-category-second-image {
		grid-column: 1;
		grid-row: 2;
		position: relative;
		z-index: 2;
	}
}

.niomah-materials .niomah-materials-video:not(:has(video))::before {
	content: "";
	display: block;
	aspect-ratio: 3 / 4;
	background: radial-gradient(ellipse at 30% 18%, #eeeae4, transparent 72%),
		linear-gradient(145deg, #ded8cf, #c9c1b5);
}

.niomah-materials .niomah-materials-video video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4 !important; /* Override the attachment ratio added by WordPress. */
	object-fit: contain;
	background: #343434;
}

@media (max-width: 768px) {
	.niomah-homepage .niomah-why + .niomah-materials {
		margin-block-start: 0;
	}

	.niomah-homepage .niomah-materials > .wp-block-columns {
		row-gap: 24px;
	}

	.niomah-homepage .niomah-materials > .wp-block-columns > .wp-block-column:first-child > p:not(:first-child) {
		font-size: 1rem;
		line-height: 1.65;
	}

	.niomah-homepage .niomah-materials a[href$="/know-what-you-wear/"] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		font-size: 1.0625rem;
	}
}

.niomah-home-catalog .wc-block-product-template.wc-block-product-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.875rem, 2.4vw, 2rem);
	margin: 0;
	padding: 0;
}

.niomah-home-catalog .wc-block-product-template > li {
	min-width: 0;
	overflow-wrap: anywhere;
}

.niomah-home-catalog .niomah-catalog-viewport {
	position: relative;
	overflow: hidden;
	touch-action: pan-y pinch-zoom;
}

.niomah-home-catalog .niomah-catalog-outgoing {
	position: absolute;
	inset: 0 0 auto;
	pointer-events: none;
}

.niomah-home-catalog {
	overflow-anchor: none;
}

.niomah-home-catalog .wp-block-query-pagination,
.niomah-home-catalog .wp-block-query-pagination-numbers {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.125rem;
}

.niomah-home-catalog .wp-block-query-pagination {
	margin-block-start: 1rem;
}

.niomah-home-catalog .wp-block-query-pagination[hidden] {
	display: none;
}

.niomah-home-catalog .wp-block-query-pagination :is(a, [aria-disabled], [aria-current]) {
	display: inline-grid;
	place-items: center;
	box-sizing: border-box;
	min-inline-size: 1.65rem;
	min-block-size: 2.75rem;
	margin: 0;
}

.niomah-home-catalog .wp-block-query-pagination [aria-current] {
	font-weight: 700;
	text-decoration: underline;
}

.niomah-home-catalog .wp-block-query-pagination [aria-disabled] {
	opacity: 0.55;
}

.niomah-home-catalog .wp-block-query-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	min-inline-size: 2.75rem;
}

.niomah-catalog-status {
	margin: 0;
	text-align: center;
}

.niomah-catalog-enhanced:not(.niomah-catalog-load-error) .niomah-catalog-status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.niomah-catalog-shop {
	text-align: center;
}

.niomah-catalog-shop a {
	display: inline-block;
	padding: 0.75rem 1.25rem;
	border: 1px solid currentColor;
	text-decoration: none;
}

.niomah-catalog-shop-desktop {
	display: none;
}

@media (width <= 360px) {
	.niomah-home-catalog .wp-block-query-pagination :is(a, [aria-disabled], [aria-current]) {
		min-inline-size: 1.375rem;
	}

	.niomah-home-catalog .wp-block-query-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
		min-inline-size: 2rem;
	}
}

.niomah-catalog-preview-image {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	background: var(--niomah-stone);
}

.niomah-catalog-preview-image img {
	width: 2.25rem;
	height: 2.25rem;
	opacity: 0.6;
}

.niomah-catalog-preview .wp-block-post-title {
	margin-block: 0.75rem;
}

.niomah-catalog-preview li {
	/* Reserve the height of one product price line. */
	padding-block-end: calc(var(--wp--preset--font-size--small) * 1.65);
}

@media (width <= 768px) {
	.niomah-catalog-preview .wc-block-product-template > li:nth-child(n+7) {
		display: none;
	}
}

@media (width > 768px) {
	.niomah-home-catalog .wc-block-product-template.wc-block-product-template {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.niomah-home-catalog {
		container-type: inline-size;
	}

	.niomah-home-catalog .niomah-catalog-viewport {
		box-sizing: border-box;
		block-size: clamp(30rem, calc(67cqw + 6rem), 57rem);
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: #877e74 transparent;
		scrollbar-gutter: stable;
		padding-inline-end: 0.375rem;
		touch-action: auto;
	}

	.niomah-catalog-enhanced:not(.niomah-catalog-load-error) .wp-block-query-pagination {
		display: none;
	}

	.niomah-catalog-shop-desktop {
		display: inline;
	}

	.niomah-catalog-shop-mobile {
		display: none;
	}

	.niomah-catalog-shop a {
		padding: 0;
		border: 0;
		text-decoration: underline;
		text-underline-offset: 0.2em;
	}
}


/* New Arrivals keeps the Shop card spacing and uses the template column setting. */
.niomah-new-arrivals .niomah-new-arrivals__collection .wc-block-product-template {
	grid-template-columns: repeat(var(--niomah-arrivals-columns, 4), minmax(0, 1fr));
}

.niomah-arrivals-empty {
	padding-block: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 1023px) {
	.niomah-new-arrivals .niomah-new-arrivals__collection .wc-block-product-template {
		grid-template-columns: repeat(min(3, var(--niomah-arrivals-columns, 4)), minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.niomah-new-arrivals .niomah-new-arrivals__collection .wc-block-product-template {
		grid-template-columns: repeat(min(2, var(--niomah-arrivals-columns, 4)), minmax(0, 1fr));
	}
}
