{
  "version": "2.7",
  "children": [
    {
      "type": "frame",
      "id": "MilkFoamOptionsDialog",
      "name": "Dialog/MilkFoamOptions",
      "reusable": true,
      "clip": true,
      "width": 400,
      "height": 540,
      "fill": "$bg-elevated",
      "cornerRadius": 24,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "MilkFoamHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "MilkFoamHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "MilkFoamIconBg", "width": 40, "height": 40, "fill": "#D4A37420", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "MilkFoamIcon", "width": 20, "height": 20, "iconFontName": "coffee", "iconFontFamily": "lucide", "fill": "#D4A374"}
              ]},
              {"type": "text", "id": "MilkFoamTitle", "fill": "$text-primary", "content": "Tùy chỉnh đồ uống", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "MilkFoamCloseBtn", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 18, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "MilkFoamCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "MilkFoamContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 20,
          "layout": "vertical",
          "gap": 16,
          "children": [
            {"type": "frame", "id": "MilkFoamProductInfo", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "padding": 14, "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "MilkFoamProductImg", "width": 48, "height": 48, "fill": "#D4A37420", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "MilkFoamProductIcon", "width": 24, "height": 24, "iconFontName": "coffee", "iconFontFamily": "lucide", "fill": "#D4A374"}
              ]},
              {"type": "frame", "id": "MilkFoamProductText", "width": "fill_container", "layout": "vertical", "gap": 2, "children": [
                {"type": "text", "id": "MilkFoamProductName", "fill": "$text-primary", "content": "Latte - Size L", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"},
                {"type": "text", "id": "MilkFoamProductPrice", "fill": "$orange-primary", "content": "55,000₫", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
              ]}
            ]},
            {"type": "frame", "id": "MilkTypeSection", "width": "fill_container", "layout": "vertical", "gap": 10, "children": [
              {"type": "text", "id": "MilkTypeLabel", "fill": "$text-secondary", "content": "Loại sữa", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"},
              {"type": "frame", "id": "MilkTypeOptions", "width": "fill_container", "gap": 8, "children": [
                {"type": "frame", "id": "MilkType1", "width": "fill_container", "height": 44, "fill": "$orange-primary", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "MilkType1Text", "fill": "$text-primary", "content": "Sữa tươi", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "MilkType2", "width": "fill_container", "height": 44, "fill": "$bg-page", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "MilkType2Text", "fill": "$text-secondary", "content": "Sữa yến mạch", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                ]},
                {"type": "frame", "id": "MilkType3", "width": "fill_container", "height": 44, "fill": "$bg-page", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "MilkType3Text", "fill": "$text-secondary", "content": "Sữa hạnh nhân", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "FoamSection", "width": "fill_container", "layout": "vertical", "gap": 10, "children": [
              {"type": "text", "id": "FoamLabel", "fill": "$text-secondary", "content": "Foam", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"},
              {"type": "frame", "id": "FoamOptions", "width": "fill_container", "gap": 8, "children": [
                {"type": "frame", "id": "Foam1", "width": "fill_container", "height": 44, "fill": "$bg-page", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "Foam1Text", "fill": "$text-secondary", "content": "Không foam", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                ]},
                {"type": "frame", "id": "Foam2", "width": "fill_container", "height": 44, "fill": "$orange-primary", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "Foam2Text", "fill": "$text-primary", "content": "Foam thường", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "Foam3", "width": "fill_container", "height": 44, "fill": "$bg-page", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "Foam3Text", "fill": "$text-secondary", "content": "Extra foam", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "ExtraSection", "width": "fill_container", "layout": "vertical", "gap": 10, "children": [
              {"type": "text", "id": "ExtraLabel", "fill": "$text-secondary", "content": "Thêm topping (+10,000₫)", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"},
              {"type": "frame", "id": "ExtraOptions", "width": "fill_container", "gap": 8, "children": [
                {"type": "frame", "id": "Extra1", "fill": "$bg-page", "cornerRadius": 10, "padding": [10, 16], "stroke": {"thickness": 2, "fill": "#22C55E"}, "gap": 6, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "Extra1Check", "width": 14, "height": 14, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "#22C55E"},
                  {"type": "text", "id": "Extra1Text", "fill": "$text-primary", "content": "Shot espresso", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "500"}
                ]},
                {"type": "frame", "id": "Extra2", "fill": "$bg-page", "cornerRadius": 10, "padding": [10, 16], "children": [
                  {"type": "text", "id": "Extra2Text", "fill": "$text-secondary", "content": "Caramel", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "500"}
                ]},
                {"type": "frame", "id": "Extra3", "fill": "$bg-page", "cornerRadius": 10, "padding": [10, 16], "children": [
                  {"type": "text", "id": "Extra3Text", "fill": "$text-secondary", "content": "Vanilla", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "500"}
                ]}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "MilkFoamFooter",
          "width": "fill_container",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "padding": [16, 20],
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "MilkFoamTotal", "layout": "vertical", "gap": 2, "children": [
              {"type": "text", "id": "MilkFoamTotalLabel", "fill": "$text-tertiary", "content": "Tổng cộng", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "normal"},
              {"type": "text", "id": "MilkFoamTotalValue", "fill": "$orange-primary", "content": "65,000₫", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "MilkFoamAddBtn", "height": 48, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8533", "position": 1}]}, "cornerRadius": 12, "padding": [0, 24], "gap": 8, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "MilkFoamAddIcon", "width": 18, "height": 18, "iconFontName": "plus", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "MilkFoamAddText", "fill": "$text-primary", "content": "Thêm vào đơn", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"}
            ]}
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {"type": "color", "value": "#1A1A1D"},
    "bg-interactive": {"type": "color", "value": "#2A2A2E"},
    "bg-page": {"type": "color", "value": "#0A0A0B"},
    "border-default": {"type": "color", "value": "#2A2A2E"},
    "border-subtle": {"type": "color", "value": "#1F1F23"},
    "orange-primary": {"type": "color", "value": "#FF5C00"},
    "text-primary": {"type": "color", "value": "#FFFFFF"},
    "text-secondary": {"type": "color", "value": "#ADADB0"},
    "text-tertiary": {"type": "color", "value": "#8B8B90"}
  }
}
