/* ==========================================================
   DIGBANG SHOP SORTING
========================================================== */

.db-shop-sorting {
	width: 1098px;
	max-width: calc(100% - 120px);
	height: 56px;

	margin-top: 88px;
	margin-right: 282px;

	display: flex;
	flex-direction: row;
	align-items: flex-start;

	gap: 56px;

	direction: rtl;
}


/* =======================
   LABEL
======================= */

.db-shop-sorting__label {
	flex: 0 0 auto;

	margin: 0;
	padding: 0;

	font-family: Vazirmatn, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;

	color: #7A6C61;

	white-space: nowrap;
}


/* =======================
   TABS AREA
======================= */

.db-shop-sorting__area {
	position: relative;

	width: 979px;
	height: 56px;

	flex: 0 0 979px;
}


/* =======================
   TABS
======================= */

.db-shop-sorting__tabs {
	position: relative;
	z-index: 2;

	display: flex;
	flex-direction: row;
	align-items: flex-start;

	gap: 56px;

	height: 56px;
}


.db-shop-sorting__tab {
	position: relative;

	height: 56px;

	margin: 0;
	padding: 0 0 24px;

	border: 0;
	outline: 0;

	background: transparent;
	box-shadow: none;

	font-family: Vazirmatn, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;

	color: #8E7D71;

	white-space: nowrap;

	cursor: pointer;
}


.db-shop-sorting__tab:hover,
.db-shop-sorting__tab:focus,
.db-shop-sorting__tab:active {
	background: transparent;
	box-shadow: none;
}


/* =======================
   ACTIVE TAB
======================= */

.db-shop-sorting__tab.is-active {
	font-weight: 700;

	color: #CC3600;
}


.db-shop-sorting__tab.is-active::after {
	content: "";

	position: absolute;

	right: 0;
	bottom: 0;

	width: 100%;
	height: 5px;

	background: #CC5200;
	border-radius: 999px;

	z-index: 3;
}


/* =======================
   BASE LINE
======================= */

.db-shop-sorting__line {
	position: absolute;

	right: 0;
	bottom: 0;

	width: calc(100% + 60px);
	height: 5px;

	background: #DFDFDF;
	border-radius: 999px;

	z-index: 1;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1199px) {

	.db-shop-sorting {
		width: calc(100% - 64px);
		max-width: none;

		margin: 64px auto 0;

		gap: 32px;
	}


	.db-shop-sorting__area {
		width: auto;

		flex: 1 1 auto;
		min-width: 0;
	}


	.db-shop-sorting__tabs {
		gap: 32px;
	}


	.db-shop-sorting__line {
		width: 100%;
	}

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

	.db-shop-sorting {
		display: flex;
		flex-direction: column;
		align-items: stretch;

		width: calc(100% - 32px);
		max-width: none;
		height: auto;

		margin: 32px auto 0;

		gap: 16px;
	}


	/* LABEL */

	.db-shop-sorting__label {
		width: 100%;

		font-size: 16px;
		line-height: 1.5;

		text-align: right;
	}


	/* AREA */

	.db-shop-sorting__area {
		width: 100%;
		height: 48px;

		flex: none;

		overflow: hidden;
	}


	/* TABS */

	.db-shop-sorting__tabs {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;

		width: 100%;
		height: 48px;

		gap: 24px;

		overflow-x: auto;
		overflow-y: hidden;

		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;

		direction: rtl;
	}


	.db-shop-sorting__tabs::-webkit-scrollbar {
		display: none;
	}


	.db-shop-sorting__tab {
		flex: 0 0 auto;

		height: 48px;

		padding-bottom: 18px;

		font-size: 14px;
	}


	/* ACTIVE LINE */

	.db-shop-sorting__tab.is-active::after {
		height: 4px;
	}


	/* BASE LINE */

	.db-shop-sorting__line {
		width: 100%;
		height: 4px;
	}

}