/* One proportional card scale for discovery, stores and recommendations. */
.catalog-heading {
  gap: 20px;
}

.catalog-heading .page-title {
  flex-shrink: 0;
}

.catalog-heading .catalog-heading-actions {
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 12px;
}

.catalog-heading .applied-filters {
  justify-content: flex-end;
  margin: 0;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
}

.catalog-heading .applied-filters a {
  padding: 6px 10px;
  font-size: 12px;
}

.catalog-heading .catalog-product-count,
.catalog-heading .catalog-layout-switch {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 1100px) {

  .catalog-heading {
    flex-wrap: wrap;
  }

  .catalog-heading .catalog-heading-actions {
    flex-basis: 100%;
  }

  .catalog-heading .applied-filters {
    margin-right: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 599px) {

  .catalog-heading .catalog-heading-actions {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .catalog-heading .applied-filters {
    flex-basis: 100%;
  }
}

.product-grid.product-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.product-card .product-image {
  height: 150px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: #fff;
}

.product-card .product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
}

.product-card .product-card-copy {
  padding: 10px;
  gap: 6px;
}

.product-card .product-meta {
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.product-card .product-meta span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card h3 {
  font-size: 13px;
  line-height: 1.35;
  height: 2.7em;
  margin: 0 0 5px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  line-height: 1.4;
  min-height: 18px;
  margin-bottom: 4px;
}

.product-card .rating-stars {
  font-size: 14px;
  letter-spacing: 0;
  flex-shrink: 0;
}

.product-card .price {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}

.product-card .price-original {
  font-size: 11px;
}

.product-card .product-card-actions {
  gap: 4px;
}

.product-card .btn,
.product-card .wishlist-button {
  min-height: 36px;
  padding: 6px;
  font-size: 11.5px;
  line-height: 1.4;
  gap: 5px;
}

.product-card .wishlist-button .nav-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.product-card .product-discount-badge {
  font-size: 11px;
  padding: 4px 7px;
}

/* Keep the optional list view usable while sharing the smaller typography. */
.product-list .product-card {
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 10px;
  gap: 12px;
}

.product-list .product-card .product-image {
  height: 120px;
}

.product-list .product-card .product-card-copy {
  padding: 0;
  gap: 16px;
}

@media (max-width: 1199px) {

  .product-grid.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {

  .product-grid.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 599px) {

  .product-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card .product-image {
    height: 125px;
  }

  .product-card .product-card-copy {
    padding: 8px;
  }

  .product-card h3 {
    font-size: 12px;
  }

  .product-card .price {
    font-size: 17px;
  }

  .product-card .btn,
  .product-card .wishlist-button {
    font-size: 11px;
  }

  .product-list .product-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .product-list .product-card .product-image {
    height: 100px;
  }

  .product-list .product-card .product-card-copy {
    gap: 6px;
  }
}
