/*
 * MCTK Emerald — Compact Horizontal Product Card (shared by Home & Single "Sản phẩm liên quan") v4.2.0
 * thumb (square, object-fit cover — never stretched) · name · ★ 4.8 (2.9k) · Đã bán · price · [-%][Mua ngay][🛒]
 */
.mcx-products,.mcx-products--cols-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch}
.mcx-products--cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.mcx-pcard{
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  grid-template-areas:"thumb info" "thumb price" "act act";
  column-gap:10px;
  row-gap:3px;
  align-items:start;
  min-width:0;
  padding:10px;
  border:1px solid #d5dde7;
  border-radius:12px;
  background:#fff;
  color:#0f172a;
  box-shadow:0 1px 3px rgba(15,23,42,.05);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.mcx-pcard:hover{transform:translateY(-2px);border-color:#10b981;box-shadow:0 10px 22px -12px rgba(5,150,105,.35)}
.mcx-pcard a{text-decoration:none}
.mcx-pcard-thumb{grid-area:thumb;position:relative;display:block;width:56px;height:56px;border-radius:12px;overflow:hidden;background:#f1f5f9;border:1px solid #e3e9f0}
.mcx-pcard-thumb img,.mcx-pcard-thumb .mcx-image-fallback{position:absolute;top:0;right:0;bottom:0;left:0;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;object-position:center;display:block;margin:0;padding:0}
.mcx-pcard-thumb .mcx-image-fallback{display:grid;place-items:center;color:#059669}
.mcx-pcard-thumb .mcx-image-fallback svg{width:24px;height:24px}
.mcx-pcard-info{grid-area:info;min-width:0}
.mcx-pcard-title{margin:0;font-family:var(--mcx-heading);font-size:13.5px;font-weight:700;line-height:1.3;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mcx-pcard-title a{color:inherit}
.mcx-pcard-title a:hover{color:#059669}
.mcx-pcard .mcx-product-meta{display:flex;flex-wrap:wrap;align-items:center;gap:1px 6px;margin-top:3px;min-height:0;font-size:11px;line-height:1.35;color:#475569}
.mcx-pcard .mcx-rating{display:inline-flex;align-items:center;gap:3px;font-weight:600;color:#475569}
.mcx-pcard .mcx-rating strong{color:#0f172a}
.mcx-pcard .mctk-gold-stars,.mcx-pcard .mctk-gold-stars-fill{color:#f59e0b!important;font-size:11px!important;letter-spacing:-.5px}
.mcx-pcard .mcx-meta-sold{font-weight:500;color:#475569;white-space:nowrap}
.mcx-pcard-price{grid-area:price;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px;margin-top:2px;font-family:var(--mcx-heading);font-size:15.5px;font-weight:800;line-height:1.25;color:#dc2626;font-variant-numeric:tabular-nums}
.mcx-pcard-price ins{order:0;text-decoration:none;background:none;color:#dc2626}
.mcx-pcard-price del{order:1;font-size:11.5px;font-weight:500;color:#7b8794}
.mcx-pcard-price .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.mcx-pcard-actions{grid-area:act;display:flex;align-items:center;gap:6px;margin-top:8px}
.mcx-pcard-off{flex:0 0 auto;display:inline-flex;align-items:center;height:30px;padding:0 8px;border-radius:7px;background:#fee2e2;color:#dc2626;font-family:var(--mcx-heading);font-size:11.5px;font-weight:800}
.mcx-pcard-buy{flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;height:30px;padding:0 10px;border-radius:7px;background:linear-gradient(135deg,#10b981 0%,#059669 100%);color:#fff!important;font-family:var(--mcx-heading);font-size:12px;font-weight:700;white-space:nowrap;transition:filter .15s}
.mcx-pcard-buy:hover{filter:brightness(1.06)}
.mcx-pcard-cart{flex:0 0 30px;display:grid;place-items:center;width:30px;height:30px;border-radius:7px;border:1px solid #bfd6ff;background:#eef5ff;color:#0068ff!important;transition:background .15s,border-color .15s}
.mcx-pcard-cart:hover{background:#dbeafe;border-color:#0068ff}
.mcx-pcard-cart svg{width:15px;height:15px}
.mcx-pcard .added_to_cart{display:none!important}

@media(max-width:1120px){
  .mcx-products,.mcx-products--cols-4{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767px){
  .mcx-products,.mcx-products--cols-4,.mcx-products--cols-3{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mcx-pcard{grid-template-columns:44px minmax(0,1fr);padding:8px;column-gap:8px}
  .mcx-pcard-thumb{width:44px;height:44px;border-radius:10px}
  .mcx-pcard-title{font-size:12.5px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .mcx-pcard .mcx-meta-sold,.mcx-pcard-price del,.mcx-pcard-off{display:none}
  .mcx-pcard-price{font-size:14px}
  .mcx-pcard-actions{gap:5px;margin-top:6px;min-width:0}
  .mcx-pcard-buy,.mcx-pcard-cart{height:32px}
  .mcx-pcard-buy{min-width:0;padding:0 6px;font-size:11.5px;overflow:hidden;text-overflow:ellipsis}
  .mcx-pcard-cart{flex-basis:32px;width:32px}
}
@media(max-width:359px){
  .mcx-products,.mcx-products--cols-4,.mcx-products--cols-3{grid-template-columns:1fr;gap:8px}
  .mcx-pcard{grid-template-columns:48px minmax(0,1fr);padding:9px}
  .mcx-pcard-thumb{width:48px;height:48px}
}
