{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-509",
        "name": "Glastrophäen W509",
        "type": "glass-emblem",
        "basePrice": 15.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Emblem, Gravurschild und Wunschtext inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/gew509/",
    "layers": [
        {
            "id": "photo",
            "type": "option",
            "category": "size"
        },
        {
            "id": "overlay",
            "type": "option",
            "category": "color"
        },
        {
            "id": "motifSmall",
            "type": "option",
            "category": "motif",
            "transform": {
                "cx": 289.8,
                "cy": 198,
                "scale": 0.4791
            }
        },
        {
            "id": "logoSmall",
            "type": "upload",
            "category": "logo",
            "clip": {
                "shape": "circle",
                "fromLayer": "motifSmall",
                "circle": {
                    "cx": 551.5,
                    "cy": 513.5,
                    "d": 278.8
                }
            }
        },
        {
            "id": "textSmall",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5007,
                "y": 0.5953,
                "maxWidthPx": 207,
                "maxHeightPx": 101
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 20
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "110",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Glasform in 5 Höhen",
            "options": [
                {
                    "id": "110",
                    "label": "11 cm · 15,90 €",
                    "sku": "BS-W509",
                    "price": 15.9,
                    "image": "photos/front.webp"
                },
                {
                    "id": "130",
                    "label": "13 cm · 17,90 €",
                    "sku": "BS-W510",
                    "price": 17.9,
                    "image": "photos/front.webp"
                },
                {
                    "id": "160",
                    "label": "16 cm · 20,90 €",
                    "sku": "BS-W511",
                    "price": 20.9,
                    "image": "photos/front.webp"
                },
                {
                    "id": "185",
                    "label": "18,5 cm · 22,90 €",
                    "sku": "BS-W512",
                    "price": 22.9,
                    "image": "photos/front.webp"
                },
                {
                    "id": "210",
                    "label": "21 cm · 25,90 €",
                    "sku": "BS-W513",
                    "price": 25.9,
                    "image": "photos/front.webp"
                }
            ]
        },
        {
            "id": "color",
            "title": "Farbe Emblem + Schild",
            "type": "swatch-image",
            "default": "gold",
            "defaultCounts": true,
            "alwaysOpen": true,
            "required": true,
            "note": "Emblem mit Motiv und Gravurschild in Gold, Silber oder Bronze, ohne Aufpreis",
            "options": [
                {
                    "id": "gold",
                    "label": "Gold",
                    "sku": "BS-DI7004-01",
                    "swatch": "linear-gradient(135deg,#f3dc8a 0%,#d4a537 55%,#9a6d1c 100%)",
                    "image": "photos/overlay-gold.webp"
                },
                {
                    "id": "silber",
                    "label": "Silber",
                    "sku": "BS-DI7004-02",
                    "swatch": "linear-gradient(135deg,#f2f3f5 0%,#c3c7cc 55%,#8a9096 100%)",
                    "image": "photos/overlay-silber.webp"
                },
                {
                    "id": "bronze",
                    "label": "Bronze",
                    "sku": "BS-DI7004-03",
                    "swatch": "linear-gradient(135deg,#e2a98a 0%,#b06a48 55%,#6e3b22 100%)",
                    "image": "photos/overlay-bronze.webp"
                }
            ]
        },
        {
            "id": "motifGroup",
            "title": "Emblem-Motiv",
            "type": "dropdown",
            "options": [
                {
                    "id": "beliebte-motive",
                    "label": "Beliebte Motive"
                },
                {
                    "id": "zahlen-platzierungen-jubilaeen",
                    "label": "Zahlen - Platzierungen - Jubiläen"
                },
                {
                    "id": "allgemeine-motive",
                    "label": "Allgemeine Motive"
                },
                {
                    "id": "american-football-rugby",
                    "label": "American Football & Rugby"
                },
                {
                    "id": "angeln",
                    "label": "Angeln"
                },
                {
                    "id": "baseball-cricket",
                    "label": "Baseball & Cricket"
                },
                {
                    "id": "basketball",
                    "label": "Basketball"
                },
                {
                    "id": "billard",
                    "label": "Billard"
                },
                {
                    "id": "bogenschuetze",
                    "label": "Bogenschütze"
                },
                {
                    "id": "boule-petanque",
                    "label": "Boule & Petanque"
                },
                {
                    "id": "bowling-kegeln",
                    "label": "Bowling & Kegeln"
                },
                {
                    "id": "boxen",
                    "label": "Boxen"
                },
                {
                    "id": "darts",
                    "label": "Darts"
                },
                {
                    "id": "esports-gaming",
                    "label": "eSports & Gaming"
                },
                {
                    "id": "feuerwehr",
                    "label": "Feuerwehr"
                },
                {
                    "id": "fussball",
                    "label": "Fußball"
                },
                {
                    "id": "golf-co",
                    "label": "Golf & Co"
                },
                {
                    "id": "handball",
                    "label": "Handball"
                },
                {
                    "id": "hockey-co",
                    "label": "Hockey & Co"
                },
                {
                    "id": "hundesport",
                    "label": "Hundesport"
                },
                {
                    "id": "kampfsport",
                    "label": "Kampfsport"
                },
                {
                    "id": "karneval",
                    "label": "Karneval"
                },
                {
                    "id": "kicker",
                    "label": "Kicker"
                },
                {
                    "id": "kinder",
                    "label": "Kinder"
                },
                {
                    "id": "kraftsport",
                    "label": "Kraftsport"
                },
                {
                    "id": "laufsport",
                    "label": "Laufsport"
                },
                {
                    "id": "leichtathletik-gymnastik",
                    "label": "Leichtathletik & Gymnastik"
                },
                {
                    "id": "motorsport",
                    "label": "Motorsport"
                },
                {
                    "id": "musik-tanzen",
                    "label": "Musik & Tanzen"
                },
                {
                    "id": "pferdesport",
                    "label": "Pferdesport"
                },
                {
                    "id": "poker-co",
                    "label": "Poker & Co"
                },
                {
                    "id": "radsport",
                    "label": "Radsport"
                },
                {
                    "id": "schach",
                    "label": "Schach"
                },
                {
                    "id": "schuetzen",
                    "label": "Schützen"
                },
                {
                    "id": "schwimmen",
                    "label": "Schwimmen"
                },
                {
                    "id": "tauben",
                    "label": "Tauben"
                },
                {
                    "id": "tennis-co",
                    "label": "Tennis & Co"
                },
                {
                    "id": "volleyball",
                    "label": "Volleyball"
                },
                {
                    "id": "wintersport",
                    "label": "Wintersport"
                },
                {
                    "id": "sonstiges",
                    "label": "Sonstiges"
                }
            ],
            "featured": [
                "beliebte-motive",
                "zahlen-platzierungen-jubilaeen",
                "fussball",
                "handball",
                "basketball",
                "volleyball",
                "tennis-co",
                "laufsport"
            ]
        },
        {
            "id": "motif",
            "title": "Emblem",
            "type": "image-grid",
            "visibleWhen": {
                "category": "motifGroup",
                "isSet": true
            },
            "groupBy": "motifGroup",
            "exclusiveWith": "logo",
            "optionsFrom": "shared/motifs.json",
            "collapseOnSelect": true
        },
        {
            "id": "logo",
            "title": "Eigenes Logo als Emblem (optional)",
            "type": "fileUpload",
            "accept": [
                "png",
                "jpg",
                "jpeg",
                "pdf"
            ],
            "maxSizeMb": 10,
            "exclusiveWith": "motif"
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "alwaysOpen": true,
            "default": "text",
            "defaultCounts": true,
            "note": "Gravurschild in der gewählten Farbe, 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": 105,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 1476,
        "addUrl": "/checkout/cart/add/product/1476/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 6127,
            "font": 6128,
            "preview": 6130,
            "motif": 6125,
            "logo": 6129,
            "color": 6126
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "110": 5996,
                "130": 5993,
                "160": 5991,
                "185": 6013,
                "210": 5987
            }
        }
    }
}
