/* ===== Product Category Carousel (Custom) ===== */
.bb-cat-carousel {
  --gap: 16px;
  --visible: 4;
  position: relative;
  margin: 20px auto;
  padding: 0 48px;
}

.bb-cat-carousel ul.products {
  display: flex !important;
  gap: var(--gap);
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.bb-cat-carousel ul.products[class*="columns-"] {
  display: flex !important;
}

.bb-cat-carousel ul.products li.product-category {
    flex: 0 0 calc((100% - (var(--gap) * (var(--visible) - 1))) / var(--visible));
  scroll-snap-align: start;
  background: #fff;
  border: none;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.bb-cat-carousel ul.products li.product-category:hover {
  transform: translateY(-2px);
}

.bb-cat-carousel ul.products li.product-category a {
  display: grid;
  grid-template-rows: auto 1fr auto;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.bb-cat-carousel ul.products li.product-category img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  width: 170px;
  height: 170px;
}
.bb-cat-carousel ul.products li.product-category .woocommerce-loop-category__title{
  color: #2a565b;
}
.bb-cat-carousel ul.products li.product-category h2.woocommerce-loop-category__title {
  margin: 12px 14px 6px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
}
/* Progress bar wrapper */
.carousel-progress {
  position: relative;
  height: 3px;
  background: #e1e3e4; /* light grey background */
  margin: 8px auto 0;
  max-width: 200px;     /* adjust width if needed */
  border-radius: 2px;
  overflow: hidden;
}

/* Actual bar */
.carousel-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #53c2b8; 
  width: 0%;           
  transition: width 0.2s linear;
}

.bb-cat-carousel ul.products li.product-category mark.count {
  background: none;
  color: #666;
  font-size: 12px;
  margin-left: 6px;
}

.bb-cat-carousel .bb-cat-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  z-index: 2;
  transition: box-shadow .2s ease, transform .1s ease;
}
.bb-cat-carousel .bb-cat-btn:hover { box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.bb-cat-carousel .bb-cat-btn:active { transform: translateY(-50%) scale(.98); }

.bb-cat-carousel .bb-cat-prev { left: 6px; }
.bb-cat-carousel .bb-cat-next { right: 6px; }

.bb-cat-carousel .bb-cat-btn:focus {
  outline: 2px solid #333;
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .bb-cat-carousel { padding: 0 44px; }
}
@media (max-width: 768px) {
  .bb-cat-carousel { padding: 0 40px; }
  .bb-cat-carousel ul.products li.product-category img { height: 160px; }
}
@media (max-width: 480px) {
  .bb-cat-carousel { padding: 0 36px; }
  .bb-cat-carousel ul.products li.product-category img { height: 140px; }
}