/* ── Product Card ── */
.product-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .product-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .product-grid-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: transparent; 
}

/* ── IMAGE AREA ── */
.product-image-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f5f5;
  text-decoration: none;
}

/* Both images sit on top of each other */
.product-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.product-card-img-primary {
  z-index: 1;
  opacity: 1;
}

.product-card-img-hover {
  z-index: 2;
  opacity: 0;
}

/* On hover: swap image, zoom slightly */
.product-image-link:hover .product-card-img-primary {
  opacity: 0;
  transform: scale(1.04);
}

.product-image-link:hover .product-card-img-hover {
  opacity: 1;
  transform: scale(1.04);
}

/* Discount badge */
.product-discount-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 10;
  background: #e33;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

/* "Buy Now" overlay */
.product-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(23, 23, 23, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-link:hover .product-card-overlay {
  transform: translateY(0);
}

.product-card-overlay-text {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* ── INFO ── */
.product-card-info {
  padding: 0.65rem 0 0.25rem;
  text-align: left;
}

.product-card-name-link {
  text-decoration: none;
}

.product-card-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 0.35rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.product-card-name-link:hover .product-card-name {
  color: var(--gold);
}

.product-card-prices {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-regular-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
}

.product-sale-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold);
}

.product-original-price {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: line-through;
}

/* ── Equal product card heights ── */
.product-grid-container {
  align-items: stretch;
}

.product-card {
  min-width: 0;
  height: 100%;
}

.product-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-name {
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
}

.product-card-prices {
  margin-top: auto;
}

