/* ─── Product Categories Catalog ──────────────────────────────────────────── */

.pcat-wrapper {
	padding: 64px 0;
	box-sizing: border-box;
}

/* ─── Term Title Bar (shown below the banner section) ───────────────────── */

.pcat-term-title-bar {
	padding: 32px 0 0;
}

.pcat-term-title {
	font-size: 36px;
	font-weight: 700;
	color: #0b183e;
	line-height: 1.2;
	margin: 0;
	text-align: center;
}

/* ─── Archive Header (output by template, not shortcode) ─────────────────── */

.pcat-header {
	text-align: center;
	margin-bottom: 56px;
}

.pcat-header__title {
	font-size: 48px;
	font-weight: 700;
	color: #0b183e;
	line-height: 1.2;
	margin: 0 0 16px 0;
}

.pcat-header__desc {
	font-size: 18px;
	color: #666666;
	line-height: 1.8;
	max-width: 640px;
	margin: 0 auto;
}

/* ─── Grid ────────────────────────────────────────────────────────────────── */

.pcat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	align-items: stretch;
}

/* ─── Card ────────────────────────────────────────────────────────────────── */

.pcat-item {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 24px;
	box-sizing: border-box;
}

/* ─── Left Column (image + more detail button) ───────────────────────────── */

.pcat-left {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	gap: 10px;
}

/* ─── Image ──────────────────────────────────────────────────────────────── */

.pcat-image {
	width: 100px;
	height: 100px;
	border: 1px solid #d7e3dc;
	border-radius: 8px;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.pcat-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.pcat-image__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f8f6;
}

/* ─── More Detail Button ─────────────────────────────────────────────────── */

.pcat-more {
	width: 100%;
}

.pcat-more__btn {
	display: block;
	width: 100%;
	padding: 7px 0;
	background: #0b183e;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	border-radius: 4px;
	transition: background 0.3s ease;
	box-sizing: border-box;
}

.pcat-item:hover .pcat-more__btn {
	background: #1a2f6b;
}

/* ─── Content ────────────────────────────────────────────────────────────── */

/*
 * Content must fill the full card height so the Catalog button stays at the
 * bottom regardless of how long the description is.
 */
.pcat-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 180px;
}

.pcat-title {
	font-size: 24px;
	font-weight: 700;
	color: #0b183e;
	line-height: 1.2;
	margin: 0 0 12px 0;
}

.pcat-title a {
	color: inherit;
	text-decoration: none;
}

.pcat-title a:hover {
	text-decoration: underline;
}

.pcat-desc {
	font-size: 16px;
	color: #666666;
	line-height: 1.8;
	margin: 0;
	flex: 1;
}

/* Spacer when no description — still pushes button to bottom */
.pcat-desc--empty {
	flex: 1;
}

/* ─── Button ─────────────────────────────────────────────────────────────── */

.pcat-button-wrapper {
	margin-top: 20px;
	flex-shrink: 0;
}

.pcat-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border: 1px solid #333333;
	padding: 14px 40px;
	font-size: 15px;
	font-weight: 600;
	color: #333333;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	cursor: pointer;
	line-height: 1;
}

.pcat-button:hover,
.pcat-button:focus {
	background: #0b183e;
	color: #ffffff;
	border-color: #0b183e;
	text-decoration: none;
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */

.pcat-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.pcat-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #dce8e2;
	color: #333333;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pcat-pagination .page-numbers.current,
.pcat-pagination .page-numbers:hover {
	background: #0b183e;
	color: #ffffff;
	border-color: #0b183e;
}

/* ─── Empty state ────────────────────────────────────────────────────────── */

.pcat-empty {
	font-size: 16px;
	color: #666666;
	text-align: center;
	padding: 40px 0;
}

/* ─── Tablet (max 1024px) ────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.pcat-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.pcat-header__title {
		font-size: 36px;
	}

	.pcat-title {
		font-size: 32px;
	}

	.pcat-content {
		min-height: 140px;
	}
}

/* ─── Mobile (max 767px) ─────────────────────────────────────────────────── */

@media (max-width: 767px) {
	.pcat-wrapper {
		padding: 40px 0;
	}

	.pcat-header {
		margin-bottom: 36px;
	}

	.pcat-header__title {
		font-size: 28px;
	}

	.pcat-header__desc {
		font-size: 16px;
	}

	.pcat-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.pcat-item {
		flex-direction: row;
		gap: 16px;
	}

	.pcat-content {
		min-height: 110px;
	}

	.pcat-title {
		font-size: 24px;
	}

	.pcat-desc {
		font-size: 15px;
	}
}
