/* Popular Brands Section */
.popular-brands-section {
  padding: 60px 0;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
}

.popular-brands-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.popular-brands-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.popular-title-wrap {
  display: flex;
  flex-direction: column;
}

.popular-title-wrap h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: #111;
  margin: 0;
}

.popular-divider {
  width: 60px;
  height: 2px;
  background-color: #dfc282;
  margin-top: 5px;
  position: relative;
}
.popular-divider::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 25px;
  width: 10px;
  height: 6px;
  border: 1px solid #dfc282;
  border-radius: 50%;
  background: #fff;
}

/* Grid Layout */
.popular-brands-grid {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.popular-brands-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.popular-brand-card {
  flex: 0 0 calc(100% / 5 - 12px);
  min-width: 120px;
  aspect-ratio: 2 / 1;
  background: #fff;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.popular-brand-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-color: #ddd;
}

.popular-brand-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Make logos black/greyscale if desired, depending on image */
}

/* Responsive */
@media (max-width: 1200px) {
  .popular-brand-card {
    flex: 0 0 calc(100% / 4 - 12px);
  }
}

@media (max-width: 768px) {
  .popular-brand-card {
    flex: 0 0 calc(100% / 3 - 11px);
    min-width: 100px;
  }
  .popular-brands-header {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .popular-brand-card {
    flex: 0 0 calc(100% / 2 - 10px);
  }
}
