/* Advanced Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-gold);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1) rotate(1deg);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.product-card:hover .image-overlay {
  opacity: 1;
}

.overlay-buttons {
  display: flex;
  gap: 12px;
}

.overlay-btn {
  width: 45px;
  height: 45px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary-black);
  font-size: 16px;
  transform: translateY(20px);
}

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

.overlay-btn:hover {
  background: var(--secondary-gold);
  color: white;
  transform: scale(1.1);
}

.overlay-btn:nth-child(2) {
  transition-delay: 0.1s;
}

.overlay-btn:nth-child(3) {
  transition-delay: 0.2s;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.product-badge.new {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  animation: pulse 2s infinite;
}

.product-badge.bestseller {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  animation: pulse 2s infinite;
}

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

.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.product-info {
  padding: 20px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.product-category {
  color: var(--secondary-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(198, 166, 100, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stars {
  color: var(--secondary-gold);
  font-size: 12px;
}

.rating-text {
  color: #666;
  font-size: 11px;
  font-weight: 600;
}

.product-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.current-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-black);
}

.original-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.stock-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #28a745;
  font-size: 12px;
  font-weight: 600;
}

.stock-info i {
  font-size: 11px;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, var(--primary-black), #333);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, var(--secondary-gold), #d4af37);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 166, 100, 0.4);
}

/* List View Styles */
.product-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-grid.list-view .product-card {
  display: flex;
  flex-direction: row;
  max-width: none;
  height: 200px;
}

.product-grid.list-view .product-image-wrapper {
  width: 250px;
  flex-shrink: 0;
}

.product-grid.list-view .product-image {
  height: 100%;
}

.product-grid.list-view .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-grid.list-view .product-description {
  display: block;
  -webkit-line-clamp: 3;
}

.product-grid.list-view .product-footer {
  margin-top: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .product-grid.list-view .product-card {
    flex-direction: column;
    height: auto;
  }
  
  .product-grid.list-view .product-image-wrapper {
    width: 100%;
  }
  
  .product-grid.list-view .product-image {
    height: 200px;
  }
  
  .product-image {
    height: 200px;
  }
  
  .product-info {
    padding: 16px;
  }
  
  .overlay-buttons {
    gap: 8px;
  }
  
  .overlay-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .product-name {
    font-size: 15px;
  }
  
  .current-price {
    font-size: 18px;
  }
  
  .product-footer {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .add-to-cart-btn {
    justify-content: center;
  }
}