/* =========================================
   HEADER NOVO - CSS Exclusivo
   Zait.ag - Pulverizando Tecnologia
   Mega Menu com Preview de Produtos
   ========================================= */

/* =========================================
   VARIÁVEIS DE COR (Paleta Oficial)
   ========================================= */
:root {
  /* Verdes */
  --header-green-light: #B9CF38;
  --header-green-medium: #727927;
  --header-green-dark: #606721;
  --header-green-accent: #BAD042;

  /* Escuros */
  --header-dark-1: #2C2C2C;
  --header-dark-2: #1A1A1A;
  --header-dark-3: #100F0F;
  --header-bg: #1e2126;
  --header-bg-hover: #292929;
  
  /* Claros */
  --header-light-1: #DFDFDF;
  --header-light-2: #ABACAD;
  --header-light-3: #676767;
  --header-white: #ffffff;
  
  /* Transições */
  --header-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-transition-fast: all 0.2s ease;
  
  /* Sombras */
  --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --header-shadow-mega: 0 10px 40px rgba(0, 0, 0, 0.4),
                        -5px 0 20px rgba(0, 0, 0, 0.2),
                        5px 0 20px rgba(0, 0, 0, 0.2);
  
  /* Bordas */
  --header-border-radius: 12px;
  --header-border-radius-sm: 8px;
  --header-border-color: rgba(255, 255, 255, 0.08);
}

/* =========================================
   RESET E BASE DO HEADER
   ========================================= */
.header-new {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--header-dark-3);
  transition: var(--header-transition);
}

/* Espaçamento do body para o header fixo */
body.has-new-header {
  padding-top: 80px;
}

/* =========================================
   CONTAINER PRINCIPAL
   ========================================= */
.header-new-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  gap: 40px;
}

/* =========================================
   LOGO
   ========================================= */
.header-new-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-new-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-new-logo svg {
  height: 36px;
  width: auto;
  transition: var(--header-transition);
}

.header-new-logo svg path {
  transition: fill 0.6s ease;
}

.header-new-logo:hover svg path {
  fill: var(--header-green-light);
}

/* =========================================
   NAVEGAÇÃO PRINCIPAL
   ========================================= */
.header-new-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.header-new-nav-item {
  position: relative;
}

.header-new-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--header-light-1);
  text-decoration: none;
  border-radius: var(--header-border-radius-sm);
  transition: var(--header-transition-fast);
  white-space: nowrap;
  text-transform: uppercase;
}

.header-new-nav-link:hover,
.header-new-nav-item:hover .header-new-nav-link,
.header-new-nav-item.active .header-new-nav-link {
  color: var(--header-green-light);
  background: rgba(185, 207, 56, 0.1);
}

.header-new-nav-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.header-new-nav-item:hover .header-new-nav-link svg {
  transform: translateZ(0) rotate(180deg);
}

/* =========================================
   AÇÕES DO HEADER (Botões + Idioma)
   ========================================= */
.header-new-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Botão de Contato */
.header-new-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--header-dark-2);
  background: linear-gradient(135deg, var(--header-green-light), var(--header-green-accent));
  border: 2px solid var(--header-green-accent);
  border-radius: 28px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--header-transition);
  white-space: nowrap;
}

.header-new-btn:hover {
  transform: translateY(-2px);
  border-color: var(--header-green-light);
}

.header-new-btn svg {
  width: 16px;
  height: 16px;
}

/* Seletor de Idioma */
.header-new-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: var(--header-dark-2);
  border-radius: 28px;
  transition: var(--header-transition-fast);
}

.header-new-lang:hover {
  background: var(--header-bg);
}

.header-new-lang-btn {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  overflow: visible;
}

.header-new-lang-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: var(--header-transition);
}

.header-new-lang-btn:hover img {
  border-color: var(--header-green-light);
}

/* =========================================
   MEGA MENU - Container Principal
   ========================================= */
.header-mega-menu {
  position: absolute;
  top: 59px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 1200px;
  max-width: 1500px;
  background: #131313;
  border: 1px solid var(--header-border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--header-shadow-mega);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0s 0.15s;
  z-index: 1000;
  margin-top: 0;
}

