(To Be) Shit out of Luck (SOL)

What does the idiom “(To Be) Shit out of Luck (SOL)” mean?

Definition:

To be completely out of luck; to experience very bad fortune

For example:

“I went to a restaurant in Buffalo, and they were out of Buffalo chicken wings. I guess I was just shit out of luck!”

Notes:

This is obscene and has a slightly humorous flavor.