/* Sprint 654 — Featured Marketplace Premium Product Cards
   Exact scope: homepage .marketplace-products only.
   Trending section remains unchanged.
   Solid colors only; no gradients. */

.tf-homepage .marketplace-products{
  background:#f6f8fb!important;
}

.tf-homepage .marketplace-products>.shell{
  width:calc(100% - 32px)!important;
  max-width:1580px!important;
  margin-inline:auto!important;
}

/* Section heading */
.tf-homepage .marketplace-products .curated-products-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:12px!important;
}

.tf-homepage .marketplace-products .curated-products-head .eyebrow{
  margin-bottom:4px!important;
  color:#1768cf!important;
  font-size:7px!important;
  letter-spacing:.10em!important;
}

.tf-homepage .marketplace-products .curated-products-head h2{
  margin:0 0 3px!important;
  color:#123354!important;
  font-size:24px!important;
  line-height:1.05!important;
  letter-spacing:-.035em!important;
}

.tf-homepage .marketplace-products .curated-products-head .section-copy{
  margin:0!important;
  color:#73859a!important;
  font-size:8px!important;
  line-height:1.4!important;
}

.tf-homepage .marketplace-products .curated-products-head>a{
  flex:0 0 auto!important;
  min-height:34px!important;
  padding:0 9px 0 11px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  border:1px solid #d6e1ec!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#1768cf!important;
  font-size:7.5px!important;
  font-weight:900!important;
  text-decoration:none!important;
}

.tf-homepage .marketplace-products .curated-products-head>a span{
  display:grid!important;
  place-items:center!important;
  width:22px!important;
  height:22px!important;
  border-radius:7px!important;
  background:#eef5ff!important;
}

/* Grid */
.tf-homepage .marketplace-products .featured-twelve-grid{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:9px!important;
  width:100%!important;
}

/* Premium card */
.tf-homepage .marketplace-products .tf-featured-opportunity-card{
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border:1px solid #dce5ee!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 5px 15px rgba(13,42,76,.035)!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important;
}

.tf-homepage .marketplace-products .tf-featured-opportunity-card:hover{
  transform:translateY(-2px)!important;
  border-color:#c7d7e7!important;
  box-shadow:0 10px 24px rgba(13,42,76,.07)!important;
}

/* Image */
.tf-homepage .marketplace-products .tf-featured-opportunity-media{
  position:relative!important;
  flex:0 0 158px!important;
  width:100%!important;
  height:158px!important;
  min-height:158px!important;
  max-height:158px!important;
  padding:7px!important;
  overflow:hidden!important;
  border-bottom:1px solid #e6ebf1!important;
  background:#f8fafc!important;
}

.tf-homepage .marketplace-products .tf-featured-opportunity-image-link{
  width:100%!important;
  height:100%!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border-radius:8px!important;
  background:#fff!important;
}

.tf-homepage .marketplace-products .tf-featured-opportunity-media img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  padding:2px!important;
  object-fit:contain!important;
  object-position:center!important;
}

/* Compact overlay tools */
.tf-homepage .marketplace-products .tf-featured-card-tools{
  position:absolute!important;
  top:8px!important;
  right:8px!important;
  z-index:4!important;
  display:grid!important;
  gap:5px!important;
}

.tf-homepage .marketplace-products .tf-featured-tool{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #d9e3ed!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.97)!important;
  color:#173657!important;
  box-shadow:0 4px 12px rgba(12,40,73,.08)!important;
  text-decoration:none!important;
}

.tf-homepage .marketplace-products .tf-featured-tool svg{
  width:14px!important;
  height:14px!important;
}

/* Replace yellow band with proper white commerce body */
.tf-homepage .marketplace-products .tf-featured-opportunity-body{
  flex:1 1 auto!important;
  min-height:132px!important;
  height:auto!important;
  max-height:none!important;
  padding:10px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  background:#fff!important;
  color:#173657!important;
}

.tf-homepage .marketplace-products .tf-featured-opportunity-body::after{
  display:none!important;
}

.tf-homepage .marketplace-products .tf-featured-card-kicker{
  min-height:18px!important;
  margin-bottom:5px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:5px!important;
}

.tf-homepage .marketplace-products .tf-featured-card-kicker span{
  color:#6e8094!important;
  font-size:5.8px!important;
  font-weight:850!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}

.tf-homepage .marketplace-products .tf-featured-card-kicker b{
  min-height:18px!important;
  padding:0 6px!important;
  display:inline-flex!important;
  align-items:center!important;
  border-radius:999px!important;
  background:#eaf8f1!important;
  color:#17734c!important;
  font-size:5.8px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}

/* Product title */
.tf-homepage .marketplace-products .tf-featured-opportunity-body h3{
  width:100%!important;
  min-height:30px!important;
  max-height:30px!important;
  margin:0 0 7px!important;
  overflow:hidden!important;
  color:#143657!important;
  font-size:9px!important;
  font-weight:900!important;
  line-height:1.3!important;
  text-align:left!important;
  white-space:normal!important;
  text-overflow:clip!important;
}

.tf-homepage .marketplace-products .tf-featured-opportunity-body h3 a{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  color:inherit!important;
  text-decoration:none!important;
}

/* Price + MOQ */
.tf-homepage .marketplace-products .tf-featured-commerce-row{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:7px!important;
  margin-top:auto!important;
  padding-top:7px!important;
  border-top:1px solid #edf1f5!important;
}

.tf-homepage .marketplace-products .tf-featured-commerce-row .price{
  margin:0!important;
  color:#123a69!important;
  font-size:12px!important;
  font-weight:950!important;
  line-height:1!important;
  white-space:nowrap!important;
}

