.product-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 0.6fr) auto;
  gap: 0;
  width: 100%;
  transition: box-shadow 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  text-align: center;
  border: 1px solid #0255ce20;
  border-radius: var(--ui-radius-md);
  box-shadow: var(--news-card-shadow-rest, var(--ui-shadow-elevated));
  background: var(--ui-color-white);
  height: 100%;
  padding-bottom: 25px;
}

.product-card:hover {
  box-shadow: var(--ui-shadow-soft);
}

.product-card:has(:focus-visible) {
  box-shadow: var(--ui-shadow-soft);
}

.product-card--aspect-fixed {
  aspect-ratio: 9 / 8;
}

.product-card__media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 0;
  height: 100%;
}

/* 反光层 初始在左侧画面外 */
.product-card__media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    108deg,
    transparent 20%,
    rgba(255, 255, 255, 0.28) 42%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.28) 58%,
    transparent 80%
  );
  transform: translateX(-200%);
  pointer-events: none;
  z-index: 2;
}

/* hover / 键盘导航时触发反光从左到右一次性滑过 */
.product-card:hover .product-card__media::after,
.product-card:has(:focus-visible) .product-card__media::after {
  animation: product-card-shine 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes product-card-shine {
  from { transform: translateX(-200%); }
  to   { transform: translateX(220%); }
}

.product-card__media img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

.product-card__media--placeholder {
  display: grid;
  place-items: center;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
}

.product-card .ui-title {
  margin: 0;
  font-size: var(--font-title-md);
  line-height: 1.25;
  font-weight: 600;
}

.product-card .ui-subtitle {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: var(--font-title-md);
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.product-card__action {
  position: relative;
  min-height: 38px;
  padding: 0 18px;
  font-size: var(--font-body-lg);
}

.product-card__action.ui-button--secondary {
  border-color: var(--ui-color-brand-orange);
  background: var(--ui-color-brand-orange);
  color: var(--ui-color-brand-orange-surface);
}

.product-card__action.ui-button--secondary:hover,
.product-card__action.ui-button--secondary:focus-visible {
  border-color: var(--ui-color-brand-orange-strong);
  background: var(--ui-color-brand-orange-strong);
  color: var(--ui-color-brand-orange-surface);
}

.product-card__action.ui-button--secondary:active {
  border-color: var(--ui-color-brand-orange);
  background: #f7ae53;
  color: rgba(255, 247, 238, 0.88);
}