/* Ürün kartları: liste görselleri (cover), satır içi hizalar (anasayfa, mağaza) */
.card .imgwrap {
  display: grid;
  grid-template: 1fr / 1fr;
  aspect-ratio: 4/3;
  width: 100%;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  overflow: hidden;
  min-height: 0;
  border-bottom: 1px solid #e5e7eb;
}
.card .imgwrap > a {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  justify-self: stretch;
  min-height: 0;
  min-width: 0;
  z-index: 0;
}
.card .imgwrap img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center center;
  box-sizing: border-box;
  padding: 10px;
  display: block;
}
.card .imgwrap .hover-actions {
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  pointer-events: none;
}
.card .imgwrap .hover-actions button,
.card .imgwrap .hover-actions a {
  pointer-events: auto;
}

.grid > .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.grid > .card .meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.grid > .card .meta .name {
  font-weight: 600;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}
.grid > .card .meta .name a {
  color: inherit;
}
.grid > .card .meta > div:last-child {
  margin-top: auto;
}
.grid > .card .meta .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.grid > .card .meta .row > *:first-child {
  min-width: 0;
  flex: 1;
}
.grid > .card .meta .seller {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.grid > .card .meta .seller .star {
  flex-shrink: 0;
}
.grid > .card .meta .seller a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.grid > .card .meta .price {
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}
