/**
 * Eletricx — cabeçalho global.
 * Medidas transcritas de design/HOME.pdf (canvas 1650px; o miolo de conteúdo
 * tem 1216px, aqui 1213px, a mesma largura das demais telas do site).
 *
 * Carregado no site inteiro, por isso só toca em classes com o prefixo `elx-`.
 */

.elx-head,
.elx-promo,
.elx-catbar {
	--elx-green: #54a07b;
	--elx-green-dark: #00392a;
	--elx-green-deep: #174133;
	--elx-green-hover: #478c6a;
	--elx-tint: #d9f1eb;
	--elx-ink: #1e1e1e;
	--elx-text: #3a3a3a;
	--elx-muted: #848484;
	--elx-line: #c9c9c9;
	--elx-soft: #eeeeee;
	--elx-radius: 15px;
	--elx-head-inner: 1213px;
	--elx-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--elx-display: "Urbanist", var(--elx-sans);
}

/* ---------------------------------------------------- barra promocional -- */

.elx-promo {
	--elx-promo-height: 75px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	min-height: var(--elx-promo-height);
	padding: 8px 56px;
	background: var(--elx-green-deep);
	border-top: 5px solid var(--elx-green);
	box-sizing: border-box;
}

.elx-promo__track {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.elx-promo__item {
	display: flex;
	align-items: center;
	gap: 24px;
	animation: elx-promo-in 0.35s ease;
}

.elx-promo__item[hidden] {
	display: none;
}

@keyframes elx-promo-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.elx-promo__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: right;
}

.elx-promo__title {
	font-family: var(--elx-sans);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	color: var(--elx-green);
}

.elx-promo__sub {
	font-family: var(--elx-sans);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.2;
	color: #fff;
}

.elx-promo__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 235px;
	min-height: 50px;
	padding: 0 20px;
	border-radius: var(--elx-radius);
	background: var(--elx-green);
	color: #fff;
	font-family: var(--elx-sans);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.18s ease;
}

.elx-promo__btn:hover,
.elx-promo__btn:focus-visible {
	background: var(--elx-green-hover);
	color: #fff;
}

.elx-promo__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.elx-promo__arrow::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 10px;
	height: 10px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
}

.elx-promo__arrow--prev {
	left: 12%;
}

.elx-promo__arrow--prev::before {
	transform: rotate(-135deg);
}

.elx-promo__arrow--next {
	right: 12%;
}

.elx-promo__arrow--next::before {
	transform: rotate(45deg);
}

.elx-promo__arrow:hover::before {
	border-color: var(--elx-tint);
}

/* ------------------------------------------------- barra de informações -- */

.elx-head-info {
	font-family: var(--elx-sans);
	font-size: 14px;
	line-height: 1.3;
	color: var(--elx-text);
}

.elx-head-info .elementor-icon-list-items {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
}

.elx-head-info .elementor-icon-list-item + .elementor-icon-list-item {
	border-left: 1px solid var(--elx-line);
}

.elx-head-info .elementor-icon-list-item > a,
.elx-head-info .elementor-icon-list-item > span {
	padding: 0 20px;
}

.elx-head-info a:hover {
	color: var(--elx-green);
}

/* --------------------------------------------------------- área principal -- */

.elx-head__search .dgwt-wcas-search-wrapp {
	max-width: none;
}

.elx-head__search .dgwt-wcas-search-input {
	height: 55px;
	border: 0;
	border-radius: var(--elx-radius);
	background: var(--elx-soft);
	font-family: var(--elx-sans);
	font-size: 15px;
	color: var(--elx-text);
}

.elx-head__search .dgwt-wcas-search-submit {
	border-radius: 10px;
	background: var(--elx-green);
}

/* Atalhos: favoritos e conta (widget "Caixa de ícone" do Elementor) */
.elx-head__action .elementor-icon-box-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
}

.elx-head__action .elementor-icon-box-icon {
	flex: 0 0 34px;
	width: 34px;
	margin: 0;
}

