{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "name": "Order Items Showcase",
      "width": 1440,
      "fill": "$bg-page",
      "layout": "vertical",
      "gap": 80,
      "padding": [80, 120],
      "children": [
        {
          "type": "frame",
          "id": "OrderItemSection",
          "name": "Order Items Section",
          "width": "fill_container",
          "layout": "vertical",
          "gap": 32,
          "children": [
            {
              "type": "frame",
              "id": "OrderItemHeader",
              "name": "orderItemSectionHeader",
              "layout": "vertical",
              "gap": 16,
              "alignItems": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "OrderItemBadge",
                  "name": "shBadge",
                  "fill": "#FF5C0018",
                  "cornerRadius": 100,
                  "padding": [6, 14],
                  "children": [
                    {
                      "type": "text",
                      "id": "OrderItemBadgeText",
                      "name": "badgeText",
                      "fill": "$orange-primary",
                      "content": "ORDER ITEMS",
                      "fontFamily": "Roboto",
                      "fontSize": 11,
                      "fontWeight": "500",
                      "letterSpacing": 2
                    }
                  ]
                },
                {
                  "type": "text",
                  "id": "OrderItemTitle",
                  "name": "shTitle",
                  "fill": "$text-primary",
                  "content": "Cart & Order Lines",
                  "textAlign": "center",
                  "fontFamily": "Roboto",
                  "fontSize": 42,
                  "fontWeight": "normal",
                  "letterSpacing": -1
                }
              ]
            },
            {
              "type": "frame",
              "id": "OrderItemExamples",
              "name": "orderItemExamples",
              "width": "fill_container",
              "fill": "$bg-surface",
              "cornerRadius": 16,
              "stroke": {"thickness": 1, "fill": "$border-subtle"},
              "layout": "vertical",
              "gap": 0,
              "padding": 0,
              "children": [
                {
                  "type": "frame",
                  "id": "OrderItem1",
                  "name": "Molecule/OrderItem/Standard",
                  "reusable": true,
                  "width": "fill_container",
                  "padding": [16, 20],
                  "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
                  "justifyContent": "space_between",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "OrderItem1Left",
                      "name": "leftContent",
                      "gap": 12,
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "frame",
                          "id": "OrderItem1Qty",
                          "name": "qtyBadge",
                          "width": 32,
                          "height": 32,
                          "fill": "$bg-elevated",
                          "cornerRadius": 8,
                          "justifyContent": "center",
                          "alignItems": "center",
                          "children": [
                            {
                              "type": "text",
                              "id": "OrderItem1QtyText",
                              "name": "qty",
                              "fill": "$text-primary",
                              "content": "2",
                              "fontFamily": "Roboto",
                              "fontSize": 14,
                              "fontWeight": "600"
                            }
                          ]
                        },
                        {
                          "type": "frame",
                          "id": "OrderItem1Info",
                          "name": "itemInfo",
                          "layout": "vertical",
                          "gap": 4,
                          "children": [
                            {
                              "type": "text",
                              "id": "OrderItem1Name",
                              "name": "itemName",
                              "fill": "$text-primary",
                              "content": "Cà Phê Sữa Đá",
                              "fontFamily": "Roboto",
                              "fontSize": 15,
                              "fontWeight": "500"
                            },
                            {
                              "type": "text",
                              "id": "OrderItem1Note",
                              "name": "itemNote",
                              "fill": "$text-tertiary",
                              "content": "Ít đường, thêm đá",
                              "fontFamily": "Roboto",
                              "fontSize": 12,
                              "fontWeight": "normal"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "type": "text",
                      "id": "OrderItem1Price",
                      "name": "itemPrice",
                      "fill": "$text-primary",
                      "content": "58,000₫",
                      "fontFamily": "Roboto",
                      "fontSize": 15,
                      "fontWeight": "600"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "OrderItem2",
                  "name": "Molecule/OrderItem/WithModifiers",
                  "reusable": true,
                  "width": "fill_container",
                  "layout": "vertical",
                  "padding": [16, 20],
                  "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
                  "gap": 8,
                  "children": [
                    {
                      "type": "frame",
                      "id": "OrderItem2Main",
                      "name": "mainRow",
                      "width": "fill_container",
                      "justifyContent": "space_between",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "frame",
                          "id": "OrderItem2Left",
                          "name": "leftContent",
                          "gap": 12,
                          "alignItems": "center",
                          "children": [
                            {
                              "type": "frame",
                              "id": "OrderItem2Qty",
                              "name": "qtyBadge",
                              "width": 32,
                              "height": 32,
                              "fill": "$bg-elevated",
                              "cornerRadius": 8,
                              "justifyContent": "center",
                              "alignItems": "center",
                              "children": [
                                {
                                  "type": "text",
                                  "id": "OrderItem2QtyText",
                                  "name": "qty",
                                  "fill": "$text-primary",
                                  "content": "1",
                                  "fontFamily": "Roboto",
                                  "fontSize": 14,
                                  "fontWeight": "600"
                                }
                              ]
                            },
                            {
                              "type": "text",
                              "id": "OrderItem2Name",
                              "name": "itemName",
                              "fill": "$text-primary",
                              "content": "Bánh Mì Thịt Nguội",
                              "fontFamily": "Roboto",
                              "fontSize": 15,
                              "fontWeight": "500"
                            }
                          ]
                        },
                        {
                          "type": "text",
                          "id": "OrderItem2Price",
                          "name": "itemPrice",
                          "fill": "$text-primary",
                          "content": "45,000₫",
                          "fontFamily": "Roboto",
                          "fontSize": 15,
                          "fontWeight": "600"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "OrderItem2Mods",
                      "name": "modifierList",
                      "padding": [0, 0, 0, 44],
                      "layout": "vertical",
                      "gap": 4,
                      "children": [
                        {
                          "type": "text",
                          "id": "OrderItem2Mod1",
                          "name": "modifier1",
                          "fill": "$text-tertiary",
                          "content": "+ Phô mai (+10,000₫)",
                          "fontFamily": "Roboto",
                          "fontSize": 12,
                          "fontWeight": "normal"
                        },
                        {
                          "type": "text",
                          "id": "OrderItem2Mod2",
                          "name": "modifier2",
                          "fill": "$text-tertiary",
                          "content": "+ Trứng ốp la (+8,000₫)",
                          "fontFamily": "Roboto",
                          "fontSize": 12,
                          "fontWeight": "normal"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "type": "frame",
          "id": "BillRowSection",
          "name": "Bill Rows Section",
          "width": "fill_container",
          "layout": "vertical",
          "gap": 32,
          "children": [
            {
              "type": "frame",
              "id": "BillRowHeader",
              "name": "billRowSectionHeader",
              "layout": "vertical",
              "gap": 16,
              "alignItems": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "BillRowBadge",
                  "name": "shBadge",
                  "fill": "#FF5C0018",
                  "cornerRadius": 100,
                  "padding": [6, 14],
                  "children": [
                    {
                      "type": "text",
                      "id": "BillRowBadgeText",
                      "name": "badgeText",
                      "fill": "$orange-primary",
                      "content": "BILL SUMMARY",
                      "fontFamily": "Roboto",
                      "fontSize": 11,
                      "fontWeight": "500",
                      "letterSpacing": 2
                    }
                  ]
                },
                {
                  "type": "text",
                  "id": "BillRowTitle",
                  "name": "shTitle",
                  "fill": "$text-primary",
                  "content": "Price Breakdown",
                  "textAlign": "center",
                  "fontFamily": "Roboto",
                  "fontSize": 42,
                  "fontWeight": "normal",
                  "letterSpacing": -1
                }
              ]
            },
            {
              "type": "frame",
              "id": "BillRowExamples",
              "name": "billRowExamples",
              "width": 400,
              "fill": "$bg-surface",
              "cornerRadius": 16,
              "stroke": {"thickness": 1, "fill": "$border-subtle"},
              "layout": "vertical",
              "gap": 0,
              "padding": 24,
              "children": [
                {
                  "type": "frame",
                  "id": "BillSubtotal",
                  "name": "Molecule/BillRow/Subtotal",
                  "reusable": true,
                  "width": "fill_container",
                  "padding": [8, 0],
                  "justifyContent": "space_between",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "text",
                      "id": "BillSubtotalLabel",
                      "name": "label",
                      "fill": "$text-secondary",
                      "content": "Tạm tính",
                      "fontFamily": "Roboto",
                      "fontSize": 14,
                      "fontWeight": "normal"
                    },
                    {
                      "type": "text",
                      "id": "BillSubtotalValue",
                      "name": "value",
                      "fill": "$text-secondary",
                      "content": "103,000₫",
                      "fontFamily": "Roboto",
                      "fontSize": 14,
                      "fontWeight": "normal"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "BillDiscount",
                  "name": "Molecule/BillRow/Discount",
                  "reusable": true,
                  "width": "fill_container",
                  "padding": [8, 0],
                  "justifyContent": "space_between",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "text",
                      "id": "BillDiscountLabel",
                      "name": "label",
                      "fill": "$green-success",
                      "content": "Giảm giá (10%)",
                      "fontFamily": "Roboto",
                      "fontSize": 14,
                      "fontWeight": "normal"
                    },
                    {
                      "type": "text",
                      "id": "BillDiscountValue",
                      "name": "value",
                      "fill": "$green-success",
                      "content": "-10,300₫",
                      "fontFamily": "Roboto",
                      "fontSize": 14,
                      "fontWeight": "normal"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "BillTax",
                  "name": "Molecule/BillRow/Tax",
                  "reusable": true,
                  "width": "fill_container",
                  "padding": [8, 0],
                  "justifyContent": "space_between",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "text",
                      "id": "BillTaxLabel",
                      "name": "label",
                      "fill": "$text-tertiary",
                      "content": "VAT (8%)",
                      "fontFamily": "Roboto",
                      "fontSize": 14,
                      "fontWeight": "normal"
                    },
                    {
                      "type": "text",
                      "id": "BillTaxValue",
                      "name": "value",
                      "fill": "$text-tertiary",
                      "content": "7,416₫",
                      "fontFamily": "Roboto",
                      "fontSize": 14,
                      "fontWeight": "normal"
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "BillDivider",
                  "name": "divider",
                  "width": "fill_container",
                  "height": 1,
                  "fill": "$border-subtle",
                  "margin": [12, 0]
                },
                {
                  "type": "frame",
                  "id": "BillTotal",
                  "name": "Molecule/BillRow/Total",
                  "reusable": true,
                  "width": "fill_container",
                  "padding": [12, 0],
                  "justifyContent": "space_between",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "text",
                      "id": "BillTotalLabel",
                      "name": "label",
                      "fill": "$text-primary",
                      "content": "Tổng cộng",
                      "fontFamily": "Roboto",
                      "fontSize": 18,
                      "fontWeight": "600"
                    },
                    {
                      "type": "text",
                      "id": "BillTotalValue",
                      "name": "value",
                      "fill": "$orange-primary",
                      "content": "100,116₫",
                      "fontFamily": "Roboto",
                      "fontSize": 22,
                      "fontWeight": "700"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "type": "frame",
          "id": "ProductCardSection",
          "name": "Product Cards Section",
          "width": "fill_container",
          "layout": "vertical",
          "gap": 32,
          "children": [
            {
              "type": "frame",
              "id": "ProductCardHeader",
              "name": "productCardSectionHeader",
              "layout": "vertical",
              "gap": 16,
              "alignItems": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "ProductCardBadge",
                  "name": "shBadge",
                  "fill": "#FF5C0018",
                  "cornerRadius": 100,
                  "padding": [6, 14],
                  "children": [
                    {
                      "type": "text",
                      "id": "ProductCardBadgeText",
                      "name": "badgeText",
                      "fill": "$orange-primary",
                      "content": "PRODUCT CARDS",
                      "fontFamily": "Roboto",
                      "fontSize": 11,
                      "fontWeight": "500",
                      "letterSpacing": 2
                    }
                  ]
                },
                {
                  "type": "text",
                  "id": "ProductCardTitle",
                  "name": "shTitle",
                  "fill": "$text-primary",
                  "content": "POS Product Grid",
                  "textAlign": "center",
                  "fontFamily": "Roboto",
                  "fontSize": 42,
                  "fontWeight": "normal",
                  "letterSpacing": -1
                }
              ]
            },
            {
              "type": "frame",
              "id": "ProductCardExamples",
              "name": "productCardExamples",
              "width": "fill_container",
              "fill": "$bg-surface",
              "cornerRadius": 16,
              "stroke": {"thickness": 1, "fill": "$border-subtle"},
              "gap": 16,
              "padding": 40,
              "justifyContent": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "ProductCard1",
                  "name": "Molecule/ProductCard/POS",
                  "reusable": true,
                  "width": 140,
                  "fill": "$bg-elevated",
                  "cornerRadius": 12,
                  "stroke": {"thickness": 1, "fill": "$border-default"},
                  "layout": "vertical",
                  "clip": true,
                  "children": [
                    {
                      "type": "frame",
                      "id": "ProductCard1Img",
                      "name": "productImage",
                      "width": "fill_container",
                      "height": 100,
                      "fill": "#3B82F618"
                    },
                    {
                      "type": "frame",
                      "id": "ProductCard1Content",
                      "name": "content",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 4,
                      "padding": 12,
                      "children": [
                        {
                          "type": "text",
                          "id": "ProductCard1Name",
                          "name": "productName",
                          "fill": "$text-primary",
                          "content": "Cà Phê Sữa",
                          "fontFamily": "Roboto",
                          "fontSize": 13,
                          "fontWeight": "500"
                        },
                        {
                          "type": "text",
                          "id": "ProductCard1Price",
                          "name": "productPrice",
                          "fill": "$orange-primary",
                          "content": "29,000₫",
                          "fontFamily": "Roboto",
                          "fontSize": 14,
                          "fontWeight": "600"
                        }
                      ]
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "ProductCard2",
                  "name": "Molecule/ProductCard/POS/Selected",
                  "reusable": true,
                  "width": 140,
                  "fill": "$bg-elevated",
                  "cornerRadius": 12,
                  "stroke": {"thickness": 2, "fill": "$orange-primary"},
                  "layout": "vertical",
                  "clip": true,
                  "children": [
                    {
                      "type": "frame",
                      "id": "ProductCard2Img",
                      "name": "productImage",
                      "width": "fill_container",
                      "height": 100,
                      "fill": "#22C55E18"
                    },
                    {
                      "type": "frame",
                      "id": "ProductCard2Content",
                      "name": "content",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 4,
                      "padding": 12,
                      "children": [
                        {
                          "type": "text",
                          "id": "ProductCard2Name",
                          "name": "productName",
                          "fill": "$text-primary",
                          "content": "Trà Đào",
                          "fontFamily": "Roboto",
                          "fontSize": 13,
                          "fontWeight": "500"
                        },
                        {
                          "type": "text",
                          "id": "ProductCard2Price",
                          "name": "productPrice",
                          "fill": "$orange-primary",
                          "content": "35,000₫",
                          "fontFamily": "Roboto",
                          "fontSize": 14,
                          "fontWeight": "600"
                        }
                      ]
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "ProductCard3",
                  "name": "Molecule/ProductCard/POS/OutOfStock",
                  "reusable": true,
                  "width": 140,
                  "fill": "$bg-elevated",
                  "cornerRadius": 12,
                  "stroke": {"thickness": 1, "fill": "$border-default"},
                  "layout": "vertical",
                  "clip": true,
                  "opacity": 0.5,
                  "children": [
                    {
                      "type": "frame",
                      "id": "ProductCard3Img",
                      "name": "productImage",
                      "width": "fill_container",
                      "height": 100,
                      "fill": "#6B6B7018",
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "text",
                          "id": "ProductCard3OOS",
                          "name": "oosLabel",
                          "fill": "$text-disabled",
                          "content": "Hết hàng",
                          "fontFamily": "Roboto",
                          "fontSize": 12,
                          "fontWeight": "600"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "ProductCard3Content",
                      "name": "content",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 4,
                      "padding": 12,
                      "children": [
                        {
                          "type": "text",
                          "id": "ProductCard3Name",
                          "name": "productName",
                          "fill": "$text-disabled",
                          "content": "Sinh Tố Bơ",
                          "fontFamily": "Roboto",
                          "fontSize": 13,
                          "fontWeight": "500"
                        },
                        {
                          "type": "text",
                          "id": "ProductCard3Price",
                          "name": "productPrice",
                          "fill": "$text-disabled",
                          "content": "45,000₫",
                          "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"},
    "bg-surface": {"type": "color", "value": "#111113"},
    "border-default": {"type": "color", "value": "#2A2A2E"},
    "border-subtle": {"type": "color", "value": "#1F1F23"},
    "green-success": {"type": "color", "value": "#22C55E"},
    "orange-light": {"type": "color", "value": "#FF8A4C"},
    "orange-primary": {"type": "color", "value": "#FF5C00"},
    "text-disabled": {"type": "color", "value": "#6B6B70"},
    "text-muted": {"type": "color", "value": "#FFFFFFCC"},
    "text-primary": {"type": "color", "value": "#FFFFFF"},
    "text-secondary": {"type": "color", "value": "#ADADB0"},
    "text-tertiary": {"type": "color", "value": "#8B8B90"}
  }
}
