/*
 Theme Name:   Astra Child
 Theme URI:    https://developer.wordpress.org/themes/advanced-topics/child-themes/
 Description:  Astra Child Theme for By The Birch
 Author:       By The Birch
 Author URI:   https://bythebirch.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
*/

/* Add custom styles below this line */

/* Fix squished product images on search results pages.
   Search uses the generic theme loop instead of the WooCommerce product
   grid, so thumbnails lose their aspect ratio. Restore it with object-fit. */
.search-results ul.products li.product img,
.search-results .site-content img.wp-post-image,
.search-results .site-content img.attachment-woocommerce_thumbnail {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
	height: auto;
}

/* Hide SKU, category, and tags visually but keep in DOM for SEO */
.product_meta .sku_wrapper,
.product_meta .posted_in,
.product_meta .tagged_as {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
