/*=========================================================
            BEST SELLERS HERO
=========================================================*/

.bestseller-hero-section {
  position: relative;
  overflow: hidden;
  background: #101010;
  padding: 160px 0 90px;
}

.bestseller-hero-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(244, 91, 154, 0.35) 0%,
    rgba(244, 91, 154, 0) 70%
  );
  filter: blur(10px);
  z-index: 0;
}

.bestseller-breadcrumb {
  position: relative;
  z-index: 2;
  margin-bottom: 28px;
}

.bestseller-breadcrumb a,
.bestseller-breadcrumb span {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
}

.bestseller-breadcrumb .active-page {
  color: var(--primary-color);
}

.bestseller-breadcrumb i {
  margin: 0 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.bestseller-hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.bestseller-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 91, 154, 0.15);
  border: 1px solid rgba(244, 91, 154, 0.4);
  color: var(--primary-color);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.bestseller-hero-content h1 {
  color: #ffffff;
  font-size: 48px;
  margin-bottom: 16px;
}

.bestseller-hero-content p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  margin-bottom: 32px;
}

.bestseller-rating-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.bestseller-rating-score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bestseller-rating-score span {
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
}

.bestseller-rating-score .stars {
  color: #ffc107;
  font-size: 15px;
}

.bestseller-rating-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.15);
}

.bestseller-rating-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.bestseller-rating-text strong {
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .bestseller-hero-content h1 {
    font-size: 32px;
  }

  .bestseller-rating-divider {
    display: none;
  }
}
/*=========================================================
            FILTER BAR (pills + sort)
=========================================================*/

.bestseller-products-section {
  padding: 90px 0;
}

.bestseller-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 45px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.bestseller-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-btn {
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.pill-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pill-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--pure-white);
}

.bestseller-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bestseller-sort label {
  font-size: 14px;
  color: var(--text-color);
}

.bestseller-sort select {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  background: var(--pure-white);
}

/*=========================================================
            RANKED PRODUCT GRID
=========================================================*/

.bestseller-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.bestseller-ranked {
  position: relative;
}

.best-rank-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #101010;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--primary-color);
}

@media (max-width: 991.98px) {
  .bestseller-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .bestseller-grid {
    grid-template-columns: 1fr;
  }
}
/*=========================================================
            CUSTOMER TRUST STRIP
=========================================================*/

.bestseller-trust-title {
  color: var(--heading-color);
  font-size: 34px;
  margin: 14px 0 30px;
}

.bestseller-trust-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-stat h3 {
  color: var(--primary-color);
  font-size: 38px;
  margin-bottom: 6px;
}

.trust-stat span {
  color: var(--text-color);
  font-size: 14px;
}

.bestseller-rating-breakdown {
  background: var(--luxury-light-gray);
  padding: 40px;
  border-radius: 10px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.rating-row:last-child {
  margin-bottom: 0;
}

.rating-label {
  width: 55px;
  font-size: 13px;
  color: var(--text-color);
  flex-shrink: 0;
}

.rating-bar {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-hover)
  );
  border-radius: 10px;
}

.rating-percent {
  width: 40px;
  text-align: right;
  font-size: 13px;
  color: var(--heading-color);
  font-weight: 500;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .bestseller-trust-stats {
    gap: 24px;
  }

  .bestseller-rating-breakdown {
    padding: 28px 20px;
  }
}
/*=========================================================
            EXPLORE COLLECTION CTA
=========================================================*/

.bestseller-cta-section {
  padding-top: 0;
}
/*=========================================================
        BEST SELLERS HERO — RIGHT IMAGE
=========================================================*/

.bestseller-hero-image {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 45%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 18%,
    rgba(0, 0, 0, 1) 40%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 18%,
    rgba(0, 0, 0, 1) 40%
  );
}

@media (max-width: 991.98px) {
  .bestseller-hero-image {
    width: 100%;
    opacity: 0.18;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.8) 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }
}
