{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-E",
        "name": "Embleme für Pokale und Medaillen",
        "type": "logo-emblem",
        "basePrice": 0.39,
        "inclLine": "Motiv oder Logo inklusive &middot; selbstklebend"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/logo-e/",
    "layers": [
        {
            "id": "photo",
            "type": "option",
            "category": "color"
        },
        {
            "id": "motifSmall",
            "type": "option",
            "category": "motif",
            "transform": {
                "cx": 414.7,
                "cy": 212.7,
                "scale": 0.7932
            }
        },
        {
            "id": "logoSmall",
            "type": "upload",
            "category": "logo",
            "clip": {
                "shape": "circle",
                "fromLayer": "motifSmall",
                "circle": {
                    "cx": 551.5,
                    "cy": 513.5,
                    "d": 297.5
                }
            }
        }
    ],
    "categories": [
        {
            "id": "color",
            "title": "Farbe",
            "type": "swatch-image",
            "default": "gold",
            "defaultCounts": true,
            "alwaysOpen": true,
            "required": true,
            "note": "Selbstklebendes Emblem in Gold, Silber oder Bronze",
            "options": [
                {
                    "id": "gold",
                    "label": "Gold",
                    "sku": "BS-E-01",
                    "swatch": "linear-gradient(135deg,#f3dc8a 0%,#d4a537 55%,#9a6d1c 100%)",
                    "image": "photos/color-gold.webp"
                },
                {
                    "id": "silber",
                    "label": "Silber",
                    "sku": "BS-E-02",
                    "swatch": "linear-gradient(135deg,#f2f3f5 0%,#c3c7cc 55%,#8a9096 100%)",
                    "image": "photos/color-silber.webp"
                },
                {
                    "id": "bronze",
                    "label": "Bronze",
                    "sku": "BS-E-03",
                    "swatch": "linear-gradient(135deg,#e2a98a 0%,#b06a48 55%,#6e3b22 100%)",
                    "image": "photos/color-bronze.webp"
                }
            ]
        },
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "25",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Selbstklebendes Emblem, 25 oder 50 mm Durchmesser",
            "options": [
                {
                    "id": "25",
                    "label": "25 mm ⌀ · 0,39 €",
                    "sku": "BS-E-25",
                    "price": 0.39
                },
                {
                    "id": "50",
                    "label": "50 mm ⌀ · 0,59 €",
                    "sku": "BS-E-50",
                    "price": 0.59
                }
            ]
        },
        {
            "id": "motifGroup",
            "title": "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": "Motiv",
            "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"
        }
    ],
    "cart": {
        "productId": 1585,
        "addUrl": "/checkout/cart/add/product/1585/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "preview": 6790,
            "motif": 6787,
            "logo": 6789,
            "color": 6788
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "25": 6044,
                "50": 6045
            }
        }
    }
}
