@charset "utf-8";


/* Toggle button hidden on desktop */
.ccn-toggle-btn,
.ccn-mobile-context {
	display: none;
}

/* Section heading */
.ccn-mobile-wrapper::before {
	content: "Categories";
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
	padding: 0 0 8px 0;
	margin-bottom: 4px;
	border-bottom: 1px solid #e5e5e5;
}

/* List reset */
.ccn-nav,
.ccn-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: inherit;
}

/* Desktop links — compact list style */
.ccn-nav a {
	display: block;
	padding: 5px 8px;
	margin: 1px 0;
	background: none;
	border-radius: 4px;
	text-decoration: none;
	color: #222222;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 400;
}

.ccn-nav a:hover {
	background: #f0f0f0;
	color: #6eb2e0;
}
/* Keyboard focus indicators (invisible to mouse/touch users) — WCAG 2.4.7 */
.ccn-nav a:focus-visible {
    outline: 2px solid #6eb2e0;
    outline-offset: 2px;
    border-radius: 4px;
}

.ccn-toggle-btn:focus-visible {
    outline: 2px solid #6eb2e0;
    outline-offset: 2px;
}
.ccn-nav .cat-item a:after, .ccn-nav .cnn-reset a:after {
	height: 0;
}

/* Back link */
.ccn-back a {
	color: #6eb2e0;
	font-size: 13px;
	font-weight: 600;
	padding-left: 0;
}

.ccn-back a:hover {
	background: none;
}

/* Reset / All Products */
.ccn-reset a {
	color: #6eb2e0;
	font-size: 13px;
	font-weight: 600;
	border-bottom: 1px solid #e5e5e5;
	border-radius: 0;
	padding: 5px 8px 10px 8px;
	margin-bottom: 6px;
}

.ccn-reset a:hover {
	background: none;
}

/* Active / current category */
.ccn-nav .current-cat > a {
	background: #e8f4fb;
	color: #13377c;
	font-weight: 600;
	border-left: 3px solid #6eb2e0;
	padding-left: 5px;
}

/* Subcategory indentation */
.ccn-nav ul {
	margin-left: 10px;
	padding-left: 8px;
	border-left: 2px solid #e5e5e5;
}
.ccn-nav .cat-item {
	padding: 0px;
}

/* ===== Result count — Part A ===== */

/*
 * Suppressed on shop/category pages. WooCommerce counts products at the SQL
 * level; Aelia hides them at template level, making the count structurally
 * wrong for visitors with regional restrictions.
 * CSS covers cases where the theme calls woocommerce_result_count() directly
 * in a template rather than via the woocommerce_before_shop_loop hook.
 */
.woocommerce-result-count {
    display: none;
}

/* ===== Regional availability notice (Part B) ===== */

/* Message shown when a category has no visible products for this visitor. */
.ccn-no-products-notice {
    padding: 20px 24px;
    margin: 0 0 24px 0;
    background: #f7f7f7;
    border-left: 3px solid #6EB2E0;
    border-radius: 4px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

/*
 * Hide the empty <ul class="products"> container that WooCommerce still
 * renders even when we set loop total to 0. Without this, an unstyled empty
 * list element sits below the notice.
 */
.ccn-no-visible-products .woocommerce ul.products,
.ccn-no-visible-products ul.products {
    display: none;
}
@media (max-width: 768px) {

	/* Hide desktop section heading on mobile */
	.ccn-mobile-wrapper::before {
		display: none;
	}

	/* Current category label above the toggle button */
	.ccn-mobile-context {
		display: block;
		font-size: 12px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		color: #888;
		padding: 0 4px 6px 4px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* Toggle button */
	.ccn-toggle-btn {
		display: flex;
		align-items: center;
		gap: 8px;
		width: 100%;
		padding: 15px 16px;
		font-size: 16px;
		font-weight: 600;
		text-align: left;
		background: #f4f4f4;
		border: 1px solid #ddd;
		border-radius: 10px;
		cursor: pointer;
		margin-bottom: 8px;
	}

	.ccn-toggle-btn span {
		flex: 1;
	}

	/* Chevron rotates on open */
	.ccn-toggle-btn .ccn-chevron {
		transition: transform 0.2s ease;
		flex-shrink: 0;
	}

	.ccn-toggle-btn.is-open .ccn-chevron {
		transform: rotate(180deg);
	}

	/* Nav collapsed by default — driven by data attribute set in PHP */
	.ccn-mobile-wrapper .ccn-nav {
		overflow: hidden;
		max-height: 0;
		transition: max-height 0.3s ease;
	}

	.ccn-mobile-wrapper[data-expanded="true"] .ccn-nav {
		max-height: 2000px;
	}

	/* Override desktop list styles — touch tiles */
	.ccn-nav a {
		display: block;
		padding: 18px 16px;
		font-size: 18px;
		line-height: 1.3;
		background: #fff;
		border: 1px solid #e5e5e5;
		border-radius: 10px;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
		color: #0073aa;
		font-weight: 500;
		margin: 0;
	}
	.ccn-nav a:focus-visible {
		outline: 2px solid #0073aa;
		outline-offset: 2px;
	}
	.ccn-nav a:hover {
		background: #f57f4b;
		color: #fff;
	}
	.ccn-nav a:after {
		height: 0;
	}
	/* Back and Reset — muted tiles */
	.ccn-back a,
	.ccn-reset a {
		background: #f2f2f2;
		font-weight: 700;
		border: 1px solid #d6d6d6;
		border-radius: 10px;
		padding: 18px 16px;
		font-size: 18px;
		color: #222222;
		box-shadow: none;
	}

	.ccn-reset a {
		border-bottom: 1px solid #d6d6d6;
		margin-bottom: 0;
		padding-left: 16px;
	}

	/* Active category */
	.ccn-nav .current-cat > a {
		background: #d9edf7;
		border-color: #b6d7ea;
		border-left: 3px solid #0073aa;
		color: #004085;
		font-weight: 700;
	}

	/* Remove tree indentation on mobile */
	.ccn-nav ul {
		margin: 0;
		padding: 0;
		border: none;
	}

	.ccn-nav li {
		margin: 0 0 10px 0;
	}

	.ccn-nav ul li {
		margin-left: 0;
	}
    .ccn-no-products-notice {
        font-size: 16px;
        padding: 18px 16px;
        border-left-width: 4px;
    }	
}