/*
 * Footer. Layout follows the "footer-de-xuat" reference; the content stays in the template part
 * (Site Editor) and in the three footer menus, this file only controls presentation.
 * No font is declared here on purpose: every piece of text inherits the site's own typeface.
 */

.mnn-footer {
	--mnn-footer-line: rgba(255, 255, 255, 0.09);
	--mnn-footer-text: rgba(255, 255, 255, 0.72);
	--mnn-footer-muted: rgba(255, 255, 255, 0.55);
	position: relative;
	background-color: #1e0c11;
	color: var(--mnn-footer-text);
	line-height: 1.55;
}

.mnn-footer p {
	margin: 0;
}

.mnn-footer a {
	color: inherit;
	text-decoration: none;
}

.mnn-footer a:focus-visible,
.mnn-footer button:focus-visible,
.mnn-to-top:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold-light);
	outline-offset: 2px;
}

/* ---------- Advice strip: half above the footer, in a gap the footer reserves for it ---------- */

.mnn-footer:has(> .mnn-footer__cta) {
	margin-top: 64px;
}

.mnn-footer__cta {
	position: relative;
	z-index: 1;
	margin-bottom: -24px;
	transform: translateY(-50%);
}

.mnn-footer__cta-box {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 22px 28px 22px 102px;
	border-radius: 18px;
	background: var(--wp--preset--gradient--brand-maroon);
	box-shadow: 0 18px 40px rgba(58, 7, 16, 0.35);
	color: var(--wp--preset--color--white);
	overflow: hidden;
}

/* Headset tile. */
.mnn-footer__cta-box::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 28px;
	width: 54px;
	height: 54px;
	margin-top: -27px;
	border-radius: 14px;
	background: rgba(212, 175, 90, 0.18) url(../icons/support-headset.svg) center / 26px 24px no-repeat;
}

/* Decorative ring. */
.mnn-footer__cta-box::after {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 220px;
	height: 220px;
	box-sizing: border-box;
	border: 36px solid rgba(212, 175, 90, 0.12);
	border-radius: 50%;
	pointer-events: none;
}

.mnn-footer .mnn-footer__cta-box > * {
	margin-block: 0;
}

.mnn-footer__cta-text {
	flex: 1;
	min-width: 0;
}

.mnn-footer .mnn-footer__cta-text > * {
	margin-block: 0;
}

.mnn-footer__cta-text > .wp-block-heading {
	color: var(--wp--preset--color--gold-light);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.mnn-footer .mnn-footer__cta-text > p {
	margin-top: 2px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
}

.mnn-footer__cta-actions {
	position: relative;
	z-index: 1;
	display: flex;
	flex: none;
	gap: 10px;
}

.mnn-footer .mnn-footer__cta-actions > * {
	margin-block: 0;
}

.mnn-footer .mnn-footer__button a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 22px;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.mnn-footer__button a::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}

.mnn-footer .mnn-footer__button--call a {
	background-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--maroon-deep);
}

.mnn-footer__button--call a::before {
	-webkit-mask-image: url(../icons/support-phone.svg);
	mask-image: url(../icons/support-phone.svg);
}

.mnn-footer .mnn-footer__button--call a:hover {
	background-color: var(--wp--preset--color--gold-light);
}

.mnn-footer .mnn-footer__button--zalo a {
	border-color: rgba(255, 255, 255, 0.3);
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--white);
}

.mnn-footer__button--zalo a::before {
	-webkit-mask-image: url(../icons/support-chat.svg);
	mask-image: url(../icons/support-chat.svg);
}

.mnn-footer .mnn-footer__button--zalo a:hover {
	background-color: rgba(255, 255, 255, 0.18);
}

/* ---------- Main part: brand column and three link columns ---------- */

.mnn-footer__main {
	padding-top: 40px;
	padding-bottom: 0;
}

/* Without the advice strip (a page that has its own) the footer starts with its normal padding. */
.mnn-footer > .mnn-footer__main:first-child {
	padding-top: 56px;
}

.mnn-footer__columns {
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 44px;
}

