/*
 * Homepage Featured Products — cache-isolated layout guard.
 * RC42
 *
 * Kept separate from style.css so SiteGround/static CSS optimization cannot
 * leave the homepage on an older cached copy after switching from WPVibe Draft
 * to the canonical b2b-rfq-core child theme.
 */

.home .b2bcore-feature-grid.b2bcore-product-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
}

.home .b2bcore-product-card{
  display:grid!important;
  grid-template-columns:120px minmax(0,1fr)!important;
  gap:16px!important;
  align-items:start!important;
  min-height:0!important;
  padding:16px!important;
}

.home .b2bcore-product-card-media{
  display:block!important;
  width:120px!important;
  max-width:120px!important;
  aspect-ratio:1/1;
  margin:0!important;
  overflow:hidden;
  border:1px solid var(--b2bcore-line);
  border-radius:10px;
  background:#fff;
}

.home .b2bcore-product-card-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:contain!important;
  background:#fff;
}

.home .b2bcore-product-card-copy{
  min-width:0;
}

.home .b2bcore-product-card h3{
  margin:0 0 7px!important;
  font-size:16px;
  line-height:1.35;
}

.home .b2bcore-product-card-intro{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-height:1.45;
}

.home .b2bcore-product-card-model{
  margin-top:8px!important;
  font-size:12px!important;
}

.home .b2bcore-product-card .b2bcore-text-link{
  display:inline-block;
  margin-top:7px;
}

.home .b2bcore-section-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:18px;
}

.home .b2bcore-section-actions .b2bcore-button-ghost{
  border-color:var(--b2bcore-navy)!important;
  background:#fff!important;
  color:var(--b2bcore-navy)!important;
}

.home .b2bcore-section-actions .b2bcore-button-ghost:hover{
  border-color:var(--b2bcore-navy)!important;
  background:var(--b2bcore-navy)!important;
  color:#fff!important;
}

@media (min-width:769px) and (max-width:1100px){
  .home .b2bcore-feature-grid.b2bcore-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media (max-width:768px){
  .home .b2bcore-feature-grid.b2bcore-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }

  .home .b2bcore-product-card{
    display:block!important;
    padding:10px!important;
  }

  .home .b2bcore-product-card-media{
    width:100%!important;
    max-width:none!important;
    margin-bottom:9px!important;
  }

  .home .b2bcore-product-card h3{
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
    font-size:13px!important;
    line-height:1.3!important;
  }

  .home .b2bcore-product-card-intro{
    display:none!important;
  }

  .home .b2bcore-product-card-model{
    font-size:11px!important;
    line-height:1.3;
  }

  .home .b2bcore-product-card .b2bcore-text-link{
    font-size:12px;
  }
}


/* RC43 — mobile CTA alignment */
@media (max-width:768px){
  .home .b2bcore-section-actions{
    width:100%;
    flex-direction:column;
    align-items:center;
    gap:12px;
  }

  .home .b2bcore-section-actions .b2bcore-button{
    width:100%;
    max-width:340px;
    min-height:48px;
    margin:0;
    text-align:center;
  }
}
