/* ==========================================
   📱 BOTTOM NAVIGATION BAR (мобильный)
   Показывается только на ≤768px
   ========================================== */

.bottom-nav {
    display: none;  /* скрыт по умолчанию (десктоп) */
}

@media (max-width: 768px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        display: flex;
        justify-content: space-around;
        align-items: stretch;
        background: #FFFDF8;
        border-top: 2px solid #E8D5B8;
        box-shadow: 0 -4px 12px rgba(111, 78, 55, 0.1);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px;
        text-decoration: none;
        color: #5D4037;
        font-size: 10px;
        font-weight: 700;
        font-family: inherit;
        position: relative;
        min-height: 56px;
        transition: color 0.15s ease, background 0.15s ease;
        border-radius: 0;
    }

    .bottom-nav__item:active {
        background: #FFF8F0;
    }

    .bottom-nav__icon {
        font-size: 22px;
        line-height: 1;
        display: block;
    }

    .bottom-nav__label {
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
        letter-spacing: 0.2px;
    }

    /* Активный раздел */
    .bottom-nav__item.is-active {
        color: #D97706;
    }
    .bottom-nav__item.is-active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 15%;
        right: 15%;
        height: 3px;
        background: linear-gradient(90deg, #F59E0B, #D97706);
        border-radius: 0 0 4px 4px;
    }

    /* Счётчик (например, для списка покупок) */
    .bottom-nav__badge {
        position: absolute;
        top: 4px;
        right: 22%;
        background: #EF4444;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        padding: 2px 6px;
        border-radius: 10px;
        min-width: 16px;
        text-align: center;
        line-height: 1;
        border: 2px solid #FFFDF8;
    }

    /* Отступ контенту, чтобы не перекрывать футер */
    body {
        padding-bottom: 70px;
    }
}
