/**
 * Product page (D5.3). Figma: D / Product / Simple 79:1960, Variable 80:5895,
 * M / Product / Simple 81:1829, Variable 82:7712. Loaded on product pages only.
 *
 * Top row (D5.3.1): phone = gallery, then the buy box 24 below; padding 16 / 56.
 * Desktop >= 1024: 12 columns, gallery in 1–7 (737 at 1440), buy box in 8–12 (519),
 * gap = gutter; padding 32 / 96. The sections below follow in D5.3.2–D5.3.7.
 *
 * Markup: woocommerce/content-single-product.php, template-parts/product/*.php
 */

.mv-product__top {
	padding-top: var(--mv-space-4);
	padding-bottom: 56px; /* Figma mobile section rhythm (56) */
}

.mv-product__top-inner {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-5);
}

.mv-product__gallery,
.mv-product__buy {
	min-width: 0;
}

/* ---------- Gallery (D5.3.2, Figma Gallery 75:909) ----------
 * Phone: the 1:1 stage swipes (scroll-snap), counter pill top right (white, 4 / 10,
 * Small), dots 12 below (8 px, gap 6; active navy). Desktop >= 1024: thumbnails 80
 * (gap 12, radius 8, active 2 px navy inset) + stage 16 to the right; the stage moves
 * by the thumbnails only; "Hover to zoom" pill bottom left (16) for mouse users. */
.mv-gallery {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--mv-space-3);
}

.mv-gallery__thumbs {
	display: none;
}

.mv-gallery__stage {
	position: relative;
	align-self: stretch;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--mv-radius-md);
	background: var(--mv-neutral);
}

.mv-gallery__track {
	display: flex;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
}

.mv-gallery__track::-webkit-scrollbar {
	display: none;
}

.mv-gallery__track:focus-visible {
	outline: none;
	box-shadow: inset var(--mv-focus-ring);
}

.mv-gallery__slide {
	position: relative;
	flex: 0 0 100%;
	overflow: hidden;
	scroll-snap-align: start;
}

.mv-gallery__img,
.mv-gallery__video,
.mv-gallery__youtube,
.mv-gallery__slide iframe,
.mv-gallery__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.mv-gallery__video {
	background: var(--mv-navy);
	object-fit: contain;
}

.mv-gallery__youtube {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--mv-space-3);
	padding: 0;
	background: var(--mv-neutral);
	color: var(--mv-navy);
	font: inherit;
	font-weight: var(--mv-weight-semibold);
	cursor: pointer;
}

.mv-gallery__youtube-icon {
	width: 48px;
	height: 48px;
}

.mv-gallery__youtube:focus-visible {
	outline: none;
	box-shadow: inset var(--mv-focus-ring);
}

.mv-gallery__counter,
.mv-gallery__zoom-hint {
	position: absolute;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	border-radius: var(--mv-radius-pill);
	background: var(--mv-white);
	color: var(--mv-navy);
	font-size: var(--mv-small-size);
	line-height: 22px;
	pointer-events: none;
}

.mv-gallery__counter {
	top: var(--mv-space-4);
	right: var(--mv-space-4);
	padding: var(--mv-space-1) 10px;
}

.mv-gallery__zoom-hint {
	display: none;
	left: var(--mv-space-4);
	bottom: var(--mv-space-4);
	padding: 6px var(--mv-space-3);
}

.mv-gallery__zoom-hint .mv-icon {
	width: 14px;
	height: 14px;
}

.mv-gallery__dots {
	display: flex;
	gap: 6px;
}

.mv-gallery__dot {
	width: 8px;
	height: 8px;
	border-radius: var(--mv-radius-pill);
	background: var(--mv-border);
}

.mv-gallery__dot.is-active {
	background: var(--mv-navy);
}

/* Zoom on hover (gallery.js sets the origin from the mouse). */
.mv-gallery__slide--image .mv-gallery__img {
	transition: transform var(--mv-duration-fast) var(--mv-ease-out);
}

