{
    "schemaVersion": 2,
    "product": {
        "sku": "FS-6095",
        "name": "Holz Etui für Medaillen",
        "type": "accessory",
        "basePrice": 12.9,
        "inclLine": "Lasergravur von Logo und Wunschtext inklusive"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/holz6095/",
    "layers": [
        {
            "id": "photo",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "logoLid",
            "type": "upload",
            "category": "logo",
            "laser": "#d4b6aa",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.36667,
                        "y": 0.22667
                    },
                    {
                        "x": 0.63333,
                        "y": 0.49333
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5,
                "y": 0.6533,
                "maxWidthPx": 420,
                "maxHeightPx": 150
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.15,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 36,
                "color": "#d4b6aa"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "50",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Holz-Etui für eine Medaille mit Ø 50 mm, Deckel mit Lasergravur",
            "options": [
                {
                    "id": "50",
                    "label": "Ø 50 mm · 12,90 €",
                    "sku": "FS-6095-X",
                    "price": 12.9
                }
            ]
        },
        {
            "id": "logo",
            "title": "Ihr Logo (Lasergravur, optional)",
            "type": "fileUpload",
            "accept": [
                "png",
                "jpg",
                "jpeg",
                "pdf"
            ],
            "maxSizeMb": 10
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "alwaysOpen": true,
            "default": "text",
            "defaultCounts": true,
            "note": "Wunschtext unter dem Logo, Lasergravur inklusive",
            "options": [
                {
                    "id": "text",
                    "label": "mit Wunschtext"
                },
                {
                    "id": "none",
                    "label": "ohne 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": 60,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 1580,
        "addUrl": "/checkout/cart/add/product/1580/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 7014,
            "font": 7015,
            "preview": 7017,
            "logo": 7016
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "50": 6059
            }
        }
    }
}
