/* Keep model codes, product names and colours equally readable in the list. */
.product-grid .product-card {
  --catalog-label-size: 19px;
}

.product-grid .product-card h3,
.product-grid .product-card .model,
.product-grid .product-card .card-color {
  font-size: var(--catalog-label-size);
  line-height: 1.6;
}

.product-grid .product-card .model,
.product-grid .product-card .card-color {
  color: #64748b;
  font-weight: 500;
}

/* The labels describe supported functions; they do not add another control. */
.product-grid .product-card .card-photo,
.detail-page .main-photo {
  position: relative;
}

.product-grid .product-card .card-photo > .water-feature-icons,
.detail-page .main-photo > .water-feature-icons {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100% - 20px);
  box-sizing: border-box;
  pointer-events: none;
}

.water-feature-icons .water-feature-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  padding: 5px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(15 23 42 / 7%);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.water-feature-icons .water-feature-icon svg {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.water-feature-icons .water-feature-cold {
  color: #2563eb;
  border-color: #dbeafe;
}

.water-feature-icons .water-feature-hot {
  color: #dc2626;
  border-color: #fee2e2;
}

.water-feature-icons .water-feature-purified {
  color: #15803d;
  border-color: #dcfce7;
}

.water-feature-icons .water-feature-ice {
  color: #7c3aed;
  border-color: #ede9fe;
}

@media (max-width: 768px) {
  .product-grid .product-card {
    --catalog-label-size: 18px;
  }

  .product-grid .product-card .card-photo > .water-feature-icons,
  .detail-page .main-photo > .water-feature-icons {
    bottom: 10px;
    gap: 5px;
  }

  .water-feature-icons .water-feature-icon {
    gap: 3px;
    padding: 5px;
    font-size: 12px;
  }

  .water-feature-icons .water-feature-icon svg {
    width: 16px;
    height: 16px;
  }
}