.mnn-footer .mnn-footer__main > *,
.mnn-footer .mnn-footer__columns > *,
.mnn-footer .mnn-footer__col > * {
	margin-block: 0;
}

.mnn-footer__brand {
	gap: 14px;
}

.mnn-footer__brand .wp-block-site-logo {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: var(--wp--custom--radius--md);
	overflow: hidden;
}

.mnn-footer__brand .wp-block-site-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mnn-footer__brand-text {
	min-width: 0;
}

.mnn-footer .mnn-footer__brand-text > * {
	margin-block: 0;
}

.mnn-footer__brand-text .wp-block-site-title {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.15;
}

.mnn-footer .mnn-footer__brand-text .wp-block-site-title a {
	color: var(--wp--preset--color--gold);
}

.mnn-footer .mnn-footer__brand-text .wp-block-site-tagline {
	margin-top: 2px;
	color: var(--mnn-footer-muted);
	font-size: 11px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.mnn-footer .mnn-footer__col > .mnn-footer__about {
	margin-top: 18px;
	font-size: 14px;
}

.mnn-footer .mnn-footer__col > .mnn-footer__contact {
	display: grid;
	gap: 12px;
	margin-top: 20px;
	padding: 0;
	list-style: none;
}

.mnn-footer__contact-item {
	position: relative;
	margin: 0;
	padding-left: 30px;
	font-size: 14px;
	line-height: 1.5;
}

.mnn-footer__contact-item::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 18px;
	height: 18px;
	background-color: var(--wp--preset--color--gold);
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}

.mnn-footer__contact-item--phone::before {
	-webkit-mask-image: url(../icons/footer-phone.svg);
	mask-image: url(../icons/footer-phone.svg);
}

.mnn-footer__contact-item--mail::before {
	-webkit-mask-image: url(../icons/footer-mail.svg);
	mask-image: url(../icons/footer-mail.svg);
}

.mnn-footer__contact-item--pin::before {
	-webkit-mask-image: url(../icons/footer-pin.svg);
	mask-image: url(../icons/footer-pin.svg);
}

.mnn-footer__contact-item--support::before {
	-webkit-mask-image: url(../icons/footer-support.svg);
	mask-image: url(../icons/footer-support.svg);
}

