/* ===== 1. БАЗОВАЯ ШАПКА (Для Меню, Корзины, Админки) ===== */
.topbar {
    position: fixed;
    /* Прилипает к верху навсегда */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    /* Белый фон по умолчанию */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Легкая тень */
    padding: 10px 0;
    transition: all 0.3s ease;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar__logo {
    height: 36px;
    width: auto;
    display: block;
    transition: filter 0.3s ease;
}

.topbar__nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-family: "Manrope", sans-serif;
}

.topbar__link {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .4px;
    color: #2B2B2B;
    /* Темный текст по умолчанию */
    padding: 8px 10px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.topbar__link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.addrBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 12px;
    color: #2B2B2B;
    /* Темный текст */
    transition: 0.3s ease;
}

.addrBtn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.pin {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: #E30613;
    /* Красный пин */
    border-radius: 50%;
}


/* ===== 2. ПРОЗРАЧНАЯ ШАПКА (ТОЛЬКО ДЛЯ ГЛАВНОЙ СТРАНИЦЫ НА ВЕРХУ) ===== */
.topbar--transparent {
    background-color: transparent;
    box-shadow: none;
    padding: 24px 0;
    /* Делаем шапку чуть свободнее на верху */
}

.topbar--transparent .topbar__logo {
    filter: brightness(0) invert(1);
    /* Делаем логотип абсолютно белым */
}

.topbar--transparent .topbar__link,
.topbar--transparent .addrBtn {
    color: #fff;
    /* Делаем текст абсолютно белым */
}

.topbar--transparent .topbar__link:hover,
.topbar--transparent .addrBtn:hover {
    background: rgba(255, 255, 255, 0.15);
}


/* ===== 3. КОГДА ПРОЗРАЧНУЮ ШАПКУ ПРОСКРОЛЛИЛИ ВНИЗ ===== */
.topbar--transparent.is-scrolled {
    background-color: #fff;
    /* Возвращаем белый фон */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Возвращаем тень */
    padding: 10px 0;
    /* Сжимаем обратно */
}

.topbar--transparent.is-scrolled .topbar__logo {
    filter: none;
    /* Возвращаем цветной логотип */
}

.topbar--transparent.is-scrolled .topbar__link,
.topbar--transparent.is-scrolled .addrBtn {
    color: #2B2B2B;
    /* Возвращаем темный текст */
}

.topbar--transparent.is-scrolled .topbar__link:hover,
.topbar--transparent.is-scrolled .addrBtn:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Оставь модалку и корзину ниже без изменений... */

.modal {
    display: none;
}

.modal.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.modal__panel {
    position: relative;
    width: min(560px, calc(100% - 24px));
    margin: 70px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
    font-family: "Inter", sans-serif;
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.modal__title {
    font-family: "Manrope", sans-serif;
    font-weight: 800;
}

.modal__close {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.modal__body {
    padding: 16px 18px;
}

.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.toggle {
    display: flex;
    gap: 10px;
    margin: 12px 0;
}

.toggle__btn {
    flex: 1;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.toggle__btn.is-active {
    border-color: var(--red);
    color: var(--red);
}

.addrList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.addrItem {
    text-align: left;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #fff;
    padding: 12px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-family: "Inter", sans-serif;
}

.addrItem.is-selected {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 21, 21, .12);
}