/* ==========================================================================
   LF Header Moderno — CSS
   Identidade visual: amarelo #fed700, preto/cinza-escuro, cantos arredondados,
   inspirado no header original do tema Electro, mas mais limpo e responsivo.
   ========================================================================== */

.lfhm-header,
.lfhm-header * {
	box-sizing: border-box;
}

:root {
	--lfhm-yellow: #fed700;
	--lfhm-yellow-dark: #e6c200;
	--lfhm-dark: #1c1c1c;
	--lfhm-gray: #666;
	--lfhm-border: #ececec;
	--lfhm-radius: 10px;
}

.lfhm-header {
	position: relative;
	z-index: 500;
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.lfhm-header .lfhm-icon,
.lfhm-mobile-panel .lfhm-icon {
	display: inline-block !important;
	vertical-align: middle;
	flex-shrink: 0;
	fill: currentColor;
	line-height: 0;
}

.lfhm-header.lfhm-sticky {
	position: sticky;
	top: 0;
}

.lfhm-header.lfhm-scrolled {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

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

.lfhm-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Linha de cima: logo, menu principal, contato, carrinho ---------- */

.lfhm-row-top {
	border-bottom: 1px solid var(--lfhm-border);
}

.lfhm-row-top-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 84px;
}

.lfhm-logo {
	flex: 0 0 auto;
}

.lfhm-logo-img {
	display: block;
	max-height: 60px;
	width: auto;
}

.lfhm-main-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.lfhm-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.lfhm-menu li a {
	display: inline-block;
	padding: 10px 14px;
	color: var(--lfhm-dark);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 6px;
	transition: background 0.15s ease, color 0.15s ease;
}

.lfhm-menu li a:hover,
.lfhm-menu li.current-menu-item > a {
	background: var(--lfhm-yellow);
	color: var(--lfhm-dark);
}

.lfhm-top-right {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 18px;
}

.lfhm-contact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.85rem;
	color: var(--lfhm-gray);
}

.lfhm-contact-item {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.lfhm-contact-item a {
	color: var(--lfhm-dark);
	text-decoration: none;
	font-weight: 600;
}

.lfhm-contact-item .lfhm-icon {
	color: var(--lfhm-yellow-dark);
	flex-shrink: 0;
}

.lfhm-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f6f6f6;
	color: var(--lfhm-dark);
	text-decoration: none;
	flex-shrink: 0;
}

.lfhm-cart-link:hover {
	background: var(--lfhm-yellow);
}

.lfhm-cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	background: var(--lfhm-dark);
	color: #fff;
	border-radius: 999px;
	font-size: 0.68rem;
	line-height: 18px;
	text-align: center;
	font-weight: 700;
}

/* ---------- Linha de baixo: categorias, busca, botão loja ---------- */

.lfhm-row-bottom {
	background: var(--lfhm-yellow);
}

.lfhm-row-bottom-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 58px;
}

.lfhm-dept {
	position: relative;
	flex: 0 0 auto;
}

.lfhm-dept-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--lfhm-dark);
	color: #fff;
	border: none;
	border-radius: 8px 8px 0 0;
	padding: 10px 16px;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.15;
	text-align: left;
}

.lfhm-row-bottom .lfhm-dept-toggle {
	border-radius: 8px;
}

.lfhm-dept-toggle[aria-expanded="true"] {
	border-radius: 8px 8px 0 0;
}

.lfhm-dept-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 500;
	opacity: 0.85;
}

.lfhm-dept-sub {
	display: block;
	font-size: 1rem;
	font-weight: 700;
}

.lfhm-caret {
	margin-left: 4px;
	transition: transform 0.15s ease;
}

.lfhm-dept-toggle[aria-expanded="true"] .lfhm-caret {
	transform: rotate(180deg);
}

.lfhm-dept-panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 480px;
	max-width: 90vw;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 0 10px 10px 10px;
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
	padding: 14px 18px;
	z-index: 600;
}

