/**
 * Million Dollar Facial – design v2 product page.
 *
 * Styles for the Bricks "Single product" template. Tokens, buttons, icons and
 * the product card come from mdf-v2.css. The design prototype is desktop only;
 * the layouts below 768px are derived from it.
 */

/* ------------------------------------------------------------------ */
/* 1. Shared pieces                                                    */
/* ------------------------------------------------------------------ */

/* Bricks pads the product wrapper; sections handle their own gutters and
   coloured bands must reach the screen edges. */
body.single-product #brx-content {
	padding: 0;
}

/* Room for the sticky add-to-cart bar */
body.single-product {
	padding-bottom: 80px;
}

.mdf-p-section {
	padding-top: 64px;
	padding-bottom: 64px;
}

.mdf-p-section--flush-top {
	padding-top: 0;
}

.mdf-p-section--sand {
	background-color: var(--mdf-sand);
}

.mdf-p-head {
	max-width: 672px;
}

.mdf-p-title {
	margin-top: 16px;
	font-size: 28px;
	line-height: 1.2;
}

/* Free-text paragraph under a section heading */
.mdf-p-text {
	max-width: 672px;
	margin: 20px 0 0;
	font-size: 16px;
	line-height: 1.625;
	color: var(--mdf-muted);
}

.mdf-howto .mdf-p-text {
	color: color-mix(in oklab, var(--mdf-bg) 70%, transparent);
}

@media (min-width: 768px) {
	.mdf-p-section {
		padding-top: 96px;
		padding-bottom: 96px;
	}

	.mdf-p-section--flush-top {
		padding-top: 0;
	}

	.mdf-p-title {
		font-size: 36px;
		line-height: 40px;
	}
}

