﻿/* Navigation Bar */
.navbar-shopdunk {
    background-color: #fff;
    color: #333;
    position: relative;
    z-index: 1000;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    height: 64px;
    margin: 0 auto;
    padding: 0 15px;
}

.box-menu {
    display: flex;
    width:90%;
}
/* Logo Section */
.menu-logo {
    display: flex;
    width: 16%;
    justify-content: center;
    align-items: center;
}
.menu-logo img {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

/* Menu Items */
.menu-items {
    display: flex;
    list-style: none;
    width: 77%;
    justify-content: center;
}

.menu-items .menu-item-li {
    position: relative;
    margin: 0 7px;
    line-height: 40px;
}

.menu-items .menu-item-li .menu-item-li-a {
    color: #333;
    padding: 10px 10px;
    font-size: 15px;
    display: block;
}

.menu-items > .menu-item-li:hover {
    background-color: #999;
}

.menu-items .menu-item-li .submenu { /* background-color: #fff;
min-width: 219px;
max-height: 500px;
overflow: auto; */
    max-width: 1064px;
    width: max-content; /* left: -164px; */
    max-height: 500px;
    overflow-x: hidden;
    overflow-y: scroll;
}
/* Submenu */
.menu-items .submenu {
    display: none;
    position: absolute;
    background-color: #fff;
    list-style: none;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 1064px;
}

.menu-items .has-submenu:hover .submenu {
    display: block;
}

@keyframes rotateAnimation {
    from {
        transform: rotate(180deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.menu-items .has-submenu:hover .rotateAnimation {
    rotate: 180deg;
    animation: rotateAnimation 0.3s ease-in-out forwards;
}
/* Icon Section */
.icons {
    display: flex;
    align-items: center;
    gap: 15px;
    width:8%;
}

.icons .icon {
    position: relative;
    cursor: pointer;
}

.icons .icon i {
    font-size: 24px;
    color: #333;
}

/* Cart Icon */
.icons .icon.cart .count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #3468F3;
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Popup */
.popup-search {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    width: 300px;
}

.popup-search input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.popup-search button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.popup-search button:hover {
    background-color: #555;
}

.menu-items .menu-item-li .box-submenu { /* display: flex;
    flex-wrap: wrap; */
    background-color: #fff;
}

.menu-items .menu-item-li :hover .submenu {
    background-color: #fff;
}

.box-submenu {
    display: grid;
    grid-template-columns: repeat(2, auto);
}

.submenu .box-submenu .submenu-level-2 { /* width: 50%; */ /* grid-row: 1 / 3; */
    padding-right: 16px;
}

.submenu-level-3 {
    display: flex;
    flex-wrap: wrap;
}
.box-submenu-level-3 {
    display: inline-block;
    vertical-align: top;
    width: calc(100% / 6 - 3px);
    min-width:80px;
    text-align: center;
    position: relative;
    border-radius: 12px;
    padding: 10px 5px;
}

.submenu-level-3 .box-submenu-level-3 a {
    color: #000;
    font-size: 11px;
}

.box-submenu-level-3-img {
    display: block;
    max-width: 48px;
    margin: 0 auto 5px auto;
    width: auto;
}

.box-submenu-level-3-text {
    -webkit-line-clamp: 2;
    display: -webkit-box;
    font-size: 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    color: #333;
    outline: 0;
    line-height: 14px;
    font-weight: normal;
}

.box-submenu-level-3:hover {
    background-color: #f9fafb;
}

#menuIcon {
    display: none;
    font-size: 24px;
    line-height: 42px;
}
/* Responsive Styles */
@media (max-width: 1024px) {
    .menu-items {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1000;
    }

    .menu-items.active {
        display: flex;
    }

    .menu-items li {
        margin: 20px 0;
    }

    .menu-items li a {
        text-align: center;
    }

    #menuIcon {
        display: block;
    }
}
/* cố định menu khi cuộn */
.fixed-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #E3E3E3;
}

.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transition: right 0.5s ease;
    overflow-y: auto;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
}

    .menu-overlay.active {
        right: 0;
    }

.menu-container {
    height: 100%;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.n-container {
    display: flex;
    height: 100%;
    width: 100%;
}

.sidebar {
    width: 160px;
    background-color: #f5f5f5;
    padding: 10px;
    border-right: 1px solid #ddd;
}

.sidebar .sidebar-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .sidebar-ul .sidebar-li {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar .sidebar-ul .sidebar-li:hover,
.sidebar .sidebar-ul .sidebar-li.active {
    background-color: #007bff;
    color: white;
}

.n-content {
    flex-grow: 1;
    padding: 20px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Basic styles for the dropdown */
.custom-dropdown {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    background-color: #3468F3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 5px 0;
    list-style: none;
    z-index: 1;
}

.custom-dropdown-menu li {
    padding: 8px 10px;
    width: 180px;
    color: #fff;
    background: #3468F3
}

.custom-dropdown-menu li a {
    color: #fff
}

.custom-dropdown-menu li:hover {
    padding: 8px 10px;
    width: 180px;
    background-color: #007bff;
}

/* Show dropdown menu on hover */
.custom-dropdown:hover .custom-dropdown-menu {
    display: block;
}