.mnn-footer .mnn-footer__contact-item a,
.mnn-footer__contact-item strong {
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

/* Hotline: the label on its own small line, the number large below it. */
.mnn-footer__contact-item--phone {
	color: var(--mnn-footer-muted);
	font-size: 12px;
}

.mnn-footer .mnn-footer__contact-item--phone a {
	display: block;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.mnn-footer__contact-item--phone strong {
	font-weight: 700;
}

.mnn-footer .mnn-footer__contact-item a:hover {
	color: var(--wp--preset--color--gold-light);
}

/* Column title with the short gold rule. */
.mnn-footer__col > .wp-block-heading {
	position: relative;
	padding-bottom: 12px;
	color: var(--wp--preset--color--white);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.mnn-footer__col > .wp-block-heading::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 32px;
	height: 2px;
	border-radius: 2px;
	background-color: var(--wp--preset--color--gold);
}

/* The title's text sits in a button (footer.js); on wide screens it is only a title. */
.mnn-footer__toggle {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	cursor: default;
}

.mnn-footer__toggle:disabled {
	color: inherit;
	opacity: 1;
}

.mnn-footer .mnn-footer__col > .mnn-footer__links {
	display: grid;
	gap: 11px;
	margin-top: 16px;
	padding: 0;
	list-style: none;
}

.mnn-footer__links li {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
}

.mnn-footer .mnn-footer__links a {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	color: var(--mnn-footer-text);
	transition: color 0.2s ease, transform 0.2s ease;
}

.mnn-footer__links a::before {
	content: "";
	flex: none;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: rgba(212, 175, 90, 0.5);
	transform: translateY(-2px);
	transition: background-color 0.2s ease;
}

.mnn-footer .mnn-footer__links a:hover,
.mnn-footer .mnn-footer__links a:focus-visible {
	color: var(--wp--preset--color--gold-light);
	transform: translateX(3px);
}

.mnn-footer__links a:hover::before,
.mnn-footer__links a:focus-visible::before {
	background-color: var(--wp--preset--color--gold);
}

/* ---------- Trust strip (printed only when WooCommerce has something to list) ---------- */

.mnn-footer__trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 40px;
	padding: 24px 0;
	border-top: 1px solid var(--mnn-footer-line);
}

.mnn-footer .mnn-footer__trust-label {
	margin-bottom: 10px;
	color: var(--mnn-footer-muted);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mnn-footer__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mnn-footer__chip {
	display: inline-flex;
	align-items: center;
	height: 34px;
	margin: 0;
	padding: 0 12px;
	border-radius: 8px;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	font-size: 12px;
	font-weight: 700;
}

/* ---------- Copyright bar ---------- */

.mnn-footer__bottom {
	padding-top: 18px;
	padding-bottom: 18px;
	border-top: 1px solid var(--mnn-footer-line);
	background-color: #170910;
	color: var(--mnn-footer-muted);
}

.mnn-footer__bottom-row {
	gap: 8px 20px;
}

.mnn-footer .mnn-footer__bottom-row > p {
	font-size: 13px;
	line-height: 1.5;
}

/* ---------- Quick bar on phones ---------- */

.mnn-footer__mbar {
	display: none;
}

/* ---------- Back to top ---------- */

.mnn-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 18;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background-color: var(--wp--preset--color--gold);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	color: var(--wp--preset--color--maroon-deep);
	transition: background-color 0.2s ease;
}

.mnn-to-top[hidden] {
	display: none;
}

.mnn-to-top::before {
	content: "";
	width: 10px;
	height: 10px;
	margin-top: 5px;
	border-top: 2.5px solid currentColor;
	border-left: 2.5px solid currentColor;
	transform: rotate(45deg);
}

.mnn-to-top:hover {
	background-color: var(--wp--preset--color--gold-light);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.mnn-footer__columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 36px;
	}

	.mnn-footer__col--about {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px 40px;
		align-items: start;
	}

	.mnn-footer .mnn-footer__col--about > .mnn-footer__about {
		grid-column: 1;
		margin-top: 10px;
	}

	.mnn-footer .mnn-footer__col--about > .mnn-footer__contact {
		grid-column: 2;
		grid-row: 1 / span 2;
		margin-top: 0;
	}
}

@media (max-width: 768px) {
	.mnn-footer:has(> .mnn-footer__cta) {
		margin-top: 0;
	}

	.mnn-footer__cta {
		margin-bottom: 0;
		padding-top: 28px;
		transform: none;
	}

	.mnn-footer__cta-box {
		flex-direction: column;
		align-items: stretch;
		padding: 22px;
	}

	.mnn-footer__cta-box::before {
		position: static;
		margin-top: 0;
	}

	.mnn-footer__cta-actions {
		flex-direction: column;
	}

	.mnn-footer__main {
		padding-top: 32px;
	}

	.mnn-footer > .mnn-footer__main:first-child {
		padding-top: 40px;
	}

	.mnn-footer__columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding-bottom: 16px;
	}

	.mnn-footer__col--about {
		display: block;
		padding-bottom: 28px;
	}

	.mnn-footer .mnn-footer__col--about > .mnn-footer__about {
		margin-top: 18px;
	}

	.mnn-footer .mnn-footer__col--about > .mnn-footer__contact {
		margin-top: 20px;
	}

	/* Link columns: one under the other; with footer.js they fold. */
	.mnn-footer__col:not(.mnn-footer__col--about) {
		padding: 16px 0 18px;
		border-top: 1px solid var(--mnn-footer-line);
	}

	.mnn-footer.is-accordion .mnn-footer__col:not(.mnn-footer__col--about) {
		padding: 0;
	}

	.mnn-footer.is-accordion .mnn-footer__col > .wp-block-heading {
		padding-bottom: 0;
	}

	.mnn-footer.is-accordion .mnn-footer__col > .wp-block-heading::after {
		display: none;
	}

	.mnn-footer.is-accordion .mnn-footer__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 16px 0;
		cursor: pointer;
	}

	.mnn-footer.is-accordion .mnn-footer__toggle::after {
		content: "";
		flex: none;
		width: 8px;
		height: 8px;
		margin: -4px 5px 0 0;
		border-right: 2px solid var(--wp--preset--color--gold);
		border-bottom: 2px solid var(--wp--preset--color--gold);
		transform: rotate(45deg);
		transition: transform 0.2s ease;
	}

	.mnn-footer.is-accordion .mnn-footer__col.is-open .mnn-footer__toggle::after {
		margin-top: 4px;
		transform: rotate(-135deg);
	}

	.mnn-footer.is-accordion .mnn-footer__col:not(.is-open) > .mnn-footer__links {
		display: none;
	}

	.mnn-footer.is-accordion .mnn-footer__col > .mnn-footer__links {
		margin-top: 0;
		padding-bottom: 18px;
	}

	.mnn-footer__trust {
		flex-direction: column;
		align-items: flex-start;
	}

	.mnn-footer__bottom-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Phones: the quick bar. The header's mobile menu (z-index 20 and above) opens over it. The product
   page keeps its own buy bar there, so the quick bar is not shown on it. */
