/* Fensy Prototype 3 - Product Card Enhancements */

/* Product card content styling */
.product-card .card-body {
  position: relative;
  z-index: 1;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--brown-text);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

/* Large cards get bigger typography */
@media (min-width: 768px) {
  .product-card:nth-child(6n+1) h3,
  .product-card:nth-child(6n+2) h3 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
  }

  .product-card:nth-child(6n+1) .price,
  .product-card:nth-child(6n+2) .price {
    font-size: var(--font-size-3xl);
  }

  .product-card:nth-child(6n+1) .color-badges,
  .product-card:nth-child(6n+2) .color-badges {
    margin-top: var(--spacing-lg);
  }
}

/* Creative price tags - Tab/tag style extending to edge */
/* Default: extend to LEFT (for vertical cards and picture-on-right layouts) */
.product-card .price {
  position: relative;
  display: block;
  padding: var(--spacing-sm) var(--spacing-lg);
  margin-left: calc(-1 * var(--spacing-lg));
  margin-right: 0;
  background: var(--peach-lighter);
  text-align: right;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: all var(--transition-base);
}

.product-card:hover .price {
  background: var(--coral-primary);
  color: white;
}

/* Adjust for horizontal cards */
@media (min-width: 768px) {
  /* Picture on left - extend RIGHT */
  .product-card:nth-child(6n+1) .price,
  .product-card:nth-child(6n+6) .price {
    margin-right: calc(-1 * var(--spacing-2xl));
    margin-left: 0;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    text-align: left;
  }

  /* Picture on right - extend LEFT (same as default, but with desktop padding) */
  .product-card:nth-child(6n+2) .price {
    margin-left: calc(-1 * var(--spacing-2xl));
    margin-right: 0;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    text-align: right;
  }

  /* Vertical cards on desktop - extend LEFT */
  .product-card:nth-child(6n+3) .price,
  .product-card:nth-child(6n+4) .price,
  .product-card:nth-child(6n+5) .price {
    margin-left: calc(-1 * var(--spacing-lg));
    margin-right: 0;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    text-align: right;
  }
}

/* Decorative corner accent on some cards */
.product-card:nth-child(4n+2)::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--emerald-accent) 0%, transparent 100%);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Sold out overlay */
.product-card .badge-gray {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-md);
}

/* Color badge enhancements */
.product-card .color-badges {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-wrap: wrap;
}

.product-card .color-badge-dot {
  transition: all var(--transition-fast);
}

.product-card:hover .color-badge-dot {
  transform: scale(1.15);
}

/* Category label styling */
.product-card .text-sm {
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: var(--font-size-xs);
}

/* Image hover effects */
.product-card .card-image {
  transition: transform var(--transition-slow);
}

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

/* Add subtle patterns to alternate cards */
.product-card:nth-child(5n+3) {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      var(--peach-lighter) 10px,
      var(--peach-lighter) 11px
    ),
    white;
  background-size: 200% 200%;
  background-position: 0% 0%;
}

.product-card:nth-child(5n+3):hover {
  background-position: 100% 100%;
}

/* Stagger entrance animations */
.product-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.5s; }

/* Floating label effect for available sizes */
.product-card .available-sizes {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: white;
  border: 1px solid var(--beige-warm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  color: var(--brown-light);
  transition: all var(--transition-fast);
}

.product-card:hover .available-sizes {
  border-color: var(--coral-primary);
  color: var(--coral-primary);
}
