{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-LT.040B.02.A",
        "name": "Hochwertiger Pokal aus Metall LT.040B.02.A",
        "type": "figure-plate",
        "basePrice": 55,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Silbernes Gravurschild mit Wunschtext und Logo inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/pklt040b/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "logoPlate",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.4029,
                        "y": 0.75334
                    },
                    {
                        "x": 0.47008,
                        "y": 0.82053
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4975,
                "y": 0.7869,
                "maxWidthPx": 138,
                "maxHeightPx": 50,
                "quad": [
                    [
                        292.5,
                        557.9
                    ],
                    [
                        453.7,
                        557.9
                    ],
                    [
                        453.7,
                        622.5
                    ],
                    [
                        292.5,
                        622.5
                    ]
                ]
            },
            "font": {
                "sizePx": 20,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            },
            "hideWhen": {
                "category": "logoMode",
                "equals": "logo"
            }
        },
        {
            "id": "engravingLogo",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5364,
                "y": 0.7869,
                "maxWidthPx": 74,
                "maxHeightPx": 50,
                "quad": [
                    [
                        359,
                        557.9
                    ],
                    [
                        445.6,
                        557.9
                    ],
                    [
                        445.6,
                        622.5
                    ],
                    [
                        359,
                        622.5
                    ]
                ]
            },
            "font": {
                "sizePx": 20,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            },
            "hideWhen": {
                "category": "logoMode",
                "equals": "none"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "330",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 6 Höhen",
            "options": [
                {
                    "id": "330",
                    "label": "33 cm · 55,00 €",
                    "sku": "BS-LT.040B.02.A-X",
                    "price": 55
                },
                {
                    "id": "370",
                    "label": "37 cm · 57,00 €",
                    "sku": "BS-LT.040B.02.B",
                    "price": 57
                },
                {
                    "id": "405",
                    "label": "40,5 cm · 59,00 €",
                    "sku": "BS-LT.040B.02.C",
                    "price": 59
                },
                {
                    "id": "435",
                    "label": "43,5 cm · 61,00 €",
                    "sku": "BS-LT.040B.02.D",
                    "price": 61
                },
                {
                    "id": "505",
                    "label": "50,5 cm · 63,00 €",
                    "sku": "BS-LT.040B.02.E",
                    "price": 63
                },
                {
                    "id": "555",
                    "label": "55,5 cm · 65,00 €",
                    "sku": "BS-LT.040B.02.F",
                    "price": 65
                }
            ]
        },
        {
            "id": "logoMode",
            "title": "Logo auf dem Gravurschild",
            "type": "radio",
            "alwaysOpen": true,
            "default": "none",
            "defaultCounts": true,
            "note": "Optional: Ihr Logo links auf dem Gravurschild, der Wunschtext steht dann rechts daneben",
            "options": [
                {
                    "id": "none",
                    "label": "ohne Logo"
                },
                {
                    "id": "logo",
                    "label": "mit eigenem Logo"
                }
            ]
        },
        {
            "id": "logo",
            "title": "Eigenes Logo hochladen",
            "type": "fileUpload",
            "accept": [
                "png",
                "jpg",
                "jpeg",
                "pdf"
            ],
            "maxSizeMb": 10,
            "visibleWhen": {
                "category": "logoMode",
                "equals": "logo"
            }
        },
        {
            "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": 1276,
        "addUrl": "/checkout/cart/add/product/1276/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5885,
            "font": 5886,
            "preview": 5888,
            "logo": 5887
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "330": 5851,
                "370": 5813,
                "405": 5937,
                "435": 6023,
                "505": 6005,
                "555": 6032
            }
        }
    }
}
