header {
    margin: 0 auto;
    padding: 50px 0 20px 0;
}

.header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #E6E6E6;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__containersearch {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    padding: 15px 20px;
    border-radius: 50px;
    border: 1px solid #B5B5B5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header__containersearch:hover {
    border-color: #333;
}

.header__search {
    border: none;
    outline: none;
    font-size: 14px;
}

.header__search::placeholder {
    color: #B5B5B5;
}

.header__whatsapp {
    font-family: "Nunito";
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 50px;
    color: white;
    background-color: #1DAA61;
    border: 1px solid #B5E48C;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header__whatsapp:hover {
    background-color: #18935a;
}

.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
}

.header__menu-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 40px;
    color: #333333;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu__item,
.nav-menu > li,
.nav-menu .menu-item {
    list-style: none;
    position: relative;
}

.nav-menu__link {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu__link:hover {
    color: #2B5BA6;
}

/* Submenu */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 0%;
    left: -5px;
    padding-top: 15px;
    background-color: transparent;
    list-style: none;
    z-index: 100;
}

.nav-menu .sub-menu::before {
    content: '';
    display: block;
    height: 15px;
}

.nav-menu .sub-menu > li:first-child {
    border-radius: 12px 12px 0 0;
}

.nav-menu .sub-menu > li:last-child {
    border-radius: 0 0 12px 12px;
}

.nav-menu .sub-menu li {
    background-color: white;
    min-width: 220px;
}

.nav-menu .sub-menu li:first-child {
    padding-top: 10px;
    border-radius: 12px 12px 0 0;
}

.nav-menu .sub-menu li:last-child {
    padding-bottom: 10px;
    border-radius: 0 0 12px 12px;
}

.nav-menu > li:hover > .sub-menu,
.nav-menu__item:hover > .sub-menu,
.nav-menu .menu-item:hover > .sub-menu {
    display: block;
}

.sub-menu a {
    display: block;
    padding: 12px 20px;
    color: #333333;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* .sub-menu a:hover {
    background-color: #f5f5f5;
    color: #2B5BA6;
    padding-left: 25px;
} */

/* Modal de Busca */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-modal.active {
    display: flex;
}

.search-modal__content {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-modal__title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.search-modal__close {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.search-modal__close:hover {
    color: #333;
}

.search-modal__input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f5f5f5;
    padding: 15px 20px;
    border-radius: 50px;
    border: 2px solid #E6E6E6;
}

.search-modal__input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    color: #333;
}

.search-modal__input::placeholder {
    color: #B5B5B5;
}

/* Menu Mobile Overlay e Sidebar */
.mobile-menu__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu__overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 30px 25px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 35px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.mobile-menu__close:hover {
    color: #333;
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 60px;
}

.mobile-menu__list li {
    border-bottom: 1px solid #E6E6E6;
    list-style: none;
}

.mobile-menu__list li:last-child {
    border-bottom: none;
}

.mobile-menu__list a {
    display: block;
    padding: 18px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
}

.mobile-menu__list a:hover {
    color: #2B5BA6;
    padding-left: 10px;
}

/* Submenu mobile */
.mobile-menu__list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background-color: #f8f8f8;
    margin-left: -25px;
    margin-right: -25px;
    padding: 10px 25px;
}

.mobile-menu__list .menu-item-has-children.active > .sub-menu {
    display: block;
}

.mobile-menu__list .sub-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu__list .sub-menu li:last-child {
    border-bottom: none;
}

.mobile-menu__list .sub-menu a {
    padding: 12px 0 12px 15px;
    font-size: 14px;
    font-weight: 400;
}

.menu-mobile {
    display: none;  
}

/* Responsividade */
@media (max-width: 768px) {
    .menu-desktop {
        display: none;
    }

    .menu-mobile {
        display: block;
        padding: 0 20px;
    }

    header {
        padding: 20px 0 10px;
    }

    .header__top {
        border: none;
        padding: 0;
    }

    .header__logo {
        max-width: 220px;
        height: auto;
    }

    .header__actions {
        gap: 12px;
    }

    .header__containersearch {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border: 2px solid #E6E6E6;
        border-radius: 50%;
    }

    .header__containersearch img {
        width: 20px;
        height: 20px;
    }

    .header__search {
        display: none;
    }

    .header__whatsapp {
        padding: 0;
        gap: 0;
        width: 50px;
        height: 50px;
        justify-content: center;
        border-radius: 50%;
    }

    .header__whatsapp span {
        display: none;
    }

    .header__whatsapp img {
        width: 28px;
        height: 28px;
    }

    .header__menu-toggle {
        display: flex;
    }

    .search-modal__content {
        padding: 20px;
        width: 95%;
    }

    .search-modal__title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header__logo {
        max-width: 180px;
    }

    .header__actions {
        gap: 8px;
    }

    .header__containersearch {
        width: 45px;
        height: 45px;
    }

    .header__whatsapp {
        width: 45px;
        height: 45px;
    }

    .header__whatsapp img {
        width: 24px;
        height: 24px;
    }

    .header__menu-toggle {
        width: 40px;
        height: 40px;
    }
}