/* Ultra Modern Navbar - 2025 */

.navbar-ultra {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: all 0.3s ease;
}

.navbar-ultra.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-ultra-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar-ultra-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Brand */
.navbar-ultra-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    transition: all 0.3s ease;
}

.navbar-ultra-brand i {
    display: none;
}

/* Menu */
.navbar-ultra-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-ultra-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: #4B5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-ultra-link:hover {
    color: var(--primary);
    background: rgba(34, 80, 233, 0.08);
}

.navbar-ultra-link.active {
    color: var(--primary);
    background: rgba(34, 80, 233, 0.1);
}

/* Cart Button */
.navbar-ultra-cart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-ultra-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 80, 233, 0.4);
}

.navbar-ultra-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: var(--danger);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
    line-height: 1;
    transition: transform 0.2s ease;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Mobile Actions */
.navbar-ultra-mobile-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.navbar-ultra-mobile-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-ultra-mobile-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 80, 233, 0.4);
}

.navbar-ultra-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #F9FAFB;
    border: none;
    border-radius: 12px;
    color: #111827;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-ultra-mobile-toggle:hover {
    background: #F3F4F6;
}

/* Mobile Menu */
.navbar-ultra-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow-y: auto;
}

.navbar-ultra-mobile-menu.active {
    right: 0;
}

.navbar-ultra-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #F3F4F6;
}

.navbar-ultra-mobile-close {
    width: 40px;
    height: 40px;
    background: #F9FAFB;
    border: none;
    border-radius: 10px;
    color: #111827;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-ultra-mobile-close:hover {
    background: #F3F4F6;
}

.navbar-ultra-mobile-items {
    padding: 1rem;
}

.navbar-ultra-mobile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #4B5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.navbar-ultra-mobile-link:hover {
    background: #F9FAFB;
    color: var(--primary);
}

.navbar-ultra-mobile-link i {
    width: 40px;
    height: 40px;
    background: #F9FAFB;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.navbar-ultra-mobile-link:hover i {
    background: rgba(34, 80, 233, 0.1);
    color: var(--primary);
}

.navbar-ultra-mobile-cart-badge {
    margin-right: auto;
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    line-height: 1;
    transition: transform 0.2s ease;
}

/* Overlay */
.navbar-ultra-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-ultra-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar-ultra-menu {
        display: none;
    }

    .navbar-ultra-mobile-actions {
        display: flex;
    }
}

@media (max-width: 768px) {

    /* Hide navbar on mobile - use bottom nav instead */
    .navbar-ultra {
        display: none;
    }

    .navbar-ultra-container {
        padding: 0 1.5rem;
    }

    .navbar-ultra-content {
        height: 70px;
    }

    .navbar-ultra-brand {
        font-size: 1.25rem;
    }



    .navbar-ultra-mobile-cart-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .navbar-ultra-mobile-toggle {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }

    .navbar-ultra-mobile-menu {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .navbar-ultra-container {
        padding: 0 1rem;
    }

    .navbar-ultra-brand {
        font-size: 1.125rem;
    }



    .navbar-ultra-mobile-cart-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9375rem;
    }

    .navbar-ultra-mobile-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .navbar-ultra-cart-badge {
        top: -5px;
        right: -5px;
        min-width: 18px;
        height: 18px;
        font-size: 0.625rem;
        border-width: 1.5px;
    }
}