.navbar {
    background: transparent; /* Make background transparent so the pill "floats" */
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* --- LOGO --- */
.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--primary-brand);
    flex: 1; /* Takes up space to help center the middle pill */
}
.logo span { color: var(--accent-brand); }

/* --- THE FLOATING PILL (MIDDLE) --- */
.nav-links { 
    display: flex; 
    gap: 0.5rem; 
    list-style: none; 
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 50px;
    border: 1px solid rgba(0, 74, 173, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin: 0 auto; /* Centers it between Logo and Cart */
}

.nav-links li a { 
    font-weight: 600; 
    font-size: 0.9rem; 
    color: var(--text-main); 
    padding: 10px 20px;
    border-radius: 50px;
    transition: var(--transition);
}

/* Hover effect inside the pill */
.nav-links li a:hover { 
    background: var(--primary-brand);
    color: white;
}

/* --- CART & ACTIONS (RIGHT) --- */
.nav-actions { 
    display: flex; 
    justify-content: flex-end; 
    flex: 1; /* Takes up space to help center the middle pill */
}

.nav-cart { 
    background: var(--primary-brand); 
    color: white;
    border-radius: var(--radius-pill); 
    padding: 0.6rem 1.4rem; 
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.2);
    transition: var(--transition);
}

.nav-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 74, 173, 0.3);
}

.cart-count {
    background: var(--accent-brand); 
    color: white;
    font-size: 0.7rem; 
    width: 20px; height: 20px;
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

@keyframes cartBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.cart-count.bump {
    animation: cartBump 0.3s ease-out;
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Hide the pill on very small screens */
    .logo { flex: initial; }
}
