/* استایل یکدست کاتالوگ بین‌المللی قطعات خودرو با تم تیره سایت - پارتینوپارتز */
.pro-cat-wrap {
  direction: rtl;
  font-family: inherit;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}
.pro-cat-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.pro-cat-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pro-cat-badge-intl {
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.4);
  font-size: 0.75rem;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
}
.pro-cat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pro-btn {
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.pro-btn-primary { background: #2563eb; color: #ffffff; }
.pro-btn-primary:hover { background: #1d4ed8; }
.pro-btn-secondary {
  background: rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.28);
}
.pro-btn-secondary:hover { background: rgba(148, 163, 184, 0.25); color: #ffffff; }
.pro-btn-success { background: #059669; color: #ffffff; }
.pro-btn-success:hover { background: #047857; }
.pro-btn-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}
.pro-btn-danger:hover { background: rgba(239, 68, 68, 0.32); color: #ffffff; }
.pro-btn-sm { padding: 5px 10px; font-size: 0.78rem; }

.pro-section-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.pro-section-header {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pro-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.pro-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.pro-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pro-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}
.pro-input, .pro-select, .pro-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #334155;
  border-radius: 9px;
  font-size: 0.86rem;
  background: #0f172a;
  color: #f8fafc;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pro-input::placeholder, .pro-textarea::placeholder {
  color: #64748b;
}
.pro-select option {
  background: #0f172a;
  color: #f8fafc;
}
.pro-input:focus, .pro-select:focus, .pro-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.pro-input:disabled, .pro-select:disabled {
  opacity: 0.6;
  background: #090e1a;
  cursor: not-allowed;
}
.pro-ltr {
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ماتریس سازگاری خودرو */
.pro-fitment-builder {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.7fr 0.7fr 1.2fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .pro-fitment-builder { grid-template-columns: 1fr 1fr; }
}
.pro-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  padding: 9px;
  background: #0f172a;
  border: 1px dashed #334155;
  border-radius: 9px;
}
.pro-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.38);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.pro-chip button {
  background: none;
  border: none;
  color: #fca5a5;
  font-weight: 800;
  cursor: pointer;
  padding: 0 2px;
  font-size: 0.95rem;
}

/* جدول مشخصات فنی */
.pro-spec-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

/* جدول لیست محصولات و فیلتر */
.pro-filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 850px) {
  .pro-filter-bar { grid-template-columns: 1fr; }
}
.pro-table-wrap {
  overflow-x: auto;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0f172a;
}
.pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: right;
  color: #e2e8f0;
}
.pro-table th {
  background: #1e293b;
  color: #cbd5e1;
  font-weight: 700;
  padding: 11px 12px;
  border-bottom: 1px solid #334155;
  white-space: nowrap;
}
.pro-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
  vertical-align: middle;
  color: #f1f5f9;
}
.pro-table tr:hover td { background: rgba(30, 41, 59, 0.75); }
.pro-grade-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}
.grade-Genuine { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.35); }
.grade-OEM { background: rgba(37, 99, 235, 0.22); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.35); }
.grade-Aftermarket { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.35); }
.grade-Economy { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.35); }

/* مودال مدیریت دسته‌بندی و خودرو */
.pro-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.pro-modal-backdrop.open { display: flex; }
.pro-modal {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid #334155;
  color: #f8fafc;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  direction: rtl;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

/* PTN_HIDE_SKU_OEM */
.pro-field:has(#pf_code),
.pro-field:has(#pf_oem),
.pro-field:has(#pf_cross) {
  display: none !important;
}
