.jtp-weight-box, .jtp-qty-box {
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 16px;
	margin: 16px 0;
	background: #fafafa;
}
.jtp-label { display:block; font-weight:600; margin-bottom:8px; }

/* عدد قابل ویرایش بالای نوار */
.jtp-weight-number-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}
.jtp-weight-number {
	width: 120px;
	height: 42px;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	border: 2px solid #4a7c59;
	border-radius: 8px;
	padding: 4px 8px;
	direction: ltr;
}

/* نوار اسلایدر بزرگ‌تر */
.jtp-weight-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}
.jtp-weight-range {
	flex: 1;
	width: 100%;
	height: 28px;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	cursor: pointer;
}
.jtp-weight-range::-webkit-slider-runnable-track {
	height: 10px;
	border-radius: 5px;
	background: linear-gradient(90deg, #c8e0d0 0%, #4a7c59 100%);
}
.jtp-weight-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #4a7c59;
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,.25);
	margin-top: -9px;
	cursor: grab;
}
.jtp-weight-range::-moz-range-track {
	height: 10px;
	border-radius: 5px;
	background: linear-gradient(90deg, #c8e0d0 0%, #4a7c59 100%);
}
.jtp-weight-range::-moz-range-thumb {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #4a7c59;
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,.25);
	cursor: grab;
}

.jtp-weight-formatted { margin-top: 12px; text-align: center; line-height: 1.4; }
.jtp-weight-formatted-main {
	display: block;
	font-size: 28px;
	font-weight: 800;
	color: #2c3e50;
	direction: ltr;
}
.jtp-weight-formatted-kg {
	display: block;
	font-size: 14px;
	color: #777;
	margin-top: 2px;
}

.jtp-weight-tier-indicator, .jtp-qty-tier-indicator {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}
.jtp-tier-tag {
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 20px;
	background: #eee;
	color: #777;
	transition: .2s;
}
.jtp-tier-tag.active {
	background: #4a7c59;
	color: #fff;
	font-weight: 600;
}

/* قیمت تمام‌شده */
.jtp-price-result {
	margin-top: 16px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 16px;
	color: #333;
	text-align: center;
}
.jtp-price-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #666;
	margin-bottom: 4px;
}
.jtp-price-final {
	display: block;
	font-size: 22px;
	font-weight: 800;
	color: #2c3e50;
}
.jtp-note {
	font-size: 13px;
	color: #8a6d3b;
	background: #fcf8e3;
	padding: 8px 10px;
	border-radius: 6px;
	margin-top: 8px;
	text-align: right;
}
.jtp-saving {
	font-size: 13px;
	color: #155724;
	background: #d4edda;
	padding: 8px 10px;
	border-radius: 6px;
	margin-top: 6px;
	text-align: right;
}

/* ردیف تعداد + دکمه افزودن به سبد (داخل باکس) */
.jtp-cart-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed #ddd;
}
.jtp-unified-box .jtp-cart-row .quantity {
	margin: 0 !important;
	float: none !important;
}
.jtp-unified-box .jtp-cart-row .quantity .qty,
.jtp-unified-box .jtp-cart-row input.qty {
	width: 70px;
	height: 44px;
	text-align: center;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 8px;
}
.jtp-unified-box .jtp-cart-row .single_add_to_cart_button,
.jtp-unified-box .jtp-cart-row button.button {
	flex: 1;
	min-width: 140px;
	height: 44px;
	margin: 0 !important;
	border-radius: 8px !important;
	font-weight: 700;
}

/* موبایل */
@media (max-width: 480px) {
	.jtp-cart-row {
		flex-direction: column;
		align-items: stretch;
	}
	.jtp-unified-box .jtp-cart-row .single_add_to_cart_button,
	.jtp-unified-box .jtp-cart-row button.button {
		width: 100%;
	}
}

