﻿/* ========== 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%);
}

/* ========== 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: 42px;
    border: none;
    border-radius: 20px;
    right: -33%;
}

.dropdown-menu svg {
    position: relative;
    top: -48px;
    right: 6%;
    fill: var(--gray-10) !important;
}

/* ========== 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;
}

/* ========== 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: 44px;
        }

    .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;
    }
}

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