/* ---------------------------------------------------------
   ویژگی‌های محصول پیشرفته نت‌افزار - Frontend
   نسخه ظاهری سورمه‌ای
   --------------------------------------------------------- */

.naf-pfs-summary-box,
.naf-pfs-tab-content {
	direction: rtl;
	font-family: inherit;
	box-sizing: border-box;
}

.naf-pfs-summary-box *,
.naf-pfs-tab-content * {
	box-sizing: border-box;
}

/* =========================================================
   کادر خلاصه ویژگی‌ها زیر توضیحات کوتاه محصول
   ========================================================= */

.naf-pfs-summary-box {
	margin: 18px 0 14px;
	padding: 14px;
	background: #f3f5fc;
	border: 1px solid #d9def0;
	border-right: 4px solid #00008b;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(0, 0, 139, 0.05);
}

/* کارت‌های 5 ویژگی کلیدی */
.naf-pfs-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px;
}

.naf-pfs-summary-card {
	min-width: 0;
	padding: 10px 11px;
	background: #ffffff;
	border: 1px solid #e0e4f1;
	border-radius: 9px;
	box-shadow: 0 2px 7px rgba(0, 0, 139, 0.035);
}

.naf-pfs-summary-label {
	display: block;
	margin-bottom: 4px;
	color: #536174;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.6;
}

.naf-pfs-summary-value {
	display: block;
	overflow: hidden;
	color: #17213a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.8;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* =========================================================
   دکمه مشاهده ویژگی‌ها
   ========================================================= */

.naf-pfs-view-features-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 38px;
	margin-top: 13px;
	padding: 8px 16px;
	color: #ffffff !important;
	background: #00008b !important;
	border: 1px solid #00008b !important;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none !important;
	box-shadow: 0 3px 8px rgba(0, 0, 139, 0.2);
	transition: all 0.2s ease;
}

.naf-pfs-view-features-btn:hover,
.naf-pfs-view-features-btn:focus {
	color: #ffffff !important;
	background: #000066 !important;
	border-color: #000066 !important;
	box-shadow: 0 5px 12px rgba(0, 0, 139, 0.3);
	transform: translateY(-1px);
}

.naf-pfs-btn-arrow {
	font-size: 17px;
	line-height: 1;
}

/* =========================================================
   تب کامل «ویژگی‌ها»
   ========================================================= */

/*
 * پس‌زمینه کامل پشت همه ردیف‌ها؛
 * مطابق درخواست، فقط متن‌ها رنگی نیستند و کل کادر تب زمینه دارد.
 */
.naf-pfs-tab-content,
#tab-naf-pfs-features {
	padding: 14px;
	background: #f3f5fc;
	border: 1px solid #d9def0;
	border-right: 4px solid #00008b;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(0, 0, 139, 0.04);
}

/*
 * جلوگیری از فاصله بسیار زیاد بین عنوان و مقدار:
 * جدول دارای عرض ثابت و دو ستون مشخص است.
 */
.naf-pfs-features-table,
#tab-naf-pfs-features table.shop_attributes {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 9px !important;
	table-layout: fixed !important;
	direction: rtl;
	background: transparent !important;
	border: 0 !important;
}

/*
 * هر ردیف یک کادر کامل با رنگ پس‌زمینه دارد.
 * display: table-row نگه داشته شده تا با قالب Woodmart تداخل نکند.
 */
.naf-pfs-features-table tr,
#tab-naf-pfs-features table.shop_attributes tr {
	background: #eaf0fb !important;
}

/* ردیف‌های زوج با سورمه‌ای روشن */
.naf-pfs-features-table .naf-pfs-feature-row-0 th,
.naf-pfs-features-table .naf-pfs-feature-row-0 td,
#tab-naf-pfs-features table.shop_attributes tr:nth-child(odd) th,
#tab-naf-pfs-features table.shop_attributes tr:nth-child(odd) td {
	background: #eaf0fb !important;
	border-top: 1px solid #d6e0f1 !important;
	border-bottom: 1px solid #d6e0f1 !important;
}

