/* Skarpnes Product Category Tree Styles */

.skarpnes-product-category-tree {
	font-family: inherit;
	line-height: 1.6;
}

.skarpnes-product-category-tree .category-item { 
	display: flex;
	align-items: center;
	padding: 8px 0;
	position: relative;
	font-size: 16px;
}

.skarpnes-product-category-tree.has-alternating-rows .category-item.is-odd {
	background-color: #f7f7f7; 
}

.skarpnes-product-category-tree.has-alternating-rows .category-item.is-even {
	background-color: #ffffff;
}

.skarpnes-product-category-tree .category-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-right: 8px;
	cursor: pointer;
	user-select: none;
	flex-shrink: 0;
}

.skarpnes-product-category-tree .category-toggle:hover {
	background-color: rgba(0, 0, 0, 0.05);
	border-radius: 3px;
}

.skarpnes-product-category-tree .toggle-icon {
	font-size: 12px;
	transition: transform 0.2s ease;
	color: #666;
}

.skarpnes-product-category-tree .category-item.expanded .toggle-icon {
	transform: rotate(90deg);
}

.skarpnes-product-category-tree .category-placeholder {
	display: inline-block;
	width: 24px;
	height: 24px;
	margin-right: 8px;
	flex-shrink: 0;
}

.skarpnes-product-category-tree .category-link {
	color: #0073aa;
	text-decoration: none;
	transition: color 0.2s ease;
}

.skarpnes-product-category-tree .category-link:hover {
	color: #005a87;
	text-decoration: underline;
}

.skarpnes-product-category-tree .category-item.is-current .category-link {
	font-weight: 600;
	color: #005a87;
}

.skarpnes-product-category-tree .category-count {
	color: #999;
	margin-left: 6px;
	font-size: 0.9em;
}

.skarpnes-product-category-tree .category-children {
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease;
}

.skarpnes-product-category-tree .category-children[style*="display: none"] {
	max-height: 0;
	opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.skarpnes-product-category-tree .category-item {
		padding: 6px 0;
	}

	.skarpnes-product-category-tree .category-link {
		font-size: 0.95em;
	}
}
