body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0; padding: 0;
  background: #f4f6f9;
  color: #333;
}
header {
  background: linear-gradient(135deg, #4CAF50, #2e7d32);
  color: white;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
header h1 { margin: 0; font-size: 2rem; }

.controls {
  display: flex; flex-wrap: wrap; gap: 1rem;
  padding: 1rem; background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky; top: 0; z-index: 100;
}
input, select {
  padding: 0.7rem; font-size: 1rem;
  border: 1px solid #ccc; border-radius: 6px;
  flex: 1; min-width: 200px;
  transition: all 0.3s ease;
}
input:focus, select:focus {
  border-color: #4CAF50; box-shadow: 0 0 6px rgba(76,175,80,0.4);
}

.list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; padding: 1.5rem;
}
.card {
  background: white; border-radius: 10px;
  padding: 1rem; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
.card img { 
  max-width: 100%; height: auto; border-radius: 6px; margin-bottom: 0.5rem; 
  cursor: pointer; transition: transform 0.3s ease;
}
.card img:hover { transform: scale(1.05); }
.card h3 { margin: 0.5rem 0; font-size: 1.3rem; color: #2e7d32; text-transform: capitalize; }
.weights { font-size: 0.9rem; color: #555; }

/* Spinner */
.spinner { display: none; text-align: center; padding: 2rem; }
.spinner div {
  width: 40px; height: 40px;
  border: 4px solid #4CAF50;
  border-top: 4px solid transparent;
  border-radius: 50%;
  margin: auto;
  animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Popup */
.popup {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,0.7);
  justify-content: center; align-items: center; z-index: 200;
  animation: fadeIn 0.3s ease;
}
.popup img {
  max-width: 90%; max-height: 80%; border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes zoomIn { from {transform:scale(0.8);} to {transform:scale(1);} }

/* WhatsApp Floating Button */
.whatsapp {
  position: fixed; bottom: 20px; right: 20px;
  background: #25D366; border-radius: 50%;
  width: 60px; height: 60px;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: pointer; transition: transform 0.3s ease;
  z-index: 300;
}
.whatsapp img {
  width: 35px; height: 35px;
}
.whatsapp:hover { transform: scale(1.1); }

/* Mobile adjustments */
@media (max-width: 600px) {
  header { padding: 0.8rem; }
  header h1 { font-size: 1.2rem; }
  .controls { flex-direction: column; }
}
