congratulations
now that you have that one tackled it's on to the next-what a great feeling!
gotta ask, cuz while that's a BIG chunk of change it's also ALLOT of transactions-were the bulk of these purchases smaller 'grab and go' kind of things (coffees, breakfast/lunch, something quick for dinner...)? if that's the case one way to help prevent those is to design your grocery shopping around some of the items you are most inclined to 'grab and go'-sure, prepared foods tend to cost more than making stuff from scratch but i find (found when we were addressing this as 2 commuters with young kids)-
if you are not used to cooking/have a work schedule that exhausts you most days of the week then your best laid plans for doing it all the time will have you quickly discouraged, reaching for the card to grab something, seeing the fresh ingredients you had the best intentions and plans of using going bad before you use them, feeling guilty about the food waste and then getting discoraged and spirling back into your old habits.
what helped us was to figure out what we tended to grab and getting the lesser expensive grocery store (frozen) options-breakfast sandwiches, asian foods, potato skins/appetizers, pizza...so we had it on hand vs. going out to get it. same with salads (big salad fan here), i would get bags of the greens and the stuff i liked on it, which i prechopped (put in fridge containers) and spent a bit more on a bottle of dressing that i really enjoyed. did it cost more than making it from scratch? yes, but it cost MUCH LESS than getting at eateries (esp. w/tax, tip, drinks....).
we worked our way to more day to day cooking by starting small and building up. did cooking projects on our days off-made enough for multiple meals (if you have a freezer do up individual servings and over time you have choices). in time we knew what was easily achievable when we got home from work (though-the crockpot is your friend) and what was best left for a day off.
baby steps, just like paying off the debt.