/* Extra icons (Lucide, ISC licence) */
.mdf-ico--check {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.mdf-ico--card {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='5' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E");
}

.mdf-ico--stethoscope {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 2v2'/%3E%3Cpath d='M5 2v2'/%3E%3Cpath d='M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1'/%3E%3Cpath d='M8 15a6 6 0 0 0 12 0v-3'/%3E%3Ccircle cx='20' cy='10' r='2'/%3E%3C/svg%3E");
}

.mdf-ico--truck-bold {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ */
/* 2. Breadcrumb                                                       */
/* ------------------------------------------------------------------ */

.mdf-p-crumbs {
	padding-top: 32px;
}

.mdf-p-crumbs .woocommerce-breadcrumb,
.mdf-p-crumbs .navigation {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--mdf-muted);
}

.mdf-p-crumbs a {
	font-weight: 400;
	color: var(--mdf-fg);
	text-decoration: none;
}

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

.mdf-p-crumbs .separator {
	color: var(--mdf-border);
}

/* ------------------------------------------------------------------ */
/* 3. Buy box                                                          */
/* ------------------------------------------------------------------ */

.mdf-buy {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	padding-top: 24px;
	padding-bottom: 56px;
}

@media (min-width: 768px) {
	.mdf-buy {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		gap: 64px;
		padding-top: 40px;
		padding-bottom: 80px;
	}
}

/* 3.1 Gallery (Bricks product gallery element) */
.mdf-buy__media {
	position: relative;
	min-width: 0;
}

.mdf-gallery {
	width: 100%;
}

.mdf-gallery .woocommerce-product-gallery {
	width: 100%;
	margin: 0;
	opacity: 1 !important;
}

.mdf-gallery .woocommerce-product-gallery__wrapper {
	margin: 0;
}

.mdf-gallery .woocommerce-product-gallery__image,
.mdf-gallery .woocommerce-product-gallery__image--placeholder {
	background-color: var(--mdf-sand);
}

.mdf-gallery .woocommerce-product-gallery__image a {
	display: block;
}

.mdf-gallery .woocommerce-product-gallery__image img,
.mdf-gallery .woocommerce-product-gallery__wrapper > div > img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Thumbnails: four in a row under the main image */
.mdf-gallery .flex-control-thumbs,
.mdf-gallery .brx-product-gallery-thumbnail-slider .woocommerce-product-gallery__wrapper {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	transform: none !important;
}

.mdf-gallery .flex-control-thumbs li,
.mdf-gallery .brx-product-gallery-thumbnail-slider .woocommerce-product-gallery__image {
	float: none;
	width: auto !important;
	margin: 0 !important;
	background-color: var(--mdf-sand);
}

.mdf-gallery .flex-control-thumbs img,
.mdf-gallery .brx-product-gallery-thumbnail-slider img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	opacity: 0.7;
	cursor: pointer;
	transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.mdf-gallery .flex-control-thumbs img:hover,
.mdf-gallery .flex-control-thumbs img.flex-active,
.mdf-gallery .brx-product-gallery-thumbnail-slider .flex-active-slide img,
.mdf-gallery .brx-product-gallery-thumbnail-slider img:hover {
	opacity: 1;
}

.mdf-gallery .flex-control-thumbs img.flex-active,
.mdf-gallery .brx-product-gallery-thumbnail-slider .flex-active-slide img {
	box-shadow: 0 0 0 2px var(--mdf-fg);
}

/* Zoom / lightbox trigger */
.mdf-gallery .woocommerce-product-gallery__trigger {
	display: none;
}

.mdf-buy__badge {
	position: absolute;
	left: 16px;
	top: 16px;
	z-index: 2;
	padding: 6px 12px;
	background-color: var(--mdf-fg);
	color: var(--mdf-bg);
	pointer-events: none;
}

@media (min-width: 768px) {
	.mdf-buy__badge {
		left: 24px;
		top: 24px;
	}
}

/* 3.2 Summary column */
.mdf-buy__body {
	min-width: 0;
	padding-top: 8px;
}

.mdf-buy__title {
	margin-top: 12px;
	font-size: 34px;
	font-weight: 300;
	line-height: 1.05;
}

@media (min-width: 768px) {
	.mdf-buy__title {
		font-size: 48px;
	}
}

/* Star rating (WooCommerce markup) */
.mdf-buy__rating {
	margin-top: 16px;
}

.mdf-buy__rating .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.mdf-buy__rating .woocommerce-review-link {
	font-size: 14px;
	line-height: 20px;
	color: var(--mdf-muted);
	text-decoration: none;
}

.mdf-buy .star-rating,
.mdf-reviews .star-rating,
.mdf-sticky .star-rating {
	margin: 0;
	color: var(--mdf-accent);
}

.mdf-buy .star-rating span::before,
.mdf-reviews .star-rating span::before,
.mdf-sticky .star-rating span::before {
	color: var(--mdf-accent);
}

.mdf-buy__pitch {
	max-width: 512px;
	margin: 24px 0 0;
	font-size: 16px;
	line-height: 1.625;
	color: var(--mdf-muted);
}

/* Product description used when there is no short pitch. Imported
   descriptions carry hard line breaks in the middle of sentences. */
.mdf-buy__pitch br {
	display: none;
}

.mdf-buy__pitch p {
	margin: 0 0 12px;
}

.mdf-buy__pitch ul {
	margin: 0 0 12px;
	padding-left: 20px;
}

.mdf-buy__pitch li + li {
	margin-top: 6px;
}

.mdf-buy__pitch > :last-child {
	margin-bottom: 0;
}

/* Key points with check marks */
.mdf-points {
	margin: 28px 0 0;
	padding: 28px 0;
	border-top: 1px solid var(--mdf-border);
	border-bottom: 1px solid var(--mdf-border);
	list-style: none;
}

.mdf-points > li {
	display: flex;
	gap: 12px;
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--mdf-fg);
	list-style: none;
}

.mdf-points > li + li {
	margin-top: 12px;
}

