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

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

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

.b2b-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;
}

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

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

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

/* ================= SIDEBAR (FIXED HEIGHT) ================= */
.b2b-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;
}

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

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

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

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

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

/* ================= PRODUCT CARD ================= */
.b2b-listing .product-card {
  background: #fff;
  display: grid;
  grid-template-columns: 80% 20%;
  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;
}

/* COUNTRY TAG */
.b2b-listing .country-tag {
  display: inline-block;
  background: #e0e7ff;
  color: #3a5fb0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* INFO */
.b2b-listing .product-info {
  display: flex;
  flex-direction: column;
}

.b2b-listing .product-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.b2b-listing .product-title {
  font-size: 17px;
  font-weight: 600;
  color: #1f2933;
  margin: 0;
  line-height: 1.3;
}

.b2b-listing .product-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 8px;
  max-height: 70px;
  overflow: hidden;
  position: relative;
}

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

.b2b-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;
  align-self: flex-start;
}

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

.b2b-listing .product-meta {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.b2b-listing .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-listing .meta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.b2b-listing .meta-content {
  display: flex;
  flex-direction: column;
}

.b2b-listing .meta-label {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 2px;
}

.b2b-listing .meta-value {
  font-size: 13px;
  color: #1f2937;
  font-weight: 500;
}

/* CTA */
.b2b-listing .product-cta {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.b2b-listing .quote-btn {
  background: #0052cc;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.b2b-listing .quote-btn:hover {
  background: #0043a8;
}

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

.b2b-listing .pagination a,
.b2b-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;
}

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

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

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

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

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

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

  .b2b-listing .product-cta {
    justify-content: flex-end;
  }
}

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

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

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

  .b2b-listing .product-meta {
    flex-direction: column;
    gap: 12px;
  }
}