/* Premium product cards — Do Darya Grounds */

:root {
  --darya-coral: #ff9e9e;
  --darya-coral-deep: #e86b6b;
  --darya-warm: #fff9f6;
  --product-shadow: 0 4px 6px rgba(20, 20, 20, 0.03), 0 16px 40px rgba(20, 20, 20, 0.07);
  --product-shadow-hover: 0 8px 16px rgba(20, 20, 20, 0.06), 0 28px 56px rgba(232, 107, 107, 0.12);
}

.product-grid {
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.06);
  box-shadow: var(--product-shadow);
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--product-shadow-hover);
  border-color: rgba(255, 158, 158, 0.35);
}

.product-card-media {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(145deg, var(--darya-warm) 0%, #f0ebe3 100%);
}

.product-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(20, 20, 20, 0.18) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.product-card:hover .product-card-media::after {
  opacity: 1;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card-media img {
  transform: scale(1.08);
}

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.15rem 1.2rem 1.3rem;
}

.product-card-body > div:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-card .badge {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, rgba(255, 188, 13, 0.22), rgba(255, 199, 44, 0.12));
  border: 1px solid rgba(255, 188, 13, 0.4);
  color: #8a5a00;
  box-shadow: 0 2px 8px rgba(255, 188, 13, 0.15);
}

.product-card .overline {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--darya-coral-deep);
}

.product-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.product-card-body h3 a {
  transition: color 0.2s ease;
}

.product-card-body h3 a:hover {
  color: var(--darya-coral-deep);
}

.product-card-body p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #6b6b6b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .price-row {
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(20, 20, 20, 0.08);
  flex-wrap: wrap;
}

.price-original {
  font-size: 0.88rem;
  font-weight: 600;
  color: #999;
  text-decoration: line-through;
}

.product-card .price {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--darya-coral-deep);
}

.product-card .price-row .pill,
.price-row .pill {
  display: none;
}

.product-card-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.product-card-actions .button-primary {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffbc0d 0%, #ffc72c 45%, #ffb300 100%);
  box-shadow: 0 4px 16px rgba(255, 188, 13, 0.35);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.product-card-actions .button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 188, 13, 0.45);
  filter: brightness(1.03);
}

.product-card-actions .button-ghost {
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--darya-coral-deep);
  border: 1px solid rgba(232, 107, 107, 0.25);
  background: rgba(255, 158, 158, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.product-card-actions .button-ghost:hover {
  background: rgba(255, 158, 158, 0.14);
  border-color: rgba(232, 107, 107, 0.45);
}

@media (min-width: 960px) {
  .product-card-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 959px) {
  .product-card-actions {
    grid-template-columns: 1fr 1fr;
  }

  .product-card-actions .button-primary,
  .product-card-actions .button-ghost {
    min-height: 42px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card-media img,
  .product-card-actions .button-primary {
    transition: none;
  }

  .product-card:hover {
    transform: none;
  }
}
