/* =============================================================================
   ElementorPlus — Widget Menu Mobile (drawer estilo app)
   Botão hambúrguer + painel deslizante (off-canvas) com overlay. Mobile-first,
   acessível (foco/Esc/scroll-lock via JS). Prefixo: epmm-.
   ============================================================================= */

.epmm {
	--epmm-panel: #0f1826;
	--epmm-accent: #2563eb;
	--epmm-text: #e6eaf2;
	--epmm-muted: #93a1b5;
	--epmm-border: rgba(255, 255, 255, 0.08);
	--epmm-width: 320px;
	box-sizing: border-box;
}

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

/* =============================================================================
   BOTÃO (hambúrguer)
   ============================================================================= */
.epmm-bar {
	display: flex;
	align-items: center;
}

.epmm-toggle {
	--epmm-btn-size: 48px;
	--epmm-btn-color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: var(--epmm-btn-size);
	height: var(--epmm-btn-size);
	padding: 0 14px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	line-height: 0;
	transition: filter .18s ease, transform .05s ease;
}

/* O tema/Elementor costuma pintar <button> de rosa (fundo E borda), inclusive
   em :hover/:focus/:active. Forçamos o visual do botão em TODOS os estados com
   !important para vencer essa herança. */
.epmm .epmm-toggle,
.epmm .epmm-toggle:hover,
.epmm .epmm-toggle:focus,
.epmm .epmm-toggle:active,
.epmm .epmm-toggle:visited {
	background: var(--epmm-accent) !important;
	background-color: var(--epmm-accent) !important;
	color: var(--epmm-btn-color) !important;
	border: 0 !important;
	border-radius: 12px;
	box-shadow: none !important;
	outline: none;
}
.epmm .epmm-toggle:hover { filter: brightness(1.08); }
.epmm .epmm-toggle:active { transform: translateY(1px); }
.epmm .epmm-toggle:focus-visible {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--epmm-accent) 40%, transparent) !important;
}
/* Se não houver label, o botão é quadrado (só o ícone). */
.epmm-toggle:not(:has(.epmm-toggle-label)) { padding: 0; }

.epmm-toggle-label {
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

/* Ícone hambúrguer: 3 barras que viram X quando aberto. */
.epmm-burger {
	position: relative;
	display: inline-block;
	width: 22px;
	height: 16px;
	flex: 0 0 auto;
}
.epmm-burger span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .28s ease, opacity .2s ease, top .28s ease;
}
.epmm-burger span:nth-child(1) { top: 0; }
.epmm-burger span:nth-child(2) { top: 7px; }
.epmm-burger span:nth-child(3) { top: 14px; }

/* Estado aberto (classe posta pelo JS no .epmm): vira um X. */
.epmm.is-open .epmm-burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.epmm.is-open .epmm-burger span:nth-child(2) { opacity: 0; }
.epmm.is-open .epmm-burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* --- Botão flutuante fixo --- */
.epmm--fixed .epmm-bar {
	position: fixed;
	z-index: 99990;
}
.epmm--fixed.epmm--top-left .epmm-bar     { top: 16px;    left: 16px; }
.epmm--fixed.epmm--top-right .epmm-bar    { top: 16px;    right: 16px; }
.epmm--fixed.epmm--bottom-left .epmm-bar  { bottom: 16px; left: 16px; }
.epmm--fixed.epmm--bottom-right .epmm-bar { bottom: 16px; right: 16px; }
.epmm--fixed .epmm-toggle {
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* --- Só no mobile/tablet (esconde o botão no desktop) --- */
@media (min-width: 1025px) {
	.epmm--mobile-only .epmm-bar { display: none; }
}

/* =============================================================================
   DRAWER + OVERLAY
   ============================================================================= */
.epmm-drawer-wrap {
	position: fixed;
	inset: 0;
	z-index: 99999;
}
.epmm-drawer-wrap[hidden] { display: none; }

.epmm-overlay {
	position: absolute;
	inset: 0;
	background: rgba(3, 6, 12, 0.6);
	opacity: 0;
	transition: opacity .28s ease;
	-webkit-tap-highlight-color: transparent;
}
.epmm.is-open .epmm-overlay { opacity: 1; }

.epmm-drawer {
	position: absolute;
	top: 0;
	bottom: 0;
	width: min(var(--epmm-width), 92vw);
	display: flex;
	flex-direction: column;
	background: var(--epmm-panel);
	color: var(--epmm-text);
	box-shadow: 0 0 40px rgba(0, 0, 0, .45);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* Lado esquerdo (padrão): entra deslizando da esquerda. */
.epmm--side-left .epmm-drawer  { left: 0;  transform: translateX(-100%); }
.epmm--side-right .epmm-drawer { right: 0; transform: translateX(100%); }

.epmm.is-open .epmm-drawer { transform: translateX(0); }

/* --- Cabeçalho --- */
.epmm-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 18px 15px;
	border-bottom: 1px solid var(--epmm-border);
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--epmm-accent) 12%, transparent),
		transparent
	);
}
.epmm-head-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.epmm-logo {
	max-height: 34px;
	width: auto;
	display: block;
}
.epmm-head-title {
	font-size: 17px;
	font-weight: 800;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.epmm-close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .18s ease, color .18s ease;
}

