/* Sprint 619 — Premium search result cards */
.search-page,
.search-results-page,
.tf-search-page{background:#f5f7fa}

.search-results-page .product-grid,
.search-page .product-grid,
.tf-search-page .product-grid{
  gap:12px!important;
  align-items:stretch;
}

.search-results-page .product-card-detailed,
.search-page .product-card-detailed,
.tf-search-page .product-card-detailed{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-width:0!important;
  border:1px solid #dfe6ee!important;
  border-radius:13px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 3px 12px rgba(17,42,72,.045)!important;
  transition:transform .18s ease,box-shadow .18s ease!important;
}
.search-results-page .product-card-detailed:hover,
.search-page .product-card-detailed:hover,
.tf-search-page .product-card-detailed:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 12px 28px rgba(17,42,72,.10)!important;
}

.search-results-page .product-card-detailed .product-image,
.search-page .product-card-detailed .product-image,
.tf-search-page .product-card-detailed .product-image{
  position:relative!important;
  aspect-ratio:1.28/1!important;
  min-height:0!important;
  padding:8px!important;
  background:#fafbfd!important;
  overflow:hidden!important;
}
.search-results-page .product-card-detailed .product-image img,
.search-page .product-card-detailed .product-image img,
.tf-search-page .product-card-detailed .product-image img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  border-radius:9px!important;
}

.search-results-page .product-card-detailed .product-body,
.search-page .product-card-detailed .product-body,
.tf-search-page .product-card-detailed .product-body{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  padding:12px!important;
}

