/*
 * Moonlite product page (templates/store-product.php), on top of shop.css (its colours, type
 * and product cards). Loaded only on product pages in the Moonlite design.
 *
 * Text never sits on a photo or a torn edge: the price and Add to cart live in a plain card.
 * Buttons are ink-on-orange (5:1). WooCommerce's own product-page rules (purple buttons,
 * floats, clearfix) are overridden with selectors one step more specific than theirs.
 */

.ml-product-page {
	--ml-radius: 20px;
	--ml-ship-bg: #E7F2E6;
	--ml-ship-ink: #1F4D24;
	font-family: Barlow, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.ml-product-page .ml-ico {
	display: block;
	flex: none;
	width: 22px;
	height: 22px;
}

/* ------------------------------------------------------------------ Frame */

.ml-product-top {
	max-width: var(--ml-container);
	margin: 0 auto;
	/* 170px: the site header overlays the top of every page. */
	padding: calc(170px + clamp(1.25rem, .75rem + 1.5vw, 2rem)) var(--ml-gutter) clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

@media (max-width: 767px) {
	/* Phones: the header overlays 220px. */
	.ml-product-top {
		padding-top: 236px;
	}
}

/* ------------------------------------------------------------------ Breadcrumb */

.ml-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .25rem 0;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
	color: var(--ml-ink-2);
	font-size: .9rem;
	font-weight: 600;
}

.ml-crumbs li {
	min-width: 0;
	margin: 0;
}

.ml-crumbs li + li::before {
	content: "/";
	margin: 0 .55rem;
	color: var(--ml-muted);
	font-weight: 400;
}

.ml-crumbs a {
	text-decoration: none;
}

.ml-crumbs a:hover {
	text-decoration: underline;
}

.ml-crumbs [aria-current="page"] {
	overflow: hidden;
	color: var(--ml-ink);
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ Notices */

.ml-product-notices .woocommerce-notices-wrapper:empty {
	display: none;
}

.ml-shop.ml-product-page .woocommerce-message,
.ml-shop.ml-product-page .woocommerce-info,
.ml-shop.ml-product-page .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.25rem;
	margin: 0 0 1.5rem;
	padding: .9rem 1rem .9rem 3.1rem;
	border: 1px solid var(--ml-line);
	border-left: 4px solid #3E7B43;
	border-radius: 14px;
	background: var(--ml-card);
	color: var(--ml-ink);
	font-weight: 600;
	line-height: 1.45;
	list-style: none;
}

/* WooCommerce moves focus to a new notice (for screen readers): a brand ring, not the blue one. */
.ml-shop.ml-product-page .woocommerce-message:focus,
.ml-shop.ml-product-page .woocommerce-info:focus,
.ml-shop.ml-product-page .woocommerce-error:focus {
	outline: 2px solid rgba(48, 30, 21, .35);
	outline-offset: 3px;
}

.ml-shop.ml-product-page .woocommerce-message::before,
.ml-shop.ml-product-page .woocommerce-info::before,
.ml-shop.ml-product-page .woocommerce-error::before {
	top: 50%;
	left: 1.1rem;
	transform: translateY(-50%);
}

.ml-shop.ml-product-page .woocommerce-message::before {
	color: #3E7B43;
}

.ml-shop.ml-product-page .woocommerce-info {
	border-left-color: var(--ml-orange);
}

.ml-shop.ml-product-page .woocommerce-info::before {
	color: var(--ml-rust);
}

.ml-shop.ml-product-page .woocommerce-error {
	border-left-color: #B42318;
}

.ml-shop.ml-product-page .woocommerce-error::before {
	color: #B42318;
}

.ml-shop.ml-product-page .woocommerce-error li {
	margin: 0;
}

/* The notice's "View cart" button goes last, as an orange pill. */
.ml-shop.ml-product-page .woocommerce-message .button,
.ml-shop.ml-product-page .woocommerce-info .button {
	order: 2;
	float: none;
	margin: 0;
	padding: .6rem 1.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--ml-orange);
	color: var(--ml-ink);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.ml-shop.ml-product-page .woocommerce-message .button:hover,
.ml-shop.ml-product-page .woocommerce-info .button:hover {
	background: var(--ml-orange-hover);
	color: var(--ml-ink);
}

/* ------------------------------------------------------------------ Layout */

.ml-shop.ml-product-page div.ml-product {
	display: grid;
	grid-template-areas: "media" "summary" "details";
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	margin: 0;
}

.ml-product__media {
	grid-area: media;
	min-width: 0;
}

.ml-product__summary {
	grid-area: summary;
	min-width: 0;
}

.ml-product-details {
	grid-area: details;
	min-width: 0;
}

@media (min-width: 768px) {
	.ml-shop.ml-product-page div.ml-product {
		grid-template-areas: "media summary" "details summary";
		grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
		grid-template-rows: auto 1fr;
		align-items: start;
		gap: 1.75rem clamp(1.5rem, .75rem + 2.5vw, 3.5rem);
	}

	/* The buy box stays in view while the photos and details scroll (the script lowers
	   "top" for a box taller than the window, so its end is never out of reach). */
	.ml-product__summary {
		position: sticky;
		top: 1.5rem;
	}
}

@media (min-width: 1025px) {
	.ml-shop.ml-product-page div.ml-product {
		grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
	}
}

@media (min-width: 1200px) {
	.ml-shop.ml-product-page div.ml-product {
		grid-template-columns: minmax(0, 1fr) 460px;
	}
}

/* ------------------------------------------------------------------ Photos */

.ml-gallery__main {
	position: relative;
	display: block;
	padding: clamp(.5rem, .25rem + .8vw, 1rem);
	overflow: hidden;
	border: 1px solid var(--ml-line);
	border-radius: var(--ml-radius);
	background: var(--ml-card);
	box-shadow: 0 28px 50px -38px rgba(48, 30, 21, .55);
	cursor: zoom-in;
}

/* The photo keeps its own shape (no empty bands around wide photos), up to most of the window. */
.ml-gallery__main img.ml-gallery__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(78vh, 760px);
	border-radius: calc(var(--ml-radius) - 8px);
	object-fit: contain;
}

