I do this with my shampoo and conditioner because I feel exactly the same way as you about the giant 1L bottles in my shower. I use these silicone travel bottles and love them. Easy to refill and they are flexible so you can get every last bit of product out.
https://www.amazon.com/dp/B07C13KDFP/ref=cm_sw_r_cp_api_i_Sjo9DbPXS36KN