:root {
	--mx-duration: 180ms;
	--mx-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--mx-focus-inner: #fff;
	--mx-focus-outer: #18342a;
	--mx-radius-control: 12px;
	--mx-radius-card: 18px;
	--mx-radius-section: 28px;
	--mx-shadow-soft: 0 12px 34px rgba(18, 70, 51, 0.1);
	--mx-shadow-lifted: 0 22px 58px rgba(18, 70, 51, 0.16);
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-wrap: break-word;
}

body,
button,
input,
select,
textarea {
	font-feature-settings: "kern" 1, "liga" 1;
}

a,
button,
input,
select,
summary,
textarea,
.wp-element-button {
	transition: background-color var(--mx-duration) var(--mx-ease), border-color var(--mx-duration) var(--mx-ease), color var(--mx-duration) var(--mx-ease), box-shadow var(--mx-duration) var(--mx-ease), transform var(--mx-duration) var(--mx-ease);
}

:where(a, button, input, select, summary, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--mx-focus-inner);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--mx-focus-outer);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: -1px;
	padding: 0;
	border: 0;
	clip-path: inset(50%);
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 5px;
	left: 5px;
	display: block;
	width: auto;
	height: auto;
	padding: 15px 23px 14px;
	clip-path: none;
	background: var(--wp--preset--color--canvas);
	color: var(--wp--preset--color--ink);
	font-size: 1rem;
	line-height: normal;
	text-decoration: none;
}

:where(.wp-block-post-content, .wp-block-comment-content, .widget_text, .mx-site-footer p) a:not(.wp-element-button):not(.wp-block-button__link) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

:where(.wp-block-post-content, .wp-block-comment-content, .widget_text, .mx-site-footer p) a:not(.wp-element-button):not(.wp-block-button__link):hover,
:where(.wp-block-post-content, .wp-block-comment-content, .widget_text, .mx-site-footer p) a:not(.wp-element-button):not(.wp-block-button__link):focus-visible {
	text-decoration-thickness: 3px;
}

::selection {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--white);
}

img {
	height: auto;
	max-width: 100%;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
select,
textarea {
	box-sizing: border-box;
	min-height: 46px;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--mx-radius-control);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

textarea {
	min-height: 140px;
}

.wp-element-button,
.wp-block-button__link,
.wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	box-sizing: border-box;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.wp-block-search__button:hover {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--white);
}

.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline {
	border: 1px solid var(--wp--preset--color--primary);
	background: transparent;
	color: var(--wp--preset--color--primary-dark);
}

.is-style-outline > .wp-block-button__link:hover,
.wp-block-button__link.is-style-outline:hover {
	background: var(--wp--preset--color--soft);
	color: var(--wp--preset--color--primary-dark);
}

.mx-section.has-background .mx-kicker,
.mx-section.has-background .is-style-outline > .wp-block-button__link.has-white-color {
	color: var(--wp--preset--color--white);
}

.mx-section.has-background .is-style-outline > .wp-block-button__link.has-white-color {
	border-color: rgba(255, 255, 255, 0.72);
}

.mx-section.has-background .is-style-outline > .wp-block-button__link.has-white-color:hover {
	background: rgba(255, 255, 255, 0.12);
}

.mx-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	margin-block-start: 0;
	border-bottom: 1px solid rgba(203, 222, 212, 0.82);
	background: rgba(247, 251, 248, 0.9);
	box-shadow: 0 7px 24px rgba(18, 70, 51, 0.06);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.admin-bar .mx-site-header {
	top: 32px;
}

.mx-header-bar {
	min-height: 76px;
}

.mx-brand {
	position: relative;
	min-width: 0;
	gap: 0.72rem;
}

.mx-brand .wp-block-site-title {
	max-width: clamp(10rem, 24vw, 20rem);
	line-height: 1.15;
}

.mx-brand::before,
.mx-brand::after {
	display: block;
	width: 16px;
	height: 22px;
	content: "";
	background: linear-gradient(145deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary-dark));
	box-shadow: inset 4px 4px 8px rgba(255, 255, 255, 0.2);
}

.mx-brand::before {
	margin-right: -0.9rem;
	border-radius: 100% 0 100% 0;
	transform: rotate(-18deg) translateY(-5px);
}

.mx-brand::after {
	width: 12px;
	height: 17px;
	margin-left: -0.85rem;
	border-radius: 0 100% 0 100%;
	transform: rotate(22deg) translateY(-2px);
}

