faceAge.onAddToCart((data) => {
// data contains product details
myCart.add(data);
});
faceAge.onCloseModal(() => {
// redirect to cart if items were added
if (myCart.hasItems()) window.location.href = '/cart';
});
faceAge.onClickProblem((key) => {
console.log('Problem selected:', key); // e.g. 'acne'
});