.header {
    background-color: #fffdf7;
    border-bottom: 1px solid #e0d5c0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #2d5a1b;
}

.logo-image {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: contain;
}

.logo-text {
    font-family: 'Lora', serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: #2d5a1b;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: #2c2c2c;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4a7c3f;
    background-color: rgba(74, 124, 63, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #2c2c2c;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cart-link:hover {
    background-color: rgba(74, 124, 63, 0.08);
    color: #4a7c3f;
}

.cart-icon {
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fffdf7;
    background-color: #c8a45a;
    border-radius: 9px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.cart-count.has-items {
    opacity: 1;
    transform: scale(1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #2c2c2c;
    border-radius: 1px;
    transition: all 0.2s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .header-inner {
        gap: 15px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 102px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #fffdf7;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 5px;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .logo-image {
        width: 54px;
        height: 54px;
    }

    .header-inner {
        gap: 10px;
    }
}
