/* Ibrahim dynamic category sidebar (uses WoodMart wd-side-hidden positioning when theme CSS is loaded) */
.ibrahim-cat-sidebar {
	max-width: 360px;
	width: 100%;
	background: #fff;
}

.ibrahim-cat-sidebar.wd-opened {
	height: 100%;
}

.ibrahim-cat-sidebar__inner {
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ibrahim-cat-panels {
	position: relative;
	flex: 1;
	overflow: hidden;
	min-height: 0;
}

.ibrahim-cat-panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	transform: translateX(100%);
	transition: transform 0.28s ease;
	visibility: hidden;
}

.ibrahim-cat-panel.is-active {
	position: relative;
	transform: translateX(0);
	visibility: visible;
}

.ibrahim-cat-panel.is-leaving {
	transform: translateX(-30%);
}

.ibrahim-cat-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #e8e8e8;
	min-height: 52px;
}

.ibrahim-cat-panel__head-title {
	font-size: 15px;
	font-weight: 600;
	color: #111;
	flex: 1;
}

.ibrahim-cat-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 0;
	background: none;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	color: #111;
	cursor: pointer;
	flex: 1;
	text-align: left;
}

.ibrahim-cat-back::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-left: 2px solid #111;
	border-bottom: 2px solid #111;
	transform: rotate(45deg);
	margin-right: 2px;
}

.ibrahim-cat-close {
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: #111;
	cursor: pointer;
	padding: 0 4px;
}

.ibrahim-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	flex: 1;
	-webkit-overflow-scrolling: touch;
}

.ibrahim-cat-list li {
	border-bottom: 1px solid #efefef;
}

.ibrahim-cat-list a,
.ibrahim-cat-list button.ibrahim-cat-drill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 16px;
	font-size: 15px;
	line-height: 1.35;
	color: #111;
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
}

.ibrahim-cat-list a:hover,
.ibrahim-cat-list button.ibrahim-cat-drill:hover {
	background: #f7f7f7;
}

.ibrahim-cat-chevron {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-top: 2px solid #999;
	border-right: 2px solid #999;
	transform: rotate(45deg);
	margin-left: 12px;
}

/* Header trigger (shortcode) */
.ibrahim-cat-sidebar-trigger-wrap a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}

.ibrahim-cat-sidebar-trigger-wrap .wd-tools-text {
	font-weight: 600;
	letter-spacing: 0.02em;
}
