/* ==========================================================
   DIGBANG CATEGORY PRODUCTS
========================================================== */

.db-category-products {
	width: 1320px;
	max-width: calc(100% - 64px);

	margin: 88px auto 0;

	direction: rtl;
}


/* ==========================================================
   PRODUCTS GRID
========================================================== */

.db-category-products__grid {
	display: grid;

	grid-template-columns: repeat(4, 312px);

	column-gap: 24px;
	row-gap: 24px;

	width: 100%;

	margin: 0;
	padding: 0;

	justify-content: center;
}


/* ==========================================================
   PRODUCT CARD
========================================================== */

.db-category-products__grid .db-shop-product-card {
	width: 312px;
}


/* ==========================================================
   LOADING
========================================================== */

.db-category-products__grid.is-loading {
	opacity: 0.5;

	pointer-events: none;
}


/* ==========================================================
   EMPTY STATE
========================================================== */

.db-category-products__empty {
	grid-column: 1 / -1;

	width: 100%;

	margin: 0;
	padding: 40px 0;

	font-family: Vazirmatn, sans-serif;
	font-size: 16px;
	font-weight: 400;

	text-align: center;

	color: #8E7D71;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1199px) {

	.db-category-products {
		width: calc(100% - 48px);
		max-width: none;

		margin-top: 64px;
	}


	.db-category-products__grid {
		grid-template-columns:
			repeat(
				2,
				312px
			);

		column-gap: 20px;
		row-gap: 20px;

		justify-content: center;
	}

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

	.db-category-products {
		width: calc(100% - 32px);
		max-width: none;

		margin: 40px auto 0;
	}


	.db-category-products__grid {
		display: grid;

		grid-template-columns: 1fr;

		width: 100%;

		column-gap: 0;
		row-gap: 16px;

		justify-items: center;
	}


	.db-category-products__grid .db-shop-product-card {
		width: 312px;
		max-width: 100%;
	}


	.db-category-products__empty {
		padding: 32px 0;

		font-size: 14px;
	}

}