/* Reset basics */
body, ul, li, a, p, span {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    color: inherit;
    box-sizing: border-box;
}


/* Main Navbar */
.navbar-default {
    background-color: #111827;
    font-family: 'Segoe UI', sans-serif;
}


/* Toggle button */
.navbar-header .open-btn {
    background: transparent;
    border: none;
    color: #fff;
}
.navbar-header .icon-bar {
    background: #fff;
}


/* Collapse container */
.navbar-collapse {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Nav items */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.navbar-nav > li > a {
    padding: 15px 10px;
    color: white;
    font-weight: 600;
    display: block;
    transition: 0.3s;
}
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    color: #f4a21d;
}


/* Dropdown Styling */
.menu-item-has-children {
    position: relative;
}
.menu-item-has-children:hover > .sub-menu {
    display: block;
}
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f2937;
    padding: 10px 15px;
    min-width: 220px;
    display: none;
    z-index: 999;
    border-top: 2px solid #f4a21d;
}
.sub-menu li {
    padding: 5px 0;
}
.sub-menu li a {
    color: white;
    font-size: 14px;
    transition: 0.3s;
}
.sub-menu li a:hover {
    color: #f4a21d;
}
.sub-menu li strong {
    display: block;
    color: #f4a21d;
    padding: 6px 0 3px;
    border-bottom: 1px solid #444;
}


/* ✅ Scrollbar only for last-level submenus */
.sub-menu .sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background: #1f2937;
    min-width: 220px;
    max-height: 300px;       /* scrollbar only here */
    overflow-y: auto;
    border-left: 2px solid #f4a21d;
}


/* ✅ Custom scrollbar */
.sub-menu .sub-menu::-webkit-scrollbar {
    width: 6px;
}
.sub-menu .sub-menu::-webkit-scrollbar-thumb {
    background: #f4a21d;
    border-radius: 4px;
}
.sub-menu .sub-menu::-webkit-scrollbar-track {
    background: #333;
}


/* Cart Section */
.cart-contact {
    position: relative;
}
.cart-toggle-btn {
    background: none;
    border: none;
    color: white;
    font-weight: 600;
    padding: 15px;
    cursor: pointer;
}
.cart-toggle-btn i {
    margin-right: 5px;
}
.top-cart-content {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    z-index: 999;
    padding: 15px;
}
.mini-cart:hover .top-cart-content {
    display: block;
}
.top-cart-title p {
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: #333;
}
.top-cart-item {
    display: flex;
    margin-bottom: 10px;
}
.top-cart-item-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border: 1px solid #eee;
}
.top-cart-item-des a {
    font-weight: bold;
    color: #333;
}
.top-cart-item-price,
.top-cart-item-quantity {
    display: block;
    font-size: 14px;
    color: #666;
}
.top-cart-action {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-checkout-price {
    font-weight: bold;
    color: #222;
}
.theme-btn {
    background: #f4a21d;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
}


/* Desktop - Default Horizontal */
.navigation .navbar-collapse {
    display: flex;
    justify-content: center;
}
.navigation .navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.navbar-header .open-btn,
.close-navbar {
    display: none;
}


/* Mobile - Sidebar */
@media (max-width: 991px) {
    .navigation .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        background: #002147;
        width: 80%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        padding: 20px;
        box-shadow: -4px 0 8px rgba(0,0,0,0.1);
        transition: right 0.3s;
        z-index: 9999;
    }
    .navigation .navbar-collapse.open-navbar {
        right: 0;
    }
    .navbar-header .open-btn,
    .close-navbar {
        display: block;
        font-size: 26px;
        color: #fff;
        background: none;
        border: none;
    }
    .navigation .navbar-nav {
        flex-direction: column;
        gap: 15px;
    }
    .navigation .navbar-nav li a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
    }
    .navigation .navbar-nav .sub-menu {
        background: #1f2937;
    }
    .navigation .navbar-nav .sub-menu li a {
        color: #fff;
    }
}
