/* Single product template. */
.niomah-product {
	padding-block: clamp(1.5rem, 4vw, 4rem) clamp(3rem, 7vw, 6rem);
}

.niomah-product .woocommerce-breadcrumb {
	color: var(--wp--preset--color--charcoal);
	font-size: var(--wp--preset--font-size--small);
	overflow-wrap: anywhere;
}

.niomah-product .niomah-product__layout {
	margin-block-start: clamp(1.5rem, 3vw, 3rem);
}

.niomah-product__layout > .wp-block-column {
	min-width: 0;
}

.niomah-product .wp-block-woocommerce-product-image-gallery {
	max-width: none;
}

.niomah-product .woocommerce-product-gallery__image > a {
	display: block;
	cursor: zoom-in;
}

.niomah-product .woocommerce-product-gallery__image > a > img,
.niomah-product .woocommerce-product-gallery__image--placeholder > img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	background: var(--wp--preset--color--stone);
}

.niomah-product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	gap: .5rem;
	overflow-x: auto;
	padding-block: .5rem;
}

.niomah-product .woocommerce-product-gallery .flex-control-thumbs li {
	flex: 0 0 clamp(3.25rem, 15%, 5rem);
}

.niomah-product .woocommerce-product-gallery .flex-control-thumbs img {
	aspect-ratio: 1;
	object-fit: contain;
	background: var(--wp--preset--color--stone);
}

.niomah-product__information {
	overflow-wrap: anywhere;
}

.niomah-product__information > h1 {
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	margin-block: 0;
}

.niomah-product__information .wp-block-woocommerce-product-price {
	margin-block-start: .75rem;
}

.niomah-product__information .wp-block-post-excerpt,
.niomah-product__disclosure > :not(summary) {
	color: var(--wp--preset--color--charcoal);
}

.niomah-product__information .stock {
	font-size: var(--wp--preset--font-size--small);
}

.niomah-product__information .wp-block-woocommerce-add-to-cart-form form.variations_form {
	display: block;
}

.niomah-product__information .variations {
	width: 100%;
	table-layout: fixed;
}

.niomah-product__information .variations :is(tbody, tr) {
	display: block;
}

.niomah-product__information .variations th,
.niomah-product__information .variations td {
	display: block;
	text-align: start;
}

.woocommerce .niomah-product__information form.cart .variations select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	margin-inline: 0;
	padding: .5rem 2.5rem .5rem .75rem;
	background-color: var(--wp--preset--color--warm-white);
	color: inherit;
	font: inherit;
	line-height: normal;
}

.niomah-product__information .reset_variations {
	display: inline-block;
	text-decoration: underline;
}

.niomah-product__information .wp-block-woocommerce-add-to-cart-form :is(form.cart:not(.variations_form, .grouped_form), .woocommerce-variation-add-to-cart) {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: .75rem;
}

.niomah-product__information form.cart .quantity {
	margin: 0;
	min-height: 48px;
}

.niomah-product__information form.cart .single_add_to_cart_button {
	flex: 1 1 9rem;
	min-height: 48px;
	padding: .85rem 1rem;
	border-radius: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--warm-white);
	font-family: inherit;
	font-size: .8125rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.niomah-product__information form.cart .single_add_to_cart_button:hover {
	background: var(--wp--preset--color--charcoal);
}

.niomah-product__disclosures {
	margin-block-start: 2rem;
	border-block-end: 1px solid var(--wp--preset--color--silver);
}

.niomah-product__disclosures > .niomah-product__disclosure {
	margin: 0;
	border-block-start: 1px solid var(--wp--preset--color--silver);
}

.niomah-product__disclosure > summary {
	cursor: pointer;
	padding-block: .9rem;
}

.niomah-product__disclosure > :not(summary) {
	margin-block: 0 1rem;
}

.niomah-product__disclosure--specifications > summary {
	display: flex;
	align-items: center;
	gap: .375em;
	list-style: none;
}

.niomah-product__disclosure--specifications > summary::-webkit-details-marker {
	display: none;
}

.niomah-product__disclosure--specifications > summary::before {
	content: "+" / "";
	flex: 0 0 .75em;
	text-align: center;
}

.niomah-product__disclosure--specifications[open] > summary::before {
	content: "−" / "";
}

.niomah-product__disclosure--specifications > summary:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.niomah-product__specifications > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: .75rem;
	padding-block: .4rem;
}

.niomah-product__specifications dt {
	font-weight: 600;
}

.niomah-product__specifications dd {
	margin: 0;
}

.niomah-product__related {
	margin-block-start: clamp(3rem, 7vw, 6rem);
}

.niomah-product__related h2 {
	font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.niomah-product__related .wc-block-product-template img {
	aspect-ratio: 1;
	object-fit: contain;
}

.niomah-product__related .wc-block-product-template h3 {
	margin-block: .75rem .15rem;
}

.niomah-product__related .wc-block-product-template .wp-block-woocommerce-product-price {
	margin-block: 0;
}

body:not(.block-editor-iframe__body) .niomah-product__disclosure:not(:has(> :not(summary))),
body:not(.block-editor-iframe__body) .niomah-product__disclosures:not(:has(.niomah-product__disclosure > :not(summary))),
body:not(.block-editor-iframe__body) .niomah-product__related:not(:has(.wc-block-product-template > li)) {
	display: none;
}

@media (max-width: 781px) {
	.niomah-product .niomah-product__layout {
		row-gap: 1.75rem;
	}
}
