{
    "schemaVersion": 2,
    "product": {
        "sku": "FS-S2-KX01",
        "name": "Motorsport Metall Pokal KX01",
        "type": "figure-plate",
        "basePrice": 39.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Silbernes Gravurschild mit Wunschtext inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/pkkx01/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4994,
                "y": 0.8282,
                "maxWidthPx": 202,
                "maxHeightPx": 49,
                "quad": [
                    [
                        256.7,
                        589.2
                    ],
                    [
                        492.3,
                        589.2
                    ],
                    [
                        492.3,
                        653.1
                    ],
                    [
                        256.7,
                        653.1
                    ]
                ]
            },
            "font": {
                "sizePx": 21,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "240",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 2 Höhen",
            "options": [
                {
                    "id": "240",
                    "label": "24 cm · 39,90 €",
                    "sku": "FS-KX01-1",
                    "price": 39.9
                },
                {
                    "id": "300",
                    "label": "30 cm · 59,90 €",
                    "sku": "FS-KX01",
                    "price": 59.9
                }
            ]
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "note": "Silbernes Gravurschild, Gravur inklusive",
            "options": [
                {
                    "id": "text",
                    "label": "mit Wunschtext"
                },
                {
                    "id": "none",
                    "label": "ohne Wunschtext"
                }
            ],
            "alwaysOpen": true,
            "default": "text",
            "defaultCounts": true
        },
        {
            "id": "font",
            "title": "Schriftart",
            "type": "font-select",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "optionsFrom": "shared/fonts.json",
            "collapseOnSelect": true,
            "options": []
        },
        {
            "id": "customText",
            "title": "Wunschtext",
            "type": "textarea",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "maxLength": 90,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 842,
        "addUrl": "/checkout/cart/add/product/842/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 3603,
            "font": 3604,
            "preview": 3605
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "240": 5850,
                "300": 5825
            }
        }
    }
}
