{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "airo-wp/product-categories-grid",
  "version": "1.0.0",
  "title": "Product Categories Grid",
  "category": "airo-wp",
  "description": "Display WooCommerce product categories in a visual grid with images, names, and product counts. Requires WooCommerce.",
  "keywords": [
    "product",
    "categories",
    "grid",
    "woocommerce",
    "shop",
    "store",
    "ecommerce"
  ],
  "textdomain": "airo-wp",
  "icon": "products",
  "supports": {
    "anchor": true,
    "align": [
      "wide",
      "full"
    ],
    "html": false,
    "inserter": true,
    "color": {
      "background": true,
      "text": true,
      "gradients": true,
      "link": true,
      "__experimentalDefaultControls": {
        "background": true,
        "text": true
      }
    },
    "spacing": {
      "margin": true,
      "padding": true,
      "blockGap": true,
      "__experimentalDefaultControls": {
        "blockGap": true
      }
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "__experimentalDefaultControls": {
        "fontSize": true
      }
    },
    "shadow": true,
    "__experimentalBorder": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true,
      "__experimentalDefaultControls": {
        "radius": true
      }
    }
  },
  "attributes": {
    "align": {
      "type": "string",
      "default": "wide"
    },
    "categorySource": {
      "type": "string",
      "default": "all",
      "enum": [
        "all",
        "manual"
      ]
    },
    "selectedCategories": {
      "type": "array",
      "default": [],
      "items": {
        "type": "object"
      }
    },
    "excludeCategories": {
      "type": "array",
      "default": [],
      "items": {
        "type": "number"
      }
    },
    "columns": {
      "type": "number",
      "default": 3
    },
    "showProductCount": {
      "type": "boolean",
      "default": true
    },
    "showEmpty": {
      "type": "boolean",
      "default": false
    },
    "imageAspectRatio": {
      "type": "string",
      "default": "3/4"
    },
    "overlayPosition": {
      "type": "string",
      "default": "bottom-left",
      "enum": [
        "bottom-left",
        "center"
      ]
    }
  },
  "example": {
    "attributes": {
      "columns": 3
    }
  },
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "render": "file:./render.php"
}