/* Criar ponte invisível entre header e mega menu */
.header-mega-menu::after {
  content: '';
  position: absolute;
  top: -21px;
  left: 0;
  right: 0;
  height: 21px;
  background: transparent;
}

.header-new-nav-item:hover .header-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.15s ease, visibility 0s 0s;
}

/* Seta do menu */
.header-mega-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--header-dark-2);
}

/* =========================================
   MEGA MENU - Layout Interno
   ========================================= */
.header-mega-inner {
  display: grid;
  grid-template-columns: 300px minmax(0, 1080px);
  min-height: 500px;
  max-height: 500px;
  max-width: 1440px;
  overflow: hidden;
}

/* Sidebar de Categorias */
.header-mega-sidebar {
  background: var(--header-dark-3);
  border-radius: 0 0 0 8px;
  padding: 16px 0 8px 0;
  border-right: 1px solid var(--header-border-color);
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scrollbar da sidebar */
.header-mega-sidebar::-webkit-scrollbar {
  width: 6px;
}

.header-mega-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.header-mega-sidebar::-webkit-scrollbar-thumb {
  background: var(--header-green-light);
  border-radius: 3px;
}

.header-mega-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--header-green);
}

.header-mega-sidebar-title {
  padding: 0 24px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--header-green-light);
}

.header-mega-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--header-light-2);
  text-decoration: none;
  transition: var(--header-transition-fast);
  cursor: pointer;
  border-left: 3px solid transparent;
}

.header-mega-category:hover,
.header-mega-category.active {
  color: var(--header-white);
  background: rgba(185, 207, 56, 0.08);
  border-left-color: var(--header-green-light);
}

.header-mega-category svg {
  width: 20px;
  height: 20px;
  color: var(--header-green-light);
  flex-shrink: 0;
}

.header-mega-category-arrow {
  margin-left: auto;
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-5px);
  transition: var(--header-transition-fast);
}

.header-mega-category:hover .header-mega-category-arrow,
.header-mega-category.active .header-mega-category-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================
   MEGA MENU - Grid de Produtos
   ========================================= */
.header-mega-content {
  padding: 16px;
  display: none;
}

.header-mega-content.active {
  display: block;
}

.header-mega-content-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--header-white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--header-border-color);
}

.header-mega-products {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: scroll;
  overflow-y: hidden;
  padding-bottom: 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
}

/* Estilização da scrollbar horizontal */
.header-mega-products::-webkit-scrollbar {
  height: 8px;
}

.header-mega-products::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.header-mega-products::-webkit-scrollbar-thumb {
  background: var(--header-green-light);
  border-radius: 10px;
  transition: var(--header-transition);
}

.header-mega-products::-webkit-scrollbar-thumb:hover {
  background: var(--header-green-accent);
}

/* Card de Produto no Mega Menu */
.header-mega-product {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--header-border-color);
  border-radius: var(--header-border-radius-sm);
  overflow: hidden;
  flex: 0 0 250px;
  width: 250px;
  text-decoration: none;
  transition: var(--header-transition);
  height: 320px;
}

.header-mega-product:hover {
  background: rgba(185, 207, 56, 0.08);
  border-color: rgba(185, 207, 56, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.header-mega-product-image {
  position: relative;
  width: 100%;
  height: 160px;
  min-height: 160px;
  max-height: 160px;
  background: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
}

.header-mega-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}

.header-mega-product:hover .header-mega-product-image img {
  transform: scale(1.08);
}

/* Badge de destaque */
.header-mega-product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--header-dark-2);
  background: var(--header-green-light);
  border-radius: 20px;
}

.header-mega-product-info {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header-mega-product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--header-white);
  margin-bottom: 8px;
  line-height: 1.4;
}

.header-mega-product-desc {
  font-size: 13px;
  color: var(--header-light-3);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-mega-product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--header-green-light);
  transition: var(--header-transition-fast);
}

.header-mega-product-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.header-mega-product:hover .header-mega-product-link svg {
  transform: translateX(4px);
}

