/* برد کرامپ */

.breadcrump ol{
    flex-wrap:nowrap;
    overflow-x:auto;
    white-space: nowrap;

    scrollbar-width:none;
    -ms-overflow-style:none; 
}

.breadcrump ol::-webkit-scrollbar{
    display:none;
}

/* گالری تصاویر محصول */
.carosel-gallery .wd-gallery-thumb .wd-carousel-item{
    border: 1px solid #C7C7C7;
    border-radius: 5px;
   margin: 1px 3px;
}

/* استایل ویژگی ها */
.product-attrs-cards table.woocommerce-product-attributes {
  display: block;
  border: 0 !important;
  margin: 0;
  
}

.product-attrs-cards table.woocommerce-product-attributes tbody {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0 !important;
  margin-bottom: 5px;
}

/* فقط 4 ویژگی اول نمایش داده شود */
.product-attrs-cards table.woocommerce-product-attributes tr:nth-child(n+5) {
  display: none !important;
 
}

/* کارت هر ویژگی */
.product-attrs-cards table.woocommerce-product-attributes tr {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  max-width: 180px;
  padding: 6px 10px;
  border: 1px solid #e5e5e5 !important;
  border-radius: 8px;
  background: #F8F8F8;
  box-sizing: border-box;
}

/* نام ویژگی */
.product-attrs-cards .woocommerce-product-attributes-item__label {
  display: block;
  width: auto !important;
  padding: 0 0 3px 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: #777;
  text-align: right;
}

/* مقدار ویژگی */
.product-attrs-cards .woocommerce-product-attributes-item__value {
  display: block;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 12px;
  line-height: 1.4;
  color: #000;
  text-align: right;
}

.product-attrs-cards .woocommerce-product-attributes-item__value p {
  margin: 0 !important;
  padding: 0 !important;
}

/* موبایل: همه کارت‌ها در یک ردیف و اسکرول افقی */
@media (max-width: 767px) {
  .product-attrs-cards table.woocommerce-product-attributes tbody {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .product-attrs-cards table.woocommerce-product-attributes tr {
    flex: 0 0 auto;
  }
/* مخفی کردن نوار اسکرول افقی در موبایل */
.product-attrs-cards table.woocommerce-product-attributes tbody {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge قدیمی */
}

.product-attrs-cards table.woocommerce-product-attributes tbody::-webkit-scrollbar {
  display: none; /* Chrome / Safari / Edge */
}
}

/* مشخصات محصول */
/* توضیحات محصول - جمع شده روی 4 خط */
.product-desc-text .elementor-widget-container {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc-text.is-open .elementor-widget-container {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Additional Information - فقط 4 ردیف اول */
.product-info-table:not(.is-open) table tbody tr:nth-child(n+5) {
  display: none;
}

/* استایل بهتر جدول مشخصات */
.product-info-table table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: #ffffff;
}
.product-info-table tbody{
	  width: 100%;
}
.product-info-table table tr {
  border-bottom: 1px solid #eeeeee;
}

.product-info-table table tr:last-child {
  border-bottom: none;
}

.product-info-table table th,
.product-info-table table td {
  border: none !important;
  text-align: right;
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.8;
}

.product-info-table table th {
  width: 35%;
  background: #F8FCFF;
  color: #333333;
  font-weight: 600;
}

.product-info-table table td {
  color: #555555;
  background: #ffffff;
}

.product-info-table table p {
  margin: 0;
}

/* وقتی چیزی برای نمایش نیست */
.product-desc-btn.is-hidden,
.product-info-btn.is-hidden {
  display: none !important;
}