/* DMCTN Card Hotfix – TẠO BỞI BÙI VĂN TĨNH */
/* Ảnh không vượt khung + giá xếp dọc. Ưu tiên cao, đi cuối. */
:root{ --dmctn-thumb-h: 190px; } /* đổi số này nếu muốn khung ảnh thấp/cao hơn */

/* Khung ảnh riêng (nếu JS đã bọc) */
.dmctn-thumb{
  height:var(--dmctn-thumb-h) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:#fff;
  border-radius:10px;
}
.dmctn-thumb img{
  max-width:100% !important;
  max-height:calc(var(--dmctn-thumb-h) - 4px) !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  display:block !important;
}

/* Nếu chưa có .dmctn-thumb thì dùng container phổ biến làm khung ảnh */
.woocommerce ul.products li.product .product-thumb,
.products li.product .product-thumb{
  height:var(--dmctn-thumb-h) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:#fff;
  border-radius:10px;
}
.woocommerce ul.products li.product .product-thumb img,
.products li.product .product-thumb img{
  max-width:100% !important;
  max-height:calc(var(--dmctn-thumb-h) - 4px) !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
}

/* Ép giá thành CỘT */
.woocommerce ul.products li.product .price,
.products li.product .price{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:2px !important;
  line-height:1.2 !important;
}
.woocommerce ul.products li.product .price ins,
.products li.product .price ins{
  order:1;
  display:block !important;
  text-decoration:none !important;
  font-weight:800;
}
.woocommerce ul.products li.product .price del,
.products li.product .price del{
  order:2;
  display:block !important;
  font-size:13px;
  opacity:.95;
}

/* Tránh overlay hoặc link bao toàn card che giá */
.products li.product .woocommerce-LoopProduct-link{ overflow:visible !important; position:relative; }
.products li.product .product-thumb, .products li.product .product-thumb a{ overflow:hidden !important; }
