The Catholic churchneatly took care of theproblem by inventingthe doctrine ofthe Immaculate Conception, which excludedtheVirginMary from partaking of Adam's imputed guilt.
The time of this project coincided with a large Marian trend: in 1661, Pope Alexander VII declared theImmaculateConception (though it didn't become a dogma ofthechurch until 1854).