/* ===== Navbar Base ===== */
.navbar {
    border-bottom: 1px solid #eee;
    background: white;
    position: relative; /* keep menu anchored to header */
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    position: relative; /* so absolute .nav-links can use top:100% reliably */
}

/* ===== Logo ===== */
.logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* ===== Links ===== */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: #111;
    font-size: 14px;
}

/* ===== Cart badge ===== */
#cartLink {
    position: relative;
}

.cart-count {
    display: none;
    position: absolute;
    top: -6px;
    right: -12px;
    background: #e53935;
    color: white;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 12px;
}

/* ===== Hamburger ===== */
.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .nav-wrapper {
        padding: 15px;
    }

    /* Show hamburger */
    .menu-toggle {
        display: block;
    }

    /* Hide links initially */
    .nav-links {
        position: absolute;
        top: 100%; /* place directly below header */
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        border-top: 1px solid #eee;
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
        display: none;
    }

    /* Active menu */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 10px 0;
        font-size: 15px;
    }

    /* Logo smaller */
    .logo {
        font-size: 16px;
    }

}