/*
Theme Name: Medicalequipment Child
Theme URI: https://www.wufeng-rs.com.tw/
Description: 五鋒企業子主題。所有修改都放這裡，不直接改 medicalequipment 原主題。
Author: Nelson
Template: medicalequipment
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medicalequipment-child
*/

/* 覆蓋樣式寫在這裡。父主題主要外觀在 medicalequipment-custom-style.css 與 style1.css。 */

/* 部落格列表：摘要最多顯示 3 行，多的以 … 截斷 */
.cv-blog-page .cv-blog-data > p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

/*
 * 首頁「產品類別」卡片（medicalequipment_categories_box 小工具）
 * 父主題的 .ps-shop-categry-inner 是「圖在左、字在右」的橫向 flex，左側留 50px。
 * 這裡的分類圖是 1024x1024，圖會吃掉整張卡寬，標題被擠成一字一行。
 * 原本在父主題「自訂 CSS」裡修好的設定，換成子主題後沒有帶過來，所以在子主題重建：
 * 圖在上、標題在下置中，標題橫排。
 */
.ps-shop-categry-box .ps-shop-categry-inner {
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	padding: 30px 20px;
	height: calc(100% - 30px);
}
.ps-shop-categry-box .ps-shop-categry {
	height: 100%;
}
.ps-shop-categry-box .ps-shop-categry-inner img {
	display: block;
	width: 100%;
	max-width: 160px;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	flex-shrink: 0;
}
.ps-shop-categry-box .ps-shop-categry-inner p {
	padding-left: 0;
	margin: 16px 0 0;
	line-height: 1.4;
	writing-mode: horizontal-tb;
	white-space: normal;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
@media (max-width: 575px) {
	.ps-shop-categry-box .ps-shop-categry-inner img {
		max-width: 120px;
	}
}
