.product-feed-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-feed-card {
  display: block;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffdfd;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-feed-media {
  position: relative;
  aspect-ratio: 1 / 1.06;
  overflow: hidden;
  background: linear-gradient(180deg, #fff6f8 0%, #f9dce5 100%);
}

.product-feed-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(65, 47, 55, 0.08) 62%, rgba(65, 47, 55, 0.18) 100%);
  pointer-events: none;
}

.product-feed-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-muted);
}

.product-feed-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-strong);
  border: 1px solid rgba(233, 122, 154, 0.28);
  box-shadow: 0 10px 18px rgba(65, 47, 55, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.product-feed-badge.is-best {
  border: 1px solid rgba(241, 210, 138, 0.92);
  background: linear-gradient(135deg, rgba(255, 245, 217, 0.98), rgba(255, 223, 152, 0.98));
  color: #8a5a00;
  box-shadow: 0 6px 14px rgba(138, 90, 0, 0.16);
  transform-origin: center;
  will-change: transform, box-shadow, filter;
  animation: product-feed-badge-pop 0.96s cubic-bezier(.22, .61, .36, 1) infinite;
}

@keyframes product-feed-badge-pop {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
    box-shadow: 0 6px 14px rgba(138, 90, 0, 0.16);
    filter: saturate(1);
  }
  30% {
    transform: translateY(-2px) scale(1.11) rotate(-1.2deg);
    box-shadow: 0 12px 20px rgba(138, 90, 0, 0.28);
    filter: saturate(1.08);
  }
  55% {
    transform: translateY(0) scale(1.02) rotate(1deg);
    box-shadow: 0 8px 16px rgba(138, 90, 0, 0.2);
    filter: saturate(1.02);
  }
  78% {
    transform: translateY(0) scale(0.97) rotate(0deg);
    box-shadow: 0 6px 14px rgba(138, 90, 0, 0.14);
    filter: saturate(1);
  }
}

.product-feed-body {
  display: grid;
  gap: 4px;
  padding: 11px 11px 12px;
}

.product-feed-headline,
.product-feed-delta,
.product-feed-checked {
  margin: 0;
}

.product-feed-headline {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-feed-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-feed-price-block {
  display: grid;
  gap: 2px;
  margin-top: 6px;
}

.product-feed-price {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.product-feed-delta {
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-feed-checked {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .product-feed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-feed-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-feed-card {
    border-radius: 18px;
  }

  .product-feed-body {
    padding: 10px 10px 11px;
  }

  .product-feed-headline {
    font-size: 0.9rem;
  }

  .product-feed-title {
    font-size: 0.73rem;
  }

  .product-feed-price {
    font-size: 0.96rem;
  }

  .product-feed-delta,
  .product-feed-checked {
    font-size: 0.69rem;
  }

  .product-feed-badge.is-best {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 0.66rem;
  }
}
