/**
 * Teco 产品分类网格：与 WooCommerce 类名一致，但未必加载 storefront / wc 列表基础样式时的兜底。
 */

.elementor-widget-teco-product-categories .woocommerce ul.products,
.elementor-widget-teco-product-categories ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
}

.elementor-widget-teco-product-categories .woocommerce ul.products li.product-category,
.elementor-widget-teco-product-categories ul.products li.product-category {
	list-style: none;
	margin: 0;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.elementor-widget-teco-product-categories ul.products li.product-category > a {
	display: block;
	max-width: 100%;
	box-sizing: border-box;
}

/* 配图区：在列宽内缩放，不撑破父级网格单元 */
.elementor-widget-teco-product-categories .teco-pc-category-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	box-sizing: border-box;
}

.elementor-widget-teco-product-categories .teco-pc-category-card__media > img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

/* 浏览器对 <mark> 的默认高亮（多为黄底）；数量样式交给主题 / Elementor「数量」颜色 */
.elementor-widget-teco-product-categories .woocommerce-loop-category__title mark.count {
	display: inline;
	padding: 0;
	background: none;
	background-color: transparent;
}