.mdf-points > li::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 0;
	border-radius: 999px;
	background-color: var(--mdf-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0e0e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	background-position: center;
	background-size: 12px 12px;
	background-repeat: no-repeat;
}

.mdf-buy__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	margin-top: 28px;
}

.mdf-buy__price {
	font-size: 30px;
	font-weight: 300;
	line-height: 36px;
	letter-spacing: -0.025em;
	color: var(--mdf-fg);
}

.mdf-buy__price del {
	margin-right: 8px;
	font-size: 18px;
	color: var(--mdf-muted);
}

.mdf-buy__price ins {
	text-decoration: none;
}

.mdf-buy__size {
	font-size: 14px;
	line-height: 20px;
	color: var(--mdf-muted);
}

/* Stock line with an accent dot */
.mdf-buy__stock {
	margin-top: 12px;
}

.mdf-buy__stock .stock,
.mdf-buy__stock p {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	background: none;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--mdf-fg);
}

.mdf-buy__stock .stock::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background-color: var(--mdf-accent);
}

.mdf-buy__stock .stock.out-of-stock::before {
	background-color: oklch(0.6 0.2 25);
}

/* Quantity + add to cart (WooCommerce form) */
.mdf-buy__cart {
	margin-top: 28px;
}

/* The stock line has its own element above the form */
.mdf-buy__cart > .stock {
	display: none;
}

.mdf-buy__cart form.cart {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 16px;
	margin: 0;
}

.mdf-buy__cart .quantity {
	display: flex;
	flex: none;
	align-items: center;
	width: auto;
	height: 56px;
	margin: 0;
	border: 1px solid var(--mdf-border);
}

.mdf-buy__cart .quantity .action {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 100%;
	border: 0;
	background: none;
	color: var(--mdf-muted);
	cursor: pointer;
	transition: color 0.15s ease;
}

.mdf-buy__cart .quantity .action:hover {
	color: var(--mdf-fg);
}

.mdf-buy__cart .quantity input.qty {
	width: 40px;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--mdf-font);
	font-size: 14px;
	font-weight: 400;
	text-align: center;
	color: var(--mdf-fg);
	-moz-appearance: textfield;
}

.mdf-buy__cart .quantity input.qty::-webkit-outer-spin-button,
.mdf-buy__cart .quantity input.qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.mdf-buy__cart button.single_add_to_cart_button,
.mdf-buy__cart .single_add_to_cart_button.button {
	flex: 1;
	height: 56px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	background-color: var(--mdf-accent);
	color: var(--mdf-fg);
	font-family: var(--mdf-font);
	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.mdf-buy__cart button.single_add_to_cart_button:hover {
	background-color: var(--mdf-fg);
	color: var(--mdf-bg);
}

.mdf-buy__cart button.single_add_to_cart_button.disabled,
.mdf-buy__cart button.single_add_to_cart_button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* WooCommerce appends a "view cart" link after an add; the header mini cart
   opens instead. */
.mdf-buy__cart .added_to_cart,
.mdf-cta .added_to_cart,
.mdf-sticky .added_to_cart {
	display: none;
}

/* Feedback while adding and after the add (classes set by js/mdf-v2.js) */
.mdf-buy__cart button.single_add_to_cart_button.loading,
.mdf-cta__button.loading,
.mdf-sticky__button.loading {
	opacity: 0.6;
	pointer-events: none;
}

.mdf-buy__cart button.single_add_to_cart_button.is-added {
	background-color: var(--mdf-fg);
	color: var(--mdf-bg);
}

.mdf-cta__button.is-added,
.mdf-sticky__button.is-added,
.mdf-cta__button.is-added.bricks-button,
.mdf-sticky__button.is-added.bricks-button {
	background-color: var(--mdf-accent);
	color: var(--mdf-fg);
}

.mdf-cta__button.is-added.bricks-button {
	background-color: var(--mdf-bg);
}

/* Trust points under the button */
.mdf-buy__trust {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin-top: 32px;
}

.mdf-buy__trust-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 12px;
	line-height: 1.375;
	color: var(--mdf-muted);
}