.mx-brand .wp-block-site-title a,
.mx-site-header .wp-block-navigation a,
.mx-site-footer .wp-block-navigation a {
	text-decoration: none;
}

.mx-brand .wp-block-site-title a {
	overflow-wrap: anywhere;
}

.mx-site-header .wp-block-navigation__responsive-container-open,
.mx-site-header .wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	border-radius: 10px;
}

.mx-site-header .wp-block-navigation-item__content {
	position: relative;
	padding: 0.65rem 0.15rem;
}

.mx-site-header .wp-block-navigation-item__content::after {
	position: absolute;
	right: 0.15rem;
	bottom: 0.38rem;
	left: 0.15rem;
	height: 2px;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	content: "";
	transform: scaleX(0);
	transform-origin: center;
	transition: transform var(--mx-duration) var(--mx-ease);
}

.mx-site-header .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary-dark);
}

.mx-site-header .wp-block-navigation-item__content[aria-current],
.mx-site-header .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary-dark);
	font-weight: 700;
}

.mx-site-header .wp-block-navigation-item__content:focus-visible::after,
.mx-site-header .wp-block-navigation-item__content[aria-current]::after,
.mx-site-header .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

.mx-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(760px, calc(100svh - 76px));
	margin-block-start: 0;
	background: radial-gradient(circle at 86% 12%, rgba(226, 169, 69, 0.24), transparent 24%), radial-gradient(circle at 8% 92%, rgba(22, 139, 89, 0.14), transparent 26%), linear-gradient(135deg, var(--wp--preset--color--canvas) 0%, var(--wp--preset--color--soft) 60%, #d8eee2 100%);
}

.mx-hero::before,
.mx-hero::after {
	position: absolute;
	z-index: -1;
	content: "";
	opacity: 0.34;
}

.mx-hero::before {
	top: -16%;
	right: -8%;
	width: min(44vw, 620px);
	height: min(52vw, 720px);
	border-radius: 100% 0 100% 0;
	background: linear-gradient(145deg, rgba(75, 181, 126, 0.7), rgba(13, 99, 62, 0.25));
	transform: rotate(18deg);
}

.mx-hero::after {
	right: 32%;
	bottom: -34%;
	width: min(30vw, 420px);
	height: min(34vw, 480px);
	border-radius: 0 100% 0 100%;
	background: linear-gradient(145deg, rgba(226, 169, 69, 0.55), rgba(22, 139, 89, 0.18));
	transform: rotate(-10deg);
}

.mx-hero__inner {
	min-height: min(760px, calc(100svh - 76px));
	padding-block: var(--wp--preset--spacing--xl);
}

.mx-hero__copy {
	z-index: 2;
}

.mx-kicker {
	margin-block-end: 0.6rem;
	color: var(--wp--preset--color--primary-dark);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.mx-hero h1 {
	max-width: 780px;
	margin-block: 0.4rem 1.2rem;
}

.mx-hero__lead {
	max-width: 650px;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
}

.mx-hero__art {
	position: relative;
	z-index: 1;
	margin: 0;
	filter: drop-shadow(0 28px 32px rgba(18, 70, 51, 0.18));
}

.mx-hero__art img {
	width: 100%;
	border-radius: 42% 18% 36% 20%;
}

.mx-trust-strip {
	position: relative;
	z-index: 4;
	margin-block-start: -2.6rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--mx-radius-card);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--mx-shadow-soft);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.mx-trust-item {
	position: relative;
	padding-left: 2.6rem;
}

.mx-trust-item__title {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-weight: 800;
	line-height: 1.25;
}

.mx-trust-item::before {
	position: absolute;
	top: 0.05rem;
	left: 0;
	display: grid;
	width: 2rem;
	height: 2rem;
	place-items: center;
	border-radius: 10px;
	background: var(--wp--preset--color--soft);
	color: var(--wp--preset--color--primary-dark);
	content: "✓";
	font-weight: 800;
}

.mx-section {
	position: relative;
	padding-block: var(--wp--preset--spacing--xl);
}

.mx-section--soft {
	border-radius: var(--mx-radius-section);
	background: var(--wp--preset--color--soft);
}

.mx-section--cream {
	border-radius: var(--mx-radius-section);
	background: var(--wp--preset--color--cream);
}

.mx-section-heading {
	max-width: 760px;
	margin-block-end: var(--wp--preset--spacing--lg);
}

.mx-section-heading.is-layout-flex {
	max-width: none;
}

