nav {
    background-color: #ffffff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 30px;
    position: relative;
    margin-bottom: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px; /* Увеличил расстояние между иконками */
}

.nav-cart-icon {
    position: relative;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    height: 30px; /* Высота как у других элементов меню */
}

.filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: #000;
    font-size: 18px;
    height: 30px; /* Высота как у других элементов меню */
}

.filter-btn svg {
    width: 22px;
    height: 22px;
}

.nav-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e53935;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
}

nav a img:active {
    filter: none;
}

nav img {
    max-height: 40px;
    margin-right: 10px;
    opacity: 1;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    height: 30px; /* Высота как у иконки корзины */
}

.cart-icon-svg {
    width: 24px;
    height: 24px;
    fill: #000;
}

/* Стили для иконки меню */
.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: #000;
    height: 30px; /* Высота как у других элементов меню */
    text-decoration: none;
}

.menu-svg {
    width: 24px;
    height: 24px;
    fill: #000;
}

.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    animation: shine 4s infinite;
    z-index: 3;
    pointer-events: none; 
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0.6;
    }
    20% {
        opacity: 1;
    }
    40% {
        left: 150%;
        opacity: 0.6;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

/* Медиа-запросы */
@media (max-width: 480px) {
    nav a {
        color: #000000;
        text-decoration: none;
        font-size: 25px;
    }
    
    .nav-cart-icon {
        font-size: 22px;
    }
    
    .filter-btn {
        font-size: 22px;
    }
    
    .menu-svg {
        width: 28px;
        height: 28px;
    }
    
    .nav-right {
        gap: 18px; /* Увеличил расстояние для мобильных */
    }
    
    nav img {
        max-height: 35px;
    }
}

@media (max-width: 767px) {
    .nav-right {
        gap: 16px; /* Увеличил расстояние для планшетов */
    }
    
    .nav-cart-icon {
        font-size: 18px;
    }
    
    .filter-btn {
        font-size: 18px;
    }
    
    .menu-svg {
        width: 22px;
        height: 22px;
    }
    
    .nav-cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
    
    nav {
        padding: 15px 20px;
    }
    
    nav img {
        max-height: 35px;
    }
}