The actual word has nothing to do with books as such
Yes it does. Księgarnia comes from the root "księga". Księga = a book. It suggests a big thick book though in modern Polish (a normal size book would be książka), but it is also used in some set phrases, such as księga podatkowa = tax book, księga główna = general ledger, etc., or for books within the Bible