Depends on your specific duties, not on the store as a whole.
Confidence level: Strong on the general framework. The lottery-ticket question in particular has real scholarly disagreement, and personal circumstances (necessity, available alternatives) require individual judgment.
THE CORE PRINCIPLE
Islamic scholars generally distinguish between two things that get conflated in everyday questions like this: working for an employer that sells something haram, and personally performing the haram transaction. These are not the same question.
A gas station, grocery store, or restaurant that sells beer, wine, pork products, or lottery tickets is, as a business, mixing halal and haram revenue streams. That alone does not make every job inside it haram. What matters is whether your specific role puts you in the position of being the seller, handler, or promoter of the restricted item.
WHERE SCHOLARS AGREE
There is broad agreement across schools on the edges of this question: — Working the register, stocking shelves, cleaning, managing inventory of halal items, or doing administrative work in a store that also happens to sell alcohol or pork is generally permissible, and the wages earned from that work are halal. — Directly producing, importing, or actively selling alcohol or pork as your core job function is not permissible. This is based on hadith explicitly cursing multiple parties in the alcohol trade, not just the drinker.
WHERE SCHOLARS DIFFER
The harder case is the cashier who has to ring up a customer's beer purchase, or the clerk who restocks the beer cooler, as part of a broader job that is otherwise unrelated to alcohol.
Hanafi jurists (following Imam Abu Hanifah specifically) have historically taken a more lenient position here: scanning or physically moving a bottle at checkout is treated as a mechanical act of transport, not as "selling" in the legal sense, since the cashier isn't the one who owns, prices, or profits from the item — they're facilitating a transaction the store owner initiated. Imam Abu Yusuf and Imam Muhammad, the two other foundational Hanafi jurists, took a stricter view, treating this as assisting in sin (ta'awun 'ala al-ithm) regardless of who technically owns the goods.
Hanbali jurisprudence tends to side with the stricter reading — Ibn Qudamah's position is that working anywhere prohibited items are sold constitutes cooperation in wrongdoing, and is not advised even where a paycheck results.
LOTTERY TICKETS ARE A SEPARATE, HARDER QUESTION
Lottery tickets involve maysir (gambling), which the Qur'an treats with the same severity as alcohol. Several scholars who are relatively lenient about incidental alcohol handling are notably stricter on lottery tickets specifically, because selling a lottery ticket is not incidental — you are the direct party originating a gambling contract with the customer, not merely transporting an item someone else is selling. If your job requires you to personally activate lottery machines, sell scratch tickets, or process lottery transactions, most contemporary fatwa bodies consider that specific task impermissible, even under the more lenient Hanafi framing used for alcohol at checkout.
WHAT YOU SHOULD DO
If you're deciding whether to take a job: Ask specifically what your duties will include. A general cashier or stocking role that occasionally touches restricted items is a different question than a role centered on selling them.
If you're already working such a job: Where possible, ask to be reassigned away from direct handling of alcohol, pork, or lottery duties — many employers can shift these duties among staff. If reassignment isn't possible and no alternative job is realistically available, several scholars apply a necessity-based leniency (rukhsah) while encouraging you to keep looking for alternative employment as a matter of piety (taqwa), not strict obligation.
If your entire job is built around selling the restricted item (e.g., liquor store clerk, package store owner): This is a different and more serious situation than incidental exposure in a general retail job, and most scholars do not extend the same leniency here.
WHAT COULD CHANGE THIS ANSWER
— Your job duties shift to include direct selling, ordering, or promoting of alcohol, pork, or lottery products as a primary function — You have a realistic, available alternative job that avoids the issue entirely — The store's business is primarily or exclusively built around the restricted item, rather than restricted items being a minority of overall sales — A qualified scholar reviews your specific job description and local circumstances
This confirms the general framework only. It is not a personal fatwa. A qualified scholar should review your actual job duties before you rely on this for a specific employment decision.