html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 800;
    width: 100%;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(205, 222, 235, .95);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 28px rgba(44, 97, 143, .08);
    backdrop-filter: blur(18px);
}

.bottom-nav-inner {
    display: grid;
    width: 100%;
    max-width: 760px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin: 0 auto;
    padding: 0;
}

.bottom-nav .nav-item {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 5px 2px;
    border-radius: 16px;
    background: transparent;
    color: #71869a;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.bottom-nav .nav-item svg {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    stroke-width: 1.8;
}

.bottom-nav .nav-item > span:not(.cart-badge) {
    display: block;
    max-width: 100%;
    overflow: hidden;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-nav .nav-item.active {
    border-radius: 16px;
    background: #eaf5fd;
    color: #1c6eb4;
    font-weight: 700;
}

.bottom-nav .cart-badge {
    position: absolute;
    top: 1px;
    left: calc(50% + 8px);
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #3f92dc;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

@media (hover: hover) {
    .bottom-nav .nav-item:hover {
        border-radius: 16px;
        background: #eaf5fd;
        color: #1c6eb4;
    }

    .bottom-nav .nav-item.active:hover {
        background: #dceffc;
        color: #155f99;
    }
}

@media (max-width: 420px) {
    .bottom-nav-inner {
        gap: 4px;
    }

    .bottom-nav .nav-item {
        font-size: 9px;
    }
}
