.banner {
  border: 1px solid #DDDDDD;
}
.banner .slide-caption__action {
  position: absolute;
  right: 1rem;
}
.banner .slide-caption__action .slide-caption__action__item {
  background: rgba(0, 0, 0, 0.5);
  font-style: normal;
  text-align: center;
  color: #FFFFFF;
}
.banner .slide-caption__action .slide-caption__action__item svg, .banner .slide-caption__action .slide-caption__action__item img {
  color: #32c234;
}
.banner .slide-caption-absolute {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
}
.banner .slide-caption-absolute .slide-caption__title {
  margin: 0;
  color: #FFFFFF;
  font-weight: 600;
}
.banner .slide-caption-absolute .slide-caption__content {
  margin: 0;
  color: #FFFFFF;
  font-weight: 400;
  font-size: 14px;
}
.banner .slide-caption-default {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
}
.banner .splide__slide img {
  height: 100%;
}

.title_category_1 {
  font-size: 18px;
}

/* Product Card Styles */
.product-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.product-card .card-body {
  text-align: center;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}
.product-card .card-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #333;
  font-size: 16px;
  line-height: 1.2;
  height: 20px;
  overflow: hidden;
}
.product-card .card-text {
  color: #666;
  font-size: 0.7rem;
  margin-bottom: 0;
  line-height: 1rem;
  height: 16px;
  overflow: hidden;
}
.product-card .card-img-top {
  transition: transform 0.3s ease;
}
.product-card:hover .card-img-top {
  transform: scale(1.1);
}

/* Category Items Layout */
.category-item {
  padding-left: 4px;
  padding-right: 4px;
}

/* Reduce spacing between cards */
.row.mt-4 {
  margin-left: -4px;
  margin-right: -4px;
}

/* Desktop: 5 items per row */
@media (min-width: 992px) {
  .category-item {
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }
}
/* Tablet: 3 items per row */
@media (min-width: 576px) and (max-width: 991.98px) {
  .category-item {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }
}
/* Mobile: 2 items per row */
@media (max-width: 575.98px) {
  .category-item {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
/* Special case: When there's only 1 item on desktop, center it */
@media (min-width: 992px) {
  /* Fallback for browsers that don't support :has() */
  .row.mt-4.single-item {
    justify-content: center;
  }
  .row.mt-4.single-item .category-item {
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }
  /* Modern browsers that support :has() */
  .row.mt-4:has(.category-item:only-child) {
    justify-content: center;
  }
  .row.mt-4:has(.category-item:only-child) .category-item:only-child {
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }
}
