* Hurricane Harvey hit U.S. Gulf coast over the weekend
* Storm to linger off coast of Texas through Monday
* Bigger impact seen on fuel refiners than crude production
* WTI discount to Brent at widest since Sept 2015 (Adds comment, WTI/Brent price spread, chart)
SINGAPORE, Aug 28 (Reuters) - Gasoline prices hit two-year highs on Monday as massive floods caused by Hurricane Harvey forced refineries across the U.S. Gulf Coast to shut down.
The storm came shore over the weekend as the most powerful hurricane to hit Texas in more than 50 years, killing at least two people, causing large-scale flooding, and forcing the closure of Houston port as well as several refineries.
Spot prices for U.S. gasoline futures surged 7 percent to a peak of $1.7799 per gallon, the highest level since late July 2015.
Texas is home to 5.6 million barrels of refining capacity per day, and Louisiana has 3.3 million barrels. Over 2 million barrels per day of refining capacity were estimated to be offline as a result of the storm.
About 22 percent, or 379,000 barrels per day, of Gulf production was idled due to the storm as of Sunday afternoon, according to the U.S. Bureau of Safety and Environmental Enforcement.
"There may be meaningful and long-term damage to Texas' refining capacity," said Jeffrey Halley, senior market analyst at futures brokerage OANDA.
In crude, U.S. West Texas Intermediate (WTI) futures were at $47.70 a barrel at 0151 GMT, down 17 cents, or 0.36 percent, from their last settlement.
"It may well be that the market feels the choke point in petroleum's value chain is not (crude) production, but refined products," Halley said.
If U.S. oil production is little affected, there could be excess crude with refiners unable to process it to produce fuel.
In international oil markets, Brent crude futures were stronger at $52.51 per barrel, up 10 cents, or 0.2 percent as the Organization of the Petroleum Exporting Countries (OPEC) holds back production in order to prop up prices.
These opposing price movements pushed the WTI discount versus Brent to $4.99 per barrel on Monday, the widest since September 2015.
Although the full extent of the storm's damage is not yet clear, some analysts said the impact would be felt globally and affect energy markets for weeks, as numerous refiners shut down due to the floods.
The U.S. National Hurricane Center (NHC) said on Monday that Harvey was moving away from the Texas coast but was expected to linger close to the shore through Monday, resulting in ongoing strong rainfall and flooding.
Houston's port authorities said that all facilities would be closed on Monday due to the continued weather threat.
(Reporting by Henning Gloystein; Editing by Richard Pullin and Kenneth Maxwell)