/* ============================================================
   Kasirye Labs — Category Showcase Widget
   ============================================================ */

.kl-category-showcase {
	background: #fff;
	border-radius: 12px;
	padding: 22px 24px 26px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

/* ── Header ─────────────────────────────────────────────────── */
.kl-cs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}

.kl-cs-title {
	font-family: 'Jost', sans-serif;
	font-size: 17px;
	font-weight: 800;
	color: #1a2035;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.kl-cs-view-all {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #1a2035;
	text-decoration: none;
	background: #f0f0f0;
	border-radius: 20px;
	padding: 6px 14px 6px 16px;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
}
.kl-cs-view-all:hover {
	background: #1a2035;
	color: #fff;
}

/* ── Category grid ───────────────────────────────────────────── */
.kl-cs-grid {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;          /* room for scrollbar if visible */
	scrollbar-width: none;        /* Firefox */
}
.kl-cs-grid::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* ── Individual category tile ────────────────────────────────── */
.kl-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	flex: 0 0 auto;
	scroll-snap-align: start;
	min-width: 90px;
}

/* ── Circle ──────────────────────────────────────────────────── */
.kl-cat-circle {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	transition: transform 0.25s, box-shadow 0.25s;
	/* Dark overlay so icons pop */
	box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.45);
}
.kl-cat-item:hover .kl-cat-circle {
	transform: scale(1.07);
	box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.3),
	            0 8px 24px rgba(0,0,0,0.18);
}

/* Category image (when thumbnail is set) */
.kl-cat-thumb {
	width: 60%;
	height: 60%;
	object-fit: contain;
	display: block;
	position: relative;
	z-index: 1;
}

/* Font Awesome fallback icon */
.kl-cat-icon {
	font-size: 36px;
	color: #e8461e;
	position: relative;
	z-index: 1;
	text-shadow: 0 2px 8px rgba(0,0,0,0.4);
	transition: color 0.2s;
}
.kl-cat-item:hover .kl-cat-icon {
	color: #ffc107;
}

/* ── Category name ───────────────────────────────────────────── */
.kl-cat-name {
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: #1a2035;
	text-align: center;
	line-height: 1.3;
	max-width: 100px;
	/* Truncate long names with ellipsis */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.kl-cat-item:hover .kl-cat-name {
	color: #e8461e;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767px) {
	.kl-cat-circle {
		width: 80px;
		height: 80px;
	}
	.kl-cat-icon  { font-size: 26px; }
	.kl-cat-name  { font-size: 11px; }
	.kl-cs-title  { font-size: 14px; }
}