.elx-head__action .elementor-icon {
	font-size: 30px;
	line-height: 1;
	color: var(--elx-green);
}

.elx-head__action .elementor-icon svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

.elx-head__action .elementor-icon-box-content {
	min-width: 0;
}

.elx-head__action .elementor-icon-box-title {
	margin: 0;
	font-family: var(--elx-sans);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.25;
	color: var(--elx-text);
	white-space: nowrap;
}

.elx-head__action .elementor-icon-box-description {
	margin: 0;
	font-family: var(--elx-sans);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.25;
	color: var(--elx-text);
	white-space: nowrap;
}

.elx-head__action a:hover .elementor-icon-box-title,
.elx-head__action a:hover .elementor-icon-box-description {
	color: var(--elx-green);
}

/* Revisão 15/09 (item 4): a Caixa de ícone do Elementor só linka o ícone e o
   título; o link do título é esticado sobre o widget inteiro, então "Favoritos"
   e "crie sua conta aqui" também levam à página. A bolha de favoritos fica por
   cima para continuar legível. */
.elx-head__action {
	position: relative;
}

.elx-head__action .elementor-icon-box-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.elx-head__action .elx-wish-count {
	z-index: 2;
}

.elx-head__action:hover .elementor-icon-box-title,
.elx-head__action:hover .elementor-icon-box-description {
	color: var(--elx-green);
}

.elx-head__action:hover .elementor-icon-box-title a {
	color: var(--elx-green);
}

/* Carrinho: o widget nativo, só com a forma do layout.
   O invólucro do botão vem com margens negativas do Elementor e era a origem
   da rolagem horizontal de ~19px que aparecia em todas as páginas entre 768 e
   1100px. */
.elx-head__cart .elementor-menu-cart__toggle_wrapper {
	margin: 0;
	max-width: 100%;
}

.elx-head__cart .elementor-menu-cart__toggle {
	margin: 0;
	max-width: 100%;
}

/* ------------------------------------------------- gaveta do carrinho -- */
/* O widget está no modo "side-cart" do Elementor: a sobreposição, a animação
   de entrada, o fechar por clique fora e a atualização por AJAX são dele. Aqui
   só entra a aparência, na mesma linguagem do carrinho e do checkout. */

.elx-head__cart .elementor-menu-cart__container {
	z-index: 100000;
	background-color: rgba(0, 57, 42, 0.45);
	max-width: 100vw;
}

/* O `#site-header` do OceanWP tem `z-index: 100`, o que prendia a gaveta
   abaixo do botão flutuante do WhatsApp (1000). Só enquanto ela está aberta,
   o cabeçalho sobe acima dos flutuantes. */
#site-header:has(.elementor-menu-cart--shown) {
	z-index: 100000;
}

.elx-head__cart .elementor-menu-cart__main {
	--cart-padding: 0;
	width: 420px;
	max-width: 100vw;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: -12px 0 40px rgba(0, 57, 42, 0.18);
	font-family: var(--elx-sans);
	color: var(--elx-text);
}

/* Cabeçalho da gaveta: título à esquerda, fechar à direita. */
.elx-head__cart .elementor-menu-cart__main::before {
	content: "Seu carrinho";
	position: absolute;
	top: 22px;
	left: 24px;
	font-family: var(--elx-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 36px;
	color: var(--elx-ink);
}

.elx-head__cart .elementor-menu-cart__close-button {
	--cart-close-icon-size: 36px;
	flex: 0 0 auto;
	align-self: flex-end;
	width: 36px;
	height: 36px;
	margin: 22px 24px 0 0;
	border-radius: 50%;
	background: var(--elx-tint);
	transition: background-color 0.18s ease;
}

.elx-head__cart .elementor-menu-cart__close-button:hover {
	background: var(--elx-green);
}

.elx-head__cart .elementor-menu-cart__close-button::before,
.elx-head__cart .elementor-menu-cart__close-button::after {
	left: 25%;
	width: 50%;
	height: 2px;
	background: var(--elx-green);
}

.elx-head__cart .elementor-menu-cart__close-button:hover::before,
.elx-head__cart .elementor-menu-cart__close-button:hover::after {
	background: #fff;
}

.elx-head__cart .elementor-menu-cart__main .widget_shopping_cart_content {
	flex: 1 1 auto;
	min-height: 0;
	padding: 18px 24px 24px;
}

/* A lista rola; o subtotal e os botões ficam presos embaixo. O Elementor grava
   um `max-height` inline na lista a cada abertura — daí o `!important`. */
.elx-head__cart .elementor-menu-cart__products {
	flex: 1 1 auto;
	min-height: 0;
	max-height: none !important;
	margin: 0 -8px;
	padding: 0 8px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--elx-line) transparent;
}

