/* ================= RESET ================= */
.buyers-listing * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.buyers-listing {
  background: #f4f6fb;
  color: #333;
  padding: 20px 0;
}

/* ================= HEADER TABS ================= */
.buyers-listing .header-tabs {
  max-width: 1350px;
  margin: 20px auto;
  padding: 0 15px;
  display: flex;
  gap: 12px;
}

.buyers-listing .tab-btn {
  background: #fff;
  border: 2px solid #dfe3ec;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buyers-listing .tab-btn:hover {
  border-color: #3a5fb0;
  color: #3a5fb0;
}

.buyers-listing .tab-btn.active {
  background: #3a5fb0;
  color: #fff;
  border-color: #3a5fb0;
}

/* ================= LAYOUT ================= */
.buyers-listing .page-wrapper {
  max-width: 1350px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  padding: 0 15px;
}

/* ================= SIDEBAR (FIXED HEIGHT) ================= */
.buyers-listing .sidebar {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  height: calc(90vh - 200px);
  overflow-y: auto;
  position: sticky;
  top: 20px;
}

.buyers-listing .sidebar h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.buyers-listing .filter-group {
  margin-bottom: 18px;
}

.buyers-listing .filter-group label {
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.buyers-listing .filter-group select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
}

/* ================= PRODUCT LIST ================= */
.buyers-listing .product-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ================= PRODUCT CARD ================= */
.buyers-listing .product-card {
  background: #fff;
  display: grid;
  grid-template-columns: 200px 1fr 160px;
  gap: 18px;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.06);
  align-items: flex-start;
  transition: all 0.3s ease;
}

/* IMAGE */
.buyers-listing .product-image {
  width: 200px;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef1f6;
}

.buyers-listing .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* INFO */
.buyers-listing .product-info h4 {
  font-size: 17px;
  color: #1f2933;
  margin-bottom: 6px;
}

.buyers-listing .type {
  font-size: 13px;
  margin-bottom: 6px;
}

.buyers-listing .meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.buyers-listing .product-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.65;
  margin-bottom: 8px;
  max-height: 65px;
  overflow: hidden;
  position: relative;
}

.buyers-listing .product-desc.expanded {
  max-height: none;
}

.buyers-listing .show-more-btn {
  background: none;
  border: none;
  color: #3a5fb0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
  text-decoration: underline;
}

.buyers-listing .show-more-btn:hover {
  color: #2f4ea0;
}

/* CATEGORIES */
.buyers-listing .categories {
  font-size: 12px;
  color: #555;
}

.buyers-listing .categories strong {
  display: block;
  margin-bottom: 8px;
  color: #1f2933;
}

.buyers-listing .categories span {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 6px;
  background: #3a5fb0;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* CTA */
.buyers-listing .product-cta {
  text-align: center;
}

.buyers-listing .product-cta button {
  background: #3a5fb0;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}

.buyers-listing .product-cta button:hover {
  background: #2f4ea0;
}

/* ================= PAGINATION ================= */
.buyers-listing .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  gap: 6px;
  flex-wrap: wrap;
}

.buyers-listing .pagination a,
.buyers-listing .pagination span {
  padding: 8px 14px;
  background: #fff;
  border-radius: 6px;
  text-decoration: none;
  color: #3a5fb0;
  border: 1px solid #dfe3ec;
  font-size: 14px;
  min-width: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.buyers-listing .pagination a.active {
  background: #3a5fb0;
  color: #fff;
  border-color: #3a5fb0;
}

.buyers-listing .pagination a:hover:not(.active) {
  background: #e9edfa;
  border-color: #3a5fb0;
}

.buyers-listing .pagination .dots {
  border: none;
  background: transparent;
  color: #666;
  padding: 8px 4px;
  cursor: default;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .buyers-listing .page-wrapper {
    grid-template-columns: 1fr;
  }

  .buyers-listing .sidebar {
    height: auto;
    position: relative;
  }

  .buyers-listing .product-card {
    grid-template-columns: 200px 1fr;
  }

  .buyers-listing .product-cta {
    grid-column: span 2;
    margin-top: 10px;
  }
}

@media (max-width: 520px) {
  .buyers-listing .header-tabs {
    flex-wrap: wrap;
  }

  .buyers-listing .tab-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .buyers-listing .product-card {
    grid-template-columns: 1fr;
  }

  .buyers-listing .product-image {
    margin: auto;
    width: 300px;
  }

  .buyers-listing .product-cta {
    grid-column: auto;
  }
}