/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Feb 09 2026 | 23:19:25 */
.cat-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 15px auto;
    padding: 0 40px;
  }
  
  .cat-swiper {
    width: 100%;
    padding-bottom: 20px;
  }
  
  .cat-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px; 
    transition: transform 0.3s ease;
  }
  
  .cat-link:hover {
    transform: translateY(-5px);
  }
  
  .cat-link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
  }
  
  .cat-carousel-wrapper .swiper-button-next,
  .cat-carousel-wrapper .swiper-button-prev {
    color: #333;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .cat-carousel-wrapper .swiper-button-next::after,
  .cat-carousel-wrapper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
  }
@media (max-width: 768px) {
    .cat-carousel-wrapper .swiper-button-next,
    .cat-carousel-wrapper .swiper-button-prev {
      display: none !important;
    }
    
    .cat-carousel-wrapper {
      padding: 0 10px; 
    }
  }
/* 1. جلوگیری از زیر هم افتادن اسلایدها قبل از لود شدن JS */
.swiper-wrapper {
  display: flex; /* چیدن افقی */
  width: 100%;
}

/* 2. تنظیم عرض اولیه اسلایدها قبل از لود شدن JS */
.swiper-slide {
  /* موبایل: نمایش ۳ تایی (حدود ۳۳ درصد) */
  width: 33.333%; 
  flex-shrink: 0; /* جلوگیری از جمع شدن عکس‌ها */
  box-sizing: border-box;
  padding: 0 5px; /* یک فاصله تقریبی برای لود اولیه */
}

/* تبلت: نمایش ۴ تایی */
@media (min-width: 768px) {
  .swiper-slide {
    width: 25%; 
  }
}

/* دسکتاپ: نمایش ۶ تایی (حدود ۱۶ درصد) */
@media (min-width: 1024px) {
  .swiper-slide {
    width: 16.666%; 
  }
}

/* 3. مخفی کردن عکس‌های اضافی که از کادر بیرون می‌زنند */
.cat-swiper {
  overflow: hidden;
}