Apple keeps repair/service available for devices up to five years after they are discontinued for retail sale. The store may not have the stock on hand immediately, but they’ll have no problem getting the parts and repairing your device.
https://www.reddit.com/r/applehelp/comments/14728wp/apple_care_and_discontinued_model/

