{
    "schemaVersion": 2,
    "product": {
        "sku": "FS-8471",
        "name": "Fußball Pokale 8471",
        "type": "figure-plate",
        "basePrice": 7.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Gravurschild in Pokalfarbe mit Wunschtext und Logo inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/pkfs8471/",
    "layers": [
        {
            "id": "figure",
            "type": "option",
            "category": "color"
        },
        {
            "id": "logoPlate",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.33082,
                        "y": 0.77034
                    },
                    {
                        "x": 0.41267,
                        "y": 0.85219
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4697,
                "y": 0.8112,
                "maxWidthPx": 203,
                "maxHeightPx": 61,
                "quad": [
                    [
                        233.9,
                        569.1
                    ],
                    [
                        470.8,
                        569.1
                    ],
                    [
                        470.8,
                        647.8
                    ],
                    [
                        233.9,
                        647.8
                    ]
                ]
            },
            "font": {
                "sizePx": 24,
                "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.5186,
                "y": 0.8112,
                "maxWidthPx": 120,
                "maxHeightPx": 61,
                "quad": [
                    [
                        319,
                        569.1
                    ],
                    [
                        459,
                        569.1
                    ],
                    [
                        459,
                        647.8
                    ],
                    [
                        319,
                        647.8
                    ]
                ]
            },
            "font": {
                "sizePx": 24,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            },
            "hideWhen": {
                "category": "logoMode",
                "equals": "none"
            }
        }
    ],
    "categories": [
        {
            "id": "color",
            "title": "Farbe",
            "type": "swatch-image",
            "default": "gold",
            "defaultCounts": true,
            "alwaysOpen": true,
            "required": true,
            "note": "Gleicher Pokal in 3 Farben, 14 cm hoch, Gravurschild in Pokalfarbe",
            "options": [
                {
                    "id": "gold",
                    "label": "Gold · 7,90 €",
                    "sku": "FS-8471-X",
                    "price": 7.9,
                    "swatch": "linear-gradient(135deg,#f3dc8a 0%,#d4a537 55%,#9a6d1c 100%)",
                    "image": "photos/front-gold.webp"
                },
                {
                    "id": "silber",
                    "label": "Silber · 7,90 €",
                    "sku": "FS-8472",
                    "price": 7.9,
                    "swatch": "linear-gradient(135deg,#f2f3f5 0%,#c3c7cc 55%,#8a9096 100%)",
                    "image": "photos/front-silber.webp"
                },
                {
                    "id": "bronze",
                    "label": "Bronze · 7,90 €",
                    "sku": "FS-8473",
                    "price": 7.9,
                    "swatch": "linear-gradient(135deg,#e2a98a 0%,#b06a48 55%,#6e3b22 100%)",
                    "image": "photos/front-bronze.webp"
                }
            ]
        },
        {
            "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": "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": 794,
        "addUrl": "/checkout/cart/add/product/794/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 6937,
            "font": 6938,
            "preview": 6940,
            "logo": 6939
        },
        "superAttribute": {
            "category": "color",
            "attributeId": 93,
            "byOption": {
                "gold": 5739,
                "silber": 5740,
                "bronze": 5741
            }
        }
    }
}
