﻿/* ========== NAVBAR ========== */
.navbar {
    padding: 0;
}
body {
    margin-top: 100px;
}
.top-bar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
 
 

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

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

#navbarSupportedContent .navbar-brand img {
    width: 130px;
}

img, svg {
    vertical-align: middle;
}

.navbar-nav {
    align-items: center;
}
/* ========== MENU ========== */
.menu {
    width: 100%;
    padding: 20px 0px;
    border-radius: 16px;
}

    .menu .nav-link {
        padding: 0;
        font-weight: 400;
        font-style: normal;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: right;
        color: #2C3E50;
        margin-left: 24px;
    }

    .menu .navbar-nav .nav-link {
        font-weight: 400;
        font-style: normal;
        font-size: 14px;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: right;
        color: #2C3E50;
    }

        .menu .navbar-nav .nav-link.dropdown-toggle {
            color: #2C3E50;
        }

        .menu .nav-link svg,
        .menu .nav-link svg path,
        .menu .navbar-nav .nav-link svg,
        .menu .navbar-nav .nav-link svg path {
            stroke: #2C3E50;
            fill: none;
        }

/* ========== 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 {
    padding-right: 20px;
    border-right: 1px solid #C4D4C966;
}

    .top-bar-login .btn {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0;
        gap: 12px;
        border: none;
        border-radius: 30px;
        flex: none;
        order: 1;
        flex-grow: 0;
        z-index: 1;
        background: transparent;
        color: #2C3E50;
        font-style: normal;
        font-weight: 400;
        font-size: 16px;
        line-height: 120%;
        text-align: center;
    }

        .top-bar-login .btn:hover {
            border: none;
            box-shadow: none;
        }

        .top-bar-login .btn:focus {
            border: none;
            box-shadow: none;
        }

        .top-bar-login .btn:active {
            border: none;
            box-shadow: none;
        }

        .top-bar-login .btn .desktop {
            flex: none;
            flex-grow: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            flex-direction: column;
        }

        .top-bar-login .btn .menu-fa {
            width: 24px;
            height: 24px;
            flex: none;
            flex-grow: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .top-bar-login .btn .menu-fa svg {
                width: 24px;
                height: 24px;
            }

            .top-bar-login .btn .menu-fa img {
                width: 20px;
            }

.top-bar-like {
    background-color: var(--gray-4) !important;
    border-radius: 5px;
    padding: 10px 12px;
}

    .shopCartBtn img, .top-bar-like img {
        width: 20px;
    }

.shopCartBtn {
    background-color: var(--gray-4) !important;
    border-radius: 5px;
    padding: 10px; 
}
    .shopCartBtn .btn {
        border: none;
        position: relative;
        height: 24px;
        width: 20px;
    }

    .shopCartBtn .btn svg, .shopCartBtn .btn img {
        width: 20px; 
        position: absolute;
        left: 0;
        top: 0;
    }


    .shopCartBtn .btn .shop-cart-badge.desktop {
        position: absolute;
        top: -24px;
        left: -16px;
        width: 18px;
        height: 18px;
        padding: 0 !important;
        margin: 0 !important;
        font-family: IRANSansX, sans-serif;
        font-weight: 300 !important;
        font-style: normal;
        font-size: 12px !important;
        line-height: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        background-color: var(--tertiary) !important;
        color: #FFFFFF !important;
        border-radius: 50%;
        border: none !important;
        box-sizing: border-box;
    }
.shopCartBtn .btn:hover {
    background-color: unset !important;
    border: none !important;
    box-shadow: none !important;
}
.shopCartBtn .btn:focus {
    background-color: unset !important;
    border: none !important;
    box-shadow: none !important;
}

    .top-bar svg, .top-bar img,
    .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-container img {
        width: 20px;
    }

.search-input { 
    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;
    }
.top-bar-search-result {
    padding-top: 24px;
}

.searchResults {
    overflow-y: auto;
    max-height: 400px;
    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 {
    display: flex !important;
    gap: 20px;
    align-items: center;
}

    .offer-nav a {
        display: flex;
        font-weight: 400;
        font-style: normal;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: right;
        color: #2C3E50;
        gap: 10px;
        align-items: center;
    }

    .offer-nav .nav-link {
        font-weight: 400;
        font-style: normal;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: right;
        color: #2C3E50;
    }

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

    .offer-nav .stroke-tertiary svg,
    .offer-nav .stroke-tertiary svg path {
        stroke: #2C3E50 !important;
        fill: none !important;
    }

/* ========== 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 ========== */
.mega-menu-towLayer .dropdown-menu li {
    box-shadow: 0px 0px 30px 5px rgba(2.9999999999999996, 58, 53.00000000000003, 0.2);
}

.brands-menu .dropdown-menu li {
    box-shadow: 0px 0px 30px 5px rgba(2.9999999999999996, 58, 53.00000000000003, 0.2);
}

.mega-menu-towLayer .dropdown-menu .menu-base-twoLayer .twoLayer-items a {
    font-size: 14px;
}

