[{"name": "Alcohol Merchandising Rules", "rules": [{"name": "Group by Brand", "params": {"attribute": "brand"}, "children": [{"name": "Sort by Price Descending within Brand", "params": {"order": "desc", "direction": "left_to_right", "attributes": ["price"]}, "children": [], "block_type": "sort"}, {"name": "Sort by Rating if Price Equal", "params": {"order": "asc", "direction": "left_to_right", "attributes": ["sku_rating"]}, "children": [], "block_type": "sort"}], "block_type": "group_by"}, {"name": "Group by Category", "params": {"attribute": "category"}, "children": [{"name": "Sort Brands by Price Descending", "params": {"order": "desc", "direction": "left_to_right", "attributes": ["price"]}, "children": [], "block_type": "sort"}], "block_type": "group_by"}, {"name": "Main Matrix - Premium Segment", "params": {"condition": {"type": "AND", "clauses": [{"value": "OM", "operator": "equals", "attribute": "matrix_type"}, {"value": "premium", "operator": "equals", "attribute": "price_segment"}]}}, "children": [{"name": "Premium Segment on Shelf 7", "params": {"shelves": [7], "priority": "required"}, "children": [], "block_type": "place_on_shelves"}, {"name": "Fill Remaining Space with Additional Matrix Premium", "params": {"limit": 10, "based_on": "rating"}, "children": [], "block_type": "duplicate_sku"}], "block_type": "filter"}, {"name": "Main Matrix - Mid Segment", "params": {"condition": {"type": "AND", "clauses": [{"value": "OM", "operator": "equals", "attribute": "matrix_type"}, {"value": "mid", "operator": "equals", "attribute": "price_segment"}]}}, "children": [{"name": "Mid Segment on Shelves 16-17", "params": {"shelves": [16, 17], "priority": "required"}, "children": [], "block_type": "place_on_shelves"}, {"name": "Fill Remaining Space with Additional Matrix", "params": {"limit": 10, "based_on": "rating"}, "children": [], "block_type": "duplicate_sku"}], "block_type": "filter"}, {"name": "Cooling Liquids - Premium Brands", "params": {"condition": {"type": "AND", "clauses": [{"value": "Охлаждающие жидкости", "operator": "equals", "attribute": "category"}, {"value": ["Flagman", "Fortis"], "operator": "in", "attribute": "brand"}]}}, "children": [{"name": "Premium Cooling Liquids on Shelves 2-3", "params": {"shelves": [2, 3], "priority": "required"}, "children": [], "block_type": "place_on_shelves"}], "block_type": "filter"}, {"name": "Shelf 1 Sequence - Vodka and Wine", "params": {"shelves": [1], "priority": "required", "sequence": "Водка:any, Вино игристое:any, Вино виноградное:any", "direction": "left_to_right"}, "children": [], "block_type": "sequenced_placement"}, {"name": "Shelf 1 - Large Vodka", "params": {"condition": {"type": "AND", "clauses": [{"value": "Водка", "operator": "equals", "attribute": "category"}, {"value": 0.5, "operator": "gte", "attribute": "volume_l"}, {"value": 0.7, "operator": "lte", "attribute": "volume_l"}]}}, "children": [{"name": "Place Large Vodka on Shelf 1", "params": {"shelves": [1], "priority": "required"}, "children": [], "block_type": "place_on_shelves"}, {"name": "Sort by Volume Descending", "params": {"order": "desc", "direction": "left_to_right", "attributes": ["volume_l"]}, "children": [], "block_type": "sort"}], "block_type": "filter"}, {"name": "Shelf 1 - Sparkling and Grape Wine", "params": {"condition": {"type": "OR", "clauses": [{"value": "Вино игристое", "operator": "equals", "attribute": "category"}, {"value": "Вино виноградное", "operator": "equals", "attribute": "category"}]}}, "children": [{"name": "Place Wine on Shelf 1", "params": {"shelves": [1], "priority": "required"}, "children": [], "block_type": "place_on_shelves"}], "block_type": "filter"}, {"name": "Shelf 2 Sequence - Vodka 0.5L and Wine", "params": {"shelves": [2], "priority": "required", "sequence": "Водка:any, Вино игристое:any, Вино виноградное:any", "direction": "left_to_right"}, "children": [], "block_type": "sequenced_placement"}, {"name": "Shelf 2 - Vodka 0.5L", "params": {"condition": {"type": "AND", "clauses": [{"value": "Водка", "operator": "equals", "attribute": "category"}, {"value": 0.5, "operator": "equals", "attribute": "volume_l"}]}}, "children": [{"name": "Place 0.5L Vodka on Shelf 2", "params": {"shelves": [2], "priority": "required"}, "children": [], "block_type": "place_on_shelves"}], "block_type": "filter"}, {"name": "Shelf 2 - Wine in Bottles", "params": {"condition": {"type": "AND", "clauses": [{"value": ["Вино игристое", "Вино виноградное"], "operator": "in", "attribute": "category"}, {"value": "бутылк", "operator": "contains", "attribute": "name"}]}}, "children": [{"name": "Place Bottled Wine on Shelf 2", "params": {"shelves": [2], "priority": "required"}, "children": [], "block_type": "place_on_shelves"}], "block_type": "filter"}, {"name": "Shelf 3 Sequence - Strong Spirits", "params": {"shelves": [3], "priority": "required", "sequence": "Настойки:any, Бальзамы:any, Ликеры:any, Джин:any, Ром:any, Виски:any, Коньяк:any", "direction": "left_to_right"}, "children": [], "block_type": "sequenced_placement"}, {"name": "Shelf 3 - Strong Spirits Large", "params": {"condition": {"type": "AND", "clauses": [{"value": ["Настойки", "Бальзамы", "Ликеры", "Джин", "Ром", "Виски", "Коньяк"], "operator": "in", "attribute": "category"}, {"value": 0.5, "operator": "gte", "attribute": "volume_l"}]}}, "children": [{"name": "Place Large Strong Spirits on Shelf 3", "params": {"shelves": [3], "priority": "required"}, "children": [], "block_type": "place_on_shelves"}], "block_type": "filter"}, {"name": "Shelf 4 Sequence - Small Vodka and Spirits", "params": {"shelves": [4], "priority": "required", "sequence": "Водка:any, Настойки:any, Бальзамы:any, Ликеры:any, Джин:any, Ром:any, Виски:any, Коньяк:any", "direction": "left_to_right"}, "children": [], "block_type": "sequenced_placement"}, {"name": "Shelf 4 - Small Vodka", "params": {"condition": {"type": "AND", "clauses": [{"value": "Водка", "operator": "equals", "attribute": "category"}, {"value": 0.5, "operator": "lt", "attribute": "volume_l"}]}}, "children": [{"name": "Place Small Vodka on Shelf 4", "params": {"shelves": [4], "priority": "required"}, "children": [], "block_type": "place_on_shelves"}], "block_type": "filter"}, {"name": "Shelf 4 - Small Strong Spirits", "params": {"condition": {"type": "AND", "clauses": [{"value": ["Настойки", "Бальзамы", "Ликеры", "Джин", "Ром", "Виски", "Коньяк"], "operator": "in", "attribute": "category"}, {"value": 0.5, "operator": "lt", "attribute": "volume_l"}]}}, "children": [{"name": "Place Small Strong Spirits on Shelf 4", "params": {"shelves": [4], "priority": "required"}, "children": [], "block_type": "place_on_shelves"}], "block_type": "filter"}, {"name": "Cooling Liquids - Premium Segment", "params": {"condition": {"type": "AND", "clauses": [{"value": "Охлаждающие жидкости", "operator": "equals", "attribute": "category"}, {"value": "premium", "operator": "equals", "attribute": "price_segment"}]}}, "children": [{"name": "Premium Segment on Shelves 2-3", "params": {"shelves": [2, 3], "priority": "required"}, "children": [], "block_type": "place_on_shelves"}], "block_type": "filter"}, {"name": "Apply Category Shares", "params": {"level": "category", "source": "database"}, "children": [], "block_type": "apply_share_of_shelf"}, {"name": "Apply Brand Shares within Categories", "params": {"level": "brand", "source": "database"}, "children": [], "block_type": "apply_share_of_shelf"}], "params": {"description": "Complete alcohol category merchandising rules with shelf allocation, brand sequencing, and space management"}, "children": [], "block_type": "rule_group"}]