/* Load after Atelier. Shared by catalog listings, home selection and related products. */
.pt-store :is(.row.pt-product-grid, #product-list) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 12px;
  margin: 0;
}

/* Reset Bootstrap row/column sizing and gutters inside this grid only. */
.pt-store :is(.row.pt-product-grid, #product-list) > * {
  flex: none;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.pt-store :is(.pt-product-grid, #product-list) .pt-product-card,
.pt-store :is(.pt-product-grid, #product-list) .pt-product-copy {
  min-width: 0;
}

.pt-store :is(.pt-product-grid, #product-list) .pt-product-copy {
  padding-top: 12px;
}

.pt-store :is(.pt-product-grid, #product-list) .pt-product-copy h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.4;
  min-height: 2.8em;
  max-height: 2.8em;
  margin: 0 0 8px;
}

.pt-store :is(.pt-product-grid, #product-list) .pt-product-description {
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.pt-store :is(.pt-product-grid, #product-list) .pt-product-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  min-height: 44px;
}

.pt-store :is(.pt-product-grid, #product-list) .price {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

/* A long price may move the action to a second row instead of overflowing. */
.pt-store :is(.pt-product-grid, #product-list) .price-new {
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.pt-store :is(.pt-product-grid, #product-list) .price-old {
  font-size: 10px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.pt-store :is(.pt-product-grid, #product-list) .pt-product-view {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin-left: auto;
  font-size: 11px;
}

.pt-store :is(.pt-product-grid, #product-list) .pt-product-wish {
  width: 44px;
  height: 44px;
  right: 2px;
  top: 2px;
  font-size: 15px;
}

.pt-store :is(.pt-product-grid, #product-list) .pt-badge {
  left: 8px;
  top: 8px;
  max-width: calc(100% - 60px);
  padding: 4px 6px;
  font-size: 9px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pt-store :is(.pt-product-grid, #product-list) .pt-product-image img {
  padding: 10px;
}

/* Keep the placeholder's own cream background in cards, galleries and baskets. */
.pt-store img[src*="/catalog-placeholder.svg"],
.pt-store img[src="catalog-placeholder.svg"] {
  mix-blend-mode: normal;
}

@media (min-width: 992px) {
  .pt-store :is(.row.pt-product-grid, #product-list) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .pt-store :is(.pt-product-grid, #product-list) .pt-product-image img {
    padding: 16px;
  }
}

@media (max-width: 359px) {
  .pt-store :is(.row.pt-product-grid, #product-list) {
    column-gap: 10px;
  }

  .pt-store :is(.pt-product-grid, #product-list) .pt-product-copy h3 {
    font-size: 12px;
  }

  .pt-store :is(.pt-product-grid, #product-list) .price-new {
    font-size: 12px;
  }
}
