The world's largest retailer is preparing to open a smaller box in a densely packed neighborhood in Los Angeles.

Under the name Neighborhood Market — essentially a small supermarket — Wal-Mart Stores (WMT) will offer the only traditional-style grocery store in the city's Chinatown neighborhood.

Wal-Mart isn't alone in following consumers back into urban cores. Target (TGT) is rolling out several CityTarget small, urban-format stores in Los Angeles, Seattle and Chicago.

Those downsized big-box retailers are only a piece of the competition hammering away at markets traditionally held by supermarket chains such as Safeway (SWY) and Kroger (KR).

High-end independent gourmet grocers tap wealthier shoppers looking for organic and other pricey fare. Dollar stores have bulked up with coolers and freezer cases to sell milk, meats and other food offerings to the most budget-conscious.

Even drugstore chains have found their fastest-growing sales categories are consumables such as chips and beer.

"So many retailers have learned that it's fun to put up a little bit of a food display or snack display," said Chuck Cerankosky, a supermarkets analyst with Northcoast Research. "So you see Home Depot (HD) even taking a little bit of share from the traditional food market channel.

The fragmenting market has made the 22 companies in IBD's super- and mini-markets retail group a study in adaptation. Traditional grocery chains have reacted by closing underperforming stores, revamping their inventories and better tailoring stores to local markets.

"Kroger does a marvelous job in being really all over the map in how they present the merchandise to the customer," Cerankosky said of the nation's largest grocery chain.

Kroger owns the Ralphs, City Market and Food 4 Less names, as well as the Kroger chain. Overall, sales at stores open at least a year climbed 4.2% in the most recent quarter. It was the Cincinnati-based chain's 34th straight quarter of same-store growth.

"Several years ago, we took a hard look at who we were really competing against," said Kroger CEO David Dillon during last quarter's earnings conference call. "That helped us realize we're competing against more than just traditional grocery retailers.

The super/mini-market industry group ranked No. 57 in Friday's issue among the 197 industries tracked by IBD. Much of the recent strength has come from companies targeting high-end grocery customers.

Fresh Market (TFM), a chain of small upscale European-style markets, boasts a best-possible Composite Rating of 99. It reported 8.2% same-store sales growth in the past quarter.

Another upscale grocer, Whole Foods (WFM), is close behind with a 94 Composite Rating. It also posted 8.2% same-store sales growth, and typically leads its peers in that metric.

Grocers mostly guided higher results for the year.

"In an economic environment that is proving difficult for many retailers, we are thriving," Whole Foods' co-CEO Walter Robb said after the last quarter's earnings.

While upper-income consumers have fared well through the economy's fumbling recovery, other consumers are still pinched. And grocery stores now face rising costs. Most said inflation moderated in the last quarter, but the summer's severe drought points to higher prices across much of the food chain.

The USDA forecasts food prices rising 2.5% to 3.5% this year, and 3% to 4% more next year.

It sees poultry prices up 3.5% to 4.5% this year, and 3% to 4% next year. Beef and veal prices are seen climbing 4% to 5% next year.

Sales Brackets Whole Foods voluntarily narrowed its margins in the last quarter as it lowered some of its prices to lure in customers. The chain is fighting to shake the reputation for high prices that led to the "Whole Paycheck" nickname among many consumers.

"Poor people need low prices. Rich people love low prices," said Todd Hale, senior vice president for Consumer & Shopper Insights at market research firm Nielsen.

The strategy seems to be working. The company noted a "meaningful increase" in the number of $50-plus baskets.

Supermarkets across the spectrum are also broadening the shopping experience.

Tuck-in Starbucks (SBUX) shops are on the rise, largely replacing the old dry cleaners or bank branches inside the market. Increasingly, chains are adding fresh-cooked food, and more extensive food and salad bars. Smarter ones still are adding cooking classes, wine-tastings and other elements that Hale calls "retail-tainment.

Story continues