/* Landing Products Page Styles */

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9ecef;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  border-color: #dee2e6;
}

.product-actions {
  opacity: 1 !important;
  display: flex !important;
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 999 !important;
  gap: 8px !important;
  transition: opacity 0.3s ease;
  pointer-events: auto !important;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
}

.product-card:hover .product-actions {
  opacity: 1 !important;
}

.product-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #212529;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 21 !important;
  position: relative !important;
}

.product-action-btn:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.add-to-cart-btn:hover {
  color: #28a745;
}

.buy-now-btn:hover {
  color: #ffc107;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

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

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-badge:first-of-type {
  top: 12px;
}

.product-badge:last-of-type {
  top: 50px;
}

.product-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #667eea;
  font-weight: 700;
}

.product-rating {
  color: #ffc107;
  font-size: 0.9rem;
}

.product-stats {
  font-size: 0.85rem;
  color: #6c757d;
}

.product-view-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-view-btn:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  color: white;
}

.loading-spinner {
  display: none;
  text-align: center;
  padding: 2rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state i {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.filter-badge {
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-badge:hover {
  transform: scale(1.05);
}

/* Ensure buttons are always visible on all screen sizes */
@media (max-width: 768px) {
  .product-actions {
    top: 8px !important;
    left: 8px !important;
    gap: 6px !important;
  }
  
  .product-action-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
  }
}

