{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "ProductSearchDialog",
      "name": "Dialog/ProductSearch",
      "reusable": true,
      "width": 480,
      "height": 640,
      "fill": "$bg-elevated",
      "cornerRadius": 24,
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "SearchHeader",
          "width": "fill_container",
          "padding": [16, 20],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "layout": "vertical",
          "gap": 16,
          "children": [
            {"type": "frame", "id": "SearchHeaderTop", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
              {"type": "text", "id": "SearchTitle", "fill": "$text-primary", "content": "Tìm sản phẩm", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"},
              {"type": "frame", "id": "SearchCloseBtn", "width": 36, "height": 36, "fill": "$bg-interactive", "cornerRadius": 18, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "SearchCloseIcon", "width": 18, "height": 18, "iconFontName": "x", "iconFontFamily": "lucide", "fill": "$text-secondary"}
              ]}
            ]},
            {"type": "frame", "id": "SearchInputRow", "width": "fill_container", "gap": 12, "children": [
              {"type": "frame", "id": "SearchInput", "width": "fill_container", "height": 48, "fill": "$bg-page", "cornerRadius": 12, "stroke": {"thickness": 2, "fill": "$orange-primary"}, "padding": [0, 14], "gap": 10, "alignItems": "center", "children": [
                {"type": "icon_font", "id": "SearchInputIcon", "width": 20, "height": 20, "iconFontName": "search", "iconFontFamily": "lucide", "fill": "$text-tertiary"},
                {"type": "text", "id": "SearchInputValue", "fill": "$text-primary", "content": "trà sữa", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "normal"}
              ]},
              {"type": "frame", "id": "SearchScanBtn", "width": 48, "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "SearchScanIcon", "width": 22, "height": 22, "iconFontName": "scan-barcode", "iconFontFamily": "lucide", "fill": "$text-primary"}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "SearchContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 16,
          "layout": "vertical",
          "gap": 12,
          "children": [
            {"type": "frame", "id": "SearchResultHeader", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
              {"type": "text", "id": "SearchResultCount", "fill": "$text-secondary", "content": "8 kết quả", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"},
              {"type": "frame", "id": "SearchSortBtn", "gap": 6, "alignItems": "center", "children": [
                {"type": "text", "id": "SearchSortText", "fill": "$text-tertiary", "content": "Mới nhất", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"},
                {"type": "icon_font", "id": "SearchSortIcon", "width": 14, "height": 14, "iconFontName": "chevron-down", "iconFontFamily": "lucide", "fill": "$text-tertiary"}
              ]}
            ]},
            {"type": "frame", "id": "SearchResultList", "width": "fill_container", "height": "fill_container", "layout": "vertical", "gap": 8, "children": [
              {"type": "frame", "id": "SearchItem1", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "padding": 14, "gap": 14, "alignItems": "center", "children": [
                {"type": "frame", "id": "SearchItem1Img", "width": 56, "height": 56, "fill": "#8B5CF620", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "SearchItem1ImgIcon", "width": 28, "height": 28, "iconFontName": "coffee", "iconFontFamily": "lucide", "fill": "#8B5CF6"}
                ]},
                {"type": "frame", "id": "SearchItem1Info", "width": "fill_container", "layout": "vertical", "gap": 4, "children": [
                  {"type": "text", "id": "SearchItem1Name", "fill": "$text-primary", "content": "Trà sữa trân châu đen", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"},
                  {"type": "frame", "id": "SearchItem1Meta", "gap": 8, "alignItems": "center", "children": [
                    {"type": "text", "id": "SearchItem1SKU", "fill": "$text-tertiary", "content": "SKU: TS001", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "normal"},
                    {"type": "frame", "id": "SearchItem1Stock", "fill": "#22C55E20", "cornerRadius": 6, "padding": [3, 8], "children": [
                      {"type": "text", "id": "SearchItem1StockText", "fill": "#22C55E", "content": "Còn hàng", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "500"}
                    ]}
                  ]}
                ]},
                {"type": "text", "id": "SearchItem1Price", "fill": "$orange-primary", "content": "35,000₫", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
              ]},
              {"type": "frame", "id": "SearchItem2", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "padding": 14, "gap": 14, "alignItems": "center", "children": [
                {"type": "frame", "id": "SearchItem2Img", "width": 56, "height": 56, "fill": "#F59E0B20", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "SearchItem2ImgIcon", "width": 28, "height": 28, "iconFontName": "cup-soda", "iconFontFamily": "lucide", "fill": "#F59E0B"}
                ]},
                {"type": "frame", "id": "SearchItem2Info", "width": "fill_container", "layout": "vertical", "gap": 4, "children": [
                  {"type": "text", "id": "SearchItem2Name", "fill": "$text-primary", "content": "Trà sữa matcha", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"},
                  {"type": "frame", "id": "SearchItem2Meta", "gap": 8, "alignItems": "center", "children": [
                    {"type": "text", "id": "SearchItem2SKU", "fill": "$text-tertiary", "content": "SKU: TS002", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "normal"},
                    {"type": "frame", "id": "SearchItem2Stock", "fill": "#22C55E20", "cornerRadius": 6, "padding": [3, 8], "children": [
                      {"type": "text", "id": "SearchItem2StockText", "fill": "#22C55E", "content": "Còn hàng", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "500"}
                    ]}
                  ]}
                ]},
                {"type": "text", "id": "SearchItem2Price", "fill": "$orange-primary", "content": "40,000₫", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
              ]},
              {"type": "frame", "id": "SearchItem3", "width": "fill_container", "fill": "$bg-page", "cornerRadius": 14, "padding": 14, "gap": 14, "alignItems": "center", "children": [
                {"type": "frame", "id": "SearchItem3Img", "width": 56, "height": 56, "fill": "#EC489920", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "SearchItem3ImgIcon", "width": 28, "height": 28, "iconFontName": "ice-cream-cone", "iconFontFamily": "lucide", "fill": "#EC4899"}
                ]},
                {"type": "frame", "id": "SearchItem3Info", "width": "fill_container", "layout": "vertical", "gap": 4, "children": [
                  {"type": "text", "id": "SearchItem3Name", "fill": "$text-primary", "content": "Trà sữa dâu tây", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"},
                  {"type": "frame", "id": "SearchItem3Meta", "gap": 8, "alignItems": "center", "children": [
                    {"type": "text", "id": "SearchItem3SKU", "fill": "$text-tertiary", "content": "SKU: TS003", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "normal"},
                    {"type": "frame", "id": "SearchItem3Stock", "fill": "#EF444420", "cornerRadius": 6, "padding": [3, 8], "children": [
                      {"type": "text", "id": "SearchItem3StockText", "fill": "#EF4444", "content": "Sắp hết", "fontFamily": "Roboto", "fontSize": 11, "fontWeight": "500"}
                    ]}
                  ]}
                ]},
                {"type": "text", "id": "SearchItem3Price", "fill": "$orange-primary", "content": "38,000₫", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
              ]}
            ]}
          ]
        }
      ]
    }
  ],
  "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"}
  }
}
