/* BIGFOTO UI7.4: only the theme's public product cards, never forms,
   category navigation, checkout or Studio's embedded creator. */
@media (max-width: 768px) {
  body.bfm-theme main#main #lista .cat-grid.product-grid,
  body.bfm-theme main#main .pdp-related .product-grid,
  body.bfm-theme.home main#main .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Other product lists using the same real card markup. */
  body.bfm-theme main#main .product-grid:has(> article.product-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Compact new views without overriding the existing nine category layouts. */
  html:not(.bfcd-ready) body.bfm-theme main#main #lista .cat-grid.product-grid,
  html:not(.bfcd-ready) body.bfm-theme main#main .pdp-related .product-grid {
    gap: 9px;
  }
  html:not(.bfcd-ready) body.bfm-theme main#main .product-grid > article.product-card {
    min-width: 0;
  }
  html:not(.bfcd-ready) body.bfm-theme main#main .product-grid > article.product-card .product-card__body {
    min-width: 0;
    padding: 9px;
    gap: 6px;
  }
  html:not(.bfcd-ready) body.bfm-theme main#main .product-grid > article.product-card .product-card__name {
    font-size: .86rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  html:not(.bfcd-ready) body.bfm-theme main#main .product-grid > article.product-card .product-card__row {
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  html:not(.bfcd-ready) body.bfm-theme main#main .product-grid > article.product-card .price {
    font-size: .95rem;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }
  html:not(.bfcd-ready) body.bfm-theme main#main .product-grid > article.product-card .product-card__cta {
    font-size: .78rem;
    padding: 8px 5px;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
}
