/* ============================================
   BOTTOM NAVIGATION - COMPONENTE GLOBAL
   Estilos extraídos del index original
   ============================================ */

/* Contenedor principal del bottom-nav */
bottom-nav {
    display: block;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
    z-index: 200;
    padding: 8px 16px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 32px;
    transition: all 0.2s ease;
    color: #1f242f;
    font-size: 0.7rem;
    font-weight: 500;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

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

.nav-item.active {
    color: #ff6b4a;
    background: rgba(255, 107, 74, 0.08);
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
}

/* Icono home con gradiente */
.nav-item.gradient-icon i {
    background: linear-gradient(135deg, #ff6b4a 0%, #ff9a3c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Badge del carrito */
.badge-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.relative {
    position: relative;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Móvil: barra fija inferior */
@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
    
    /* Ajuste para contenido principal */
    .container.body-content,
    .body-content,
    main:not(.no-padding) {
        padding-bottom: 80px !important;
    }
}

/* Desktop: barra no flotante, sino al final del contenido */
@media (min-width: 769px) {
    .bottom-nav {
        position: relative;
        margin-top: 20px;
        border-radius: 16px 16px 0 0;
    }
    
    bottom-nav {
        margin-top: auto;
    }
}

/* Ajuste para el botón flotante de categorías populares */
@media (max-width: 768px) {
    .popular-floating-btn {
        bottom: 80px;
    }
    }