.search-results-page .product-card-detailed h3,
.search-page .product-card-detailed h3,
.tf-search-page .product-card-detailed h3{
  min-height:34px!important;
  margin:0 0 7px!important;
  color:#132844!important;
  font-size:12px!important;
  line-height:1.42!important;
  font-weight:800!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.search-results-page .product-card-detailed .price,
.search-page .product-card-detailed .price,
.tf-search-page .product-card-detailed .price{
  margin:2px 0 4px!important;
  color:#102b4e!important;
  font-size:18px!important;
  line-height:1.2!important;
  font-weight:900!important;
}
.search-results-page .product-card-detailed .price small,
.search-page .product-card-detailed .price small,
.tf-search-page .product-card-detailed .price small{
  color:#6f8197!important;
  font-size:8px!important;
  font-weight:700!important;
}

.search-results-page .product-card-detailed .product-description,
.search-page .product-card-detailed .product-description,
.tf-search-page .product-card-detailed .product-description{
  min-height:32px!important;
  margin:4px 0 7px!important;
  color:#718196!important;
  font-size:8px!important;
  line-height:1.5!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.search-results-page .product-card-detailed .product-compact-chips,
.search-page .product-card-detailed .product-compact-chips,
.tf-search-page .product-card-detailed .product-compact-chips{
  display:flex!important;
  gap:5px!important;
  flex-wrap:wrap!important;
  margin:5px 0 8px!important;
}
.search-results-page .product-card-detailed .product-compact-chips>span,
.search-page .product-card-detailed .product-compact-chips>span,
.tf-search-page .product-card-detailed .product-compact-chips>span{
  min-height:23px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  font-size:7px!important;
  line-height:21px!important;
}

.search-results-page .product-card-detailed .supplier-line,
.search-page .product-card-detailed .supplier-line,
.tf-search-page .product-card-detailed .supplier-line{
  margin-top:auto!important;
  min-height:30px!important;
  padding-top:8px!important;
  border-top:1px solid #e6ebf1!important;
  color:#52677f!important;
  font-size:8px!important;
}

.search-results-page .product-card-detailed .card-actions,
.search-page .product-card-detailed .card-actions,
.tf-search-page .product-card-detailed .card-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:7px!important;
  margin-top:8px!important;
}
.search-results-page .product-card-detailed .card-actions>*,
.search-page .product-card-detailed .card-actions>*,
.tf-search-page .product-card-detailed .card-actions>*{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.search-results-page .product-card-detailed .card-actions form,
.search-page .product-card-detailed .card-actions form,
.tf-search-page .product-card-detailed .card-actions form{
  display:block!important;
}
.search-results-page .product-card-detailed .card-actions button,
.search-results-page .product-card-detailed .card-actions a,
.search-page .product-card-detailed .card-actions button,
.search-page .product-card-detailed .card-actions a,
.tf-search-page .product-card-detailed .card-actions button,
.tf-search-page .product-card-detailed .card-actions a{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:37px!important;
  padding:0 8px!important;
  border-radius:8px!important;
  font-size:8px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}

.search-results-page .product-card-detailed .tf-add-cart,
.search-page .product-card-detailed .tf-add-cart,
.tf-search-page .product-card-detailed .tf-add-cart{
  border:1px solid #1768cf!important;
  background:#fff!important;
  color:#145db8!important;
}
.search-results-page .product-card-detailed .tf-buy-now,
.search-page .product-card-detailed .tf-buy-now,
.tf-search-page .product-card-detailed .tf-buy-now{
  border:1px solid #efb62f!important;
  background:#ffc33f!important;
  color:#102341!important;
}
.search-results-page .product-card-detailed .tf-rfq-actions button,
.search-page .product-card-detailed .tf-rfq-actions button,
.tf-search-page .product-card-detailed .tf-rfq-actions button{
  border-color:#efb62f!important;
  background:#ffc33f!important;
  color:#102341!important;
}

.search-results-page .product-card-detailed .product-commerce-actions,
.search-page .product-card-detailed .product-commerce-actions,
.tf-search-page .product-card-detailed .product-commerce-actions{
  display:flex!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:14px!important;
  min-height:28px!important;
  margin-top:3px!important;
}
.search-results-page .product-card-detailed .product-commerce-actions button,
.search-page .product-card-detailed .product-commerce-actions button,
.tf-search-page .product-card-detailed .product-commerce-actions button{
  width:auto!important;
  min-height:0!important;
  padding:3px 0!important;
  border:0!important;
  background:transparent!important;
  color:#526b86!important;
  font-size:7px!important;
  font-weight:800!important;
}

@media(min-width:1500px){
  .search-results-page .product-grid,
  .search-page .product-grid,
  .tf-search-page .product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}

@media(max-width:980px){
  .search-results-page .product-grid,
  .search-page .product-grid,
  .tf-search-page .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:620px){
  .search-results-page .product-grid,
  .search-page .product-grid,
  .tf-search-page .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .search-results-page .product-card-detailed .product-body,
  .search-page .product-card-detailed .product-body,
  .tf-search-page .product-card-detailed .product-body{
    padding:8px!important;
  }
  .search-results-page .product-card-detailed .product-image,
  .search-page .product-card-detailed .product-image,
  .tf-search-page .product-card-detailed .product-image{
    aspect-ratio:1/1!important;
    padding:5px!important;
  }
  .search-results-page .product-card-detailed .product-description,
  .search-page .product-card-detailed .product-description,
  .tf-search-page .product-card-detailed .product-description{
    display:none!important;
  }
  .search-results-page .product-card-detailed .card-actions,
  .search-page .product-card-detailed .card-actions,
  .tf-search-page .product-card-detailed .card-actions{
    grid-template-columns:1fr!important;
  }
  .search-results-page .product-card-detailed .tf-add-cart,
  .search-page .product-card-detailed .tf-add-cart,
  .tf-search-page .product-card-detailed .tf-add-cart{
    display:none!important;
  }
  .search-results-page .product-card-detailed .product-commerce-actions,
  .search-page .product-card-detailed .product-commerce-actions,
  .tf-search-page .product-card-detailed .product-commerce-actions{
    display:none!important;
  }
}

@media(max-width:380px){
  .search-results-page .product-grid,
  .search-page .product-grid,
  .tf-search-page .product-grid{
    grid-template-columns:1fr!important;
  }
}
