:is(.product-grid, .home-product-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(160px, (100% - 48px) / 5)), 1fr));
  gap: 12px;
}

.product-card {
  --card-orange: #ff6500;
  position: relative;
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  min-width: 0;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  color: #0b1733;
  box-shadow: 0 2px 8px #0b173309;
}

.product-card .product-image {
  display: grid;
  box-sizing: border-box;
  flex: none;
  width: 100%;
  height: 170px;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 12px;
  background: #fff;
  text-decoration: none;
}

.product-card .product-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.product-card .image-fallback {
  display: grid;
  width: 85%;
  height: 78%;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #f8f8f9, #eceef1);
  color: #596880;
  text-align: center;
  font-size: .7rem;
}

.product-card .product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.product-card .product-copy .product-card-title {
  display: -webkit-box;
  overflow: hidden;
  height: 2.8em;
  margin: 0;
  padding: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #0b1733;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.product-card .product-card-title a { color: inherit; text-decoration: none; }
.product-card .product-card-title a:hover { text-decoration: underline; }

.product-card .features {
  overflow: hidden;
  min-height: 0;
  margin: 4px 0 0;
  color: #53617b;
  font-size: .72rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-card .product-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 4px 8px;
  margin-top: auto;
  padding-top: 8px;
}

.product-card .price,
.product-card .unavailable {
  min-width: 0;
  flex: 1 1 88px;
  margin: 0;
  overflow-wrap: anywhere;
}
.product-card .price { display: grid; gap: 2px; }

.product-card .price span,
.product-card .price small {
  margin: 0;
  color: #53617b;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}

.product-card .price strong {
  color: var(--card-orange);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
}

.product-card .unavailable { color: #53617b; font-size: .76rem; }

.product-card .bell-icon .bell-body { animation: none; }
.product-card .bell-icon .bell-waves { display: none; }

.product-card .product-card-footer .compare {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  background: var(--card-orange);
  color: #fff;
}

.product-card .product-card-footer .compare:hover { background: #ca4200; }
.product-card .compare:focus-visible {
  outline: 2px solid #0b1733;
  outline-offset: 2px;
}

.product-card .compare-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.blog-prices .product-grid { grid-template-columns: none; gap: 14px; }

@media (min-width: 761px) {
  :is(.product-grid, .home-product-grid) { grid-auto-rows: 1fr; }
}

@media (max-width: 760px) {
  :is(.product-grid, .home-product-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .blog-prices .product-grid { grid-template-columns: minmax(0, 1fr); }
}
