BOISE, Idaho (AP) The owner of Safeway and other grocery brands is buying the drugstore chain Rite Aid as retailers continue to plunge deeper into health care and adjust to swiftly changing shopping habits. Albertsons Companies executives said Tuesday that their purchase of Rite Aid's more than 2,500 remaining stores will help the combined company become a "leader in food, health and wellness." The combination will have 4,892 stores and more than 4,300 pharmacies with a stronger presence on both coasts of the U.S. market. Leaders of both companies said the deal will help attract pharmacy customers who tend to spend more at Albertsons grocery stores. That comes as the grocer starts to strengthen same-day deliveries, a meal-kit business and other products that cater to customers who want fast service. Retailers have been pushing home deliveries and other customer-friendly services in the wake of expanded competition from Amazon. The online giant bought the grocer Whole Foods last year and plans to roll out a two-hour delivery service this year to customers who pay for its $99-a-year Prime membership.