@media (max-width: 767px) {
	.ml-gallery__main img.ml-gallery__img {
		max-height: 62vh;
	}
}

.ml-gallery__zoom {
	position: absolute;
	right: .9rem;
	bottom: .9rem;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 253, 248, .94);
	color: var(--ml-ink);
	box-shadow: 0 8px 18px -10px rgba(48, 30, 21, .6);
	transition: transform .2s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.ml-gallery__main:hover .ml-gallery__zoom {
		transform: scale(1.08);
	}
}

.ml-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin: .8rem 0 0;
	padding: 0;
	list-style: none;
}

.ml-gallery__thumbs li {
	margin: 0;
}

.ml-shop.ml-product-page .ml-gallery__thumb {
	display: block;
	width: 76px;
	height: 76px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 2px solid var(--ml-line);
	border-radius: 12px;
	background: var(--ml-card);
	cursor: pointer;
	transition: border-color .15s ease;
}

.ml-shop.ml-product-page .ml-gallery__thumb:hover {
	border-color: #DCC7AE;
	background: var(--ml-card);
}

.ml-shop.ml-product-page .ml-gallery__thumb.is-current {
	border-color: var(--ml-orange);
}

.ml-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* No photo yet: a Moonlite label instead of an empty frame. */
.ml-gallery__label {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	aspect-ratio: 1 / 1;
	max-height: min(78vh, 760px);
	padding: clamp(2rem, 1.5rem + 3vw, 4rem);
	border-radius: var(--ml-radius);
	background: var(--ml-cream) url("../img/paper-tile.webp") center / 1200px auto;
	box-shadow: 0 28px 50px -38px rgba(48, 30, 21, .55);
	text-align: center;
}

.ml-gallery__label::before,
.ml-gallery__label::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.ml-gallery__label::before {
	inset: 14px;
	border: 2px solid rgba(48, 30, 21, .8);
	border-radius: 12px;
}

