/* استایل کارت فنی و پنجره جزئیات بین‌المللی قطعه - پارتینوپارتز */
.ptn-card-tech-strip {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.76rem;
}
.ptn-card-tech-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.ptn-grade-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
}
.ptn-grade-Genuine { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.ptn-grade-OEM { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.ptn-grade-Aftermarket { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.ptn-grade-Economy { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.ptn-oem-mini {
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.73rem;
}
.ptn-detail-trigger-btn {
  width: 100%;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.ptn-detail-trigger-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* مودال اختصاصی شناسنامه فنی قطعه */
.ptn-pd-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10050;
  padding: 16px;
  direction: rtl;
}
.ptn-pd-backdrop.open {
  display: flex;
}
.ptn-pd-dialog {
  background: #ffffff;
  color: #0f172a;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid #e2e8f0;
}
.ptn-pd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: #0f172a;
  color: #f8fafc;
}
.ptn-pd-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.ptn-pd-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.ptn-pd-close:hover {
  background: #ef4444;
}
.ptn-pd-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ptn-pd-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 768px) {
  .ptn-pd-hero { grid-template-columns: 1fr; }
}
.ptn-pd-img-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
}
.ptn-pd-img-box img {
  max-width: 100%;
  max-height: 210px;
  object-fit: contain;
  border-radius: 8px;
}
.ptn-pd-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 540px) {
  .ptn-pd-meta-grid { grid-template-columns: 1fr; }
}
.ptn-pd-meta-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
}
.ptn-pd-meta-label {
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 3px;
}
.ptn-pd-meta-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ptn-copy-btn {
  background: #e2e8f0;
  border: none;
  color: #334155;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.ptn-copy-btn:hover {
  background: #2563eb;
  color: #fff;
}
.ptn-cross-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.ptn-cross-chip {
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.ptn-cross-chip:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}
.ptn-pd-sec-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ptn-pd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.ptn-pd-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 9px 12px;
  text-align: right;
  border-bottom: 1px solid #cbd5e1;
}
.ptn-pd-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}
.ptn-pd-table tr:nth-child(even) td {
  background: #f8fafc;
}
.ptn-fit-match-banner {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.ptn-pd-footer {
  padding: 14px 22px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ptn-pd-buy-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.ptn-pd-buy-btn:hover { background: #1d4ed8; }
.ptn-pd-buy-btn:disabled { background: #94a3b8; cursor: not-allowed; }

/* بلوک تزریق‌شده داخل مودال پیش‌فرض قالب */
.ptn-in-modal-datasheet {
  margin-top: 16px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  direction: rtl;
  text-align: right;
}

/* PTN_HIDE_SKU_OEM */
.ptn-oem-mini,
.ptn-pd-cross-box {
  display: none !important;
}
