/*
 * Task GD-13 — hàng thẻ danh mục con ở đầu trang danh mục cha (vd "Thép hình"
 * → H/I/U/V). (Nút "Xem thêm sản phẩm" của bản đầu đã thay bằng số trang trong khối — thp-product-grid.css.) Chỉ nạp ở trang
 * danh mục sản phẩm (taxonomy-danh_muc_sp.php).
 */
.thp-cat-tiles {
	margin: 0 0 20px;
}
.thp-cat-tiles__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.thp-cat-tile {
	display: block;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
	text-decoration: none;
	overflow: hidden;
	transition: box-shadow .2s;
}
.thp-cat-tile:hover,
.thp-cat-tile:focus {
	box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
	text-decoration: none;
}
.thp-cat-tile__thumb {
	aspect-ratio: 1 / 1;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.thp-cat-tile__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.thp-cat-tile__title {
	display: block;
	padding: 10px 12px 14px;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #233179;
	line-height: 1.3;
	text-align: center;
}

@media (max-width: 767px) {
	.thp-cat-tiles__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
