backend:
  name: git-gateway
  repo: sandrososa/monster_cookies
  branch: main

media_folder: "public/products"
public_folder: "/products"

collections:
  - name: "products"
    label: "Cookie Products"
    folder: "src/content/products"
    create: true
    slug: "{{slug}}"
    fields:
      - { label: "Title", name: "title", widget: "string" }
      - { label: "Slug", name: "slug", widget: "string" }
      - { label: "SKU", name: "sku", widget: "string" }
      - { label: "Price ($)", name: "price", widget: "number", value_type: "float" }
      - { label: "Compare At Price ($)", name: "compareAtPrice", widget: "number", value_type: "float", required: false }
      - { label: "Category", name: "category", widget: "select", options: ["cookies", "bakery", "boxes", "merch", "drinks"], default: "cookies" }
      - { label: "Main Image", name: "image", widget: "image" }
      - { label: "Gallery", name: "gallery", widget: "list", field: { label: "Image", name: "image", widget: "image" } }
      - { label: "Short Description", name: "short", widget: "string" }
      - { label: "Body Description", name: "body", widget: "markdown" }
      - { label: "Ingredients", name: "ingredients", widget: "list" }
      - { label: "Allergens", name: "allergens", widget: "list" }
      - { label: "Calories", name: "calories", widget: "number", value_type: "int" }
      - { label: "Protein (g)", name: "protein", widget: "number", value_type: "int" }
      - { label: "Weight", name: "weight", widget: "string", default: "6 oz" }
      - { label: "Featured", name: "featured", widget: "boolean", default: false }
      - { label: "Bestseller", name: "bestseller", widget: "boolean", default: false }
      - { label: "New", name: "new", widget: "boolean", default: false }
      - { label: "Available", name: "available", widget: "boolean", default: true }
      - { label: "Stock Count", name: "stock", widget: "number", value_type: "int", default: 100 }
      - { label: "Tags", name: "tags", widget: "list" }
      - { label: "SEO Title", name: "seoTitle", widget: "string" }
      - { label: "SEO Description", name: "seoDescription", widget: "string" }
      - { label: "Sort Order", name: "sortOrder", widget: "number", value_type: "int", default: 0 }