.mdf-buy__trust-item .mdf-ico {
	margin-top: 1px;
	color: var(--mdf-fg);
}

@media (min-width: 640px) {
	.mdf-buy__trust {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}

	/* The shipping item holds two sentences: give it the full row. */
	.mdf-buy__trust-item:has(br) {
		grid-column: 1 / -1;
	}
}

.mdf-buy__meta {
	margin: 32px 0 0;
	font-size: 12px;
	line-height: 16px;
	color: var(--mdf-muted);
}

.mdf-buy__meta a {
	color: inherit;
	text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* 4. Feature icons                                                    */
/* ------------------------------------------------------------------ */

.mdf-features {
	background-color: var(--mdf-sand);
}

.mdf-features__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 24px;
	padding-top: 48px;
	padding-bottom: 48px;
}

.mdf-feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	font-size: 12px;
	font-weight: 300;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mdf-fg);
}

.mdf-feature__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1px solid color-mix(in oklab, var(--mdf-fg) 15%, transparent);
	border-radius: 999px;
	background-color: var(--mdf-bg);
}

.mdf-feature__icon::before {
	content: "";
	width: 24px;
	height: 24px;
	background-color: var(--mdf-fg);
	-webkit-mask: var(--mdf-ico) center / contain no-repeat;
	mask: var(--mdf-ico) center / contain no-repeat;
}

@media (min-width: 640px) {
	.mdf-features__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	/* One centred row that spreads evenly for any number of features. */
	.mdf-features__grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

/* A section without top padding still needs air below the feature band. */
.mdf-features + .mdf-p-section--flush-top {
	padding-top: 64px;
}

@media (min-width: 768px) {
	.mdf-features + .mdf-p-section--flush-top {
		padding-top: 96px;
	}
}

/* Icon set for the feature row (Lucide, ISC licence). Keys match
   mdf_product_feature_icons() in inc/mdf-product.php. */
.mdf-feature__icon[data-icon="leaf"] {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12'/%3E%3C/svg%3E");
}

.mdf-feature__icon[data-icon="paw"] {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='4' r='2'/%3E%3Ccircle cx='18' cy='8' r='2'/%3E%3Ccircle cx='20' cy='16' r='2'/%3E%3Cpath d='M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z'/%3E%3C/svg%3E");
}

.mdf-feature__icon[data-icon="flask"] {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 3h15'/%3E%3Cpath d='M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3'/%3E%3Cpath d='M6 14h12'/%3E%3C/svg%3E");
}

.mdf-feature__icon[data-icon="flag"] {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cpath d='M4 22v-7'/%3E%3C/svg%3E");
}

.mdf-feature__icon[data-icon="shield"] {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3C/svg%3E");
}

.mdf-feature__icon[data-icon="sparkles"] {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z'/%3E%3Cpath d='M20 3v4'/%3E%3Cpath d='M22 5h-4'/%3E%3C/svg%3E");
}

.mdf-feature__icon[data-icon="droplet"] {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.500-4-4-6.500c-.5 2.500-2 4.900-4 6.500C6 11.100 5 13 5 15a7 7 0 0 0 7 7z'/%3E%3C/svg%3E");
}

.mdf-feature__icon[data-icon="sun"] {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}

.mdf-feature__icon[data-icon="moon"] {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E");
}

.mdf-feature__icon[data-icon="heart"] {
	--mdf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.490-1.460 3-3.210 3-5.500A5.500 5.500 0 0 0 16.500 3c-1.760 0-3 .5-4.500 2-1.500-1.500-2.740-2-4.500-2A5.500 5.500 0 0 0 2 8.500c0 2.300 1.500 4.050 3 5.500l7 7Z'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ */
/* 5. Card grids: concerns and ingredients                             */
/* ------------------------------------------------------------------ */

.mdf-p-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin-top: 40px;
	counter-reset: mdf-p-card;
}

@media (min-width: 768px) {
	.mdf-p-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
		margin-top: 48px;
	}
}

