/* Product Card Styles */
.product-card {
  /* background: white; */
  /* border: 1px solid var(--light-gray); */
  /* border-radius: 12px; */
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  /* box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); */
  /* border-color: transparent; */
}

/* Image Area */
.product-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f9f9f9;
}

.product-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Badges & Icons */
.product-badges-left {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  align-items: flex-start;
}

.product-badges-left .product-badge {
  position: static;
  background: var(--pink);
  color: white;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
}

.product-badges-left .product-badge.sale-discount {
  border-radius: unset;
}

.product-badges-left .product-badge.exclusive {
  background: var(--purple);
}

.product-badges-left .product-badge.bundle {
  background: var(--yellow);
  color: var(--black);
}

.exclusive-badge {
  display: inline-block;
  font-size: 9px;
  color: var(--purple);
  font-weight: 800;
  background: rgba(123, 44, 191, 0.1);
  padding: 2px 6px;
  /* border-radius: 4px; */
  margin-bottom: 4px;
}

/* Action Icons column on top right */
.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  background: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gray);
  z-index: 2;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-wishlist:hover {
  color: var(--pink);
  transform: scale(1.1);
}

.product-wishlist.active {
  color: var(--pink);
}

.product-quickview-btn {
  position: absolute;
  top: 52px;
  /* Directly below wishlist icon */
  right: 12px;
  left: auto;
  background: white;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-quickview-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--gray);
}

.product-card:hover .product-quickview-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-quickview-btn:hover {
  background: var(--pink);
}

.product-quickview-btn:hover svg {
  stroke: white;
}

/* Info Area */
.product-info {
  padding: 12px 0;
  /* display: flex;
  flex-direction: column;
  flex: 1; */
}

.product-cat {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 4px;
}

.product-title {
  font-family: 'Bebas Neue', 'Heebo', sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 6px;
  flex: 1;
}

.product-title a {
  color: var(--black);
  text-decoration: none;
}

.product-title a:hover {
  color: var(--pink);
}

.product-rating {
  font-size: 10px;
  color: var(--yellow);
  margin-bottom: 8px;
}

.product-rating span {
  color: var(--gray);
  margin-right: 4px;
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-price del {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

.product-price ins {
  text-decoration: none;
  color: var(--pink);
}

/* Variations */
.product-card-variations {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.variation-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.variation-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray);
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.variation-option:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.variation-option.active {
  border-color: var(--pink);
  color: white;
  background: var(--pink);
}

.variation-option.out-of-stock {
  opacity: 0.4;
  color: #aaa;
  border-color: #e0e0e0;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
  background: #fdfdfd;
  overflow: hidden;
}

/* Premium diagonal line cross for out of stock variations */
.variation-option.out-of-stock::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top right, transparent calc(50% - 0.75px), #bbb calc(50% - 0.75px), #bbb calc(50% + 0.75px), transparent calc(50% + 0.75px));
}

/* Actions */
.product-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.product-add-cart-btn {
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  background: var(--black);
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.product-add-cart-btn:hover {
  background: var(--pink);
}

.product-buy-now-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF1B6B 0%, #7B2CBF 100%);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(255, 27, 107, 0.3);
}

.product-buy-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 27, 107, 0.4);
}

@media (max-width: 768px) {
  .product-quickview-btn {
    display: none;
  }

  .product-card-actions {
    gap: 6px;
  }

  .product-add-cart-btn {
    font-size: 11px;
    height: 38px;
  }

  .product-buy-now-btn {
    width: 38px;
    height: 38px;
  }

  .product-info {
    padding: 12px;
  }

  .product-title {
    font-size: 18px;
  }
}