/* Categories directory — matches product category header + circular catalog */

.kt-cats-page {
	--kt-cats-ink: #0f172a;
	--kt-cats-muted: #64748b;
	--kt-cats-line: #e5e7eb;
	--kt-cats-soft: #f8fafc;
	--kt-cats-primary: #ec234a;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px 56px;
	box-sizing: border-box;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--kt-cats-ink);
}

/* Header — same structure as product category pages; description on right */
.kt-cats-page .kt-cats-directory-header.kt-category-header {
	background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0e7490 100%);
	color: #ffffff;
	padding: 28px 28px;
	margin-top: 50px;
	margin-bottom: 28px;
	border-radius: 12px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: center;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
	position: relative;
	overflow: hidden;
}

.kt-cats-page .kt-cats-directory-header::before {
	content: '';
	position: absolute;
	top: -40px;
	right: -20px;
	width: 220px;
	height: 220px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	filter: blur(40px);
	z-index: 0;
}

.kt-cats-page .kt-cats-directory-header .kt-cat-content,
.kt-cats-page .kt-cats-directory-header .kt-cat-description-col {
	position: relative;
	z-index: 1;
}

.kt-cats-page .kt-cats-directory-header h1 {
	font-size: 42px;
	font-weight: 700;
	margin: 0 0 12px 0;
	letter-spacing: -0.5px;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.kt-cats-page .kt-cats-directory-header .kt-cat-label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	opacity: 0.95;
	margin-bottom: 12px;
	display: inline-block;
	padding: 4px 12px;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 20px;
	color: #fff;
}

.kt-cats-page .kt-cats-directory-header .kt-cat-description-col {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.kt-cats-page .kt-cats-directory-header .kt-cat-description {
	font-size: 15px;
	line-height: 1.6;
	opacity: 0.92;
	margin: 0;
	max-width: 420px;
	text-align: left;
	color: #fff;
}

.kt-cats-page .kt-cats-directory-header .kt-product-count {
	font-size: 12px;
	opacity: 0.9;
	display: inline-block;
	padding: 6px 10px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	color: #fff;
}

/* Layout: sidebar + circles */
.kt-cats-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.kt-cats-sidebar {
	background: #fff;
	border: 1px solid var(--kt-cats-line);
	border-radius: 14px;
	padding: 18px 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
	position: sticky;
	top: 90px;
}

.kt-cats-sidebar-group {
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}

.kt-cats-sidebar-group:last-of-type {
	border-bottom: 0;
}

.kt-cats-sidebar-title {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94a3b8;
}

.kt-cats-search-input,
.kt-cats-select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--kt-cats-line);
	border-radius: 10px;
	padding: 10px 12px;
	font: inherit;
	font-size: 13px;
	color: var(--kt-cats-ink);
	background: var(--kt-cats-soft);
}

.kt-cats-search-input:focus,
.kt-cats-select:focus {
	outline: none;
	border-color: var(--kt-cats-primary);
	box-shadow: 0 0 0 3px rgba(236, 35, 74, 0.12);
}

.kt-cats-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #334155;
	margin-bottom: 8px;
	cursor: pointer;
}

.kt-cats-check input {
	accent-color: var(--kt-cats-primary);
}

.kt-cats-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--dot, #94a3b8);
	flex-shrink: 0;
}

.kt-cats-sidebar-actions {
	display: grid;
	gap: 8px;
}

.kt-cats-apply,
.kt-cats-clear {
	border: 0;
	border-radius: 999px;
	padding: 10px 14px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.kt-cats-apply {
	background: var(--kt-cats-ink);
	color: #fff;
}

.kt-cats-apply:hover {
	background: var(--kt-cats-primary);
}

.kt-cats-clear {
	background: #f1f5f9;
	color: #475569;
}

.kt-cats-main {
	min-width: 0;
}

.kt-cats-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.kt-cats-results {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--kt-cats-muted);
}

.kt-cats-shop-all {
	font-size: 13px;
	font-weight: 700;
	color: var(--kt-cats-primary);
	text-decoration: none;
}

.kt-cats-shop-all:hover {
	text-decoration: underline;
}

.kt-cats-mobile-filters {
	display: none;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--kt-cats-line);
	background: #fff;
	border-radius: 999px;
	padding: 8px 14px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

/* Circular category cards */
.kt-cats-circles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 14px;
}

@media (min-width: 640px) {
	.kt-cats-circles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px 18px;
	}
}

@media (min-width: 900px) {
	.kt-cats-circles {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.kt-cat-circle-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none !important;
	color: inherit;
	gap: 10px;
	transition: transform 0.18s ease;
}

.kt-cat-circle-card.is-filtered-out {
	display: none !important;
}

.kt-cat-circle-card:hover {
	transform: translateY(-3px);
}

.kt-cat-circle {
	width: min(148px, 100%);
	aspect-ratio: 1;
	border-radius: 50%;
	border: 3px solid var(--cat-ring, #94a3b8);
	background: #fff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 14px;
	box-sizing: border-box;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.kt-cat-circle-card:hover .kt-cat-circle {
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
	border-width: 3.5px;
}

.kt-cat-circle img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 50%;
	display: block;
}

.kt-cat-circle-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--kt-cats-ink);
	line-height: 1.3;
	max-width: 160px;
}

.kt-cat-circle-parent {
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: -4px;
}

.kt-cat-circle-count {
	font-size: 12px;
	font-weight: 600;
	color: var(--kt-cats-muted);
}

.kt-cats-empty {
	text-align: center;
	padding: 40px 16px;
	color: var(--kt-cats-muted);
}

.kt-cats-drawer-overlay {
	display: none;
}

body.kt-cats-drawer-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.kt-cats-layout {
		grid-template-columns: 1fr;
	}

	.kt-cats-mobile-filters {
		display: inline-flex;
	}

	.kt-cats-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(320px, 88vw);
		z-index: 100060;
		border-radius: 0;
		transform: translateX(-105%);
		transition: transform 0.25s ease;
		overflow-y: auto;
		margin: 0;
	}

	.kt-cats-sidebar.is-open {
		transform: translateX(0);
	}

	.kt-cats-drawer-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(15, 23, 42, 0.45);
		z-index: 100050;
	}

	.kt-cats-drawer-overlay[hidden] {
		display: none !important;
	}

	.kt-cats-page .kt-cats-directory-header.kt-category-header {
		grid-template-columns: 1fr;
		padding: 24px 18px;
		margin-top: 40px;
	}

	.kt-cats-page .kt-cats-directory-header h1 {
		font-size: 28px;
	}

	.kt-cats-page .kt-cats-directory-header .kt-cat-description-col {
		justify-content: flex-start;
	}

	.kt-cats-page .kt-cats-directory-header .kt-cat-description {
		max-width: none;
	}
}