.mdf-p-card {
	padding: 32px;
	counter-increment: mdf-p-card;
}

.mdf-p-card__title {
	font-size: 20px;
	line-height: 28px;
}

.mdf-p-card__body {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.625;
	color: var(--mdf-muted);
}

/* Concern card: numbered, accent top border */
.mdf-p-card--concern {
	border-top: 2px solid var(--mdf-accent);
	background-color: oklch(0.968 0.004 90);
}

.mdf-p-card--concern::before {
	content: counter(mdf-p-card, decimal-leading-zero);
	display: block;
	margin-bottom: 16px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.22em;
	color: var(--mdf-muted);
}

/* Ingredient card: outlined */
.mdf-p-card--ingredient {
	border: 1px solid var(--mdf-border);
}

.mdf-p-card--ingredient .mdf-p-card__title {
	font-size: 18px;
}

/* Full INCI list toggle */
.mdf-inci {
	margin-top: 32px;
}

.mdf-inci > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
	color: var(--mdf-fg);
	cursor: pointer;
	list-style: none;
	transition: color 0.15s ease;
}

.mdf-inci > summary::-webkit-details-marker {
	display: none;
}

.mdf-inci > summary:hover {
	color: var(--mdf-muted);
}

.mdf-inci > summary::after,
.mdf-faq__item > summary::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.mdf-inci[open] > summary::after,
.mdf-faq__item[open] > summary::after {
	transform: rotate(180deg);
}

.mdf-inci__text {
	max-width: 768px;
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 1.625;
	color: var(--mdf-muted);
}

/* ------------------------------------------------------------------ */
/* 6. Video block                                                      */
/* ------------------------------------------------------------------ */

.mdf-video {
	position: relative;
	margin: 0;
	overflow: hidden;
	background-color: var(--mdf-fg);
}

.mdf-video__button {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
}

.mdf-video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.mdf-video:hover .mdf-video__poster {
	transform: scale(1.03);
}

.mdf-video__shade {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(
		to top,
		color-mix(in oklab, var(--mdf-fg) 85%, transparent),
		color-mix(in oklab, var(--mdf-fg) 25%, transparent),
		transparent
	);
}

.mdf-video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 999px;
	background-color: var(--mdf-accent);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	transform: translate(-50%, -50%);
	transition: transform 0.3s ease;
}

.mdf-video:hover .mdf-video__play {
	transform: translate(-50%, -50%) scale(1.1);
}

.mdf-video__play::before {
	content: "";
	width: 0;
	height: 0;
	margin-left: 5px;
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent var(--mdf-fg);
}

.mdf-video__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px;
}

.mdf-video__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--mdf-accent);
}

.mdf-video__title {
	display: block;
	margin-top: 8px;
	font-family: var(--mdf-font);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.3;
	letter-spacing: -0.025em;
	color: var(--mdf-bg);
}

.mdf-video__body {
	display: none;
	max-width: 576px;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.625;
	color: color-mix(in oklab, var(--mdf-bg) 75%, transparent);
}

.mdf-video__duration {
	display: inline-block;
	margin-top: 16px;
	padding: 4px 12px;
	border: 1px solid color-mix(in oklab, var(--mdf-bg) 30%, transparent);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: color-mix(in oklab, var(--mdf-bg) 70%, transparent);
}

.mdf-video iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

@media (min-width: 768px) {
	.mdf-video__play {
		width: 80px;
		height: 80px;
	}

	.mdf-video__caption {
		padding: 32px;
	}

	.mdf-video__title {
		font-size: 24px;
	}

	.mdf-video__body {
		display: block;
	}
}

/* ------------------------------------------------------------------ */
/* 7. Benefits – alternating image / text rows                         */
/* ------------------------------------------------------------------ */

