/* Product Card Styles */
.product-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card.out-of-stock {
  opacity: 0.75;
  border-color: #fca5a5;
}

.product-card.out-of-stock:hover {
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
}

.product-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.product-image {
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.out-of-stock-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #dc2626;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stock-status-badge {
  margin-bottom: 0.75rem;
}

.out-of-stock-label {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.product-vendor {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.5rem 0;
  font-style: italic;
}

.product-description {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0 0 1rem 0;
  line-height: 1.5;
  flex: 1;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #059669;
  margin: 0 0 1rem 0;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-indicator {
  background-color: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.add-to-cart-btn {
  background-color: #059669;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  font-size: 0.875rem;
}

.add-to-cart-btn:hover:not(:disabled) {
  background-color: #047857;
}

.add-to-cart-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.add-to-cart-btn.in-cart {
  background-color: #3b82f6;
}

.add-to-cart-btn.in-cart:hover:not(:disabled) {
  background-color: #2563eb;
}

.view-details-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
}

.view-details-link:hover {
  background-color: #f8fafc;
  border-color: #3b82f6;
}

.error-message {
  background-color: #fee2e2;
  color: #991b1b;
  padding: 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  text-align: center;
}

.success-message {
  background-color: #dcfce7;
  color: #166534;
  padding: 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  text-align: center;
}

/* Grid Layout */
.teas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.featured-teas {
  margin-top: 3rem;
  padding: 2rem 0;
}

.featured-teas h2 {
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.featured-teas p {
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .teas-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card {
    padding: 1rem;
  }

  .product-image {
    height: 150px;
  }
}
