/**
 * Sprint 18.4.458 — Products listing UI match screenshot
 * Dual CTAs, clean cards, filters panel polish
 */

/* Results head */
.tf-products-marketplace .tf-products-results {
  padding-top: 8px;
}
.tf-products-marketplace .tf-products-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.tf-products-marketplace .tf-products-results-head span {
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  color: #8a97a8;
  text-transform: uppercase;
}
.tf-products-marketplace .tf-products-results-head h2 {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 900;
  color: #0b2f66;
  letter-spacing: -0.02em;
}
.tf-products-marketplace .tf-products-results-head small {
  font-size: 13px;
  color: #6b7f96;
  font-weight: 600;
}
.tf-products-marketplace .tf-products-rfq-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #e2eaf3;
  background: #fff;
  color: #0b2f66;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

/* SEO intro bar */
.tf-products-marketplace .tf-products-seo-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e8eef5;
  background: #fff;
}
.tf-products-marketplace .tf-products-seo-intro span {
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  color: #1a56db;
  text-transform: uppercase;
}
.tf-products-marketplace .tf-products-seo-intro strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: #0b2f66;
}
.tf-products-marketplace .tf-products-seo-intro p {
  margin: 0;
  font-size: 12.5px;
  color: #6b7f96;
  max-width: 280px;
  text-align: right;
}

/* Filter sidebar card */
.tf-products-marketplace .filter-sidebar {
  background: #fff !important;
  border: 1px solid #e8eef5 !important;
  border-radius: 16px !important;
  padding: 14px !important;
  box-shadow: 0 6px 18px rgba(7, 27, 70, 0.04) !important;
}

/* Product cards */
.tf-products-marketplace .tf-pcard,
.tf-products-marketplace .product-card-detailed {
  border-radius: 16px !important;
  border: 1px solid #e8eef5 !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(7, 27, 70, 0.05) !important;
  overflow: hidden !important;
}
.tf-products-marketplace .tf-pcard:hover,
.tf-products-marketplace .product-card-detailed:hover {
  border-color: #d7e2ef !important;
  box-shadow: 0 12px 28px rgba(7, 27, 70, 0.1) !important;
}

/* Meta chips row */
.tf-products-marketplace .tf-pcard-meta,
.tf-products-marketplace .product-compact-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 6px 0 4px !important;
}
.tf-products-marketplace .tf-pcard-meta-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 5px 8px !important;
  border-radius: 10px !important;
  background: #f4f7fb !important;
  border: 1px solid #e8eef5 !important;
}
.tf-products-marketplace .tf-pcard-meta-item small {
  display: block !important;
  font-size: 9px !important;
  color: #8a97a8 !important;
  line-height: 1.1 !important;
}
.tf-products-marketplace .tf-pcard-meta-item b {
  display: block !important;
  font-size: 11px !important;
  color: #0b2f66 !important;
  line-height: 1.15 !important;
}

/* Price */
.tf-products-marketplace .price,
.tf-products-marketplace .tf-pcard-price {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #0b2f66 !important;
}

/* Dual CTAs global override (beats other sheets) */
.tf-products-marketplace .tf-pcard-actions.tf-shop-actions,
.tf-products-marketplace .tf-shop-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  transform: none !important;
}
.tf-products-marketplace .tf-pcard-buy-form {
  display: block !important;
  width: 100% !important;
}
.tf-products-marketplace .tf-pcard-btn,
.tf-products-marketplace .tf-add-cart,
.tf-products-marketplace .tf-buy-now {
  min-height: 40px !important;
  border-radius: 10px !important;
  font-weight: 850 !important;
}
.tf-products-marketplace .tf-pcard-btn-ghost.tf-add-cart,
.tf-products-marketplace .tf-add-cart {
  background: #ffc33f !important;
  border: 1px solid #efb62f !important;
  color: #102341 !important;
}
.tf-products-marketplace .tf-pcard-btn-primary.tf-buy-now,
.tf-products-marketplace .tf-buy-now {
  background: linear-gradient(100deg, #f4b72f, #e8a80f) !important;
  border: 1px solid #e0a40f !important;
  color: #102341 !important;
  width: 100% !important;
}

@media (max-width: 720px) {
  .tf-products-marketplace .tf-products-results-head {
    flex-direction: column;
  }
  .tf-products-marketplace .tf-products-seo-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .tf-products-marketplace .tf-products-seo-intro p {
    text-align: left;
    max-width: none;
  }
  .tf-products-marketplace .tf-pcard-actions.tf-shop-actions,
  .tf-products-marketplace .tf-shop-actions {
    grid-template-columns: 1fr !important;
  }
}
