/* ==========================================================
   DIGBANG CATEGORY SORTING
========================================================== */

.db-category-sorting {
	display: flex;
	align-items: flex-start;

	width: 1320px;
	max-width: calc(100% - 64px);

	margin: 64px auto 0;

	direction: rtl;
}


/* ==========================================================
   LABEL
========================================================== */

.db-category-sorting__label {
	flex: 0 0 auto;

	margin-left: 32px;
	padding: 0;

	font-family: Vazirmatn, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;

	color: #3D3631;

	white-space: nowrap;
}


/* ==========================================================
   SORTING AREA
========================================================== */

.db-category-sorting__area {
	flex: 1;

	min-width: 0;
}


/* ==========================================================
   TABS
========================================================== */

.db-category-sorting__tabs {
	display: flex;
	align-items: flex-start;

	gap: 48px;

	height: 48px;
}


/* ==========================================================
   TAB
========================================================== */

.db-category-sorting__tab {
	position: relative;

	display: flex;
	align-items: flex-start;

	height: 48px;

	margin: 0;
	padding: 0;

	background: transparent;

	border: none;

	font-family: Vazirmatn, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;

	color: #8E7D71;

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;

	white-space: nowrap;

	transition: color 0.2s ease;
}


/* ==========================================================
   TAB HOVER
========================================================== */

.db-category-sorting__tab:hover {
	color: #CC5200;
}


/* ==========================================================
   ACTIVE TAB
========================================================== */

.db-category-sorting__tab.is-active {
	font-weight: 600;

	color: #CC5200;
}


/* ==========================================================
   ACTIVE UNDERLINE
========================================================== */

.db-category-sorting__tab.is-active::after {
	content: "";

	position: absolute;

	right: 0;
	left: 0;
	bottom: -3px;

	height: 3px;

	background: #CC5200;

	border-radius: 999px;

	z-index: 2;
}


/* ==========================================================
   BOTTOM LINE
========================================================== */

.db-category-sorting__line {
	width: 100%;
	height: 3px;

	background: #E8E8E8;
}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

.db-category-sorting__tab:focus-visible {
	outline: 2px solid #CC5200;
	outline-offset: 4px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1199px) {

	.db-category-sorting {
		width: calc(100% - 48px);
		max-width: none;

		margin-top: 48px;
	}

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

	.db-category-sorting {
		display: flex;
		flex-direction: column;
		align-items: stretch;

		width: calc(100% - 32px);
		max-width: none;

		margin: 32px auto 0;
	}


	.db-category-sorting__label {
		width: 100%;

		margin: 0 0 16px;

		font-size: 15px;
		line-height: 1.5;

		text-align: right;
	}


	.db-category-sorting__area {
		width: 100%;

		min-width: 0;

		overflow: hidden;
	}


	.db-category-sorting__tabs {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;

		width: 100%;
		height: 44px;

		gap: 24px;

		overflow-x: auto;
		overflow-y: hidden;

		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;

		direction: rtl;
	}


	.db-category-sorting__tabs::-webkit-scrollbar {
		display: none;
	}


	.db-category-sorting__tab {
		flex: 0 0 auto;

		height: 44px;

		font-size: 14px;
		line-height: 22px;
	}


	.db-category-sorting__line {
		height: 3px;
	}

}