Commit 67b6de1a90b for woocommerce

commit 67b6de1a90bb3804accb519eabc8405385f8af47
Author: Albert Juhé Lluveras <contact@albertjuhe.com>
Date:   Wed Nov 25 08:32:54 2026 +0100

    Add padding and margin support to Product Collection No results block (#71363)

    * Add padding and margin support to Product Collection No results block

    * Purple: Fix alignment and simplify block structure of Product Collection No results blocks

    * Add changelog files

diff --git a/docs/block-development/reference/block-references.md b/docs/block-development/reference/block-references.md
index ee52f96e687..4d337bd8830 100644
--- a/docs/block-development/reference/block-references.md
+++ b/docs/block-development/reference/block-references.md
@@ -1078,7 +1078,7 @@ The contents of this block will display when there are no products found.
 - **Name:** woocommerce/product-collection-no-results
 - **Category:** woocommerce
 - **Ancestor:** woocommerce/product-collection
-- **Supports:** align, color (background, gradients, link, text), email, interactivity (clientNavigation), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
+- **Supports:** align, color (background, gradients, link, text), email, interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~

 ## Product Description - woocommerce/product-description

diff --git a/plugins/woocommerce/changelog/update-product-collection-no-results-padding-margin b/plugins/woocommerce/changelog/update-product-collection-no-results-padding-margin
new file mode 100644
index 00000000000..5de7a23165b
--- /dev/null
+++ b/plugins/woocommerce/changelog/update-product-collection-no-results-padding-margin
@@ -0,0 +1,4 @@
+Significance: minor
+Type: add
+
+Add padding and margin support to Product Collection No results block
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/product-collection/inner-blocks/no-results/block.json b/plugins/woocommerce/client/blocks/assets/js/blocks/product-collection/inner-blocks/no-results/block.json
index 5f01654b5ed..78fefb81c53 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/product-collection/inner-blocks/no-results/block.json
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/product-collection/inner-blocks/no-results/block.json
@@ -20,6 +20,10 @@
 			"gradients": true,
 			"link": true
 		},
+		"spacing": {
+			"margin": true,
+			"padding": true
+		},
 		"typography": {
 			"fontSize": true,
 			"lineHeight": true,
diff --git a/themes/purple/changelog/update-product-collection-no-results-padding-margin b/themes/purple/changelog/update-product-collection-no-results-padding-margin
new file mode 100644
index 00000000000..2e3d9f4edac
--- /dev/null
+++ b/themes/purple/changelog/update-product-collection-no-results-padding-margin
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Fix alignment and simplify block structure of Product Collection No results blocks
diff --git a/themes/purple/patterns/product-grid-with-filters.php b/themes/purple/patterns/product-grid-with-filters.php
index d730f92ccf1..50324e37d22 100644
--- a/themes/purple/patterns/product-grid-with-filters.php
+++ b/themes/purple/patterns/product-grid-with-filters.php
@@ -177,13 +177,11 @@
 <!-- /wp:query-pagination --></div>
 <!-- /wp:group -->

-<!-- wp:woocommerce/product-collection-no-results -->
-<!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"left","flexWrap":"wrap"}} -->
-<div class="wp-block-group"><!-- wp:paragraph -->
+<!-- wp:woocommerce/product-collection-no-results {"style":{"spacing":{"padding":{"top":"var:preset|spacing|10"}}}} -->
+<!-- wp:paragraph -->
 <p><?php /* Translators: 1. is the start of a 'a' HTML element, 2. is the end of a 'a' HTML element, 3. is the start of a 'a' HTML element, 4. is the end of a 'a' HTML element */
 printf( esc_html__( 'No results found. You can try %1$sclearing any filters%2$s or head to our %3$sstore\'s home.%4$s', 'purple' ), '<a class="wc-link-clear-any-filters" href="' . esc_url( '#' ) . '">', '</a>', '<a class="wc-link-stores-home" href="' . esc_url( '#' ) . '">', '</a>' ); ?></p>
-<!-- /wp:paragraph --></div>
-<!-- /wp:group -->
+<!-- /wp:paragraph -->
 <!-- /wp:woocommerce/product-collection-no-results --></div>
 <!-- /wp:woocommerce/product-collection --></div>
 <!-- /wp:column --></div>
diff --git a/themes/purple/patterns/product-grid-without-filters.php b/themes/purple/patterns/product-grid-without-filters.php
index 40fd967c4d5..b35f4809bc1 100644
--- a/themes/purple/patterns/product-grid-without-filters.php
+++ b/themes/purple/patterns/product-grid-without-filters.php
@@ -52,12 +52,10 @@
 <!-- /wp:group -->

 <!-- wp:woocommerce/product-collection-no-results -->
-<!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"left","flexWrap":"wrap"}} -->
-<div class="wp-block-group"><!-- wp:paragraph -->
+<!-- wp:paragraph -->
 <p><?php /* Translators: 1. is the start of a 'a' HTML element, 2. is the end of a 'a' HTML element, 3. is the start of a 'a' HTML element, 4. is the end of a 'a' HTML element */
 printf( esc_html__( 'No results found. You can try %1$sclearing any filters%2$s or head to our %3$sstore\'s home.%4$s', 'purple' ), '<a class="wc-link-clear-any-filters" href="' . esc_url( '#' ) . '">', '</a>', '<a class="wc-link-stores-home" href="' . esc_url( '#' ) . '">', '</a>' ); ?></p>
-<!-- /wp:paragraph --></div>
-<!-- /wp:group -->
+<!-- /wp:paragraph -->
 <!-- /wp:woocommerce/product-collection-no-results --></div>
 <!-- /wp:woocommerce/product-collection --></div>
 <!-- /wp:group -->