﻿/* ========== NAVBAR ========== */
.navbar {
    padding: 0;
}

.navbar-scrolled {
    margin-top: 0;
}

    .navbar-scrolled .menu {
        max-width: 100% !important;
        border-radius: 0;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 99999;
        transition: all 0.3s ease;
    }

.navbar-brand {
    margin-left: 24px !important;
}

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

/* ========== MENU ========== */
.menu {
    width: 100%;
    padding: 20px 24px;
    background-color: var(--gray-10);
    border-radius: 16px;
}

    .menu .nav-link {
        padding: 0;
        font-weight: 400;
        font-size: 16px;
        color: var(--secondary);
        margin-left: 24px;
    }

/* ========== TOP BAR ========== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 32px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-login .btn {
    display: flex;
    padding: 10.5px 16px;
    margin-left: 24px;
    border-color: var(--light-pink);
    color: var(--secondary);
}

.shopCartBtn .btn {
    display: flex;
    padding: 10.5px 11px;
    border-radius: 16px;
    border-color: var(--tertiary);
    background-color: var(--tertiary);
    color: #fff;
}

.top-bar svg,
.svg-icon {
    width: 24px;
}

.top-bar-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.top-bar-img {
    width: 100px;
}

    .top-bar-img img {
        object-fit: cover;
    }

/* ========== SEARCH ========== */
.search-container {
    position: relative;
}

.search-input {
    width: 600px;
    height: 48px;
    padding-right: 48px;
    border: 1px solid var(--light-pink);
    border-radius: 24px;
    font-size: 16px;
    background: none;
    color: var(--gray-1);
}

    .search-input::placeholder {
        color: var(--gray-9);
        opacity: 1;
    }

.search-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 22px;
    color: var(--tertiary);
    transform: translateY(-50%);
}

.search {
    position: absolute;
    top: 14%;
    right: 12%;
    z-index: 99999;
    background-color: white;
    border-radius: 24px;
    width: 550px;
    padding: 32px;
    display: none;
}

.searchResults {
    overflow-y: auto;
    max-height: 350px;
    overflow-x: hidden;
}

    .searchResults a {
        color: var(--secondary);
        display: flex;
        align-items: center;
    }

    .searchResults img {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        object-fit: cover;
        margin-left: 8px;
    }

    .searchResults .result-item {
        margin-bottom: 16px;
    }

        .searchResults .result-item strong {
            font-weight: 500;
        }

        .searchResults .result-item p {
            color: var(--gray-11);
        }

    .searchResults .category-result {
        margin-bottom: 32px;
    }
    .searchResults .category-result p{
        margin-bottom: 4px;
    }

        .searchResults .category-result a {
            display: unset; 
        }

        .searchResults .category-result .search-category {
            background-color: var(--s-neutral50);
            padding: 4px 8px;
            margin-left: 8px;
            border-radius: 8px;
        }
/* ========== OFFER NAV ========== */
.offer-nav svg {
    width: 18px;
}

.offer-nav a {
    display: flex;
}

    .offer-nav a svg {
        margin-left: 4px;
    }

.offer-nav .nav-link:last-child {
    margin-left: 0;
}

/* ========== NAVBAR DECORATION ========== */
.navbar-top-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    background-color: #f2f2f2;
    transform: translateX(-50%);
}

