/* ===================================================================
   CABEÇALHO MODERNO - Design 2026
   Substituiu: Backgrounds de imagem + tabelas antigas
   =================================================================== */

/* Reset e Base */
#modern-header {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	margin: 0;
	padding: 0;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ===== TOP BAR (Linha superior com telefone e links) ===== */
.top-bar {
	background: #000000;
	color: white;
	padding: 10px 0;
	font-size: 13px;
}

.top-bar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.contact-info {
	display: flex;
	align-items: center;
	gap: 20px;
}

.contact-info .phone {
	font-weight: 500;
}

.quick-links {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.quick-links a {
	color: white;
	text-decoration: none;
	font-weight: 400;
	transition: opacity 0.3s;
	padding: 5px 10px;
	border-radius: 4px;
}

.quick-links a:hover {
	background: rgba(255,255,255,0.15);
	opacity: 1;
}

/* ===== MAIN HEADER (Logo, Busca, Carrinho) ===== */
.main-header {
	background: white;
	padding: 20px 0;
	border-bottom: 1px solid #e0e0e0;
}

.main-header .container {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
}

/* Logo */
.logo-section {
	flex: 0 0 auto;
}

.logo-section a {
	display: block;
}

#LogoImage {
	max-width: 220px !important;
	max-height: 70px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	transition: transform 0.3s ease;
}

#LogoImage:hover {
	transform: scale(1.05);
}

/* Busca */
.search-section {
	flex: 1 1 400px;
	max-width: 500px;
}

#SearchForm {
	background: #f5f5f5;
	padding: 5px;
	border-radius: 50px;
	display: flex;
	align-items: center;
	border: 2px solid transparent;
	transition: all 0.3s;
}

#SearchForm:focus-within {
	background: white;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#SearchForm input.Textbox {
	flex: 1;
	border: none;
	background: transparent;
	padding: 12px 20px;
	outline: none;
	font-size: 14px;
	color: #333;
}

#SearchForm input.Textbox::placeholder {
	color: #999;
}

#SearchForm input.Button,
#SearchForm button {
	background: #000000;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	transition: transform 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

#SearchForm input.Button:hover,
#SearchForm button:hover {
	transform: scale(1.1);
}

/* Carrinho */
.cart-section {
	flex: 0 0 auto;
}

.cart-button {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f5f5f5;
	padding: 12px 20px;
	border-radius: 50px;
	text-decoration: none;
	color: #333;
	font-weight: 600;
	transition: all 0.3s;
	position: relative;
}

.cart-button:hover {
	background: #000000;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cart-button svg {
	width: 24px;
	height: 24px;
}

.cart-count {
	font-size: 13px;
	min-width: 20px;
	text-align: center;
}

/* Welcome Section */
.welcome-section {
	flex: 0 0 auto;
	font-size: 13px;
}

.welcome-section a {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
	margin: 0 8px;
	transition: color 0.3s;
}

.welcome-section a:hover {
	color: #764ba2;
	text-decoration: underline;
}

/* ===== NAVIGATION MENU ===== */
.main-navigation {
	background: #ffffff;
	border-bottom: 1px solid #e0e0e0;
	padding: 0;
}

.main-navigation .container {
	display: flex;
	justify-content: center;
}

#Menu {
	background: transparent;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}

#Menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 5px;
}

#Menu li {
	margin: 0;
	position: relative;
}

#Menu li a {
	display: block;
	padding: 18px 25px;
	color: #333;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
	position: relative;
}

#Menu li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%) scaleX(0);
	width: 80%;
	height: 3px;
	background: #000000;
	transition: transform 0.3s ease;
}

#Menu li a:hover {
	color: #667eea;
	background: rgba(102, 126, 234, 0.05);
}

#Menu li a:hover::after {
	transform: translateX(-50%) scaleX(1);
}

#Menu li.Menu a {
	color: #667eea;
	font-weight: 700;
}

/* ===== RESPONSIVIDADE ===== */

/* Tablet */
@media (max-width: 992px) {
	.main-header .container {
		gap: 20px;
	}
	
	.search-section {
		flex: 1 1 100%;
		max-width: 100%;
		order: 4;
	}
	
	.logo-section {
		flex: 1 1 auto;
	}
	
	#LogoImage {
		max-width: 180px !important;
		max-height: 60px !important;
	}
	
	#Menu ul {
		flex-wrap: wrap;
		justify-content: center;
	}
	
	#Menu li a {
		padding: 15px 18px;
		font-size: 13px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.top-bar {
		padding: 8px 0;
	}
	
	.top-bar .container {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
	
	.quick-links {
		justify-content: center;
		gap: 15px;
		font-size: 12px;
	}
	
	.main-header .container {
		flex-direction: column;
		gap: 15px;
	}
	
	.logo-section {
		text-align: center;
		width: 100%;
	}
	
	#LogoImage {
		max-width: 160px !important;
		max-height: 50px !important;
	}
	
	.search-section {
		width: 100%;
	}
	
	.cart-button {
		width: 100%;
		justify-content: center;
	}
	
	.welcome-section {
		text-align: center;
		width: 100%;
	}
	
	.main-navigation {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	#Menu ul {
		flex-direction: column;
		width: 100%;
	}
	
	#Menu li {
		width: 100%;
		border-bottom: 1px solid #f0f0f0;
	}
	
	#Menu li a {
		padding: 15px 20px;
		text-align: center;
	}
	
	#Menu li a::after {
		display: none;
	}
}

/* Small Mobile */
@media (max-width: 480px) {
	.container {
		padding: 0 15px;
	}
	
	.quick-links a {
		font-size: 11px;
		padding: 4px 8px;
	}
	
	#LogoImage {
		max-width: 140px !important;
		max-height: 45px !important;
	}
	
	#SearchForm input.Textbox {
		font-size: 13px;
		padding: 10px 15px;
	}
}

/* ===== ANIMAÇÕES ===== */
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#modern-header {
	animation: slideDown 0.5s ease-out;
}

/* Efeito de carregamento suave */
body {
	animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* ===== MELHORIAS GLOBAIS ===== */
* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Remover backgrounds antigos do body */
body {
	background: #f9f9f9 !important;
}

/* Container principal limpo */
#Container {
	background: white !important;
	display: block !important;
}

/* Remover tabelas antigas */
#Container > table[background] {
	background: none !important;
}