.mega-menu-towLayer .dropdown-menu .menu-base-twoLayer .twoLayer-items .menu-base-item {
    margin-bottom: 8px;
}

.mega-menu-towLayer .dropdown-menu .menu-base-twoLayer .twoLayer-items .menu-child-item a:before {
    margin: 0 2px;
    width: 8px;
    vertical-align: middle;
}
.brands-menu .dropdown-menu li {
    width: 600px!important;
}
.menu-brands {
    padding-left: 8px;
    padding-right: 8px;
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
}
.menu-brands .col-2 {
    width: auto;
    padding-left: 0;
    padding-right: 0;
    margin: auto;
}
.menu-brands img {
    width: 80px!important;
    border-radius: 8px;
    border: 1px solid #C4D4C966 !important;
}

.menu-icon img {
    width: 24px;
}

.all-brands {
    color: var(--secondary);
    text-align: end;
    font-size: 13px;
}

.all-brands a:hover {
    color: var(--secondary)!important;
}

.all-brands img {
    width: 16px !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;
    box-sizing: border-box;
}

    .mobile-bottom-nav a {
        font-size: 14px !important;
        font-weight: 400;
        color: var(--s-secondary);
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        position: relative;
        font-size: 13px !important;
        padding-top: 2px;
    }

        .mobile-bottom-nav a.active {
            color: var(--s-secondary) !important;
        }

            .mobile-bottom-nav a.active span {
                color: var(--s-secondary) !important;
            }

            .mobile-bottom-nav a.active svg {
                stroke: var(--s-secondary) !important;
            }

                .mobile-bottom-nav a.active svg path {
                    stroke: var(--s-secondary) !important;
                }

                .mobile-bottom-nav a.active svg g path {
                    stroke: var(--s-secondary) !important;
                }

                .mobile-bottom-nav a.active svg rect,
                .mobile-bottom-nav a.active svg circle {
                    stroke: var(--s-secondary) !important;
                }

                .mobile-bottom-nav a.active svg * {
                    stroke: var(--s-secondary) !important;
                }

    .mobile-bottom-nav svg, .mobile-bottom-nav img {
        width: 20px;
        height: 20px;
        stroke: var(--s-secondary);
    }

        .mobile-bottom-nav svg path,
        .mobile-bottom-nav svg g,
        .mobile-bottom-nav svg g path,
        .mobile-bottom-nav svg rect,
        .mobile-bottom-nav svg circle {
            stroke: var(--s-secondary);
        }

    .mobile-bottom-nav .shop-cart-badge {
        display: none;
    }
     

/* ========== 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 {  
    background-color: var(--gray-0); 
}

    .nav-scroll-mobile .menu,
    .nav-scroll-mobile .mobile-header-row {
        background-color: var(--gray-0) !important;
    }  

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

        .navbar-toggler:hover,
        .navbar-toggler:focus,
        .navbar-toggler:active {
            outline: none !important;
            box-shadow: none !important;
            border: none !important;
        }

        .navbar-toggler.menu-bar:hover {
            background-color: transparent !important;
        }

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

    .menu-bar img {
        width: 48px;
        height: 48px;
        display: block;
    }

    .navbar-collapse {
        padding: 16px;
        padding-bottom: 24px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--gray-0) !important;
        z-index: 1050;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .menu {
        position: relative;
    }

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

    .menu {
        background-color: var(--gray-0) !important;
    }

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

    .mobile-bottom-nav {
        padding: 10px;
        position: fixed;
        height: 60px;
        bottom: 16px;
        background: #FFFFFF;
        box-shadow: 0px 0px 39px -11px rgba(8.00000000000001, 118.99999999999999, 108.9999999999999, 0.36);
        border-radius: 15px;
        z-index: 9999;
        margin: auto;
        width: 95%;
        left: -2.5%;
        right: -2.5%;
        display: flex;
    } 
    .mobile-bottom-nav div{
        justify-content: space-around !important;
    } 

    .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:has(.navbar-collapse.show) .mobile-header-row,
    .menu:has(.navbar-collapse.show) .mobile-header-row {
        background-color: var(--gray-0) !important;
    }
     

    .mobile-search-icon-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        text-decoration: none;
        cursor: pointer;
    }

        .mobile-search-icon-link img {
            width: 24px;
            height: 24px;
        }

    .shopCartBtn .btn svg, .shopCartBtn .btn img {
        width: 20px; 
        position: absolute;
        left: 0;
        top: -4px;
    }
    .shopCartBtn .btn .shop-cart-badge.desktop {
        position: absolute;
        top: -16px;
        left: -16px;
        width: 18px;
        height: 18px;
        padding: 0 !important;
        margin: 0 !important;
        font-family: IRANSansX, sans-serif;
        font-weight: 300 !important;
        font-style: normal;
        font-size: 12px !important;
        line-height: 100%;
        text-align: center;
        display: flex!important;
        align-items: center;
        justify-content: center;
        z-index: 10;
        background-color: #032340 !important;
        color: #FFFFFF !important;
        border-radius: 50%;
        border: none !important;
        box-sizing: border-box;
    }
}

@media (min-width: 1024px) {
    .mobile-search-icon-link {
        display: none !important;
    }
}

@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) {
}

/* Mobile menu offcanvas */
@media (max-width: 1023px) {
    #mobileMenuOffcanvas {
        width: 280px;
    }

        #mobileMenuOffcanvas .offcanvas-body {
            padding: 16px;
        }

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

        #mobileMenuOffcanvas .nav-link {
            color: var(--secondary) !important;
            padding: 0;
        }

            #mobileMenuOffcanvas .nav-link:hover,
            #mobileMenuOffcanvas .nav-link:focus,
            #mobileMenuOffcanvas .nav-link:active {
                color: var(--secondary) !important;
                background-color: transparent !important;
                outline: none !important;
                box-shadow: none !important;
            }

    .btn:hover,
    .btn:focus,
    .btn:active {
        outline: none !important;
        box-shadow: none !important;
        border-color: inherit !important;
    }
}

