def recommend_accessories(style_label): style_label = style_label.lower() # Define style groups and their recommendations style_groups = { "suit": [ "tie", "cufflinks", "polished dress shoes", "pocket square", "leather belt", "stylish watch" ], "casual": [ "trendy sneakers", "denim jackets", "baseball cap" ], "formal": [ "elegant watches", "leather belts", "cufflinks" ], "bohemian": [ "layered necklaces", "floppy hats", "fringe bags" ], "sporty": [ "wristbands", "running shoes", "sweat-wicking fabrics" ], "vintage": [ "pearl earrings", "brooches", "classic handbags" ] } # Try to find the best matching group based on keywords in the style_label for group, accessories in style_groups.items(): if group in style_label: rec = ", ".join(accessories) return f"Try these accessories to complement your {group} style: {rec}." # Default recommendation if no group matched return "Try some trendy accessories like sunglasses and a stylish belt."