#masthead{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99;
    transition: background-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}


.site-logo img{
    width: 100%;
    max-width: 10rem;
    transition: max-width 0.3s ease;
    padding: 0.6rem 0;
}

.nav-menu{
    display: flex !important;
    justify-content: end;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 20px !important;
}

.nav-menu li{
    margin: 0;
}

.nav-menu a{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover{
    color: #666;
}

.header-container{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid #000;
}

.header-cart{
    position: relative;
}

.cart-link{
    display: flex;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.5);
}

.mobile-menu-content {
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #fff;
    padding: 0;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #fff;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-navigation {
    padding: 2rem 1.5rem;
    flex: 1;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-menu li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-menu li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-menu li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-menu li:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu-overlay.active .mobile-nav-menu li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    border-bottom: 1px solid #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-menu a:hover {
    color: var(--main-color);
    transform: translateX(5px);
}

.mobile-nav-menu a:hover::before {
    left: 100%;
}

.mobile-menu-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.mobile-menu-btn:hover .menu-icon {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #masthead{
        padding: 0;
    }

    .header-container{
        justify-content: space-between;
        padding: 10px 10px;
    }

    .main-navigation {
        display: none;
    }

    .header-cart {
        order: 2;
        margin-left: auto;
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    .site-logo img{
        max-width: 100px !important;
    }
}