.search-trending-container {
  background-color: var(--body-background);
}

.search-trending-top {
  background-color: var(--body-background);
  height: 100%;
  display: flex;
  justify-content: start;
}

.trending-products-card {
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  padding: 0px 15px;
  flex: 0 0 calc(100% / 6.5 - 30px);
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease;
}

.top-category-icons {
  flex: 0 0 calc(100% / 9.5);
  height: auto;
  margin-bottom: 15px;
  padding: 0;
}

.top-category-icons.item.active-section {
  position: relative;
  /* height: 50px;
  border-radius: 50%; */
  background-color: #00000026;
  box-shadow: 0px 0px 30px 10px rgb(46 51 49);
}

.top-category-icons.item.active-section img {
  position: absolute;
  bottom: 0%;
}

.trending-products-card::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.top-category-icons::after {
  content: none;
}

.trending-products-card:hover::after {
  transform: scaleX(1);
}

.trending-products-card:hover img {
  transform: scale(1.1);
}

.trending-products-card.active-section::after {
  transform: scaleX(1);
}

.search-trending-top a {
  font-size: 14px;
  text-transform: capitalize;
  margin-bottom: 10px;
  color: #000000;
}

.search-trending-top img {
  transition: transform 0.3s ease;
  background-color: #00000021;
  border-radius: 15px;
}

.top-category-icons img {
  height: auto;
  background-color: #ffffff00;
  border-radius: 0px;
}

.search-trending-top-left,
.search-trending-top-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-trending-top-categories {
  display: flex;
  transition: transform 0.3s ease;
  justify-content: space-between;
  align-items: end;
  gap: 5px;
}

.card-slider {
  flex: 1;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.category-content {
  padding: 10px 16px 40px 16px;
  background-color: #fff;
  position: relative;
  margin-bottom: 30px;
}

.category-panel {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
  transform: translateY(10px);
}

.category-panel.active {
  position: relative;
  z-index: 2;
  opacity: 1;
  top: 0;
  transform: translateY(0);
  transition: all 0.35s ease;
  transition-delay: 0.1s;
}

.category-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.category-content ul li {
  text-align: center;
  margin-bottom: 0;
  flex: 0 0 calc(100% / 7 - 10px);
  padding: 5px;
}

.category-content ul li:hover .subcategory-image img {
  transform: scale(1.02);
}

.category-content ul li a {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
}

.subcategory-image {
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #8b8f932b;
  border-radius: 5px;
}

.subcategory-title {
  font-weight: 400;
  margin: 12px 0 0;
  line-height: 1;
  transition: 0.5s;
  color: #666;
  font-size: 16px;
}

.top-category-blocks {
  width: calc(33% - 3px);
}

.top-category-blocks1 {
  width: calc(50% - 4px);
}

.top-category-header {
  width: calc(50% - 0px);
}

@media (max-width: 1024px) {
  .trending-products-card {
    flex: 0 0 calc(100% / 6.5 - 30px);
  }

  .top-category-icons {
    flex: 0 0 calc(100% / 6.5);
  }

  .category-content ul li {
    flex: 0 0 calc(100% / 7 - 10px);
  }
  
  .top-category-blocks {
    width: calc(48% - 0px) !important;
  }

  .top-category-blocks1 {
    width: calc(50% - 4px) !important;
  }
}

@media (max-width: 1100px) {
  .trending-products-card {
    flex: 0 0 calc(100% / 6.5 - 30px);
  }

  .top-category-icons {
    flex: 0 0 calc(100% / 5.5);
  }

  .category-content ul li {
    flex: 0 0 calc(100% / 6.5 - 10px);
  }

  .top-category-blocks {
    width: calc(48% - 0px) !important;
  }

  .top-category-blocks1 {
    width: calc(100% - 0px) !important
  }
}

@media (max-width: 950px) {
  .trending-products-card {
    flex: 0 0 calc(100% / 5.5 - 30px);
  }

  .top-category-icons {
    flex: 0 0 calc(100% / 4.5);
  }

  .category-content ul li {
    flex: 0 0 calc(20% - 10px);
  }

  .top-category-blocks {
    width: calc(48% - 0px) !important;
  }

  .top-category-blocks1 {
    width: calc(100% - 0px) !important
  }

  .top-category-header {
    width: calc(100% - 0px) !important;
  }
}

@media (max-width: 800px) {
  .search-trending-top i {
    font-size: 25px;
  }

  .search-trending-top a {
    font-size: 12px;
  }

  .trending-products-card {
    flex: 0 0 calc(100% / 4.5 - 30px);
  }

  .category-content ul li {
    flex: 0 0 calc(25% - 10px);
  }

  .top-category-blocks {
    width: calc(49% - 0px) !important;
  }

  .top-category-blocks1 {
    width: calc(100% - 0px) !important
  }
}

@media (max-width: 650px) {
  .trending-products-card {
    flex: 0 0 calc(100% / 3.5 - 30px);
  }

  .top-category-icons {
    flex: 0 0 calc(100% / 3.5);
  }

  .category-content ul li {
    flex: 0 0 calc(33.33% - 10px);
  }

  .top-category-blocks {
    width: calc(49% - 0px) !important;
  }

  .top-category-blocks1 {
    width: calc(100% - 0px) !important
  }

  .top-category-header {
    width: calc(50% - 0px) !important;
  }
}

@media (max-width: 500px) {
  .search-trending-top i {
    font-size: 14px;
  }

  .search-trending-top a {
    font-size: 10px;
  }

  .trending-products-card {
    flex: 0 0 calc(100% / 2.5 - 30px);
  }

  .category-content ul li {
    flex: 0 0 calc(50% - 10px);
  }

  .top-category-icons {
    flex: 0 0 calc(100% / 2.5);
  }

  .top-category-blocks {
    width: calc(48% - 0px) !important;
  }

  .top-category-blocks1 {
    width: calc(100% - 0px) !important
  }

  .top-category-header {
    width: calc(100% - 0px) !important;
  }
}

@media (max-width: 800px) {
  .search-trending-top i {
    font-size: 14px;
  }
}