/**
 * Mobil “Ürünler” tam ekran kategori menüsü (Woo Filter By Category / ürün kategorileri widget).
 * body.toptanmum-mobile-cat-overlay-open: arka plan kaydırması kilitli.
 */
.toptanmum-mobile-cat-overlay {
	position: fixed;
	inset: 0;
	z-index: 200100;
	display: flex;
	flex-direction: column;
	background: #f7f6f2;
	padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
	box-sizing: border-box;
}

.toptanmum-mobile-cat-overlay[hidden] {
	display: none !important;
}

.toptanmum-mobile-cat-overlay__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 0 0 auto;
	padding: 12px 12px 10px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.toptanmum-mobile-cat-overlay__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a1a1a;
}

.toptanmum-mobile-cat-overlay__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -6px -6px -6px 0;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: #333;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.toptanmum-mobile-cat-overlay__close:active {
	background: rgba(0, 0, 0, 0.06);
}

.toptanmum-mobile-cat-overlay__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
	box-sizing: border-box;
}

/**
 * Mağaza dışı sayfalarda category-filter.css yüklenmediği için, aynı kart/grid görünümü
 * yalnızca tam ekran overlay içinde tekrarlanır (kenar çubuğu ile tutarlı).
 */
.toptanmum-mobile-cat-overlay ul.toptanmum-cat-filter-enhanced {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
	grid-auto-flow: row;
}

.toptanmum-mobile-cat-overlay ul.products.toptanmum-cat-filter-enhanced,
.toptanmum-mobile-cat-overlay ul.wc-block-grid__products.toptanmum-cat-filter-enhanced {
	display: flex !important;
	flex-wrap: wrap !important;
	grid-template-columns: unset !important;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced li.cat-item,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul.children li,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul ul li {
	float: none !important;
	clear: none !important;
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced > li {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	min-width: 0;
	border: none;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 0 0 1px #e2e2e2, 0 1px 3px rgba(0, 0, 0, 0.05);
	overflow: visible;
	transition: box-shadow 0.2s;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced > li:hover {
	box-shadow: 0 0 0 1px #cfcfcf, 0 3px 10px rgba(0, 0, 0, 0.07);
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 14px 16px;
	text-decoration: none;
	color: #1f1f1f !important;
	line-height: 1.3;
	font-weight: 600;
	font-size: 0.95rem;
	transition: background 0.15s;
	flex: 0 0 auto;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced > li > a:hover {
	background: #f6f6f6;
	color: #111 !important;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced .count,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced span.count,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced .wc-block-product-categories-list-item-count {
	display: none !important;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced > li.current-cat,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced > li.current-cat-parent {
	background: #d3d389;
	box-shadow: 0 0 0 1px #bfc270, 0 1px 3px rgba(0, 0, 0, 0.05);
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced > li.current-cat > a,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced > li.current-cat-parent > a {
	background: transparent;
	font-weight: 700;
	color: #2a2a1a !important;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul.children,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul ul {
	list-style: none;
	margin: 0 !important;
	padding: 10px 12px 16px !important;
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	border: 0;
	width: 100%;
	box-sizing: border-box;
	grid-auto-flow: row;
	float: none !important;
	overflow: visible;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul.children > li,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul ul > li {
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	min-height: 0;
	border: 1px solid #e0e0e0 !important;
	border-radius: 10px;
	background: #f6f6f6;
	overflow: visible;
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
	position: relative;
	z-index: 0;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul.children > li:hover,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul ul > li:hover {
	background: #efefef;
	border-color: #d0d0d0 !important;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul.children > li > a,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul ul > li > a {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 11px 12px;
	font-weight: 500;
	font-size: 0.82rem;
	text-decoration: none;
	color: #222 !important;
	min-height: 2.85rem;
	flex: 1;
	box-sizing: border-box;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul.children > li > a:hover,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul ul > li > a:hover {
	color: #000 !important;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul.children > li.current-cat,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul ul > li.current-cat,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul.children > li.current-cat-parent,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul ul > li.current-cat-parent {
	background: #d3d389 !important;
	border: 1px solid #bfc270 !important;
	box-shadow: none;
	z-index: 2;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul.children > li.current-cat > a,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul ul > li.current-cat > a,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul.children > li.current-cat-parent > a,
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul ul > li.current-cat-parent > a {
	font-weight: 700;
	color: #2a2a1a !important;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced > li.current-cat ul.children li {
	background: #d3d389 !important;
	border: 1px solid #bfc270 !important;
	box-shadow: none;
	z-index: 2;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced > li.current-cat ul.children li > a {
	font-weight: 700;
	color: #2a2a1a !important;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced > li.current-cat ul.children li:hover {
	background: #c9c97f !important;
	border-color: #bfc270 !important;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced img[width="1"],
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced img[src=""],
.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced .wc-block-product-categories__image:empty {
	display: none !important;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced .wc-block-product-categories-list {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced .wc-block-product-categories-list-item {
	margin: 0;
	padding: 0;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced:has(> li:only-child) > li {
	grid-column: 1 / -1;
}

@media (max-width: 991px) {
	.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced .wc-block-product-categories-list {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

@media (max-width: 420px) {
	.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul.children,
	.toptanmum-mobile-cat-overlay .toptanmum-cat-filter-enhanced ul ul {
		grid-template-columns: 1fr !important;
	}
}

@media (min-width: 769px) {
	.toptanmum-mobile-cat-overlay {
		display: none !important;
	}
}

body.toptanmum-mobile-cat-overlay-open {
	overflow: hidden !important;
	padding-bottom: 0 !important;
}

html.toptanmum-mobile-cat-overlay-open {
	overflow: hidden !important;
}
