.text-center {
  text-align: center;
}

.dfcatbs-section {
  padding: 40px 0;
  background: #f5f0e1;
}

/* Category tab buttons */
.dfcatbs-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.dfcatbs-tab-btn {
  background: transparent;
  border: 1.5px solid #c9a84c;
  color: #333;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dfcatbs-tab-btn:hover,
.dfcatbs-tab-btn.active {
  background: #c9a84c;
  color: #fff;
  border-color: #c9a84c;
}

/* Products grid */
.dfcatbs-products-wrap {
  display: none;
}

.dfcatbs-products-wrap.active {
  display: block;
}

.dfcatbs-products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* View all button */
.dfcatbs-viewall {
  text-align: center;
  margin-top: 25px;
}

.dfcatbs-viewall-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1a3a2a;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease;
}

.dfcatbs-viewall-btn:hover {
  background: #c9a84c;
  color: #fff;
}

.dfcatbs-carousel {
  position: relative;
  display: flex;
  align-items: center;
}

.dfcatbs-track {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
}

.dfcatbs-item {
  flex: 0 0 auto;
  width: 250px; /* adjust based on your design */
  margin-right: 15px;
}

/* Navigation buttons */
.dfcatbs-nav {
  background: #fff;
  border: 1px solid #ddd;
  cursor: pointer;
  padding: 10px;
  font-size: 20px;
  z-index: 2;
}

.dfcatbs-nav.prev {
  margin-right: 10px;
}

.dfcatbs-nav.next {
  margin-left: 10px;
}

@media (max-width: 991px) {

  .dfcatbs-tabs {
    flex-wrap: wrap;
    gap: 10px;
  }

  .dfcatbs-tab-btn {
    font-size: 13px;
    padding: 10px 18px;
  }

  .dfcatbs-item {
    width: 220px;
  }
}

.dfbestsellers-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 767px) {

  .dfcatbs-section {
    padding: 30px 15px;
  }

  /* tabs */
  .dfcatbs-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
  }

  .dfcatbs-tab-btn {
    width: 100%;
    max-width: 320px;

    font-size: 13px;
    padding: 12px 16px;
    text-align: center;
  }

  /* carousel */
  .dfcatbs-carousel {
    position: relative;
    overflow: hidden;
  }

  .dfcatbs-track {
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .dfcatbs-track::-webkit-scrollbar {
    display: none;
  }

  /* product cards */
  .dfcatbs-item {
    width: 75%;
    min-width: 240px;

    scroll-snap-align: center;
    margin-right: 0;
  }

  /* arrows smaller */
  .dfcatbs-nav {
    padding: 8px;
    font-size: 16px;
  }

  /* product images */
  .dfcatbs-item img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* text spacing */
  .dfcatbs-item h3,
  .dfcatbs-item p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* button */
  .dfcatbs-viewall-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}