/* KoreaMart catalogue card layout fix v2 */
.product-card[data-live-product-id]{
  display:flex!important; flex-direction:column!important; height:100%!important; min-width:0!important;
  overflow:hidden!important; background:#fff!important; border:1px solid #e8e8ee!important;
  border-radius:14px!important; box-sizing:border-box!important;
}
.product-card[data-live-product-id] .p-img{
  display:flex!important; align-items:center!important; justify-content:center!important;
  width:100%!important; aspect-ratio:1/1!important; flex:0 0 auto!important; overflow:hidden!important;
  background:#f8f7f6!important; box-sizing:border-box!important;
}
.product-card[data-live-product-id] .p-img img{
  display:block!important; width:100%!important; height:100%!important; max-width:100%!important;
  object-fit:contain!important; padding:14px!important; box-sizing:border-box!important;
}
.product-card[data-live-product-id] .p-body{
  display:flex!important; flex-direction:column!important; flex:1 1 auto!important; min-width:0!important;
  padding:11px!important; gap:6px!important; box-sizing:border-box!important;
}
.product-card[data-live-product-id] .p-brand{
  display:block!important; min-height:12px!important; color:#777d8b!important; font-size:10px!important;
  line-height:1.25!important; font-weight:700!important; text-transform:uppercase!important;
}
.product-card[data-live-product-id] .p-name{
  display:-webkit-box!important; min-height:2.7em!important; max-height:2.7em!important; overflow:hidden!important;
  -webkit-box-orient:vertical!important; -webkit-line-clamp:2!important; line-clamp:2!important;
  color:#202943!important; font-size:12px!important; font-weight:650!important; line-height:1.35!important;
  text-decoration:none!important; overflow-wrap:break-word!important; word-break:normal!important;
}
.product-card[data-live-product-id] .p-row{
  display:grid!important; grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:auto auto!important; align-items:stretch!important; gap:7px!important;
  margin-top:auto!important; min-width:0!important; width:100%!important; box-sizing:border-box!important;
}
.product-card[data-live-product-id] .p-row strong{
  display:block!important; grid-column:1 / -1!important; grid-row:1!important;
  min-width:0!important; margin:0!important; padding:0 0 2px!important;
  color:#172554!important; font-size:15px!important; font-weight:800!important; line-height:1.25!important;
  white-space:normal!important; overflow-wrap:anywhere!important;
}
.product-card[data-live-product-id] .p-row button{
  display:flex!important; align-items:center!important; justify-content:center!important;
  width:100%!important; min-width:0!important; max-width:100%!important; min-height:36px!important;
  margin:0!important; padding:7px 4px!important; box-sizing:border-box!important;
  border:1px solid #c92543!important; border-radius:7px!important; background:#c92543!important;
  color:#fff!important; font-family:inherit!important; font-size:10px!important; font-weight:800!important;
  line-height:1.15!important; text-align:center!important; white-space:normal!important;
  overflow-wrap:normal!important; word-break:normal!important; cursor:pointer!important;
}
.product-card[data-live-product-id] .p-row button.km-buy-now{background:#fff!important;color:#c92543!important}
.product-card[data-live-product-id] .p-row button:hover{background:#a91d37!important;color:#fff!important}
.product-card[data-live-product-id] .p-row button:disabled{opacity:.6!important;cursor:wait!important}
@media(max-width:700px){
 .product-card[data-live-product-id] .p-body{padding:8px!important;gap:5px!important}
 .product-card[data-live-product-id] .p-name{font-size:11px!important;min-height:2.7em!important;max-height:2.7em!important}
 .product-card[data-live-product-id] .p-row{gap:5px!important}
 .product-card[data-live-product-id] .p-row strong{font-size:13px!important}
 .product-card[data-live-product-id] .p-row button{font-size:9px!important;min-height:34px!important;padding:6px 2px!important}
}
