/* Product tile, Figma 140:4. The photo and controls scale with the tile, not the page. */
body.pls-retail-unified {
  --pls-tile-photo: #f1f1f1;
  --pls-tile-ink: #111;
  --pls-tile-inset: clamp(9px, 7.5cqw, 39px);
  --pls-tile-title: clamp(13px, 5.4cqw, 28px);
  --pls-tile-price: clamp(16px, 7cqw, 36px);
  --pls-tile-cart-size: clamp(44px, 14.6cqw, 76px);
  --pls-tile-cart-inset: clamp(5px, 4.5cqw, 24px);
  --pls-tile-icon-size: clamp(21px, 8.7cqw, 45px);
}

body#main.pls-retail-unified :is(
  .prolife-home-main :is(.ph-grid-pro, .ph-grid-plas, .ph-nutri-track) > :is(.ph-product-card, .ph-nutri-card),
  article.coll-cat-product,
  .nutr-product,
  .v3-card
):is(:where(*), :hover, :focus-within) {
  position: relative !important;
  container-type: inline-size;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  transform: none !important;
}

body#main.pls-retail-unified :is(
  .prolife-home-main :is(.ph-grid-pro, .ph-grid-plas, .ph-nutri-track) .ph-product-image,
  article.coll-cat-product > .coll-cat-product-image,
  .nutr-product > .nutr-product-image,
  .v3-card > .v3-card__image
) {
  aspect-ratio: 1;
  width: 100% !important;
  height: auto !important;
  padding: 6% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--pls-tile-photo) !important;
}

body#main.pls-retail-unified .nutr-product > .nutr-product-image {
  overflow: visible !important;
}

body#main.pls-retail-unified :is(
  .prolife-home-main :is(.ph-product-card, .ph-nutri-card) > :is(.ph-product-content, .ph-nutri-card__body),
  article.coll-cat-product > .coll-cat-product-content,
  .nutr-product > .nutr-product-content,
  .v3-card > .v3-card__body
) {
  position: static !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: clamp(4px, 2.2cqw, 12px) !important;
  min-width: 0;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(11px, 5cqw, 26px) var(--pls-tile-inset) clamp(13px, 7.8cqw, 41px) !important;
  border: 0 !important;
  background: #fff !important;
}

body#main.pls-retail-unified :is(
  .prolife-home-main :is(.ph-product-card, .ph-nutri-card),
  article.coll-cat-product,
  .nutr-product,
  .v3-card
) :is(h3, .v3-card__title) {
  display: block !important;
  height: auto !important;
  min-height: 2.4em !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  color: var(--pls-tile-ink) !important;
  font-family: Montserrat, sans-serif !important;
  font-size: var(--pls-tile-title) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
}

/* Section names belong to navigation and section headings. */
body#main.pls-retail-unified :is(article.coll-cat-product, .v3-card) .v3-card__tag {
  display: none !important;
}

body#main.pls-retail-unified :is(
  .prolife-home-main .ph-product-card .ph-product-tag,
  .nutr-product .nutr-card-tags
) {
  order: 2;
  margin: 0 !important;
}

body#main.pls-retail-unified :is(article.coll-cat-product .coll-cat-footer, .nutr-product .nutr-footer) {
  margin-top: auto !important;
}

body#main.pls-retail-unified .v3-card .v3-card__price {
  margin-top: auto;
}

body#main.pls-retail-unified :is(
  .prolife-home-main .ph-price,
  .prolife-home-main .ph-nutri-card__price,
  article.coll-cat-product .coll-cat-price,
  article.coll-cat-product .coll-cat-price__now,
  article.coll-cat-product .pls-bf26-current-price,
  .nutr-product .nutr-price,
  .v3-card .v3-card__price b
) {
  align-self: start;
  color: var(--pls-tile-ink) !important;
  font-family: Montserrat, sans-serif !important;
  font-size: var(--pls-tile-price) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

body#main.pls-retail-unified :is(.ph-product-card, .ph-nutri-card) .ph-old-price {
  order: 1;
  align-self: start;
}

