/* Product card — used on the public listing page (PR2) and the homepage
   "New arrivals" band. Tokens from design/Design-doc.md §10 and
   docs/v1-implementation/phase-2-catalog.md §3.1.3. */

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface, #FFFCF8);
  border: 1px solid var(--brand-accent, #B9886C);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-fast, 120ms) var(--ease-standard, ease);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-2px);
  text-decoration: none;
}

.product-card__image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-page, #FFF8F3);
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__body {
  padding: var(--space-3, 0.75rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 0.25rem);
  flex: 1 1 auto;
}

.product-card__name {
  font-family: var(--font-heading, Georgia, serif);
  font-size: var(--fs-18, 1.125rem);
  font-weight: var(--fw-semibold, 600);
  color: var(--text-primary, #3B261F);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: var(--lh-snug, 1.3);
}

.product-card__price {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: var(--fs-18, 1.125rem);
  font-weight: var(--fw-semibold, 600);
  color: var(--brand-primary, #6E2C2F);
  margin: 0;
}

.product-card__short {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: var(--fs-14, 0.875rem);
  color: var(--text-muted, #7A5F58);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: var(--lh-snug, 1.3);
}

.product-card__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 0.5rem);
  padding: 0 var(--space-3, 0.75rem) var(--space-3, 0.75rem);
}

.product-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 0.5rem);
  width: 100%;
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: var(--fs-14, 0.875rem);
  font-weight: var(--fw-semibold, 600);
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  transition: background var(--duration-fast, 120ms) var(--ease-standard, ease);
  text-decoration: none;
}

.product-card__btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus, 0 0 0 3px rgba(110, 44, 47, 0.45));
}

.product-card__btn--buy {
  background: var(--brand-primary, #6E2C2F);
  color: #ffffff;
  border-color: var(--brand-primary, #6E2C2F);
}

.product-card__btn--buy:hover,
.product-card__btn--buy:focus-visible {
  background: var(--brand-primary-hover, #5A2426);
  border-color: var(--brand-primary-hover, #5A2426);
  text-decoration: none;
  color: #ffffff;
}

.product-card__btn--buy[disabled] {
  background: var(--color-soft-taupe, #BFA59A);
  border-color: var(--color-soft-taupe, #BFA59A);
  color: #ffffff;
  cursor: not-allowed;
}

.product-card__btn--ask {
  background: var(--bg-surface, #FFFCF8);
  color: var(--text-primary, #3B261F);
  border-color: var(--brand-accent, #B9886C);
}

.product-card__btn--ask:hover,
.product-card__btn--ask:focus-visible {
  background: #fff;
  text-decoration: none;
  color: var(--text-primary, #3B261F);
}

.product-card__btn--ask svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--brand-whatsapp, #25D366);
}
