/* ==========================================================================
   Aurum Theme — Product Card
   Styles for product-miniature.tpl (reusable card component)
   ========================================================================== */

/* ---- Card container ---- */
.au-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--au-surface);
  border-radius: var(--au-radius);
  overflow: hidden;
  transition: box-shadow var(--au-duration-slow) var(--au-ease);
}

.au-product-card:hover {
  box-shadow: var(--au-shadow-md);
}

/* ---- Image wrapper ---- */
.au-product-card__img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--au-surface-muted);
}

.au-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--au-duration-slow) var(--au-ease);
}

.au-product-card__img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.au-product-card:hover .au-product-card__img--hover {
  opacity: 1;
}

.au-product-card:hover .au-product-card__img--primary {
  opacity: 0;
}

/* ---- Overlay actions (visible on hover) ---- */
.au-product-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--au-sp-4);
  background: linear-gradient(to top, rgba(3, 2, 19, 0.35) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--au-duration-slow) var(--au-ease);
}

.au-product-card:hover .au-product-card__overlay {
  opacity: 1;
}

.au-product-card__add-to-cart {
  width: 100%;
  padding: var(--au-sp-3) var(--au-sp-4);
  font-family: var(--au-font-body);
  font-size: var(--au-fs-sm);
  font-weight: var(--au-fw-medium);
  letter-spacing: var(--au-ls-wider);
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  background-color: var(--au-gold);
  border: none;
  border-radius: var(--au-radius-sm);
  cursor: pointer;
  transition: background-color var(--au-duration) var(--au-ease);
  line-height: 1;
}

.au-product-card__add-to-cart:hover {
  background-color: var(--au-gold-dark);
  color: #ffffff;
}

/* ---- Badge ---- */
.au-product-card__badges {
  position: absolute;
  top: var(--au-sp-3);
  left: var(--au-sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--au-sp-1);
  z-index: 2;
}

.au-product-card__badge {
  display: inline-block;
  padding: var(--au-sp-1) var(--au-sp-2);
  font-size: var(--au-fs-xs);
  font-weight: var(--au-fw-medium);
  letter-spacing: var(--au-ls-wide);
  text-transform: uppercase;
  line-height: 1.3;
  border-radius: var(--au-radius-sm);
  color: #ffffff;
}

.au-product-card__badge--new {
  background-color: var(--au-gold);
}

.au-product-card__badge--sale {
  background-color: var(--au-promo);
}

.au-product-card__badge--bestseller {
  background-color: var(--au-text);
}

/* ---- Wishlist heart ---- */
.au-product-card__wishlist {
  position: absolute;
  top: var(--au-sp-3);
  right: var(--au-sp-3);
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--au-radius-full);
  cursor: pointer;
  transition: all var(--au-duration) var(--au-ease);
  backdrop-filter: blur(4px);
}

.au-product-card__wishlist:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.au-product-card__wishlist svg {
  width: 18px;
  height: 18px;
  stroke: var(--au-text);
  fill: none;
  stroke-width: 2;
  transition: all var(--au-duration) var(--au-ease);
}

.au-product-card__wishlist.is-active svg {
  fill: var(--au-promo);
  stroke: var(--au-promo);
}

/* ---- Card body ---- */
.au-product-card__body {
  padding: var(--au-sp-4) var(--au-sp-3) var(--au-sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--au-sp-2);
  flex: 1;
}

.au-product-card__name {
  font-family: var(--au-font-display);
  font-size: var(--au-fs-md);
  font-weight: var(--au-fw-medium);
  line-height: var(--au-lh-tight);
  color: var(--au-text);
  transition: color var(--au-duration) var(--au-ease);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.au-product-card__name:hover {
  color: var(--au-gold);
}

/* ---- Pricing ---- */
.au-product-card__prices {
  display: flex;
  align-items: baseline;
  gap: var(--au-sp-2);
  flex-wrap: wrap;
}

.au-product-card__price {
  font-family: var(--au-font-display);
  font-size: var(--au-fs-lg);
  font-weight: var(--au-fw-semibold);
  color: var(--au-text);
}

.au-product-card__price--old {
  font-size: var(--au-fs-sm);
  font-weight: var(--au-fw-regular);
  color: var(--au-muted);
  text-decoration: line-through;
}

.au-product-card__price--sale {
  color: var(--au-promo);
}

/* ---- Product card in list view ---- */
.au-product-card--list {
  flex-direction: row;
}

.au-product-card--list .au-product-card__img-wrap {
  width: 200px;
  min-width: 200px;
  aspect-ratio: auto;
}

.au-product-card--list .au-product-card__body {
  justify-content: center;
}

@media (max-width: 575px) {
  .au-product-card--list {
    flex-direction: column;
  }

  .au-product-card--list .au-product-card__img-wrap {
    width: 100%;
    min-width: unset;
    aspect-ratio: 3 / 4;
  }
}
