/* Bossa — barra inferior (misma en todas las pantallas) */
:root {
    --app-nav-bar: 56px;
    --app-nav-safe: env(safe-area-inset-bottom, 0px);
    --app-nav-stack: calc(var(--app-nav-bar) + var(--app-nav-safe));
    --app-nav-bg: #ffffff;
    --app-nav-border: rgba(102, 25, 44, 0.1);
    --app-nav-inactive: #9ca3af;
    --app-nav-active: #66192C;
}

body.app-has-nav {
    padding-bottom: var(--app-nav-stack) !important;
}

body.app-has-nav.app-has-order-bar {
    padding-bottom: calc(var(--app-nav-stack) + var(--order-bar-h, 74px) + 8px) !important;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: var(--app-nav-stack);
    padding: 0 0 var(--app-nav-safe);
    box-sizing: border-box;
    background: var(--app-nav-bg);
    border-top: 1px solid var(--app-nav-border);
    box-shadow: 0 -2px 16px rgba(102, 25, 44, 0.07);
    contain: layout style paint;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.bottom-nav__inner {
    height: var(--app-nav-bar);
    max-width: 480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: var(--app-nav-bar);
    padding: 0 2px;
    text-decoration: none;
    color: var(--app-nav-inactive);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    min-width: 0;
}

.nav-item__icon {
    width: 40px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    flex-shrink: 0;
    transition: background-color 0.12s ease;
}

.nav-item__icon svg {
    width: 21px;
    height: 21px;
    stroke-width: 2;
    flex-shrink: 0;
    display: block;
}

.nav-item__label {
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    height: 12px;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item.active {
    color: var(--app-nav-active);
}

.nav-item.active .nav-item__icon {
    background: rgba(102, 25, 44, 0.1);
}

.nav-item.active .nav-item__label {
    font-weight: 700;
}

.nav-item--order.active .nav-item__icon {
    background: linear-gradient(145deg, #F9A826 0%, #FBC252 100%);
}

.nav-item--order.active {
    color: #7a5500;
}

.nav-item--order.active .nav-item__icon svg {
    stroke: #1a1a1a;
}
