/* =========================================================================
   Dropdown do menu principal do site (item "Produtos CA").
   Carregado globalmente (asset standalone, fora do bundle webpack).

   Estrutura esperada (WP Bootstrap Navwalker, menu configurado no wp-admin):
   li.menu-item.dropdown > a.dropdown-toggle + ul.dropdown-menu
     > li > span.dropdown-header  (itens com a classe CSS "dropdown-header")
     > li > a.dropdown-item
   ========================================================================= */

#masthead #menu-header .dropdown-menu {
	background: #1f2131;
	border: 1px solid rgba(233, 233, 237, 0.14);
	border-radius: 12px;
	padding: 8px;
	min-width: 230px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
	margin-top: 6px;
}

#masthead #menu-header .dropdown-menu .dropdown-header {
	display: block;
	font-family: "Inter", sans-serif;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #82859b;
	padding: 9px 12px 6px;
	margin: 0;
}

/* Separador antes do 2º grupo (ex.: PRODUTOS DIGITAIS) */
#masthead #menu-header .dropdown-menu li + li .dropdown-header {
	border-top: 1px solid rgba(233, 233, 237, 0.10);
	padding-top: 14px;
	margin-top: 5px;
}
#masthead #menu-header .dropdown-menu li:first-child .dropdown-header {
	border-top: 0;
	padding-top: 9px;
	margin-top: 0;
}

#masthead #menu-header .dropdown-menu .dropdown-item,
#masthead #menu-header .dropdown-menu li > a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 14px;
	color: #e9e9ed;
	background: transparent;
	transition: background 0.15s ease, color 0.15s ease;
}

#masthead #menu-header .dropdown-menu .dropdown-item:hover,
#masthead #menu-header .dropdown-menu .dropdown-item:focus,
#masthead #menu-header .dropdown-menu li > a:hover,
#masthead #menu-header .dropdown-menu li > a:focus {
	background: rgba(153, 54, 242, 0.16);
	color: #f0dcfe;
}

/* Estrutura aninhada no wp-admin (Alinhador DENTRO de PRODUTO etc.):
   o sub-nível vira lista "achatada" dentro do mesmo painel. */
#masthead #menu-header .dropdown-menu .dropdown-menu {
	position: static;
	display: block;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
	min-width: 0;
	list-style: none;
}
#masthead #menu-header .dropdown-menu li {
	list-style: none;
}

/* Abre no hover em telas com mouse (o clique do Bootstrap continua valendo) */
@media (hover: hover) and (min-width: 992px) {
	#masthead #menu-header .nav-item.dropdown:hover > .dropdown-menu {
		display: block;
	}
}

/* Caret do item pai discreto, como no design */
#masthead #menu-header .dropdown-toggle::after {
	opacity: 0.6;
	vertical-align: 0.12em;
}

/* Menu mobile (accordion #navbar-mobile): destaca os rótulos de categoria */
#navbar-mobile .menu-header .dropdown-header,
#navbar-mobile .menu-header a[href="#"] {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #82859b !important;
	pointer-events: none;
}
