{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-S-M4",
        "name": "Marmorsockel in Schwarz mit Gravurschild",
        "type": "marble-base",
        "basePrice": 6.6,
        "inclLine": "Gravurschild und Wunschtext inklusive"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/sockelsm4/",
    "layers": [
        {
            "id": "photo",
            "type": "option",
            "category": "color"
        },
        {
            "id": "textSmall",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5,
                "y": 0.54,
                "maxWidthPx": 506,
                "maxHeightPx": 150
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 34,
                "color": "#1a1a1a"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "5520",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Quadratischer Marmorsockel, Kantenlänge x Kantenlänge x Höhe",
            "options": [
                {
                    "id": "5520",
                    "label": "55 x 55 x 20 mm · 6,60 €",
                    "sku": "BS-S-M410",
                    "price": 6.6
                },
                {
                    "id": "6520",
                    "label": "65 x 65 x 20 mm · 7,10 €",
                    "sku": "BS-S-M411",
                    "price": 7.1
                },
                {
                    "id": "5530",
                    "label": "55 x 55 x 30 mm · 7,60 €",
                    "sku": "BS-S-M420",
                    "price": 7.6
                },
                {
                    "id": "6530",
                    "label": "65 x 65 x 30 mm · 8,10 €",
                    "sku": "BS-S-M421",
                    "price": 8.1
                },
                {
                    "id": "7530",
                    "label": "75 x 75 x 30 mm · 8,60 €",
                    "sku": "BS-S-M422",
                    "price": 8.6
                },
                {
                    "id": "10040",
                    "label": "100 x 100 x 40 mm · 11,60 €",
                    "sku": "BS-S-M434",
                    "price": 11.6
                },
                {
                    "id": "13070",
                    "label": "130 x 130 x 70 mm · 18,60 €",
                    "sku": "BS-S-M441",
                    "price": 18.6
                }
            ]
        },
        {
            "id": "color",
            "title": "Farbe Gravurschild",
            "type": "swatch-image",
            "default": "gold",
            "defaultCounts": true,
            "alwaysOpen": true,
            "required": true,
            "options": [
                {
                    "id": "gold",
                    "label": "Gold",
                    "sku": "G",
                    "swatch": "linear-gradient(135deg,#f3dc8a 0%,#d4a537 55%,#9a6d1c 100%)",
                    "image": "photos/front-gold.webp"
                },
                {
                    "id": "silber",
                    "label": "Silber",
                    "sku": "S",
                    "swatch": "linear-gradient(135deg,#f2f3f5 0%,#c3c7cc 55%,#8a9096 100%)",
                    "image": "photos/front-silber.webp"
                },
                {
                    "id": "bronze",
                    "label": "Bronze",
                    "sku": "B",
                    "swatch": "linear-gradient(135deg,#e2a98a 0%,#b06a48 55%,#6e3b22 100%)",
                    "image": "photos/front-bronze.webp"
                }
            ]
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "alwaysOpen": true,
            "default": "text",
            "defaultCounts": true,
            "note": "Gravurschild vorne am Sockel, Gravur 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": 90,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 1594,
        "addUrl": "/checkout/cart/add/product/1594/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 6774,
            "font": 6775,
            "preview": 6776,
            "color": 6773
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "5520": 6037,
                "6520": 6038,
                "5530": 6039,
                "6530": 6040,
                "7530": 6041,
                "10040": 6042,
                "13070": 6043
            }
        }
    }
}