/* ردیف‌های فرد با سورمه‌ای ملایم‌تر */
.naf-pfs-features-table .naf-pfs-feature-row-1 th,
.naf-pfs-features-table .naf-pfs-feature-row-1 td,
#tab-naf-pfs-features table.shop_attributes tr:nth-child(even) th,
#tab-naf-pfs-features table.shop_attributes tr:nth-child(even) td {
	background: #f4f6fc !important;
	border-top: 1px solid #e0e5f0 !important;
	border-bottom: 1px solid #e0e5f0 !important;
}

/*
 * ستون عنوان:
 * در سمت راست با عرض ثابت 32 درصد قرار می‌گیرد.
 */
.naf-pfs-features-table th,
#tab-naf-pfs-features table.shop_attributes th {
	width: 32% !important;
	padding: 13px 16px !important;
	color: #00008b !important;
	background-clip: padding-box !important;
	border-top-right-radius: 9px !important;
	border-bottom-right-radius: 9px !important;
	border-right: 1px solid #d6def0 !important;
	border-left: 0 !important;
	text-align: right !important;
	vertical-align: middle !important;
	font-size: 13px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 1.8 !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: break-word !important;
}

/*
 * ستون مقدار:
 * از ابتدای ستون خودش شروع می‌شود؛
 * بنابراین دیگر مانند تصویر، به انتهای بسیار دورِ سمت چپ نمی‌چسبد.
 */
.naf-pfs-features-table td,
#tab-naf-pfs-features table.shop_attributes td {
	width: 68% !important;
	padding: 13px 16px !important;
	color: #27334b !important;
	background-clip: padding-box !important;
	border-top-left-radius: 9px !important;
	border-bottom-left-radius: 9px !important;
	border-right: 0 !important;
	border-left: 0 !important;
	text-align: right !important;
	vertical-align: middle !important;
	font-size: 13px !important;
	font-style: normal !important;
	font-weight: 500 !important;
	line-height: 1.9 !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: anywhere !important;
}

/* حذف فاصله اضافی پیش‌فرض ووکامرس در مقدار ویژگی */
.naf-pfs-features-table td p,
#tab-naf-pfs-features table.shop_attributes td p {
	margin: 0 !important;
	padding: 0 !important;
	color: inherit !important;
	font-size: inherit !important;
	font-style: normal !important;
	line-height: inherit !important;
}

/* =========================================================
   نسخه موبایل
   - عنوان و مقدار همچنان کنار هم می‌مانند.
   - متن بلند در همان ستون مقدار، به خط بعدی می‌رود.
   ========================================================= */

@media (max-width: 767px) {

	/* کارت‌های خلاصه زیر توضیحات */
	.naf-pfs-summary-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.naf-pfs-summary-box {
		padding: 11px;
	}

	.naf-pfs-summary-card {
		padding: 9px;
	}

	.naf-pfs-summary-label {
		font-size: 10.5px;
	}

	.naf-pfs-summary-value {
		font-size: 11.5px;
	}

	/* کادر اصلی تب */
	.naf-pfs-tab-content,
	#tab-naf-pfs-features {
		padding: 9px;
		border-right-width: 3px;
		border-radius: 10px;
	}

	.naf-pfs-features-table,
	#tab-naf-pfs-features table.shop_attributes {
		border-spacing: 0 7px !important;
	}

	/*
	 * عنوان و مقدار کنار هم باقی می‌مانند؛
	 * عنوان 38٪ و مقدار 62٪ از عرض ردیف را می‌گیرند.
	 */
	.naf-pfs-features-table th,
	#tab-naf-pfs-features table.shop_attributes th {
		width: 38% !important;
		padding: 11px 10px !important;
		font-size: 12px !important;
		line-height: 1.8 !important;
	}

	.naf-pfs-features-table td,
	#tab-naf-pfs-features table.shop_attributes td {
		width: 62% !important;
		padding: 11px 10px !important;
		font-size: 12px !important;
		line-height: 1.9 !important;
	}

	.naf-pfs-view-features-btn {
		width: 100%;
		min-height: 40px;
		margin-top: 11px;
	}
}

/* نمایش تک‌ستونی کارت‌های خلاصه در نمایشگرهای خیلی کوچک */
@media (max-width: 380px) {
	.naf-pfs-summary-grid {
		grid-template-columns: 1fr;
	}
}
