/* ============================================
   Home Best Seller Tabs
   ============================================ */

.hbst-section {
  padding: 0;
}

/* Tab navigation */
.hbst-tabs {
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 30px;
  justify-content: center;
  gap: 8px;
}

.hbst-tabs .nav-item {
  margin-bottom: -2px;
}

.hbst-tabs .nav-link {
  font-size: 18px;
  font-weight: 700;
  color: #6c757d;
  padding: 12px 30px;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.hbst-tabs .nav-link:hover {
  color: #333;
  border-bottom-color: #ccc;
}

.hbst-tabs .nav-link.active {
  color: var(--primary-bg-color, #3a7cc3);
  border-bottom-color: var(--primary-bg-color, #3a7cc3);
  background: none;
}

/* Tab content */
.hbst-content {
  padding-top: 10px;
}

/* Carousel */
.hbst-carousel.owl-carousel .owl-stage-outer {
  overflow: hidden;
}

.hbst-carousel.owl-carousel .product-miniature {
  width: 100%;
  max-width: 100%;
  float: none;
}

/* Owl Carousel navigation arrows */
.hbst-carousel.owl-carousel .owl-nav {
  position: absolute;
  padding-top: 500px;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
  margin: 0;
}

.hbst-carousel.owl-carousel .owl-nav button.owl-prev,
.hbst-carousel.owl-carousel .owl-nav button.owl-next {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff !important;
  border: 1px solid #ddd !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: all;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.hbst-carousel.owl-carousel .owl-nav button.owl-prev:hover,
.hbst-carousel.owl-carousel .owl-nav button.owl-next:hover {
  background: var(--primary-bg-color, #3a7cc3) !important;
  border-color: var(--primary-bg-color, #3a7cc3) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hbst-carousel.owl-carousel .owl-nav button.owl-prev {
  left: 0;
}

.hbst-carousel.owl-carousel .owl-nav button.owl-next {
  right: 0;
}

/* Arrow icons via pseudo-elements */
.hbst-prev-icon,
.hbst-next-icon {
  display: block;
  width: 15px !important;
  height: 15px !important;
  border-top: 4px solid var(--main-color);
  border-right: 4px solid var(--main-color);
}

.hbst-prev-icon {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.hbst-next-icon {
  transform: rotate(45deg);
  margin-right: 3px;
}

.hbst-carousel.owl-carousel .owl-nav button:hover .hbst-prev-icon,
.hbst-carousel.owl-carousel .owl-nav button:hover .hbst-next-icon {
  border-color: #fff;
}

.hbst-carousel.owl-carousel .owl-nav button.disabled {
  opacity: 0.3;
  cursor: default;
}

/* Responsive */
@media (max-width: 767px) {
  .hbst-tabs .nav-link {
    font-size: 15px;
    padding: 10px 20px;
  }

  .hbst-section {
    padding: 25px 0;
  }

  .hbst-carousel.owl-carousel .owl-nav button.owl-prev,
  .hbst-carousel.owl-carousel .owl-nav button.owl-next {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .hbst-tabs .nav-link {
    font-size: 14px;
    padding: 8px 16px;
  }
}
