/* Rounded catalog cards on shop/category archives; single-product layouts stay native. */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product {
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #dce6e5;
    border-radius: var(--icy-radius, 18px);
    background: #fff;
    box-shadow: var(--icy-shadow, 0 3px 9px rgb(14 60 61 / 17%));
    transition: box-shadow .2s ease;
}
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product:hover { box-shadow: 0 7px 20px rgb(14 60 61 / 20%); }
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product-category { padding: 0; }
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product-category > a { display: block; width: 100%; }
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product-category > a > img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0 !important; }
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product:not(.product-category) { padding: 20px; }
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product:not(.product-category) :is(.astra-shop-thumbnail-wrap, .astra-shop-summary-wrap) { background: transparent; }
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product:not(.product-category) .astra-shop-summary-wrap { padding: 14px 0 0; }
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product:not(.product-category) .astra-shop-thumbnail-wrap img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: contain; border-radius: 0 !important; }
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product a:focus-visible { outline: 3px solid var(--ast-global-color-0); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
    body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product { transition: none; }
}

/* Center the title and action inside product cards. */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product:not(.product-category),
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product:not(.product-category) .astra-shop-summary-wrap { text-align: center; }
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product:not(.product-category) .button { float: none; align-self: center; margin-inline: auto; }

/* Product tiles show only the image, title and action, without a category label. */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product:not(.product-category) .ast-woo-product-category { display: none; }

/* Category tiles show the category name without a product count. */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #content ul.products li.product-category .woocommerce-loop-category__title .count { display: none; }