.mdf-benefits__list {
	display: grid;
	gap: 56px;
	margin-top: 48px;
}

.mdf-benefit {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 24px;
}

.mdf-benefit__media {
	margin: 0;
	overflow: hidden;
	background-color: var(--mdf-sand);
}

.mdf-benefit__img,
.mdf-benefit__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.mdf-benefit__title {
	margin-top: 16px;
	font-size: 24px;
	line-height: 1.25;
}

.mdf-benefit__text {
	max-width: 512px;
	margin: 20px 0 0;
	font-size: 16px;
	line-height: 1.625;
	color: var(--mdf-muted);
}

@media (min-width: 768px) {
	.mdf-benefits__list {
		gap: 96px;
		margin-top: 96px;
	}

	.mdf-benefit {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 64px;
	}

	/* Every second row: image on the right */
	.mdf-benefit:nth-child(even) .mdf-benefit__media {
		order: 2;
	}

	.mdf-benefit__title {
		font-size: 30px;
	}
}

/* ------------------------------------------------------------------ */
/* 8. How to use                                                       */
/* ------------------------------------------------------------------ */

.mdf-howto {
	background-color: var(--mdf-fg);
	color: var(--mdf-bg);
}

.mdf-howto__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 48px;
}

.mdf-howto .mdf-p-title {
	color: var(--mdf-bg);
}

.mdf-howto__steps {
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: mdf-howto;
}

.mdf-howto__steps > li {
	display: flex;
	gap: 20px;
	margin: 0;
	list-style: none;
	counter-increment: mdf-howto;
}

.mdf-howto__steps > li + li {
	margin-top: 32px;
}

.mdf-howto__steps > li::before {
	content: counter(mdf-howto);
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background-color: var(--mdf-accent);
	color: var(--mdf-fg);
	font-size: 14px;
	font-weight: 300;
}

.mdf-howto__step-title {
	font-size: 18px;
	line-height: 28px;
	color: var(--mdf-bg);
}

.mdf-howto__step-body {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.625;
	color: color-mix(in oklab, var(--mdf-bg) 70%, transparent);
}

/* The video wrapper is empty when the product has no how-to video */
.mdf-howto__video:empty {
	display: none;
}

@media (min-width: 768px) {
	.mdf-howto__grid:has(.mdf-video) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 64px;
	}
}

/* ------------------------------------------------------------------ */
/* 9. Reviews (WooCommerce reviews template)                           */
/* ------------------------------------------------------------------ */

.mdf-reviews__head {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

.mdf-review-summary__row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mdf-review-summary__avg {
	font-size: 24px;
	font-weight: 300;
	line-height: 32px;
	color: var(--mdf-fg);
}

.mdf-review-summary__count {
	margin: 4px 0 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--mdf-muted);
}

@media (min-width: 768px) {
	.mdf-reviews__head {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}

	.mdf-review-summary {
		text-align: right;
	}

	.mdf-review-summary__row {
		justify-content: flex-end;
	}
}

.mdf-reviews__list {
	width: 100%;
	margin-top: 48px;
}

.mdf-reviews__list #reviews {
	display: grid;
	gap: 24px;
}

/* The section already has its own heading */
.mdf-reviews__list .woocommerce-Reviews-title {
	display: none;
}

.mdf-reviews__list .woocommerce-noreviews {
	margin: 0;
	font-size: 14px;
	color: var(--mdf-muted);
}

.mdf-reviews__list ol.commentlist {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mdf-reviews__list ol.commentlist > li {
	margin: 0;
	padding: 32px;
	background-color: var(--mdf-bg);
	list-style: none;
}

.mdf-reviews__list .comment_container {
	display: block;
}

.mdf-reviews__list .comment_container img.avatar {
	display: none;
}

.mdf-reviews__list .comment-text {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 0;
}

.mdf-reviews__list .comment-text .star-rating {
	float: none;
}

.mdf-reviews__list .comment-text .description {
	order: 2;
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.625;
	color: var(--mdf-muted);
}

.mdf-reviews__list .comment-text .description p {
	margin: 0;
}

.mdf-reviews__list .comment-text .meta {
	order: 3;
	margin: 24px 0 0;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mdf-fg);
}

