/* ===============================
        PRODUCT PAGE
================================= */

body, .product-page, .product-top, .product-slider, .product-slider .slide {
  margin: 0;
  padding: 0;
  background: #fff !important;
  box-shadow: none !important;
}

.product-page {
  padding: 60px 8%;
}

/* ===== TOP SECTION ===== */
.product-top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 50px;
  flex-wrap: wrap;
  margin-top: 20px;
  
}

/* ===== SLIDER ===== */
.product-slider {
  flex: 0 0 55%;
  max-width: 55%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-start; /* قبلاً center بود، حالا top */
  justify-content: center;
  min-height: 450px;
  background-color: #fff;
  padding: 0;
}

/* هر اسلاید */
.product-slider .slide {
  position: relative;
  display: none;
  width: 100%;
  height: 100%;
  text-align: center;
  align-items: center;
  justify-content: center;
}

/* لایه سفید پشت تصویر برای حذف هاله توسی */
.product-slider .slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 1;
}

/* اسلاید فعال */
.product-slider .slide.active {
  display: flex;
}

/* تصویر */
.product-slider img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ===== Dots ===== */
.dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.dot {
  width: 12px;
  height: 12px;
  background: #ccc;
  display: inline-block;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #e60000;
}

/* ===== PRODUCT INFO ===== */
.product-info {
  flex: 0 0 40%;
  max-width: 40%;
}

.product-info h1 {
  font-size: 22px;
  margin-bottom: 15px;
}

.short-desc {
  line-height: 2;
  margin: 20px 0;
  color: #555;
  font-size: 15px;
}

.catalog-link {
  display: inline-block;
  background: #e60000;
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.catalog-link:hover {
  background: #c40000;
}

/* ===============================
            TABS
================================= */

.product-tabs {
  margin-top: 40px;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.tab-buttons button {
  padding: 10px 25px;
  border: none;
  cursor: pointer;
  background: #eeeeee;
  border-radius: 5px;
  font-size: 14px;
  transition: 0.3s;
}

.tab-buttons button.active {
  background: #e60000;
  color: #fff;
}

.tab-content {
  display: none;
  line-height: 2;
  font-size: 14px;
  color: #444;
}

.tab-content.active {
  display: block;
}

.tab-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.tab-content td {
  border: 1px solid #ddd;
  padding: 10px;
}

/* ===============================
          RESPONSIVE
================================= */
@media (max-width: 992px) {
  .product-top {
    flex-direction: column;
  }

  .product-slider,
  .product-info {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .product-slider {
    min-height: 300px;
  }

  .tab-buttons {
    gap: 5px;
  }
}


.seo-benefits,
.seo-faq{
  max-width: 900px;
  width: 100%;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
}
.product-card h3,
.product-card p,
.product-card .more-link {
    text-align: center;
    display: block;
    width: 100%;
}

/* کنترل صفحه اصلی */
body{
  overflow-x: hidden;
}

body{
  margin: 0;
  padding: 0;
}

.category-hero,
.seo-benefits,
.seo-faq,
.category-products{
  width: 100% !important;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box;
  float: none !important;
}