/* ----------------------------------------------------------------------------------------- */
/* --------------------------------- MIRAI BRAND FOUNDATION -------------------------------- */
/* ----------------------------------------------------------------------------------------- */
/*
 * Brand tokens, fonts and a few shared primitives for the new identity, taken
 * from the "Homepage Mirai Livros" design (oklch values converted to hex so
 * older browsers render them identically).
 *
 * Everything here is namespaced with "mx-" and nothing targets existing
 * elements, so loading this file on its own changes nothing on screen: the
 * fonts are only downloaded once an element actually uses them. The new
 * header/footer opt in by using these classes. The rest of the site
 * (pages, product page, checkout) keeps the current look until a later,
 * separate restyle.
 *
 * Breakpoints used by the mx- components (custom properties can't be used
 * inside media queries, so they're listed here instead):
 *   1199px — header switches to the hamburger layout (tablets in landscape included)
 *   1024px — footer: about on its own row, other columns in 3
 *    767px — footer columns in 2
 *    480px — footer columns in 1
 */

/* ----------------------------------------------------------------------------------------- */
/* ---------------------------------------- FONTS ------------------------------------------ */
/* ----------------------------------------------------------------------------------------- */
/* Fonts are SIL OFL 1.1 (licenses in fonts/brand/). IBM Plex Sans is a lossless
   TTF -> WOFF2 conversion: it is not subset, because "Plex" is a Reserved Font Name.
   Calistoga has no reserved name and is subset to Latin + punctuation. */
