/* --- استایل‌های اختصاصی صفحه محصولات --- */
.products-header-section {
  padding: 6rem 2rem 4rem 2rem;
  background: linear-gradient(180deg, #161616 0%, #121212 100%);
  text-align: center;
  border-bottom: 1px solid #222;
}
.products-header-section h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.5rem;
}
.products-header-section p {
  font-size: 1.4rem;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* فیلترها */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 4rem auto 2rem auto;
  flex-wrap: wrap;
  max-width: 800px;
  padding: 0 2rem;
}
.filter-tab {
  background-color: #1e1e1e;
  border: 1px solid #333;
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}
.filter-tab:hover,
.filter-tab.active {
  background-color: #c1121f;
  border-color: #c1121f;
  box-shadow: 0 0 15px rgba(193, 18, 31, 0.4);
}

/* سکشن کارت‌های محصولات */
.products-display-section {
  padding: 2rem 2rem 8rem 2rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ساختار کارت محصول */
.product-card {
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: #c1121f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* برچسب وضعیت محصول */
.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(193, 18, 31, 0.95);
  color: #fff;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: bold;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* کانتینر تصویر کارت */
.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1.1/1;
  background-color: #151515;
  overflow: hidden;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}

/* اطلاعات متنی کارت */
.product-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-category {
  font-size: 1.1rem;
  color: #c1121f;
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}
.product-title {
  font-size: 1.45rem;
  color: #fff;
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.5;
  min-height: 4.4rem; /* هماهنگی ارتفاع تایتل‌ها */
}
.product-specs {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  flex-grow: 1;
}
.product-specs li {
  font-size: 1.15rem;
  color: #aaa;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.product-specs li::before {
  content: "✔";
  color: #c1121f;
  font-weight: bold;
}

/* قیمت اختصاصی بر اساس تماس */
.product-price-box {
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
  margin-top: auto;
  text-align: center;
}
.price-label {
  display: block;
  font-size: 1.3rem;
  color: #888;
  margin-bottom: 6px;
}

.price-value-call {
  display: block;
  font-size: 1.4rem;
  color: #ffd700 !important; /* رنگ زرد/طلایی برای جلب توجه قیمت استعلامی */
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}
.btn-product-cta {
  display: block;
  background-color: #c1121f;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.15rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.btn-product-cta:hover {
  background-color: #fff;
  color: #c1121f;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

/* انیمیشن فیلتر کارت‌ها */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-card.fade-in {
  animation: fadeInUp 0.4s ease forwards;
}

/* ریسپانسو تبلت و موبایل */
@media (max-width: 768px) {
  .products-header-section h1 {
    font-size: 2.2rem;
  }
  .filter-tabs {
    margin-top: 2.5rem;
    gap: 10px;
  }
  .filter-tab {
    padding: 8px 18px;
    font-size: 1.3rem;
  }
  .products-grid {
    grid-template-columns: 1fr; /* تک ستونه شدن در موبایل برای خوانایی */
    max-width: 450px;
  }
}
