/* @import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"); */


:root {
  --gray-700: rgba(28, 24, 24, 1);
  --primary-700: rgba(57, 3, 4, 1);
  --gray-100: rgba(239, 238, 238, 1);
  --gray-200: rgba(202, 197, 197, 1);
  --gray-300: rgba(167, 157, 157, 1);
  --primary-400: rgba(238, 37, 41, 1);
  --primary-600: rgba(113, 12, 14, 1);
}

/* Product Card Styles */
.epa-product-item {
  font-family: "IRANSans", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  background-color: var(--gray-100);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
  border-radius: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  padding: 0 !important;
}

/* حذف استایل hover متضاد
.epa-product-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
*/

.epa-product-item a {
  display: block !important;
  line-height: 0 !important; /* Remove extra space under inline image */
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  padding-top: 0 !important;
}

.epa-product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-top: 0 !important;
}

/* Fix for any wrapper divs */
.epa-product-item > a > div,
.epa-product-item .elementor-image,
.epa-product-item .elementor-widget-image,
.epa-product-item figure,
.epa-product-item .elementor-widget-container {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.epa-product-info {
  padding: 5px 5px 5px;
}

.epa-product-title {
  font-family: "IRANSans-Medium", Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 13px;
  text-align: center;
  margin-top: 6px;
  margin-bottom: 8px;
  direction: rtl;
}

/* Common specs styles */
.epa-product-specs {
  list-style-type: none;
  padding: 0;
  margin: 0 0 15px;
  direction: rtl;
}

/* Group 1 specific styles - with red squares */
.epa-product-specs-group1 {
  list-style: none;
}

.epa-product-specs-group1 .epa-spec-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 10px;
}

/* اضافه کردن مربع قرمز فقط برای آیتم‌های معمولی، نه چند خطی */
.epa-product-specs-group1 .epa-spec-item:not(.epa-spec-textarea):before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  min-width: 7px;
  background-color: var(--primary-400);
  margin-left: 5px;
}

/* Group 2 specific styles - no red squares */
.epa-product-specs-group2 {
  list-style: none;
}

.epa-product-specs-group2 .epa-spec-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 10px;
}

.epa-product-specs-group2 .epa-spec-item:before {
  display: none;
}

