/* ===== NAVBAR GERAL ===== */
.navbar-area {
    width: 100%;
    z-index: 99;
    transition: all 0.3s ease-out 0s;
    padding: 0;
}

.navbar-area.sticky {
    position: fixed;
    background: var(--color-white);
    box-shadow: 0px 20px 50px 0px var(--box-shadow-color);
    z-index: 99;
    transition: all 0.3s ease-out 0s;
    padding: 0px 0;
}

.navbar {
    padding: 0;
    position: relative;
    transition: all 0.3s ease-out 0s;
}

.navbar-brand {
    padding-left: 0;
    border-radius: 0;
    margin: 0;
}

@media (max-width: 767px) {
    .navbar-brand {
        display: block;
        padding: 0;
    }

    .navbar-brand img {
        width: 91px;
    }
}

.navbar-brand img {
    width: 114px;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .navbar-brand img {
        width: 114px;
    }
}

.navbar-nav i {
    margin-right: 8px;
    margin-left: 8px;
}

.hide-dropdown::after {
    display: none !important;
}

/* ===== NAVBAR ITENS DESKTOP ===== */
.navbar-nav .nav-item {
    z-index: 1;
    position: relative;
    margin-right: 40px;
}

.navbar-nav .nav-item:last-child {
    margin-right: 0 !important;
}

.navbar-nav .nav-item a {
    font-size: 16px;
    color: var(--color-font);
    transition: all 0.3s ease-out 0s;
    position: relative;
    padding: 20px 0;
    display: inline-flex;
    align-items: center;
    /*text-transform: capitalize;*/
}

.navbar-nav .nav-item a.highlight {
    background-color: var(--color-sec);
    color: var(--color-white);
    /*padding-left: 8px;*/
    padding-right: 15px;
}

.navbar-expand-sm .navbar-collapse {
    /* justify-content: center; */
}

.navbar-nav .nav-item a.active {
    color: var(--color-sec-active);
    background: transparent;
    font-weight: 600;
    border-bottom: 2px solid;
    padding-bottom: 0px;
}

.navbar-nav .nav-item a.active,
.sticky .navbar .navbar-nav .nav-item a.hover {
    color: var(--color-pri-active);
}

.navbar-nav .nav-item a.highlight:hover {
    background-color: var(--color-sec-active);
    color: var(--color-white);
}

/* ===== MENU MOBILE (OFFCANVAS) ===== */
@media (max-width: 991.98px) {
    .offcanvas .navbar-nav .nav-item>a {
        color: var(--color-font) !important;
        transition: color 0.2s;
    }

    .offcanvas .navbar-nav .nav-item>a.highlight,
    .offcanvas .navbar-nav .nav-item a.highlight:hover {
        color: var(--color-white) !important;
    }

    .offcanvas .navbar-nav .nav-item a:hover {
        color: var(--color-sec-active) !important;
    }

}

/* ===== MENU TreeView Category ===== */
.list-group {
    --bs-list-group-bg: var(--color-bg);
    /*--bs-list-group-border-color: var(--color-line-header);*/
}

.treeview {
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 350px;
}

.treeview li {
    padding: 10px;
    border-bottom: 1px solid var(--color-line-header);
}

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

.treeview .submenu {
    padding-left: 20px;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.treeview .submenu.show {
    display: block;
}

.treeview i {
    cursor: pointer;
    margin-right: 10px;
}

/* ===== STICKY NAVBAR ===== */
.sticky {
    position: fixed;
    z-index: 99;
    background-color: var(--color-white);
    -webkit-box-shadow: 0px 20px 50px 0px var(--box-shadow-color);
    box-shadow: 0px 20px 50px 0px var(--box-shadow-color);
    -webkit-transition: all 0.3s ease-out 0s;
    transition: all 0.3s ease-out 0s;
    top: 0;
    width: 100%;
}

.sticky .navbar .mobile-menu-btn .toggler-icon {
    background: var(--color-font);
}

/* ===== BOTÃO CARRINHO ===== */
a.btn.btn-link.cart {
    display: flex;
    align-items: center;
    color: var(--color-pri-active);
}

a.btn.btn-link.cart.empty {
    color: var(--color-pri);
}

a.btn.btn-link {
    color: var(--color-overlay);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    flex-direction: row;
    gap: 4px;
    font-family: var(--font-secondary);
}

span.cart-quantity.total-items {
    position: relative;
    left: 35px;
    top: -10px;
    text-align: center;
    background-color: var(--color-pri-active);
    border-radius: 50%;
    color: var(--color-white);
    width: 17px;
    height: 17px;
    font-size: 8px;
    padding: 3px;
}

/* ===== BORDAS NO NAVBAR DESKTOP ===== */
@media (min-width: 992px) {
    .navbar-collapse.sub-menu-bar {
        border-top: 1px solid var(--color-line-header);
        border-bottom: 1px solid var(--color-line-header);
        background: transparent;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .navbar-nav .nav-item a {
        border: none;
        background: transparent;
    }

    .navbar-nav .nav-item a:hover {
        color: var(--color-sec-active) !important;
    }

    .navbar-nav .nav-item a.highlight:hover {
        color: var(--color-white) !important;
    }

    .navbar-nav .nav-item a.active,
    .sticky .navbar .navbar-nav .nav-item a.active {
        color: var(--color-sec-active);
        background: transparent;
    }
}

@media (max-width: 991px) {
    span.cart-quantity.total-items {
        left: 40px;
    }
}

.navbar-nav .dropdown-item {
    padding: 8px;
}

.navbar-nav .dropdown-item a {
    padding: 5px;
    width: 100%;
}

.navbar-nav .dropdown-menu {
    box-shadow: var(--bs-box-shadow) !important;
    padding: 5px;
    border-radius: 5px;
}

.dropdown-menu {
    --bs-dropdown-bg: var(--color-bg);
    --bs-dropdown-link-active-bg: var(--color-bg-alt);
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: var(--color-beige-medium) !important;
}

@media (max-width: 768px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
    }

    .navbar-nav .dropdown-menu.show {
        display: block !important;
    }
}

.dropdown-toggle::after {
    margin-left: 5px !important;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    border-top: 0px;
    border-right: 0px;
    border-bottom: 0px;
    border-left: 0px;
}