.mdf-reviews__list .comment-text .meta strong {
	font-weight: 400;
}

@media (min-width: 768px) {
	.mdf-reviews__list ol.commentlist {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Review form */
.mdf-reviews__list #review_form_wrapper {
	max-width: 640px;
	padding: 32px;
	background-color: var(--mdf-bg);
}

.mdf-reviews__list .comment-reply-title {
	display: block;
	margin-bottom: 16px;
	font-size: 18px;
	font-weight: 300;
	line-height: 28px;
	letter-spacing: -0.025em;
}

.mdf-reviews__list .comment-form {
	display: grid;
	gap: 16px;
	font-size: 14px;
}

.mdf-reviews__list .comment-form p {
	margin: 0;
}

.mdf-reviews__list .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	color: var(--mdf-muted);
}

.mdf-reviews__list .comment-form input[type="text"],
.mdf-reviews__list .comment-form input[type="email"],
.mdf-reviews__list .comment-form textarea,
.mdf-reviews__list .comment-form select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--mdf-border);
	border-radius: 0;
	background-color: var(--mdf-bg);
	font-family: var(--mdf-font);
	font-size: 14px;
	line-height: 20px;
	color: var(--mdf-fg);
}

.mdf-reviews__list .comment-form input:focus,
.mdf-reviews__list .comment-form textarea:focus {
	border-color: var(--mdf-fg);
	outline: none;
}

.mdf-reviews__list .comment-form p.stars a {
	color: var(--mdf-fg);
}

.mdf-reviews__list .comment-form input[type="submit"],
.mdf-reviews__list .comment-form .submit {
	width: auto;
	padding: 16px 32px;
	border: 0;
	border-radius: 0;
	background-color: var(--mdf-fg);
	color: var(--mdf-bg);
	font-family: var(--mdf-font);
	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.mdf-reviews__list .comment-form input[type="submit"]:hover {
	opacity: 0.85;
}

/* ------------------------------------------------------------------ */
/* 10. FAQ                                                             */
/* ------------------------------------------------------------------ */

.mdf-faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

.mdf-faq__title {
	line-height: 1.25;
}

.mdf-faq__text {
	margin: 20px 0 0;
	font-size: 14px;
	line-height: 1.625;
	color: var(--mdf-muted);
}

.mdf-faq__text a {
	color: inherit;
	text-decoration: underline;
}

.mdf-faq__item {
	border-bottom: 1px solid var(--mdf-border);
}

.mdf-faq__item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
	letter-spacing: -0.025em;
	color: var(--mdf-fg);
	cursor: pointer;
	list-style: none;
}

.mdf-faq__item > summary::-webkit-details-marker {
	display: none;
}

.mdf-faq__item > summary::after {
	color: var(--mdf-muted);
}

.mdf-faq__answer {
	margin: 0;
	padding-bottom: 24px;
	font-size: 14px;
	line-height: 1.625;
	color: var(--mdf-muted);
}

@media (min-width: 768px) {
	.mdf-faq__grid {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 64px;
	}
}

/* ------------------------------------------------------------------ */
/* 11. Closing call to action                                          */
/* ------------------------------------------------------------------ */

.mdf-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
	padding: 32px 24px;
	background-color: var(--mdf-accent);
	color: var(--mdf-fg);
}

.mdf-cta__title {
	font-size: 24px;
	line-height: 1.25;
}

.mdf-cta__text {
	max-width: 576px;
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.625;
	color: color-mix(in oklab, var(--mdf-fg) 75%, transparent);
}

