.product-card {
  display: grid;
  height: 100%;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 1.1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(16, 24, 32, 0.08);
    border-color: rgba(16, 24, 32, 0.14);
  }
}

.media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #f2eee5;
  overflow: hidden;
}

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

.image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  background:
    radial-gradient(
      circle at top right,
      rgba(250, 207, 10, 0.24),
      transparent 36%
    ),
    linear-gradient(160deg, #f7f4ed 0%, #ece7db 100%);
}

.image-fallback span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 24, 32, 0.08);
  color: var(--color-neutral-900);
  font-size: 0.78rem;
  font-weight: 700;
}

.card-badges {
  position: absolute;
  inset: var(--space-4) var(--space-4) auto auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-cart {
  background: rgba(16, 24, 32, 0.82);
  color: #fff;
}

.badge-model {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text-muted);
  border: 1px solid rgba(16, 24, 32, 0.08);
}

.content {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.category {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category {
  color: var(--color-secondary-600);
  font-weight: 700;
}

.name {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.16;
}

.name a {
  color: var(--color-text);
  text-decoration: none;
}

.excerpt {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing {
  display: grid;
  gap: 0.1rem;
}

.price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-neutral-900);
}

.price-note {
  color: var(--color-text-muted);
}

.cart-btn,
.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.cart-btn {
  background: var(--color-brand);
  color: var(--color-neutral-900);
  border-color: color-mix(in srgb, var(--color-brand) 72%, #d5ac00);
  cursor: pointer;
}

.cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.view-btn {
  background: rgba(16, 24, 32, 0.06);
  color: var(--color-neutral-900);
  text-decoration: none;
}

@media (max-width: 640px) {
  .footer {
    align-items: start;
    flex-direction: column;
  }

  .footer-actions {
    width: 100%;
  }

  .cart-btn,
  .view-btn {
    flex: 1;
  }
}
