.product-result-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
  color: inherit;
}

.product-result-card__media {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f8fafc;
  overflow: hidden;
}

.product-result-card__media .lazy-image {
  position: absolute;
  inset: 0;
}

.product-result-card:hover .lazy-image__img {
  transform: scale(1.04);
}

.product-result-card__media img,
.product-result-card__media .lazy-image__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-result-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.product-result-card__body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  gap: 8px;
}

.product-result-card__title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.42;
  margin: 0;
  height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.product-result-card__price-main {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.product-result-card__price-main .currency {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
}

.product-result-card__price-main .amount {
  font-size: 19px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
}

.product-result-card__price-main .unit {
  font-size: 11px;
  color: #64748b;
  margin-left: 2px;
}

.product-result-card__price-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.product-result-card__price-source .label {
  color: #94a3b8;
  font-size: 11px;
}

.product-result-card__price-source .cta {
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
}

.home-product-grid.row-cols-7 > * {
  flex: 0 0 calc(100% / 7);
  max-width: calc(100% / 7);
}

/* Bootstrap row-cols supports 1–6; extend for 7 columns on home product grids */
@media (min-width: 576px) {
  .home-product-grid.row-cols-md-7 > * {
    flex: 0 0 calc(100% / 7);
    max-width: calc(100% / 7);
  }
}

@media (min-width: 1200px) {
  .home-product-grid.row-cols-xl-7 > * {
    flex: 0 0 calc(100% / 7);
    max-width: calc(100% / 7);
  }
}
