/* ===============================
        PRODUCT PAGE
================================= */

body {
  margin: 0;
  padding: 0;
  background: #fff;
}

.product-page,
.product-top,
.product-slider,
.product-slider .slide {
  margin: 0;
  padding: 0;
  box-shadow: none;
}

.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: transparent;
  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{
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.category-hero,
.seo-benefits,
.seo-faq,
.category-products {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  float: none;
}

/* ======================
   HERO MOBILE
======================*/

@media(max-width:768px){

.category-hero{

display:flex;
flex-direction:column;

padding:30px 20px;

text-align:center;

}

.hero-image{

width:100%;

}

.hero-image img{

width:100%;

max-width:420px;

margin:auto;

display:block;

}

.hero-text{

width:100%;

}

.hero-text h1{

font-size:24px;

line-height:1.8;

}

.hero-text p{

font-size:15px;

line-height:2;

}

}

/* ===== اصلاح H1 موبایل ===== */

@media(max-width:768px){

.page-title{

font-size:24px;

line-height:1.8;

margin-top:20px;

}

}
@media(max-width:768px){

nav{

width:100%;

position:relative;

z-index:99999;

}

nav ul{

position:absolute;

top:100%;

right:0;

left:0;

background:#fff;

z-index:99999;

}

}
/* ===============================
      SEO BENEFITS
================================= */



.seo-benefits h2{

font-size:28px;
color:#e60000;
margin-bottom:25px;
text-align:center;

}

.seo-benefits ul{

list-style:disc;
padding-right:25px;
margin:0;

}

.seo-benefits li{

position:relative;

padding-right:35px;

margin-bottom:18px;

line-height:2;

font-size:16px;

color:#444;

}


@media(max-width:768px){

.seo-benefits{

margin:30px 15px;

padding:20px;

}

.seo-benefits h2{

font-size:22px;

line-height:1.8;

}

.seo-benefits li{

font-size:15px;

line-height:2;

padding-right:30px;

}

}

/* ===== رفع نمایش ویژگی‌ها در موبایل ===== */

@media (max-width:768px){

.seo-benefits{
    display:block !important;
    width:100% !important;
    overflow:visible !important;
}

.seo-benefits ul{
    display:block !important;
    position:static !important;
    list-style:disc !important;

    max-height:none !important;
    height:auto !important;
    overflow:visible !important;

    padding-right:25px !important;
    margin-top:20px !important;
}

.seo-benefits li{
    display:list-item !important;
    width:auto !important;
    float:none !important;

    margin-bottom:12px !important;
    line-height:2 !important;

    color:#444 !important;
}

}


/* ===== اصلاح لیست ویژگی ها در موبایل ===== */

@media (max-width:768px){

#desc ul{
display:block !important;
list-style:disc !important;
padding-right:25px !important;
margin:15px 0 !important;
}

#desc ul li{
display:list-item !important;
list-style:disc !important;
margin-bottom:12px !important;
line-height:2 !important;
}

}

@media (max-width:768px){

#desc ul,
.seo-benefits ul{
display:block !important;
visibility:visible !important;
opacity:1 !important;
position:static !important;
overflow:visible !important;
height:auto !important;
max-height:none !important;

list-style:none !important;

padding-right:0 !important;
margin:20px 0 !important;
}

#desc ul li,
.seo-benefits ul li{
display:block !important;
position:relative !important;

padding-right:28px !important;
margin-bottom:12px !important;

border:none !important;
}

#desc ul li::before,
.seo-benefits ul li::before{
content:"✔";
position:absolute;
right:0;
top:0;
color:#e60000;
font-weight:bold;
}

}

.related-products{
    margin-top:40px;
    padding:25px;
    border:1px solid #eee;
    border-radius:10px;
    background:#fafafa;
}

.related-products h2{
    margin-bottom:18px;
}

.related-products ul{
    list-style:none;
    padding:0;
    margin:0;
    position:static !important;
    max-height:none !important;
    overflow:visible !important;
    display:block !important;
    background:transparent !important;
    border:0 !important;
}

.related-products li{
    margin-bottom:12px;
    padding:0 !important;
    border:0 !important;
}

.related-products a{
    color:#1b5e20;
    text-decoration:none;
    font-weight:500;
}

.related-products a:hover{
    text-decoration:underline;
}
/* ===========================
   Category SEO Section
=========================== */

.category-seo{
    width:100%;
    max-width:1200px;
    margin:60px auto;
    padding:35px 40px;
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:12px;
    box-sizing:border-box;
}

.category-seo h2{
    font-size:28px;
    color:#0b6b8a;
    margin-bottom:20px;
    font-weight:700;
    line-height:1.8;
}

.category-seo p{
    font-size:16px;
    color:#444;
    line-height:2.2;
    text-align:justify;
    margin-bottom:18px;
}

.category-seo strong{
    color:#222;
    font-weight:700;
}

@media (max-width:768px){

.category-seo{
    margin:35px 15px;
    padding:25px 20px;
}

.category-seo h2{
    font-size:22px;
}

.category-seo p{
    font-size:15px;
    line-height:2;
}

}
/* ===========================
   Buy Guide Section
=========================== */

.buy-guide{
    width:100%;
    max-width:1200px;
    margin:60px auto;
    padding:35px 40px;
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:12px;
    box-sizing:border-box;
}

.buy-guide h2{
    font-size:28px;
    color:#0b6b8a;
    margin-bottom:20px;
    font-weight:700;
    line-height:1.8;
}

.buy-guide p{
    font-size:16px;
    color:#444;
    line-height:2.2;
    text-align:justify;
}

@media (max-width:768px){

.buy-guide{
    margin:35px 15px;
    padding:25px 20px;
}

.buy-guide h2{
    font-size:18px;
}

.buy-guide p{
    font-size:15px;
    line-height:2;
}

}

/* ===== جدول مقایسه ترازوی نوزاد ===== */

.comparison-table-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #ccc;
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.comparison-table th {
  font-weight: 600;
}

/* عرض ستون‌ها */
.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1) {
  width: 25%;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2),
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  width: 37.5%;
}


/* ===== موبایل ===== */

@media (max-width: 600px) {

  .comparison-table-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
    overflow: hidden;
  }

  .comparison-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    font-size: 11px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 7px 4px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .comparison-table th:nth-child(1),
  .comparison-table td:nth-child(1) {
    width: 24%;
  }

  .comparison-table th:nth-child(2),
  .comparison-table td:nth-child(2),
  .comparison-table th:nth-child(3),
  .comparison-table td:nth-child(3) {
    width: 38%;
  }

}


