/* Vendora — Category archive (blog category listing).
   Standalone stylesheet for the category template.
   Keep separate from article.css / home.css (do not merge). */

/* ---------- Category header ---------- */

.vd-category {
	padding: 28px 30px 30px;
}

.vd-cat-head {
	margin-bottom: 22px;
}

.vd-cat-title {
	margin: 0 0 8px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--vd-text);
}

.vd-cat-desc {
	margin: 0;
	max-width: 720px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--vd-text-3);
}

.vd-cat-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.vd-cat-stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--vd-text-2);
}

.vd-cat-stat svg {
	color: var(--vd-primary);
}

/* ---------- Article list: one per row, thumb left / text right ---------- */

.vd-cat-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.vd-cat-item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	column-gap: 16px;
	align-items: center;
	padding: 14px;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow .25s, border-color .25s;
}

.vd-cat-item:hover {
	box-shadow: var(--vd-shadow);
	border-color: var(--vd-primary-border);
}

.vd-cat-img {
	grid-column: 1;
	grid-row: 1;
	position: relative;
	width: 92px;
	height: 92px;
	border-radius: 10px;
	overflow: hidden;
	background-color: var(--vd-inset);
	background-size: cover;
	background-position: center;
}

.vd-cat-img::before {
	content: "";
	position: absolute;
	inset: 0;
	background: inherit;
	filter: blur(16px) brightness(1.06);
	transform: scale(1.15);
}

.vd-cat-img img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vd-cat-item-body {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.vd-cat-item-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--vd-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vd-cat-item:hover .vd-cat-item-title {
	color: var(--vd-primary);
}

.vd-cat-item-ex {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--vd-text-3);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vd-cat-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 2px;
}

.vd-cat-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--vd-text-3);
}

.vd-cat-meta-item svg {
	color: var(--vd-text-3);
}

/* ---------- Sidebar widgets: featured machines ---------- */

.vd-cat-prods {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px;
}

.vd-cat-prod {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	column-gap: 12px;
	align-items: center;
	padding: 8px;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: 12px;
	transition: border-color .2s, transform .2s;
}

.vd-cat-prod:hover {
	border-color: var(--vd-primary-border);
	transform: translateX(2px);
}

.vd-cat-prod-img {
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}

.vd-cat-prod-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vd-cat-prod-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.vd-cat-prod-name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--vd-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vd-cat-prod-price {
	font-size: 13px;
	font-weight: 700;
	color: var(--vd-primary);
}

/* ---------- Sidebar widgets: explore topics ---------- */

.vd-cat-topics {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vd-cat-topic {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 500;
	color: var(--vd-text-2);
	transition: background .2s, color .2s;
}

.vd-cat-topic:hover {
	background: var(--vd-inset);
	color: var(--vd-primary);
}

.vd-cat-topic-count {
	flex: none;
	min-width: 24px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--vd-inset);
	font-size: 12px;
	font-weight: 700;
	color: var(--vd-text-3);
	text-align: center;
}

.vd-cat-topic:hover .vd-cat-topic-count {
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
}

.vd-widget-empty {
	margin: 0;
	padding: 6px 0;
	font-size: 13px;
	color: var(--vd-text-3);
}

/* ---------- Empty state ---------- */

.vd-cat-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 48px 0;
	color: var(--vd-text-3);
	text-align: center;
}

/* ---------- Pagination ---------- */

.vd-cat-pag {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 26px;
}

.vd-cat-pag .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--vd-border);
	border-radius: 10px;
	background: var(--vd-card);
	color: var(--vd-text-2);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all .2s;
}

.vd-cat-pag .page-numbers:hover {
	border-color: var(--vd-primary);
	color: var(--vd-primary);
}

.vd-cat-pag .page-numbers.current {
	background: var(--vd-primary);
	border-color: var(--vd-primary);
	color: #fff;
}

/* ---------- Load more (replaces numeric pagination) ---------- */

.vd-cat-loadmore-wrap {
	display: flex;
	justify-content: center;
	margin-top: 26px;
}

.vd-cat-loadmore {
	min-width: 200px;
	padding: 13px 34px;
	font-size: 15px;
	background: var(--vd-card);
	border: 1.5px solid var(--vd-border);
	color: var(--vd-text);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.vd-cat-loadmore:hover {
	border-color: var(--vd-primary);
	color: var(--vd-primary);
	background: var(--vd-primary-soft);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(2, 132, 199, .15);
}

.vd-cat-loadmore:active {
	transform: translateY(0);
}

.vd-cat-loadmore.is-busy {
	opacity: .6;
	pointer-events: none;
}

.vd-cat-nomore {
	margin: 0;
	font-size: 13px;
	color: var(--vd-text-3);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
	.vd-category {
		padding: 20px 18px 22px;
	}

	.vd-cat-title {
		font-size: 24px;
	}

	.vd-cat-item {
		grid-template-columns: 68px minmax(0, 1fr);
		column-gap: 12px;
		padding: 10px;
	}

	.vd-cat-img {
		width: 68px;
		height: 68px;
	}

	.vd-cat-item-title {
		font-size: 15px;
	}

	.vd-cat-prod {
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.vd-cat-prod-img {
		width: 48px;
		height: 48px;
	}
}
