/* ── Fontify taxonomy archive: category & tag pages ── */

.fontify-tax {
	max-width: 1120px;
	margin: 0 auto;
	padding: 32px 20px 64px;
}

.fontify-tax-hero {
	text-align: center;
	padding: 24px 0 8px;
}

.fontify-tax-kicker {
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: 12px;
	font-weight: 700;
	color: #4f46e5;
	margin: 0 0 6px;
}

.fontify-tax-title {
	font-size: clamp(30px, 5vw, 44px);
	margin: 0 0 10px;
	color: #111827;
}

.fontify-tax-desc {
	max-width: 640px;
	margin: 0 auto 8px;
	color: #6b7280;
	font-size: 15px;
	line-height: 1.6;
}

.fontify-tax-count {
	color: #9ca3af;
	font-size: 13px;
	margin: 0;
}

/* Toolbar */
.fontify-tax-toolbar {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
	margin: 26px 0 18px;
	padding: 14px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	position: sticky;
	top: 8px;
	z-index: 5;
	box-shadow: 0 4px 14px rgba(17, 24, 39, .04);
}

.fontify-tax-sample {
	flex: 1;
	min-width: 220px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 15px;
}

.fontify-tax-controls {
	display: flex;
	align-items: center;
	gap: 14px;
}

.fontify-tax-size {
	width: 130px;
	accent-color: #4f46e5;
}

.fontify-tax-view {
	display: inline-flex;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	overflow: hidden;
}

.fontify-tax-view-btn {
	background: #fff;
	border: 0;
	padding: 8px 12px;
	color: #9ca3af;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
}

.fontify-tax-view-btn + .fontify-tax-view-btn {
	border-left: 1px solid #e5e7eb;
}

.fontify-tax-view-btn.is-active {
	background: #4f46e5;
	color: #fff;
}

/* Cards */
.fontify-tax-list {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}

.fontify-tax-list[data-view="grid"] {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fontify-tax-card {
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #fff;
	padding: 22px 22px 16px;
	transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.fontify-tax-card:hover {
	border-color: #c7d2fe;
	box-shadow: 0 10px 28px rgba(79, 70, 229, .10);
	transform: translateY(-2px);
}

.fontify-tax-card-link {
	text-decoration: none;
	display: block;
	color: inherit;
}

.fontify-tax-preview {
	font-size: 34px;
	line-height: 1.3;
	color: #111827;
	min-height: 1.3em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-bottom: 14px;
}

.fontify-tax-list[data-view="grid"] .fontify-tax-preview {
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.fontify-tax-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid #f3f4f6;
	padding-top: 12px;
	flex-wrap: wrap;
}

.fontify-tax-card-info {
	display: flex;
	align-items: baseline;
	gap: 10px;
	min-width: 0;
}

.fontify-tax-card-title {
	font-weight: 700;
	font-size: 14.5px;
	color: #111827;
	text-decoration: none;
}

.fontify-tax-card-title:hover {
	color: #4f46e5;
}

.fontify-tax-card-styles {
	font-size: 12px;
	color: #9ca3af;
	white-space: nowrap;
}

.fontify-tax-card-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fontify-tax-card-price {
	font-weight: 700;
	font-size: 14px;
	color: #111827;
}

.fontify-tax-card-btn {
	background: #4f46e5;
	color: #fff !important;
	border-radius: 10px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s ease;
	white-space: nowrap;
}

.fontify-tax-card-btn:hover {
	background: #4338ca;
}

.fontify-tax-empty {
	text-align: center;
	color: #6b7280;
	padding: 48px 0;
}

.fontify-tax-pagination {
	margin-top: 28px;
	text-align: center;
}

.fontify-tax-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	text-decoration: none;
	color: #374151;
}

.fontify-tax-pagination .page-numbers.current {
	background: #4f46e5;
	border-color: #4f46e5;
	color: #fff;
}

@media (max-width: 720px) {
	.fontify-tax-list[data-view="grid"] {
		grid-template-columns: 1fr;
	}
}