.mx-card,
.is-style-mam-xanh-leaf-card {
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--mx-radius-card);
	background: var(--wp--preset--color--white);
	box-shadow: 0 8px 26px rgba(18, 70, 51, 0.07);
}

.mx-card {
	height: 100%;
}

.mx-card__body {
	padding: var(--wp--preset--spacing--md);
}

.mx-card .wp-block-image {
	margin: 0;
}

.mx-card .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 0;
	object-fit: cover;
	transition: transform var(--mx-duration) var(--mx-ease);
}

.mx-card__meta,
.mx-muted {
	color: var(--wp--preset--color--muted);
}

.mx-price {
	color: var(--wp--preset--color--primary-dark);
	font-weight: 750;
}

.mx-badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding-inline: 0.75rem;
	border-radius: 999px;
	background: var(--wp--preset--color--soft);
	color: var(--wp--preset--color--primary-dark);
	font-size: 0.78rem;
	font-weight: 750;
}

.is-style-mam-xanh-story-bubble {
	position: relative;
	padding: var(--wp--preset--spacing--lg);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 26px 26px 26px 8px;
	background: var(--wp--preset--color--white);
	box-shadow: var(--mx-shadow-soft);
}

.is-style-mam-xanh-organic img {
	border-radius: 46% 18% 42% 20%;
	box-shadow: var(--mx-shadow-soft);
}

.is-style-mam-xanh-checkmarks {
	padding-left: 0;
	list-style: none;
}

.is-style-mam-xanh-checkmarks li {
	position: relative;
	min-height: 1.8rem;
	padding-left: 2rem;
}

.is-style-mam-xanh-checkmarks li::before {
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--primary);
	content: "✓";
	font-weight: 800;
}

.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 44px;
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	display: grid;
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1.75rem;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--soft);
	color: var(--wp--preset--color--primary-dark);
	content: "+";
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1;
	transition: background-color var(--mx-duration) var(--mx-ease), transform var(--mx-duration) var(--mx-ease);
}

.wp-block-details[open] summary::after {
	background: var(--wp--preset--color--line);
	transform: rotate(45deg);
}

.wp-block-details > :not(summary) {
	margin-block-start: var(--wp--preset--spacing--sm);
}

.mx-process {
	counter-reset: mx-process;
}

.mx-process-step {
	position: relative;
	height: 100%;
	padding: var(--wp--preset--spacing--md);
	border-top: 3px solid var(--wp--preset--color--primary);
	border-radius: 0 0 var(--mx-radius-card) var(--mx-radius-card);
	background: var(--wp--preset--color--white);
	box-shadow: 0 8px 24px rgba(18, 70, 51, 0.07);
	counter-increment: mx-process;
}

.mx-process-step::before {
	display: grid;
	width: 2.4rem;
	height: 2.4rem;
	margin-bottom: 1rem;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	content: counter(mx-process, decimal-leading-zero);
	font-size: 0.78rem;
	font-weight: 800;
}

.mx-quote-card,
.mx-placeholder-card {
	height: 100%;
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--lg);
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: var(--mx-radius-card);
	background: rgba(255, 255, 255, 0.68);
}

.mx-qr-placeholder {
	display: grid;
	width: 132px;
	aspect-ratio: 1;
	place-items: center;
	border: 12px solid var(--wp--preset--color--white);
	border-radius: 16px;
	background: repeating-conic-gradient(var(--wp--preset--color--ink) 0 25%, var(--wp--preset--color--white) 0 50%) 50% / 18px 18px;
	box-shadow: var(--mx-shadow-soft);
	color: var(--wp--preset--color--white);
	font-weight: 800;
	text-shadow: 0 1px 4px var(--wp--preset--color--ink);
}

.mx-purchase-guide__item {
	height: 100%;
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--md);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--mx-radius-card);
	background: var(--wp--preset--color--white);
	box-shadow: 0 8px 24px rgba(18, 70, 51, 0.07);
}

.mx-purchase-guide__item > :last-child {
	margin-block-end: 0;
}

.mx-site-footer {
	margin-block-start: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.mx-site-footer :where(h2, h3, h4, p, a, .wp-block-site-title) {
	color: inherit;
}

.mx-site-footer a {
	color: var(--wp--preset--color--white);
}

.mx-site-footer a:hover,
.mx-site-footer a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.mx-site-footer .wp-block-navigation a:hover,
.mx-site-footer .wp-block-navigation a:focus-visible {
	color: #a9e7c8;
}

.mx-post-card {
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--mx-radius-card);
	background: var(--wp--preset--color--white);
}

