/* Product Card Lite Styles - Extracted to external file for caching */
.lv-product-card {
  position: relative;
  background: transparent;
}

.lv-product-image-container {
  display: block;
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f8f8f8;
}

.lv-product-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.lv-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lv-product-image-main.lv-hidden {
  opacity: 0;
}

.lv-product-image-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.lv-product-image-secondary.lv-visible {
  opacity: 1;
}

.lv-product-card:hover .lv-product-image {
  transform: scale(1.03);
}

.lv-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F5F5;
}

.lv-product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lv-badge {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lv-badge-sold-out {
  background: #000;
  color: #fff;
}

.lv-badge-sale {
  background: #C41E3A;
  color: #fff;
}

.lv-badge-new {
  background: #1A1A1A;
  color: #fff;
}

.lv-quick-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.03));
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.lv-quick-actions.lv-visible {
  opacity: 1;
  transform: translateY(0);
}

.lv-add-to-cart-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lv-add-to-cart-btn:hover {
  background: #333;
}

.lv-add-to-cart-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.lv-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lv-spin 0.8s linear infinite;
}

@keyframes lv-spin {
  to { transform: rotate(360deg); }
}

.lv-product-info {
  padding: 16px 8px;
  text-align: center;
}

.lv-product-brand {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #595959;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.lv-product-brand:hover {
  color: #000;
}

.lv-product-title {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #1A1A1A;
  margin-bottom: 8px;
}

.lv-product-title a {
  text-decoration: none;
  color: inherit;
}

.lv-product-title a:hover {
  text-decoration: underline;
}

.lv-product-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lv-price-regular {
  font-size: 14px;
  font-weight: 500;
  color: #1A1A1A;
}

.lv-price-sale {
  font-size: 14px;
  font-weight: 500;
  color: #C41E3A;
}

.lv-price-compare {
  font-size: 12px;
  color: #767676;
  text-decoration: line-through;
}

/* Quick Add Button */
.lv-quick-add-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.lv-quick-add-btn:hover {
  width: 90px;
  background: #000;
}

.lv-quick-add-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lv-quick-add-btn .lv-cart-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lv-quick-add-btn .lv-btn-text {
  width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.lv-quick-add-btn:hover .lv-btn-text {
  width: auto;
  margin-left: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .lv-quick-add-btn {
    width: 24px;
    height: 24px;
    bottom: 6px;
    right: 6px;
    border-radius: 3px;
  }

  .lv-quick-add-btn .lv-cart-icon {
    width: 12px;
    height: 12px;
  }

  .lv-quick-add-btn:hover {
    width: 24px;
  }

  .lv-quick-add-btn:hover .lv-btn-text {
    width: 0;
    margin-left: 0;
  }

  .lv-product-info {
    padding: 10px 4px;
  }

  .lv-product-title {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .lv-product-brand {
    font-size: 9px;
  }

  .lv-price-regular,
  .lv-price-sale {
    font-size: 13px;
  }

  .lv-price-compare {
    font-size: 10px;
  }
}

/* ========================================
   LuxuryProductCard Styles
   ======================================== */

.luxury-card {
  background: #fff;
  position: relative;
}

.luxury-card.out-of-stock {
  opacity: 0.6;
}

.luxury-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.luxury-card-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
}

.luxury-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.luxury-card-img.hovered {
  transform: scale(1.03);
}

.luxury-card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.luxury-badge {
  padding: 0.375rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.luxury-badge.sale {
  background: #000;
  color: #fff;
}

.luxury-badge.new {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

.luxury-badge.sold-out {
  background: #F5F5F5;
  color: #404040;
}

.luxury-card-wishlist {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.luxury-card-wishlist:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.luxury-card-wishlist:hover .heart-outline {
  color: #e53935;
}

.luxury-card-wishlist.active {
  background: #fff;
}

.luxury-card-wishlist svg {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-card-wishlist .heart-outline {
  color: #404040;
  opacity: 1;
}

.luxury-card-wishlist .heart-filled {
  color: #e53935;
  opacity: 0;
  transform: scale(0);
}

.luxury-card-wishlist.active .heart-outline {
  opacity: 0;
  transform: scale(0.5);
}

.luxury-card-wishlist.active .heart-filled {
  opacity: 1;
  transform: scale(1);
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.luxury-card-wishlist.active .heart-filled {
  animation: heartPulse 0.6s ease-in-out;
}

.lv-quick-add-btn.loading {
  opacity: 0.8;
}

.luxury-card-info {
  padding: 1rem 0;
}

.luxury-card-brand {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #595959;
  margin-bottom: 0.375rem;
}

.luxury-card-title {
  font-size: 0.875rem;
  font-weight: 400;
  color: #000;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.luxury-card-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.luxury-card-price .current {
  font-size: 0.875rem;
  font-weight: 500;
  color: #000;
}

.luxury-card-price .compare {
  font-size: 0.8125rem;
  color: #767676;
  text-decoration: line-through;
}

/* LuxuryProductCard Mobile */
@media (max-width: 768px) {
  .luxury-card-badges {
    top: 0.75rem;
    left: 0.75rem;
  }

  .luxury-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.5625rem;
  }

  .luxury-card-wishlist {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .luxury-card-wishlist svg {
    width: 1rem;
    height: 1rem;
  }

  .luxury-card-info {
    padding: 0.75rem 0;
  }

  .luxury-card-title {
    font-size: 0.8125rem;
  }

  .luxury-card-price .current {
    font-size: 0.8125rem;
  }
}
