
.navbar {
    background-color: #000;
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out;
}
.nav-hidden {
    transform: translateY(-100%);
}

.left-bar {
    flex: 1;
    position: relative;
    left: 25px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #fff;
}

.middle-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.right-bar {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.header-icon-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    transition: color 0.3s;
}

.header-icon-link:hover {
    color: #fff;
}

.cart-button {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.3s;
}

.cart-button:hover {
    color: #fff;
}

.icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-button i {
    font-size: 20px;
}

.cart-text {
    font-size: 16px;
    font-weight: 500;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #fff;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}

.bar-line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
    border-right: 1px solid #222;
    z-index: 1050;
}

.mobile-links {
    list-style: none;
    text-align: center;
    gap: 30px;
    display: flex;
    flex-direction: column;
}

.mobile-links a {
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .logo img {
        height: 35px;
        width: auto;
    }

    .desktop-menu, 
    .cart-text {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .right-bar {
        gap: 5px;
    }

    .mobile-menu.active {
        left: 0;
    }

    .hamburger.active .bar-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}