.ml-gallery__label::after {
	inset: 21px;
	border: 1px solid rgba(48, 30, 21, .35);
	border-radius: 8px;
}

.ml-gallery__label img {
	width: clamp(84px, 60px + 5vw, 124px);
	height: auto;
	margin: 0 0 .6rem;
	border-radius: 50%;
}

.ml-gallery__label-kicker {
	margin: 0;
	color: var(--ml-rust);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .24em;
	text-transform: uppercase;
}

.ml-gallery__label-name {
	max-width: 16ch;
	margin: .2rem 0 .35rem;
	color: var(--ml-ink);
	font-family: var(--ml-display);
	font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem);
	letter-spacing: .02em;
	line-height: .95;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.ml-gallery__label-place {
	margin: 0;
	color: var(--ml-ink-2);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ Buy box */

.ml-buybox {
	padding: clamp(1.25rem, .85rem + 1.4vw, 2rem);
	border: 1px solid var(--ml-line);
	border-radius: var(--ml-radius);
	background: var(--ml-card);
	box-shadow: 0 28px 50px -38px rgba(48, 30, 21, .55);
}

.ml-buybox__cat {
	margin: 0 0 .55rem;
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.ml-buybox__cat a {
	text-decoration: none;
}

.ml-shop.ml-product-page .ml-buybox__title {
	margin: 0;
	padding: 0;
	color: var(--ml-ink);
	font-family: var(--ml-display);
	font-size: clamp(2.3rem, 1.5rem + 2.3vw, 3.5rem);
	font-weight: 400;
	letter-spacing: .02em;
	line-height: .95;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.ml-buybox__badges {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin: .95rem 0 0;
	padding: 0;
	list-style: none;
}

.ml-buybox__badges:empty {
	display: none;
}

.ml-badge {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin: 0;
	padding: .35rem .75rem;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ml-product-page .ml-badge .ml-ico {
	width: 17px;
	height: 17px;
}

.ml-badge--ship {
	background: var(--ml-ship-bg);
	color: var(--ml-ship-ink);
}

.ml-badge--sale {
	background: var(--ml-orange);
	color: var(--ml-ink);
}

.ml-badge--out {
	background: var(--ml-ink);
	color: var(--ml-cream);
}

.ml-shop.ml-product-page .ml-buybox__price {
	margin: 1.15rem 0 0;
	color: var(--ml-ink);
	font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.1;
}

.ml-shop.ml-product-page .ml-buybox__price del {
	margin-right: .45rem;
	color: var(--ml-muted);
	font-size: .6em;
	font-weight: 600;
	opacity: 1;
}

.ml-shop.ml-product-page .ml-buybox__price ins {
	background: none;
	text-decoration: none;
}

.ml-buybox__lead {
	margin: 1rem 0 0;
	color: var(--ml-ink-2);
	font-size: 1.05rem;
	line-height: 1.6;
}

.ml-buybox__lead p {
	margin: 0 0 .6rem;
}

.ml-buybox__lead > :last-child {
	margin-bottom: 0;
}

.ml-buybox__more {
	font-weight: 700;
}

.ml-buybox__cart {
	margin: 1.4rem 0 0;
	padding: 1.4rem 0 0;
	border-top: 1px solid var(--ml-line);
}

/* --- WooCommerce's add-to-cart form, restyled. */

.ml-shop.ml-product-page .ml-buybox form.cart {
	margin: 0;
}

.ml-shop.ml-product-page .ml-buybox form.cart::before,
.ml-shop.ml-product-page .ml-buybox form.cart::after {
	content: none;
}

.ml-shop.ml-product-page .ml-buybox form.cart:not(.variations_form),
.ml-shop.ml-product-page .ml-buybox form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: .75rem;
}

/* Quantity: a bordered box; the script adds − and + around the number. */
.ml-shop.ml-product-page .ml-buybox form.cart div.quantity {
	display: inline-flex;
	flex: none;
	align-items: stretch;
	float: none;
	min-height: 54px;
	margin: 0;
	overflow: hidden;
	border: 1.5px solid var(--ml-ink);
	border-radius: 12px;
	background: var(--ml-card);
}

.ml-shop.ml-product-page .ml-buybox form.cart div.quantity:focus-within {
	outline: 2px solid var(--ml-ink);
	outline-offset: 2px;
}

.ml-shop.ml-product-page .ml-buybox form.cart .quantity .qty {
	width: 3.25rem;
	min-height: 0;
	margin: 0;
	padding: 0 .25rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ml-ink);
	font: inherit;
	font-size: 1.15rem;
	font-weight: 800;
	text-align: center;
	-moz-appearance: textfield;
}

.ml-shop.ml-product-page .ml-buybox form.cart .quantity .qty:focus {
	outline: none;
}

.ml-shop.ml-product-page .ml-buybox form.cart .quantity.has-steppers .qty::-webkit-outer-spin-button,
.ml-shop.ml-product-page .ml-buybox form.cart .quantity.has-steppers .qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.ml-shop.ml-product-page .ml-buybox .ml-qty-btn {
	display: grid;
	place-items: center;
	width: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ml-ink);
	font: inherit;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.ml-shop.ml-product-page .ml-buybox .ml-qty-btn:hover,
.ml-shop.ml-product-page .ml-buybox .ml-qty-btn:focus-visible {
	background: rgba(48, 30, 21, .07);
	color: var(--ml-ink);
	outline: none;
}

/* Add to cart. */
.ml-shop.ml-product-page .ml-buybox form.cart button.single_add_to_cart_button {
	flex: 1 1 120px;
	float: none;
	min-height: 54px;
	margin: 0;
	padding: .9rem 1.5rem;
	border: 0;
	border-radius: 12px;
	background: var(--ml-orange);
	box-shadow: 0 12px 24px -16px rgba(181, 64, 26, .95);
	color: var(--ml-ink);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: .1em;
	line-height: 1.2;
	text-transform: uppercase;
	transition: background-color .15s ease, transform .15s ease;
}

@media (max-width: 480px) {
	/* Phones: quantity and Add to cart share one row. */
	.ml-shop.ml-product-page .ml-buybox form.cart button.single_add_to_cart_button {
		min-width: 0;
		padding: .85rem .9rem;
		font-size: .92rem;
		letter-spacing: .06em;
	}
}

.ml-shop.ml-product-page .ml-buybox form.cart button.single_add_to_cart_button:hover {
	background: var(--ml-orange-hover);
	color: var(--ml-ink);
}

.ml-shop.ml-product-page .ml-buybox form.cart button.single_add_to_cart_button:active {
	transform: translateY(1px);
}

.ml-shop.ml-product-page .ml-buybox form.cart button.single_add_to_cart_button:focus-visible {
	outline: 2px solid var(--ml-ink);
	outline-offset: 3px;
}

/* Until an option is chosen (WooCommerce explains why when it is pressed). */
.ml-shop.ml-product-page .ml-buybox form.cart button.single_add_to_cart_button.disabled {
	background: var(--ml-orange);
	box-shadow: none;
	color: var(--ml-ink);
	cursor: not-allowed;
	opacity: .5;
}

/* Options (size, amount…): label above a full-width select. */
.ml-shop.ml-product-page .ml-buybox form.cart table.variations {
	display: block;
	width: 100%;
	margin: 0 0 1.1rem;
	border: 0;
}

.ml-shop.ml-product-page .ml-buybox form.cart table.variations tbody,
.ml-shop.ml-product-page .ml-buybox form.cart table.variations tr,
.ml-shop.ml-product-page .ml-buybox form.cart table.variations th,
.ml-shop.ml-product-page .ml-buybox form.cart table.variations td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	line-height: 1.3;
	text-align: left;
}

.ml-shop.ml-product-page .ml-buybox form.cart table.variations tr + tr {
	margin-top: 1rem;
}

.ml-shop.ml-product-page .ml-buybox form.cart table.variations th.label {
	margin: 0 0 .45rem;
}

.ml-shop.ml-product-page .ml-buybox form.cart table.variations label {
	color: var(--ml-ink);
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ml-shop.ml-product-page .ml-buybox form.cart table.variations select {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: none;
	min-height: 52px;
	margin: 0;
	padding: .6rem 2.8rem .6rem 1rem;
	border: 1.5px solid #D9C7B1;
	border-radius: 12px;
	background: var(--ml-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23301E15' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 16px 16px no-repeat;
	color: var(--ml-ink);
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.ml-shop.ml-product-page .ml-buybox form.cart table.variations select:hover {
	border-color: var(--ml-ink-2);
}

.ml-shop.ml-product-page .ml-buybox form.cart table.variations select:focus {
	border-color: var(--ml-ink);
	outline: 2px solid var(--ml-ink);
	outline-offset: 2px;
}

/* "Clear" sits at the end of the option's label line, so it takes no room of its own. */
.ml-shop.ml-product-page .ml-buybox form.cart table.variations tr {
	position: relative;
}

.ml-shop.ml-product-page .ml-buybox form.cart .reset_variations {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	font-size: .82rem;
	font-weight: 700;
	line-height: 1.3;
}

/* --- Options as buttons (inc/woocommerce/product-options.php). WooCommerce's menu stays in
   the form as the real field, out of sight; the buttons set it. */
.ml-shop.ml-product-page .ml-buybox form.cart table.variations select.ml-option-select {
	position: absolute;
	width: 1px;
	height: 1px;
	min-height: 0;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
}

.ml-options {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.ml-shop.ml-product-page .ml-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-width: 3.25rem;
	min-height: 46px;
	margin: 0;
	padding: .55rem .95rem;
	border: 1.5px solid #D9C7B1;
	border-radius: 12px;
	background: var(--ml-card);
	color: var(--ml-ink);
	font: inherit;
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1.15;
	text-align: center;
	text-transform: none;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.ml-shop.ml-product-page .ml-option:hover {
	border-color: var(--ml-ink-2);
	background: var(--ml-card);
	color: var(--ml-ink);
}

.ml-shop.ml-product-page .ml-option:focus-visible {
	outline: 2px solid var(--ml-orange);
	outline-offset: 2px;
}

.ml-shop.ml-product-page .ml-option[aria-pressed="true"] {
	border-color: var(--ml-ink);
	background: var(--ml-ink);
	box-shadow: 0 8px 16px -10px rgba(48, 30, 21, .8);
	color: var(--ml-cream);
}

/* Not made in combination with the other choices (pressing it starts over from it). */
.ml-shop.ml-product-page .ml-option.is-unavailable {
	border-style: dashed;
	background: transparent;
	box-shadow: none;
	color: var(--ml-muted);
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
}

/* Colours: a round swatch with the colour's name. */
.ml-shop.ml-product-page .ml-option--color {
	padding-left: .5rem;
}

.ml-option__swatch {
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ml-swatch, #ccc);
	box-shadow: inset 0 0 0 1px rgba(48, 30, 21, .22);
}

.ml-shop.ml-product-page .ml-option--color[aria-pressed="true"] .ml-option__swatch {
	box-shadow: 0 0 0 2px var(--ml-cream), inset 0 0 0 1px rgba(48, 30, 21, .22);
}

.ml-shop.ml-product-page .ml-option--color.is-unavailable .ml-option__swatch {
	opacity: .45;
}

/* The choice beside the option's name: "Size: Large". */
.ml-option-current:not(:empty)::before {
	content: ":";
	margin-right: .4rem;
}

.ml-option-current {
	color: var(--ml-ink-2);
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: none;
}

/* The chosen option's stock (its price replaces the price range at the top). */
.ml-shop.ml-product-page .ml-buybox .single_variation:empty,
.ml-shop.ml-product-page .ml-buybox .woocommerce-variation:empty {
	display: none;
}

.ml-shop.ml-product-page .ml-buybox .woocommerce-variation {
	margin: 0 0 1rem;
}

.ml-shop.ml-product-page .ml-buybox .woocommerce-variation-price {
	display: none;
}

.ml-shop.ml-product-page div.ml-product .ml-buybox span.price,
.ml-shop.ml-product-page div.ml-product .ml-buybox__price .price {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.ml-shop.ml-product-page .ml-buybox .woocommerce-variation-description p {
	margin: 0 0 .5rem;
	color: var(--ml-ink-2);
}

.ml-shop.ml-product-page div.ml-product .ml-buybox .stock {
	margin: 0 0 1rem;
	color: #2F6B34;
	font-size: .92rem;
	font-weight: 700;
}

.ml-shop.ml-product-page div.ml-product .ml-buybox .stock.out-of-stock {
	color: var(--ml-rust);
}

/* --- Gift line and the shipping facts. */

.ml-buybox__gift {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	margin: 1.1rem 0 0;
	padding: .8rem .95rem;
	border-radius: 12px;
	background: #FCEBDD;
	color: var(--ml-ink);
	font-size: .93rem;
	line-height: 1.45;
}

.ml-buybox__gift .ml-ico {
	color: var(--ml-rust);
}

.ml-buybox__facts {
	display: grid;
	gap: .7rem;
	margin: 1.25rem 0 0;
	padding: 1.15rem 0 0;
	border-top: 1px dashed #DCC7AE;
	list-style: none;
}

.ml-buybox__facts li {
	display: flex;
	align-items: flex-start;
	gap: .7rem;
	margin: 0;
	color: var(--ml-ink-2);
	font-size: .95rem;
	line-height: 1.4;
}

.ml-buybox__facts .ml-ico {
	color: var(--ml-rust);
}

/* ------------------------------------------------------------------ Full description */

.ml-product-details {
	padding: clamp(1.25rem, 1rem + 1vw, 1.9rem);
	border: 1px solid var(--ml-line);
	border-radius: var(--ml-radius);
	background: var(--ml-card);
	scroll-margin-top: 1.5rem;
}

.ml-shop.ml-product-page .ml-product-details__title {
	margin: 0 0 .8rem;
	padding: 0;
	color: var(--ml-ink);
	font-family: var(--ml-display);
	font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem);
	font-weight: 400;
	letter-spacing: .03em;
	line-height: 1;
	text-transform: uppercase;
}

.ml-product-details__body {
	color: var(--ml-ink-2);
	font-size: 1.02rem;
	line-height: 1.65;
}

.ml-product-details__body > :first-child {
	margin-top: 0;
}

.ml-product-details__body > :last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ You may also like */

.ml-product-related {
	max-width: var(--ml-container);
	margin: 0 auto;
	padding: 0 var(--ml-gutter) clamp(3rem, 2rem + 3vw, 4.5rem);
}

.ml-product-related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	margin: 0 0 1.4rem;
	padding: clamp(2rem, 1.5rem + 1.5vw, 3rem) 0 0;
	border-top: 1px solid var(--ml-line);
}

.ml-shop.ml-product-page .ml-product-related__title {
	margin: 0;
	padding: 0;
	color: var(--ml-ink);
	font-family: var(--ml-display);
	font-size: clamp(2.3rem, 1.6rem + 2.2vw, 3.4rem);
	font-weight: 400;
	letter-spacing: .03em;
	line-height: .95;
	text-transform: uppercase;
}

.ml-product-related__all {
	font-weight: 800;
	letter-spacing: .03em;
	text-decoration: none;
}

.ml-product-related__all:hover {
	text-decoration: underline;
}

@media (min-width: 1025px) {
	.ml-shop.ml-product-page .ml-products--related {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ml-shop.ml-product-page .ml-products--related .ml-card__title {
		font-size: clamp(1.35rem, 1.1rem + .5vw, 1.6rem);
	}
}

/* ------------------------------------------------------------------ Good to know */

.ml-product-faq {
	padding: clamp(2.75rem, 1.75rem + 3vw, 4.5rem) max(var(--ml-gutter), calc((100% - var(--ml-container)) / 2));
	background: #301E15 url("../img/wood-dark.webp") center / cover;
	color: #E9D9C4;
}

.ml-shop.ml-product-page .ml-product-faq__title {
	margin: 0 0 1.75rem;
	padding: 0;
	color: var(--ml-cream);
	font-family: var(--ml-display);
	font-size: clamp(2.3rem, 1.6rem + 2.2vw, 3.4rem);
	font-weight: 400;
	letter-spacing: .03em;
	line-height: .95;
	text-align: center;
	text-transform: uppercase;
}

.ml-product-faq__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin: 0;
}

@media (min-width: 640px) {
	.ml-product-faq__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	/* One row: three or four notes (the minimum-order one only when there is a minimum). */
	.ml-product-faq__list {
		grid-template-columns: none;
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
	}
}

.ml-product-faq__list > div {
	padding: 1.3rem 1.3rem 1.4rem;
	border: 1px solid rgba(254, 243, 227, .16);
	border-radius: 16px;
	background: rgba(24, 14, 9, .5);
}

.ml-product-faq__list dt {
	margin: 0 0 .55rem;
	color: #F5A07C;
	font-family: var(--ml-display);
	font-size: clamp(1.45rem, 1.3rem + .5vw, 1.75rem);
	letter-spacing: .03em;
	line-height: 1;
	text-transform: uppercase;
}

.ml-product-faq__list dd {
	margin: 0;
	font-size: .98rem;
	line-height: 1.55;
}

/* ------------------------------------------------------------------ Phone bar */

.ml-buybar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: .85rem;
	padding: .7rem var(--ml-gutter) calc(.7rem + env(safe-area-inset-bottom, 0px));
	background: rgba(48, 30, 21, .97);
	box-shadow: 0 -12px 30px -14px rgba(0, 0, 0, .5);
	color: var(--ml-cream);
	transform: translateY(110%);
	transition: transform .25s ease;
}

.ml-buybar[hidden] {
	display: none;
}

.ml-buybar.is-visible {
	transform: none;
}

.ml-buybar__text {
	flex: 1 1 auto;
	min-width: 0;
}

.ml-buybar__name {
	margin: 0;
	overflow: hidden;
	color: #E9D9C4;
	font-size: .85rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ml-buybar__price {
	margin: 0;
	color: var(--ml-cream);
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.2;
}

.ml-buybar__price del {
	margin-right: .3rem;
	font-size: .8em;
	opacity: .7;
}

.ml-buybar__price ins {
	background: none;
	text-decoration: none;
}

.ml-shop.ml-product-page .ml-buybar__button {
	flex: none;
	min-height: 46px;
	margin: 0;
	padding: .6rem 1.15rem;
	border: 0;
	border-radius: 10px;
	background: var(--ml-orange);
	color: var(--ml-ink);
	font: inherit;
	font-size: .85rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}

.ml-shop.ml-product-page .ml-buybar__button:hover {
	background: var(--ml-orange-hover);
	color: var(--ml-ink);
}

@media (min-width: 768px) {
	.ml-shop .ml-buybar {
		display: none;
	}
}

@media (max-width: 767px) {
	/* Room under the footer for the bar once it shows. */
	body.ml-buybar-visible {
		padding-bottom: 76px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ml-buybar,
	.ml-gallery__zoom,
	.ml-shop.ml-product-page .ml-buybox form.cart button.single_add_to_cart_button {
		transition: none;
	}
}

/* ------------------------------------------------------------------ Enlarged photo */

.ml-lightbox {
	width: min(96vw, 1200px);
	max-width: none;
	height: min(92vh, 1200px);
	max-height: none;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 16px;
	background: #1C110B;
	cursor: zoom-out;
}

.ml-lightbox::backdrop {
	background: rgba(20, 12, 8, .86);
}

.ml-lightbox img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ml-lightbox .ml-lightbox__close {
	position: absolute;
	top: .75rem;
	right: .75rem;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(254, 243, 227, .94);
	color: #301E15;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.ml-lightbox .ml-lightbox__close:hover,
.ml-lightbox .ml-lightbox__close:focus-visible {
	background: #FEF3E3;
	color: #301E15;
	outline: 2px solid #F2642F;
	outline-offset: 2px;
}
