/* Mobile-first improvements */
.navigation {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.topNav {
    background-color: rgba(255, 255, 255, 0.074);
    border: 1px solid rgba(255, 255, 255, 0.222);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    width: 100%;
    padding: 10px 15px; /* Added for mobile spacing */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Dark background when scrolled */
.topNav.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile nav defaults */
.navMenu {
    display: none; /* Hidden by default for mobile */
}

#burger {
    display: block; 
    cursor: pointer;
    font-size: 24px;
    color: white;
}

/* Desktop view */
@media (min-width: 992px) {
    .navMenu {
        display: flex;
        gap: 20px;
    }

    #burger {
        display: none;
    }
}

/* Nav links */
.navMenu a {
    text-decoration: none;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    text-shadow: 0.25px 0.25px black;
    transition: color 0.3s ease;
    padding: 12px 0; /* Larger mobile tap area */
}

.navMenu a:hover {
    color: orange;
}

/* Login + Signup buttons */
.loginText, .signupText {
    cursor: pointer;
    color: white;
    font-size: 15px;
    padding: 10px 15px; /* Mobile friendly tap size */
}

.loginText:hover, .signupText:hover {
    color: orange;
}

/* Cart badge */
.cart-icon-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #FFAA33;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
}

/* Dropdown submenu */
.subMenuContainer {
    max-width: 300px;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1001;
}