.dropdown-gap-bridge {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 48px;
    z-index: 1000;
    pointer-events: auto;
    background: transparent;
    height: 60px;
}

@media (max-width: 600px) {
    .menu {
        margin: 0 8px;
        padding: 12px 0;
    } 

    .menu-fa {
        display: block !important;
    }

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

    .navbar-light .navbar-toggler {
        border: none;
    }

    .navbar .btn i {
        font-size: 16px;
    }

    .mobile-header-row {
        display: flex;
        justify-content: space-between;
    }

    .menu-action-icon {
        background-color: var(--gray-4) !important;
        border-radius: 5px;
        padding: 8px 10px;
    }

    .top-bar-like {
        background-color: unset !important;
        border-radius: unset;
        padding: unset;
    }

    .shopCartBtn .desktop {
        display: flex !important;
    }

    .shopCartBtn .btn svg, .shopCartBtn .btn img {
        left: 0px;
        top:0px;
    }
    .shopCartBtn {
        background-color: unset;
        border-radius: unset;
        padding: unset;
        width: unset;
        height: unset;
    }
}

@media (min-width: 600px) and (max-width: 991.98px) { 

    .menu-fa {
        display: block !important;
    }
    .navbar-light .navbar-toggler {
        display: flex;
        gap: 32px;
    }
    .navbar-light .menu-mobile-logo {
        width: 100%;
    }
    .navbar-brand img {
        width: 140px;
    }
}

@media only screen and (width: 1024px) { 
    .navbar-expand-lg .navbar-collapse {
        display: none !important;
    }

    .navbar-toggler {
        display: flex !important;
        border: none;
        gap: 32px;
    }

    .navbar-toggler .menu-mobile-logo {
        width: 100%;
    }

    .shopCartBtn .btn svg, .shopCartBtn .btn img {
        top: -4px;
    }

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

    .navbar-brand {
        margin: 0;
    }

    .mobile-search-icon-link {
        display: flex !important;
    }
    .mobile-search-icon-link img {
        width: 24px;
        height: 24px;
    }
    .mobile-bottom-nav {
        padding: 10px;
        position: fixed;
        height: 60px;
        bottom: 16px;
        background: #FFFFFF;
        box-shadow: 0px 0px 39px -11px rgba(8.00000000000001, 118.99999999999999, 108.9999999999999, 0.36);
        border-radius: 15px;
        z-index: 9999;
        margin: auto;
        width: 50%;
        left: -2.5%;
        right: -2.5%;
        display: flex;
        justify-content: space-around !important;
    }

        .mobile-bottom-nav div {
            justify-content: space-around !important;
            gap: 48px;
}
    mobile-bottom-nav a {
        font-size: 14px !important;
        font-weight: 400;
        color: var(--s-secondary);
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        position: relative;
        font-size: 13px !important;
        padding-top: 2px;
    }

    .mobile-bottom-nav a.active {
        color: var(--s-secondary) !important;
    }

    .mobile-bottom-nav a.active span {
        color: var(--s-secondary) !important;
    }

    .mobile-bottom-nav a.active svg {
        stroke: var(--s-secondary) !important;
    }

    .mobile-bottom-nav a.active svg path {
        stroke: var(--s-secondary) !important;
    }

    .mobile-bottom-nav a.active svg g path {
        stroke: var(--s-secondary) !important;
    }

    .mobile-bottom-nav a.active svg rect,
    .mobile-bottom-nav a.active svg circle {
        stroke: var(--s-secondary) !important;
    }

    .mobile-bottom-nav a.active svg * {
        stroke: var(--s-secondary) !important;
    }

    .mobile-bottom-nav svg, .mobile-bottom-nav img {
        width: 20px;
        height: 20px;
        stroke: var(--s-secondary);
    }

    .mobile-bottom-nav svg path,
    .mobile-bottom-nav svg g,
    .mobile-bottom-nav svg g path,
    .mobile-bottom-nav svg rect,
    .mobile-bottom-nav svg circle {
        stroke: var(--s-secondary);
    }

    .mobile-bottom-nav .shop-cart-badge {
        display: none;
    }
}