/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Keep every product card image on a consistent square canvas. */
body.woocommerce .wd-products .wd-product-thumb {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

body.woocommerce .wd-products .wd-product-thumb :is(.wd-product-img-link, .wd-product-img-hover) {
	display: block;
	height: 100%;
}

body.woocommerce .wd-products .wd-product-thumb :is(.wd-product-img-link, .wd-product-img-hover) picture,
body.woocommerce .wd-products .wd-product-thumb :is(.wd-product-img-link, .wd-product-img-hover) img {
	display: block;
	width: 100%;
	height: 100%;
}

body.woocommerce .wd-products .wd-product-thumb :is(.wd-product-img-link, .wd-product-img-hover) img {
	object-fit: cover;
	object-position: center;
}

/* The archive layout contains the category description but hides it at every breakpoint. */
body.woocommerce .wd-shop-desc.elementor-hidden-desktop.elementor-hidden-tablet.elementor-hidden-mobile {
	display: block;
	margin: 0 0 24px;
}

body.woocommerce .wd-shop-desc .term-description {
	max-width: 780px;
	line-height: 1.6;
}

/* Category titles sit over photographs and need a stable readable contrast. */
body.woocommerce .wd-cat.cat-design-default .wd-cat-content.hover-mask {
	background: linear-gradient(to top, rgb(0 0 0 / 72%), rgb(0 0 0 / 8%) 70%);
}

body.woocommerce .wd-cat.cat-design-default .wd-entities-title,
body.woocommerce .wd-cat.cat-design-default .wd-entities-title a,
body.woocommerce .wd-cat.cat-design-default .wd-cat-count {
	color: #fff;
	text-shadow: 0 1px 2px rgb(0 0 0 / 72%);
}