body#main.pls-retail-unified :is(.prolife-home-main :is(.ph-product-card, .ph-nutri-card) .ph-product-actions, article.coll-cat-product .coll-cat-actions) {
  position: absolute !important;
  top: calc(98cqw - var(--pls-tile-cart-size) / 2) !important;
  right: var(--pls-tile-cart-inset) !important;
  bottom: auto !important;
  left: auto !important;
  width: var(--pls-tile-cart-size) !important;
  height: var(--pls-tile-cart-size) !important;
  margin: 0 !important;
  padding: 0 !important;
}

body#main.pls-retail-unified :is(.nutr-product .nutr-cart.add2basket, .v3-card .v3-card__cart.add2basket) {
  position: absolute !important;
  top: calc(98cqw - var(--pls-tile-cart-size) / 2) !important;
  right: var(--pls-tile-cart-inset) !important;
  bottom: auto !important;
  left: auto !important;
}

body#main.pls-retail-unified :is(
  .prolife-home-main :is(.ph-grid-pro, .ph-grid-plas, .ph-nutri-track) .ph-product-actions .ph-buy-button.add2basket,
  article.coll-cat-product .coll-cat-actions .add2basket,
  .nutr-product .nutr-cart.add2basket,
  .v3-card .v3-card__cart.add2basket
):is(:where(*), :hover, :focus, :active) {
  width: var(--pls-tile-cart-size) !important;
  height: var(--pls-tile-cart-size) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 1.5px solid var(--pls-tile-ink) !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: var(--pls-tile-ink) !important;
}

body#main.pls-retail-unified :is(
  .prolife-home-main :is(.ph-grid-pro, .ph-grid-plas, .ph-nutri-track) .ph-product-actions .ph-buy-button.add2basket,
  article.coll-cat-product .coll-cat-actions .add2basket,
  .nutr-product .nutr-cart.add2basket,
  .v3-card .v3-card__cart.add2basket
)::before {
  flex: 0 0 var(--pls-tile-icon-size) !important;
  width: var(--pls-tile-icon-size) !important;
  height: var(--pls-tile-icon-size) !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
}

@media (hover: hover) {
  body#main.pls-retail-unified :is(
    .prolife-home-main :is(.ph-grid-pro, .ph-grid-plas, .ph-nutri-track) .ph-product-actions .ph-buy-button.add2basket,
    article.coll-cat-product .coll-cat-actions .add2basket,
    .nutr-product .nutr-cart.add2basket,
    .v3-card .v3-card__cart.add2basket
  ):hover {
    background: var(--pls-tile-ink) !important;
    color: #fff !important;
  }

  body#main.pls-retail-unified .prolife-home-main .ph-product-actions .ph-buy-button.add2basket:hover::before {
    background-color: #fff !important;
  }
}

body#main.pls-retail-unified :is(.prolife-home-main :is(.ph-grid-pro, .ph-grid-plas, .ph-nutri-track) .plas-fav, .v3-fav) {
  top: max(1px, calc(5cqw - 12px)) !important;
  right: max(1px, calc(5cqw - 12px)) !important;
}

body#main.pls-retail-unified .prolife-home-main :is(.ph-product-card, .ph-nutri-card) .plas-fav svg path {
  fill: none !important;
}

body#main.pls-retail-unified .prolife-home-main :is(.ph-product-card, .ph-nutri-card) .plas-fav.added svg path {
  fill: var(--pls-tile-ink) !important;
}

.pls-card-rating {
  display: flex;
  align-items: center;
  gap: clamp(3px, 1.1cqw, 6px);
  width: fit-content;
  color: var(--pls-tile-ink, #111);
  font: 400 clamp(10px, 3.6cqw, 19px) / 1.2 Montserrat, sans-serif;
  white-space: nowrap;
}

.pls-card-rating__value {
  font-weight: 700;
}

.pls-card-rating__stars {
  background: linear-gradient(90deg, var(--pls-tile-ink) var(--pls-card-rating-fill), #b8b8b8 var(--pls-card-rating-fill));
  background-clip: text;
  color: transparent;
  font-size: 1.1em;
  letter-spacing: 0.06em;
}