/* دکمه‌های کم/زیاد تعداد داخل باکس */
.jtp-unified-box .jtp-cart-row .quantity {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center;
	gap: 0;
	margin: 0 !important;
	float: none !important;
	width: auto !important;
	min-width: 120px;
	height: 44px;
	border: 1px solid #ccc;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.jtp-unified-box .jtp-cart-row .quantity .qty,
.jtp-unified-box .jtp-cart-row input.qty {
	width: 52px !important;
	min-width: 52px !important;
	height: 44px !important;
	line-height: 44px !important;
	margin: 0 !important;
	padding: 0 4px !important;
	border: none !important;
	border-left: 1px solid #eee !important;
	border-right: 1px solid #eee !important;
	border-radius: 0 !important;
	text-align: center !important;
	font-size: 16px !important;
	box-shadow: none !important;
	-moz-appearance: textfield;
}
.jtp-unified-box .jtp-cart-row .quantity .qty::-webkit-outer-spin-button,
.jtp-unified-box .jtp-cart-row .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
/* دکمه‌های + و - تم‌های رایج */
.jtp-unified-box .jtp-cart-row .quantity .plus,
.jtp-unified-box .jtp-cart-row .quantity .minus,
.jtp-unified-box .jtp-cart-row .quantity button,
.jtp-unified-box .jtp-cart-row .quantity .qib-button,
.jtp-unified-box .jtp-cart-row .quantity .button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 40px !important;
	min-width: 40px !important;
	height: 44px !important;
	line-height: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: #f0f0f0 !important;
	color: #333 !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	float: none !important;
}
.jtp-unified-box .jtp-cart-row .quantity .plus:hover,
.jtp-unified-box .jtp-cart-row .quantity .minus:hover,
.jtp-unified-box .jtp-cart-row .quantity button:hover {
	background: #e0e0e0 !important;
}
.jtp-unified-box .jtp-cart-row .single_add_to_cart_button,
.jtp-unified-box .jtp-cart-row button.single_add_to_cart_button {
	flex: 1 1 auto !important;
	min-width: 140px !important;
	height: 44px !important;
	line-height: 44px !important;
	padding: 0 16px !important;
	margin: 0 !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* دکمه‌های + / − وزن */
.jtp-weight-number-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	margin-bottom: 12px;
}
.jtp-weight-number-wrap .jtp-weight-minus,
.jtp-weight-number-wrap .jtp-weight-plus {
	width: 44px;
	height: 44px;
	border: 2px solid #4a7c59;
	background: #4a7c59;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
}
.jtp-weight-number-wrap .jtp-weight-minus {
	border-radius: 8px 0 0 8px;
}
.jtp-weight-number-wrap .jtp-weight-plus {
	border-radius: 0 8px 8px 0;
}
.jtp-weight-number-wrap .jtp-weight-minus:hover,
.jtp-weight-number-wrap .jtp-weight-plus:hover {
	background: #3a6347;
}
.jtp-weight-number-wrap .jtp-weight-number {
	width: 140px;
	height: 44px;
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	border: 2px solid #4a7c59;
	border-left: none;
	border-right: none;
	border-radius: 0;
	padding: 4px 8px;
	direction: ltr;
	background: #fff;
}



/* ========== جالیز: کنترل وزن و تعداد (با اولویت بالا) ========== */
.jtp-unified-box .jtp-weight-number-wrap,
.jtp-weight-box .jtp-weight-number-wrap {
	display: flex !important;
	flex-direction: row !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 0 !important;
	margin: 0 auto 14px !important;
	width: auto !important;
	max-width: 100% !important;
	direction: ltr !important;
}
.jtp-unified-box .jtp-weight-number-wrap .jtp-weight-minus,
.jtp-unified-box .jtp-weight-number-wrap .jtp-weight-plus,
.jtp-weight-box .jtp-weight-number-wrap .jtp-weight-minus,
.jtp-weight-box .jtp-weight-number-wrap .jtp-weight-plus {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 48px !important;
	min-width: 48px !important;
	height: 48px !important;
	border: 2px solid #2d6a4f !important;
	background: #2d6a4f !important;
	color: #fff !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	float: none !important;
	position: relative !important;
	z-index: 2 !important;
	flex-shrink: 0 !important;
}
.jtp-weight-box .jtp-weight-number-wrap .jtp-weight-minus {
	border-radius: 10px 0 0 10px !important;
}
.jtp-weight-box .jtp-weight-number-wrap .jtp-weight-plus {
	border-radius: 0 10px 10px 0 !important;
}
.jtp-unified-box .jtp-weight-number-wrap .jtp-weight-number,
.jtp-weight-box .jtp-weight-number-wrap .jtp-weight-number,
.jtp-weight-box input.jtp-weight-number {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 160px !important;
	min-width: 120px !important;
	max-width: 200px !important;
	height: 48px !important;
	line-height: 48px !important;
	text-align: center !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #1b4332 !important;
	border-top: 2px solid #2d6a4f !important;
	border-bottom: 2px solid #2d6a4f !important;
	border-left: none !important;
	border-right: none !important;
	border-radius: 0 !important;
	padding: 0 8px !important;
	margin: 0 !important;
	background: #fff !important;
	direction: ltr !important;
	box-shadow: none !important;
	-moz-appearance: textfield !important;
	appearance: textfield !important;
	flex: 0 0 auto !important;
}
.jtp-weight-box input.jtp-weight-number::-webkit-outer-spin-button,
.jtp-weight-box input.jtp-weight-number::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