.epa-spec-item {
  font-family: "IRANSans-Medium", Helvetica, Arial, sans-serif;
  color: var(--gray-700);
  font-size: 11px;
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  padding-right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.epa-spec-item:last-child {
  margin-bottom: 0;
}

.epa-spec-label {
  font-weight: 500;
  display: inline-block;
  margin-left: 4px;
}

.epa-spec-value {
  font-family: "IRANSansFaNum-Regular", Helvetica, Arial, sans-serif;
  display: inline-block;
}

.epa-spec-suffix {
  margin-right: 2px;
  font-size: 10px;
  color: inherit;
}

/* Group 1 specific label/value styles */
.epa-product-specs-group1 .epa-spec-label {
  /* Specific styles for group 1 labels */
}
.epa-product-specs-group1 .epa-spec-value {
  /* Specific styles for group 1 values */
}

/* Group 2 specific label/value styles */
.epa-product-specs-group2 .epa-spec-label {
  /* Specific styles for group 2 labels */
}
.epa-product-specs-group2 .epa-spec-value {
  /* Specific styles for group 2 values */
}

/* Divider between groups should be primary-600 color */
.epa-divider {
  border: none;
  height: 1px;
  background-color: var(--primary-600);
  margin: 15px 0;
  width: 100%;
  display: block;
}

.epa-pricing {
  text-align: center;
  direction: rtl;
}

.epa-price-item {
  font-family: "IRANSansFaNum-Medium", Helvetica, Arial, sans-serif;
  color: var(--primary-700);
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  padding: 0 15px;
}

.epa-price-item:last-child {
  margin-bottom: 0;
}

.epa-price-label {
  font-weight: 500;
  margin-right: 5px;
}

.epa-price-value {
  font-weight: 400;
}

/* استایل‌های مربوط به فیلدهای textarea چند خطی */
.epa-spec-textarea {
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.epa-spec-textarea .epa-spec-label {
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

.epa-spec-multiline {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
}

.epa-spec-line {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  width: 100%;
  justify-content: center;
  text-align: right;
}

.epa-spec-line:last-child {
  margin-bottom: 0;
}

.epa-spec-line-marker {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  min-width: 7px;
  background-color: var(--primary-400);
  margin: 5px 0 0 5px;
}

.epa-spec-line-text {
  font-family: "IRANSansFaNum-Regular", Helvetica, Arial, sans-serif;
  font-size: 11px;
  text-align: right;
  line-height: 1.6;
}

/* استایل برای بخش‌های قبل از دونقطه (بولد) */
.epa-spec-line-label {
  font-weight: 700;
  font-family: "IRANSans-Bold", Helvetica, Arial, sans-serif;
}

/* اضافه کردن سلکتورهای مشابه برای استایل‌های فونت */
.epa-product-specs-group1 .epa-spec-line-text {
  /* به فونت گروه 1 اشاره می‌کند */
}

.epa-product-specs-group2 .epa-spec-line-text {
  /* به فونت گروه 2 اشاره می‌کند */
}

/* استایل کردن مربع‌های گروه‌ها */
.epa-product-specs-group1 .epa-spec-line-marker {
  background-color: var(--primary-400);
}

.epa-product-specs-group2 .epa-spec-line-marker {
  background-color: var(--primary-600);
}

/* استایل برای تب‌های فیلتر */
.epa-filter-tabs {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  margin-bottom: 20px;
  padding-bottom: 8px;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* برای Firefox */
  direction: rtl;
  cursor: grab; /* نشانگر دست برای اشاره به قابلیت drag */
  user-select: none; /* جلوگیری از انتخاب متن هنگام drag */
  justify-content: center; /* تنظیم وسط چین */
}

.epa-filter-tabs:active {
  cursor: grabbing; /* تغییر نشانگر هنگام کشیدن */
}

.epa-filter-tabs::-webkit-scrollbar {
  display: none; /* برای Chrome، Safari و Edge */
}

.epa-filter-tabs::-webkit-scrollbar-track {
  display: none;
}

.epa-filter-tabs::-webkit-scrollbar-thumb {
  display: none;
}

.epa-filter-tabs::-webkit-scrollbar-thumb:hover {
  display: none;
}

.epa-filter-btn {
  display: inline-flex;
  height: 40px;
  padding: 10px 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border-radius: 5px;
  background: var(--gray-100, #EFEEEE);
  color: #710C0E;
  font-size: 15px;
  font-family: "IRANSans", Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  margin-left: 10px;
}

.epa-filter-btn:hover {
  background: var(--gray-200, #CAC5C5);
}

.epa-filter-btn.active {
  background: var(--gray-300, #A79D9D);
  color: white;
  border: none;
}

.epa-filter-btn:first-child {
  margin-right: 0;
}

/* استایل‌های ریسپانسیو برای فیلترها */
@media (max-width: 767px) {
  .epa-filter-btn {
    height: 32px;
    padding: 10px 8px;
    font-size: 12px;
    justify-content: center;
    align-items: center;
  }
  
  .epa-filter-tabs {
    gap: 6px;
  }
}

/* استایل‌های مربوط به فیلتر مرتب‌سازی */
.epa-sort-dropdown {
  display: flex;
  width: 225px;
  padding: 10px 16px;
  justify-content: space-between;
  align-items: center;
  border-radius: 5px;
  background: var(--gray-100, #EFEEEE);
  position: relative;
  cursor: pointer;
  user-select: none;
  margin-bottom: 15px;
  z-index: 10;
  color: var(--gray700, #1C1818);
  text-align: right;
  font-family: Inter, "IRANSans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.epa-sort-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.epa-sort-dropdown-current {
  font-weight: 400;
}

.epa-sort-dropdown-arrow {
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.epa-sort-dropdown.open .epa-sort-dropdown-arrow {
  transform: rotate(180deg);
}

.epa-sort-dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 20;
  display: none;
  overflow: hidden;
  color: var(--gray700, #1C1818);
  text-align: right;
  font-family: Inter, "IRANSans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.epa-sort-dropdown.open .epa-sort-dropdown-menu {
  display: block;
}

.epa-sort-dropdown-item {
  padding: 10px 16px;
  transition: background 0.2s ease;
  direction: rtl;
  text-align: right;
}

.epa-sort-dropdown-item:hover {
  background: var(--gray-100, #EFEEEE);
}

.epa-sort-dropdown-item.active {
  background: var(--gray-200, #CAC5C5);
  font-weight: 500;
}

/* استایل فیلترها در حالت موبایل */
@media (max-width: 767px) {
  .epa-filter-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .epa-sort-dropdown {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .epa-filter-tabs {
    margin-bottom: 15px;
  }
}

/* استایل برای زمانی که تب‌های فیلتر وجود ندارد */
.epa-filter-header:only-child .epa-sort-dropdown {
  margin-bottom: 20px;
}

/* استایل برای بخش‌های قبل از دونقطه (بولد) */
.epa-spec-line-label {
  font-weight: 700;
  font-family: "IRANSans-Bold", Helvetica, Arial, sans-serif;
}

/* استایل برای نمونه کارها (Portfolio) */
.epa-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.epa-portfolio-wrapper {
  /* این کلاس برای مطابقت با ساختار محصولات اضافه شده */
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  transition: all 0.3s ease !important;
}

.epa-portfolio-item {
  border: 1px solid #eee;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease !important; /* اضافه کردن !important برای اطمینان از اعمال */
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important; /* اضافه کردن !important برای اطمینان از اعمال */
  text-align: center;
  position: relative;
  width: 100%; /* استفاده از عرض نسبی مشابه کارت محصول */
}

/* اطمینان از اعمال hover برای همه آیتم‌ها */
.epa-portfolio-wrapper:hover .epa-portfolio-item {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-3px) !important;
}

.epa-portfolio-image {
  width: 100%;
  height: 200px; /* همسان با ارتفاع تصویر محصول */
  object-fit: cover;
  display: block;
  height: 200px!important; /* همسان با ارتفاع تصویر محصول */
  transition: transform 0.5s ease !important; /* اضافه کردن !important برای اطمینان از اعمال */
}

.epa-portfolio-info {
  padding: 10px 10px 10px; /* همسان با پدینگ محصول */
  background: #EFEEEE;
}

.epa-portfolio-title {
  font-family: "IRANSans-Medium", Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: var(--gray-700, #1C1818);
  font-size: 13px; /* همسان با سایز محصول */
  margin: 6px 0 6px; /* همسان با مارجین محصول */
  direction: rtl;
  text-align: center;
}

.epa-portfolio-title a {
  color: inherit;
  text-decoration: none;
  font-family: "IRANSans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #390304;
}

.epa-portfolio-title a:hover {
  color: #4285f4; /* همسان با هاور محصول */
}

.epa-portfolio-categories {
  font-family: "IRANSans", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--gray-300, #A79D9D);
  margin-bottom: 8px;
  direction: rtl;
  text-align: center;
}

.epa-portfolio-date {
  font-family: "IRANSansFaNum-Regular", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--gray-300, #A79D9D);
  direction: rtl;
  text-align: center;
}

/* واکنش‌گرایی برای نمونه کارها */
@media screen and (max-width: 1200px) {
  .epa-portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 1024px) {
  .epa-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .epa-portfolio-grid {
    grid-template-columns: repeat(1, 1fr);
  }
} 