/* Trending Now & Best Sellers Section */
.trending-now-section {
  padding: 60px 0;
  background-color: #fdfaf6;
}

.trending-now-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header & Filters */
.trending-now-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.trending-header-left p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #b77935;
  margin: 0 0 8px 0;
}

.trending-header-left h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: #111;
  margin: 0;
  line-height: 1.1;
}

.trending-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.trending-filters-carousel {
  max-width: 600px;
  overflow: hidden;
}

.trending-filter {
  background: #fff;
  border: 1px solid #e2e2e2;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trending-filter:hover {
  border-color: #ccc;
  background: #f4f4f4;
}

.trending-filter.active {
  background: #0d1e1f;
  color: #fff;
  border-color: #0d1e1f;
}

.trending-view-all {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  border: 1px solid #e2e2e2;
  padding: 8px 20px;
  border-radius: 20px;
  background: #fff;
  transition: background 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.trending-view-all:hover {
  background: #f4f4f4;
  border-color: #ccc;
}

/* Carousel Layout -> Grid Layout */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .trending-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .trending-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .trending-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Product Card */
.trending-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 0;
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 340px;
  overflow: hidden;
}

.trending-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

/* Image Wrap */
.trending-img-link {
  display: block;
  text-decoration: none;
}

.trending-card-img-wrap {
  width: 100%;
  height: 70%;
  flex: 0 0 70%;
  background-color: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.trending-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badges & Wishlist */
.trending-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}

.trending-discount, .bestseller-badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background-color: #0d3b2e;
  padding: 4px 8px;
  border-radius: 12px;
}

.trending-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  z-index: 5;
  transition: color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.trending-wishlist:hover {
  color: #e53935;
}

/* Info */
.trending-card-info {
  display: flex;
  flex-direction: column;
  flex: 0 0 30%;
  padding: 12px 16px 12px 16px;
}

.trending-title-link {
  text-decoration: none;
  margin-bottom: 2px;
}

.trending-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-card-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #888;
  margin: 0 0 6px 0;
}

/* Rating */
.trending-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.trending-card-rating .stars {
  color: #ffa000;
  font-size: 10px;
}

.trending-card-rating .rating-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #888;
}

/* Price & Cart Row */
.trending-price-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.trending-price-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trending-original {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #aaa;
  text-decoration: line-through;
}

.trending-price {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #c38446;
}

.trending-add-cart-icon {
  background: #0d1e1f;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  font-size: 12px;
}

.trending-add-cart-icon:hover {
  background: #1a3c3e;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .trending-now-container {
    padding: 0 20px;
  }
  .trending-now-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .trending-header-right {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .trending-filters-carousel {
    width: 100%;
    max-width: 100%;
  }
  .trending-nav {
    display: none;
  }
  .trending-card {
    padding: 12px;
  }
  .trending-card-img-wrap {
    aspect-ratio: 1;
    height: auto;
    margin: 10px 0;
  }
  .trending-card-brand {
    font-size: 13px;
  }
  .trending-card-model {
    font-size: 12px;
  }
  .trending-price {
    font-size: 15px;
  }
  .trending-add-cart-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .trending-quick-view {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .swatch {
    width: 10px;
    height: 10px;
  }
  .trending-card-rating .stars {
    font-size: 10px;
  }
  .trending-card-rating .rating-count {
    font-size: 11px;
  }
}


/* ===== Trending Grid - matches shop card grid ===== */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.trending-grid-item {
  display: flex;
  flex-direction: column;
}
.trending-grid-item .sc-card {
  height: 100%;
}
@media (max-width: 1200px) {
  .trending-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .trending-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .trending-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
