{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-S3-SL2050",
        "name": "Hunde Pokale SL2050",
        "type": "cup-emblem",
        "basePrice": 16.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/pksl2050/",
    "layers": [
        {
            "id": "photo",
            "type": "static",
            "image": "photos/front.jpg"
        },
        {
            "id": "logoSmall",
            "type": "upload",
            "category": "logo",
            "clip": {
                "shape": "circle",
                "points": [
                    {
                        "x": 0.45306,
                        "y": 0.67251
                    },
                    {
                        "x": 0.5354,
                        "y": 0.75485
                    }
                ]
            }
        },
        {
            "id": "textSmall",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4965,
                "y": 0.865,
                "maxWidthPx": 159,
                "maxHeightPx": 54
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 23
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "235",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleicher Pokal in 3 Höhen",
            "options": [
                {
                    "id": "235",
                    "label": "23,5 cm · 16,90 €",
                    "sku": "BS-G50/20.SL2050-01",
                    "price": 16.9
                },
                {
                    "id": "255",
                    "label": "25,5 cm · 20,90 €",
                    "sku": "BS-G50/20.SL2050-02",
                    "price": 20.9
                },
                {
                    "id": "275",
                    "label": "27,5 cm · 24,90 €",
                    "sku": "BS-G50/20.SL2050-03",
                    "price": 24.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": 660,
        "addUrl": "/checkout/cart/add/product/660/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5035,
            "font": 5036,
            "preview": 5038,
            "motif": 5034,
            "logo": 5037
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "235": 6021,
                "255": 6010,
                "275": 6011
            }
        }
    }
}
