/* Elementor — CX 产品分类网格 */

.cx-pcat-grid {
	--cx-pcat-cols: 6;
	--cx-pcat-gap: 20px;
	--cx-pcat-row-gap: 24px;
	display: grid;
	grid-template-columns: repeat(var(--cx-pcat-cols), minmax(0, 1fr));
	column-gap: var(--cx-pcat-gap);
	row-gap: var(--cx-pcat-row-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

.cx-pcat-header {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cx-pcat-header__title {
	margin: 0;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	line-height: 1.25;
}

.cx-pcat-header__subtitle {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: #5c5a58;
}

.cx-pcat-empty {
	margin: 0;
	padding: 24px;
	text-align: center;
	background: #fff5f0;
	border-radius: 8px;
	color: #5c5a58;
}

.cx-pcat-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	border-style: solid;
	border-width: 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cx-pcat-card__media,
.cx-pcat-card__img,
.cx-pcat-card__placeholder {
	box-sizing: border-box;
	max-width: 100%;
}

.cx-pcat-card:hover {
	text-decoration: none;
}

.cx-pcat-card__media {
	position: relative;
	overflow: hidden;
	background: #f5f0ee;
	border-style: solid;
	transition: border-color 0.2s ease;
}

.cx-pcat-grid--ratio-1-1 .cx-pcat-card__media {
	aspect-ratio: 1 / 1;
}

.cx-pcat-grid--ratio-4-3 .cx-pcat-card__media {
	aspect-ratio: 4 / 3;
}

.cx-pcat-grid--ratio-3-4 .cx-pcat-card__media {
	aspect-ratio: 3 / 4;
}

.cx-pcat-grid--ratio-16-9 .cx-pcat-card__media {
	aspect-ratio: 16 / 9;
}

.cx-pcat-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.cx-pcat-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #f0e8e4, #e8ddd8);
}

.cx-pcat-card__body {
	flex: 1;
}

.cx-pcat-card__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	transition: color 0.15s ease;
}

/* Elementor 响应式列数由控件注入 --cx-pcat-cols；以下为编辑器预览兜底 */
@media (max-width: 1024px) {
	.elementor-element .cx-pcat-grid {
		/* tablet 由 Elementor responsive control 覆盖 */
	}
}

@media (max-width: 767px) {
	.elementor-element .cx-pcat-grid {
		/* mobile 由 Elementor responsive control 覆盖 */
	}
}
