/* ===== Cabeçalho Gráfica Penha ===== */

/* Esconde o cabeçalho padrão do tema (tema de blocos) para que este seja o único. */
body .wp-site-blocks header.wp-block-template-part {
	display: none !important;
}

/* Fundo branco em toda a largura (sem faixas cinzas laterais). */
html, body {
	background-color: #ffffff !important;
}

/* Corpo em largura total (remove o enquadramento "boxed"). */
.wp-site-blocks {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	background: #ffffff;
}

#gph-header {
	--gph-dark: #0e2a4f;
	--gph-mid: #1d6fd1;
	--gph-blue: #1d6fd1;
	--gph-border: #c4d9f2;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	background: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.3;
	color: #1a2b3c;
}

.gph-container {
	max-width: 1240px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

/* --- 1. Faixa de aviso --- */
.gph-topbar {
	background: linear-gradient(90deg, #0e2a4f 0%, #1d6fd1 100%);
	color: #ffffff;
	width: 100% !important;
}
.gph-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 38px;
	padding-top: 6px;
	padding-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-align: center;
}
.gph-topbar-star {
	font-size: 15px;
	line-height: 1;
}

/* --- 2. Barra principal --- */
.gph-main {
	background: #ffffff;
	border-bottom: 1px solid #eef1f5;
}
.gph-main-inner {
	display: grid;
	grid-template-columns: 380px 1fr auto;
	align-items: center;
	gap: 32px;
	min-height: 100px;
	padding-top: 12px;
	padding-bottom: 12px;
}

/* Logo */
.gph-logo {
	display: flex;
	align-items: center;
}
.gph-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.gph-logo-img {
	max-height: 100px;
	max-width: 380px;
	width: auto;
	height: auto;
}
.gph-logo-placeholder {
	flex-direction: column;
	width: 380px;
	max-width: 100%;
	height: 100px;
	border: 2px dashed #c4d9f2;
	border-radius: 8px;
	color: #7d94b5;
	gap: 4px;
	background: #f8fafc;
}
.gph-logo-placeholder-title {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 2px;
	color: #4a6488;
}
.gph-logo-placeholder-hint {
	font-size: 11px;
}

/* Busca */
.gph-search-form {
	display: flex;
	align-items: center;
	width: 100%;
	border: 1px solid #c4d9f2;
	border-radius: 999px;
	overflow: hidden;
	background: #ffffff;
}
.gph-search-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	padding: 13px 20px;
	font-size: 14px;
	color: #1a2b3c;
	min-width: 0;
}
.gph-search-input::placeholder {
	color: #8aa0bb;
}
.gph-search-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 8px 16px;
	margin: 4px;
	border-radius: 999px;
	color: #1d6fd1;
	cursor: pointer;
}

/* Ícones */
.gph-icons {
	display: flex;
	gap: 28px;
	align-items: center;
}
.gph-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: #1d6fd1;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.gph-icon svg {
	width: 26px;
	height: 26px;
}

/* Badge de contagem no ícone "Meu carrinho". */
.gph-cart-link .gph-cart-icowrap {
	position: relative;
	display: inline-flex;
}

.gph-cart-count {
	position: absolute;
	top: -7px;
	right: -11px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #144e82;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	box-sizing: border-box;
	white-space: nowrap;
}

.gph-cart-count--empty {
	display: none;
}

/* --- 3. Barra de menu --- */
.gph-nav {
	background: linear-gradient(90deg, #1d6fd1 0%, #0e2a4f 100%);
	width: 100% !important;
}
.gph-nav-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.gph-menu {
	display: flex;
	align-items: center;
	gap: 36px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.gph-menu-item a {
	display: block;
	padding: 16px 0;
	color: #ffffff;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.6px;
	text-decoration: none;
}
.gph-menu-item a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Hambúrguer (oculto no desktop) */
.gph-hamburger {
	display: none;
	background: none;
	border: none;
	color: #ffffff;
	padding: 14px 0;
	cursor: pointer;
}
.gph-hamburger svg {
	width: 26px;
	height: 26px;
}

/* --- Responsivo --- */
@media (max-width: 900px) {
	.gph-main-inner {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.gph-logo {
		justify-content: center;
	}
	.gph-logo-placeholder {
		width: 100%;
		max-width: 380px;
	}
	.gph-icons {
		justify-content: center;
		gap: 40px;
	}
	.gph-search {
		width: 100%;
	}
	.gph-hamburger {
		display: inline-flex;
		align-items: center;
	}
	.gph-nav-inner {
		flex-wrap: wrap;
		justify-content: flex-start;
	}
	.gph-menu {
		display: none;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 0;
	}
	.gph-menu.open {
		display: flex;
	}
	.gph-menu-item {
		border-top: 1px solid rgba(255, 255, 255, 0.18);
	}
	.gph-menu-item a {
		padding: 14px 0;
	}
	.gph-topbar-inner {
		font-size: 11px;
	}
}

/* --- Mobile (<=768px): trava de scroll + centralização do cabeçalho --- */
@media (max-width: 768px) {
	html, body {
		overflow-x: hidden !important;
		width: 100% !important;
	}

	/* Bloco principal (logo + busca + ícones): empilhar e centralizar */
	.gph-main-inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		margin: 0 auto;
		width: 100%;
		box-sizing: border-box;
	}

	/* Logo centralizada */
	.gph-logo {
		justify-content: center;
	}

	/* Busca centralizada, sem vazar as margens */
	.gph-search {
		width: 100%;
		margin: 0 auto;
		box-sizing: border-box;
	}
	.gph-search-form {
		width: 100%;
		margin: 0 auto;
		box-sizing: border-box;
	}

	/* Ícones de atalho centralizados */
	.gph-icons {
		justify-content: center;
		flex-wrap: wrap;
	}

	/* Menu hambúrguer centralizado */
	.gph-nav-inner {
		justify-content: center;
	}
	.gph-hamburger {
		margin: 0 auto;
	}
}

.gph-logo-link {
  display: inline-block;
  text-decoration: none;
}
.gph-header-logo {
  max-width: 340px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* --- Conta do usuário ---
   Sem dropdown. O bloco do usuário logado é um LINK DIRETO para /minha-conta/
   (mesmas regras de .gph-icon, como "Atendimento" e "Meu carrinho"), então não
   tem seta nem menu. Saíram junto com o markup todas as regras do menu suspenso
   e do caret (as classes daquele bloco eram as que começavam com "gph-account"),
   e o JS que abria o menu também foi removido do header.js. */
