{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-S4-X821.02",
        "name": "4er Fußball Pokale X821.02",
        "type": "cup-emblem",
        "basePrice": 13.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Emblem, Gravurschild und Wunschtext inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/pkx82102/",
    "layers": [
        {
            "id": "photo",
            "type": "static",
            "image": "photos/front.jpg"
        },
        {
            "id": "logoSmall",
            "type": "upload",
            "category": "logo",
            "clip": {
                "shape": "circle",
                "points": [
                    {
                        "x": 0.42318,
                        "y": 0.65149
                    },
                    {
                        "x": 0.55106,
                        "y": 0.77937
                    }
                ]
            }
        },
        {
            "id": "textSmall",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.502,
                "y": 0.8666,
                "maxWidthPx": 161,
                "maxHeightPx": 65
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 23
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "160",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleicher Pokal in 4 Höhen",
            "options": [
                {
                    "id": "160",
                    "label": "16 cm · 13,90 €",
                    "sku": "BS-G50/20.X821.02",
                    "price": 13.9
                },
                {
                    "id": "190",
                    "label": "19 cm · 16,90 €",
                    "sku": "BS-G50/20.X822.02",
                    "price": 16.9
                },
                {
                    "id": "230",
                    "label": "23 cm · 19,90 €",
                    "sku": "BS-G50/20.X823.02",
                    "price": 19.9
                },
                {
                    "id": "270",
                    "label": "27 cm · 22,90 €",
                    "sku": "BS-G50/20.X824.02",
                    "price": 22.9
                }
            ]
        },
        {
            "id": "logo",
            "title": "Eigenes Logo im Emblemhalter (optional)",
            "type": "fileUpload",
            "accept": [
                "png",
                "jpg",
                "jpeg",
                "pdf"
            ],
            "maxSizeMb": 10
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "alwaysOpen": true,
            "default": "text",
            "defaultCounts": true,
            "note": "Silbernes Gravurschild auf dem Sockel, Gravur inklusive",
            "options": [
                {
                    "id": "text",
                    "label": "mit Wunschtext"
                },
                {
                    "id": "none",
                    "label": "ohne Wunschtext"
                }
            ]
        },
        {
            "id": "font",
            "title": "Schriftart",
            "type": "font-select",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "optionsFrom": "shared/fonts.json",
            "collapseOnSelect": true
        },
        {
            "id": "customText",
            "title": "Wunschtext",
            "type": "textarea",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "maxLength": 105,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 611,
        "addUrl": "/checkout/cart/add/product/611/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5130,
            "font": 5131,
            "preview": 5133,
            "motif": 5129,
            "logo": 5132
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "160": 5991,
                "190": 5989,
                "230": 5974,
                "270": 5829
            }
        }
    }
}