/* Também forçamos o visual do X (o tema pinta esse <button> de rosa). */
.epmm .epmm-close,
.epmm .epmm-close:hover,
.epmm .epmm-close:focus,
.epmm .epmm-close:active,
.epmm .epmm-close:visited {
	background: rgba(255, 255, 255, .06) !important;
	background-color: rgba(255, 255, 255, .06) !important;
	color: var(--epmm-text) !important;
	border: 0 !important;
	border-radius: 10px;
	box-shadow: none !important;
	outline: none;
}
.epmm .epmm-close:hover {
	background: rgba(255, 255, 255, .12) !important;
	background-color: rgba(255, 255, 255, .12) !important;
	color: #fff !important;
}
.epmm .epmm-close:focus-visible {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--epmm-accent) 40%, transparent) !important;
}
.epmm-close svg { width: 16px; height: 16px; display: block; }

/* --- Lista de itens --- */
.epmm-list {
	list-style: none;
	margin: 0;
	padding: 10px 10px;
	/* NÃO esticar: se a lista crescer para preencher o drawer (flex-grow:1), ela
	   empurra o grupo de categorias lá para baixo, criando um vão vazio entre o
	   último link e "Categorias". Ocupa só a altura dos próprios itens. */
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.epmm-link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 14px;
	border-radius: 12px;
	color: var(--epmm-text);
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color .16s ease, color .16s ease, transform .08s ease, padding-left .16s ease;
}
/* Barrinha de destaque à esquerda que cresce no hover (toque app-like). */
.epmm-link::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 0;
	border-radius: 3px;
	background: var(--epmm-accent);
	transition: height .18s ease;
}
.epmm-link:hover,
.epmm-link:focus-visible {
	background: color-mix(in srgb, var(--epmm-accent) 14%, transparent);
	color: #fff;
	padding-left: 18px;
	outline: none;
}
.epmm-link:hover::before,
.epmm-link:focus-visible::before {
	height: 56%;
}
.epmm-link:active { transform: scale(.99); }

.epmm-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: #ffffff;
	font-size: 16px;
	transition: color .16s ease, background-color .16s ease, transform .16s ease;
}
.epmm-icon svg { width: 18px; height: 18px; }

/* Força o branco também no ícone interno (Font Awesome <i>/<svg>), que pode
   herdar uma cor própria com mais especificidade. */
.epmm .epmm-icon,
.epmm .epmm-icon i,
.epmm .epmm-icon svg,
.epmm .epmm-icon svg path {
	color: #ffffff !important;
	fill: currentColor;
}
/* Ícones de contorno (tag das categorias) continuam sendo desenhados por
   traço — o stroke segue currentColor (branco), sem preenchimento. */
.epmm .epmm-icon .epmm-svg-stroke {
	fill: none;
	stroke: #ffffff !important;
}

/* Ícones desenhados por contorno (traço) — mais leves/modernos que preenchidos. */
.epmm-svg-stroke {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --- Estilo "chip": ícone dentro de um quadrado com fundo --- */
.epmm--icons-chip .epmm-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--epmm-accent) 16%, transparent);
}
.epmm--icons-chip .epmm-icon svg { width: 17px; height: 17px; }
.epmm--icons-chip .epmm-link:hover .epmm-icon,
.epmm--icons-chip .epmm-link:focus-visible .epmm-icon {
	background: var(--epmm-accent);
	color: #fff;
	transform: scale(1.05);
}

