/* =========================================================
   Facebook Marketplace flat, borderless product card.
   Scoped to .fb-product-card on the /ads listing page.
   ========================================================= */

.fb-product-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.fb-product-card:hover {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Square image container, flush with text below */
.fb-product-card > div:first-child {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e4e6eb;
  margin: 0 !important;
}

.fb-product-card > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text block sits directly under the image, no extra padding */
.fb-product-card > div:last-child {
  padding: 4px 2px 0 !important;
  margin-top: 4px !important;
  gap: 0 !important;
}

.fb-product-card .tabular-nums {
  color: #050505 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}