.mv-gallery__slide.is-zoomed .mv-gallery__img {
	transform: scale(2);
	cursor: zoom-out;
}

/* ---------- Buy box (D5.3.3, Figma Buy box 76:1212) ----------
 * Gap 24: head (gap 12: breadcrumb (desktop), problem tags, name in the H2 style,
 * rating, benefit line in Body L), price (Price), purchase row (stepper 132 x 48 +
 * Add to Cart, gap 12), trust lines (18 px icons, Small, muted, gap 8). */
.mv-buy {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-5);
}

.mv-buy__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--mv-space-3);
}

.mv-buy__breadcrumb {
	display: none; /* Figma: desktop only (the phone shows the gallery first) */
}

.mv-buy__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mv-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mv-buy__title {
	margin: 0;
	color: var(--mv-navy);
	font-size: var(--mv-h2-size);
	line-height: var(--mv-h2-line);
	letter-spacing: -0.01em;
}

.mv-buy__benefit {
	margin: 0;
	color: var(--mv-text);
	font-size: var(--mv-body-l-size);
	line-height: var(--mv-body-l-line);
}

.mv-buy__price {
	margin: 0;
	color: var(--mv-navy);
	font-size: var(--mv-price-size);
	line-height: var(--mv-price-line);
	font-weight: var(--mv-weight-semibold);
}

.mv-buy__form {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-5);
	margin: 0;
}

.mv-buy__purchase {
	display: flex;
	gap: var(--mv-space-3);
}

/* Variant selector (D5.3.4): one group per attribute, "Size: Medium" over the chips
 * (gap 8). Option chip (Figma 74:849): 44 tall, min 64 wide, 16 side padding, white,
 * 1 px muted border, radius 8, Button S navy; selected = 2 px navy (inset shadow, no
 * shift); unavailable = struck through, 60 %. Radios underneath (keyboard: arrows). */
.mv-buy__options {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-4);
}

.mv-options {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.mv-options__legend {
	margin-bottom: var(--mv-space-2);
	padding: 0;
	color: var(--mv-text);
	font-size: var(--mv-small-size);
	line-height: var(--mv-small-line);
}

.mv-options__name {
	color: var(--mv-navy);
	font-weight: var(--mv-weight-semibold);
}

.mv-options__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mv-space-2);
}

.mv-option {
	position: relative;
	display: inline-flex;
}

.mv-option__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.mv-option__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	min-height: 44px;
	padding: 0 var(--mv-space-4);
	border: 1px solid var(--mv-muted);
	border-radius: var(--mv-radius-sm);
	background: var(--mv-white);
	color: var(--mv-navy);
	font-size: var(--mv-button-s-size);
	line-height: var(--mv-button-s-line);
	font-weight: var(--mv-weight-semibold);
	white-space: nowrap;
	transition: border-color var(--mv-duration-fast) var(--mv-ease-out);
}

.mv-option__input:hover + .mv-option__label {
	border-color: var(--mv-navy);
}

.mv-option__input:checked + .mv-option__label {
	border-color: var(--mv-navy);
	box-shadow: inset 0 0 0 1px var(--mv-navy);
}

.mv-option__input:focus-visible + .mv-option__label {
	box-shadow: var(--mv-focus-ring);
}

.mv-option__input:checked:focus-visible + .mv-option__label {
	box-shadow: inset 0 0 0 1px var(--mv-navy), var(--mv-focus-ring);
}

.mv-option__input:disabled,
.mv-option.is-unavailable .mv-option__input:not(:checked) {
	cursor: not-allowed;
}

.mv-option__input:disabled + .mv-option__label,
.mv-option.is-unavailable .mv-option__label {
	border-color: var(--mv-muted);
	color: var(--mv-muted);
	text-decoration: line-through;
	opacity: 0.6;
}

.mv-option.is-unavailable .mv-option__input:checked + .mv-option__label {
	border-color: var(--mv-navy);
}