.mx-post-card > :not(.wp-block-post-featured-image) {
	margin-inline: var(--wp--preset--spacing--md);
}

.mx-post-card .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	border-radius: 0;
	object-fit: cover;
	transition: transform var(--mx-duration) var(--mx-ease);
}

.mx-content-shell {
	padding-block: var(--wp--preset--spacing--xl);
}

.mx-page-title {
	padding-block: var(--wp--preset--spacing--lg);
	border-radius: var(--mx-radius-section);
	background: radial-gradient(circle at 88% 8%, rgba(226, 169, 69, 0.2), transparent 28%), var(--wp--preset--color--soft);
}

.wp-block-comments {
	margin-block-start: var(--wp--preset--spacing--xl);
}

.wp-block-comment-template li {
	margin-block: var(--wp--preset--spacing--md);
	padding: var(--wp--preset--spacing--md);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--mx-radius-card);
}

.wp-block-query-pagination {
	margin-block-start: var(--wp--preset--spacing--lg);
}

.wp-block-query-pagination a,
.wp-block-query-pagination .current {
	min-width: 44px;
	min-height: 44px;
	box-sizing: border-box;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	text-decoration: none;
}

.wp-block-query-pagination .current {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--soft);
	color: var(--wp--preset--color--primary-dark);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.mx-card:hover,
	.is-style-mam-xanh-leaf-card:hover,
	.mx-post-card:hover {
		box-shadow: var(--mx-shadow-lifted);
		transform: translateY(-3px);
	}

	.wp-element-button:hover,
	.wp-block-button__link:hover {
		transform: translateY(-1px);
	}

	.mx-card:hover .wp-block-image img,
	.mx-post-card:hover .wp-block-post-featured-image img {
		transform: scale(1.02);
	}

	.mx-site-header .wp-block-navigation-item__content:hover::after,
	.mx-site-header .wp-block-navigation-item__content:focus-visible::after {
		transform: scaleX(1);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.wp-element-button:active,
	.wp-block-button__link:active,
	.wp-block-search__button:active {
		transform: translateY(1px) scale(0.98);
	}

	.mx-hero__art {
		animation: mx-breathe 2.8s var(--mx-ease) 350ms 2 alternate both;
	}
}

@keyframes mx-breathe {
	from { transform: translateY(0) rotate(-0.3deg); }
	to { transform: translateY(-6px) rotate(0.3deg); }
}

@media (max-width: 900px) {
	.mx-header-actions {
		display: none !important;
	}

	.mx-hero,
	.mx-hero__inner {
		min-height: auto;
	}

	.mx-hero__inner {
		padding-block: var(--wp--preset--spacing--lg);
	}

	.mx-hero::before {
		width: 70vw;
		height: 78vw;
		opacity: 0.22;
	}
}

@media (max-width: 781px) {
	.admin-bar .mx-site-header {
		top: 46px;
	}

	.mx-site-header {
		position: relative;
	}

	.admin-bar .mx-site-header {
		top: 0;
	}

	.mx-header-bar {
		min-height: 64px;
	}

	.mx-hero__art {
		max-width: 480px;
		margin-inline: auto;
	}

	.mx-trust-strip {
		margin-block-start: -1rem;
	}

	.mx-section--soft,
	.mx-section--cream,
	.mx-page-title {
		border-radius: 20px;
	}

	.mx-section-heading.is-layout-flex {
		align-items: flex-start;
		flex-direction: column;
	}

	.mx-site-footer .has-text-align-right {
		text-align: left;
	}

	.mx-site-footer .is-vertical.is-content-justification-right {
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	:root {
		--mx-radius-card: 16px;
		--mx-radius-section: 20px;
	}

	.mx-hero h1 {
		font-size: clamp(2.2rem, 13vw, 3.2rem);
	}

	.mx-site-header .mx-brand .wp-block-site-title {
		max-width: 48vw;
	}

	.mx-hero__lead {
		font-size: 1.05rem;
	}

	.mx-hero .wp-block-buttons,
	.mx-hero .wp-block-button {
		width: 100%;
	}

	.mx-hero .wp-block-button__link {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media (forced-colors: active) {
	.mx-card,
	.mx-trust-strip,
	.mx-process-step,
	.mx-purchase-guide__item,
	.is-style-mam-xanh-story-bubble {
		border: 1px solid CanvasText;
	}

	:where(a, button, input, select, summary, textarea, [tabindex]):focus-visible {
		outline-color: Highlight;
	}
}
