Literature of such extremes as Stephen King books... This is such an arbitrary line to draw, because detailed sex can happen in both mainstream novels and in erotica, and people can be surprised by just how detailed the novels are. And the mainstream may breach quite a lot of rules that erotica publishers might keep (such as age restrictions).
Yet, I doubt Stripe has a problem selling 'It' [0], despite it having a sex train run on an underage girl with excessive description.
[0] It, 1986, novel.