.mv-buy__stock {
	margin: 0;
	color: var(--mv-text);
	font-size: var(--mv-small-size);
	line-height: var(--mv-small-line);
}

.mv-buy__stock:empty {
	display: none;
}

.mv-buy__add:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.mv-buy__add {
	flex: 1;
	min-width: 0;
}

.mv-buy__add[aria-busy="true"] {
	opacity: 0.7;
	cursor: progress;
}

/* Quantity stepper: components/quantity.css (shared with the mini-cart and the cart, D5.5.1). */

.mv-buy__trust {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mv-buy__trust li {
	display: flex;
	align-items: flex-start;
	gap: var(--mv-space-2);
	color: var(--mv-muted);
	font-size: var(--mv-small-size);
	line-height: var(--mv-small-line);
}

.mv-buy__trust .mv-icon {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var(--mv-navy);
}

/* B2B box (D5.3.5, Figma 75:956): neutral, padding 24, radius 12, gap 12; title Body
 * Strong + text Small muted (gap 4); secondary L buttons, stacked full width (Mobile
 * 75:934) until the box is wide enough for one row (Desktop 75:910: Request Wholesale
 * Pricing fills, WhatsApp hugs): a container query, so the narrower 1024 column stacks. */
.mv-buy-b2b {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-3);
	padding: var(--mv-space-5);
	border-radius: var(--mv-radius-md);
	background: var(--mv-neutral);
	container-type: inline-size;
}

.mv-buy-b2b__text {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-1);
}

.mv-buy-b2b__title {
	margin: 0;
	color: var(--mv-navy);
	font-size: var(--mv-body-size);
	line-height: var(--mv-body-line);
	font-weight: var(--mv-weight-semibold);
}

.mv-buy-b2b__body {
	margin: 0;
	color: var(--mv-text); /* muted on neutral is 4.3:1 (DEC-119) */
	font-size: var(--mv-small-size);
	line-height: var(--mv-small-line);
}

.mv-buy-b2b__actions {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-2);
}

/* The secondary hover fill is the box's own neutral: use off-white here. */
.mv-buy-b2b .mv-button--secondary {
	--mv-btn-bg-hover: var(--mv-offwhite);
}

@container (min-width: 440px) {
	.mv-buy-b2b__actions {
		flex-direction: row;
	}

	.mv-buy-b2b__wholesale {
		flex: 1;
		min-width: 0;
	}
}

/* Star rating (Figma 74:850): navy stars 16, gap 2, filled to the rating; text Small muted. */
.mv-rating {
	display: flex;
	align-items: center;
	gap: var(--mv-space-2);
}

.mv-rating__stars {
	position: relative;
	display: inline-block;
	line-height: 0;
}

.mv-rating__base,
.mv-rating__fill {
	display: inline-flex;
	gap: 2px;
}

.mv-rating__fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
}

.mv-rating svg {
	flex: none;
	width: 16px;
	height: 16px;
}

.mv-rating__base svg {
	fill: var(--mv-border);
}

.mv-rating__fill svg {
	fill: var(--mv-navy);
}

.mv-rating__text {
	color: var(--mv-muted);
	font-size: var(--mv-small-size);
	line-height: var(--mv-small-line);
}

