A container for consumer goods, the container comprising: an outer housing comprising a box portion and a lid portion , the box portion defining an internal volume for housing consumer goods and having an access opening for providing access to the consumer goods, wherein the lid portion is linearly movable relative to the box portion between a closed position, in which the lid portion covers the access opening, and an open position, in which the access opening is exposed, and wherein the container is configured such that the lid portion can pivot relative to the box portion about a hinge when the lid portion is in the open position, wherein the container further comprises a lid locking component attached to or integrally formed with the lid portion , and a box locking component provided on the inner surface of a wall of the box portion , wherein, the lid locking component and the box locking component form a locking mechanism for the container , and wherein, when the lid portion is in the closed position, the locking mechanism is configured to be transitionable between: a locked state, in which a portion of the lid locking component engages with a portion of the box locking component to prevent the lid portion from moving linearly from the closed position to the open position, and an unlocked state, in which the lid locking component is not engaged with the box locking component , and the lid portion is able to move linearly from the closed position to the open position. an outer housing comprising a box portion and a lid portion , the box portion defining an internal volume for housing consumer goods and having an access opening for providing access to the consumer goods, wherein the lid portion is linearly movable relative to the box portion between a closed position, in which the lid portion covers the access opening, and an open position, in which the access opening is exposed, and wherein the container is configured such that the lid portion can pivot relative to the box portion about a hinge when the lid portion is in the open position, wherein the container further comprises a lid locking component attached to or integrally formed with the lid portion , and a box locking component provided on the inner surface of a wall of the box portion , wherein, the lid locking component and the box locking component form a locking mechanism for the container , and wherein, when the lid portion is in the closed position, the locking mechanism is configured to be transitionable between: a locked state, in which a portion of the lid locking component engages with a portion of the box locking component to prevent the lid portion from moving linearly from the closed position to the open position, and an unlocked state, in which the lid locking component is not engaged with the box locking component , and the lid portion is able to move linearly from the closed position to the open position. a locked state, in which a portion of the lid locking component engages with a portion of the box locking component to prevent the lid portion from moving linearly from the closed position to the open position, and an unlocked state, in which the lid locking component is not engaged with the box locking component , and the lid portion is able to move linearly from the closed position to the open position. <EOS>