/* =========================================
   MEGA MENU - Ver Todos
   ========================================= */
.header-mega-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--header-border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-mega-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--header-green-light);
  background: rgba(185, 207, 56, 0.1);
  border: 1px solid rgba(185, 207, 56, 0.3);
  border-radius: var(--header-border-radius-sm);
  text-decoration: none;
  transition: var(--header-transition);
}

.header-mega-view-all:hover {
  background: var(--header-green-light);
  color: var(--header-dark-2);
}

.header-mega-view-all svg {
  width: 16px;
  height: 16px;
}

/* =========================================
   MEGA MENU - Variante Simples (Links)
   ========================================= */
.header-mega-simple {
  min-width: 210px;
  padding: 16px;
}

.header-mega-simple-grid {
  display: grid;
  gap: 4px;
}

.header-mega-simple-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--header-light-2);
  text-decoration: none;
  border-radius: var(--header-border-radius-sm);
  transition: var(--header-transition-fast);
}

.header-mega-simple-link:hover {
  color: var(--header-white);
  background: rgba(185, 207, 56, 0.1);
}

.header-mega-simple-link svg {
  width: 18px;
  height: 18px;
  color: var(--header-green-light);
}

/* =========================================
   HAMBURGER MENU (Mobile)
   ========================================= */
.header-new-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

.header-new-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--header-green-accent);
  border-radius: 2px;
  transition: var(--header-transition);
  transform-origin: center;
}

.header-new-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header-new-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header-new-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   MOBILE MENU - REPAGINADO
   ========================================= */
.header-new-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: linear-gradient(180deg, var(--header-dark-2) 0%, var(--header-dark-1) 100%);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 10001;
  top: 80px;
  display: flex;
  flex-direction: column;
}

.header-new-mobile.open {
  transform: translateX(0);
}

.header-new-mobile-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Header do Menu Mobile */
.header-mobile-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--header-border-color);
  flex-shrink: 0;
}

.header-mobile-z-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.header-mobile-z-logo svg {
  width: 32px;
  height: 32px;
}

.header-mobile-contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 12px 18px;
  background: var(--header-green-light);
  border-radius: 50px;
  color: var(--header-dark-1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  transition: all 0.3s ease;
  justify-content: center;
}

.header-mobile-contact-btn:hover {
  background: #c5d84e;
  transform: translateY(-1px);
}

.header-mobile-contact-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.header-mobile-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.header-mobile-close:hover {
  background: rgba(185, 207, 56, 0.2);
}

.header-mobile-close svg {
  width: 20px;
  height: 20px;
  color: var(--header-white);
}

/* Navegação Mobile */
.header-mobile-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px 24px;
  -webkit-overflow-scrolling: touch;
}

/* Acordeão Mobile */
.header-mobile-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-mobile-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  color: var(--header-white);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.header-mobile-trigger-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-mobile-trigger-content svg {
  width: 20px;
  height: 20px;
  color: var(--header-green-light);
  flex-shrink: 0;
}

.header-mobile-chevron {
  width: 18px;
  height: 18px;
  color: var(--header-light-2);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.header-mobile-accordion.open > .header-mobile-accordion-trigger .header-mobile-chevron {
  transform: rotate(180deg);
  color: var(--header-green-light);
}

.header-mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.header-mobile-accordion.open > .header-mobile-accordion-content {
  max-height: 3000px;
}

/* Lista de Links Mobile */
.header-mobile-links-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 16px 32px;
}

.header-mobile-links-list a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
  color: var(--header-light-2);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.header-mobile-links-list a:hover,
.header-mobile-links-list a:active {
  background: rgba(185, 207, 56, 0.1);
  color: var(--header-green-light);
}

/* Subcategorias de Produtos */
.header-mobile-subcat {
  margin-bottom: 4px;
}

.header-mobile-subcat-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 12px);
  padding: 12px 16px;
  margin-left: 12px;
  margin-right: 2px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  color: var(--header-light-1);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.header-mobile-subcat-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--header-border-color);
}