@media (min-width: 1024px) {
	.mv-product__top {
		padding-top: var(--mv-space-6);
		padding-bottom: var(--mv-space-9);
	}

	.mv-product__top-inner {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: start;
		gap: var(--mv-gutter);
	}

	.mv-product__gallery {
		grid-column: 1 / span 7;
	}

	.mv-gallery {
		flex-direction: row;
		align-items: flex-start;
		gap: var(--mv-space-4);
	}

	/* As tall as the square stage (contain: size keeps the list from setting the row
	   height); more thumbnails than fit scroll inside the column. */
	.mv-gallery__thumbs {
		display: flex;
		flex: none;
		flex-direction: column;
		align-self: stretch;
		gap: var(--mv-space-3);
		width: 80px;
		margin: 0;
		padding: 0;
		overflow-y: auto;
		scrollbar-width: none;
		contain: size;
		list-style: none;
	}

	.mv-gallery__thumbs::-webkit-scrollbar {
		display: none;
	}

	.mv-gallery__thumb {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 80px;
		height: 80px;
		overflow: hidden;
		border-radius: var(--mv-radius-sm);
		background: var(--mv-neutral);
		color: var(--mv-navy);
	}

	.mv-gallery__thumb::after {
		content: "";
		position: absolute;
		inset: 0;
		border-radius: inherit;
		pointer-events: none;
	}

	.mv-gallery__thumb[aria-current="true"]::after {
		box-shadow: inset 0 0 0 2px var(--mv-navy);
	}

	.mv-gallery__thumb:focus-visible {
		outline: none;
		box-shadow: var(--mv-focus-ring);
	}

	.mv-gallery__thumb-img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.mv-gallery__play {
		width: 24px;
		height: 24px;
	}

	.mv-gallery__stage {
		flex: 1;
		align-self: flex-start; /* stays square; "stretch" (phones) would take the thumbnails' height */
		min-width: 0;
	}

	/* The thumbnails move the stage; no swiping with a mouse. */
	.mv-gallery__track {
		overflow-x: hidden;
	}

	.mv-gallery__counter,
	.mv-gallery__dots {
		display: none;
	}

	.mv-product__buy {
		grid-column: 8 / span 5;
	}

	.mv-buy__breadcrumb {
		display: block;
	}
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.mv-gallery__zoom-hint {
		display: flex;
	}

	.mv-gallery__slide--image {
		cursor: zoom-in;
	}
}

/* ---------- Content sections (D5.3.6, Figma 79:2226 – 80:2390) ----------
 * Full-bleed sections in the docs/05 order, each with its Figma background: problem
 * white, where off-white, benefits neutral, how to use off-white, specs neutral, FAQ
 * off-white. Sections without content are not printed; when that puts two of the same
 * background together, the second loses its top padding (one 56 / 96 gap, not two). */
.mv-product__top + .mv-pdp-section--offwhite,
.mv-pdp-section--offwhite + .mv-pdp-section--offwhite,
.mv-pdp-section--neutral + .mv-pdp-section--neutral,
.mv-pdp-section--white + .mv-pdp-section--white {
	padding-top: 0;
}

/* The problem it solves: image over text (32) on phones; 6 + 6 columns from 1024. */
.mv-pdp-problem__inner {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-6);
}

.mv-pdp-problem__media {
	overflow: hidden;
	border-radius: var(--mv-radius-md);
	aspect-ratio: 4 / 3;
	background: var(--mv-neutral);
}

.mv-pdp-problem__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mv-pdp-problem__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--mv-space-3);
}

.mv-pdp-problem__body {
	color: var(--mv-text);
}

/* Where to use: one place per line on phones, wrapping rows (24 / 32) from 768. */
.mv-pdp-where__used {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mv-space-2) var(--mv-space-5);
	margin: 0;
}

.mv-pdp-where__label {
	color: var(--mv-navy);
	font-weight: var(--mv-weight-semibold);
}

/* Benefit / step grids: one column, two from 768, one row from 1024 (--mv-pdp-count). */
.mv-pdp-grid {
	display: grid;
	gap: var(--mv-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mv-pdp-steps__list {
	gap: var(--mv-space-6);
}

.mv-pdp-benefits__list .mv-value {
	height: 100%;
}

/* Step item (Figma 77:1100): optional 4:3 image, 32 px sage number, title, text (gap 12). */
.mv-step {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--mv-space-3);
}

.mv-step__media {
	overflow: hidden;
	width: 100%;
	border-radius: var(--mv-radius-md);
	aspect-ratio: 4 / 3;
	background: var(--mv-neutral);
}

.mv-step__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mv-step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--mv-radius-pill);
	background: var(--mv-sage);
	color: var(--mv-navy);
	font-weight: var(--mv-weight-semibold);
	line-height: 26px;
}

