/*
 * Canonical Editorial product card.
 *
 * Product-list pages may control only list placement. Card geometry, metadata,
 * proof, campaign/price hierarchy and responsive behavior live
 * here and nowhere else.
 */
.presentation-editorial .e-product-card-list {
  /* border-top: 2px solid var(--e-ink); */
}

.presentation-editorial .e-product-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--e-line);
  color: var(--e-ink);
  text-decoration: none;
  transition: background-color .16s ease;
}

.presentation-editorial .e-product-card:hover {
  background: var(--e-bg)
}

.presentation-editorial .e-product-card__visual {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.presentation-editorial .e-product-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  background: var(--e-soft);
}

.presentation-editorial .e-product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.presentation-editorial .e-product-card:hover .e-product-card__media img {
  transform: scale(1.018)
}

.presentation-editorial .e-product-card:focus-visible {
  outline: 2px solid var(--e-accent);
  outline-offset: 3px;
}

.presentation-editorial .e-product-card__badges {
  position: absolute;
  z-index: 1;
  right: 7px;
  bottom: 7px;
  display: flex;
  gap: 4px;
  opacity: 0.9;
}

.presentation-editorial .e-product-card__badges span {
  padding: 3px 6px;
  background: #fff;
  color: var(--e-accent);
  font-size: 8px;
  font-weight: 700;
}

.presentation-editorial .e-product-card__proof {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 26px;
  max-width: 100%;
  margin-top: 6px;
  padding: 3px 8px;
  border: 1px solid var(--e-line);
  background: var(--e-soft);
  line-height: 1.3;
  white-space: nowrap;
}

.presentation-editorial .e-product-card__rating {
  color: var(--e-accent);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.presentation-editorial .e-product-card__reviews {
  color: var(--e-muted);
  font-size: 10px;
}

.presentation-editorial .e-product-card__rating+.e-product-card__reviews {
  margin-left: 7px;
  padding-left: 7px;
  border-left: 1px solid var(--e-line);
}

.presentation-editorial .e-product-card__reviews b {
  color: var(--e-ink);
  font-weight: 700
}

.presentation-editorial .e-product-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2px 5px 2px 0;
}

.presentation-editorial .e-product-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 24px;
}

.presentation-editorial .e-product-card__release {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
  padding: 2px;
  background-color: #f3f2f2;
}

.presentation-editorial .e-product-card__release.is-empty {
  visibility: hidden
}

.presentation-editorial .e-product-card__release-label {
  margin-right: 6px;
  color: var(--e-accent);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}

.presentation-editorial .e-product-card__release-date {
  overflow: hidden;
  color: var(--e-muted);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.presentation-editorial .e-product-card__title {
  margin: 0;
  font-size: var(--e-type-card-title, 18px);
  line-height: 1.58;
  overflow-wrap: anywhere;
  color: inherit;
  text-decoration: none;
  transition: color .16s ease;
}

.presentation-editorial .e-product-card:hover .e-product-card__title {
  color: var(--e-accent)
}

.presentation-editorial .e-product-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 6px 0 0;
  color: var(--e-muted);
  font-size: var(--e-type-card-copy, 12px);
  line-height: 1.75;
}

.presentation-editorial .e-product-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: end;
  margin-top: auto;
  padding-top: 10px;
}

.presentation-editorial .e-product-card__action {
  min-width: 116px;
  min-height: 38px;
  margin: 0;
  padding: 8px 12px;
  gap: 8px;
  white-space: nowrap;
  border: 0;
  background: var(--e-accent);
  color: #fff;
}


/* Decorative arrow belongs to the card action, without a nested link or hover. */
.presentation-editorial .e-product-card__action:after {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid currentColor;
}

@media(max-width:760px) {
  .presentation-editorial .e-product-card {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 13px;
    padding: 16px 0;
  }

  .presentation-editorial .e-product-card__media {
    aspect-ratio: 16 / 9;
  }

  .presentation-editorial .e-product-card__body {
    padding-right: 0
  }

  .presentation-editorial .e-product-card__head {
    gap: 7px;
    min-height: 20px
  }

  .presentation-editorial .e-product-card__release-label {
    margin-right: 4px;
    font-size: 10px
  }

  .presentation-editorial .e-product-card__release-date {
    font-size: 10px
  }

  .presentation-editorial .e-product-card__proof {
    min-height: 24px;
    margin-top: 5px;
    padding: 2px 6px
  }

  .presentation-editorial .e-product-card__rating {
    font-size: 10px
  }

  .presentation-editorial .e-product-card__reviews {
    font-size: 9px
  }

  .presentation-editorial .e-product-card__rating+.e-product-card__reviews {
    margin-left: 5px;
    padding-left: 5px
  }

  .presentation-editorial .e-product-card__title {
    font-size: var(--e-type-card-title, 15px)
  }

  .presentation-editorial .e-product-card__footer {
    gap: 8px;
    padding-top: 7px
  }

  .presentation-editorial .e-product-card__action {
    min-width: 108px;
    min-height: 36px;
    padding: 8px 12px;
    gap: 6px;
    font-size: var(--e-type-supplement)
  }

}

@media(max-width:420px) {
  .presentation-editorial .e-product-card__title {
    font-size: var(--e-type-card-title, 14px);
    line-height: 1.45
  }

  .presentation-editorial .e-product-card__proof {
    padding-inline: 5px
  }

  .presentation-editorial .e-product-card__rating {
    font-size: 9px
  }

  .presentation-editorial .e-product-card__reviews {
    font-size: 8px
  }

  .presentation-editorial .e-product-card__rating+.e-product-card__reviews {
    margin-left: 4px;
    padding-left: 4px
  }

  .presentation-editorial .e-product-card__footer {
    gap: 6px
  }

  .presentation-editorial .e-product-card__action {
    width: 100%;
    min-width: 106px
  }
}

@media(max-width:350px) {
  .presentation-editorial .e-product-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px
  }

  .presentation-editorial .e-product-card__release-label {
    display: none
  }

  .presentation-editorial .e-product-card__action {
    min-width: 102px;
    padding-left: 7px;
    font-size: var(--e-type-supplement)
  }
}

@media(prefers-reduced-motion:reduce) {

  .presentation-editorial .e-product-card,
  .presentation-editorial .e-product-card__media img {
    transition: none;
  }

  .presentation-editorial .e-product-card:hover .e-product-card__media img {
    transform: none
  }
}
