Best Buy Co Inc posted lower first-quarter earnings and weaker-than-expected sales on Tuesday and implied earnings for the rest of the year would be worse than forecast, dragging its shares down more than 7 percent.

The top U.S. specialty consumer electronics retailer said it gained market share after main rival Circuit City closed its doors. Still, fewer customers visited its U.S. stores in the quarter as consumers continue to cut back on discretionary purchases.

I think consumers are careful. They're being very, very careful, President and CEO-designate Brian Dunn said in an interview.

Best Buy saw demand rise when Circuit City shut down but has also faced increased pressure from Wal-Mart Stores Inc and others adding laptop computers, flat-screen televisions and other products to their stores.

The company's lower profit still topped analysts' expectations. Analysts said they were pleased to see improvements in gross margin and the market share gains, while the sales weakness was a concern, especially since most of the quarter fell after Circuit City's liquidation sales.

Best Buy estimated that as of April 30 its U.S. market share grew by nearly 2 percentage points from a year earlier.

Dunn, who is set to become CEO on June 24, said items such as notebook computers and mobile phones are selling well as consumers look for more ways to stay connected.

Sales of gaming items, digital cameras, appliances and movies fell, however.

They're definitely sort of playing defense right now, but when the consumer starts to come back they're going to be in a great position, said FTN Equity Capital Markets analyst Anthony Chukumba, who rates the shares buy.

He said if and when consumers start shopping again, Best Buy could surpass its profit forecast for the year.

PROFIT FALLS

Best Buy said it earned $153 million, or 36 cents per share, in the fiscal first quarter ended on May 30, down from $179 million, or 43 cents per share, a year earlier.

Excluding restructuring charges, Best Buy said adjusted earnings fell to 42 cents per share from 43 cents per share. Analysts had expected Best Buy to earn 34 cents per share on that basis, according to Reuters Estimates.

Despite interest in new products such as Palm Inc's

Pre phone, Apple Inc's latest iPhones and the debut of Microsoft Corp's Windows 7 later this year, Best Buy maintained the expectations it issued in March.

I am pleased with the start we have but we're not going to get the cart ahead of the horse here, Dunn said.

The company still expects to earn $2.50 to $2.90 per share this year, with same-store sales flat to down 5 percent and total revenue of $46.5 billion to $48.5 billion.

Analysts, on average, expect it to earn $2.78 per share with $47.93 billion in revenue.

First-quarter gross profit rose to 25.3 percent of revenue from 23.7 percent, aided by the inclusion of Best Buy Europe and a 70-basis-point increase in gross profit in the U.S. business, where Best Buy had better control over promotions and lower freight and logistics costs.

It's going to be interesting to see how much Best Buy can continue to push on the gross margin and the expense line if sales deteriorate further from these levels, said Brad Thomas, an analyst with KeyBanc Capital Markets who has a buy rating on Best Buy shares.

Sales at stores open at least 14 months declined the most during May, which faced a tough comparison to a year earlier, when consumers spent government stimulus checks.

Revenue rose 12 percent to $10.1 billion, aided by sales at new stores. Analysts expected revenue of $10.19 billion.

Thomas said the sales weakness should not have been a total surprise since government retail sales data had already shown a slowdown in March, April and May sales trends for the consumer electronics and appliance sector.

Sales at stores open at least 14 months fell 6.2 percent overall and 4.9 percent in the United States.

Shares of Best Buy were down 7.4 percent to $35.81 in afternoon trading.

(Reporting by Jessica Wohl, editing by Dave Zimmerman)