/* تعداد داخل باکس جالیز */
.jtp-unified-box .jtp-cart-row {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: stretch !important;
	gap: 10px !important;
	margin-top: 14px !important;
	padding-top: 14px !important;
	border-top: 1px dashed #d0d0d0 !important;
}
.jtp-unified-box .jtp-cart-row .quantity,
.jtp-unified-box .quantity {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	height: 48px !important;
	min-height: 48px !important;
	border: 1px solid #c5c5c5 !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	background: #fff !important;
	margin: 0 !important;
	float: none !important;
	width: auto !important;
	min-width: 130px !important;
	direction: ltr !important;
}
.jtp-unified-box .quantity .qty,
.jtp-unified-box .jtp-cart-row input.qty,
.jtp-unified-box form.cart input.qty {
	display: block !important;
	width: 56px !important;
	min-width: 56px !important;
	height: 48px !important;
	line-height: 48px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-left: 1px solid #e5e5e5 !important;
	border-right: 1px solid #e5e5e5 !important;
	border-radius: 0 !important;
	text-align: center !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	background: #fff !important;
	box-shadow: none !important;
	-moz-appearance: textfield !important;
}
.jtp-unified-box .quantity .qty::-webkit-outer-spin-button,
.jtp-unified-box .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}
.jtp-unified-box .quantity .plus,
.jtp-unified-box .quantity .minus,
.jtp-unified-box .quantity button.plus,
.jtp-unified-box .quantity button.minus,
.jtp-unified-box .quantity .qib-button,
.jtp-unified-box .jtp-cart-row .quantity button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 44px !important;
	min-width: 44px !important;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: #f3f4f6 !important;
	color: #111 !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	float: none !important;
	text-indent: 0 !important;
}
.jtp-unified-box .quantity .plus:hover,
.jtp-unified-box .quantity .minus:hover {
	background: #e5e7eb !important;
}
.jtp-unified-box .jtp-cart-row .single_add_to_cart_button,
.jtp-unified-box button.single_add_to_cart_button {
	flex: 1 1 160px !important;
	height: 48px !important;
	min-height: 48px !important;
	line-height: 48px !important;
	padding: 0 18px !important;
	margin: 0 !important;
	border-radius: 10px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
}


/* عدد تعداد: رنگ مشکی اجباری (تم‌ها اغلب سفید می‌کنند) */
.jtp-unified-box .quantity .qty,
.jtp-unified-box .jtp-cart-row input.qty,
.jtp-unified-box form.cart input.qty,
.jtp-unified-box .quantity input[type="number"],
.jtp-cart-row .quantity .qty,
form.cart .quantity .qty {
	color: #111111 !important;
	-webkit-text-fill-color: #111111 !important;
	opacity: 1 !important;
	background: #ffffff !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	width: 64px !important;
	min-width: 64px !important;
	text-align: center !important;
}
.jtp-unified-box .quantity .plus,
.jtp-unified-box .quantity .minus,
.jtp-cart-row .quantity .plus,
.jtp-cart-row .quantity .minus {
	color: #111111 !important;
	-webkit-text-fill-color: #111111 !important;
}
