/* Нижняя навигация на мобильных */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #212529;
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-nav a {
    flex: 1;
    text-align: center;
    color: #adb5bd;
    text-decoration: none;
    font-size: .7rem;
    padding: .4rem 0 .5rem;
    line-height: 1.2;
}
.mobile-nav a span {
    display: block;
    font-size: 1.3rem;
}
.mobile-nav a.active { color: #fff; }

@media (max-width: 767.98px) {
    .pb-mobile-nav { padding-bottom: 5.5rem !important; }
}

/* Окно сканера */
#scanner-box {
    max-width: 480px;
    margin: 0 auto;
    border-radius: .75rem;
    overflow: hidden;
    background: #000;
}
#scanner-box video { width: 100% !important; }

/* Крупные кнопки количества в корзине */
.qty-btn {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.2rem;
    line-height: 1;
}

.stat-card .value { font-size: 1.5rem; font-weight: 700; }
.stat-card .sub { font-size: .8rem; color: var(--bs-secondary-color); }

/* Всплывающие уведомления (toast) */
#toast-box {
    position: fixed;
    top: .75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: center;
    pointer-events: none;
    width: max-content;
    max-width: 92vw;
}
.app-toast {
    padding: .6rem 1.1rem;
    border-radius: 2rem;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .25s, transform .25s;
    text-align: center;
}
.app-toast.show { opacity: 1; transform: translateY(0); }
.app-toast-success { background: #198754; }
.app-toast-danger  { background: #dc3545; }
.app-toast-info    { background: #495057; }

/* Вспышка при успешном скане */
@keyframes scan-flash { from { box-shadow: 0 0 0 4px #19875466; } to { box-shadow: none; } }
.scan-flash { animation: scan-flash .6s ease-out; }