.mv-step__title {
	margin: 0;
	color: var(--mv-navy);
	font-family: inherit;
	font-size: var(--mv-body-size);
	line-height: var(--mv-body-line);
	font-weight: var(--mv-weight-semibold);
	letter-spacing: 0;
}

.mv-step__text {
	margin: 0;
	color: var(--mv-muted);
	font-size: var(--mv-small-size);
	line-height: var(--mv-small-line);
}

.mv-pdp-steps__video {
	margin: 0;
}

/* Intro column + main column (specs, FAQ): stacked (32) on phones; 4 + 8 columns
 * (411 + 845 at 1440) from 1024. */
.mv-pdp-split {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-6);
}

.mv-pdp-split__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--mv-space-3);
}

.mv-pdp-split__main {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-6);
	min-width: 0;
}

/* Spec table (Figma Spec row 77:1109): label 180 + value, hairline below. */
.mv-specs {
	margin: 0;
}

.mv-specs__row {
	display: flex;
	align-items: flex-start;
	gap: var(--mv-space-5);
	padding-block: var(--mv-space-3);
	border-bottom: 1px solid var(--mv-border);
}

.mv-specs__label {
	flex: none;
	width: 180px;
	max-width: 45%;
	color: var(--mv-navy);
	font-weight: var(--mv-weight-semibold);
}

.mv-specs__value {
	flex: 1;
	min-width: 0;
	margin: 0;
	color: var(--mv-text);
}

.mv-pdp-included {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-3);
	padding: 20px;
	border-radius: var(--mv-radius-md);
	background: var(--mv-white);
}

.mv-pdp-included__title {
	margin: 0;
	color: var(--mv-navy);
	font-family: inherit;
	font-size: var(--mv-body-size);
	line-height: var(--mv-body-line);
	font-weight: var(--mv-weight-semibold);
	letter-spacing: 0;
}

/* "Care and use" (D7.1): the included box with a shield before the title. */
.mv-pdp-care__title {
	display: flex;
	align-items: center;
	gap: var(--mv-space-2);
}

.mv-pdp-care__icon {
	display: inline-flex;
	color: var(--mv-navy);
}

.mv-pdp-care__icon .mv-icon {
	width: 20px;
	height: 20px;
}

.mv-pdp-care__text {
	margin: 0;
	color: var(--mv-text);
	font-size: var(--mv-small-size);
	line-height: var(--mv-small-line);
}

.mv-pdp-faq__ask {
	margin: 0;
}

@media (min-width: 768px) {
	.mv-pdp-where__list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: var(--mv-space-5) var(--mv-space-6);
	}

	.mv-pdp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--mv-space-5);
	}
}

@media (min-width: 1024px) {
	.mv-pdp-problem__inner {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: center;
		gap: var(--mv-gutter);
	}

	.mv-pdp-problem__media {
		grid-column: 1 / span 6;
	}

	.mv-pdp-problem__text {
		grid-column: 7 / span 6;
		gap: var(--mv-space-4);
	}

	.mv-pdp-problem--text .mv-pdp-problem__text {
		grid-column: 1 / span 8;
	}

	.mv-pdp-grid {
		grid-template-columns: repeat(var(--mv-pdp-count, 4), minmax(0, 1fr));
	}

	.mv-pdp-split {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-template-rows: auto 1fr;
		align-items: start;
		gap: 0 var(--mv-gutter);
	}

	.mv-pdp-split__intro {
		grid-column: 1 / span 4;
		gap: var(--mv-space-4);
	}

	.mv-pdp-split__main {
		grid-column: 5 / span 8;
		grid-row: 1 / span 2;
		gap: var(--mv-space-6);
	}

	/* The FAQ link sits under the intro on desktop (Figma: 16 below the title). */
	.mv-pdp-faq__ask {
		grid-column: 1 / span 4;
		margin-top: var(--mv-space-4);
	}

	.mv-pdp-included {
		padding: var(--mv-space-5);
	}
}

