A family of Microsoft relational database management systems designed for ease of use.
What you are describing is called a Bill of Materials (BOM). This is not an easy thing to deal with. One question is whether your BOM can have multiple levels. So that a component of a product may, itself, be made up of different raw materials.
Also, what about waste? Your cushion uses 1/2 metre of fabric to make, but how much is left on the cutting room floor?
I would suggest doing research on Bill of Materials design to see how to setup such an app. You may also find templates to help.