.mdf-cta__button,
.mdf-cta__button.bricks-button,
.mdf-sticky__button,
.mdf-sticky__button.bricks-button {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	height: 56px;
	padding: 0 40px;
	border: 0;
	border-radius: 0;
	background-color: var(--mdf-fg);
	color: var(--mdf-bg);
	font-family: var(--mdf-font);
	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.mdf-cta__button:hover,
.mdf-sticky__button:hover {
	opacity: 0.85;
}

@media (min-width: 768px) {
	.mdf-cta {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 40px;
		padding: 56px;
	}

	.mdf-cta__title {
		font-size: 30px;
		line-height: 36px;
	}
}

/* ------------------------------------------------------------------ */
/* 12. Related products (WooCommerce loop markup)                      */
/* ------------------------------------------------------------------ */

.mdf-related .mdf-p-title {
	font-size: 24px;
	line-height: 32px;
}

.mdf-related__list {
	width: 100%;
	margin-top: 40px;
}

.mdf-related__list .related > h2 {
	display: none;
}

.mdf-related__list ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mdf-related__list ul.products::before,
.mdf-related__list ul.products::after {
	display: none;
}

.mdf-related__list ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	text-align: left;
	list-style: none;
}

.mdf-related__list li.product a.woocommerce-LoopProduct-link {
	display: block;
	color: var(--mdf-fg);
	text-decoration: none;
}

.mdf-related__list li.product img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	margin: 0;
	object-fit: cover;
	background-color: var(--mdf-sand);
	transition: transform 0.5s ease;
}

.mdf-related__list li.product a.woocommerce-LoopProduct-link:hover img {
	transform: scale(1.05);
}

.mdf-related__list li.product .woocommerce-loop-product__title {
	margin: 16px 0 0;
	padding: 0;
	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
	letter-spacing: -0.025em;
	color: var(--mdf-fg);
}

.mdf-related__list li.product .price {
	display: block;
	margin: 4px 0 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--mdf-muted);
}

.mdf-related__list li.product .button,
.mdf-related__list li.product .added_to_cart,
.mdf-related__list li.product .star-rating,
.mdf-related__list li.product .onsale {
	display: none;
}

@media (min-width: 768px) {
	.mdf-related .mdf-p-title {
		font-size: 30px;
		line-height: 36px;
	}

	.mdf-related__list ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 24px;
	}
}

/* ------------------------------------------------------------------ */
/* 13. Sticky add-to-cart bar                                          */
/* ------------------------------------------------------------------ */

.mdf-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 997;
	border-top: 1px solid var(--mdf-border);
	background-color: color-mix(in oklab, var(--mdf-bg) 95%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.mdf-sticky.is-visible {
	transform: translateY(0);
}

.mdf-sticky__inner {
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 80px;
}

.mdf-sticky__product {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.mdf-sticky__img {
	flex: none;
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.mdf-sticky__name {
	margin: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
	letter-spacing: -0.025em;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--mdf-fg);
}

.mdf-sticky__actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 24px;
}

.mdf-sticky__price {
	display: none;
	font-size: 18px;
	font-weight: 300;
	line-height: 28px;
	color: var(--mdf-fg);
}

.mdf-sticky__button,
.mdf-sticky__button.bricks-button {
	height: 48px;
	padding: 0 20px;
	letter-spacing: 0.05em;
}

@media (min-width: 640px) {
	.mdf-sticky__price {
		display: block;
	}

	.mdf-sticky__button,
	.mdf-sticky__button.bricks-button {
		padding: 0 32px;
	}
}

@media (max-width: 479px) {
	.mdf-sticky__img {
		display: none;
	}
}

/* WooCommerce notices ("added to cart"), printed by Bricks above the template */
body.single-product #brx-content > .woocommerce-notices-wrapper {
	width: 100%;
	max-width: var(--mdf-wrap);
	margin: 0 auto;
	padding: 0 var(--mdf-gutter);
}

body.single-product #brx-content > .woocommerce-notices-wrapper > * {
	margin: 24px 0 0;
}
