.cart-icon {
    cursor: pointer;
}

.nav-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ce2101;
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix for Material Icons in Bambo design */
.material-icons {
    vertical-align: middle;
}

/* Dropdown logic */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    color: #333 !important;
    padding: 10px 20px !important;
    display: block;
    text-transform: uppercase;
}

.nav-dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary-red) !important;
}

.nav-dropdown-content a::after {
    display: none !important;
}

.nav-dropdown>a {
    display: inline-flex;
    align-items: center;
}

/* Mobile Drawer Styles */
.mobile-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px;
}

.mobile-toggle .material-icons {
    font-size: 28px;
    color: #333;
}

@media (max-width: 1024px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
    }

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

    .header-right {
        display: none !important;
    }
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: #fff;
    z-index: 10000;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    left: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.open {
    display: block;
    opacity: 1;
    backdrop-filter: blur(4px);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.mobile-drawer-header img {
    height: 45px;
}

.close-drawer {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
}

.close-drawer:hover {
    background: #fee;
    color: var(--primary-red);
}

.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid #f9f9f9;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-red);
    background-color: #fdfdfd;
    text-decoration: none;
}

.mobile-submenu {
    display: none;
    background-color: #f8f9fa;
}

.mobile-submenu.open {
    display: block;
}

.mobile-sub-link {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-sub-link:hover,
.mobile-sub-link.active {
    color: var(--primary-red);
    text-decoration: none;
}

.has-submenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.has-submenu .material-icons {
    transition: transform 0.3s;
}

.has-submenu.open .material-icons {
    transform: rotate(180deg);
}