.lfhm-dept-panel.is-open {
	display: block;
}

/* Desktop: abre passando o mouse (hover). O .lfhm-dept engloba o botão e o
   painel, então mover o cursor do botão pra dentro do painel continua "em hover". */
@media (min-width: 992px) {
	.lfhm-dept:hover .lfhm-dept-panel {
		display: block;
	}

	.lfhm-dept:hover .lfhm-dept-toggle .lfhm-caret {
		transform: rotate(180deg);
	}
}

.lfhm-dept-list {
	list-style: none;
	margin: 0;
	padding: 0;
	column-count: 2;
	column-gap: 20px;
}

.lfhm-dept-list li {
	break-inside: avoid;
}

.lfhm-dept-list li a {
	display: block;
	padding: 7px 4px;
	color: var(--lfhm-dark);
	text-decoration: none;
	font-size: 0.9rem;
	border-bottom: 1px solid #f2f2f2;
}

.lfhm-dept-list li a:hover {
	color: var(--lfhm-yellow-dark);
}

/* ---------- Busca — pill branco "flutuante", moderno (estilo buscador atual) ----------
   Obs: usamos .lfhm-row-bottom como prefixo + !important em tudo porque o CSS do
   tema (Bootstrap/Electro) tem regras genéricas de form/input/button que estavam
   sobrescrevendo nosso fundo — por isso a barra aparecia "lisa" da cor amarela
   de fundo, sem se destacar. Isso garante que nosso estilo sempre vence. */
.lfhm-row-bottom .lfhm-search-form {
	position: relative;
	flex: 1 1 auto;
	display: flex !important;
	align-items: center;
	max-width: 560px;
	background: #ffffff !important;
	background-image: none !important;
	border: none !important;
	border-radius: 999px !important;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
	padding: 4px 4px 4px 22px !important;
	transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.lfhm-row-bottom .lfhm-search-form:hover {
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.08) !important;
}

.lfhm-row-bottom .lfhm-search-form:focus-within {
	box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.12), 0 14px 30px rgba(0, 0, 0, 0.18) !important;
	transform: translateY(-1px);
}

.lfhm-row-bottom .lfhm-search-input {
	flex: 1 1 auto !important;
	min-width: 0;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	padding: 12px 8px !important;
	font-size: 0.94rem !important;
	color: #1c1c1c !important;
	border-radius: 0 !important;
	margin: 0 !important;
	/* remove a decoração nativa do navegador pra input[type=search] (o "pill" de
	   dentro que aparecia duplicado por cima do nosso) */
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
}

.lfhm-row-bottom .lfhm-search-input:focus {
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

.lfhm-row-bottom .lfhm-search-input::placeholder {
	color: rgba(28, 28, 28, 0.45) !important;
}

/* remove decorações nativas de input[type=search] que alguns navegadores adicionam
   (lupa/x embutidos), pra não duplicar com o nosso botão */
.lfhm-row-bottom .lfhm-search-input::-webkit-search-decoration,
.lfhm-row-bottom .lfhm-search-input::-webkit-search-cancel-button,
.lfhm-row-bottom .lfhm-search-input::-webkit-search-results-button,
.lfhm-row-bottom .lfhm-search-input::-webkit-search-results-decoration {
	-webkit-appearance: none;
}

.lfhm-row-bottom .lfhm-search-btn {
	flex: 0 0 auto !important;
	border: none !important;
	background: transparent !important;
	background-image: none !important;
	color: var(--lfhm-dark) !important;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.15s ease;
}

.lfhm-row-bottom .lfhm-search-btn:hover {
	color: #000 !important;
	transform: scale(1.1);
}

.lfhm-row-bottom .lfhm-search-btn:active {
	transform: scale(0.96);
}

.lfhm-shop-btn {
	position: relative;
	overflow: hidden;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--lfhm-dark);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	padding: 12px 24px;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
	transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.lfhm-shop-btn .lfhm-icon-store {
	transition: transform 0.25s ease;
}

.lfhm-shop-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-20deg);
	transition: left 0.5s ease;
}

