/* ================= RESET (SCOPED) ================= */
.b2b-listing * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
}

/* ================= PAGE ================= */
.b2b-listing {
  color: #333;
  padding: 20px 0;
  margin-top: 155px !important;
}

/* ================= LAYOUT ================= */
.b2b-listing .page-wrapper {
  max-width: 1350px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  padding: 0 15px;
}

/* ================= SIDEBAR ================= */
.b2b-listing .sidebar {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: calc(90vh - 200px);
  overflow-y: auto;
  position: sticky;
  top: 20px;
  border: 1px solid #e0e4ef;
}

.b2b-listing .sidebar h3 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #111;
  font-weight: 700;
}

.b2b-listing .filter-group {
  margin-bottom: 18px;
}

.b2b-listing .filter-group label {
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.b2b-listing .filter-group select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
  color: #333;
}

/* ================= QUOTE BUTTON ================= */
.b2b-listing .quote-btn {
  display: inline-block;
  width: 100%;
  padding: 10px 18px;
  background: #3a5fb0;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  margin-top: 4px;
}

.b2b-listing .quote-btn:hover {
  background: #2f4e8f;
}

/* ================= PRODUCT LIST ================= */
.b2b-listing .product-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ================= CARD ================= */
.b2b-listing .card {
  background: #fff;
  border: 1px solid #dde2ef;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 2px 14px rgba(58, 95, 176, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.b2b-listing .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(58, 95, 176, 0.13);
}

.b2b-listing .card-body {
  display: flex;
  min-height: 175px;
}

/* IMAGE */
.b2b-listing .card-image {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  align-self: stretch;
}

.b2b-listing .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* CONTENT */
.b2b-listing .card-content {
  flex: 1;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* HEADER */
.b2b-listing .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  background: transparent;
}

.b2b-listing .title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}

.b2b-listing .card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

/* META */
.b2b-listing .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.b2b-listing .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: #666;
}

.b2b-listing .meta-item.verified {
  color: #3a5fb0;
  font-weight: 500;
}

/* BUTTON */
.b2b-listing .contact-btn {
  background: #3a5fb0;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.b2b-listing .contact-btn:hover {
  background: #2f4e8f;
}

/* DESCRIPTION — removed border-top, just a small top gap */
.b2b-listing .description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  padding-top: 4px;
  margin-top: 2px;
}

/* INFO ROW */
.b2b-listing .info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 4px;
}

.b2b-listing .info-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #555;
}

.b2b-listing .info-item strong {
  font-weight: 600;
  color: #1a1a2e;
}

.b2b-listing .info-item.verified {
  color: #2e7d32;
}

/* FOOTER */
.b2b-listing .card-footer {
  border-top: 1px solid #e8eaf2;
  padding: 9px 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f8fc;
  flex-wrap: wrap;
}

.b2b-listing .buyer-id {
  font-size: 11.5px;
  color: #888;
  font-weight: 500;
}

/* BLUR EFFECT */
.b2b-listing .blurred {
  color: transparent;
  text-shadow: 0 0 8px rgba(0,0,0,0.5);
  padding: 3px 8px;
  border-radius: 5px;
  user-select: none;
}

/* ================= PAGINATION ================= */
.b2b-listing .pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  gap: 6px;
}

.b2b-listing .pagination a,
.b2b-listing .pagination span {
  padding: 8px 14px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #dde2ef;
  color: #3a5fb0;
  font-size: 13px;
  text-decoration: none;
}

.b2b-listing .pagination .active {
  background: #3a5fb0;
  color: #fff;
  border-color: #3a5fb0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .b2b-listing .page-wrapper {
    grid-template-columns: 1fr;
  }

  .b2b-listing .sidebar {
    height: auto;
    position: relative;
  }

  .b2b-listing .card-body {
    flex-direction: column;
  }

  .b2b-listing .card-image {
    width: 100%;
    height: 200px;
    position: relative;
  }

  .b2b-listing .card-image img {
    position: absolute;
  }
}

@media (max-width: 520px) {
  .b2b-listing .info-row {
    flex-direction: column;
    gap: 8px;
  }

  .b2b-listing .card-content {
    padding: 0.9rem 1rem;
  }
}

.country-flag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-flag .flag-icon {
  width: 20px;
  height: 15px;
  border-radius: 2px;
}