.category-tree-item {
	padding: 16px;
	border: 1px solid rgba(0, 0, 0, 0.125);
	border-radius: 6px;
	background-color: #fff;
	transition: all 0.3s ease;
	list-style: none;
}

.category-tree-item:hover {
	border-color: hsl(var(--base));
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-tree-item .parent-category a,
.category-tree-item a,
.subcategory-link {
	display: flex !important;
	align-items: center;
	gap: 15px;
	text-decoration: none;
}

.category-tree-item a img {
	width: 50px !important;
	height: 50px !important;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.category-tree-item a .title,
.category-tree-item a .category-name {
	font-weight: 500;
	transition: 0.3s;
	font-size: 1rem;
	color: #333;
}

.category-tree-item a:hover .title,
.category-tree-item a:hover .category-name {
	color: hsl(var(--base)) !important;
}

.child-category {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 15px;
	padding-left: 0;
	list-style: none;
}

@media (max-width: 1199px) {
	.child-category {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 991px) {
	.child-category {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	.child-category {
		grid-template-columns: repeat(1, 1fr);
	}
}

.child-category .child-category {
	grid-template-columns: repeat(1, 1fr);
	gap: 10px;
	margin-top: 10px;
	padding-left: 15px;
	border-left: 1px dashed hsl(var(--gray-color));
}

.child-category .prefix {
	color: hsl(var(--gray-color));
	flex-shrink: 0;
}