kinda similar like car parts, warranty is like 3-5 years (or 100K km) but parts must be available like 10 years or something
However, that is in addition to various other statutory consumer rights about fitness for purpose and being of appropriate quality, which EU member states might have in their national laws as well. Here in the UK, for example, those obligations can run for many years beyond the initial warranty, and can result in repair, replacement or (full or partial) refund for faulty products depending on the circumstances.
In most cases, it's the vendor who took your money who is on the hook legally for these kinds of responsibilities, though in practice of course manufacturers often offer their own warranties to the final customers and/or make supporting arrangements with vendors selling their products.
Unfortunately at present most of these rules only apply to private individuals, and with business purchases caveat emptor and expensive service contracts are often the norm even if a purchase is being made by a small business with no more real leverage against a vendor or manufacturer than a private individual. When it comes to electronic devices like phones and laptops, this is potentially quite a big stumbling block in terms of forcing up standards of maintainability and promoting a "right to repair" to reduce waste.