.pim-wrap,
.pim-wrap * {
	box-sizing: border-box;
}

.pim-wrap {
	--pim-red: #ed2939;
	--pim-red-dark: #d91f31;
	--pim-blue-gray: #8194a5;
	--pim-text: #313a42;
	--pim-muted: #737f89;
	--pim-line: #e4e7e9;
	--pim-field: #f3f4f5;
	width: 100%;
	background: #f5f5f5;
	color: var(--pim-text);
	font-family: Vazirmatn, IRANSansX, Tahoma, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.75;
	direction: rtl;
	padding: 34px 20px 46px;
}

.pim-container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
}

.pim-page-title {
	margin: 0 0 18px;
	color: #333d45;
	font-size: 25px;
	font-weight: 800;
	line-height: 1.35;
}

.pim-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 285px;
	gap: 34px;
	align-items: start;
}

.pim-form-card {
	min-width: 0;
	padding: 40px 44px 36px;
	background: #fff;
	border: 1px solid #e7e7e7;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(22, 29, 37, 0.13);
}

.pim-form {
	margin: 0;
}

.pim-field {
	display: grid;
	grid-template-columns: 185px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	margin-bottom: 14px;
}

.pim-field > label {
	color: #66727c;
	font-size: 13px;
	font-weight: 500;
}

.pim-required {
	color: var(--pim-red);
}

