/**
 * Header — Logo | Menu | Busca barra | Ícones
 * Entry-header A1/A2 (banner de blog fora; logo vive na nav)
 */

/* =========================================================================
   A1 — Esconder banner Ashe (.entry-header + ashe_bg.jpg) em toda a loja.
   O logo vive na nav do child; o banner de 500px do Ashe não deve aparecer
   (404, páginas, conta, checkout, etc.).
   ========================================================================= */
body.ashe-woocommerce-child .entry-header,
body.ashe-woocommerce-child.error404 .entry-header,
body.ashe-wc-home .entry-header,
body.ashe-wc-shop .entry-header,
body.woocommerce-shop .entry-header,
body.post-type-archive-product .entry-header,
body.tax-product_cat .entry-header,
body.tax-product_tag .entry-header,
body.single-product .entry-header,
body.ashe-wc-cart .entry-header,
body.ashe-wc-checkout .entry-header,
body.ashe-wc-account .entry-header,
body.ashe-wc-no-blog-sidebars .entry-header {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	background: none !important;
	background-image: none !important;
	overflow: hidden !important;
	visibility: hidden !important;
}

/* A2 — reforço: zerar imagem injectada pelo dynamic-css do Ashe */
body.ashe-woocommerce-child .entry-header {
	background-image: none !important;
}

/* =========================================================================
   Nav shell
   ========================================================================= */
body.ashe-woocommerce-child #main-nav {
	z-index: 1200;
	background: #fff;
	/* Uma única linha divisória (border + shadow = “2 linhas”) */
	border-bottom: 1px solid var(--ashe-wc-line, #e5e1db);
	box-shadow: none;
}

/*
 * Header FIXO no desktop.
 * sticky falha: #main-nav vive dentro de #page-header (altura = nav),
 * então o sticky nunca “gruda”. Usamos fixed + spacer no #page-header.
 */
@media screen and (min-width: 980px) {
	body.ashe-woocommerce-child.ashe-wc-nav-fixed #main-nav,
	body.ashe-woocommerce-child #main-nav {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		z-index: 1200 !important;
		margin: 0 !important;
	}

	/*
	 * Admin bar: altura real via --ashe-wc-admin-bar-h (JS lê #wpadminbar).
	 * Fallback 32px desktop; em ≤782px o JS define 46px.
	 */
	body.admin-bar.ashe-woocommerce-child.ashe-wc-nav-fixed #main-nav,
	body.admin-bar.ashe-woocommerce-child #main-nav {
		top: var(--ashe-wc-admin-bar-h, 32px) !important;
	}

	/* Spacer: reserva o espaço do nav (altura via --ashe-wc-nav-h no JS) */
	body.ashe-woocommerce-child.ashe-wc-nav-fixed #page-header,
	body.ashe-woocommerce-child #page-header {
		min-height: var(--ashe-wc-nav-h, 64px) !important;
		height: var(--ashe-wc-nav-h, 64px) !important;
		box-sizing: border-box !important;
		/* Evita “buraco” extra acima do conteúdo / hero */
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-bottom: 0 !important;
		box-shadow: none !important;
		background: transparent !important;
		overflow: visible !important;
	}

	/* Sombra suave no scroll — sem segunda linha */
	body.ashe-woocommerce-child #main-nav.is-scrolled {
		box-shadow: 0 4px 16px rgba(23, 25, 26, 0.07) !important;
		border-bottom-color: transparent !important;
	}
}

/*
 * Mobile: só a TOPBAR (logo/ícones/hamburger) é fixa.
 * Busca + categorias rolam; perto do topo “grudam” (ímã).
 * Desktop NÃO é afetado (bloco min-width:980px acima).
 */
@media screen and (max-width: 979px) {
	body.ashe-woocommerce-child #main-nav,
	body.admin-bar.ashe-woocommerce-child #main-nav,
	body.ashe-woocommerce-child.ashe-wc-nav-fixed #main-nav {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		transform: none !important;
		z-index: 1200 !important;
		background: transparent !important;
		border-bottom: 0 !important;
		box-shadow: none !important;
	}

	/* Spacer = só a topbar de ícones (busca flui depois) */
	body.ashe-woocommerce-child #page-header,
	body.ashe-woocommerce-child.ashe-wc-nav-fixed #page-header {
		min-height: 0 !important;
		padding-top: 0 !important;
		margin-bottom: 0 !important;
		box-sizing: border-box !important;
	}
}

/*
 * Desktop: topbar = linha completa (logo | menu | busca | tools).
 * NÃO usar display:contents (quebrava a ordem do flex).
 */
@media screen and (min-width: 980px) {
	body.ashe-woocommerce-child #main-nav > div.ashe-wc-nav-inner {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-topbar {
		display: flex !important;
		flex: 1 1 auto !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 0.4rem 0.65rem !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		position: relative !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		float: none !important;
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
		padding: 0 !important;
		margin: 0 !important;
		min-height: 0 !important;
		z-index: auto !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-brand {
		order: 1 !important;
		flex: 0 0 auto !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-menu,
	body.ashe-woocommerce-child #main-nav .main-menu-container,
	body.ashe-woocommerce-child #main-nav #main-menu {
		order: 2 !important;
		flex: 0 1 auto !important;
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		pointer-events: auto !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-search-wrap {
		order: 3 !important;
		flex: 1 1 auto !important;
		min-width: 160px !important;
		max-width: none !important;
		position: relative !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		width: auto !important;
		z-index: 25 !important;
		padding: 0 !important;
		border: 0 !important;
		box-shadow: none !important;
		background: transparent !important;
		transform: none !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools {
		order: 4 !important;
		flex: 0 0 auto !important;
		margin-left: 0 !important;
	}

	/* Hamburger nunca no desktop */
	body.ashe-woocommerce-child #main-nav .mobile-menu-btn.ashe-wc-mobile-toggle {
		display: none !important;
		order: 5 !important;
	}

	/* Slot mobile não existe no desktop */
	body.ashe-woocommerce-child #main-nav .ashe-wc-search-slot {
		display: none !important;
		height: 0 !important;
		width: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}
}

/*
 * Hamburger lateral do Ashe pai — nunca na loja.
 * (absolute left + z-index baixo → ficava atrás do logo no mobile)
 */
body.ashe-woocommerce-child #main-nav .main-nav-sidebar,
body.ashe-woocommerce-child .main-nav-sidebar {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	position: absolute !important;
	left: -9999px !important;
	z-index: -1 !important;
}

/* Garantir que logo não cobre o hamburger da direita */
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-brand {
	z-index: 2;
	max-width: min(52vw, 180px);
}

body.ashe-woocommerce-child #main-nav .mobile-menu-btn.ashe-wc-mobile-toggle {
	z-index: 70 !important;
	position: relative !important;
}

body.ashe-woocommerce-child #main-nav .boxed-wrapper,
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-inner.boxed-wrapper,
body.ashe-woocommerce-child .boxed-wrapper {
	max-width: 1320px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

/*
 * Escala unificada do header
 * --nav-h: altura da faixa
 * --nav-control: botões redondos (conta, sacola, filtro, tema)
 * --nav-search-h: altura da busca
 * --nav-logo: logo
 * --nav-ico: ícones dos links do menu
 */
body.ashe-woocommerce-child #main-nav {
	/*
	 * Layout alvo desktop:
	 * [logo][menu][======== busca flex ========][filtro|tema|conta|carrinho]
	 * Logo: altura fixa, largura automática (sem deformar).
	 */
	--nav-h: 66px;
	--nav-pad-y: 0.3rem;
	--nav-gap: 0.5rem;
	--nav-control: 40px;
	--nav-search-h: 40px;
	--nav-logo: 48px;
	--nav-link-fs: 13.5px;
	--nav-ico: 22px;
	--nav-tool-ico: 18px;
}

body.ashe-woocommerce-child #main-nav > div.ashe-wc-nav-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--nav-gap) 0.75rem;
	min-height: var(--nav-h);
	padding-top: var(--nav-pad-y);
	padding-bottom: var(--nav-pad-y);
	position: relative;
	text-align: left !important;
}

/* Desktop: uma linha limpa — logo | menu | busca fluida | tools à direita */
@media screen and (min-width: 980px) {
	body.ashe-woocommerce-child #main-nav {
		--nav-h: 66px;
		--nav-pad-y: 0.28rem;
		--nav-gap: 0.45rem;
		--nav-control: 40px;
		--nav-search-h: 40px;
		--nav-logo: 50px;
		--nav-link-fs: 13.5px;
		--nav-ico: 22px;
		--nav-tool-ico: 18px;
	}

	body.ashe-woocommerce-child #main-nav > div.ashe-wc-nav-inner {
		flex-wrap: nowrap !important;
		gap: 0.4rem 0.65rem;
		min-height: var(--nav-h);
		padding-top: var(--nav-pad-y);
		padding-bottom: var(--nav-pad-y);
	}
}

@media screen and (min-width: 1200px) {
	body.ashe-woocommerce-child #main-nav {
		--nav-h: 70px;
		--nav-pad-y: 0.32rem;
		--nav-logo: 52px;
		--nav-link-fs: 14px;
		--nav-search-h: 42px;
		--nav-control: 42px;
		--nav-ico: 23px;
	}
}

@media screen and (min-width: 1440px) {
	body.ashe-woocommerce-child #main-nav {
		--nav-h: 72px;
		--nav-logo: 54px;
		--nav-search-h: 44px;
	}
}

/* Anula floats/absolute do Ashe que quebram o flex */
body.ashe-woocommerce-child #main-nav .main-menu-container,
body.ashe-woocommerce-child #main-nav #main-menu,
body.ashe-woocommerce-child #main-nav .main-nav-icons,
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-brand,
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-searchbar {
	float: none !important;
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
}

body.ashe-woocommerce-child #main-nav #main-menu {
	width: auto;
	text-align: left;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ashe-woocommerce-child #main-nav #main-menu > li {
	display: block;
	flex: 0 0 auto;
	vertical-align: middle;
	float: none !important;
}

body.ashe-woocommerce-child #main-nav #main-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--nav-control, 40px);
	padding: 0.4rem 0.6rem !important;
	margin: 0 !important;
	font-size: var(--nav-link-fs, 13.5px);
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.25;
	white-space: nowrap;
	text-transform: none;
	border-radius: 8px;
	box-sizing: border-box;
}

/* Ícones do menu (desktop + mobile) */
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-ico {
	display: inline-block;
	flex: 0 0 var(--nav-ico, 22px);
	width: var(--nav-ico, 22px);
	height: var(--nav-ico, 22px);
	background-color: currentColor;
	opacity: 0.9;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* Digitais, Sob encomenda e Contato: levemente menores que Loja */
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-icon--digital > a .ashe-wc-nav-ico,
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-icon--custom > a .ashe-wc-nav-ico,
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-icon--contact > a .ashe-wc-nav-ico {
	--nav-ico-sm: calc(var(--nav-ico, 22px) - 3px);
	flex: 0 0 var(--nav-ico-sm);
	width: var(--nav-ico-sm);
	height: var(--nav-ico-sm);
	opacity: 0.82;
}

/* Loja: um pouco mais presente que os outros */
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-icon--shop > a .ashe-wc-nav-ico {
	opacity: 0.95;
}

body.ashe-woocommerce-child #main-nav .ashe-wc-nav-label {
	display: inline;
}

body.ashe-woocommerce-child #main-nav .ashe-wc-nav-icon--shop > a .ashe-wc-nav-ico {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l-.8 11a1 1 0 0 1-1 .9H7.8a1 1 0 0 1-1-.9L6 8z'/%3E%3Cpath d='M9 8V7a3 3 0 0 1 6 0v1'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l-.8 11a1 1 0 0 1-1 .9H7.8a1 1 0 0 1-1-.9L6 8z'/%3E%3Cpath d='M9 8V7a3 3 0 0 1 6 0v1'/%3E%3C/svg%3E");
}

