/* AgroMarket / ΑγροΑγορά — custom styles beyond Tailwind utility classes */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Toast notifications */
.toast {
  min-width: 240px;
  max-width: 320px;
  background: #2f3a22;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toast-in 0.25s ease-out;
}

.toast.toast-success {
  background: #525f29;
}

.toast.toast-error {
  background: #9f3820;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast.toast-out {
  animation: toast-out 0.2s ease-in forwards;
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* Product card hover */
.product-card img {
  will-change: transform;
}

/* Scrollbar for order summary lists */
.max-h-64::-webkit-scrollbar {
  width: 5px;
}
.max-h-64::-webkit-scrollbar-thumb {
  background: #dce0b6;
  border-radius: 4px;
}
