/* ———————————————————————————————— */
/*  WooCommerce Category Slider Styles  */
/* ———————————————————————————————— */

/* Container padding so bullets don’t hit the cards */
.my-cat-swiper {
  position: relative;
  padding-bottom: 3rem; /* adjust if you add taller bullets */
}

/* Slide Card */
.my-cat-swiper .swiper-slide {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  padding: 1.5rem 0.75rem;
}

/* Category Icon */
.my-cat-swiper .cat-icon {
  display: block;
  margin: 0 auto 0.75rem;
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  background-color: var(--accent);
  padding: 12px;
}

/* Category Name + Underline */
.my-cat-swiper .cat-name {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  padding-bottom: 0.25rem;
}
.my-cat-swiper .cat-name::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* Pagination Dots: absolutely positioned at the bottom center */
.my-cat-swiper .swiper-pagination {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.my-cat-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  opacity: 0.3;
  border-radius: 50%;
}
.my-cat-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

/* ──────────────────────────────────────────────────────
   Navigation Arrows → Bottom-Right Corners
────────────────────────────────────────────────────── */
.my-cat-swiper .swiper-button-prev,
.my-cat-swiper .swiper-button-next {
  position: absolute;
  bottom: 0;     /* move both arrows down */
  top: auto;        /* cancel any previous top setting */
  left: auto;
  transform: none;  /* cancel vertical centering */
  width: 44px;
  height: 44px;
  background-color: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* “Next” at the far right */
.my-cat-swiper .swiper-button-next {
  right: 0;
}

/* “Prev” just to the left of it */
.my-cat-swiper .swiper-button-prev {
  right: 68px;  /* adjust this gap (68px ≈ 16px padding + 44px button + 8px gutter) */
}

/* Icon sizes (if you need to tweak) */
.my-cat-swiper .swiper-button-prev::after,
.my-cat-swiper .swiper-button-next::after {
  font-size: 20px;
  color: #fff;
}


/* ───────── Mobile fixes for <640px ───────── */
@media (max-width: 640px) {
  /* remove bottom padding (we'll let pagination flow) */
  .my-cat-swiper {
    padding-bottom: 0;
  }

  /* hide the nav arrows on phones */
  .my-cat-swiper .swiper-button-prev,
  .my-cat-swiper .swiper-button-next {
    display: none;
  }

  /* pagination now sits below the swiper-wrapper */
  .my-cat-swiper .swiper-pagination {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 12px;   /* space above the dots */
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  .my-cat-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: 0.3;
  }
  .my-cat-swiper .swiper-pagination-bullet-active {
    opacity: 1;
  }
}
