/* پلاس ابر باران - ویجت منوی دسته‌بندی همبرگری */

.abrbaran-hbm-wrapper {
	position: relative;
	display: inline-block;
}

.abrbaran-hbm-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 48px;
	height: 48px;
	padding: 0 12px;
	border: none;
	background-color: #f2f2f2;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease;
	line-height: 1;
}

.abrbaran-hbm-toggle .abrbaran-hbm-icon-active {
	display: none;
}

.abrbaran-hbm-wrapper.abrbaran-open .abrbaran-hbm-icon-normal {
	display: none;
}

.abrbaran-hbm-wrapper.abrbaran-open .abrbaran-hbm-icon-active {
	display: inline-flex;
}

.abrbaran-hbm-toggle i,
.abrbaran-hbm-toggle svg {
	line-height: 1;
}

/* اورلی */
.abrbaran-hbm-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, .5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s ease;
	z-index: 999998;
}

.abrbaran-hbm-wrapper.abrbaran-open .abrbaran-hbm-overlay {
	opacity: 1;
	visibility: visible;
}

/* سایدبار */
.abrbaran-hbm-sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	width: 320px;
	max-width: 90vw;
	background-color: #fff;
	z-index: 999999;
	transition: transform .35s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.abrbaran-side-right .abrbaran-hbm-sidebar {
	right: 0;
	transform: translateX(100%);
}

.abrbaran-side-right.abrbaran-open .abrbaran-hbm-sidebar {
	transform: translateX(0);
}

.abrbaran-side-left .abrbaran-hbm-sidebar {
	left: 0;
	transform: translateX(-100%);
}

.abrbaran-side-left.abrbaran-open .abrbaran-hbm-sidebar {
	transform: translateX(0);
}

/* هدر سایدبار */
.abrbaran-hbm-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background-color: #f7f7f7;
	flex-shrink: 0;
}

.abrbaran-hbm-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #222;
}

.abrbaran-hbm-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: #666;
	cursor: pointer;
	border-radius: 50%;
	flex-shrink: 0;
	transition: background-color .2s ease;
}

.abrbaran-hbm-close:hover {
	background-color: rgba(0, 0, 0, .06);
}

/* لوگوی بالای سایدبار */
.abrbaran-hbm-logo {
	display: flex;
	align-items: center;
	padding: 20px 20px 15px;
	flex-shrink: 0;
}

.abrbaran-hbm-logo.abrbaran-hbm-logo-divider {
	border-bottom: 1px solid #eee;
}

.abrbaran-hbm-logo img {
	width: 120px;
	max-width: 100%;
	height: auto;
	display: block;
}

.abrbaran-hbm-logo a {
	display: inline-flex;
}

/* بدنه سایدبار */
.abrbaran-hbm-body {
	overflow-y: auto;
	flex-grow: 1;
	padding: 8px 0;
}

.abrbaran-hbm-all-link {
	display: block;
	padding: 12px 20px;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid #eee;
}

.abrbaran-hbm-list,
.abrbaran-hbm-submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.abrbaran-hbm-list > li,
.abrbaran-hbm-submenu > li {
	position: relative;
	border-bottom: 1px solid #eeeeee;
}

.abrbaran-hbm-list > li > a,
.abrbaran-hbm-submenu > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 20px;
	text-decoration: none;
	color: #333;
	transition: background-color .2s ease, color .2s ease;
}

.abrbaran-hbm-item-label {
	flex-grow: 1;
}

.abrbaran-hbm-count {
	font-size: 12px;
	color: #999;
	background-color: rgba(0, 0, 0, .05);
	border-radius: 20px;
	padding: 1px 8px;
	flex-shrink: 0;
}

.abrbaran-hbm-expand {
	position: absolute;
	top: 0;
	inset-inline-end: 0;
	width: 44px;
	height: 100%;
	border: none;
	background: transparent;
	color: #999;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .25s ease;
}

.abrbaran-has-children.abrbaran-expanded > .abrbaran-hbm-expand {
	transform: rotate(180deg);
}

.abrbaran-hbm-submenu {
	display: none;
	background-color: #fafafa;
}

.abrbaran-has-children.abrbaran-expanded > .abrbaran-hbm-submenu {
	display: block;
}

.abrbaran-hbm-submenu a {
	padding-inline-start: 36px;
	font-size: 13px;
	color: #555;
}

.abrbaran-hbm-notice {
	padding: 10px;
	background: #fff3cd;
	color: #664d03;
	border: 1px solid #ffe69c;
	border-radius: 6px;
	font-size: 13px;
}

/* حالت باز - جلوگیری از اسکرول بدنه صفحه */
body.abrbaran-hbm-locked {
	overflow: hidden;
}

@media (max-width: 480px) {
	.abrbaran-hbm-sidebar {
		width: 85vw;
	}
}
