.elementor-21462 .elementor-element.elementor-element-6b148e21{margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;padding:0px 0px 0px 0px;}/* Start custom CSS for html, class: .elementor-element-6b148e21 *//* =========================
   جدول مشخصات محصولات
   Electro-Bazar.com
   ========================= */

.product-specs-table-wrapper {
  width: 100%;
  margin: 25px 0;
  direction: rtl;
  overflow: hidden;
}

/* ظرف پیمایش جدول */
.product-specs-scroll {
  overflow-x: auto !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  position: relative;
  background: #fff;
}

/* fade در سمت راست برای القای اسکرول */
.product-specs-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 4;
}

/* جدول اصلی مشخصات */
.product-specs-table {
  border-collapse: collapse;
  width: max-content !important; /* عرض بر اساس محتوا */
  min-width: 100%;               /* حداقل عرض ظرف */
  table-layout: auto !important; /* تنظیم عرض براساس محتوا، نه تیتر */
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  text-align: center;
}

/* سلول‌ها */
.product-specs-table th,
.product-specs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
  white-space: nowrap; /* محتوا در یک خط بماند */
  text-align: center;
}

/* تیتر ستون‌ها */
.product-specs-table thead th {
  background-color: #f5f7fa;
  font-weight: 600;
  color: #004a7f; /* رنگ برند الکتروبازار */
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 3;
  white-space: normal; /* اجازه بده در تیترها دوخطی بشه */
  word-break: keep-all;
  overflow-wrap: break-word;
  width: 1%; /* اجازه بده بدنه تعیین‌کننده عرض باشه */
  line-height: 1.4;
}

/* ردیف‌های متناوب و hover */
.product-specs-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.product-specs-table tbody tr:hover {
  background-color: #eaf4ff;
  transition: background-color 0.3s ease;
}

/* ستون اول چسبنده */
.product-specs-table th:first-child,
.product-specs-table td:first-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background-color: #fff;
  font-weight: 600;
  color: #004a7f;
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
}

/* اسکرول‌بار در دسکتاپ */
@media (hover: hover) {
  .product-specs-scroll::-webkit-scrollbar {
    height: 10px;
  }

  .product-specs-scroll::-webkit-scrollbar-thumb {
    background-color: #004a7f;
    border-radius: 5px;
  }

  .product-specs-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #0066b2;
  }

  .product-specs-scroll::-webkit-scrollbar-track {
    background: #eaeaea;
  }
}

/* در موبایل: پیمایش نرم و نمایش بهینه */
@media (max-width: 768px) {
  .product-specs-table {
    font-size: 13px;
    min-width: 750px;
  }

  .product-specs-scroll {
    overflow-x: scroll !important;
    scrollbar-color: #004a7f #eaeaea; /* برای فایرفاکس */
    scrollbar-width: thin;
    border-radius: 6px;
  }

  .product-specs-scroll::-webkit-scrollbar {
    height: 10px;
  }

  .product-specs-scroll::-webkit-scrollbar-thumb {
    background-color: #004a7f;
    border-radius: 4px;
  }

  .product-specs-scroll::-webkit-scrollbar-track {
    background-color: #d8e2ef;
  }

  .product-specs-scroll::after {
    display: block;
  }
}

/* جلوگیری از شکست نامرتب در تیترهای دوخطی */
.product-specs-table thead th span {
  display: inline-block;
  white-space: normal;
  line-height: 1.3;
}/* End custom CSS */