/* ---------> HEADER <---------*/
header, .nav-header {
    padding: 20px 120px;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-header 
{
    padding-top: 0px;
    padding-bottom: 0px;
}

img.logo__mobail {
    display: none !important;
}

.header__burger {
    display: none;
}

.btn-backet-btm {
    display: none;
}


.header_top {
    z-index: 100;
    width: 100%;
    display: flex;
    align-items: center;
    background: #fff;
    transition: transform 0.3s ease;
    height: 65px;
    justify-content: space-between;
}

.header__logo {
    width: 210px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 1;
    width: 210px;
    object-fit: contain;
}

.header__backet {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.141);
}

.modal {
    position: fixed;
    display: none;
    top: 100px;
    height: 100vh;
    width: 100vw;
    background-color: #fff;
    z-index: 150;
    box-sizing: border-box;
    padding: 30px 50px 0;
}

.modal h4 {
    margin: 30px 0;
}

.modal img {
    width: 25px;
    height: 25px;
    object-fit: cover;
}

.modal h3,
h4,
h5 {
    display: flex;
    justify-content: left;
    gap: 20px;
}

.modal__close {
    display: none;
    box-sizing: border-box;
    width: 50px;
    height: 50px;
}

.modal__close img {
    object-fit: cover;
    object-position: center;
}

.info {
    display: flex;
    align-items: center;
    font-weight: 400;
    gap: 20px;
}

.info a {
    transition: color 0.3s ease-out, transform 0.3s ease-out;
}

.info a:hover {
    transform: translateY(-1px);
}


/* ---------> NAVIGATION <---------*/
.nav-header {
    top: 0;
    position: sticky;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.564);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    display: flex;
    align-items: center;
}

/* Скрываем десктопное лого в фиксированной навигации */
body.scrolled .nav-header .header__logo {
    display: none !important;
}

/* Сдвигаем навигационное меню чтобы освободить место для логотипа */
body.scrolled .nav-menu-container {
    margin-left: 80px;
    /* Отступ для логотипа */
    justify-content: flex-start;
    transition: margin-left 0.3s ease;
}

/* Анимация появления логотипа */
@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translate(-10px, -50%);
    }

    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

/* Анимация сдвига меню */
@keyframes slideMenu {
    from {
        margin-left: 0;
    }

    to {
        margin-left: 80px;
    }
}

body.scrolled .nav-menu-container {
    animation: slideMenu 0.3s ease forwards;
}

/* Добавляем padding-top для body чтобы контент не прыгал под фиксированной навигацией */
body.scrolled {
    padding-top: 65px;
    /* Высота фиксированной навигации */
}

/* Скрываем основную шапку при скролле */
body.scrolled .header_top {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Контейнер для меню */
.nav-menu-container {
    align-items: center;
    text-align: left;
    margin: 0 auto;
    display: inline-flex;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-tap-highlight-color: transparent;
}

.nav-menu-container::-webkit-scrollbar {
    display: none;
}

/* Само меню */
.nav-menu {
    display: flex;
    justify-content: left;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    height: auto;
    width: 100%;
}

.nav-menu li {
    padding: 10px 5px;
    white-space: nowrap;
    flex-shrink: 0;
    /* не сжимать пункты меню */
}

.nav-menu a:hover {
    color: #8B9649;
}

/* Контейнер для корзины */
.cart-container {
    flex-shrink: 0;
    margin-left: auto;
}

/* Кнопка корзины */
.btn-backet {
    background-color: #ACBC49;
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
}

.btn-backet:hover {
    background-color: #9fad43;
}

/* Стили для содержимого корзины */
.basket {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 300;
}

.basket-text {
    font-size: 16px;
    font-weight: 500;
}

.basket-separator {
    font-size: 16px;
    opacity: 0.7;
}

.basket-total {
    font-size: 16px;
    font-weight: 500;
}
