

.top-product-section {
  background-color: #f7f7f7;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.top-product-container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.top-product-header {
  text-align: center;
}

.top-product-heading {
  margin: 1rem auto;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.top-product-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 2.5rem;
  row-gap: 1rem;
  margin-top: 2.5rem;
}

.top-product-carousel-wrap {
  position: relative;
  margin-top: 2.5rem;
}

.top-product-accent {
  display: block;
  height: 0.5rem;
  width: 11rem;
  margin: 0 auto;
  /* background-color: #38b449; */
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
}

.top-product-tab {
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #64748b;
  transition: color 0.2s ease;
  cursor: pointer;
}

.top-product-tab:hover,
.top-product-tab.is-active {
  color: var(--bg-primary);
}

.top-product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background-color: #fbfbfb;
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
}

.top-product-card:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.top-product-image-wrap {
  display: flex;
  height: 17.5rem;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.top-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 1.25rem 1.25rem;
  box-sizing: border-box;
}

.top-product-title {
  font-weight: 500;
  color: #0f172a;
  font-size: clamp(1.32rem, 1.25vw, 1.7rem);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 1.3rem;
  color: #cbd5e1;
}

.top-product-count {
  margin-inline-start: 0.25rem;
  font-size: 1rem;
  color: #1e293b;
}

.top-product-star-filled {
  color: #f2b01e;
}

.top-product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  font-weight: 600;
  /* color: #38b449; */
  font-size: clamp(1.45rem, 1.35vw, 1.9rem);
  display: none;
}

.top-product-old-price {
  font-size: 1.125rem;
  font-weight: 400;
  color: #64748b;
}

.top-product-cart-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.625rem 1rem;
  border: 0;
  border-radius: 0.25rem;
  background-color: var(--bg-primary);
  color: #fff;
  opacity: 1;
  transition: opacity 0.3s ease;
  cursor: pointer;
  font-size: clamp(1.15rem, 1.05vw, 1.4rem);
}

.top-product-card:hover .top-product-cart-btn {
  opacity: 1;
}

.top-product-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  /* background-color: #38b449; */
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: #fff;
}

.top-product-slider {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.dark .bgdarg{background: #1e2939!important;}
.dark .textWhite { color: rgb(255, 255, 255); }
.dark .bgdarg3{background: #27364c;border: 2px solid #1e2939;}


@media (max-width: 768px) {
  .top-product-slider {
    grid-template-columns: 1fr;
  }

  .top-product-image-wrap {
    height: 14.5rem;
  }

  .top-product-accent {
    width: 9rem;
  }

  .top-product-section {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .top-product-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .top-product-heading {
    font-size: 1.95rem;
  }

  .top-product-title {
    font-size: 1.25rem;
  }

  .top-product-rating {
    font-size: 1rem;
  }

  .top-product-price {
    font-size: 1.5rem;
  }

  .top-product-old-price {
    font-size: 1rem;
  }

  .top-product-cart-btn {
    font-size: 1.125rem;
    opacity: 1;
  }
  .top-product-title{text-align: center!important;}
  .top-product-rating {  margin: auto!important;margin-top: 13px!important;}
  .top-product-image-wrap{height: 88vw!important;}

}

@media (min-width: 768px) {
  .top-product-slider {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-product-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .top-product-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .top-product-heading {
    font-size: 3rem;
  }

  .top-product-accent {
    width: 13rem;
  }

  .top-product-image-wrap {
    height: 16.5rem;
  }
}

@media (min-width: 1200px) {
  .top-product-slider {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .top-product-image-wrap {
    height: 17.5rem;
  }
}
