/**
 * NexaShop Full Product Technical Specifications Styling
 * Precision match for media_1792584096052_ecf02567.png (Collapsed)
 * and media_1792584096072_3093d06a.png (Expanded).
 */

.nexashop-product-specifications-wrapper {
	--nx-specs-label-width: 240px;
	--nx-specs-label-bg: #f8fafc;
	--nx-specs-label-color: #64748b;
	--nx-specs-value-bg: #f8fafc;
	--nx-specs-value-color: #1e293b;
	--nx-specs-box-radius: 10px;
	--nx-specs-row-gap: 10px;
	--nx-specs-col-gap: 12px;
	--nx-specs-positive-bg: #f0fdf4;
	--nx-specs-positive-color: #22c55e;
	--nx-specs-negative-bg: #fef2f2;
	--nx-specs-negative-color: #ef4444;
	--nx-specs-color-text: #ea580c;
	--nx-specs-warranty-text: #dc2626;

	width: 100%;
	direction: rtl;
	box-sizing: border-box;
	background-color: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 20px;
	padding: 24px 28px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	margin-bottom: 30px;
	scroll-margin-top: 85px;
	position: relative;
	font-family: inherit;
}

/* ====================================================
   1. Header Section: Title & Subtitle (مشخصات + نام محصول)
   ==================================================== */
.nexashop-specs-header-section {
	margin-bottom: 22px;
	text-align: right;
}

.nexashop-specs-title {
	font-size: 19px;
	font-weight: 800;
	color: #1e293b;
	margin: 0;
	line-height: 1.3;
	letter-spacing: -0.3px;
}

.nexashop-specs-subtitle {
	font-size: 12.5px;
	font-weight: 500;
	color: #94a3b8;
	margin: 6px 0 0 0;
	line-height: 1.5;
}

/* ====================================================
   2. Group Sections (سرفصل گروه‌ها مانند «ابعاد و اندازه‌ها»)
   ==================================================== */
.nexashop-specs-groups-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
}

.nexashop-specs-group {
	margin-bottom: 22px;
	width: 100%;
	box-sizing: border-box;
}

.nexashop-specs-group:last-child {
	margin-bottom: 6px;
}

.nexashop-specs-group.is-collapsed {
	display: none;
}

.nexashop-specs-group-head {
	margin-bottom: 12px;
	text-align: right;
}

.nexashop-specs-group-name {
	font-size: 15px;
	font-weight: 700;
	color: #1e293b;
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	line-height: 1.4;
}

/* Purple Triangle Arrow Bullet (◀) */
.nexashop-specs-group-arrow {
	width: 10px;
	height: 10px;
	color: #6366f1;
	flex-shrink: 0;
	display: inline-block;
}

/* ====================================================
   3. Specification Rows & Soft-Grey Boxes
   ==================================================== */
.nexashop-specs-rows {
	display: flex;
	flex-direction: column;
	gap: var(--nx-specs-row-gap, 10px);
	width: 100%;
	box-sizing: border-box;
}

.nexashop-specs-row {
	display: flex;
	align-items: stretch;
	gap: var(--nx-specs-col-gap, 12px);
	width: 100%;
	box-sizing: border-box;
}

.nexashop-specs-row.is-collapsed {
	display: none;
}

/* Right Box: Attribute Label (باکس طوسی سمت راست) */
.nexashop-specs-box-label {
	flex: 0 0 var(--nx-specs-label-width, 240px);
	width: var(--nx-specs-label-width, 240px);
	background-color: var(--nx-specs-label-bg, #f8fafc);
	border-radius: var(--nx-specs-box-radius, 10px);
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 8px 14px;
	box-sizing: border-box;
	font-size: 13px;
	font-weight: 600;
	color: var(--nx-specs-label-color, #64748b);
	line-height: 1.4;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Left Box: Attribute Value (باکس طوسی سمت چپ) */
.nexashop-specs-box-value {
	flex: 1 1 auto;
	background-color: var(--nx-specs-value-bg, #f8fafc);
	border-radius: var(--nx-specs-box-radius, 10px);
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 8px 18px;
	box-sizing: border-box;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--nx-specs-value-color, #1e293b);
	line-height: 1.6;
	word-break: break-word;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* ====================================================
   4. Smart Status Colorings (مطابق تصویر ۳)
   ==================================================== */
/* Positive: Soft Green Pill with Checkmark */
.nexashop-specs-box-value.type-positive {
	background-color: var(--nx-specs-positive-bg, #f0fdf4);
	color: var(--nx-specs-positive-color, #22c55e);
}

.nx-specs-badge-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
}

.nx-specs-badge-check svg {
	stroke: var(--nx-specs-positive-color, #22c55e);
}

/* Negative: Soft Red Pill with Cross */
.nexashop-specs-box-value.type-negative {
	background-color: var(--nx-specs-negative-bg, #fef2f2);
	color: var(--nx-specs-negative-color, #ef4444);
}

.nx-specs-badge-cross {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
}

.nx-specs-badge-cross svg {
	stroke: var(--nx-specs-negative-color, #ef4444);
}

/* Color Attribute (Orange/Coral text) */
.nexashop-specs-box-value.type-color {
	color: var(--nx-specs-color-text, #ea580c);
}

/* Warranty Attribute (Vivid Red bold text) */
.nexashop-specs-box-value.type-warranty {
	color: var(--nx-specs-warranty-text, #dc2626);
	font-weight: 800;
}

/* ====================================================
   5. Toggle Button: "مشاهده بیشتر ∨" / "بستن ∧"
   ==================================================== */
.nexashop-specs-toggle-wrap {
	margin-top: 18px;
	display: flex;
	width: 100%;
	box-sizing: border-box;
}

.nexashop-specs-toggle-wrap.align-start {
	justify-content: flex-end; /* In RTL, left is end */
}

.nexashop-specs-toggle-wrap.align-center {
	justify-content: center;
}

.nexashop-specs-toggle-wrap.align-end {
	justify-content: flex-start; /* In RTL, right is start */
}

.nexashop-btn-toggle-specs {
	background: transparent;
	border: none;
	font-size: 14px;
	font-weight: 700;
	color: #6366f1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 8px;
	outline: none;
	font-family: inherit;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.nexashop-btn-toggle-specs:hover {
	color: #4f46e5;
	opacity: 0.9;
}

.nexashop-btn-toggle-specs .chevron-icon {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nexashop-btn-toggle-specs.is-expanded .chevron-icon {
	transform: rotate(180deg);
}

/* ====================================================
   6. Responsive Layout
   ==================================================== */
@media (max-width: 768px) {
	.nexashop-product-specifications-wrapper {
		padding: 18px 16px;
		border-radius: 16px;
	}

	.nexashop-specs-box-label {
		flex: 0 0 36%;
		width: 36%;
		font-size: 12px;
		padding: 8px 10px;
	}

	.nexashop-specs-box-value {
		font-size: 12.5px;
		padding: 8px 12px;
	}
}

@media (max-width: 480px) {
	.nexashop-specs-box-label {
		flex: 0 0 40%;
		width: 40%;
		font-size: 11.5px;
	}

	.nexashop-specs-box-value {
		font-size: 12px;
	}
}
