.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: box-shadow var(--duration-normal) ease,
        background var(--duration-normal) ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--border);
}

.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* Nav Links */
.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.navbar-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--charcoal-light);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: color var(--duration-fast) ease,
        background var(--duration-fast) ease;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--rani-pink);
    border-radius: 1px;
    transition: transform var(--duration-normal) var(--ease-out);
}

.navbar-link:hover {
    color: var(--charcoal);
    background: var(--surface-hover);
}

.navbar-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.navbar-vendor-btn {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--white);
    background: var(--rani-pink);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none;
}

.navbar-vendor-btn:hover {
    background: var(--rani-pink-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-pink);
    color: var(--white);
}

.navbar-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--charcoal);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) ease;
    text-decoration: none;
}

.navbar-login-btn:hover {
    background: var(--surface-hover);
    color: var(--charcoal);
}

/* Profile Dropdown */
.profile-container {
    position: relative;
}

.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rani-pink) 0%, #e91e63 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(194, 24, 91, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(194, 24, 91, 0.4);
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border);
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease;
    z-index: 100;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: var(--space-4);
    background: linear-gradient(135deg, rgba(194, 24, 91, 0.05) 0%, rgba(233, 30, 99, 0.02) 100%);
}

.dropdown-name {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 14px;
    margin: 0;
}

.dropdown-email {
    font-size: 12px;
    color: var(--charcoal-light);
    margin: 4px 0 0;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--charcoal);
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--surface-hover);
    color: var(--rani-pink);
}

.dropdown-item svg {
    flex-shrink: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.mobile-header-actions {
    display: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Actions (inside mobile menu) */
.mobile-actions {
    display: none;
}

/* Mobile */
@media (max-width: 900px) {
    .navbar-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-6);
        gap: var(--space-1);
        transform: translateX(100%);
        transition: transform var(--duration-slow) var(--ease-out);
        z-index: 999;
    }

    .navbar-links.mobile-open {
        transform: translateX(0);
    }

    .navbar-link {
        font-size: var(--text-lg);
        width: 100%;
        padding: var(--space-3) var(--space-4);
    }

    .hamburger {
        display: flex;
    }

    .mobile-header-actions {
        display: flex !important;
        align-items: center;
        gap: 12px;
    }

    .navbar-actions {
        display: none;
    }

    .profile-container {
        display: flex !important;
    }

    .mobile-profile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        background: var(--rani-pink);
    }

    .mobile-profile-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-profile-avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background: var(--rani-pink);
        color: white;
        font-weight: 600;
        font-size: 14px;
    }

    .mobile-login-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--surface);
        color: var(--charcoal);
    }

    .mobile-actions {
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
        margin-top: auto;
        padding-top: var(--space-6);
        border-top: 1px solid var(--border);
    }

    .mobile-login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-2);
        padding: var(--space-3) var(--space-6);
        border: 1.5px solid var(--border-hover);
        border-radius: var(--radius-full);
        font-size: var(--text-base);
        font-weight: 500;
        color: var(--charcoal);
        transition: all var(--duration-normal) var(--ease-out);
        text-decoration: none;
    }

    .mobile-login-btn:hover {
        border-color: var(--rani-pink);
        color: var(--rani-pink);
        background: rgba(194, 24, 91, 0.03);
    }

    .mobile-vendor-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-2);
        padding: var(--space-3) var(--space-6);
        background: var(--rani-pink);
        border-radius: var(--radius-full);
        font-size: var(--text-base);
        font-weight: 600;
        color: #fff;
        transition: all var(--duration-normal) var(--ease-out);
        text-decoration: none;
    }

    .mobile-vendor-btn:hover {
        background: var(--rani-pink-dark);
        box-shadow: var(--shadow-glow-pink);
        color: #fff;
    }
}