.main-header {
    height: var(--header-size);
    display: flex;
}

.header-logo-agroceres img {
    width: 200px;
    height: auto;
}

.header-logo-agroceres-white img {
    width: 300px;
    height: auto;
}

body:not(.page-loaded) .header-logo-agroceres,
body:not(.page-loaded) .header-logo-agroceres-white {
    visibility: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    -webkit-transition: background-color 200ms linear;
    -moz-transition: background-color 200ms linear;
    -o-transition: background-color 200ms linear;
    transition: background-color 200ms linear;
    border-bottom: 4px solid #fff;
}

.menu-item a {
    color: #142a1f;
    font-size: 16px;
    font-family: "Exo 2";
    padding: 8px 16px;
    border-right: 1px solid var(--color-light-gray);
}

.menu-item:last-child a {
    border-right: none;
}

.menu-item:hover {
    background-color: #eee;
    border-bottom: 4px solid var(--color-orange);
}

.menu-item.active {
    border-bottom: 4px solid var(--color-orange);
}

.mobile-header-menu .menu-hamburguer {
    width: 24px;
    height: 16px;
    cursor: pointer;
}

.mobile-header-menu .menu-close {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.mobile-header-menu__search {
    margin-right: 8px;
}

.item-search {
    padding: 16px;

}

.item-search svg {
    cursor: pointer;
}

.item-search svg path {
    -webkit-transition: fill 200ms linear;
    -moz-transition: fill 200ms linear;
    -o-transition: fill 200ms linear;
    transition: fill 200ms linear;
}

.item-search svg:hover path {
    fill: var(--color-green-hover);
}

/* CSS para o dropdown do header - Versão Simplificada */

/* Sub-header container */
.sub-header {
    background-color: var(--color-backgroud-gray);
    border-top: 1px solid #e0e0e0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 0;
}

/* Container interno */
.sub-header .container {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Spacer para alinhamento com a logo */
.sub-header .spacer {
    flex-shrink: 0;
    width: 388px;
    align-items: center;
    display: flex;
}

/* Sub-menu - Links em linha horizontal */
.sub-menu {
    display: flex !important;
    flex-direction: row;
    list-style: none;
    margin: 0;
    align-items: center;
    justify-content: center;
}

.sub-menu .menu-item {
    display: flex;
    align-items: center;
}

.sub-menu .menu-item a {
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: block;
    border-right: 1px solid #e9e9e9;
    padding: 8px 20px;
}

.sub-menu .menu-item li {
    border-bottom: 13px solid var(--color-backgroud-gray);
}

.sub-menu .menu-item li:hover {
    border-bottom: 13px solid var(--color-orange);
}

.sub-menu .menu-item {
    height: 74px;
}

.sub-menu .menu-item {
    border-bottom: 4px solid var(--color-backgroud-gray);
}

.sub-menu .menu-item:hover {
    border-bottom: 4px solid var(--color-orange);
}

.sub-menu .menu-item:hover li {
    border-bottom: 4px solid var(--color-orange);
}

.sub-menu .menu-item:hover li {
    border-bottom: 13px solid var(--color-orange);
}

/* Forçar display quando ativo */
.sub-header[style*="88px"] .sub-menu {
    display: flex !important;
}

.sub-menu ul li {
    display: flex;
    align-items: center;
}

/* Classes básicas */
.flex-container {
    display: flex;
}

.hide-mb {
    display: block;
}

.exo {
    font-family: 'Exo', Arial, sans-serif;
}

.menu-mobile {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.video-full {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.banner-home .folha {
    position: absolute;
    left: 15%;
    bottom: -130px;
    z-index: 999;
    width: 400px;
    color: #fff;
}
.banner-home .logo-contorno {
    position: absolute;
    right: -310px;
    top: 70%;
    z-index: 999;
    width: 900px;
    color: #fff;
}

.video-full {
    width: 100%;
    height: 100vh;
    display: block;
    object-fit: cover;
}

/* Responsividade */
@media (max-width: 768px) {
    .hide-mb {
        display: none !important;
    }
    
    .video-full video {
      height: 300px;
    }
}

@media (max-width: 991px) {
    .hide-tb {
        display: none !important;
    }
}

/* Garantir que o header principal funcione com posicionamento absoluto */
#header {
    position: sticky; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.main-header {
    position: relative;
    z-index: 1000;
}

/* Estado inicial escondido */
#sub-menu-produtos {
    display: none;
}

/* Mostrar quando Vue.js ativar */
#header .sub-header .sub-menu[style*="flex"] {
    display: flex !important;
}

/* Header home */

#header-transparent {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#header-transparent .menu-item a {
    color: #fff;
    border-right: 1px solid transparent;
    transition: color 0.3s ease, border-right-color 0.3s ease;
}

#header-transparent .sub-header {
    background-color: transparent;
    border-top: none;
    box-shadow: none;
}

#header-transparent .menu-item {
    border-bottom: transparent;
}

#header-transparent .menu-item {
    border-bottom: 4px solid transparent;
}

#header-transparent .sub-menu .menu-item a {
    color: #ffff;
}

#header-transparent .menu-item:hover a {
    color: var(--color-orange);
}

#header-transparent .menu-item.active {
    border-bottom: 4px solid var(--color-orange);
}
#header-transparent .menu-item:hover {
    background-color: transparent;
    border-bottom: 4px solid var(--color-orange);
}

#header-transparent .item-search svg path {
    fill: #ffff;
}

#header-transparent .item-search .search-modal-container.active svg path {
    fill: var(--color-green-hover);
}

#header-transparent.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#header-transparent.scrolled .menu-item a {
    color: #142a1f;
    border-right: 1px solid var(--color-light-gray);
}

#header-transparent.scrolled .item-search svg path {
    fill: #142a1f;
}

#header-transparent.scrolled .sub-header {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}
