.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.product-image {
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
}

.product-image img {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: contain;
}

.image-placeholder {
  color: #94a3b8;
  font-size: 0.8rem;
}

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.product-category {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.stock-badge.is-available {
  background: #ecfdf5;
  color: #047857;
}

.stock-badge.is-unavailable {
  background: #f1f5f9;
  color: #64748b;
}

.product-card h2 {
  min-height: 58px;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.85;
}

.product-card h2 a {
  color: #0f172a;
  text-decoration: none;
}

.product-card h2 a:hover {
  color: #334155;
}

.product-identifiers {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 34px;
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 0.7rem;
}

.product-identifiers b {
  color: #64748b;
  font-weight: 600;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #f1f5f9;
}

.product-price {
  min-height: 28px;
  margin-bottom: 3px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.product-store {
  overflow: hidden;
  color: #64748b;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 11px;
  padding: 7px 10px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.product-detail-link:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
