{
    "schemaVersion": 2,
    "product": {
        "sku": "FS-S3-25201",
        "name": "Fußball Pokale 25201",
        "type": "figure-plate",
        "basePrice": 36.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Goldenes Gravurschild mit Wunschtext inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/pk25201/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5006,
                "y": 0.8491,
                "maxWidthPx": 137,
                "maxHeightPx": 61,
                "quad": [
                    [
                        295.7,
                        597.7
                    ],
                    [
                        455.2,
                        597.7
                    ],
                    [
                        455.2,
                        676
                    ],
                    [
                        295.7,
                        676
                    ]
                ]
            },
            "font": {
                "sizePx": 20,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "250",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 3 Höhen",
            "options": [
                {
                    "id": "250",
                    "label": "25 cm · 36,90 €",
                    "sku": "FS-25201-2",
                    "price": 36.9
                },
                {
                    "id": "300",
                    "label": "30 cm · 46,90 €",
                    "sku": "FS-25201-1",
                    "price": 46.9
                },
                {
                    "id": "350",
                    "label": "35 cm · 56,90 €",
                    "sku": "FS-25201",
                    "price": 56.9
                }
            ]
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "note": "Goldenes 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": 799,
        "addUrl": "/checkout/cart/add/product/799/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 3525,
            "font": 3526,
            "preview": 3527
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "250": 5824,
                "300": 5825,
                "350": 5912
            }
        }
    }
}
