/* Keep tile dimensions while removing the visible perimeter in every interaction state. */
html body.pls-retail-unified .prolife-home-main :is(.ph-grid-pro, .ph-grid-plas, .ph-nutri-track) > :is(.ph-product-card, .ph-nutri-card),
html body :is(
  .prolife-home-main :is(.ph-product-card, .ph-nutri-card),
  .coll-cat-product,
  .nutr-product,
  .v3-card,
  .catalog_block .catalog_item_wrapp.catalog_item,
  .catalog-block-view__item .catalog_item_wrapp.catalog_item,
  .list_item_wrapp.item_wrap.item-parent,
  .table-view__item.item.main_item_wrapper
):is(:where(*), :hover, .hover, :focus-within) {
  border-color: transparent !important;
  box-shadow: none !important;
}

/* These controls are rendered as icons in the corresponding product templates. */
html body :is(
  .prolife-home-main :is(.ph-product-card, .ph-nutri-card) .ph-product-actions .ph-buy-button.add2basket,
  .coll-cat-product .coll-cat-actions .add2basket,
  .nutr-product .nutr-cart.add2basket,
  .v3-card .v3-card__cart.add2basket,
  .catalog-block-view__item .catalog_item_wrapp .footer_button :is(.to-cart, .in-cart)
):is(:where(*), :hover, :focus, :active) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #111 !important;
}

/* Older home card variants use a cart image with a perimeter baked in. */
html body .prolife-home-main :is(.ph-product-card, .ph-nutri-card) .ph-product-actions .ph-buy-button.add2basket::before {
  content: "" !important;
  display: block !important;
  flex: 0 0 24px;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  background: currentColor !important;
  -webkit-mask: var(--pp-cart, var(--v3-cart)) center / contain no-repeat;
  mask: var(--pp-cart, var(--v3-cart)) center / contain no-repeat;
}

html body :is(
  .prolife-home-main :is(.ph-product-card, .ph-nutri-card) .ph-product-actions .ph-buy-button.add2basket,
  .coll-cat-product .coll-cat-actions .add2basket,
  .nutr-product .nutr-cart.add2basket,
  .v3-card .v3-card__cart.add2basket,
  .catalog-block-view__item .catalog_item_wrapp .footer_button :is(.to-cart, .in-cart)
):focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 2px;
}
