"had forgotten" is better. (By the time you reached that conclusion, the bookshop had already forgotten, we assume. ) There are problems with the flow of your first sentence.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
AnonymousShall I have written " I thought the bookshop had forgotten"It should be 'Should I have written ...?'