/* --- Estilos para la Barra de Navegación Móvil --- */
.mobile-bottom-nav {
    display: none; /* Oculto por defecto en escritorio */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background-color: #ffffff;
    border-top: 1px solid #e9ecef; /* Borde sutil */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-grow: 1;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

/* Nuevo estilo para el enlace activo */
.mobile-bottom-nav .nav-item.active {
    color: var(--secondary-color); /* Rosado */
}

.mobile-bottom-nav .nav-item i {
    font-size: 22px;
}

.mobile-bottom-nav .nav-item span {
    font-size: 10px;
    margin-top: 4px;
}

.mobile-bottom-nav .home-button {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    border: 4px solid white;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.mobile-bottom-nav .home-button i {
    font-size: 28px;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    /* Ocultar menú de escritorio en móvil */
    .main-header .main-nav {
        display: none;
    }

    /* Mostrar barra inferior en móvil/tablet */
    .mobile-bottom-nav {
        display: flex; 
    }

    .container {
        width: 95%;
    }

    h1 {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .category-card img {
        height: 100px;
    }

    .category-card .category-info {
        padding: 1rem 0.5rem 0.5rem;
    }

    .category-card h3 {
        font-size: 0.9rem;
    }
}
/* --- Diseño Responsivo para Grid de Productos en Category.php --- */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en tabletas */
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles */
        gap: 1rem;
    }
}