{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "apiVersion": 3,
    "name": "aieo/free-shipping-pdp",
    "version": "1.0.0",
    "title": "AIEO Free Shipping (PDP bar)",
    "category": "woocommerce",
    "icon": "cart",
    "description": "Per-product free-shipping progress bar. Reads threshold + messages + appearance from AIEO_DMM_Free_Shipping (admin: DMM → Free Shipping + COD) and the current cart subtotal from WC()->cart. Self-hides when the operator's `display_product` setting is off, when the threshold is 0, when the product is on the no-free-shipping exclusion list, or when the cart is empty AND the operator chose to suppress the empty-cart message. Updates client-side on every cart change via a tiny REST poll.",
    "keywords": ["aieo", "free-shipping", "pdp", "progress-bar", "upsell"],
    "ancestor": ["core/template", "core/post-template", "woocommerce/single-product"],
    "supports": {
        "html": false,
        "align": false,
        "spacing": { "margin": true, "padding": true }
    },
    "render": "file:./render.php",
    "viewScript": "file:./view.js",
    "style": "file:./style.css",
    "textdomain": "ai-eshop-optimizer"
}
