/* ================ vinacases-categories-slider.css ================ */

/* ۱) کانتینر اصلی */
.vinacases-categories-slider {
  position: relative !important;
  overflow: hidden;
  margin-top:25px;
  width: 100%;
  overflow: hidden;
}

/* ۲) Wrapper و اسلایدها */
.vinacases-categories-slider .swiper-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.vinacases-categories-slider .swiper-slide {
  flex: 0 0 auto !important;
  width: auto !important;  /* کاملاً اتوماتیک روی اندازه محتوا */
}
/* ۳) آیتم‌های دسته‌بندی */
.vinacases-category-item {
  width: auto;
  text-align: center;
  transition: transform .3s ease;
  padding-top:5px;
   display: inline-block;
  vertical-align: top;
  margin: 0;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.vinacases-category-item:hover {
    transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* ۴) تصویر دایره‌ای */
.vinacases-category-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #f0f0f0;
  border:solid 1px white;
  overflow: hidden;
  transition: box-shadow .3s ease;
}
.vinacases-category-item:hover .vinacases-category-image {
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.vinacases-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ۵) عنوان */
.vinacases-category-title {
  margin-top: 6px;
  font-size: 14px;
  text-align: center;
  color: #333;
}

/* ۶) موبایل: اسکرول افقی + گرادیانت لبه‌ها */
@media (max-width: 767px) {
    .vinacases-categories-slider {

  margin-top:0;
}

  .vinacases-categories-slider .swiper-wrapper {
    overflow-x: auto;
  }
  .vinacases-categories-slider::before,
  .vinacases-categories-slider::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 24px;
    pointer-events: none;
    z-index: 10;
  }
  .vinacases-categories-slider::before {
    left: 0;

  }
  .vinacases-categories-slider::after {
    right: 0;

  }
  /* در موبایل فلش‌ها پنهان شوند */
  .vinacases-categories-slider .swiper-button-prev,
  .vinacases-categories-slider .swiper-button-next {
    display: none !important;
  }
}

/* ۷) دسکتاپ و تبلت: نمایش فلش‌ها */
@media (min-width: 768px) {
  .vinacases-categories-slider .swiper-button-prev,
  .vinacases-categories-slider .swiper-button-next {
    display: flex !important;
  }
}

/* ۸) بولت‌ها (در صورت استفاده pagination) */
.vinacases-categories-slider .swiper-pagination {
  display: none !important;
}
/* ابتدا استایل پایهٔ فلش‌ها را داریم */
.vinacases-categories-slider .swiper-button-prev,
.vinacases-categories-slider .swiper-button-next {
  /* ... سایر استایل‌ها مثل size, bg-color, position ... */
  font-size: 0 !important;       /* غیرفعال کردن متن */
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* فلش قبلی – با SVG مینیمال و بدون خط */
.vinacases-categories-slider .swiper-button-prev {
  left: 8px !important;
  right: auto !important;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23888' viewBox='0 0 20 20'>\
<path d='M12 16L6 10L12 4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>");
}

/* فلش بعدی – با همان SVG ولی جهت مخالف */
.vinacases-categories-slider .swiper-button-next {
  right: 8px !important;
  left: auto !important;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23888' viewBox='0 0 20 20'>\
<path d='M8 16L14 10L8 4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>");
}

/* ------------------------------------------------------------
  الف) حذف کامل ::after پیش‌فرض Swiper
------------------------------------------------------------- */
.vinacases-categories-slider .swiper-button-prev::after,
.vinacases-categories-slider .swiper-button-next::after {
  content: none !important;
  display: none !important;
}

/* ------------------------------------------------------------
  ب) پنهان‌کردن رنگ و متنِ پیش‌فرض
------------------------------------------------------------- */
.vinacases-categories-slider .swiper-button-prev,
.vinacases-categories-slider .swiper-button-next {
  color: transparent !important;       /* هیچ متنی/آیکنی از فونت نشان نده */
  font-size: 0 !important;             /* مطمئن‌تر برای حذف متن */
  background-repeat: no-repeat !important;
  background-position: center !important;
}

