{
  "version": "2.7",
  "children": [
    {
      "type": "frame",
      "id": "ItemDetailScreen",
      "x": 0,
      "y": 0,
      "name": "POS/ItemDetail",
      "reusable": true,
      "width": 390,
      "height": 1176,
      "fill": "$bg-page",
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "DetailTopBar",
          "name": "DetailTopBar",
          "width": "fill_container",
          "height": 56,
          "fill": "$bg-surface",
          "padding": [
            0,
            16
          ],
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {
              "type": "icon_font",
              "id": "DetailBackIcon",
              "name": "DetailBackIcon",
              "width": 24,
              "height": 24,
              "iconFontName": "chevron-left",
              "iconFontFamily": "lucide",
              "fill": "$text-primary"
            },
            {
              "type": "text",
              "id": "DetailTopTitle",
              "name": "DetailTopTitle",
              "fill": "$text-primary",
              "content": "Chi tiết món",
              "fontFamily": "Poppins",
              "fontSize": 18,
              "fontWeight": "600"
            },
            {
              "type": "icon_font",
              "id": "DetailFavIcon",
              "name": "DetailFavIcon",
              "width": 24,
              "height": 24,
              "iconFontName": "heart",
              "iconFontFamily": "lucide",
              "fill": "$text-secondary"
            }
          ]
        },
        {
          "type": "frame",
          "id": "DetailScrollContent",
          "name": "DetailScrollContent",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "children": [
            {
              "type": "frame",
              "id": "DetailImageArea",
              "name": "DetailImageArea",
              "metadata": {
                "type": "unsplash",
                "username": "madeline_sd",
                "link": "https://unsplash.com/@madeline_sd",
                "author": "Madeline Liu"
              },
              "width": "fill_container",
              "height": 240,
              "fill": {
                "type": "image",
                "enabled": true,
                "url": "https://images.unsplash.com/photo-1717749790652-f3db782af52e?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w4NDM0ODN8MHwxfHJhbmRvbXx8fHx8fHx8fDE3NzA4MjA1ODV8&ixlib=rb-4.1.0&q=80&w=1080",
                "mode": "fill"
              },
              "cornerRadius": [
                0,
                0,
                24,
                24
              ],
              "layout": "vertical",
              "justifyContent": "center",
              "alignItems": "center"
            },
            {
              "type": "frame",
              "id": "DetailInfoSection",
              "name": "DetailInfoSection",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 12,
              "padding": 20,
              "children": [
                {
                  "type": "text",
                  "id": "DetailItemTitle",
                  "name": "DetailItemTitle",
                  "fill": "$text-primary",
                  "content": "Cơm trứng chiên đặc biệt",
                  "fontFamily": "Poppins",
                  "fontSize": 22,
                  "fontWeight": "700"
                },
                {
                  "type": "frame",
                  "id": "DetailMetaRow",
                  "name": "DetailMetaRow",
                  "width": "fill_container",
                  "gap": 16,
                  "children": [
                    {
                      "type": "frame",
                      "id": "DetailRatingGroup",
                      "name": "DetailRatingGroup",
                      "gap": 4,
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "jItXZ",
                          "name": "DetailStarIcon",
                          "width": 14,
                          "height": 14,
                          "iconFontName": "star",
                          "iconFontFamily": "lucide",
                          "fill": "$warning"
                        },
                        {
                          "type": "text",
                          "id": "aTYHX",
                          "name": "DetailRatingText",
                          "fill": "$text-secondary",
                          "content": "4.8",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "500"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "DetailTimeGroup",
                      "name": "DetailTimeGroup",
                      "gap": 4,
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "su4KQ",
                          "name": "DetailClockIcon",
                          "width": 14,
                          "height": 14,
                          "iconFontName": "clock-3",
                          "iconFontFamily": "lucide",
                          "fill": "$text-tertiary"
                        },
                        {
                          "type": "text",
                          "id": "KK8z7",
                          "name": "DetailTimeText",
                          "fill": "$text-secondary",
                          "content": "15-20 phút",
                          "fontFamily": "Poppins",
                          "fontSize": 13,
                          "fontWeight": "normal"
                        }
                      ]
                    }
                  ]
                },
                {
                  "type": "text",
                  "id": "DetailPrice",
                  "name": "DetailPrice",
                  "fill": "$orange-primary",
                  "content": "45,000d",
                  "fontFamily": "Poppins",
                  "fontSize": 24,
                  "fontWeight": "700"
                },
                {
                  "type": "text",
                  "id": "DetailDesc",
                  "name": "DetailDesc",
                  "fill": "$text-secondary",
                  "textGrowth": "fixed-width",
                  "width": "fill_container",
                  "content": "Cơm trắng dẻo thơm với trứng chiên vàng giòn, kèm xúc xích, rau xà lách và nước tương đặc biệt.",
                  "lineHeight": 1.5,
                  "fontFamily": "Poppins",
                  "fontSize": 13,
                  "fontWeight": "normal"
                }
              ]
            },
            {
              "type": "frame",
              "id": "SizeSection",
              "name": "SizeSection",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 12,
              "padding": [
                12,
                20
              ],
              "children": [
                {
                  "type": "text",
                  "id": "SizeLabel",
                  "name": "SizeLabel",
                  "fill": "$text-primary",
                  "content": "Kích cỡ",
                  "fontFamily": "Poppins",
                  "fontSize": 16,
                  "fontWeight": "600"
                },
                {
                  "type": "frame",
                  "id": "SizeOptions",
                  "name": "SizeOptions",
                  "width": "fill_container",
                  "gap": 12,
                  "children": [
                    {
                      "type": "frame",
                      "id": "SizeSmall",
                      "name": "SizeSmall",
                      "width": "fill_container",
                      "height": 42,
                      "fill": "$bg-interactive",
                      "cornerRadius": 12,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "text",
                          "id": "8sOQJ",
                          "name": "SizeSmallText",
                          "fill": "$text-secondary",
                          "content": "Nhỏ",
                          "fontFamily": "Poppins",
                          "fontSize": 14,
                          "fontWeight": "600"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "SizeMedium",
                      "name": "SizeMedium",
                      "width": "fill_container",
                      "height": 42,
                      "fill": "$orange-primary",
                      "cornerRadius": 12,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "text",
                          "id": "LsatE",
                          "name": "SizeMediumText",
                          "fill": "$bg-surface",
                          "content": "Vừa",
                          "fontFamily": "Poppins",
                          "fontSize": 14,
                          "fontWeight": "600"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "SizeLarge",
                      "name": "SizeLarge",
                      "width": "fill_container",
                      "height": 42,
                      "fill": "$bg-interactive",
                      "cornerRadius": 12,
                      "layout": "vertical",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "text",
                          "id": "C5HoM",
                          "name": "SizeLargeText",
                          "fill": "$text-secondary",
                          "content": "Lớn +10,000đ",
                          "fontFamily": "Poppins",
                          "fontSize": 14,
                          "fontWeight": "600"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "type": "frame",
              "id": "ToppingSection",
              "name": "ToppingSection",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 14,
              "padding": [
                12,
                20
              ],
              "children": [
                {
                  "type": "text",
                  "id": "ToppingLabel",
                  "name": "ToppingLabel",
                  "fill": "$text-primary",
                  "content": "Thêm topping",
                  "fontFamily": "Poppins",
                  "fontSize": 16,
                  "fontWeight": "600"
                },
                {
                  "type": "frame",
                  "id": "Topping1",
                  "name": "Topping1",
                  "width": "fill_container",
                  "height": 44,
                  "padding": [
                    0,
                    4
                  ],
                  "justifyContent": "space_between",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "Topping1Left",
                      "name": "Topping1Left",
                      "gap": 10,
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "frame",
                          "id": "82R7Z",
                          "name": "Topping1Check",
                          "width": 20,
                          "height": 20,
                          "cornerRadius": 6,
                          "stroke": {
                            "thickness": 2,
                            "fill": "$border-default"
                          }
                        },
                        {
                          "type": "text",
                          "id": "shhUO",
                          "name": "Topping1Name",
                          "fill": "$text-primary",
                          "content": "Trứng ốp la",
                          "fontFamily": "Poppins",
                          "fontSize": 14,
                          "fontWeight": "normal"
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "Topping1Price",
                      "name": "Topping1Price",
                      "fill": "$text-secondary",
                      "content": "+5,000d",
                      "fontFamily": "Poppins",
                      "fontSize": 14,
                      "fontWeight": "500"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "Topping2",
                  "name": "Topping2",
                  "width": "fill_container",
                  "height": 44,
                  "padding": [
                    0,
                    4
                  ],
                  "justifyContent": "space_between",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "Topping2Left",
                      "name": "Topping2Left",
                      "gap": 10,
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "frame",
                          "id": "V0gge",
                          "name": "Topping2Check",
                          "width": 20,
                          "height": 20,
                          "fill": "$orange-primary",
                          "cornerRadius": 6,
                          "layout": "vertical",
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {
                              "type": "icon_font",
                              "id": "6UlRe",
                              "name": "t2Icon",
                              "width": 14,
                              "height": 14,
                              "iconFontName": "check",
                              "iconFontFamily": "lucide",
                              "fill": "$bg-surface"
                            }
                          ]
                        },
                        {
                          "type": "text",
                          "id": "hHSLJ",
                          "name": "Topping2Name",
                          "fill": "$text-primary",
                          "content": "Phô mai",
                          "fontFamily": "Poppins",
                          "fontSize": 14,
                          "fontWeight": "normal"
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "Topping2Price",
                      "name": "Topping2Price",
                      "fill": "$text-secondary",
                      "content": "+8,000d",
                      "fontFamily": "Poppins",
                      "fontSize": 14,
                      "fontWeight": "500"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "Topping3",
                  "name": "Topping3",
                  "width": "fill_container",
                  "height": 44,
                  "padding": [
                    0,
                    4
                  ],
                  "justifyContent": "space_between",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "Topping3Left",
                      "name": "Topping3Left",
                      "gap": 10,
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "frame",
                          "id": "raejk",
                          "name": "Topping3Check",
                          "width": 20,
                          "height": 20,
                          "cornerRadius": 6,
                          "stroke": {
                            "thickness": 2,
                            "fill": "$border-default"
                          }
                        },
                        {
                          "type": "text",
                          "id": "j1UGc",
                          "name": "Topping3Name",
                          "fill": "$text-primary",
                          "content": "Xúc xích",
                          "fontFamily": "Poppins",
                          "fontSize": 14,
                          "fontWeight": "normal"
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "Topping3Price",
                      "name": "Topping3Price",
                      "fill": "$text-secondary",
                      "content": "+6,000d",
                      "fontFamily": "Poppins",
                      "fontSize": 14,
                      "fontWeight": "500"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "Topping4",
                  "name": "Topping4",
                  "width": "fill_container",
                  "height": 44,
                  "padding": [
                    0,
                    4
                  ],
                  "justifyContent": "space_between",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "Topping4Left",
                      "name": "Topping4Left",
                      "gap": 10,
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "frame",
                          "id": "RrI77",
                          "name": "Topping4Check",
                          "width": 20,
                          "height": 20,
                          "cornerRadius": 6,
                          "stroke": {
                            "thickness": 2,
                            "fill": "$border-default"
                          }
                        },
                        {
                          "type": "text",
                          "id": "GjPTt",
                          "name": "Topping4Name",
                          "fill": "$text-primary",
                          "content": "Rau củ",
                          "fontFamily": "Poppins",
                          "fontSize": 14,
                          "fontWeight": "normal"
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "Topping4Price",
                      "name": "Topping4Price",
                      "fill": "$text-secondary",
                      "content": "+3,000d",
                      "fontFamily": "Poppins",
                      "fontSize": 14,
                      "fontWeight": "500"
                    }
                  ]
                }
              ]
            },
            {
              "type": "frame",
              "id": "NoteSection",
              "name": "NoteSection",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 10,
              "padding": [
                12,
                20,
                20,
                20
              ],
              "children": [
                {
                  "type": "text",
                  "id": "NoteLabel",
                  "name": "NoteLabel",
                  "fill": "$text-primary",
                  "content": "Ghi chú đặc biệt",
                  "fontFamily": "Poppins",
                  "fontSize": 16,
                  "fontWeight": "600"
                },
                {
                  "type": "frame",
                  "id": "NoteInput",
                  "name": "NoteInput",
                  "width": "fill_container",
                  "height": 72,
                  "fill": "$bg-elevated",
                  "cornerRadius": 12,
                  "stroke": {
                    "thickness": 1.5,
                    "fill": "$border-default"
                  },
                  "padding": [
                    12,
                    14
                  ],
                  "children": [
                    {
                      "type": "text",
                      "id": "NotePlaceholder",
                      "name": "NotePlaceholder",
                      "fill": "$text-tertiary",
                      "content": "VD: Ít muối, không hành...",
                      "fontFamily": "Poppins",
                      "fontSize": 13,
                      "fontWeight": "normal"
                    }
                  ]
                }
              ]
            },
            {
              "type": "frame",
              "id": "QtySection",
              "name": "QtySection",
              "width": "fill_container",
              "gap": 20,
              "padding": [
                12,
                20,
                20,
                20
              ],
              "justifyContent": "center",
              "alignItems": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "QtyMinus",
                  "name": "QtyMinus",
                  "width": 40,
                  "height": 40,
                  "fill": "$bg-interactive",
                  "cornerRadius": 12,
                  "layout": "vertical",
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "icon_font",
                      "id": "QtyMinusIcon",
                      "name": "QtyMinusIcon",
                      "width": 20,
                      "height": 20,
                      "iconFontName": "minus",
                      "iconFontFamily": "lucide",
                      "fill": "$text-secondary"
                    }
                  ]
                },
                {
                  "type": "text",
                  "id": "QtyValue",
                  "name": "QtyValue",
                  "fill": "$text-primary",
                  "content": "1",
                  "fontFamily": "Poppins",
                  "fontSize": 20,
                  "fontWeight": "700"
                },
                {
                  "type": "frame",
                  "id": "QtyPlus",
                  "name": "QtyPlus",
                  "width": 40,
                  "height": 40,
                  "fill": "$orange-primary",
                  "cornerRadius": 12,
                  "layout": "vertical",
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "icon_font",
                      "id": "QtyPlusIcon",
                      "name": "QtyPlusIcon",
                      "width": 20,
                      "height": 20,
                      "iconFontName": "plus",
                      "iconFontFamily": "lucide",
                      "fill": "$bg-surface"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "type": "frame",
          "id": "DetailBottomBar",
          "name": "DetailBottomBar",
          "width": "fill_container",
          "height": 80,
          "fill": "$bg-surface",
          "padding": [
            16,
            20
          ],
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {
              "type": "frame",
              "id": "DetailTotalGroup",
              "name": "DetailTotalGroup",
              "layout": "vertical",
              "gap": 2,
              "children": [
                {
                  "type": "text",
                  "id": "DetailTotalLabel",
                  "name": "DetailTotalLabel",
                  "fill": "$text-secondary",
                  "content": "Tổng cộng",
                  "fontFamily": "Poppins",
                  "fontSize": 12,
                  "fontWeight": "normal"
                },
                {
                  "type": "text",
                  "id": "DetailTotalPrice",
                  "name": "DetailTotalPrice",
                  "fill": "$text-primary",
                  "content": "55,000d",
                  "fontFamily": "Poppins",
                  "fontSize": 20,
                  "fontWeight": "700"
                }
              ]
            },
            {
              "type": "frame",
              "id": "AddToCartBtn",
              "name": "AddToCartBtn",
              "width": 200,
              "height": 50,
              "fill": "$orange-primary",
              "cornerRadius": 30,
              "gap": 8,
              "justifyContent": "center",
              "alignItems": "center",
              "children": [
                {
                  "type": "icon_font",
                  "id": "AddToCartIcon",
                  "name": "AddToCartIcon",
                  "width": 20,
                  "height": 20,
                  "iconFontName": "shopping-cart",
                  "iconFontFamily": "lucide",
                  "fill": "$bg-surface"
                },
                {
                  "type": "text",
                  "id": "AddToCartText",
                  "name": "AddToCartText",
                  "fill": "$bg-surface",
                  "content": "Thêm vào giỏ",
                  "fontFamily": "Poppins",
                  "fontSize": 15,
                  "fontWeight": "600"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-page": {
      "type": "color",
      "value": "#FAF8F4"
    },
    "bg-surface": {
      "type": "color",
      "value": "#FFFFFF"
    },
    "bg-elevated": {
      "type": "color",
      "value": "#FFF8F0"
    },
    "bg-interactive": {
      "type": "color",
      "value": "#F5EDE4"
    },
    "brown-primary": {
      "type": "color",
      "value": "#6B4423"
    },
    "brown-dark": {
      "type": "color",
      "value": "#4A2E15"
    },
    "orange-primary": {
      "type": "color",
      "value": "#FF6B35"
    },
    "orange-light": {
      "type": "color",
      "value": "#FF8A5C"
    },
    "text-primary": {
      "type": "color",
      "value": "#2C2C2C"
    },
    "text-secondary": {
      "type": "color",
      "value": "#6B6B6B"
    },
    "text-tertiary": {
      "type": "color",
      "value": "#9B9B9B"
    },
    "border-default": {
      "type": "color",
      "value": "#E5DDD4"
    },
    "border-subtle": {
      "type": "color",
      "value": "#F0EAE2"
    },
    "success": {
      "type": "color",
      "value": "#22C55E"
    },
    "warning": {
      "type": "color",
      "value": "#F59E0B"
    },
    "error": {
      "type": "color",
      "value": "#EF4444"
    }
  }
}