Custom CSS can be added to your entire theme that affects all pages in your online store except the Checkout page.
From your Shopify admin, go to Online Store -> Themes.
Find the theme that you want to edit, and then click Customize.
Click Theme Settings -> Custom CSS.