@font-face {
	font-family: "IBM Plex Sans";
	src: url("../../fonts/brand/IBMPlexSans-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Sans";
	src: url("../../fonts/brand/IBMPlexSans-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Sans";
	src: url("../../fonts/brand/IBMPlexSans-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Sans";
	src: url("../../fonts/brand/IBMPlexSans-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Calistoga";
	src: url("../../fonts/brand/Calistoga-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------------------------------------- */
/* ---------------------------------------- TOKENS ----------------------------------------- */
/* ----------------------------------------------------------------------------------------- */
/* --mx- prefix keeps these apart from the existing --mh- variables used by home.php. */
:root {
	/* Brand */
	--mx-blue: #155DD5;
	--mx-blue-dark: #0E3F94;
	--mx-blue-light: #7FA8EA;
	--mx-blue-pill: #CFEBFF;
	--mx-star: #F5B301;

	/* Ink & text */
	--mx-ink: #182129;
	--mx-text: #182129;
	--mx-text-muted: #3D4A56;
	--mx-white: #FFFFFF;

	/* Light surfaces */
	--mx-surface: #F5F9FC;
	--mx-surface-alt: #EBF3FC;
	--mx-surface-soft: #ECF3FA;
	--mx-border: #DAE2EB;
	--mx-separator: #B9BEC4;

	/* Dark surfaces (footer, "Como pedir") */
	--mx-dark: #182129;
	--mx-dark-card: #182029;
	--mx-dark-border: #2B343D;
	--mx-dark-rule: #333C45;
	--mx-dark-divider: #3B434D;
	--mx-dark-outline: #404952;
	--mx-on-dark: #E0E5EB;
	--mx-on-dark-link: #D3D8DE;
	--mx-on-dark-muted: #B3B8BE;
	--mx-on-dark-label: #9A9FA5;
	--mx-on-dark-faint: #8B9095;
	--mx-on-dark-blue: #A5BAD1;
	--mx-on-dark-blue-soft: #B0C0D1;
	--mx-on-blue-soft: #D6E7F8;

	/* Typography */
	--mx-font-sans: "IBM Plex Sans", Arial, Helvetica, sans-serif;
	--mx-font-display: "Calistoga", Georgia, serif;

	/* Shape & layout */
	--mx-radius-sm: 6px;
	--mx-radius: 8px;
	--mx-radius-lg: 16px;
	--mx-radius-xl: 32px;
	--mx-radius-pill: 999px;
	--mx-container: 1180px;
	--mx-gutter: 32px;
	--mx-header-height: 72px;
	--mx-z-header: 1030; /* above Bootstrap dropdowns, below modals and the cookie banner (2000) */
	--mx-transition: 0.2s ease-in-out;
}

@media (max-width: 576px) {
	:root {
		--mx-gutter: 16px;
		--mx-header-height: 64px;
	}
}

/* ----------------------------------------------------------------------------------------- */
/* ------------------------------------ BASE (OPT-IN) -------------------------------------- */
/* ----------------------------------------------------------------------------------------- */
/* Applied to the root of the new header and footer only, so the brand font
   doesn't leak into page content (the "header/footer only" decision). */
.mx-brand {
	font-family: var(--mx-font-sans);
	font-weight: 400;
	line-height: 1.55;
	color: var(--mx-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.mx-brand *,
.mx-brand *::before,
.mx-brand *::after {
	box-sizing: border-box;
}

.mx-container {
	width: 100%;
	max-width: calc(var(--mx-container) + 2 * var(--mx-gutter));
	margin: 0 auto;
	padding: 0 var(--mx-gutter);
}

.mx-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ----------------------------------------------------------------------------------------- */
/* --------------------------------------- BUTTONS ----------------------------------------- */
/* ----------------------------------------------------------------------------------------- */
.mx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 28px;
	border: 1.5px solid transparent;
	border-radius: var(--mx-radius);
	font-family: var(--mx-font-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--mx-transition), color var(--mx-transition), border-color var(--mx-transition);
}

.mx-btn:focus-visible {
	outline: 3px solid var(--mx-blue-light);
	outline-offset: 2px;
}

/* Solid blue — on light backgrounds */
.mx-btn--primary {
	background-color: var(--mx-blue);
	border-color: var(--mx-blue);
	color: var(--mx-white);
}

.mx-btn--primary:hover {
	background-color: var(--mx-blue-dark);
	border-color: var(--mx-blue-dark);
	color: var(--mx-white);
}

/* White outline — on the blue header / blue CTA band */
.mx-btn--outline-light {
	background-color: transparent;
	border-color: var(--mx-white);
	color: var(--mx-white);
}

.mx-btn--outline-light:hover {
	background-color: var(--mx-white);
	color: var(--mx-blue);
}

/* Solid white — on blue backgrounds */
.mx-btn--light {
	background-color: var(--mx-white);
	border-color: var(--mx-white);
	color: var(--mx-blue);
}

.mx-btn--light:hover {
	background-color: var(--mx-surface-alt);
	border-color: var(--mx-surface-alt);
	color: var(--mx-blue-dark);
}

/* Ink outline — on light backgrounds */
.mx-btn--outline-dark {
	background-color: transparent;
	border-color: var(--mx-ink);
	color: var(--mx-ink);
}

.mx-btn--outline-dark:hover {
	background-color: var(--mx-ink);
	color: var(--mx-white);
}

/* Solid ink — on light / patterned backgrounds */
.mx-btn--dark {
	background-color: var(--mx-ink);
	border-color: var(--mx-ink);
	color: var(--mx-white);
}

.mx-btn--dark:hover {
	background-color: var(--mx-blue-dark);
	border-color: var(--mx-blue-dark);
	color: var(--mx-white);
}

@media (prefers-reduced-motion: reduce) {
	.mx-btn {
		transition: none;
	}
}

/* ----------------------------------------------------------------------------------------- */
/* ---------------------------------------- HEADER ----------------------------------------- */
/* ----------------------------------------------------------------------------------------- */
/* Markup: template-parts/content-topo.php — behaviour: assets/js/header.js */
.mx-header {
	position: sticky;
	top: 0;
	z-index: var(--mx-z-header);
	background-color: var(--mx-blue);
	color: var(--mx-white);
	transition: box-shadow var(--mx-transition);
}

/* Logged-in users: sit below the WP admin bar (fixed above 600px, scrolls away below) */
.admin-bar .mx-header {
	top: 32px;
}

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

@media (max-width: 600px) {
	.admin-bar .mx-header {
		top: 0;
	}
}

.mx-header.is-scrolled {
	box-shadow: 0 2px 14px rgba(24, 33, 41, 0.22);
}

.mx-header__bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--mx-header-height);
}

.mx-header .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* ---------- Logo ---------- */
.mx-header__logo {
	flex: 0 0 auto;
	display: flex;
	line-height: 0;
}

.mx-header__logo img {
	display: block;
	width: auto;
	height: 48px;
}

/* The header gets a wider container than page content so a 6–7 item menu fits
   on one line next to the logo, icons and button */
.mx-header .mx-container {
	max-width: calc(1300px + 2 * var(--mx-gutter));
}

/* ---------- Main menu (desktop) ---------- */
/* .mx-header prefix: must beat the later .mx-header__icon-btn / .mx-btn display rules */
.mx-header .mx-header__burger,
.mx-header .mx-header__cta--panel {
	display: none;
}

.mx-header__panel {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.mx-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mx-menu li {
	position: relative;
	margin: 0;
}

.mx-menu a {
	display: inline-flex;
	align-items: center;
	padding: 8px 0;
	border-bottom: 2px solid transparent;
	color: var(--mx-white);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
	text-decoration: none;
	transition: border-color var(--mx-transition), color var(--mx-transition), background-color var(--mx-transition);
}

.mx-menu > li > a:hover,
.mx-menu > li > a:focus-visible {
	color: var(--mx-white);
	border-bottom-color: rgba(255, 255, 255, 0.55);
}

.mx-menu > .current-menu-item > a,
.mx-menu > .current-menu-ancestor > a,
.mx-menu > .current_page_parent > a {
	border-bottom-color: var(--mx-white);
}

.mx-menu a:focus-visible {
	outline: 2px solid var(--mx-white);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Parent items get a small chevron */
.mx-menu > .menu-item-has-children > a::after {
	content: "";
	width: 6px;
	height: 6px;
	margin: -3px 0 0 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

/* Sub-menus: opened by hover and by keyboard focus (:focus-within) */
.mx-menu .sub-menu {
	position: absolute;
	top: calc(100% + 18px); /* drops just below the blue bar */
	left: -16px;
	z-index: 2;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background-color: var(--mx-white);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(24, 33, 41, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--mx-transition), transform var(--mx-transition), visibility var(--mx-transition);
}

/* Invisible bridge over the gap so the mouse can travel from the link to the sub-menu */
.mx-menu .sub-menu::before {
	content: "";
	position: absolute;
	top: -18px;
	left: 0;
	right: 0;
	height: 18px;
}

.mx-menu li:hover > .sub-menu,
.mx-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mx-menu .sub-menu a {
	display: flex;
	padding: 9px 12px;
	border: 0;
	border-radius: var(--mx-radius);
	color: var(--mx-ink);
	font-size: 14px;
	white-space: normal;
}

.mx-menu .sub-menu a:hover,
.mx-menu .sub-menu a:focus-visible,
.mx-menu .sub-menu .current-menu-item > a {
	background-color: var(--mx-surface-alt);
	color: var(--mx-blue);
}

.mx-menu .sub-menu a:focus-visible {
	outline: 2px solid var(--mx-blue);
	outline-offset: 0;
}

/* ---------- Actions: search / account / cart / CTA ---------- */
.mx-header__actions {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 4px;
}

.mx-header__item {
	position: relative;
}

.mx-header__icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: transparent;
	color: var(--mx-white);
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--mx-transition);
}

.mx-header__icon-btn:hover,
.mx-header__icon-btn[aria-expanded="true"] {
	background-color: rgba(255, 255, 255, 0.14);
	color: var(--mx-white);
}

.mx-header__icon-btn:focus-visible {
	outline: 3px solid var(--mx-blue-light);
	outline-offset: 1px;
}

/* Cart count — must stay a plain span.items (AJAX fragment in functions.php) */
.mx-header__cart .items {
	position: absolute;
	top: 3px;
	right: 0;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: var(--mx-radius-pill);
	background-color: var(--mx-white);
	color: var(--mx-blue);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
}

.mx-header__cta--bar {
	margin-left: 10px;
	padding: 10px 22px;
}

/* ---------- Dropdown panels (search, account) ---------- */
.mx-header__dropdown {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 3;
	padding: 16px;
	background-color: var(--mx-white);
	color: var(--mx-ink);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(24, 33, 41, 0.22);
}

.mx-header__dropdown[hidden] {
	display: none;
}

.mx-header__dropdown--search {
	width: 380px;
}

.mx-header__dropdown--account {
	width: 230px;
	padding: 12px;
}

/* searchform.php inside the search panel (overrides the old app.css look) */
.mx-header .search-form {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}

.mx-header .search-form label {
	display: flex;
	width: 100%;
	margin: 0;
}

.mx-header .search-form input[type="search"] {
	width: 100%;
	margin: 0;
	padding: 12px 48px 12px 14px;
	border: 1px solid var(--mx-border);
	border-radius: var(--mx-radius);
	background-color: var(--mx-surface);
	color: var(--mx-ink);
	font-family: var(--mx-font-sans);
	font-size: 15px;
	font-weight: 400;
}

.mx-header .search-form input[type="search"]:focus {
	border-color: var(--mx-blue);
	outline: 2px solid var(--mx-blue-pill);
	outline-offset: 0;
}

.mx-header .search-form button {
	position: absolute;
	top: 50%;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: var(--mx-radius);
	background-color: transparent;
	transform: translateY(-50%);
	cursor: pointer;
}

.mx-header .search-form button:hover {
	background-color: var(--mx-surface-alt);
}

.mx-header .icone-search {
	display: flex;
	width: 20px;
	height: 20px;
}

.mx-header .icone-search img {
	position: static;
	width: 20px;
	height: 20px;
}

/* Account panel */
.mx-account__greeting {
	margin: 4px 8px 8px;
	color: var(--mx-ink);
	font-size: 15px;
	font-weight: 600;
}

.mx-account__link {
	display: block;
	padding: 9px 8px;
	border-radius: var(--mx-radius);
	color: var(--mx-ink);
	font-size: 14.5px;
	text-decoration: none;
}

.mx-account__link:hover,
.mx-account__link:focus-visible {
	background-color: var(--mx-surface-alt);
	color: var(--mx-blue);
}

.mx-account__login {
	width: 100%;
	margin-top: 4px;
}

/* ---------- Small desktops (1200–1279px): tighten so the menu stays on one line ---------- */
@media (min-width: 1200px) and (max-width: 1279px) {
	.mx-header .mx-container {
		padding: 0 20px;
	}

	.mx-header__bar {
		gap: 16px;
	}

	.mx-header__logo img {
		height: 42px;
	}

	.mx-menu {
		gap: 0 12px;
	}

	.mx-menu a {
		font-size: 13.5px;
	}

	.mx-header__actions {
		gap: 0;
	}

	.mx-header__cta--bar {
		margin-left: 6px;
		padding: 9px 14px;
		font-size: 14px;
	}
}

/* ---------- Tablet / mobile (≤1199px): hamburger menu ---------- */
@media (max-width: 1199px) {
	.mx-header__bar {
		gap: 6px;
	}

	.mx-header .mx-header__burger {
		display: inline-flex;
		margin-left: -10px;
	}

	.mx-header__burger-open {
		display: inline-flex;
	}

	.mx-header__burger-close,
	.mx-header.is-nav-open .mx-header__burger-open {
		display: none;
	}

	.mx-header.is-nav-open .mx-header__burger-close {
		display: inline-flex;
	}

	.mx-header__logo {
		margin-right: auto;
	}

	.mx-header__logo img {
		height: 40px;
	}

	/* Menu panel drops down under the bar */
	.mx-header__panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100vh - var(--mx-header-height));
		max-height: calc(100dvh - var(--mx-header-height));
		padding: 4px var(--mx-gutter) 24px;
		overflow-y: auto;
		background-color: var(--mx-blue);
		border-top: 1px solid rgba(255, 255, 255, 0.18);
		box-shadow: 0 14px 24px rgba(24, 33, 41, 0.22);
	}

	.mx-header.is-nav-open .mx-header__panel {
		display: block;
	}

	.mx-menu {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 0;
	}

	.mx-menu a {
		display: flex;
		padding: 14px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.16);
		font-size: 16px;
		white-space: normal;
	}

	.mx-menu > li > a:hover,
	.mx-menu > li > a:focus-visible {
		border-bottom-color: rgba(255, 255, 255, 0.16);
		background-color: rgba(255, 255, 255, 0.06);
	}

	.mx-menu > .current-menu-item > a,
	.mx-menu > .current-menu-ancestor > a,
	.mx-menu > .current_page_parent > a {
		border-bottom-color: rgba(255, 255, 255, 0.16);
		font-weight: 600;
	}

	.mx-menu > .menu-item-has-children > a::after {
		display: none;
	}

	/* Sub-menus are simply listed, indented, under their parent */
	.mx-menu .sub-menu::before {
		display: none;
	}

	.mx-menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 16px;
		background-color: transparent;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.mx-menu .sub-menu a {
		padding: 12px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 0;
		color: var(--mx-white);
		font-size: 15px;
	}

	.mx-menu .sub-menu a:hover,
	.mx-menu .sub-menu a:focus-visible,
	.mx-menu .sub-menu .current-menu-item > a {
		background-color: rgba(255, 255, 255, 0.06);
		color: var(--mx-white);
	}

	.mx-header .mx-header__cta--panel {
		display: flex;
		width: 100%;
		margin-top: 20px;
	}

	.mx-header__cta--bar {
		display: none;
	}

	/* Search / account panels span the screen width under the bar */
	.mx-header__actions,
	.mx-header__item {
		position: static;
	}

	.mx-header__dropdown {
		top: calc(100% + 8px);
		left: 8px;
		right: 8px;
		width: auto;
	}

	html.mx-nav-open {
		overflow: hidden;
	}
}

@media (max-width: 380px) {
	.mx-header__logo img {
		height: 34px;
	}

	.mx-header__icon-btn {
		width: 40px;
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mx-header,
	.mx-menu a,
	.mx-menu .sub-menu,
	.mx-header__icon-btn {
		transition: none;
	}
}

/* ----------------------------------------------------------------------------------------- */
/* ---------------------------------------- FOOTER ----------------------------------------- */
/* ----------------------------------------------------------------------------------------- */
/* Markup: footer.php */
.mx-footer {
	padding: 48px 0 20px;
	background-color: var(--mx-dark);
	color: var(--mx-on-dark);
	font-size: 14.5px;
}

.mx-footer__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr 0.7fr 0.8fr;
	gap: 40px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--mx-dark-rule);
}

.mx-footer a {
	color: var(--mx-on-dark-link);
	text-decoration: none;
	transition: color var(--mx-transition);
}

.mx-footer a:hover {
	color: var(--mx-white);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mx-footer a:focus-visible {
	outline: 2px solid var(--mx-blue-light);
	outline-offset: 2px;
	border-radius: 2px;
}

.mx-footer__title {
	margin: 0 0 14px;
	color: var(--mx-on-dark-label);
	font-family: var(--mx-font-sans);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mx-footer__title--spaced {
	margin-top: 28px;
}

/* ---------- About column ---------- */
.mx-footer__logo {
	display: inline-flex;
	margin-bottom: 16px;
	line-height: 0;
}

.mx-footer__logo img {
	display: block;
	width: auto;
	height: 100px;
}

.mx-footer__about {
	max-width: 320px;
	margin: 0 0 24px;
	color: var(--mx-on-dark-muted);
	font-size: 14px;
	line-height: 1.6;
}

.mx-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mx-footer .mx-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--mx-dark-outline);
	border-radius: 50%;
	color: var(--mx-white);
	transition: background-color var(--mx-transition), border-color var(--mx-transition);
}

.mx-footer .mx-footer__social a:hover {
	background-color: var(--mx-blue);
	border-color: var(--mx-blue);
	text-decoration: none;
}

.mx-footer .mx-footer__social a:focus-visible {
	border-radius: 50%;
}

/* ---------- Contact & navigation columns ---------- */
.mx-footer__contact,
.mx-footer__links {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mx-footer__contact {
	gap: 12px;
}

.mx-footer__links {
	gap: 10px;
}

.mx-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.55;
	overflow-wrap: break-word;
}

.mx-footer__contact .mx-icon {
	flex: 0 0 17px;
	margin-top: 3px;
	color: var(--mx-blue-light);
}

.mx-footer__links li {
	margin: 0;
}

/* ---------- Security seals & payment methods ---------- */
/* The SVGs in assets/img/footer/ already are white cards with a border, so the
   chip only sizes and rounds them (the design's white chips, without extra padding) */
.mx-footer__chip {
	display: inline-flex;
	overflow: hidden;
	line-height: 0;
	border-radius: var(--mx-radius-sm);
}

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

.mx-footer__seals {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.mx-footer__chip--seal {
	width: 150px;
	height: 53px;
}

.mx-footer__payments {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 170px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mx-footer__payments .mx-footer__chip {
	width: 50px;
	height: 45px;
}

/* ---------- Bottom bar ---------- */
.mx-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 16px;
	padding-right: 90px; /* keeps the text clear of the floating WhatsApp button */
	color: var(--mx-on-dark-faint);
	font-size: 13px;
}

/* ---------- Floating WhatsApp button (same position as before) ---------- */
.mx-whatsapp {
	position: fixed;
	right: 12px;
	bottom: 12px;
	z-index: 1020; /* under the sticky header (1030) and the cookie banner (2000) */
	display: block;
	line-height: 0;
	transition: transform var(--mx-transition);
}

.mx-whatsapp img {
	display: block;
	width: 70px;
	height: auto;
}

.mx-whatsapp:hover {
	transform: scale(1.06);
}

.mx-whatsapp:focus-visible {
	outline: 3px solid var(--mx-blue-light);
	outline-offset: 2px;
	border-radius: 8px;
}

/* ---------- Footer responsive ---------- */
@media (max-width: 1024px) {
	.mx-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 32px;
	}

	.mx-footer__col--about {
		grid-column: 1 / -1;
	}

	.mx-footer__about {
		max-width: 520px;
	}
}

@media (max-width: 767px) {
	.mx-footer {
		padding-top: 40px;
	}

	.mx-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 24px;
	}

	.mx-footer__logo img {
		height: 80px;
	}
}

@media (max-width: 480px) {
	.mx-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mx-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		padding-right: 68px;
	}

	.mx-whatsapp img {
		width: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mx-footer a,
	.mx-footer .mx-footer__social a,
	.mx-whatsapp {
		transition: none;
	}

	.mx-whatsapp:hover {
		transform: none;
	}
}

/* ----------------------------------------------------------------------------------------- */
/* ----------------------------------- COOKIE BANNER (LGPD) -------------------------------- */
/* ----------------------------------------------------------------------------------------- */
/* Markup + accept script: mirai_cookie_consent_banner() in functions.php */
.mirai-cookie-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2000;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 16px max(var(--mx-gutter), calc((100% - var(--mx-container)) / 2));
	background-color: var(--mx-dark);
	color: var(--mx-on-dark);
	border-top: 1px solid var(--mx-dark-rule);
	box-shadow: 0 -4px 18px rgba(24, 33, 41, 0.28);
	font-size: 14px;
	line-height: 1.55;
}

.mirai-cookie-consent[hidden] {
	display: none;
}

.mirai-cookie-consent a {
	color: var(--mx-blue-light);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mirai-cookie-consent a:hover {
	color: var(--mx-white);
}

.mirai-cookie-consent__text {
	flex: 1 1 320px;
	max-width: 75ch;
}

.mirai-cookie-consent__accept {
	padding: 10px 28px;
}

@media (max-width: 576px) {
	.mirai-cookie-consent {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	/* In a column the 320px flex-basis would become a 320px height */
	.mirai-cookie-consent__text {
		flex: 0 0 auto;
	}
}