.elx-head__cart .elementor-menu-cart__product {
	--divider-color: #f0f0f0;
	--product-divider-gap: 16px;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) 30px;
	grid-template-rows: auto auto;
	column-gap: 14px;
	align-items: start;
	padding: 16px 0;
}

.elx-head__cart .elementor-menu-cart__product:first-of-type {
	padding-top: 0;
}

.elx-head__cart .elementor-menu-cart__product-image {
	grid-row: 1 / 3;
	grid-column: 1;
	width: 72px;
	height: 72px;
	padding: 6px;
	border-radius: 12px;
	background: #f7f7f7;
	overflow: hidden;
}

.elx-head__cart .elementor-menu-cart__product-image a {
	display: block;
	height: 100%;
}

.elx-head__cart .elementor-menu-cart__product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.elx-head__cart .elementor-menu-cart__product-name {
	grid-column: 2;
	grid-row: 1;
	align-self: start;
	margin: 0;
	padding: 0;
	font-family: var(--elx-sans);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.elx-head__cart .elementor-menu-cart__product-name a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--elx-ink);
	text-decoration: none;
}

.elx-head__cart .elementor-menu-cart__product-name a:hover {
	color: var(--elx-green);
}

.elx-head__cart .elementor-menu-cart__product-price {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
	margin-top: 6px;
	padding: 0;
	font-family: var(--elx-sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--elx-muted);
}

.elx-head__cart .elementor-menu-cart__product-price .amount,
.elx-head__cart .elementor-menu-cart__product-price bdi {
	font-family: var(--elx-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--elx-green);
}

/* O "×" de remover: um círculo na ponta direita, na altura do nome. */
.elx-head__cart .elementor-menu-cart__product-remove {
	--remove-item-button-size: 28px;
	--remove-item-button-color: var(--elx-muted);
	--remove-item-button-hover-color: #c0392b;
	grid-column: 3;
	grid-row: 1;
	position: relative;
	inset: auto;
	width: 28px;
	height: 28px;
	margin-top: 2px;
	border-color: #e3e3e3;
	background: #fff;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.elx-head__cart .elementor-menu-cart__product-remove:hover {
	border-color: #c0392b;
	background: rgba(192, 57, 43, 0.06);
}

/* Rodapé: subtotal e os dois botões, sempre visíveis. */
.elx-head__cart .elementor-menu-cart__subtotal {
	--subtotal-divider-color: #f0f0f0;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
	padding: 18px 0 16px;
	border-width: 1.5px 0 0;
	font-family: var(--elx-sans);
	font-size: 15px;
	font-weight: 600;
	color: var(--elx-text);
	text-align: left;
}

.elx-head__cart .elementor-menu-cart__subtotal .amount,
.elx-head__cart .elementor-menu-cart__subtotal bdi {
	font-family: var(--elx-display);
	font-size: 24px;
	font-weight: 700;
	color: var(--elx-green);
}

.elx-head__cart .elementor-menu-cart__footer-buttons {
	--cart-footer-layout: 1fr;
	--space-between-buttons: 10px;
	display: grid;
	grid-template-columns: 1fr;
	padding-top: 0;
	font-size: 14px;
}