body.ashe-woocommerce-child #main-nav .ashe-wc-nav-icon--digital > a .ashe-wc-nav-ico {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='12' rx='1.5'/%3E%3Cpath d='M8 20h8M12 16.5V20'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='12' rx='1.5'/%3E%3Cpath d='M8 20h8M12 16.5V20'/%3E%3C/svg%3E");
}

body.ashe-woocommerce-child #main-nav .ashe-wc-nav-icon--custom > a .ashe-wc-nav-ico {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4 11.5-11.5z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4 11.5-11.5z'/%3E%3C/svg%3E");
}

body.ashe-woocommerce-child #main-nav .ashe-wc-nav-icon--contact > a .ashe-wc-nav-ico {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='1.5'/%3E%3Cpath d='M4 7.5l8 5.5 8-5.5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='1.5'/%3E%3Cpath d='M4 7.5l8 5.5 8-5.5'/%3E%3C/svg%3E");
}

body.ashe-woocommerce-child #main-nav .ashe-wc-nav-icon--acervo > a .ashe-wc-nav-ico {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}

/* Início: casinha */
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-icon--home > a .ashe-wc-nav-ico {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.2 12 4.8l7.5 6.4'/%3E%3Cpath d='M6.5 10.2V19a1 1 0 0 0 1 1h3.2v-5.2h2.6V20H16.5a1 1 0 0 0 1-1v-8.8'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.2 12 4.8l7.5 6.4'/%3E%3Cpath d='M6.5 10.2V19a1 1 0 0 0 1 1h3.2v-5.2h2.6V20H16.5a1 1 0 0 0 1-1v-8.8'/%3E%3C/svg%3E");
}

/* Sobre: silhueta de pessoa */
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-icon--about > a .ashe-wc-nav-ico {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5.5 19.5c1.4-3.1 3.7-4.6 6.5-4.6s5.1 1.5 6.5 4.6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5.5 19.5c1.4-3.1 3.7-4.6 6.5-4.6s5.1 1.5 6.5 4.6'/%3E%3C/svg%3E");
}

body.ashe-woocommerce-child #main-nav #main-menu > li > a:hover .ashe-wc-nav-ico,
body.ashe-woocommerce-child #main-nav #main-menu > li.current-menu-item > a .ashe-wc-nav-ico {
	opacity: 1;
}

/* =========================================================================
   Logo — proporção natural (sem width/height forçados)
   ========================================================================= */
body.ashe-woocommerce-child .ashe-wc-nav-brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	align-self: center;
	max-width: none;
	min-width: 0;
	z-index: 5;
	line-height: 0;
}

body.ashe-woocommerce-child .ashe-wc-nav-logo {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	text-decoration: none !important;
	line-height: 0;
}

/*
 * Logo: altura controlada, largura natural (sem forçar caixa 1:1 que espreme).
 * object-fit:contain + height fixa evita deformação dos attrs width/height do WP.
 */
body.ashe-woocommerce-child .ashe-wc-nav-logo__img {
	display: block !important;
	height: var(--nav-logo, 48px) !important;
	width: auto !important;
	max-height: var(--nav-logo, 48px) !important;
	max-width: min(200px, 34vw) !important;
	object-fit: contain !important;
	object-position: left center;
	aspect-ratio: auto !important;
	flex-shrink: 0;
	image-rendering: auto;
}

body.ashe-woocommerce-child .ashe-wc-nav-logo__text {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: #1f1f1f;
	white-space: nowrap;
	line-height: 1.15;
}

/* =========================================================================
   Menu — junto ao logo (NÃO estica e cria buraco)
   ========================================================================= */
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-menu.main-menu-container {
	flex: 0 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	overflow: visible;
}

@media screen and (min-width: 980px) {
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-menu.main-menu-container {
		/* Menu compacto junto ao logo — não cria buraco */
		flex: 0 1 auto;
		min-width: 0;
		max-width: none;
		overflow: visible;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-brand {
		flex: 0 0 auto;
		max-width: none;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-logo__img {
		height: var(--nav-logo, 50px) !important;
		max-height: var(--nav-logo, 50px) !important;
		width: auto !important;
		max-width: min(200px, 28vw) !important;
	}

	/*
	 * Busca preenche TODO o espaço entre menu e o grupo de ícones à direita.
	 * Sem max-width baixo — é isso que deixava o “vazio” artificial.
	 */
	body.ashe-woocommerce-child .ashe-wc-nav-search-wrap {
		flex: 1 1 auto !important;
		min-width: 160px;
		max-width: none !important;
		margin-left: 0.5rem;
		margin-right: 0.25rem;
	}

	/* Ícones sempre no extremo direito (order definido no bloco topbar desktop) */
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools {
		flex: 0 0 auto !important;
		margin-left: 0 !important;
		height: var(--nav-control, 40px);
		gap: 2px;
		order: 4 !important;
	}
}

/* =========================================================================
   Busca — barra real sempre visível
   ========================================================================= */
/* Busca + filtro (mobile: filtro esq.; desktop: filtro dir.) */
body.ashe-woocommerce-child .ashe-wc-nav-search-wrap {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex: 1 1 auto;
	min-width: 140px;
	max-width: none;
	z-index: 25;
	position: relative;
}

body.ashe-woocommerce-child .ashe-wc-nav-search-wrap > .ashe-wc-nav-filter {
	flex: 0 0 auto;
	order: 0; /* mobile: esquerda da busca */
}

body.ashe-woocommerce-child .ashe-wc-nav-search-wrap > .ashe-wc-nav-searchbar {
	order: 1;
	flex: 1 1 auto;
	min-width: 0;
}

/* Painel de sugestões não participa da fila visual */
body.ashe-woocommerce-child .ashe-wc-nav-search-wrap > .ashe-wc-nav-search__panel {
	order: 99;
}

@media screen and (min-width: 980px) {
	/* Desktop: busca | categorias (à direita da busca) */
	body.ashe-woocommerce-child .ashe-wc-nav-search-wrap > .ashe-wc-nav-searchbar {
		order: 1;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-search-wrap > .ashe-wc-nav-filter {
		order: 2;
	}
}

body.ashe-woocommerce-child .ashe-wc-nav-searchbar {
	flex: 1 1 auto;
	min-width: 0;
	z-index: 6;
}

/* Vence o display:none / absolute full-width do Ashe */
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-searchbar #searchform,
body.ashe-woocommerce-child #main-nav #searchform.ashe-wc-product-search {
	display: flex !important;
	align-items: center;
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	height: var(--nav-search-h, 40px) !important;
	min-height: var(--nav-search-h, 40px) !important;
	margin: 0 !important;
	padding: 0 6px 0 12px !important;
	background: #f7f5f1 !important;
	border: 1px solid #e4e7e4 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	transform: none !important;
	gap: 6px;
}

body.ashe-woocommerce-child .ashe-wc-nav-searchbar__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #7a7a7a;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	cursor: pointer;
	transform-origin: 40% 40%;
}

body.ashe-woocommerce-child .ashe-wc-nav-searchbar__icon svg,
body.ashe-woocommerce-child .ashe-wc-search-lupa {
	width: 15px;
	height: 15px;
	display: block;
	overflow: visible;
}

/* Lupa: sem animação (só o filtro de categorias anima) */
body.ashe-woocommerce-child .ashe-wc-nav-searchbar__icon .ashe-wc-search-lupa__glass,
body.ashe-woocommerce-child .ashe-wc-nav-searchbar__icon .ashe-wc-search-lupa__handle {
	transform-box: view-box;
	transform-origin: 11px 11px;
	transition: none;
}

body.ashe-woocommerce-child .ashe-wc-nav-searchbar__icon .ashe-wc-search-lupa__handle {
	transform-origin: 16px 16px;
}

body.ashe-woocommerce-child .ashe-wc-nav-searchbar__icon.is-animating,
body.ashe-woocommerce-child .ashe-wc-nav-searchbar__icon.is-animating .ashe-wc-search-lupa__glass,
body.ashe-woocommerce-child .ashe-wc-nav-searchbar__icon.is-animating .ashe-wc-search-lupa__handle,
body.ashe-woocommerce-child .ashe-wc-nav-searchbar__submit.is-animating svg,
body.ashe-woocommerce-child .ashe-wc-nav-searchbar.is-searching .ashe-wc-nav-searchbar__submit svg {
	animation: none !important;
}

body.ashe-woocommerce-child .ashe-wc-nav-searchbar__submit {
	transition: background 0.2s ease;
}

body.ashe-woocommerce-child .ashe-wc-nav-searchbar__submit:active {
	transform: none;
}

@keyframes ashe-search-lupa-spin {
	0% {
		transform: scale(1) rotate(0deg);
	}
	30% {
		transform: scale(0.88) rotate(-18deg);
	}
	55% {
		transform: scale(1.18) rotate(12deg);
	}
	78% {
		transform: scale(0.96) rotate(-4deg);
	}
	100% {
		transform: scale(1) rotate(0deg);
	}
}

@keyframes ashe-search-glass-pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}
	40% {
		transform: scale(1.12);
		opacity: 1;
	}
	65% {
		transform: scale(0.94);
		opacity: 0.85;
	}
}

@keyframes ashe-search-handle-flick {
	0%,
	100% {
		transform: rotate(0deg) translate(0, 0);
	}
	35% {
		transform: rotate(18deg) translate(1px, 1px);
	}
	60% {
		transform: rotate(-6deg) translate(0, 0);
	}
}

@keyframes ashe-search-submit-nudge {
	0% {
		transform: translateX(0);
	}
	40% {
		transform: translateX(3px);
	}
	100% {
		transform: translateX(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.ashe-woocommerce-child .ashe-wc-nav-searchbar__icon.is-animating,
	body.ashe-woocommerce-child .ashe-wc-nav-searchbar__icon.is-animating .ashe-wc-search-lupa__glass,
	body.ashe-woocommerce-child .ashe-wc-nav-searchbar__icon.is-animating .ashe-wc-search-lupa__handle,
	body.ashe-woocommerce-child .ashe-wc-nav-searchbar__submit.is-animating svg {
		animation: none !important;
	}
}

body.ashe-woocommerce-child #main-nav .ashe-wc-nav-searchbar #s,
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-searchbar input[type="search"] {
	display: block !important;
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	height: calc(var(--nav-search-h, 40px) - 2px) !important;
	min-height: calc(var(--nav-search-h, 40px) - 2px) !important;
	margin: 0 !important;
	padding: 0 4px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: "Open Sans", sans-serif !important;
	font-size: var(--nav-link-fs, 13.5px) !important;
	font-weight: 400 !important;
	letter-spacing: 0.01em !important;
	text-align: left !important;
	color: #222 !important;
	line-height: calc(var(--nav-search-h, 40px) - 2px) !important;
}

body.ashe-woocommerce-child #main-nav .ashe-wc-nav-searchbar #s:focus {
	outline: none !important;
	box-shadow: none !important;
}

body.ashe-woocommerce-child #main-nav .ashe-wc-nav-searchbar #searchform:focus-within {
	border-color: var(--ashe-wc-accent, #3d5c52) !important;
	background: #fff !important;
	box-shadow: 0 0 0 3px var(--ashe-wc-accent-soft, rgba(61, 92, 82, 0.1)) !important;
}

body.ashe-woocommerce-child #main-nav .ashe-wc-nav-searchbar #s::placeholder {
	color: #8a8a8a !important;
	opacity: 1;
}

body.ashe-woocommerce-child .ashe-wc-nav-searchbar__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ashe-wc-accent-deep, #2f4840);
	cursor: pointer;
}

body.ashe-woocommerce-child .ashe-wc-nav-searchbar__submit svg {
	width: 15px;
	height: 15px;
	display: block;
}