.lfhm-shop-btn:hover {
	background: #000;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.lfhm-shop-btn:hover::before {
	left: 130%;
}

.lfhm-shop-btn:hover .lfhm-icon-store {
	transform: translateX(-2px) rotate(-8deg);
}

.lfhm-shop-btn:active {
	transform: translateY(0) scale(0.98);
}

/* ---------- Botão hambúrguer (mobile) ---------- */

.lfhm-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	background: #f2f2f4;
	border-radius: 12px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s ease, transform 0.15s ease;
}

.lfhm-burger:hover {
	background: #e9e9ec;
}

.lfhm-burger:active {
	transform: scale(0.94);
}

/* Contêiner das 3 barras: tamanho fixo, barras posicionadas de forma absoluta
   (mais confiável do que depender de flex/gap, que pode ser sobrescrito por
   CSS do tema/plugins) */
.lfhm-burger-bars {
	position: relative;
	display: inline-block;
	width: 20px;
	height: 14px;
}

.lfhm-burger-bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background-color: #1c1c1c;
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, top 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.lfhm-burger-bars span:nth-child(1) {
	top: 0;
}

.lfhm-burger-bars span:nth-child(2) {
	top: 6px;
}

.lfhm-burger-bars span:nth-child(3) {
	top: 12px;
}

.lfhm-burger[aria-expanded="true"] .lfhm-burger-bars span:nth-child(1) {
	top: 6px;
	transform: rotate(45deg);
}

.lfhm-burger[aria-expanded="true"] .lfhm-burger-bars span:nth-child(2) {
	opacity: 0;
}

.lfhm-burger[aria-expanded="true"] .lfhm-burger-bars span:nth-child(3) {
	top: 6px;
	transform: rotate(-45deg);
}

/* ---------- Painel mobile (off-canvas) ---------- */

.lfhm-mobile-panel {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 320px;
	max-width: 88vw;
	background: #fff;
	z-index: 900;
	box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	overflow-y: auto;
}

.lfhm-mobile-panel.is-open {
	transform: translateX(0);
}

.lfhm-mobile-panel-inner {
	padding: 20px;
}

.lfhm-mobile-main-nav .lfhm-menu {
	flex-direction: column;
	gap: 2px;
}

.lfhm-mobile-main-nav .lfhm-menu li a {
	display: block;
	padding: 12px 10px;
	border-bottom: 1px solid var(--lfhm-border);
	border-radius: 0;
}

.lfhm-mobile-section-title {
	margin-top: 18px;
	margin-bottom: 8px;
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--lfhm-gray);
}

.lfhm-mobile-dept-list .lfhm-dept-list {
	column-count: 1;
}

.lfhm-shop-btn-mobile {
	display: inline-flex;
	width: 100%;
	justify-content: center;
	margin-top: 16px;
}

.lfhm-mobile-contact {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 0.9rem;
}

.lfhm-mobile-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 850;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.lfhm-mobile-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

/* ---------- Responsivo ---------- */

@media (max-width: 991px) {
	.lfhm-main-nav.lfhm-main-nav,
	.lfhm-row-top .lfhm-main-nav {
		display: none;
	}

	.lfhm-contact {
		display: none;
	}

	.lfhm-burger {
		display: flex;
	}

	.lfhm-row-bottom-inner {
		flex-wrap: wrap;
		gap: 10px;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.lfhm-search-form {
		order: 3;
		max-width: 100%;
		flex: 1 1 100%;
	}

	.lfhm-shop-btn {
		padding: 10px 18px;
	}
}

@media (max-width: 575px) {
	.lfhm-row-top-inner {
		min-height: 64px;
	}

	.lfhm-logo-img {
		max-height: 44px;
	}

	.lfhm-dept-panel {
		width: 90vw;
	}

	.lfhm-dept-list {
		column-count: 1;
	}
}