.elx-head__cart .elementor-menu-cart__footer-buttons .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 20px;
	border-radius: var(--elx-radius);
	font-family: var(--elx-sans);
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	transition: background-color 0.18s ease, color 0.18s ease;
}

/* Finalizar primeiro, cheio; ver carrinho embaixo, vazado. */
.elx-head__cart .elementor-menu-cart__footer-buttons .elementor-button--checkout {
	order: -1;
	background: var(--elx-green);
	color: #fff;
}

.elx-head__cart .elementor-menu-cart__footer-buttons .elementor-button--checkout:hover {
	background: var(--elx-green-hover);
	color: #fff;
}

.elx-head__cart .elementor-menu-cart__footer-buttons .elementor-button--view-cart {
	background: transparent;
	border: 2px solid var(--elx-green);
	color: var(--elx-green);
}

.elx-head__cart .elementor-menu-cart__footer-buttons .elementor-button--view-cart:hover {
	background: var(--elx-tint);
	color: var(--elx-green);
}

/* Carrinho vazio. */
.elx-head__cart .woocommerce-mini-cart__empty-message {
	margin: 40px 0;
	font-family: var(--elx-sans);
	font-size: 15px;
	line-height: 1.5;
	color: var(--elx-muted);
	text-align: center;
}

.elx-head__cart .woocommerce-mini-cart__empty-message::before {
	content: "";
	display: block;
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background-color: var(--elx-tint);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354a07b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a1 1 0 0 0 1 .8h9.8a1 1 0 0 0 1-.8L21 8H6.2'/%3E%3Ccircle cx='9.5' cy='20' r='1.2'/%3E%3Ccircle cx='17.5' cy='20' r='1.2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 34px 34px;
}

.elx-head__cart .elementor-menu-cart__toggle .elementor-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--elx-text);
	font-family: var(--elx-sans);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.25;
}

.elx-head__cart .elementor-button-icon {
	position: relative;
	color: var(--elx-green);
	font-size: 28px;
	line-height: 1;
}

.elx-head__cart .elementor-button-icon svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.elx-head__cart .elementor-button-icon-qty {
	position: absolute;
	top: -6px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--elx-green);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

/* Contador de favoritos: a mesma bolha do carrinho, em verde. O script
   `wishlist.js` cria o `<span>` e mantém o número em dia sem recarregar. */
#elx-head-fav .elementor-icon-box-icon {
	position: relative;
}

#elx-head-fav .elx-wish-count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--elx-green-deep);
	color: #fff;
	font-family: var(--elx-sans);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
	transition: transform 0.18s ease;
}

#elx-head-fav .elx-wish-count.is-zero {
	background: var(--elx-muted);
}

/* Aviso curto de "salvo / removido / erro", usado pelos favoritos. */
.elx-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 100001;
	max-width: calc(100vw - 32px);
	padding: 12px 18px;
	border-radius: 15px;
	background: #174133;
	color: #fff;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 57, 42, 0.25);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.elx-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

.elx-toast--error {
	background: #c0392b;
}

/* Botão de busca que só existe no celular. */
.elx-head__search-toggle {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 12px;
	background: var(--elx-soft);
	color: var(--elx-green);
	font-size: 18px;
	cursor: pointer;
}

/* ------------------------------------------------------- barra e mega menu -- */

.elx-catbar {
	--elx-catbar-height: 65px;
	position: relative;
	background: var(--elx-soft);
}

.elx-catbar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	width: min(100%, var(--elx-head-inner));
	min-height: var(--elx-catbar-height);
	margin-inline: auto;
	padding-block: 8px;
	box-sizing: border-box;
}

.elx-catbar__toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 235px;
	min-height: 50px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--elx-radius);
	background: var(--elx-green);
	color: #fff;
	font-family: var(--elx-sans);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.elx-catbar__toggle:hover,
.elx-catbar__toggle:focus-visible {
	background: var(--elx-green-hover);
}

