{
    "schemaVersion": 2,
    "product": {
        "sku": "FS-A40-NQ01",
        "name": "Fairplay-Medaillen \"Ehre durch Fairness\"",
        "type": "medal-embossed",
        "basePrice": 2.19,
        "tiers": [
            {
                "qty": 100,
                "pct": 5
            },
            {
                "qty": 200,
                "pct": 10
            },
            {
                "qty": 300,
                "pct": 15
            },
            {
                "qty": 500,
                "pct": 20
            }
        ],
        "inclLine": "Band und Wunschtext inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/fsa40nq01/",
    "layers": [
        {
            "id": "base",
            "type": "static",
            "image": "shared/base-ribbon.png",
            "hideWhen": {
                "category": "ribbon",
                "isSet": true
            },
            "transform": {
                "cx": 353,
                "cy": 406,
                "scale": 1.087
            }
        },
        {
            "id": "back",
            "type": "option",
            "category": "color",
            "imageKey": "backImage",
            "transform": {
                "cx": 236,
                "cy": 470.7,
                "scale": 0.758
            }
        },
        {
            "id": "color",
            "type": "option",
            "category": "color",
            "transform": {
                "cx": 406.5,
                "cy": 382.3,
                "scale": 0.7851
            }
        },
        {
            "id": "ribbon",
            "type": "option",
            "category": "ribbon",
            "transform": {
                "cx": 353,
                "cy": 406,
                "scale": 1.087
            }
        },
        {
            "id": "logo",
            "type": "upload",
            "category": "logo",
            "clip": {
                "shape": "circle",
                "fromLayer": "back",
                "circle": {
                    "cx": 381,
                    "cy": 392.5,
                    "d": 300
                }
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.3204,
                "y": 0.6502,
                "maxWidthPx": 220,
                "maxHeightPx": 163
            },
            "font": {
                "sizePx": 20,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            }
        }
    ],
    "categories": [
        {
            "id": "color",
            "title": "Farbauswahl",
            "type": "swatch-image",
            "required": true,
            "default": "gold",
            "options": [
                {
                    "id": "gold",
                    "label": "Gold in 50 mm",
                    "sku": "FS-A40-NQ01.D",
                    "image": "photos/gold-front.webp",
                    "swatch": "gold",
                    "backImage": "photos/gold-back.webp"
                }
            ]
        },
        {
            "id": "ribbon",
            "title": "Bandauswahl",
            "type": "swatch-image",
            "required": true,
            "collapseOnSelect": true,
            "allowNone": true,
            "noneLabel": "Ohne Band",
            "optionsFrom": "shared/ribbons.json",
            "note": "Bandbreite: 22 mm",
            "options": []
        },
        {
            "id": "engravingMode",
            "title": "Rückseitenbeschriftung",
            "type": "radio",
            "options": [
                {
                    "id": "none",
                    "label": "ohne Wunschtext"
                },
                {
                    "id": "text",
                    "label": "mit Wunschtext"
                },
                {
                    "id": "logo",
                    "label": "Rückseite mit Logo"
                }
            ],
            "alwaysOpen": 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": 105,
            "showCounter": true
        },
        {
            "id": "logo",
            "title": "Rückseiten-Logo hochladen",
            "type": "fileUpload",
            "accept": [
                "png",
                "jpg",
                "jpeg",
                "pdf"
            ],
            "maxSizeMb": 10,
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "logo"
            }
        }
    ],
    "cart": {
        "productId": 229,
        "addUrl": "/checkout/cart/add/product/229/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 2641,
            "font": 2642,
            "preview": 2644,
            "logo": 2643,
            "ribbon": 2640,
            "premium": 2645
        },
        "superAttribute": {
            "category": "color",
            "attributeId": 93,
            "byOption": {
                "gold": 5739
            }
        },
        "premiumValueId": 160
    }
}