/* ---------- Reviews (D5.3.7, Figma 80:2429 / 82:2214) ----------
 * Summary column (eyebrow, H2, Rating summary card 77:1142) + review list (Review item
 * 77:1125). Phones: heading, card 32 below, list 32 below. Desktop: 4 + 8 columns,
 * gap 24 in the summary column. */
.mv-pdp-reviews__intro {
	gap: var(--mv-space-3);
}

.mv-review-summary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--mv-space-3);
	width: 100%;
	margin-top: 20px; /* 12 + 20 = 32 under the title on phones */
	padding: var(--mv-space-5);
	border: 1px solid var(--mv-border);
	border-radius: var(--mv-radius-md);
	background: var(--mv-white);
}

.mv-review-summary__score {
	margin: 0;
}

.mv-review-summary__note,
.mv-review-summary__thanks {
	margin: 0;
	color: var(--mv-muted);
	font-size: var(--mv-small-size);
	line-height: var(--mv-small-line);
}

.mv-review-summary__thanks {
	color: var(--mv-text);
}

.mv-review-summary__none {
	margin: 0;
	color: var(--mv-navy);
	font-weight: var(--mv-weight-semibold);
}

/* "Write a review": a <details>; its summary is the button, the form opens below. */
.mv-review-form {
	width: 100%;
}

.mv-review-form > summary {
	list-style: none;
	cursor: pointer;
}

.mv-review-form > summary::-webkit-details-marker {
	display: none;
}

.mv-review-form .comment-respond {
	margin-top: var(--mv-space-4);
}

.mv-review-form__form {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-4);
}

.mv-review-form__form p {
	margin: 0;
}

/* Star input: 5 radios, shown right to left so "this star and the ones before it" fill. */
.mv-rating-input {
	margin: 0;
	padding: 0;
	border: 0;
}

.mv-rating-input__stars {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: var(--mv-space-1);
	margin-top: var(--mv-space-2);
}

.mv-rating-input__radio {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.mv-rating-input__star {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--mv-radius-sm);
	cursor: pointer;
}

.mv-rating-input__star svg {
	width: 28px;
	height: 28px;
	fill: var(--mv-border);
	transition: fill var(--mv-duration-fast) var(--mv-ease-out);
}

.mv-rating-input__radio:checked ~ .mv-rating-input__star svg,
.mv-rating-input__star:hover svg,
.mv-rating-input__star:hover ~ .mv-rating-input__star svg {
	fill: var(--mv-navy);
}

.mv-rating-input__radio:focus-visible + .mv-rating-input__star {
	box-shadow: var(--mv-focus-ring);
}

.mv-reviews {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mv-review {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--mv-space-2);
	padding-block: var(--mv-space-5);
	border-bottom: 1px solid var(--mv-border);
}

.mv-review__text p {
	margin: 0;
	color: var(--mv-text);
}

.mv-review__text p + p {
	margin-top: var(--mv-space-2);
}

.mv-review__meta {
	margin: 0;
	color: var(--mv-text); /* on neutral: muted would be 4.3:1 (DEC-119) */
	font-size: var(--mv-small-size);
	line-height: var(--mv-small-line);
}

/* ---------- Related (D5.3.7, Figma 80:2518 / 82:2310) ----------
 * Cards, then the guide: phones = note title + card (32 apart, the note line hidden);
 * from 1024 the card (4 columns) with the note beside it, centred. */
.mv-pdp-guide {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-6);
}

.mv-pdp-guide__note {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-2);
}

.mv-pdp-guide__title {
	margin: 0;
	color: var(--mv-navy);
	font-weight: var(--mv-weight-semibold);
}

.mv-pdp-guide__text {
	display: none;
	margin: 0;
	color: var(--mv-muted);
}

@media (min-width: 768px) {
	.mv-pdp-guide__card {
		max-width: 410px;
	}
}

