/* ========================================
   Best Sellers Section
======================================== */

.db-best-sellers {
	position: relative;

	width: calc(100% - 32px);
	max-width: 1320px;

	margin: 122px auto 0;
	padding: 16px;

	background: #f7efe2;
	border-radius: 28px 0 28px 28px;
}

/* بیرون‌زدگی متصل به بالای سمت راست */
.db-best-sellers__title {
	position: absolute;

	top: -62px;
	right: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 305px;
	height: 62px;

	margin: 0;
	padding: 0 24px;

	background: #f7efe2;
	border-radius: 30px 30px 0 0;

	font-family: Vazirmatn, sans-serif;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.4;
	color: #181512;

	white-space: nowrap;
}

/* محل قرارگیری کارت‌ها */
.db-best-sellers__products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

/* Tablet */
@media (max-width: 1024px) {
	.db-best-sellers {
		margin-top: 100px;
	}

	.db-best-sellers__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile */
@media (max-width: 767px) {
	.db-best-sellers {
		width: calc(100% - 24px);
		margin-top: 82px;
		padding: 12px;

		border-radius: 20px 0 20px 20px;
	}

	.db-best-sellers__title {
		top: -50px;

		width: 230px;
		height: 50px;

		padding: 0 16px;
		border-radius: 22px 22px 0 0;

		font-size: 19px;
	}

	.db-best-sellers__products {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}