/* --- Estilo "plain" (padrão): ícone solto, só ganha destaque de cor --- */
.epmm--icons-plain .epmm-link:hover .epmm-icon,
.epmm--icons-plain .epmm-link:focus-visible .epmm-icon {
	color: #fff;
	transform: translateX(1px);
}

/* --- Estilo "none": esconde os ícones dos itens (menu bem limpo) --- */
.epmm--icons-none .epmm-icon { display: none; }

.epmm-link-text {
	flex: 1 1 auto;
	min-width: 0;
}

/* Seta à direita, aparece/desliza no hover. */
.epmm-link-arrow {
	flex: 0 0 auto;
	display: inline-flex;
	color: var(--epmm-muted);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity .16s ease, transform .16s ease;
}
.epmm-link:hover .epmm-link-arrow,
.epmm-link:focus-visible .epmm-link-arrow {
	opacity: 1;
	transform: translateX(0);
}
.epmm-link-arrow svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --- Grupo de categorias da loja --- */
.epmm-group--cats {
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px solid var(--epmm-border);
}
.epmm-group-title {
	margin: 0;
	padding: 12px 18px 6px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--epmm-muted);
}
.epmm-list--cats {
	padding-top: 2px;
}

/* Ícone de categoria (tag) com um tom levemente diferente do dos itens. */
.epmm-icon--cat {
	background: color-mix(in srgb, var(--epmm-accent) 12%, transparent);
}

/* Contagem de produtos por categoria — pílula discreta à direita. */
.epmm-link-count {
	flex: 0 0 auto;
	min-width: 22px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	color: var(--epmm-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}
.epmm-link:hover .epmm-link-count,
.epmm-link:focus-visible .epmm-link-count {
	background: color-mix(in srgb, var(--epmm-accent) 22%, transparent);
	color: #fff;
}

/* --- Rodapé --- */
.epmm-foot {
	/* Empurra o rodapé para o fim do drawer quando sobra espaço, sem inflar a
	   lista de links (evita o vão entre os links e as categorias). Se o conteúdo
	   for maior que a tela, o rodapé apenas segue o fluxo normal. */
	margin-top: auto;
	padding: 14px 16px 18px;
	border-top: 1px solid var(--epmm-border);
}
.epmm-foot-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 13px 16px;
	border-radius: 12px;
	background: var(--epmm-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: filter .18s ease;
}
.epmm-foot-btn:hover { filter: brightness(1.08); color: #fff; }

/* Item de entrada escalonada (stagger) quando o drawer abre. */
.epmm.is-open .epmm-item {
	animation: epmm-item-in .38s ease both;
}
.epmm.is-open .epmm-item:nth-child(1) { animation-delay: .06s; }
.epmm.is-open .epmm-item:nth-child(2) { animation-delay: .10s; }
.epmm.is-open .epmm-item:nth-child(3) { animation-delay: .14s; }
.epmm.is-open .epmm-item:nth-child(4) { animation-delay: .18s; }
.epmm.is-open .epmm-item:nth-child(5) { animation-delay: .22s; }
.epmm.is-open .epmm-item:nth-child(6) { animation-delay: .26s; }
.epmm.is-open .epmm-item:nth-child(n+7) { animation-delay: .30s; }

@keyframes epmm-item-in {
	from { opacity: 0; transform: translateX(-10px); }
	to   { opacity: 1; transform: translateX(0); }
}
/* Do lado direito o stagger vem do lado oposto. */
.epmm--side-right.is-open .epmm-item { animation-name: epmm-item-in-right; }
@keyframes epmm-item-in-right {
	from { opacity: 0; transform: translateX(10px); }
	to   { opacity: 1; transform: translateX(0); }
}

/* Trava o scroll do fundo enquanto o menu está aberto (classe no <body>). */
body.epmm-lock { overflow: hidden; }

/* Aviso do editor. */
.epmm-notice {
	padding: 14px 16px;
	border: 1px dashed rgba(0,0,0,.2);
	border-radius: 8px;
	background: rgba(0,0,0,.03);
	color: #666;
	font-size: 14px;
}

/* =============================================================================
   ACESSIBILIDADE — reduzir movimento
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
	.epmm-drawer,
	.epmm-overlay,
	.epmm-burger span,
	.epmm-link-arrow { transition: none; }
	.epmm.is-open .epmm-item { animation: none; }
}