@media (max-width: 599px) {
	body:not(.single-product) .mnn-footer__mbar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 18;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		padding-bottom: env(safe-area-inset-bottom, 0px);
		border-top: 1px solid var(--wp--preset--color--border);
		background-color: var(--wp--preset--color--white);
		box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
	}

	.mnn-footer .mnn-footer__mbar > * {
		margin-block: 0;
	}

	.mnn-footer .mnn-footer__mbar-item a {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2px;
		padding: 8px 4px;
		color: #3d434b;
		font-size: 11px;
		font-weight: 600;
		line-height: 16px;
	}

	.mnn-footer__mbar-item a::before {
		content: "";
		width: 20px;
		height: 20px;
		background-color: var(--wp--preset--color--maroon);
		-webkit-mask: center / contain no-repeat;
		mask: center / contain no-repeat;
	}

	.mnn-footer__mbar-item--menu a::before {
		-webkit-mask-image: url(../icons/tab-all.svg);
		mask-image: url(../icons/tab-all.svg);
		-webkit-mask-size: 16px 16px;
		mask-size: 16px 16px;
	}

	.mnn-footer__mbar-item--call a::before {
		-webkit-mask-image: url(../icons/support-phone.svg);
		mask-image: url(../icons/support-phone.svg);
	}

	.mnn-footer__mbar-item--zalo a::before {
		-webkit-mask-image: url(../icons/support-chat.svg);
		mask-image: url(../icons/support-chat.svg);
	}

	.mnn-footer .mnn-footer__mbar-item--call a {
		background-color: var(--wp--preset--color--maroon);
		color: var(--wp--preset--color--white);
	}

	.mnn-footer__mbar-item--call a::before {
		background-color: var(--wp--preset--color--gold);
	}

	/* Room for the bar under the copyright line, and the button above it. */
	body:not(.single-product) .mnn-footer:has(.mnn-footer__mbar) .mnn-footer__bottom {
		padding-bottom: calc(18px + 58px + env(safe-area-inset-bottom, 0px));
	}

	/* The last lines of the page stay clear of the "back to top" button. */
	.mnn-footer__bottom-row {
		padding-right: 60px;
	}

	body:not(.single-product) .mnn-to-top {
		right: 16px;
		bottom: calc(74px + env(safe-area-inset-bottom, 0px));
	}

	/* Product page: stay clear of its buy bar. */
	body.single-product .mnn-to-top {
		right: 16px;
		bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.mnn-footer a,
	.mnn-footer__links a::before,
	.mnn-footer__toggle::after,
	.mnn-to-top {
		transition: none;
	}

	.mnn-footer .mnn-footer__links a:hover,
	.mnn-footer .mnn-footer__links a:focus-visible {
		transform: none;
	}
}