/* ========== CART & LOGIN ========== */
.navbar-cart {
    background-color: #d91c5c;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

.navbar-cart-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.navbar-login-text {
    font-size: 16px;
    font-weight: 400;
    color: #1e1e1e;
}

/* ========== DROPDOWN MENU ========== */
.navbar-nav .dropdown-menu {
    background-color: var(--gray-10);
    margin-top: 48px;
    border: none;
    border-radius: 20px;
    right: -33%;
    width: 90.2vw;
    min-height: 450px;
}

    .navbar-nav .dropdown-menu li {
        padding: 24px;
        padding-top: 16px;
        width: 90vw;
    }

    .navbar-nav .dropdown-menu .menu-base {
        border-radius: 12px;
        background-color: white;
        z-index: 99999;
        padding: 8px;
        max-height: 450px;
        overflow: auto;
    }

        .navbar-nav .dropdown-menu .menu-base a {
            display: flex;
            color: var(--secondary);
            margin-bottom: 20px;
            padding: 8px;
        }

        .navbar-nav .dropdown-menu .menu-base .menu-base-item:hover, .navbar-nav .dropdown-menu .menu-base .menu-base-item.active {
            background-color: var(--gray-10);
            border-radius: 8px;
            border-right: 3px solid var(--tertiary);
        }

.dropdown-menu svg {
    position: absolute;
    top: -25px;
    right: 7%;
    fill: var(--gray-10) !important;
}

.tag-content {
    display: none;
    padding-right: 32px;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

    .tag-content .category-list {
        margin-left: 24px;
        margin-bottom: 16px;
    }

    .tag-content.active {
        display: block;
    }

.dropdown-header {
    font-size: 16px;
    font-weight: 500;
    padding: 0;
    margin-bottom: 16px;
    margin-top: 16px;
    border-right: 3px solid var(--tertiary);
    padding-right: 4px;
}

    .dropdown-header a {
        color: var(--secondary);
    }

.dropdown-item {
    color: var(--gray-2);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
    white-space: pre-line;
}
/* ========== MOBILE NAV ========== */
.mobile-navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    z-index: 100;
}

.close-navbar {
    width: 25px;
    height: 25px;
    font-size: 16px;
    color: #333;
    border: 2px solid #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-nav {
    padding: 40px 0 0;
    border-top: 1px solid #f2f2f2;
}

.mobile-nav-link {
    font-size: 16px;
    font-weight: 400;
    color: #1e1e1e !important;
}

    .mobile-nav-link:hover {
        color: #1e1e1e !important;
    }

.mobile-bottom-nav {
    display: none;
}

    .mobile-bottom-nav a {
        font-size: 14px !important;
        font-weight: 400;
        color: var(--gray-11);
    }

        .mobile-bottom-nav a.active {
            color: var(--tertiary);
        }

            .mobile-bottom-nav a.active svg {
                fill: var(--tertiary);
            }

    .mobile-bottom-nav svg {
        fill: var(--gray-11);
    }

/* ========== UTILITIES ========== */
.notification-icon {
    width: 20px;
    object-fit: cover;
}

.notif-conteiner {
    background-color: #fff;
    border-radius: 12px;
}

.user-icon {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.building-icon {
    width: 20px;
    object-fit: cover;
}

.collapse-animated {
    overflow: hidden;
    transition: height 1s ease, opacity 1s ease;
}

.product-nav-list-container {
    max-height: 300px;
    overflow-y: auto;
}
.nav-scroll-mobile { 
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
}
.search-input-scrolled {
    margin-top: 8px;
    margin-bottom: 8px;
}
/* ========== RESPONSIVE ========== */
/* Phones */
@media (max-width: 1023px) {
    .top-bar {
        display: none;
    }

    .menu {
        margin-top: 16px;
        padding: 0;
        border-radius: 0;
        background-color: #fff !important;
    }

    .navbar-brand {
        margin: 0;
        padding: 0;
    }

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

    .search-mobile {
        width: 100%;
    }

    .navbar-toggler {
        margin: 0;
        padding: 0;
        border: none;
    }

    .search-input {
        width: 100%;
        height: 40px;
        margin-top: 16px;
        border-radius: 16px;
    }

    .menu-bar svg {
        width: 32px;
        height: 32px;
    }

    .navbar-collapse {
        padding: 16px;
        padding-bottom: 24px;
    }

    .navbar:has(.navbar-collapse.show),
    .menu:has(.navbar-collapse.show) {
        background-color: var(--gray-10) !important;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        transition: background-color 0.3s ease;
    }

    .nav-link {
        color: var(--secondary) !important;
    }

    .nav-item {
        padding: 16px 0;
        border-bottom: 1px solid #fff;
    }

    .mobile-last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .offer-nav {
        display: none !important;
    }

    .menu .nav-link {
        margin-left: 0;
    }

    .navbar-scrolled .menu {
        position: unset;
    }

    .mobile-bottom-nav {
        display: block;
        padding: 12px 30px;
        background-color: var(--gray-10);
        color: var(--gray-11);
        width: 100vw;
    }
    .search { 
        top: 100%;
        right: 0;   
        width: 100%;
        padding: 16px; 
    }
    .searchResults .category-result .search-category { 
        font-size: 14px;
    }
    .searchResults .category-result p {
        margin-bottom: 8px;
    }
    .searchResults .category-result {
        margin-bottom: 16px;
    }
    .searchResults .result-item { 
        font-size: 14px;
        line-height: 1.3;
    }
    .navbar .shopCartBtn .btn {
        width: unset;
        height: unset;
        display: flex;
        justify-content: center;
        align-items: center;
        border: unset;
        margin-left: 16px;
        border-radius: 8px;
        padding: 8.5px 8px;
        margin-top: 8px;
    }
        .navbar .shopCartBtn .btn .bg-danger {
            background-color: var(--secondary) !important;
            top: unset !important;
            bottom: -50%;
            left: 50%;
        }
}

@media only screen and (min-width: 1024px) and (max-width: 1299px) {
    .menu .nav-link {
        margin-left: 8px;
    }
}

@media only screen and (min-width: 1024px) and (max-width: 1024px) {
    .top-bar-login .btn {
        padding: 10.5px 12px;
    }

    .all-products {
        margin-top: 64px;
        margin-bottom: 136px;
    }
}
@media (max-width: 768px) {
      
}
