{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-S3-L247",
        "name": "Pokale mit Sternen L247",
        "type": "figure-plate",
        "basePrice": 19.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Gravurschild in Pokalfarbe mit Wunschtext inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/pkl247/",
    "layers": [
        {
            "id": "figure",
            "type": "option",
            "category": "color"
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5005,
                "y": 0.7933,
                "maxWidthPx": 266,
                "maxHeightPx": 63,
                "quad": [
                    [
                        220.2,
                        554.1
                    ],
                    [
                        530.5,
                        554.1
                    ],
                    [
                        530.5,
                        635.8
                    ],
                    [
                        220.2,
                        635.8
                    ]
                ]
            },
            "font": {
                "sizePx": 24,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            }
        }
    ],
    "categories": [
        {
            "id": "color",
            "title": "Farbe",
            "type": "swatch-image",
            "default": "gold",
            "defaultCounts": true,
            "alwaysOpen": true,
            "required": true,
            "note": "Gleicher Pokal in 3 Farben, 20 cm hoch, Gravurschild in Pokalfarbe",
            "options": [
                {
                    "id": "gold",
                    "label": "Gold · 19,90 €",
                    "sku": "BS-L247.01",
                    "price": 19.9,
                    "swatch": "linear-gradient(135deg,#f3dc8a 0%,#d4a537 55%,#9a6d1c 100%)",
                    "image": "photos/front-gold.webp"
                },
                {
                    "id": "silber",
                    "label": "Silber · 19,90 €",
                    "sku": "BS-L247.02",
                    "price": 19.9,
                    "swatch": "linear-gradient(135deg,#f2f3f5 0%,#c3c7cc 55%,#8a9096 100%)",
                    "image": "photos/front-silber.webp"
                },
                {
                    "id": "bronze",
                    "label": "Bronze · 19,90 €",
                    "sku": "BS-L247.03",
                    "price": 19.9,
                    "swatch": "linear-gradient(135deg,#e2a98a 0%,#b06a48 55%,#6e3b22 100%)",
                    "image": "photos/front-bronze.webp"
                }
            ]
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "note": "Gravurschild in Pokalfarbe, 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": 763,
        "addUrl": "/checkout/cart/add/product/763/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 4620,
            "font": 4621,
            "preview": 4622
        },
        "superAttribute": {
            "category": "color",
            "attributeId": 93,
            "byOption": {
                "gold": 5739,
                "silber": 5740,
                "bronze": 5741
            }
        }
    }
}
