{
    "schemaVersion": 2,
    "product": {
        "sku": "CP-TA",
        "name": "Transparente Rückseitenbeschriftung für Medaillen",
        "type": "accessory",
        "basePrice": 0.39,
        "inclLine": "Transparenter Aufkleber, Ihr Wunschtext inklusive"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/cpta/",
    "layers": [
        {
            "id": "photo",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5,
                "y": 0.54,
                "maxWidthPx": 320,
                "maxHeightPx": 230
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.15,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 34,
                "color": "#1a1a1a"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "25",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Aufkleber für die Rückseite, Größe = Durchmesser der Medaille",
            "options": [
                {
                    "id": "25",
                    "label": "Ø 25 mm · 0,39 €",
                    "sku": "CP-TA-25",
                    "price": 0.39
                },
                {
                    "id": "30",
                    "label": "Ø 30 mm · 0,39 €",
                    "sku": "CP-TA-30",
                    "price": 0.39
                },
                {
                    "id": "40",
                    "label": "Ø 40 mm · 0,39 €",
                    "sku": "CP-TA-40",
                    "price": 0.39
                },
                {
                    "id": "50",
                    "label": "Ø 50 mm · 0,39 €",
                    "sku": "CP-TA-50",
                    "price": 0.39
                }
            ]
        },
        {
            "id": "engravingMode",
            "title": "Beschriftung",
            "type": "radio",
            "alwaysOpen": true,
            "default": "text",
            "defaultCounts": true,
            "note": "Ihr Text wird auf den transparenten Aufkleber gedruckt",
            "options": [
                {
                    "id": "text",
                    "label": "mit 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": 90,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 1590,
        "addUrl": "/checkout/cart/add/product/1590/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 7011,
            "font": 7012,
            "preview": 7013
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "25": 6073,
                "30": 6074,
                "40": 6075,
                "50": 6059
            }
        }
    }
}