body.ashe-woocommerce-child .ashe-wc-nav-searchbar__submit:hover {
	background: var(--ashe-wc-accent-soft, rgba(61, 92, 82, 0.1));
	color: var(--ashe-wc-accent, #455a51);
}

/* =========================================================================
   Filtro + Conta — dropdowns simples e estáveis
   ========================================================================= */
body.ashe-woocommerce-child .ashe-wc-nav-filter {
	position: relative;
	flex: 0 0 auto;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--nav-control, 40px);
	height: var(--nav-control, 40px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
	box-sizing: border-box;
	transform-origin: center center;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__btn svg,
body.ashe-woocommerce-child .ashe-wc-nav-filter__icon {
	width: var(--nav-tool-ico, 18px);
	height: var(--nav-tool-ico, 18px);
	display: block;
	overflow: visible;
}

/*
 * Ícone filtros ↔ X
 * Fechado: 3 linhas (filtro, larguras diferentes via scaleX)
 * Aberto (aria-expanded): linhas 1 e 3 viram o X; a do meio some
 */
body.ashe-woocommerce-child .ashe-wc-nav-filter__btn .ashe-wc-filter-line {
	transform-box: view-box;
	transition:
		transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.22s ease;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__btn .ashe-wc-filter-line--1 {
	transform-origin: 12px 7px;
	/* filtro: linha superior cheia */
	transform: scaleX(1);
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__btn .ashe-wc-filter-line--2 {
	transform-origin: 12px 12px;
	/* filtro: linha média mais curta */
	transform: scaleX(0.72);
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__btn .ashe-wc-filter-line--3 {
	transform-origin: 12px 17px;
	/* filtro: linha inferior ainda mais curta */
	transform: scaleX(0.45);
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__btn:hover,
body.ashe-woocommerce-child .ashe-wc-nav-filter__btn[aria-expanded="true"] {
	background: var(--ashe-wc-accent-soft, rgba(61, 92, 82, 0.1));
}

/* Aberto → X (cruz) */
body.ashe-woocommerce-child .ashe-wc-nav-filter__btn[aria-expanded="true"] .ashe-wc-filter-line--1 {
	transform: translateY(5px) rotate(45deg) scaleX(1);
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__btn[aria-expanded="true"] .ashe-wc-filter-line--2 {
	transform: scaleX(0);
	opacity: 0;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__btn[aria-expanded="true"] .ashe-wc-filter-line--3 {
	transform: translateY(-5px) rotate(-45deg) scaleX(1);
}

/* Badge some no X (o botão vira “fechar”) */
body.ashe-woocommerce-child .ashe-wc-nav-filter__btn[aria-expanded="true"] .ashe-wc-nav-filter__badge {
	opacity: 0;
	transform: scale(0.5);
	pointer-events: none;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__badge {
	transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Clique leve no botão (sem mexer nas linhas — o morph já anima) */
body.ashe-woocommerce-child .ashe-wc-nav-filter__btn.is-animating {
	animation: ashe-filter-btn-press 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ashe-filter-btn-press {
	0% {
		transform: scale(1);
	}
	35% {
		transform: scale(0.88);
	}
	70% {
		transform: scale(1.06);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes ashe-filter-panel-in {
	0% {
		opacity: 0;
		transform: translateY(-10px) scale(0.97);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.is-open .ashe-wc-nav-filter__link,
body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.ashe-wc-dd--open .ashe-wc-nav-filter__link,
body.ashe-woocommerce-child #ashe-wc-filter-panel.is-open .ashe-wc-nav-filter__link,
body.ashe-woocommerce-child #ashe-wc-filter-panel.ashe-wc-dd--open .ashe-wc-nav-filter__link {
	animation: ashe-filter-link-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.is-open .ashe-wc-nav-filter__link:nth-child(1),
body.ashe-woocommerce-child #ashe-wc-filter-panel.is-open .ashe-wc-nav-filter__link:nth-child(1) {
	animation-delay: 0.04s;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.is-open .ashe-wc-nav-filter__link:nth-child(2),
body.ashe-woocommerce-child #ashe-wc-filter-panel.is-open .ashe-wc-nav-filter__link:nth-child(2) {
	animation-delay: 0.07s;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.is-open .ashe-wc-nav-filter__link:nth-child(3),
body.ashe-woocommerce-child #ashe-wc-filter-panel.is-open .ashe-wc-nav-filter__link:nth-child(3) {
	animation-delay: 0.1s;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.is-open .ashe-wc-nav-filter__link:nth-child(4),
body.ashe-woocommerce-child #ashe-wc-filter-panel.is-open .ashe-wc-nav-filter__link:nth-child(4) {
	animation-delay: 0.13s;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.is-open .ashe-wc-nav-filter__link:nth-child(5),
body.ashe-woocommerce-child #ashe-wc-filter-panel.is-open .ashe-wc-nav-filter__link:nth-child(5) {
	animation-delay: 0.16s;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.is-open .ashe-wc-nav-filter__link:nth-child(n + 6),
body.ashe-woocommerce-child #ashe-wc-filter-panel.is-open .ashe-wc-nav-filter__link:nth-child(n + 6) {
	animation-delay: 0.19s;
}

@keyframes ashe-filter-link-in {
	from {
		opacity: 0;
		transform: translateX(8px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.ashe-woocommerce-child .ashe-wc-nav-filter__btn.is-animating,
	body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.is-open,
	body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.ashe-wc-dd--open,
	body.ashe-woocommerce-child #ashe-wc-filter-panel.is-open,
	body.ashe-woocommerce-child #ashe-wc-filter-panel.ashe-wc-dd--open,
	body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.is-open .ashe-wc-nav-filter__link,
	body.ashe-woocommerce-child #ashe-wc-filter-panel.is-open .ashe-wc-nav-filter__link {
		animation: none !important;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-filter__btn .ashe-wc-filter-line {
		transition: none;
	}

	/* Instantâneo, mas ainda vira X quando aberto */
	body.ashe-woocommerce-child .ashe-wc-nav-filter__btn[aria-expanded="true"] .ashe-wc-filter-line--1 {
		transform: translateY(5px) rotate(45deg) scaleX(1);
	}

	body.ashe-woocommerce-child .ashe-wc-nav-filter__btn[aria-expanded="true"] .ashe-wc-filter-line--2 {
		transform: scaleX(0);
		opacity: 0;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-filter__btn[aria-expanded="true"] .ashe-wc-filter-line--3 {
		transform: translateY(-5px) rotate(-45deg) scaleX(1);
	}
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__badge {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 8px;
	height: 8px;
	padding: 0;
	border-radius: 50%;
	background: var(--ashe-wc-accent-deep, #2f4840);
	border: 1.5px solid var(--ashe-wc-white, #fff);
	font-size: 0;
	line-height: 0;
	color: transparent;
	transform-origin: center;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__badge.is-empty {
	display: none;
}

/* =========================================================================
   Sistema unificado de dropdowns (.ashe-wc-dd)
   Posição final via JS (fixed, abaixo do header). Mesmo visual em todos.
   ========================================================================= */
body.ashe-woocommerce-child #main-nav,
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-inner,
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-search-wrap,
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools,
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-filter,
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-account,
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-cart,
body.ashe-woocommerce-child #page-header {
	overflow: visible !important;
}

body.ashe-woocommerce-child .ashe-wc-dd,
body.ashe-woocommerce-child .ashe-wc-nav-filter__panel,
body.ashe-woocommerce-child .ashe-wc-nav-account__panel,
body.ashe-woocommerce-child #ashe-wc-search-panel,
body.ashe-woocommerce-child #ep-side-cart.ashe-wc-dd {
	position: fixed; /* JS define top/left/width */
	z-index: var(--esmeralda-panel-z, 1300);
	min-width: 200px;
	max-width: calc(100vw - 24px);
	max-height: min(72vh, 520px);
	overflow: hidden;
	margin: 0;
	padding: 0;
	display: none;
	flex-direction: column;
	background: var(--esmeralda-panel-bg, #fff) !important;
	background-color: var(--esmeralda-panel-bg, #fff) !important;
	border: 1px solid var(--esmeralda-panel-border, #e5e1db) !important;
	border-top: 0 !important;
	border-radius: var(--esmeralda-panel-radius, 0 0 12px 12px);
	box-shadow: var(--esmeralda-panel-shadow) !important;
	opacity: 1 !important;
	visibility: visible !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	color: var(--esmeralda-panel-text, #1a1a1a);
	transform-origin: top center;
	pointer-events: auto;
}

/* Mobile: casca única — por ID (não depende só da classe JS) */
@media screen and (max-width: 979px) {
	body.ashe-woocommerce-child .esmeralda-mobile-header-panel,
	body.ashe-woocommerce-child .ashe-wc-dd.esmeralda-mobile-header-panel,
	body.ashe-woocommerce-child #ep-side-cart.esmeralda-mobile-header-panel,
	body.ashe-woocommerce-child #ashe-wc-filter-panel.is-open,
	body.ashe-woocommerce-child #ashe-wc-filter-panel:not([hidden]),
	body.ashe-woocommerce-child #ashe-wc-account-panel.is-open,
	body.ashe-woocommerce-child #ashe-wc-account-panel:not([hidden]),
	body.ashe-woocommerce-child #ashe-wc-search-panel.is-open,
	body.ashe-woocommerce-child #ashe-wc-search-panel:not([hidden]),
	body.ashe-woocommerce-child #ep-side-cart.is-open,
	body.ashe-woocommerce-child #ep-side-cart:not([hidden]),
	body.ashe-woocommerce-child.ep-side-cart-open #ep-side-cart {
		position: fixed !important;
		width: calc(100vw - 28px) !important;
		max-width: none !important;
		min-width: 0 !important;
		left: 14px !important;
		right: 14px !important;
		transform: none !important;
		border-radius: 0 0 14px 14px !important;
		box-shadow: var(--esmeralda-panel-shadow) !important;
		box-sizing: border-box !important;
	}

	body.ashe-woocommerce-child.ashe-wc-dd-scroll-lock {
		position: fixed;
		left: 0;
		right: 0;
		width: 100%;
		overflow: hidden;
	}

	/* WhatsApp FAB recua quando painel do header aberto */
	body.ashe-woocommerce-child.ashe-wc-dd-open .ashe-wc-wa {
		opacity: 0.35;
		pointer-events: none;
		transform: translateY(8px);
		transition: opacity 0.2s ease, transform 0.2s ease;
	}
	body.ashe-woocommerce-child.ashe-wc-dd-open .ashe-wc-wa.is-open {
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}
}

body.ashe-woocommerce-child .ashe-wc-dd.is-open,
body.ashe-woocommerce-child .ashe-wc-dd.ashe-wc-dd--open,
body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.is-open,
body.ashe-woocommerce-child .ashe-wc-nav-account__panel.is-open,
body.ashe-woocommerce-child #ashe-wc-search-panel.is-open {
	display: flex !important;
	animation: ashe-wc-dd-in 0.16s ease-out;
}

@keyframes ashe-wc-dd-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Filtros: sobrescreve entrada genérica do dropdown */
body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.is-open,
body.ashe-woocommerce-child .ashe-wc-nav-filter__panel.ashe-wc-dd--open,
body.ashe-woocommerce-child #ashe-wc-filter-panel.is-open,
body.ashe-woocommerce-child #ashe-wc-filter-panel.ashe-wc-dd--open {
	animation: ashe-filter-panel-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

/* Desktop: larguras preferidas (mobile sobrescreve via media query) */
@media screen and (min-width: 980px) {
	body.ashe-woocommerce-child .ashe-wc-nav-filter__panel {
		width: min(280px, calc(100vw - 24px));
	}

	body.ashe-woocommerce-child .ashe-wc-nav-account__panel {
		width: min(260px, calc(100vw - 24px));
	}
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__panel[hidden],
body.ashe-woocommerce-child .ashe-wc-nav-account__panel[hidden],
body.ashe-woocommerce-child #ashe-wc-search-panel[hidden] {
	display: none !important;
	animation: none;
}

/* Cabeçalho interno unificado dos painéis */
body.ashe-woocommerce-child .ashe-wc-nav-filter__head,
body.ashe-woocommerce-child .ashe-wc-nav-account__head,
body.ashe-woocommerce-child .ashe-wc-search-suggest__head,
body.ashe-woocommerce-child .ep-side-cart__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	flex: 0 0 auto;
	min-height: 48px;
	padding: 0.65rem 0.5rem 0.55rem 1rem;
	border-bottom: 1px solid var(--esmeralda-panel-border, #ebe8e4);
	background: var(--esmeralda-panel-bg-head, #faf9f7) !important;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__title,
body.ashe-woocommerce-child .ashe-wc-nav-account__title,
body.ashe-woocommerce-child .ashe-wc-search-suggest__title,
body.ashe-woocommerce-child .ep-side-cart__title {
	margin: 0;
	padding: 0;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--esmeralda-panel-muted, #6a6e6c) !important;
	background: transparent !important;
	border: 0;
	font-family: var(--ashe-wc-font-sans, "Open Sans", sans-serif);
}

/* Botão fechar unificado (≥40×40) */
body.ashe-woocommerce-child .ashe-wc-nav-filter__close,
body.ashe-woocommerce-child .ashe-wc-nav-account__close,
body.ashe-woocommerce-child .ashe-wc-search-suggest__close,
body.ashe-woocommerce-child .ep-side-cart__close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--esmeralda-panel-muted, #555);
	cursor: pointer;
	flex: 0 0 auto;
	transition: background 0.15s ease, color 0.15s ease;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__close:hover,
body.ashe-woocommerce-child .ashe-wc-nav-filter__close:focus-visible,
body.ashe-woocommerce-child .ashe-wc-nav-account__close:hover,
body.ashe-woocommerce-child .ashe-wc-nav-account__close:focus-visible,
body.ashe-woocommerce-child .ashe-wc-search-suggest__close:hover,
body.ashe-woocommerce-child .ashe-wc-search-suggest__close:focus-visible,
body.ashe-woocommerce-child .ep-side-cart__close:hover,
body.ashe-woocommerce-child .ep-side-cart__close:focus-visible {
	background: var(--esmeralda-panel-hover, #f0eeea);
	color: var(--esmeralda-panel-text, #1a1a1a);
	outline: none;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__close:active,
body.ashe-woocommerce-child .ashe-wc-nav-account__close:active,
body.ashe-woocommerce-child .ashe-wc-search-suggest__close:active,
body.ashe-woocommerce-child .ep-side-cart__close:active {
	background: var(--esmeralda-panel-border, #e5e1db);
}

@media screen and (max-width: 979px) {
	body.ashe-woocommerce-child .ashe-wc-nav-filter__close,
	body.ashe-woocommerce-child .ashe-wc-nav-account__close,
	body.ashe-woocommerce-child .ashe-wc-search-suggest__close,
	body.ashe-woocommerce-child .ep-side-cart__close {
		display: inline-flex !important;
	}
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__nav {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 0.3rem 0 0.75rem;
	background: var(--esmeralda-panel-bg, #fff) !important;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__link {
	display: block !important;
	padding: 0.7rem 1rem !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	font-family: var(--ashe-wc-font-sans, "Open Sans", system-ui, sans-serif) !important;
	font-size: 0.92rem !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	color: var(--esmeralda-panel-text, #1a1a1a) !important;
	text-decoration: none !important;
	transition: background 0.15s ease, color 0.15s ease;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__link--parent {
	font-weight: 600 !important;
	margin-top: 0.2rem !important;
	padding-top: 0.8rem !important;
	border-top: 1px solid #f0eeea !important;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__nav > .ashe-wc-nav-filter__link--parent:first-of-type {
	border-top: 0 !important;
	margin-top: 0 !important;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__link--child {
	padding-left: 1.5rem !important;
	font-size: 0.88rem !important;
	font-weight: 400 !important;
	color: var(--esmeralda-panel-muted, #555) !important;
}

body.ashe-woocommerce-child .ashe-wc-nav-filter__link:hover,
body.ashe-woocommerce-child .ashe-wc-nav-filter__link.is-active {
	background: var(--esmeralda-panel-hover, #f3f0ea) !important;
	color: var(--esmeralda-panel-accent, #2f4840) !important;
}

/* Conta */
body.ashe-woocommerce-child .ashe-wc-nav-account {
	position: relative;
}

body.ashe-woocommerce-child .ashe-wc-nav-account__panel {
	min-width: 200px;
	overflow: hidden;
}

body.ashe-woocommerce-child .ashe-wc-nav-account__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 0.15rem 0 0.4rem;
	background: var(--esmeralda-panel-bg, #fff);
}

body.ashe-woocommerce-child .ashe-wc-nav-account__link {
	display: block;
	padding: 0.75rem 1rem;
	font-family: var(--ashe-wc-font-sans, "Open Sans", system-ui, sans-serif);
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--esmeralda-panel-text, #1a1a1a) !important;
	text-decoration: none !important;
	transition: background 0.15s ease, color 0.15s ease;
}

body.ashe-woocommerce-child .ashe-wc-nav-account__link:hover {
	background: var(--esmeralda-panel-hover, #f7f5f1);
	color: var(--esmeralda-panel-accent, #2f4840) !important;
}

body.ashe-woocommerce-child .ashe-wc-nav-account__link--muted {
	font-weight: 400;
	color: var(--esmeralda-panel-muted, #777) !important;
	border-top: 1px solid var(--esmeralda-panel-border, #f0eeea);
	margin-top: 0.25rem;
}

body.ashe-woocommerce-child .ashe-wc-nav-account__link--muted:hover {
	color: #9b2c2c !important;
	background: var(--esmeralda-panel-hover, #faf5f5);
}

/* Busca — sugestões (temas via --esmeralda-panel-*) */
body.ashe-woocommerce-child #ashe-wc-search-panel {
	width: min(360px, calc(100vw - 24px));
}

body.ashe-woocommerce-child .ashe-wc-search-suggest {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1 1 auto;
	background: var(--esmeralda-panel-bg, #fff);
}

body.ashe-woocommerce-child .ashe-wc-search-suggest__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

body.ashe-woocommerce-child .ashe-wc-search-suggest__list {
	list-style: none;
	margin: 0;
	padding: 0.25rem 0;
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 0;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

body.ashe-woocommerce-child .ashe-wc-search-suggest__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 1rem;
	text-decoration: none !important;
	color: var(--esmeralda-panel-text, #1a1a1a) !important;
	transition: background 0.12s ease;
}

body.ashe-woocommerce-child .ashe-wc-search-suggest__link:hover,
body.ashe-woocommerce-child .ashe-wc-search-suggest__link:focus-visible,
body.ashe-woocommerce-child .ashe-wc-search-suggest__link.is-active {
	background: var(--esmeralda-panel-hover, #f3f0ea);
	outline: none;
}

body.ashe-woocommerce-child .ashe-wc-search-suggest__thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--esmeralda-panel-bg-head, #faf9f7);
	border: 1px solid var(--esmeralda-panel-border, #ebe8e4);
	display: flex;
	align-items: center;
	justify-content: center;
}

body.ashe-woocommerce-child .ashe-wc-search-suggest__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

body.ashe-woocommerce-child .ashe-wc-search-suggest__thumb--ph {
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--esmeralda-panel-muted, #8a8a8a);
}

body.ashe-woocommerce-child .ashe-wc-search-suggest__meta {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

body.ashe-woocommerce-child .ashe-wc-search-suggest__name {
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--esmeralda-panel-text, #1a1a1a);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.ashe-woocommerce-child .ashe-wc-search-suggest__price {
	font-size: 0.8rem;
	color: var(--esmeralda-panel-accent, #2f4840);
	font-weight: 600;
}

body.ashe-woocommerce-child .ashe-wc-search-suggest__empty,
body.ashe-woocommerce-child .ashe-wc-search-suggest__loading {
	margin: 0;
	padding: 1.25rem 1rem;
	font-size: 0.9rem;
	color: var(--esmeralda-panel-muted, #7a7a7a);
	text-align: center;
}

body.ashe-woocommerce-child .ashe-wc-search-suggest__all {
	display: block;
	flex: 0 0 auto;
	padding: 0.75rem 1rem;
	border-top: 1px solid var(--esmeralda-panel-border, #ebe8e4);
	background: var(--esmeralda-panel-bg-head, #faf9f7);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--esmeralda-panel-accent, #2f4840) !important;
	text-align: center;
	text-decoration: none !important;
}

body.ashe-woocommerce-child .ashe-wc-search-suggest__all:hover {
	background: var(--esmeralda-panel-hover, #f0eeea);
}

/* Estado ativo unificado nos ícones do header (verde claro / dourado escuro) */
body.ashe-woocommerce-child .ashe-wc-nav-filter__btn[aria-expanded="true"],
body.ashe-woocommerce-child .ashe-wc-nav-account__btn[aria-expanded="true"],
body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] {
	background: var(--ashe-wc-accent-soft-2, rgba(61, 92, 82, 0.12));
}

/* Mobile: mesmo padrão dropdown (sem portal/modal) */
@media screen and (max-width: 979px) {
	body.ashe-woocommerce-child #main-nav {
		position: static !important;
		top: auto !important;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-filter__head,
	body.ashe-woocommerce-child .ashe-wc-nav-account__head,
	body.ashe-woocommerce-child .ashe-wc-search-suggest__head,
	body.ashe-woocommerce-child .ep-side-cart__header {
		padding: 0.75rem 0.5rem 0.7rem 1.1rem !important;
		background: var(--esmeralda-panel-bg-head) !important;
		flex: 0 0 auto;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-filter__title,
	body.ashe-woocommerce-child .ashe-wc-nav-account__title,
	body.ashe-woocommerce-child .ashe-wc-search-suggest__title {
		font-size: 0.75rem !important;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-filter__nav {
		flex: 1 1 auto !important;
		min-height: 0 !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		padding: 0.35rem 0 0.75rem !important;
		background: var(--esmeralda-panel-bg, #fff) !important;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-filter__link {
		padding: 0.95rem 1.2rem !important;
		font-size: 1.02rem !important;
		min-height: 50px !important;
		box-sizing: border-box !important;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-filter__link--child {
		padding-left: 1.75rem !important;
		font-size: 0.96rem !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools {
		position: relative !important;
	}
}

/* Dark mode — herda --esmeralda-panel-* de brand.css; reforços pontuais */
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-nav-filter__link--parent {
	border-top-color: var(--esmeralda-panel-border) !important;
}

body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-nav-account__link--muted {
	border-top-color: var(--esmeralda-panel-border);
}

/* =========================================================================
   Tools (direita)
   ========================================================================= */
body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools.main-nav-icons {
	display: inline-flex !important;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	flex: 0 0 auto;
	height: var(--nav-control, 40px);
	margin: 0 !important;
	padding: 0;
	z-index: 30;
	position: relative;
}

body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher,
body.ashe-woocommerce-child .ashe-wc-nav-tools .ashe-wc-nav-cart,
body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle,
body.ashe-woocommerce-child .ashe-wc-nav-account__btn,
body.ashe-woocommerce-child .ashe-wc-nav-filter__btn {
	width: var(--nav-control, 40px);
	height: var(--nav-control, 40px);
	margin: 0 !important;
	padding: 0;
	float: none !important;
	line-height: 1 !important;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	visibility: visible !important;
	font-size: var(--nav-tool-ico, 18px);
	padding-top: 0 !important;
	box-sizing: border-box;
}

body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle svg,
body.ashe-woocommerce-child .ashe-wc-nav-account__btn svg,
body.ashe-woocommerce-child .ashe-wc-nav-account__icon,
body.ashe-woocommerce-child .ashe-wc-nav-filter__btn svg {
	width: var(--nav-tool-ico, 18px);
	height: var(--nav-tool-ico, 18px);
	font-size: var(--nav-tool-ico, 18px);
	display: block;
	overflow: visible;
}

/* —— Perfil: sem animação de clique (visual estático) —— */
body.ashe-woocommerce-child .ashe-wc-nav-account__btn {
	transform-origin: center center;
}

body.ashe-woocommerce-child .ashe-wc-nav-account__btn .ashe-wc-account-head,
body.ashe-woocommerce-child .ashe-wc-nav-account__btn .ashe-wc-account-body {
	transform-box: view-box;
	transition: none;
}

body.ashe-woocommerce-child .ashe-wc-nav-account__btn .ashe-wc-account-head {
	transform-origin: 12px 8px;
}

body.ashe-woocommerce-child .ashe-wc-nav-account__btn.is-animating,
body.ashe-woocommerce-child .ashe-wc-nav-account__btn.is-opening,
body.ashe-woocommerce-child .ashe-wc-nav-account__btn.is-closing {
	animation: none !important;
}

body.ashe-woocommerce-child .ashe-wc-nav-account__btn .ashe-wc-account-body {
	transform-origin: 12px 17px;
}

body.ashe-woocommerce-child .ashe-wc-nav-account__btn.is-animating {
	animation: ashe-account-btn-press 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.ashe-woocommerce-child .ashe-wc-nav-account__btn.is-animating .ashe-wc-account-head {
	animation: ashe-account-head-bob 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.ashe-woocommerce-child .ashe-wc-nav-account__btn.is-animating .ashe-wc-account-body {
	animation: ashe-account-body-wave 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Aberto: leve “saudação” do avatar */
body.ashe-woocommerce-child .ashe-wc-nav-account__btn[aria-expanded="true"] .ashe-wc-account-head {
	transform: translateY(-0.6px) scale(1.04);
}

body.ashe-woocommerce-child .ashe-wc-nav-account__btn[aria-expanded="true"] .ashe-wc-account-body {
	transform: scaleX(1.04);
}

@keyframes ashe-account-btn-press {
	0% {
		transform: scale(1) rotate(0deg);
	}
	28% {
		transform: scale(0.86) rotate(-6deg);
	}
	55% {
		transform: scale(1.1) rotate(4deg);
	}
	100% {
		transform: scale(1) rotate(0deg);
	}
}

@keyframes ashe-account-head-bob {
	0%,
	100% {
		transform: translateY(0) scale(1);
	}
	30% {
		transform: translateY(-2.2px) scale(1.08);
	}
	55% {
		transform: translateY(0.6px) scale(0.96);
	}
}

@keyframes ashe-account-body-wave {
	0%,
	100% {
		transform: scaleX(1) translateY(0);
	}
	35% {
		transform: scaleX(1.12) translateY(0.5px);
	}
	60% {
		transform: scaleX(0.94) translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.ashe-woocommerce-child .ashe-wc-nav-account__btn.is-animating,
	body.ashe-woocommerce-child .ashe-wc-nav-account__btn.is-animating .ashe-wc-account-head,
	body.ashe-woocommerce-child .ashe-wc-nav-account__btn.is-animating .ashe-wc-account-body {
		animation: none !important;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-account__btn[aria-expanded="true"] .ashe-wc-account-head,
	body.ashe-woocommerce-child .ashe-wc-nav-account__btn[aria-expanded="true"] .ashe-wc-account-body {
		transform: none;
	}
}

/*
 * Tema claro/escuro: lua (::before) + sol (::after) com morph animado.
 * Claro → lua escura | Escuro → sol branco (sem dourado).
 */
body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher {
	color: var(--ashe-wc-ink, #17191a);
	overflow: visible;
}

body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher i {
	position: relative !important;
	display: block !important;
	width: 17px !important;
	height: 17px !important;
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	background: none !important;
	background-color: transparent !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
	opacity: 1;
}

/* Camadas do ícone (FA content desligado) */
body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher i::before,
body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher i::after {
	content: '' !important;
	font-family: none !important;
	font-weight: normal !important;
	font-style: normal !important;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transition:
		opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.48s cubic-bezier(0.34, 1.4, 0.64, 1),
		background-color 0.3s ease;
	will-change: transform, opacity;
}

/* Lua (tema claro) */
body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher i::before {
	background-color: var(--ashe-wc-ink, #17191a) !important;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.2 3.1a8.9 8.9 0 1 0 7.7 14.2A9.4 9.4 0 0 1 9.6 5.4a8.8 8.8 0 0 0 3.6-2.3z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.2 3.1a8.9 8.9 0 1 0 7.7 14.2A9.4 9.4 0 0 1 9.6 5.4a8.8 8.8 0 0 0 3.6-2.3z'/%3E%3C/svg%3E");
	opacity: 0.92;
	transform: rotate(0deg) scale(1);
}

/* Sol (escondido no claro; entra no escuro) */
body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher i::after {
	background-color: #ffffff !important;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M12 2.6v1.9M12 19.5v1.9M2.6 12h1.9M19.5 12h1.9M5.2 5.2l1.35 1.35M17.45 17.45l1.35 1.35M5.2 18.8l1.35-1.35M17.45 6.55l1.35-1.35'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M12 2.6v1.9M12 19.5v1.9M2.6 12h1.9M19.5 12h1.9M5.2 5.2l1.35 1.35M17.45 17.45l1.35 1.35M5.2 18.8l1.35-1.35M17.45 6.55l1.35-1.35'/%3E%3C/svg%3E");
	opacity: 0;
	transform: rotate(-110deg) scale(0.25);
}

/* Tema escuro: lua sai, sol branco entra com rotação */
body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-nav-tools .dark-mode-switcher {
	color: #ffffff !important;
}

body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-nav-tools .dark-mode-switcher i {
	width: 17px !important;
	height: 17px !important;
}

body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-nav-tools .dark-mode-switcher i::before {
	opacity: 0;
	transform: rotate(110deg) scale(0.25);
	background-color: #ffffff !important;
}

body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-nav-tools .dark-mode-switcher i::after {
	opacity: 1;
	transform: rotate(0deg) scale(1);
	background-color: #ffffff !important;
}

/* Press no clique */
body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher:active {
	transform: scale(0.9);
}

body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher.is-theme-animating {
	animation: ashe-theme-btn-pop 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ashe-theme-btn-pop {
	0% {
		transform: scale(1) rotate(0deg);
	}
	35% {
		transform: scale(0.86) rotate(-12deg);
	}
	70% {
		transform: scale(1.08) rotate(8deg);
	}
	100% {
		transform: scale(1) rotate(0deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher i::before,
	body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher i::after {
		transition: opacity 0.15s ease;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher.is-theme-animating {
		animation: none;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher i::before,
	body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher i::after {
		transform: none !important;
	}

	body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-nav-tools .dark-mode-switcher i::before {
		opacity: 0;
	}

	body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-nav-tools .dark-mode-switcher i::after {
		opacity: 1;
	}
}

body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-switcher:hover,
body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle:hover,
body.ashe-woocommerce-child .ashe-wc-nav-account__btn:hover,
body.ashe-woocommerce-child .ashe-wc-nav-account__btn[aria-expanded="true"] {
	background: var(--ashe-wc-accent-soft, rgba(61, 92, 82, 0.1));
}

body.ashe-woocommerce-child .ashe-wc-nav-tools .dark-mode-admin-notice {
	display: none !important;
}

body.ashe-woocommerce-child .ashe-wc-nav-cart {
	position: relative;
	display: inline-flex;
}

/*
 * Carrinho — sistema unificado de motion
 * Mesmo easing/duração em hover e estado aberto.
 * Hover = elevação sutil (transições).
 * Aberto = ícone maior + boca/linhas abrem a sacola.
 */
body.ashe-woocommerce-child .ep-cart-toggle {
	--ep-cart-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ep-cart-dur: 0.48s;
	--ep-cart-dur-fast: 0.32s;
	position: relative;
	color: var(--ashe-wc-accent, #455a51) !important;
	overflow: visible;
	transition:
		background var(--ep-cart-dur-fast) var(--ep-cart-ease),
		color var(--ep-cart-dur-fast) ease,
		transform var(--ep-cart-dur-fast) var(--ep-cart-ease);
}

body.ashe-woocommerce-child .ep-cart-toggle:hover {
	color: var(--ashe-wc-accent-deep, #2c3a34) !important;
	background: var(--ashe-wc-accent-soft, rgba(69, 90, 81, 0.1));
}

body.ashe-woocommerce-child .ep-cart-toggle:active:not([aria-expanded="true"]) {
	transform: scale(0.94);
}

body.ashe-woocommerce-child .ep-cart-toggle__icon {
	display: block;
	width: 22px;
	height: 22px;
	transform-origin: 50% 20%;
	/* Sem animação de ícone (só filtro anima) */
	transition: none;
	will-change: auto;
}

body.ashe-woocommerce-child .ep-cart-toggle__icon svg,
body.ashe-woocommerce-child .ep-cart-svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

body.ashe-woocommerce-child .ep-cart-svg__bag {
	transform-box: view-box;
	transform-origin: 12px 12px;
	transition: none;
}

body.ashe-woocommerce-child .ep-cart-svg path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: none;
}

/* Corpo */
body.ashe-woocommerce-child .ep-cart-svg__body {
	fill: currentColor;
	fill-opacity: 0.08;
	transform-box: view-box;
	transform-origin: 12px 15.5px;
}

/* Alça */
body.ashe-woocommerce-child .ep-cart-svg__handle {
	transform-box: view-box;
	transform-origin: 12px 6px;
	stroke-width: 1.55;
}

/* Boca — duas metades (fechada = linha; aberta = V) */
body.ashe-woocommerce-child .ep-cart-svg__mouth {
	opacity: 0.5;
	stroke-width: 1.3;
	transform-box: view-box;
	transform-origin: 12px 12.15px;
}

body.ashe-woocommerce-child .ep-cart-svg__mouth-l,
body.ashe-woocommerce-child .ep-cart-svg__mouth-r {
	transform: rotate(0deg) translate(0, 0);
}

/* Linhas internas removidas (abertura só pela boca) */
body.ashe-woocommerce-child .ep-cart-svg__open-l,
body.ashe-woocommerce-child .ep-cart-svg__open-r {
	display: none !important;
}

body.ashe-woocommerce-child .ep-cart-svg__shine {
	opacity: 0.22;
	stroke-width: 1.2;
	transform-box: view-box;
	transform-origin: 9.35px 16px;
}

body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle .ep-cart-toggle__icon,
body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle .ep-cart-toggle__icon svg {
	width: 22px !important;
	height: 22px !important;
	font-size: 0 !important;
	color: inherit;
	stroke: currentColor;
	transition: none;
}

/* Compat */
body.ashe-woocommerce-child .ep-cart-svg__fold {
	opacity: 0.5;
	stroke-width: 1.3;
}

/* Carrinho: sem animação hover/aberto — só destaque de fundo estático */
body.ashe-woocommerce-child .ep-cart-toggle:hover:not([aria-expanded="true"]) .ep-cart-toggle__icon,
body.ashe-woocommerce-child .ep-cart-toggle:focus-visible:not([aria-expanded="true"]) .ep-cart-toggle__icon,
body.ashe-woocommerce-child .ep-cart-toggle:hover:not([aria-expanded="true"]) .ep-cart-svg__bag,
body.ashe-woocommerce-child .ep-cart-toggle:focus-visible:not([aria-expanded="true"]) .ep-cart-svg__bag,
body.ashe-woocommerce-child .ep-cart-toggle:hover:not([aria-expanded="true"]) .ep-cart-svg__handle,
body.ashe-woocommerce-child .ep-cart-toggle:focus-visible:not([aria-expanded="true"]) .ep-cart-svg__handle,
body.ashe-woocommerce-child .ep-cart-toggle:hover:not([aria-expanded="true"]) .ep-cart-svg__body,
body.ashe-woocommerce-child .ep-cart-toggle:focus-visible:not([aria-expanded="true"]) .ep-cart-svg__body,
body.ashe-woocommerce-child .ep-cart-toggle:hover:not([aria-expanded="true"]) .ep-cart-svg__mouth-l,
body.ashe-woocommerce-child .ep-cart-toggle:focus-visible:not([aria-expanded="true"]) .ep-cart-svg__mouth-l,
body.ashe-woocommerce-child .ep-cart-toggle:hover:not([aria-expanded="true"]) .ep-cart-svg__mouth-r,
body.ashe-woocommerce-child .ep-cart-toggle:focus-visible:not([aria-expanded="true"]) .ep-cart-svg__mouth-r,
body.ashe-woocommerce-child .ep-cart-toggle:hover:not([aria-expanded="true"]) .ep-cart-svg__shine,
body.ashe-woocommerce-child .ep-cart-toggle:focus-visible:not([aria-expanded="true"]) .ep-cart-svg__shine,
body.ashe-woocommerce-child .ep-cart-toggle:hover:not([aria-expanded="true"]) .ep-cart-count:not(.is-empty),
body.ashe-woocommerce-child .ep-cart-toggle:focus-visible:not([aria-expanded="true"]) .ep-cart-count:not(.is-empty) {
	transform: none;
}

body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] {
	background: var(--ashe-wc-accent-soft-2, rgba(61, 92, 82, 0.12));
	transform: none;
}

body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] .ep-cart-toggle__icon {
	transform: none;
}

body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle[aria-expanded="true"] .ep-cart-toggle__icon,
body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle[aria-expanded="true"] .ep-cart-toggle__icon svg {
	width: 22px !important;
	height: 22px !important;
}

body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] .ep-cart-svg__bag,
body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] .ep-cart-svg__mouth-l,
body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] .ep-cart-svg__mouth-r,
body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] .ep-cart-svg__open-l,
body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] .ep-cart-svg__open-r,
body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] .ep-cart-svg__body,
body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] .ep-cart-svg__handle,
body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] .ep-cart-svg__shine {
	transform: none;
	transition: none;
	transition-delay: 0s;
}

body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] .ep-cart-svg path {
	stroke-width: 1.62;
}

body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] .ep-cart-count:not(.is-empty) {
	transform: scale(1.1) translate(1px, -1px);
}

/* Entrada suave ao abrir (uma vez) */
body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] .ep-cart-toggle__icon {
	animation: ep-cart-open-in 0.52s var(--ep-cart-ease) both;
}

@keyframes ep-cart-open-in {
	0% {
		transform: translateY(0) scale(1);
		opacity: 0.92;
	}
	55% {
		transform: translateY(-2px) scale(1.26);
		opacity: 1;
	}
	100% {
		transform: translateY(-1px) scale(1.22);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.ashe-woocommerce-child .ep-cart-toggle,
	body.ashe-woocommerce-child .ep-cart-toggle__icon,
	body.ashe-woocommerce-child .ep-cart-svg path,
	body.ashe-woocommerce-child .ep-cart-svg__bag,
	body.ashe-woocommerce-child .ep-cart-svg__open-l,
	body.ashe-woocommerce-child .ep-cart-svg__open-r,
	body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle .ep-cart-toggle__icon,
	body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle .ep-cart-toggle__icon svg,
	body.ashe-woocommerce-child .ep-cart-count {
		transition: none !important;
		animation: none !important;
	}

	body.ashe-woocommerce-child .ep-cart-toggle:hover:not([aria-expanded="true"]) .ep-cart-toggle__icon {
		transform: scale(1.06);
	}

	body.ashe-woocommerce-child .ep-cart-toggle[aria-expanded="true"] .ep-cart-toggle__icon {
		transform: scale(1.18);
	}
}

body.ashe-woocommerce-child .ep-cart-count {
	position: absolute;
	top: 1px;
	right: 0;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 99px;
	background: var(--ashe-wc-accent, #455a51);
	color: #fff;
	font-size: 9.5px;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
	font-family: 'Open Sans', sans-serif;
	transform-origin: center;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body.ashe-woocommerce-child.ashe-dark-mode .ep-cart-count {
	background: var(--ashe-wc-accent, #cbb79c);
	color: #14120f;
}

body.ashe-woocommerce-child .ep-cart-count.is-empty {
	display: none;
}

@media screen and (min-width: 1200px) {
	body.ashe-woocommerce-child .ep-cart-toggle__icon,
	body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle .ep-cart-toggle__icon,
	body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle .ep-cart-toggle__icon svg {
		width: 23px !important;
		height: 23px !important;
	}
}

@media screen and (max-width: 979px) {
	body.ashe-woocommerce-child .ep-cart-toggle__icon,
	body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle .ep-cart-toggle__icon,
	body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle .ep-cart-toggle__icon svg {
		width: 23px !important;
		height: 23px !important;
	}
}

/* Mobile menu button — base (visível só no breakpoint) */
body.ashe-woocommerce-child #main-nav .mobile-menu-btn.ashe-wc-mobile-toggle {
	display: none;
	order: 3;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1f1f1f;
	cursor: pointer;
	line-height: 1;
	flex: 0 0 auto;
	transition: background 0.2s ease;
}

body.ashe-woocommerce-child #main-nav .mobile-menu-btn.ashe-wc-mobile-toggle:hover {
	background: var(--ashe-wc-accent-soft, rgba(61, 92, 82, 0.1));
	color: var(--ashe-wc-accent-deep, #1f1f1f);
}

/* Hamburger → X */
body.ashe-woocommerce-child .ashe-wc-burger {
	display: block;
	position: relative;
	width: 18px;
	height: 14px;
}

body.ashe-woocommerce-child .ashe-wc-burger span {
	display: block;
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}

body.ashe-woocommerce-child .ashe-wc-burger span:nth-child(1) {
	top: 0;
}

body.ashe-woocommerce-child .ashe-wc-burger span:nth-child(2) {
	top: 6px;
}

body.ashe-woocommerce-child .ashe-wc-burger span:nth-child(3) {
	top: 12px;
}

/* X quando aberto: body class OU aria-expanded (fonte de verdade no botão) */
body.ashe-woocommerce-child.ashe-wc-mobile-open .ashe-wc-burger span:nth-child(1),
body.ashe-woocommerce-child .mobile-menu-btn[aria-expanded="true"] .ashe-wc-burger span:nth-child(1) {
	top: 6px;
	transform: rotate(45deg);
}

body.ashe-woocommerce-child.ashe-wc-mobile-open .ashe-wc-burger span:nth-child(2),
body.ashe-woocommerce-child .mobile-menu-btn[aria-expanded="true"] .ashe-wc-burger span:nth-child(2) {
	opacity: 0;
}

body.ashe-woocommerce-child.ashe-wc-mobile-open .ashe-wc-burger span:nth-child(3),
body.ashe-woocommerce-child .mobile-menu-btn[aria-expanded="true"] .ashe-wc-burger span:nth-child(3) {
	top: 6px;
	transform: rotate(-45deg);
}

/* Fechado: garante barras (anula residual de animação) */
body.ashe-woocommerce-child .mobile-menu-btn[aria-expanded="false"] .ashe-wc-burger span:nth-child(1),
body.ashe-woocommerce-child .mobile-menu-btn:not([aria-expanded="true"]) .ashe-wc-burger span:nth-child(1) {
	top: 0;
	transform: none;
}

body.ashe-woocommerce-child .mobile-menu-btn[aria-expanded="false"] .ashe-wc-burger span:nth-child(2),
body.ashe-woocommerce-child .mobile-menu-btn:not([aria-expanded="true"]) .ashe-wc-burger span:nth-child(2) {
	opacity: 1;
}

body.ashe-woocommerce-child .mobile-menu-btn[aria-expanded="false"] .ashe-wc-burger span:nth-child(3),
body.ashe-woocommerce-child .mobile-menu-btn:not([aria-expanded="true"]) .ashe-wc-burger span:nth-child(3) {
	top: 12px;
	transform: none;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media screen and (min-width: 980px) and (max-width: 1199px) {
	body.ashe-woocommerce-child #main-nav {
		--nav-h: 64px;
		--nav-pad-y: 0.25rem;
		--nav-logo: 46px;
		--nav-link-fs: 12.75px;
		--nav-search-h: 38px;
		--nav-control: 38px;
		--nav-ico: 21px;
		--nav-tool-ico: 17px;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-search-wrap {
		flex: 1 1 auto !important;
		min-width: 140px;
		max-width: none !important;
	}

	body.ashe-woocommerce-child #main-nav #main-menu > li > a {
		padding: 0.35rem 0.45rem !important;
		letter-spacing: 0.015em;
	}
}

/* =========================================================================
   MOBILE ≤979px — topbar fixa + busca com ímã
   Topbar: Logo | Tema · Perfil · Sacola | Hamburger (fixed)
   Busca+categorias: rola; perto do topo gruda sob a topbar
   Painéis: sob a busca se dockada; senão sob os ícones
   ========================================================================= */
@media screen and (max-width: 979px) {
	body.ashe-woocommerce-child #main-nav {
		--nav-h: auto;
		--nav-pad-y: 0.35rem;
		--nav-logo: 36px;
		--nav-control: 38px;
		--nav-search-h: 40px;
		--nav-link-fs: 15px;
		--nav-ico: 20px;
		--nav-tool-ico: 18px;
		--ashe-wc-topbar-h: 52px;
		--ashe-wc-search-strip-h: 52px;
		background: transparent !important;
		border-bottom: 0 !important;
		box-shadow: none !important;
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
		position: relative !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		width: 100% !important;
		transform: none !important;
		z-index: 1200 !important;
	}

	/* Sombra: quando grudados, só na busca (evita linha no meio dos ícones) */
	body.ashe-woocommerce-child #main-nav.is-scrolled .ashe-wc-nav-topbar {
		box-shadow: none !important;
	}

	/* Sombra no scroll: só na borda inferior do bloco, sem 2 linhas */
	body.ashe-woocommerce-child.ashe-wc-search-docked .ashe-wc-nav-search-wrap {
		box-shadow: none !important;
	}

	body.ashe-woocommerce-child:not(.ashe-wc-search-docked) #main-nav.is-scrolled .ashe-wc-nav-topbar {
		box-shadow: none !important;
	}

	body.ashe-woocommerce-child #main-nav > div.ashe-wc-nav-inner {
		display: block !important;
		min-height: 0 !important;
		/* Zero vertical padding: o spacer (::before + slot) já define a altura exacta */
		padding: 0 !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		margin: 0 !important;
		border: 0 !important;
		row-gap: 0 !important;
		gap: 0 !important;
	}

	/* —— TOPBAR fixa (só ícones) —— */
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-topbar {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		z-index: 1205 !important;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		grid-template-areas: "brand actions toggle";
		align-items: center !important;
		column-gap: 0.15rem;
		min-height: var(--ashe-wc-topbar-h, 52px);
		/* padding-bottom 0: sem vão antes da busca quando grudada */
		padding: 0.35rem 10px 0 12px !important;
		background: var(--ashe-wc-white, #fff) !important;
		border-bottom: 0 !important;
		box-sizing: border-box !important;
		transition: box-shadow 0.2s ease, border-color 0.15s ease;
		isolation: isolate;
	}

	/* Busca solta: aí sim linha sob os ícones */
	body.ashe-woocommerce-child:not(.ashe-wc-search-docked) #main-nav .ashe-wc-nav-topbar {
		border-bottom: 1px solid var(--ashe-wc-line, #e5e1db) !important;
		padding-bottom: 0.35rem !important;
	}

	body.admin-bar.ashe-woocommerce-child #main-nav .ashe-wc-nav-topbar {
		top: var(--ashe-wc-admin-bar-h, 46px) !important;
	}

	/* Reserva no fluxo o espaço da topbar fixa */
	body.ashe-woocommerce-child #main-nav > div.ashe-wc-nav-inner::before {
		content: "";
		display: block;
		height: var(--ashe-wc-topbar-h, 52px);
		width: 100%;
		pointer-events: none;
	}

	body.admin-bar.ashe-woocommerce-child #main-nav > div.ashe-wc-nav-inner::before {
		/* admin bar já empurra html; topbar fixed sob ela — spacer só topbar */
		height: var(--ashe-wc-topbar-h, 52px);
	}

	/* Logo — esquerda */
	body.ashe-woocommerce-child .ashe-wc-nav-brand {
		grid-area: brand !important;
		order: unset !important;
		flex: unset !important;
		width: auto !important;
		max-width: 100% !important;
		min-width: 0 !important;
		padding-right: 0.15rem;
		justify-self: start !important;
		align-self: center !important;
		overflow: hidden;
		position: relative !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		float: none !important;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-logo {
		min-height: var(--nav-logo, 36px);
		min-width: 0;
		max-width: 100%;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-logo__img {
		height: var(--nav-logo, 36px) !important;
		max-height: var(--nav-logo, 36px) !important;
		width: auto !important;
		max-width: 100% !important;
		object-fit: contain !important;
	}

	/* Centro: tema · perfil · sacola */
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools.main-nav-icons,
	body.ashe-woocommerce-child #main-nav .main-nav-icons {
		grid-area: actions !important;
		order: unset !important;
		flex: 0 0 auto !important;
		margin: 0 !important;
		padding: 0 !important;
		justify-self: center !important;
		align-self: center !important;
		height: var(--nav-control, 38px) !important;
		min-height: var(--nav-control, 38px) !important;
		gap: 2px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		min-width: 0 !important;
		width: auto !important;
		max-width: none !important;
		position: relative !important;
		top: auto !important;
		right: auto !important;
		left: auto !important;
		bottom: auto !important;
		float: none !important;
		transform: none !important;
		z-index: 60;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .ashe-wc-nav-filter {
		display: none !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .dark-mode-switcher,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .ashe-wc-nav-account,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .ashe-wc-nav-cart,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .ep-cart-toggle,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .ashe-wc-nav-account__btn {
		display: inline-flex !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .dark-mode-switcher {
		order: 1;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .ashe-wc-nav-account {
		order: 2;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .ashe-wc-nav-cart {
		order: 3;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .ep-cart-toggle,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .ashe-wc-nav-account__btn,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .dark-mode-switcher {
		width: var(--nav-control, 38px) !important;
		height: var(--nav-control, 38px) !important;
		border-radius: 50% !important;
		background: transparent !important;
		color: var(--ashe-wc-ink, #17191a) !important;
		opacity: 1;
		transition: background 0.2s ease, color 0.2s ease !important;
	}

	body.ashe-woocommerce-child #main-nav .mobile-menu-btn.ashe-wc-mobile-toggle {
		width: var(--nav-control, 38px) !important;
		height: var(--nav-control, 38px) !important;
		border-radius: 0 !important;
		background: transparent !important;
		color: var(--ashe-wc-ink, #17191a) !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .ep-cart-toggle:hover,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .ep-cart-toggle:focus-visible,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .ashe-wc-nav-account__btn:hover,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .ashe-wc-nav-account__btn:focus-visible,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .dark-mode-switcher:hover,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools .dark-mode-switcher:focus-visible {
		background: var(--ashe-wc-accent-soft, rgba(61, 92, 82, 0.1)) !important;
		color: var(--ashe-wc-moss-deep, #2c3a34) !important;
		opacity: 1;
	}

	/* Hamburger — direita, sem círculo */
	body.ashe-woocommerce-child #main-nav .mobile-menu-btn.ashe-wc-mobile-toggle {
		grid-area: toggle !important;
		display: inline-flex !important;
		order: unset !important;
		flex: 0 0 var(--nav-control, 38px) !important;
		margin: 0 !important;
		justify-self: end !important;
		align-self: center !important;
		position: relative !important;
		top: auto !important;
		right: auto !important;
		left: auto !important;
		float: none !important;
		z-index: 61;
		border-radius: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		outline: none !important;
	}

	body.ashe-woocommerce-child #main-nav .mobile-menu-btn.ashe-wc-mobile-toggle:hover,
	body.ashe-woocommerce-child #main-nav .mobile-menu-btn.ashe-wc-mobile-toggle:focus,
	body.ashe-woocommerce-child #main-nav .mobile-menu-btn.ashe-wc-mobile-toggle:focus-visible,
	body.ashe-woocommerce-child #main-nav .mobile-menu-btn.ashe-wc-mobile-toggle:active,
	body.ashe-woocommerce-child #main-nav .mobile-menu-btn.ashe-wc-mobile-toggle[aria-expanded="true"] {
		background: transparent !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		outline: none !important;
		color: var(--ashe-wc-ink, #17191a) !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-menu {
		display: none !important;
	}

	body.ashe-woocommerce-child.ashe-dark-mode #main-nav .ashe-wc-nav-topbar {
		background: var(--ashe-dm-surface, #1a1f1d) !important;
		border-bottom-color: #2e3238 !important;
	}

	body.ashe-woocommerce-child.ashe-dark-mode #main-nav .ashe-wc-nav-tools .ep-cart-toggle,
	body.ashe-woocommerce-child.ashe-dark-mode #main-nav .ashe-wc-nav-tools .ashe-wc-nav-account__btn,
	body.ashe-woocommerce-child.ashe-dark-mode #main-nav .ashe-wc-nav-tools .dark-mode-switcher,
	body.ashe-woocommerce-child.ashe-dark-mode #main-nav .mobile-menu-btn.ashe-wc-mobile-toggle {
		color: #f0ebe4 !important;
	}

	/*
	 * BUSCA mobile — sempre position:fixed (JS define top).
	 * Slot no fluxo mantém o espaço; ímã gruda sob a topbar.
	 * SEM linha entre ícones e busca quando dockada.
	 */
	body.ashe-woocommerce-child #main-nav .ashe-wc-search-slot {
		display: block !important;
		/* Altura exacta da faixa de busca — evita faixa vazia sob o header */
		height: var(--ashe-wc-search-strip-h, 48px) !important;
		min-height: 0 !important;
		width: 100% !important;
		pointer-events: none !important;
		flex: none !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		overflow: hidden !important;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-search-wrap {
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		top: calc(var(--ashe-wc-admin-bar-h, 0px) + var(--ashe-wc-topbar-h, 52px)) !important;
		z-index: 1200 !important;
		display: flex !important;
		align-items: center !important;
		gap: 0.35rem !important;
		margin: 0 !important;
		/* Compacto: menos padding = menos “faixa vazia” sob o header */
		padding: 0.3rem 12px 0.35rem !important;
		box-sizing: border-box !important;
		background: var(--ashe-wc-white, #fff) !important;
		border: 0 !important;
		border-top: 0 !important;
		/* Uma só divisória no fundo do bloco header+busca */
		border-bottom: 1px solid var(--ashe-wc-line, #e5e1db) !important;
		box-shadow: none !important;
		will-change: top;
		transition: none;
	}

	/* Dockada: bloco único (topbar + busca), sem costura nem 2.ª linha */
	body.ashe-woocommerce-child.ashe-wc-search-docked .ashe-wc-nav-topbar {
		border-bottom: 0 !important;
		box-shadow: none !important;
		padding-bottom: 0 !important;
	}

	body.ashe-woocommerce-child.ashe-wc-search-docked .ashe-wc-nav-search-wrap {
		border-top: 0 !important;
		margin-top: 0 !important;
		padding-top: 0.15rem !important;
		/* Sombra suave sem parecer 2.ª linha divisória */
		box-shadow: none !important;
	}

	/* Solta: acompanha o slot — uma linha só */
	body.ashe-woocommerce-child:not(.ashe-wc-search-docked) .ashe-wc-nav-search-wrap {
		padding-top: 0.3rem !important;
		margin-top: 0 !important;
		box-shadow: none !important;
	}

	body.ashe-woocommerce-child.ashe-dark-mode .ashe-wc-nav-search-wrap {
		background: var(--ashe-dm-surface, #1a1f1d) !important;
		border-bottom-color: #2e3238 !important;
	}

	body.ashe-woocommerce-child.ashe-dark-mode.ashe-wc-search-docked .ashe-wc-nav-topbar {
		border-bottom: 0 !important;
		background: var(--ashe-dm-surface, #1a1f1d) !important;
	}

	body.ashe-woocommerce-child.ashe-dark-mode.ashe-wc-search-docked .ashe-wc-nav-search-wrap {
		background: var(--ashe-dm-surface, #1a1f1d) !important;
	}

	/* Filtro de categorias: esquerda da busca */
	body.ashe-woocommerce-child .ashe-wc-nav-search-wrap > .ashe-wc-nav-filter {
		order: 0 !important;
		display: block !important;
		flex: 0 0 auto;
		position: relative;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-search-wrap > .ashe-wc-nav-searchbar {
		order: 1 !important;
		flex: 1 1 auto !important;
		min-width: 0 !important;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-search-wrap .ashe-wc-nav-filter__btn {
		width: var(--nav-control, 40px) !important;
		height: var(--nav-control, 40px) !important;
		border-radius: 50% !important;
		background: transparent;
		color: var(--ashe-wc-ink, #17191a);
	}

	body.ashe-woocommerce-child .ashe-wc-nav-search-wrap .ashe-wc-nav-filter__btn:hover,
	body.ashe-woocommerce-child .ashe-wc-nav-search-wrap .ashe-wc-nav-filter__btn[aria-expanded="true"] {
		background: var(--ashe-wc-accent-soft, rgba(61, 92, 82, 0.1));
		color: var(--ashe-wc-moss-deep, #2c3a34);
	}

	body.ashe-woocommerce-child .ashe-wc-nav-searchbar {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		max-width: none !important;
	}

	/* Pílula arredondada (estilos anteriores) */
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-searchbar #searchform,
	body.ashe-woocommerce-child #main-nav #searchform.ashe-wc-product-search {
		height: var(--nav-search-h, 40px) !important;
		min-height: var(--nav-search-h, 40px) !important;
		padding: 0 4px 0 12px !important;
		border-radius: 999px !important;
		border: 1px solid var(--ashe-wc-line, #e4e7e4) !important;
		background: var(--ashe-wc-paper, #f7f5f1) !important;
		box-shadow: none !important;
		gap: 6px !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-searchbar #searchform:focus-within {
		border-color: color-mix(in srgb, var(--ashe-wc-moss, #455a51) 40%, var(--ashe-wc-line, #e4e7e4)) !important;
		background: var(--ashe-wc-white, #fff) !important;
		box-shadow: 0 0 0 3px rgba(69, 90, 81, 0.1) !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-searchbar #s,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-searchbar input[type="search"] {
		height: calc(var(--nav-search-h, 40px) - 2px) !important;
		min-height: calc(var(--nav-search-h, 40px) - 2px) !important;
		line-height: calc(var(--nav-search-h, 40px) - 2px) !important;
		font-size: 14px !important;
		font-weight: 400 !important;
		padding: 0 !important;
		color: var(--ashe-wc-ink, #17191a) !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-searchbar #s::placeholder {
		color: var(--ashe-wc-muted, #6a6e6c) !important;
		opacity: 0.9;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-searchbar__icon {
		color: var(--ashe-wc-muted, #6a6e6c);
		opacity: 0.85;
		width: 16px;
		height: 16px;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-searchbar__icon svg,
	body.ashe-woocommerce-child .ashe-wc-search-lupa {
		width: 15px !important;
		height: 15px !important;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-searchbar__submit {
		width: 32px;
		height: 32px;
		border-radius: 50% !important;
		color: var(--ashe-wc-moss-deep, #2c3a34) !important;
		opacity: 0.85;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-searchbar__submit:hover {
		background: var(--ashe-wc-accent-soft, rgba(61, 92, 82, 0.1)) !important;
		opacity: 1;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-tools .ep-cart-toggle svg {
		width: var(--nav-tool-ico, 18px) !important;
		height: var(--nav-tool-ico, 18px) !important;
	}

	body.ashe-woocommerce-child #main-nav .ep-cart-count {
		top: 2px !important;
		right: 0 !important;
		min-width: 16px !important;
		height: 16px !important;
		font-size: 9px !important;
		font-weight: 600 !important;
		border-radius: 99px !important;
		background: var(--ashe-wc-moss-deep, #2c3a34) !important;
		border: 0 !important;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu .ashe-wc-nav-ico {
		width: var(--nav-ico, 18px);
		height: var(--nav-ico, 18px);
		flex-basis: var(--nav-ico, 18px);
		opacity: 0.8;
	}

	/* Painel do filtro — alinhado à esquerda da busca no mobile */
	body.ashe-woocommerce-child .ashe-wc-nav-search-wrap .ashe-wc-nav-filter__panel,
	body.ashe-woocommerce-child .ashe-wc-nav-search-wrap #ashe-wc-filter-panel {
		left: 0 !important;
		right: auto !important;
		width: min(280px, calc(100vw - 24px)) !important;
		max-width: calc(100vw - 24px) !important;
	}


	/*
	 * Dropdowns mobile — não cortar na tela
	 */
	body.ashe-woocommerce-child #main-nav,
	body.ashe-woocommerce-child #main-nav > div.ashe-wc-nav-inner,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools,
	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-search-wrap,
	body.ashe-woocommerce-child .ashe-wc-nav-account,
	body.ashe-woocommerce-child .ashe-wc-nav-filter,
	body.ashe-woocommerce-child .ashe-wc-nav-cart {
		overflow: visible !important;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-tools {
		height: var(--nav-control, 40px) !important;
		min-height: var(--nav-control, 40px) !important;
		align-items: center;
		position: relative !important;
		top: auto !important;
		right: auto !important;
		left: auto !important;
		float: none !important;
		z-index: 60;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-account {
		position: static !important;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-account__panel {
		position: absolute !important;
		top: calc(100% + 8px) !important;
		right: 0 !important;
		left: auto !important;
		width: min(240px, calc(100vw - 32px)) !important;
		max-width: calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)) !important;
		min-width: 180px;
		max-height: min(70vh, 360px);
		overflow-x: hidden;
		overflow-y: auto;
		z-index: 1600 !important;
		margin-right: 0;
	}

	body.ashe-woocommerce-child #main-nav .main-nav-icons {
		position: relative !important;
		top: auto !important;
		right: auto !important;
		left: auto !important;
		float: none !important;
	}

	/*
	 * Menu hamburger: fixo logo abaixo do header (busca).
	 * Fora do fluxo do grid → header não “cresce” ao abrir.
	 */
	body.ashe-woocommerce-child #main-nav .mobile-menu-container {
		grid-area: unset !important;
		order: unset !important;
		flex: unset !important;
		position: fixed !important;
		top: var(--ashe-wc-header-bottom, calc(var(--ashe-wc-admin-bar-h, 0px) + var(--ashe-wc-nav-h, 110px))) !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		max-height: calc(100dvh - var(--ashe-wc-header-bottom, 110px) - 8px) !important;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		clear: both;
		display: none;
		margin: 0 !important;
		padding: 0.25rem 12px 0.5rem !important;
		border-top: 1px solid #ebe8e4;
		background: #fff;
		box-sizing: border-box;
		border-radius: 0 0 12px 12px;
		box-shadow: 0 14px 32px rgba(23, 25, 26, 0.12);
		z-index: 1195 !important;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu {
		list-style: none !important;
		margin: 0 !important;
		padding: 0.2rem 0 0.15rem !important;
		width: 100% !important;
		text-align: left !important;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu > li {
		position: relative;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		text-align: left !important;
		border-bottom: 1px solid #f0eeea;
		float: none !important;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu > li:last-child {
		border-bottom: 0;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu li a {
		display: flex !important;
		align-items: center;
		gap: 0.65rem;
		width: 100% !important;
		min-height: 52px;
		padding: 0.9rem 0.5rem !important;
		margin: 0 !important;
		font-family: 'Open Sans', sans-serif !important;
		font-size: 16px !important;
		font-weight: 500 !important;
		letter-spacing: 0.01em;
		line-height: 1.3 !important;
		text-align: left !important;
		text-decoration: none !important;
		text-indent: 0 !important;
		color: #1a1a1a !important;
		box-sizing: border-box;
		transition: background 0.15s ease, color 0.15s ease;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu .ashe-wc-nav-ico {
		width: 18px;
		height: 18px;
		flex: 0 0 18px;
		opacity: 0.8;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu li a:hover,
	body.ashe-woocommerce-child #main-nav #mobile-menu li.current-menu-item > a,
	body.ashe-woocommerce-child #main-nav #mobile-menu li.current-menu-ancestor > a {
		color: var(--ashe-wc-accent-deep, #2f4840) !important;
		background: var(--ashe-wc-moss-soft, #f7f5f1) !important;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu li.menu-item-has-children > a {
		padding-right: 3rem !important;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu .sub-menu-btn-icon {
		position: absolute !important;
		top: 50% !important;
		right: 0.25rem !important;
		left: auto !important;
		transform: translateY(-50%);
		z-index: 6;
		padding: 0.5rem;
		color: #888;
		font-size: 12px;
		line-height: 1;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu .sub-menu-btn {
		position: absolute !important;
		top: 0 !important;
		right: 0 !important;
		left: auto !important;
		width: 52px !important;
		height: 100% !important;
		min-height: 52px;
		padding: 0 !important;
		z-index: 4;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu .sub-menu {
		display: none;
		margin: 0 !important;
		padding: 0 0 0.25rem 0.75rem !important;
		list-style: none !important;
		border-top: 1px solid #f0eeea;
		background: #faf9f7;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu .sub-menu li {
		border-bottom: 0 !important;
		width: 100% !important;
		text-align: left !important;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu .sub-menu li a {
		min-height: 46px;
		padding: 0.75rem 0.5rem !important;
		font-size: 15px !important;
		font-weight: 400 !important;
		color: #444 !important;
	}

	body.ashe-woocommerce-child #main-nav #mobile-menu .sub-menu li a:hover {
		color: var(--ashe-wc-accent-deep, #2f4840) !important;
		background: var(--ashe-wc-white, #fff) !important;
	}

	body.ashe-woocommerce-child.ashe-wc-mobile-open #main-nav {
		box-shadow: 0 10px 28px var(--ashe-wc-accent-soft, rgba(47, 72, 64, 0.1));
	}

	/*
	 * Busca mobile — comportamento correcto (não invertido):
	 *  · Menu hamburger aberto → busca VISÍVEL e grudada sob ícones
	 *  · Carrinho / perfil abertos → busca OCULTA (painel sob a topbar)
	 *  · Filtro de categorias → busca permanece (é vizinha do filtro)
	 */
	body.ashe-woocommerce-child.ashe-wc-mobile-open .ashe-wc-nav-search-wrap {
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		z-index: 1202 !important;
	}

	body.ashe-woocommerce-child.ashe-wc-hide-search-strip .ashe-wc-nav-search-wrap,
	body.ashe-woocommerce-child.ashe-wc-dd-kind-cart .ashe-wc-nav-search-wrap,
	body.ashe-woocommerce-child.ashe-wc-dd-kind-account .ashe-wc-nav-search-wrap {
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		/* Mantém no DOM (altura/slot) mas fora de vista */
		transform: translateY(-120%) !important;
	}

	body.ashe-woocommerce-child.ashe-wc-hide-search-strip .ashe-wc-search-slot,
	body.ashe-woocommerce-child.ashe-wc-dd-kind-cart .ashe-wc-search-slot,
	body.ashe-woocommerce-child.ashe-wc-dd-kind-account .ashe-wc-search-slot {
		height: 0 !important;
		min-height: 0 !important;
		overflow: hidden !important;
	}

	/* Menu por cima da página mas por baixo da busca/topbar */
	body.ashe-woocommerce-child.ashe-wc-mobile-open #main-nav .mobile-menu-container {
		z-index: 1190 !important;
	}

	body.ashe-woocommerce-child.ashe-dark-mode #main-nav #mobile-menu li a {
		color: var(--ashe-dm-text, #f3f0ec) !important;
	}

	body.ashe-woocommerce-child.ashe-dark-mode #main-nav #mobile-menu li a:hover,
	body.ashe-woocommerce-child.ashe-dark-mode #main-nav #mobile-menu li.current-menu-item > a,
	body.ashe-woocommerce-child.ashe-dark-mode #main-nav #mobile-menu li.current-menu-ancestor > a {
		color: var(--ashe-dm-accent, #cbb79c) !important;
		background: var(--ashe-wc-accent-soft, rgba(203, 183, 156, 0.12)) !important;
	}

	body.ashe-woocommerce-child.ashe-dark-mode #main-nav #mobile-menu .sub-menu {
		background: var(--ashe-dm-elevated, #1f2228) !important;
		border-top-color: var(--ashe-dm-border, #2e3238) !important;
	}

	body.ashe-woocommerce-child.ashe-dark-mode #main-nav #mobile-menu .sub-menu li a {
		color: var(--ashe-dm-text-2, #b8b4ae) !important;
	}

	body.ashe-woocommerce-child.ashe-dark-mode #main-nav #mobile-menu .sub-menu li a:hover {
		color: var(--ashe-dm-accent, #cbb79c) !important;
		background: var(--ashe-dm-surface, #16181c) !important;
	}

	body.ashe-woocommerce-child.ashe-dark-mode #main-nav .mobile-menu-btn.ashe-wc-mobile-toggle {
		color: var(--ashe-dm-text, #f3f0ec);
	}

	body.ashe-woocommerce-child.ashe-dark-mode #main-nav .mobile-menu-container {
		border-top-color: #2e3238 !important;
		background: var(--ashe-dm-surface, #1a1f1d) !important;
	}
}

@media screen and (max-width: 480px) {
	body.ashe-woocommerce-child #main-nav {
		--nav-logo: 34px;
		--nav-control: 38px;
		--nav-search-h: 38px;
		--nav-tool-ico: 17px;
	}

	body.ashe-woocommerce-child #main-nav > div.ashe-wc-nav-inner {
		/* Só laterais — pt/pb a 0 evita faixa vazia entre busca e hero */
		padding-left: 10px !important;
		padding-right: 10px !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		row-gap: 0 !important;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-logo__img {
		height: var(--nav-logo, 34px) !important;
		max-height: var(--nav-logo, 34px) !important;
		width: auto !important;
		max-width: min(132px, 44vw) !important;
		object-fit: contain !important;
	}

	body.ashe-woocommerce-child .ashe-wc-nav-brand {
		max-width: none;
		flex: 1 1 auto;
	}

	body.ashe-woocommerce-child #main-nav .ashe-wc-nav-searchbar #searchform,
	body.ashe-woocommerce-child #main-nav #searchform.ashe-wc-product-search {
		padding: 0 3px 0 10px !important;
	}
}
