/* Плавающий док */
.nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 420px;
    padding: 6px;
    background: rgba(8, 12, 20, 0.72);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    border: 1px solid rgba(46, 230, 214, 0.18);
    border-radius: 24px;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 32px rgba(46, 230, 214, 0.08);
    z-index: 120;
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
    padding: 8px 6px 7px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
    transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.nav-item.active {
    color: #2EE6D6;
    background: linear-gradient(180deg, rgba(46, 230, 214, 0.18) 0%, rgba(46, 230, 214, 0.05) 100%);
    box-shadow: 0 0 20px rgba(46, 230, 214, 0.12) inset;
}

.nav-item.active svg {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(46, 230, 214, 0.7));
    transform: translateY(-1px);
}

.nav-item:active {
    transform: scale(0.96);
}

.cart-badge {
    position: absolute;
    top: 6px;
    right: 18%;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: #2EE6D6;
    color: #05070D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 0 12px rgba(46, 230, 214, 0.65);
}