@media (min-width: 1024px) {
	.mv-pdp-reviews__intro {
		gap: var(--mv-space-5);
	}

	.mv-review-summary {
		margin-top: 0;
	}

	.mv-pdp-guide {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: center;
		gap: var(--mv-gutter);
	}

	.mv-pdp-guide__card {
		grid-column: 1 / span 4;
		grid-row: 1;
		max-width: none;
	}

	.mv-pdp-guide__note {
		grid-column: 5 / span 8;
		grid-row: 1;
	}

	.mv-pdp-guide__text {
		display: block;
	}
}

/* ---------- Phone sticky bar (D5.3.8, Figma 76:1213 / 82:7938) ----------
 * Fixed to the bottom below 1024 once the buy box is scrolled away (JS); 72 tall,
 * white, hairline + shadow-hover, padding 12 / 20, gap 16. The page keeps 72 free at
 * the bottom so the bar never hides the footer's last line; the WhatsApp button moves
 * up by the bar while it shows (16 above it). */
.mv-sticky-buy {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: var(--mv-space-4);
	min-height: 72px;
	padding: 11px var(--mv-page-margin) max(var(--mv-space-3), env(safe-area-inset-bottom)); /* 11 + 1 px hairline = Figma 12 */
	border-top: 1px solid var(--mv-border);
	background: var(--mv-white);
	box-shadow: var(--mv-shadow-hover);
	transform: translateY(110%);
	transition: transform var(--mv-duration-base, 250ms) var(--mv-ease-out);
}

.mv-sticky-buy.is-visible {
	transform: none;
}

.mv-sticky-buy[hidden] {
	display: none;
}

.mv-sticky-buy__info {
	flex: 1;
	min-width: 0;
}

.mv-sticky-buy__name {
	margin: 0;
	overflow: hidden;
	color: var(--mv-muted);
	font-size: var(--mv-small-size);
	line-height: var(--mv-small-line);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.mv-sticky-buy__price {
	margin: 0;
	color: var(--mv-navy);
	font-size: var(--mv-price-size);
	line-height: var(--mv-price-line);
	font-weight: var(--mv-weight-semibold);
	white-space: nowrap;
}

.mv-sticky-buy__add {
	flex: none;
}

@media (max-width: 1023px) {
	.mv-js .mv-site:has(.mv-sticky-buy) {
		padding-bottom: 72px;
	}

	.mv-sticky-buy-on .mv-whatsapp {
		transform: translateY(-72px);
	}
}

@media (min-width: 1024px) {
	.mv-sticky-buy {
		display: none !important; /* phones and tablets only (Figma) */
	}
}

/* ---------- Wholesale popup (D5.4.1, Figma Inquiry modal 78:1284) ----------
 * Phones: bottom sheet (radius 16 on top, padding 24, handle 40 x 4); the fields
 * scroll inside, a hairline + consent + Send request + reply line stay at the bottom.
 * From 768: a centred 640 dialog (radius 12, padding 32) over a navy 60 % scrim; the
 * whole panel scrolls when the screen is short. Gap 24 between the blocks. */
.mv-popup {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: none;
	align-items: flex-end;
	justify-content: center;
}

.mv-popup.is-open {
	display: flex;
}

.mv-popup__scrim {
	position: absolute;
	inset: 0;
	background: var(--mv-scrim); /* navy 60 % (Figma) */
	opacity: 0;
	transition: opacity var(--mv-duration-slow) var(--mv-ease-out);
}

.mv-popup__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-5);
	width: 100%;
	max-height: calc(100dvh - var(--mv-space-5));
	padding: var(--mv-space-5) var(--mv-space-5) max(var(--mv-space-5), env(safe-area-inset-bottom));
	overflow: hidden;
	border-radius: 16px 16px 0 0;
	background: var(--mv-white);
	box-shadow: var(--mv-shadow-hover);
	transform: translateY(100%);
	transition: transform var(--mv-duration-slow) var(--mv-ease-out);
}

