This is legal and all companies do this also.
Products are manufactured at cheap rates then the stores who buy the products also mark up the products so both the manufacturer and seller makes profit.
Just properly label the item in its condition to avoid chargebacks and refunds.