/* ============================================================
   Product Card — single authoritative stylesheet
   Used on: archive grid, product carousels, wishlist page,
            PDP "you may also like" + recently viewed.
   ============================================================ */

/* ── Base card wrapper ────────────────────────────────────────── */

.product-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
}

/* ── Image box ────────────────────────────────────────────────── */

.product-img-box {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f0eeea;
}

/* Both images fill the box */
.product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Main image — visible by default */
.product-img.main-img {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Hover image — hidden by default, stacked on top */
.product-img.hover-img {
  opacity: 0;
  transform: scale(1.04);
  z-index: 2;
}

/* On hover: main fades out, hover fades in */
.product-card:hover .product-img.main-img {
  opacity: 0;
  transform: scale(1.04);
}

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

/* ── Sale / New badge ─────────────────────────────────────────── */

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--btn-bg);
  color: #fff;
  font-family: var(--font-cta);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  z-index: 5;
  pointer-events: none;
}

.product-badge.sale { background: #b73a3a; }

/* ── Hover action bar (Add to Bag | Buy Now) ──────────────────── */

.product-hover-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: stretch;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 6;
}

.product-card:hover .product-hover-actions {
  transform: translateY(0);
}

.hover-btn {
  flex: 1;
  padding: 13px 8px;
  font-family: var(--font-cta);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.96);
  color: var(--heading-color);
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hover-btn:hover {
  background: #fff;
  color: var(--text-color);
  text-decoration: none;
}

.hover-btn.btn-add {
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/* ── Product info (name + price) ──────────────────────────────── */

.product-info {
  padding: 14px 6px 20px;
  text-align: center;
  background: transparent;
}

.product-name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-name a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-name a:hover {
  color: var(--text-light);
}

.product-price {
  font-family: var(--font-cta);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-color);
}

.product-price .original-price {
  text-decoration: line-through;
  color: var(--text-light);
  margin-right: 6px;
}

.product-price .sale-price {
  color: #b73a3a;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hover-btn {
    font-size: 0.65rem;
    padding: 11px 6px;
  }
}