.tf-homepage .marketplace-products .tf-featured-commerce-row .price small{
  color:#7c8da0!important;
  font-size:5.5px!important;
  font-weight:700!important;
}

.tf-homepage .marketplace-products .tf-featured-moq{
  margin:0!important;
  color:#78899c!important;
  font-size:5.8px!important;
  font-weight:750!important;
  line-height:1.1!important;
  text-align:right!important;
  white-space:nowrap!important;
}

/* Supplier footer */
.tf-homepage .marketplace-products .tf-featured-supplier{
  min-height:29px!important;
  margin-top:7px!important;
  padding-top:7px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:6px!important;
  border-top:1px solid #edf1f5!important;
}

.tf-homepage .marketplace-products .tf-featured-supplier>span{
  min-width:0!important;
  max-width:58%!important;
  overflow:hidden!important;
  color:#63778d!important;
  font-size:5.8px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}

.tf-homepage .marketplace-products .tf-featured-supplier>a{
  flex:0 0 auto!important;
  min-height:24px!important;
  padding:0 7px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #e4bb4d!important;
  border-radius:7px!important;
  background:#fff8df!important;
  color:#684900!important;
  font-size:5.8px!important;
  font-weight:900!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}

/* Large desktop: still six cards, balanced width */
@media(min-width:1600px){
  .tf-homepage .marketplace-products .tf-featured-opportunity-media{
    height:172px!important;
    min-height:172px!important;
    max-height:172px!important;
    flex-basis:172px!important;
  }
}

/* Laptop: five columns */
@media(min-width:1181px) and (max-width:1420px){
  .tf-homepage .marketplace-products .featured-twelve-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
}

/* Small desktop/tablet landscape: four columns */
@media(min-width:901px) and (max-width:1180px){
  .tf-homepage .marketplace-products .featured-twelve-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }

  .tf-homepage .marketplace-products .tf-featured-opportunity-media{
    height:150px!important;
    min-height:150px!important;
    max-height:150px!important;
    flex-basis:150px!important;
  }
}

/* Tablet: 3 columns */
@media(min-width:641px) and (max-width:900px){
  .tf-homepage .marketplace-products>.shell{
    width:calc(100% - 20px)!important;
  }

  .tf-homepage .marketplace-products .featured-twelve-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-opportunity-media{
    height:145px!important;
    min-height:145px!important;
    max-height:145px!important;
    flex-basis:145px!important;
  }
}

/* Mobile: clean 2-column card grid */
@media(max-width:640px){
  .tf-homepage .marketplace-products{
    padding-top:12px!important;
    padding-bottom:14px!important;
  }

  .tf-homepage .marketplace-products>.shell{
    width:calc(100% - 14px)!important;
  }

  .tf-homepage .marketplace-products .curated-products-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:end!important;
    gap:7px!important;
    margin-bottom:9px!important;
  }

  .tf-homepage .marketplace-products .curated-products-head h2{
    font-size:18px!important;
  }

  .tf-homepage .marketplace-products .curated-products-head .section-copy{
    max-width:250px!important;
    font-size:7px!important;
  }

  .tf-homepage .marketplace-products .curated-products-head>a{
    min-height:31px!important;
    padding:0 7px!important;
    font-size:6.5px!important;
  }

  .tf-homepage .marketplace-products .curated-products-head>a span{
    width:19px!important;
    height:19px!important;
  }

  .tf-homepage .marketplace-products .featured-twelve-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
    overflow:visible!important;
  }

  .tf-homepage .marketplace-products .tf-featured-opportunity-card{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    border-radius:10px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-opportunity-media{
    height:124px!important;
    min-height:124px!important;
    max-height:124px!important;
    flex-basis:124px!important;
    padding:5px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-card-tools{
    top:5px!important;
    right:5px!important;
    gap:4px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-tool{
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
    min-height:25px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-tool svg{
    width:12px!important;
    height:12px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-opportunity-body{
    min-height:118px!important;
    padding:8px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-card-kicker{
    min-height:15px!important;
    margin-bottom:4px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-card-kicker span{
    font-size:5px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-card-kicker b{
    min-height:15px!important;
    padding:0 4px!important;
    font-size:4.8px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-opportunity-body h3{
    min-height:27px!important;
    max-height:27px!important;
    margin-bottom:5px!important;
    font-size:8px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-commerce-row{
    display:block!important;
    padding-top:5px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-commerce-row .price{
    font-size:11px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-moq{
    margin-top:4px!important;
    text-align:left!important;
    font-size:5.2px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-supplier{
    min-height:26px!important;
    margin-top:5px!important;
    padding-top:5px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-supplier>span{
    display:none!important;
  }

  .tf-homepage .marketplace-products .tf-featured-supplier>a{
    width:100%!important;
    min-height:25px!important;
    font-size:5.5px!important;
  }
}

/* Very small mobile: 1 column for readability */
@media(max-width:360px){
  .tf-homepage .marketplace-products .featured-twelve-grid{
    grid-template-columns:1fr!important;
  }

  .tf-homepage .marketplace-products .tf-featured-opportunity-card{
    display:grid!important;
    grid-template-columns:112px minmax(0,1fr)!important;
  }

  .tf-homepage .marketplace-products .tf-featured-opportunity-media{
    width:112px!important;
    height:100%!important;
    min-height:144px!important;
    max-height:none!important;
    border-right:1px solid #e6ebf1!important;
    border-bottom:0!important;
  }
}
