/* ==========================================================
   DIGBANG SHOP SIDEBAR
========================================================== */

.db-shop-sidebar {
	box-sizing: border-box;

	width: 280px;
	height: 610px;

	padding: 40px 35px 0;

	background: #FFFFFF;

	border: 1px solid #F6EDDE;
	border-radius: 12px;

	direction: rtl;
}


/* ==========================================================
   TITLE
========================================================== */

.db-shop-sidebar__title {
	margin: 0;

	font-family: Vazirmatn, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;

	color: #3D3631;

	text-align: right;
}


/* ==========================================================
   DIVIDER
========================================================== */

.db-shop-sidebar__divider {
	width: 208px;
	height: 3px;

	margin-top: 16px;

	background: #F6EDDE;
	border-radius: 999px;
}


/* ==========================================================
   CATEGORY LIST
========================================================== */

.db-shop-sidebar__categories {
	display: flex;
	flex-direction: column;

	gap: 16px;

	margin-top: 32px;
}


/* ==========================================================
   CATEGORY BUTTON
========================================================== */

.db-shop-sidebar__category {
	box-sizing: border-box;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 208px;
	height: 50px;

	margin: 0;
	padding: 12px;

	gap: 4px;

	background: #FFFFFF;

	border: 1px solid #F6EDDE;
	border-radius: 8px;

	font-family: Vazirmatn, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;

	color: #665A51;

	text-align: center;

	cursor: pointer;

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}


/* ==========================================================
   BUTTON TEXT
========================================================== */

.db-shop-sidebar__text {
	display: block;

	min-width: 0;

	text-align: center;
}


/* ==========================================================
   CATEGORY ICON
========================================================== */

.db-shop-sidebar__category .db-shop-sidebar__icon,
.db-shop-sidebar__category > img,
.db-shop-sidebar__category > svg {
	display: none;
}


.db-shop-sidebar__category.is-active .db-shop-sidebar__icon,
.db-shop-sidebar__category.is-active > img,
.db-shop-sidebar__category.is-active > svg {
	display: block;

	width: 24px;
	height: 24px;

	flex: 0 0 24px;

	object-fit: contain;
}


/* ==========================================================
   HOVER
========================================================== */

.db-shop-sidebar__category:hover {
	background: #FDF6F6;

	border-color: #F6EDDE;

	color: #665A51;
}


/* ==========================================================
   ACTIVE / CLICKED
========================================================== */

.db-shop-sidebar__category.is-active {
	background: #F6EDDE;

	border-color: #F6EDDE;

	color: #665A51;
}


.db-shop-sidebar__category.is-active:hover {
	background: #F6EDDE;
}


/* ==========================================================
   REMOVE THEME DEFAULT BUTTON STYLES
========================================================== */

.db-shop-sidebar__category:focus,
.db-shop-sidebar__category:active {
	box-shadow: none;
	outline: none;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

	.db-shop-sidebar {
		width: 100%;
		height: auto;

		padding: 0;

		border: 0;
		border-radius: 0;

		background: transparent;

		overflow: hidden;
	}


	.db-shop-sidebar__title {
		font-size: 20px;
		line-height: 1.5;

		text-align: right;
	}


	.db-shop-sidebar__divider {
		width: 100%;
		height: 1px;

		margin-top: 12px;
	}


	.db-shop-sidebar__categories {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;

		width: 100%;

		gap: 8px;

		margin-top: 16px;
		padding-bottom: 4px;

		overflow-x: auto;
		overflow-y: hidden;

		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;

		direction: rtl;
	}


	.db-shop-sidebar__categories::-webkit-scrollbar {
		display: none;
	}


	.db-shop-sidebar__category {
		flex: 0 0 auto;

		width: auto;
		min-width: 128px;
		height: 44px;

		padding: 0 14px;

		font-size: 14px;
		font-weight: 600;

		border-radius: 8px;

		white-space: nowrap;
	}


	.db-shop-sidebar__category.is-active .db-shop-sidebar__icon,
	.db-shop-sidebar__category.is-active > img,
	.db-shop-sidebar__category.is-active > svg {
		width: 20px;
		height: 20px;

		flex: 0 0 20px;
	}

}