/* Sprint 623 — compact cards + Trade Secure seller badge */
.product-card-detailed{
  min-height:0!important;
}
.product-card-detailed .product-image{
  position:relative!important;
  aspect-ratio:1.45/1!important;
  min-height:0!important;
  padding:6px!important;
}
.product-card-detailed .product-image img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}
.product-card-detailed .product-body{
  padding:9px 10px 10px!important;
}
.product-card-detailed h3{
  min-height:30px!important;
  margin-bottom:5px!important;
  font-size:11px!important;
  line-height:1.35!important;
}
.product-card-detailed .price{
  margin:1px 0 3px!important;
  font-size:16px!important;
}
.product-card-detailed .product-primary-meta{
  margin-top:2px!important;
}
.product-card-detailed .product-description{
  min-height:0!important;
  margin:3px 0 5px!important;
  font-size:7.5px!important;
  line-height:1.4!important;
  -webkit-line-clamp:1!important;
}
.product-card-detailed .product-compact-chips{
  gap:4px!important;
  margin:4px 0 5px!important;
}
.product-card-detailed .product-compact-chips>span{
  min-height:21px!important;
  padding:0 6px!important;
  font-size:6.8px!important;
  line-height:19px!important;
}
.product-card-detailed .tf-storefront-row,
.product-card-detailed .supplier-line{
  min-height:38px!important;
  padding:6px 0 5px!important;
}
.product-card-detailed .tf-store-icon{
  width:24px!important;
  height:24px!important;
}
.product-card-detailed .tf-seller-link{
  font-size:7.5px!important;
}
.product-card-detailed .tf-storefront-link{
  margin-top:1px!important;
  font-size:6.5px!important;
}
.product-card-detailed .card-actions{
  gap:6px!important;
  margin-top:6px!important;
}
.product-card-detailed .card-actions button,
.product-card-detailed .card-actions a{
  min-height:34px!important;
  border-radius:7px!important;
  font-size:7.5px!important;
}
.product-card-detailed .product-commerce-actions{
  min-height:0!important;
  margin-top:2px!important;
}

/* Trade Secure badge: only rendered for non-free / trade-assurance sellers */
.product-card-detailed .tf-tradesecure-card-badge{
  position:absolute!important;
  top:53px!important;
  right:9px!important;
  z-index:5!important;
  display:grid!important;
  place-items:center!important;
  width:38px!important;
  min-height:45px!important;
  padding:4px 2px!important;
  border:1px solid #d8e5f3!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#123d79!important;
  box-shadow:0 4px 12px rgba(17,42,72,.08)!important;
  text-align:center!important;
  pointer-events:none!important;
}
.product-card-detailed .tf-tradesecure-card-badge svg{
  display:block!important;
  width:16px!important;
  height:16px!important;
}
.product-card-detailed .tf-tradesecure-card-badge small{
  display:block!important;
  margin-top:1px!important;
  color:#123d79!important;
  font-size:5.5px!important;
  font-weight:900!important;
  line-height:1.02!important;
  letter-spacing:-.01em!important;
}

/* Keep wishlist and compare controls vertically aligned above Trade Secure */
.product-card-detailed .wishlist-button,
.product-card-detailed [data-wishlist-product]{
  top:9px!important;
  right:9px!important;
}
.product-card-detailed .tf-compare-icon{
  top:53px!important;
  right:52px!important;
  width:31px!important;
  height:31px!important;
  min-height:31px!important;
}

/* When Trade Secure exists, compare stays left of it. */
.product-card-detailed:has(.tf-tradesecure-card-badge) .tf-compare-icon{
  right:52px!important;
}

/* Large desktop: more content visible without tall cards */
@media(min-width:1200px){
  .product-grid .product-card-detailed .product-image{
    aspect-ratio:1.5/1!important;
  }
}

/* Mobile keeps cards compact and readable */
@media(max-width:620px){
  .product-card-detailed .product-image{
    aspect-ratio:1.1/1!important;
    padding:4px!important;
  }
  .product-card-detailed .product-body{
    padding:7px!important;
  }
  .product-card-detailed h3{
    min-height:28px!important;
    font-size:9.5px!important;
  }
  .product-card-detailed .price{
    font-size:14px!important;
  }
  .product-card-detailed .product-description{
    display:none!important;
  }
  .product-card-detailed .tf-tradesecure-card-badge{
    top:43px!important;
    right:6px!important;
    width:32px!important;
    min-height:38px!important;
  }
  .product-card-detailed .tf-tradesecure-card-badge small{
    font-size:4.8px!important;
  }
  .product-card-detailed .tf-compare-icon{
    top:43px!important;
    right:43px!important;
    width:27px!important;
    height:27px!important;
    min-height:27px!important;
  }
}