.mv-popup.is-active .mv-popup__scrim {
	opacity: 1;
}

.mv-popup.is-active .mv-popup__panel {
	transform: none;
}

.mv-popup__handle {
	flex: none;
	width: 40px;
	height: 4px;
	border-radius: 2px;
	background: var(--mv-border);
}

.mv-popup__header {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: var(--mv-space-4);
}

.mv-popup__title {
	margin: 0;
	color: var(--mv-navy);
	font-family: var(--mv-font-heading);
	font-size: var(--mv-h3-size);
	line-height: var(--mv-h3-line);
	font-weight: var(--mv-weight-semibold);
	letter-spacing: 0;
}

.mv-popup__close {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: -10px; /* the 24 px icon lines up with the panel edge */
	padding: 0;
	border: 0;
	border-radius: var(--mv-radius-sm);
	background: none;
	color: var(--mv-navy);
	cursor: pointer;
}

.mv-popup__close .mv-icon {
	width: 24px;
	height: 24px;
}

.mv-popup__close:focus-visible {
	outline: none;
	box-shadow: var(--mv-focus-ring);
}

.mv-popup__product {
	display: flex;
	flex: none;
	align-items: center;
	gap: var(--mv-space-3);
	padding: var(--mv-space-3);
	border-radius: var(--mv-radius-sm);
	background: var(--mv-offwhite);
}

.mv-popup__thumb {
	flex: none;
	overflow: hidden;
	width: 56px;
	height: 56px;
	border-radius: var(--mv-radius-sm);
	background: var(--mv-neutral);
}

.mv-popup__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mv-popup__product-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.mv-popup__product-name {
	color: var(--mv-navy);
	font-weight: var(--mv-weight-semibold);
}

.mv-popup__product-sku {
	color: var(--mv-muted);
	font-size: var(--mv-small-size);
	line-height: var(--mv-small-line);
}

.mv-popup__product .mv-tag {
	flex: none;
	align-self: center;
}

/* The inquiry form without its card; on phones the fields scroll inside the sheet. */
.mv-popup .mv-inquiry-wrap {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.mv-popup .mv-inquiry,
.mv-popup .mv-inquiry-success {
	flex: 1;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

/* D5.4.2: the success panel in place of the form, without its own card. */
.mv-popup .mv-inquiry-success {
	overflow-y: auto;
	padding-block: var(--mv-space-4);
}

.mv-inquiry--popup .mv-inquiry__fields {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	margin: -4px; /* room for the focus ring inside the scroller */
	padding: 4px;
}

.mv-inquiry--popup .mv-inquiry__consent {
	padding-top: var(--mv-space-5);
	border-top: 1px solid var(--mv-border); /* Figma: Footer divider (phones) */
}

.mv-inquiry--popup .mv-inquiry__actions {
	flex-direction: column;
}

@media (min-width: 768px) {
	.mv-popup {
		align-items: center;
		padding: var(--mv-space-5);
	}

	.mv-popup__panel {
		width: min(640px, 100%);
		max-height: calc(100dvh - 2 * var(--mv-space-5));
		padding: var(--mv-space-6);
		overflow-y: auto;
		overscroll-behavior: contain;
		border-radius: var(--mv-radius-md);
		opacity: 0;
		transform: translateY(16px);
		transition:
			opacity var(--mv-duration-slow) var(--mv-ease-out),
			transform var(--mv-duration-slow) var(--mv-ease-out);
	}

	.mv-popup.is-active .mv-popup__panel {
		opacity: 1;
	}

	.mv-popup__handle {
		display: none;
	}

	.mv-popup .mv-inquiry-wrap,
	.mv-popup .mv-inquiry,
	.mv-popup .mv-inquiry-success,
	.mv-inquiry--popup .mv-inquiry__fields {
		flex: none;
		overflow: visible;
	}

	.mv-inquiry--popup .mv-inquiry__consent {
		padding-top: 0;
		border-top: 0;
	}
}