.pim-control input,
.pim-control textarea {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	border: 1px solid transparent !important;
	outline: none;
	background: var(--pim-field);
	color: #28323a;
	font-family: inherit;
	font-size: 14px;
	box-shadow: none !important;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pim-control input {
	height: 46px;
	padding: 0 19px;
	border-radius: 999px;
}

.pim-control textarea {
	min-height: 112px;
	padding: 13px 19px;
	border-radius: 20px;
	resize: vertical;
}

.pim-control input::placeholder,
.pim-control textarea::placeholder {
	color: #a0a8ae;
	opacity: 1;
}

.pim-control input:focus,
.pim-control textarea:focus {
	border-color: rgba(237, 41, 57, 0.48) !important;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(237, 41, 57, 0.08) !important;
}

.pim-ltr-input {
	direction: ltr;
	text-align: right;
}

.pim-fields-separator {
	height: 28px;
}

.pim-upload-section {
	margin-top: 34px;
}

.pim-upload-section h3 {
	margin: 0 0 7px;
	color: #29343d;
	font-size: 23px;
	font-weight: 800;
	line-height: 1.4;
}

.pim-upload-section > p {
	max-width: 760px;
	margin: 0 0 18px;
	color: #63707a;
	font-size: 13px;
	line-height: 1.8;
}

.pim-uploader {
	max-width: 520px;
}

.pim-file-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.pim-dropzone {
	display: flex;
	min-height: 220px;
	padding: 28px;
	border: 2px dashed var(--pim-red);
	border-radius: 5px;
	background: #fff;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pim-dropzone:hover,
.pim-dropzone:focus,
.pim-dropzone.is-dragover {
	border-color: var(--pim-red-dark);
	background: #fff8f8;
	transform: translateY(-1px);
	outline: none;
}

.pim-dropzone svg {
	width: 48px;
	height: 48px;
	margin-bottom: 13px;
	fill: none;
	stroke: var(--pim-blue-gray);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pim-dropzone strong {
	color: #7a8c9c;
	font-size: 13px;
	font-weight: 600;
}

.pim-dropzone span {
	margin-top: 5px;
	color: #9aa6b0;
	font-size: 11px;
}

.pim-file-error {
	display: none;
	margin-top: 10px;
	padding: 9px 12px;
	border-radius: 6px;
	background: #fff1f2;
	color: #b42332;
	font-size: 12px;
}

.pim-file-error.is-visible {
	display: block;
}

.pim-file-list {
	display: grid;
	gap: 9px;
	margin-top: 12px;
}

.pim-file-item {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 8px 10px;
	border: 1px solid #e7e9eb;
	border-radius: 8px;
	background: #fafafa;
}

.pim-file-thumb {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 6px;
	background: #eceff1;
}

.pim-file-meta {
	min-width: 0;
}

.pim-file-name {
	display: block;
	overflow: hidden;
	color: #35414a;
	font-size: 12px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pim-file-size {
	display: block;
	margin-top: 2px;
	color: #8a959e;
	font-size: 11px;
}

.pim-file-remove {
	display: inline-flex;
	width: 31px;
	height: 31px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff0f1;
	color: var(--pim-red);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	font: inherit;
	font-size: 18px;
	line-height: 1;
}

.pim-file-remove:hover {
	background: var(--pim-red);
	color: #fff;
}

.pim-consent {
	display: grid;
	grid-template-columns: 19px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	margin-top: 28px;
	color: #66717a;
	cursor: pointer;
	font-size: 11px;
	line-height: 1.75;
}

.pim-consent input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pim-checkbox-ui {
	position: relative;
	display: block;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border: 1.5px solid var(--pim-red);
	border-radius: 3px;
	background: #fff;
}

.pim-consent input:checked + .pim-checkbox-ui {
	background: var(--pim-red);
}

.pim-consent input:checked + .pim-checkbox-ui::after {
	position: absolute;
	top: 2px;
	right: 5px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 0 2px 2px;
	content: "";
	transform: rotate(-45deg);
}

.pim-consent input:focus-visible + .pim-checkbox-ui {
	box-shadow: 0 0 0 3px rgba(237, 41, 57, 0.14);
}

.pim-form-message {
	display: none;
	margin-top: 18px;
	padding: 12px 15px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 600;
}

.pim-form-message.is-visible {
	display: block;
}

.pim-form-message.is-success {
	border: 1px solid #b9e4c7;
	background: #edf9f1;
	color: #18723b;
}

.pim-form-message.is-error {
	border: 1px solid #f0bec3;
	background: #fff1f2;
	color: #a51d2b;
}

.pim-submit-row {
	display: flex;
	margin-top: 34px;
	justify-content: center;
}

.pim-submit {
	display: inline-flex;
	min-width: 205px;
	min-height: 47px;
	padding: 10px 25px;
	border: 0;
	border-radius: 999px;
	background: var(--pim-red);
	color: #fff;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	box-shadow: none;
	transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.pim-submit:hover,
.pim-submit:focus {
	background: var(--pim-red-dark);
	color: #fff;
	transform: translateY(-1px);
	outline: none;
}

.pim-submit:disabled {
	cursor: wait;
	opacity: 0.65;
	transform: none;
}

.pim-submit svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pim-sidebar {
	min-width: 0;
	padding-top: 3px;
}

.pim-sidebar h3 {
	margin: 0 0 8px;
	color: #37424a;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.5;
}

.pim-sidebar-text {
	margin-bottom: 15px;
	color: #53616b;
	font-size: 13px;
	line-height: 1.75;
}

.pim-sidebar-text p:first-child {
	margin-top: 0;
}

.pim-sidebar-text p:last-child {
	margin-bottom: 0;
}

.pim-sidebar-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	border-radius: 10px;
	background: #ddd;
	object-fit: cover;
}

.pim-sidebar-placeholder {
	border: 1px solid #dfe3e6;
	background: #eef0f2;
	object-fit: contain;
}

.pim-honeypot {
	position: absolute !important;
	top: -9999px !important;
	right: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

@media (max-width: 960px) {
	.pim-layout {
		grid-template-columns: minmax(0, 1fr) 235px;
		gap: 24px;
	}

	.pim-form-card {
		padding: 32px 28px;
	}

	.pim-field {
		grid-template-columns: 145px minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.pim-wrap {
		padding: 24px 13px 32px;
	}

	.pim-page-title {
		margin-bottom: 14px;
		font-size: 21px;
	}

	.pim-layout {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.pim-form-card {
		width: 100%;
		padding: 24px 16px 26px;
		border-radius: 8px;
	}

	.pim-field {
		display: block;
		margin-bottom: 15px;
	}

	.pim-field > label {
		display: block;
		margin-bottom: 6px;
	}

	.pim-control input {
		height: 45px;
	}

	.pim-fields-separator {
		height: 12px;
	}

	.pim-upload-section {
		margin-top: 28px;
	}

	.pim-upload-section h3 {
		font-size: 20px;
	}

	.pim-uploader {
		max-width: none;
	}

	.pim-dropzone {
		min-height: 185px;
		padding: 22px 14px;
	}

	.pim-consent {
		font-size: 10.5px;
	}

	.pim-submit {
		width: 100%;
	}

	.pim-sidebar {
		width: 100%;
		padding: 20px;
		border: 1px solid #e3e5e7;
		border-radius: 8px;
		background: #fff;
	}

	.pim-sidebar-image {
		max-height: none;
	}
}