.header-mobile-subcat-trigger svg {
  width: 16px;
  height: 16px;
  color: var(--header-light-2);
  transition: transform 0.3s ease;
}

.header-mobile-subcat.open .header-mobile-subcat-trigger {
  background: rgba(185, 207, 56, 0.1);
  border-color: var(--header-green-light);
  color: var(--header-green-light);
}

.header-mobile-subcat.open .header-mobile-subcat-trigger svg {
  transform: rotate(90deg);
  color: var(--header-green-light);
}

.header-mobile-subcat-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 16px;
}

.header-mobile-subcat.open .header-mobile-subcat-content {
  max-height: 800px;
  padding-top: 12px;
  padding-bottom: 8px;
}

/* Cards de Produto Mobile */
.header-mobile-product-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  margin-right: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--header-border-color);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-mobile-product-card:active {
  transform: scale(0.98);
  background: rgba(185, 207, 56, 0.1);
  border-color: var(--header-green-light);
}

.header-mobile-product-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.header-mobile-product-img img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.header-mobile-product-card span {
  font-size: 13px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  color: var(--header-light-1);
  line-height: 1.3;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Link Ver Todos */
.header-mobile-view-all {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  color: var(--header-green-light);
  text-decoration: none;
  text-align: right;
  transition: opacity 0.2s ease;
}

.header-mobile-view-all:hover {
  opacity: 0.8;
}

/* Link simples mobile (sem acordeão) */
.header-mobile-link-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  color: var(--header-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease;
}

.header-mobile-link-item:hover,
.header-mobile-link-item:active {
  color: var(--header-green-light);
}

.header-mobile-link-item .header-mobile-trigger-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-mobile-link-item svg {
  width: 20px;
  height: 20px;
  color: var(--header-green-light);
}

/* Footer do Menu Mobile */
.header-mobile-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--header-border-color);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.header-mobile-lang {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-mobile-lang span {
  font-size: 13px;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
  color: var(--header-light-2);
}

.header-mobile-lang button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-mobile-lang button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.header-mobile-lang button.active {
  border-color: var(--header-green-light);
  background: rgba(185, 207, 56, 0.15);
}

.header-mobile-lang button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */

/* Desktop Grande (1400px+) */
@media (min-width: 1400px) {
  .header-new-container {
    padding: 0 60px;
  }
  
  .header-mega-products {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop Médio (1200px - 1399px) */
@media (max-width: 1399px) {
  .header-new-container {
    padding: 0 30px;
    gap: 30px;
  }
  
  .header-new-nav-link {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Tablet/Desktop Pequeno (992px - 1199px) */
@media (max-width: 1199px) {
  .header-new-container {
    padding: 0 24px;
    gap: 20px;
  }
  
  .header-new-nav-link {
    padding: 10px 12px;
  }
  
  .header-mega-menu {
    min-width: 800px;
  }
  
  .header-mega-inner {
    grid-template-columns: 240px 1fr;
  }
  
  .header-mega-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 1024px) {
  .header-new-nav {
    display: none;
  }

  .header-new-hamburger {
    display: flex;
  }

  .header-new-btn {
    display: none;
  }

  .header-new-container {
    padding: 0 20px;
  }
}

/* Mobile (abaixo de 768px) */
@media (max-width: 767px) {
  body.has-new-header {
    padding-top: 70px;
  }
  
  .header-new-container {
    height: 70px;
    padding: 0 16px;
    gap: 12px;
  }
  
  .header-new-logo svg {
    height: 28px;
  }
  
  .header-new-mobile {
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  .header-new-lang-btn {
    width: 28px;
    height: 28px;
  }
  
  .header-new-lang-btn img {
    width: 28px;
    height: 28px;
  }
  
  .header-mobile-products-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Pequeno (abaixo de 480px) */
@media (max-width: 479px) {
  .header-new-container {
    padding: 0 12px;
  }
  
  .header-new-lang {
    padding: 4px 6px;
    gap: 4px;
  }
}

/* =========================================
   OVERLAY DO MENU MOBILE
   ========================================= */
.header-new-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 9997;
}

.header-new-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   ANIMAÇÕES
   ========================================= */
@keyframes headerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efeito de entrada dos produtos no mega menu */
.header-mega-product {
  opacity: 0;
  animation: productFadeIn 0.3s ease forwards;
}

.header-new-nav-item:hover .header-mega-product:nth-child(1) { animation-delay: 0.05s; }
.header-new-nav-item:hover .header-mega-product:nth-child(2) { animation-delay: 0.1s; }
.header-new-nav-item:hover .header-mega-product:nth-child(3) { animation-delay: 0.15s; }
.header-new-nav-item:hover .header-mega-product:nth-child(4) { animation-delay: 0.2s; }
.header-new-nav-item:hover .header-mega-product:nth-child(5) { animation-delay: 0.25s; }
.header-new-nav-item:hover .header-mega-product:nth-child(6) { animation-delay: 0.3s; }

@keyframes productFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   UTILIDADES
   ========================================= */
.header-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   ESTILOS ADICIONAIS PARA PERFEIÇÃO
   ========================================= */

/* Garantir que o mega menu fique acima de tudo */
.header-new-nav-item {
  position: static;
}

@media (min-width: 1025px) {
  .header-new-nav-item {
    position: relative;
  }

  /* Posicionar mega menu de produtos no centro da tela */
  #productsMenu .header-mega-menu {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
  }

  #productsMenu:hover .header-mega-menu {
    transform: translateX(-50%);
  }

  .header-mega-menu::before {
    display: none;
  }
}

/* Focus states para acessibilidade */
.header-new-nav-link:focus,
.header-mega-category:focus,
.header-mega-product:focus,
.header-new-btn:focus,
.header-new-lang-btn:focus {
  outline: none;
}

/* Transição suave para todos os links */
.header-new a,
.header-new button {
  transition: var(--header-transition-fast);
}

/* Melhorar contraste no hover dos produtos */
.header-mega-product:hover .header-mega-product-name {
  color: var(--header-green-light);
}

/* Skeleton loading para imagens (opcional) */
.header-mega-product-image {
  position: relative;
  background-size: 200% 100%;
}

.header-mega-product-image img {
  position: relative;
  z-index: 1;
}

/* Indicador visual de categoria selecionada */
.header-mega-category.active {
  background: rgba(185, 207, 56, 0.12);
}

/* Melhorar visual do badge */
.header-mega-product-badge {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Efeito de hover no logo */
.header-new-logo a {
  position: relative;
}

.header-new-logo a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--header-green-light);
  transition: width 0.3s ease;
}

/* Melhorar visual das bandeiras */
.header-new-lang-btn {
  transition: transform 0.2s ease;
}

.header-new-lang-btn:hover {
  transform: scale(1.1);
}

/* Garantir que textos não quebrem incorretamente */
.header-mega-product-name,
.header-mega-product-desc {
  word-break: break-word;
  hyphens: auto;
}

/* Scroll suave no mega menu se houver muitos itens */
.header-mega-sidebar {
  min-height: 450px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--header-green-light) var(--header-dark-3);
}

.header-mega-sidebar::-webkit-scrollbar {
  width: 4px;
}

.header-mega-sidebar::-webkit-scrollbar-track {
  background: var(--header-dark-3);
}

.header-mega-sidebar::-webkit-scrollbar-thumb {
  background: var(--header-green-medium);
  border-radius: 4px;
}

/* Estilos para o menu mobile mais refinados */
.header-mobile-product:active {
  transform: scale(0.98);
}

.header-mobile-accordion-trigger:active {
  background: rgba(185, 207, 56, 0.1);
}

/* Transição para abertura do acordeão */
.header-mobile-accordion-content {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado hover global melhorado */
@media (hover: hover) {
  .header-mega-simple-link:hover {
    padding-left: 20px;
  }
  
  .header-mega-simple-link:hover svg {
    transform: scale(1.1);
  }
}

/* Print styles - esconder header na impressão */
@media print {
  .header-new,
  .header-new-mobile,
  .header-new-overlay {
    display: none !important;
  }
  
  body.has-new-header {
    padding-top: 0 !important;
  }
}