.elx-catbar__icon {
	display: inline-flex;
	font-size: 15px;
}

.elx-catbar__caret {
	width: 8px;
	height: 8px;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 0.18s ease;
}

.elx-catbar.is-open .elx-catbar__caret {
	transform: rotate(-135deg) translate(-2px, -2px);
}

.elx-catbar__links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1 1 auto;
	gap: 8px;
	min-width: 0;
}

.elx-catbar__link {
	font-family: var(--elx-sans);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.2;
	color: var(--elx-text);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.16s ease;
}

.elx-catbar__link:hover,
.elx-catbar__link:focus-visible {
	color: var(--elx-green);
}

.elx-catbar__link.is-highlight {
	font-weight: 700;
	color: var(--elx-green);
}

/* O painel */

.elx-mega__panelwrap {
	--elx-mega-max: 400px;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 999;
	padding: 0 16px 24px;
	box-sizing: border-box;
}

.elx-mega__panelwrap[hidden] {
	display: none;
}

.elx-mega__panel {
	display: grid;
	grid-template-columns: 224px minmax(0, 1fr);
	width: 100%;
	max-width: var(--elx-head-inner);
	margin-inline: auto;
	background: #fff;
	border-radius: 0 0 18px 18px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	animation: elx-mega-in 0.18s ease;
}

@keyframes elx-mega-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Cabeçalho do painel: só existe no celular. */
.elx-mega__mobilebar {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid #f0f0f0;
}

.elx-mega__mobiletitle {
	font-family: var(--elx-display);
	font-weight: 700;
	font-size: 16px;
	color: var(--elx-ink);
	text-transform: uppercase;
}

.elx-mega__close {
	position: relative;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: #f4f4f4;
	cursor: pointer;
}

.elx-mega__close::before,
.elx-mega__close::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 14px;
	height: 2px;
	background: var(--elx-text);
}

.elx-mega__close::before {
	transform: rotate(45deg);
}

.elx-mega__close::after {
	transform: rotate(-45deg);
}

.elx-mega__side {
	display: flex;
	flex-direction: column;
	max-height: var(--elx-mega-max);
	overflow-y: auto;
	padding: 10px 0;
	background: #f7f7f7;
	overscroll-behavior: contain;
}

.elx-mega__cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	padding: 10px 18px;
	border: 0;
	background: transparent;
	color: var(--elx-text);
	font-family: var(--elx-sans);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.14s ease, color 0.14s ease;
}

.elx-mega__cat:hover {
	color: var(--elx-green);
}

.elx-mega__cat[aria-selected="true"] {
	background: #fff;
	color: var(--elx-green);
	font-weight: 700;
}

.elx-mega__cat-arrow {
	flex: 0 0 6px;
	width: 6px;
	height: 6px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.6;
}

.elx-mega__body {
	max-height: var(--elx-mega-max);
	overflow-y: auto;
	padding: 18px 22px;
	overscroll-behavior: contain;
}

.elx-mega__body.is-loading {
	opacity: 0.45;
}

.elx-mega__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 268px;
	gap: 22px;
}

/* Categoria sem subcategorias: os destaques tomam a largura toda. */
.elx-mega__cols--nosubs {
	grid-template-columns: 1fr;
}

.elx-mega__cols--nosubs .elx-mega__subs {
	order: 2;
}

.elx-mega__cols--nosubs .elx-mega__products {
	padding-left: 0;
	border-left: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 6px 14px;
}

.elx-mega__cols--nosubs .elx-mega__products-title {
	grid-column: 1 / -1;
}

/* Subcategorias — o mesmo card compacto dos destaques (foto + nome + total). */
.elx-mega__sublist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 4px 14px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.elx-mega__sublist li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.elx-mega__sub {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px;
	border-radius: 12px;
	text-decoration: none;
	transition: background-color 0.14s ease;
}

.elx-mega__sub:hover {
	background: #f7f7f7;
}

.elx-mega__sub-img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #f7f7f7;
	overflow: hidden;
}

