/*
 * Storefront product cards (template/client-pov/components/product-card.html).
 * Text comes from core/helpers/product_card.py: eyebrow / title / detail / chips / footer.
 */
.card-product.pc-card {
  gap: 12px;
  /* Let one-line labels truncate instead of widening the grid column. */
  min-width: 0;
}

.pc-card .pc-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pc-card .pc-eyebrow {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-product_info .name-product.pc-title {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.3;
  font-weight: 500;
  color: var(--black);
  -webkit-line-clamp: 2;
  word-break: normal;
  overflow-wrap: anywhere;
}

.pc-card .pc-detail {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-card .pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pc-card .pc-chips li {
  font-size: 12px;
  line-height: 18px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--text);
  white-space: nowrap;
}

.pc-card .pc-swatches {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pc-card .pc-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  flex: 0 0 auto;
}

.pc-card .pc-swatch-more {
  font-size: 12px;
  color: var(--text-2);
}

.pc-card .pc-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  margin-top: 2px;
}

.pc-card .pc-options {
  color: var(--primary);
  font-weight: 500;
}

.pc-card .pc-code {
  margin-left: auto;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 575px) {
  .pc-card .pc-eyebrow {
    font-size: 11px;
  }
  .card-product_info .name-product.pc-title {
    font-size: 15px;
  }
  .pc-card .pc-detail {
    font-size: 13px;
  }
  .pc-card .pc-chips li {
    font-size: 11px;
    padding: 0 6px;
  }
}
