.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: #111;
    border-bottom: 1px solid #222;
    height: 60px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    color: #ff0055;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    text-decoration: none;
    letter-spacing: 1px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #181818;
    border-radius: 4px;
    padding: 0.4rem;
}

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.2rem 0.8rem;
    width: 300px;
    font-size: 0.9rem;
}

.search-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
}

.nav-right {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem;
}

.nav-item {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
}

.nav-link.active {
    color: #ff0055;
}

/* Add to existing CSS */
.nav-link {
    color: #fff;
    text-decoration: none;
    position: relative;
    font-size: 1.1rem;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff0055;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.profile-pic {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dropdown Base Styles */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    cursor: pointer;
    padding: 8px;
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1a1a1a;
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
    border: 1px solid #333;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Content Styling */
.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #333;
}

.dropdown-content {
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-footer {
    padding: 15px;
    border-top: 1px solid #333;
    text-align: center;
}

/* Notification & Message Badges */
.notification-badge,
.messages-badge,
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 1px 4px;
    font-size: 10px;
    min-width: 14px;
    height: 14px;
    text-align: center;
    line-height: 14px;
    box-shadow: 0 0 0 2px #1a1a1a;
}

.dropdown-trigger {
    cursor: pointer;
    padding: 8px;
    position: relative;
    font-size: 18px; /* Increased icon size for better proportion */
}

/* Profile Menu Specific */
.profile-menu .dropdown-trigger img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: none;
    padding: 0;
    object-fit: cover;
}

/* Notification & Message Items */
.notification-item,
.message-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    text-decoration: none;
    color: #fff;
}

.notification-avatar img,
.message-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: none;
    background: none;
    padding: 0;
    object-fit: cover;
}

/* Cart Specific */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
}

.item-image img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 15px;
}

.checkout-btn {
    display: block;
    background: #4a9eff;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: #222;
}

@media (max-width: 768px) {
    .search-bar input {
        width: 200px;
    }
    
    .nav-right {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem;
    }
    
    .search-bar {
        display: none;
    }
    
    .nav-right {
        gap: 0.8rem;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 992px) {
    .nav-container {
        padding: 10px 15px;
    }

    .navbar-collapse {
        background: #111111;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-search {
        width: 100%;
        margin-bottom: 15px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-bottom: 15px;
    }

    .nav-links a {
        padding: 12px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--text-primary);
        text-decoration: none;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-links a.active {
        background: rgba(0, 255, 255, 0.1);
        color: #00ffff;
    }

    .nav-actions {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown {
        position: static;
    }

    .dropdown-menu {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100% !important;
        margin: 0 !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s ease !important;
        background: #111111;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px 12px 0 0;
        max-height: 80vh;
        overflow-y: auto;
    }

    .dropdown-menu.show {
        transform: translateY(0) !important;
    }

    .dropdown-header {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-content {
        padding: 10px;
    }

    .dropdown-footer {
        padding: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .notification-badge,
    .messages-badge,
    .cart-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ff0066;
        min-width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
    }

    .profile-menu .dropdown-trigger img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .menu-dropdown .user-info {
        display: flex;
        align-items: center;
        padding: 15px;
    }

    .menu-dropdown .user-info img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        margin-right: 15px;
    }

    .menu-dropdown .dropdown-content a {
        padding: 12px 15px;
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-primary);
        text-decoration: none;
    }

    .menu-dropdown .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 576px) {
    .nav-logo h1 {
        font-size: 1.2rem;
    }

    .nav-actions {
        gap: 20px;
    }

    .dropdown-trigger {
        position: relative;
    }

    .dropdown-header h4 {
        font-size: 1.1rem;
    }
}
.assistant-dropdown { min-width: 420px; }
.assistant-input { display:flex; gap:10px; padding:12px; }
.assistant-input textarea { flex:1; background:#222; color:#fff; border:1px solid #333; border-radius:8px; padding:8px; resize:vertical; }
.assistant-send { background:#fe2c55; color:#fff; border:none; border-radius:8px; padding:8px 12px; cursor:pointer; }
.assistant-response { padding:12px; color:#ddd; white-space:pre-wrap; }