.elx-mega__sub-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.elx-mega__sub-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.elx-mega__sub-name {
	font-family: var(--elx-sans);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.25;
	color: var(--elx-text);
}

.elx-mega__sub:hover .elx-mega__sub-name {
	color: var(--elx-green);
}

.elx-mega__count {
	font-family: var(--elx-sans);
	font-size: 12px;
	line-height: 1.2;
	color: var(--elx-muted);
}

.elx-mega__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--elx-sans);
	font-weight: 700;
	font-size: 13px;
	color: var(--elx-green);
	text-decoration: none;
}

.elx-mega__all::after {
	content: "›";
	font-size: 16px;
	line-height: 1;
}

.elx-mega__all:hover {
	text-decoration: underline;
}

.elx-mega__empty {
	margin: 0 0 12px;
	font-family: var(--elx-sans);
	font-size: 13px;
	color: var(--elx-muted);
}

/* Produtos em destaque — cards compactos */
.elx-mega__products {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-left: 22px;
	border-left: 1px solid #f0f0f0;
}

.elx-mega__products-title {
	margin: 0 0 2px;
	font-family: var(--elx-display);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--elx-muted);
}

.elx-mega__product {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px;
	border-radius: 12px;
	text-decoration: none;
	transition: background-color 0.14s ease;
}

.elx-mega__product:hover {
	background: #f7f7f7;
}

.elx-mega__product-img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #f7f7f7;
	overflow: hidden;
}

