/* Voltmen Category Grid */
.vm-cat {
	--vm-accent: var(--wd-primary-color, #2f5be7);
	width: 100%;
}

/* Header */
.vm-cat__head {
	position: relative;
	margin: 0 0 24px;
	padding: 28px 32px 28px 36px;
	border: 1px solid rgba(47, 91, 231, .12);
	border-radius: 16px;
	background: linear-gradient(135deg, #eef3ff 0%, #f8faff 100%);
	overflow: hidden;
}
.vm-cat__head::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: var(--vm-accent);
}
.vm-cat__title {
	margin: 0 0 8px;
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.15;
	color: #1d2330;
}
.vm-cat__desc {
	max-width: 70ch;
	font-size: 15.5px;
	line-height: 1.6;
	color: #5b6472;
}
.vm-cat__desc p { margin: 0 0 .6em; }
.vm-cat__desc p:last-child { margin-bottom: 0; }

/* Grid (fallback columns; Elementor's Columns control overrides these) */
.vm-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
@media (max-width: 1024px) {
	.vm-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.vm-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Card */
.vm-cat-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 14px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.vm-cat-card:hover {
	transform: translateY(-4px);
	border-color: var(--vm-accent);
	box-shadow: 0 12px 28px rgba(20, 30, 60, .12);
}
.vm-cat-card__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f2f4f8;
}
.vm-cat-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.vm-cat-card:hover .vm-cat-card__img img { transform: scale(1.06); }

.vm-cat-card__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
}
.vm-cat-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vm-cat-card__name {
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.3;
	color: #1d2330;
}
.vm-cat-card__count { font-size: 12.5px; color: #6b7280; }
.vm-cat-card__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--vm-accent);
	color: #fff;
	transition: transform .2s ease;
}
.vm-cat-card:hover .vm-cat-card__arrow { transform: translateX(3px); }

.vm-cat__empty {
	padding: 16px;
	border: 1px dashed #c8cdd6;
	border-radius: 8px;
	color: #6b7280;
}

/* Phones */
@media (max-width: 767px) {
	.vm-cat__head { padding: 18px 18px 18px 22px; border-radius: 12px; margin-bottom: 16px; }
	.vm-cat__desc { font-size: 14px; }
	.vm-cat-card { border-radius: 12px; }
	.vm-cat-card__body { padding: 10px 12px; }
	.vm-cat-card__name { font-size: 13.5px; }
	.vm-cat-card__count { font-size: 11.5px; }
	.vm-cat-card__arrow { display: none; }
}