.elx-mega__product-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.elx-mega__product-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.elx-mega__product-name {
	font-family: var(--elx-sans);
	font-weight: 500;
	font-size: 13px;
	line-height: 1.25;
	color: var(--elx-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.elx-mega__product-prices {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}

.elx-mega__product-old {
	font-family: var(--elx-sans);
	font-weight: 500;
	font-size: 12px;
	line-height: 1.2;
	color: var(--elx-muted);
	text-decoration: line-through;
}

.elx-mega__product-price {
	font-family: var(--elx-display);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	color: var(--elx-ink);
}

.elx-mega__product-price.is-sale {
	color: var(--elx-green);
}

/* ------------------------------------------------------------- celular -- */

body.elx-no-scroll {
	overflow: hidden;
}

/* Entre 1025 e 1280 o miolo de 1213px é mais largo que a tela e o carrinho fica
   colado na borda — aí a gaveta dele vaza. Um respiro resolve, e esta faixa não
   tem ponto de quebra no Elementor. */
@media (max-width: 1280px) {
	.elx-home-page #elx-head-main,
	body #elx-head-main,
	body #elx-head-info {
		padding-inline: 24px;
	}

	.elx-catbar__inner {
		padding-inline: 24px;
	}
}

@media (max-width: 1024px) {
	.elx-catbar__inner {
		gap: 12px;
		padding-inline: 16px;
	}

	.elx-catbar__toggle {
		min-width: 0;
		flex: 1 1 auto;
	}

	/* A fila de categorias vira uma faixa rolável. */
	.elx-catbar__links {
		display: none;
	}

	/* O mega menu vira painel lateral. */
	.elx-mega__panelwrap {
		position: fixed;
		inset: 0;
		z-index: 99999;
		padding: 0;
		background: rgba(0, 0, 0, 0.45);
	}

	.elx-mega__panel {
		grid-template-columns: 1fr;
		width: min(92vw, 380px);
		max-width: none;
		height: 100%;
		margin: 0;
		border-radius: 0 18px 18px 0;
		animation: elx-mega-slide 0.22s ease;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	@keyframes elx-mega-slide {
		from {
			transform: translateX(-16px);
			opacity: 0;
		}
		to {
			transform: none;
			opacity: 1;
		}
	}

	.elx-mega__mobilebar {
		display: flex;
		position: sticky;
		top: 0;
		z-index: 2;
		background: #fff;
	}

	.elx-mega__side {
		max-height: none;
		overflow: visible;
		padding: 8px 0;
		background: #fff;
		border-bottom: 1px solid #f0f0f0;
	}

	.elx-mega__cat {
		padding: 14px 18px;
		font-size: 15px;
		border-bottom: 1px solid #f4f4f4;
	}

	.elx-mega__cat-arrow {
		transform: rotate(45deg);
	}

	.elx-mega__cat[aria-selected="true"] {
		background: var(--elx-tint);
	}

	.elx-mega__cat[aria-selected="true"] .elx-mega__cat-arrow {
		transform: rotate(135deg);
	}

	/* O conteúdo da categoria aberta aparece logo abaixo da lista. */
	.elx-mega__body {
		max-height: none;
		overflow: visible;
		padding: 16px 18px 28px;
	}

	.elx-mega__cols {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.elx-mega__sublist {
		grid-template-columns: 1fr;
	}

	.elx-mega__sub {
		padding: 8px 6px;
	}

	.elx-mega__sub-name {
		font-size: 15px;
	}

	.elx-mega__products {
		padding-left: 0;
		padding-top: 16px;
		border-left: 0;
		border-top: 1px solid #f0f0f0;
	}

	/* A busca ganha a própria linha, em toda a largura; logo e atalhos
	   (favoritos, conta, carrinho) dividem a primeira linha.
	   O `#elx-head-main` na frente é necessário: o Elementor define
	   `order: var(--order)` em `.elementor-element` e `flex` em `.e-con.e-flex`,
	   e só com a classe a regra perdia para as duas. */
	#elx-head-main .elx-head__search {
		order: 10;
		flex: 1 1 100%;
		width: 100%;
		max-width: none;
	}

	/* O logo empurra os atalhos para a ponta direita da primeira linha. */
	#elx-head-main #elx-head-logo {
		margin-right: auto;
	}

	.elx-head__search .dgwt-wcas-search-input {
		height: 48px;
	}

	.elx-promo {
		gap: 12px;
		padding: 10px 40px;
	}

	.elx-promo__item {
		flex-direction: column;
		gap: 8px;
	}

	.elx-promo__text {
		text-align: center;
	}

	.elx-promo__btn {
		min-width: 0;
		min-height: 40px;
		font-size: 14px;
	}

	.elx-promo__arrow--prev {
		left: 6px;
	}

	.elx-promo__arrow--next {
		right: 6px;
	}
}

@media (max-width: 767px) {
	.elx-head-info .elementor-icon-list-item + .elementor-icon-list-item {
		border-left: 0;
	}

	.elx-head-info .elementor-icon-list-item > a,
	.elx-head-info .elementor-icon-list-item > span {
		padding: 0 10px;
	}

	/* A promoção volta a caber numa linha só. */
	.elx-promo {
		padding: 8px 34px;
	}

	.elx-promo__item {
		flex-direction: row;
		gap: 10px;
	}

	.elx-promo__title {
		font-size: 13px;
	}

	.elx-promo__sub {
		font-size: 11px;
	}

	.elx-promo__btn {
		min-height: 34px;
		padding: 0 12px;
		font-size: 12px;
		white-space: nowrap;
	}

	/* Favoritos e conta ficam só com o ícone: o rótulo dobraria a altura do
	   cabeçalho sem acrescentar informação. */
	.elx-head__action .elementor-icon-box-content {
		display: none;
	}

	.elx-head__action .elementor-icon-box-wrapper {
		justify-content: center;
	}

	.elx-head__action .elementor-icon-box-icon {
		flex: 0 0 30px;
		width: 30px;
	}

	.elx-head__cart .elementor-menu-cart__toggle .elementor-button-text {
		display: none;
	}

	#elx-head-main {
		gap: 12px;
	}

	#elx-head-logo img {
		max-width: 150px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elx-promo__item,
	.elx-mega__panel {
		animation: none;
	}
	.elx-catbar__caret,
	.elx-mega__cat,
	.elx-mega__sub,
	.elx-mega__product {
		transition: none;
	}
}
