#wine-chat {
  max-width: 100%;
  border: 1px solid #ddd;
  padding: 10px;
  font-family: sans-serif;
}

#wine-messages {
  height: 500px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.wine-user {
  text-align: right;
  margin: 6px 0;
  font-weight: 600;
}

.wine-bot {
  text-align: left;
  margin: 6px 0;
  color: #444;
}

.wine-input {
  display: flex;
  gap: 6px;
}

.wine-input input {
  flex: 1;
  padding: 6px;
}

.wine-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: italic;
  color: #6b7280;
  margin-top: 10px;
}

.wine-loading.hidden {
  display: none;
}

/* typing dots */
.dots span {
  width: 6px;
  height: 6px;
  background: #8b0000;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.4s infinite ease-in-out both;
}

.dots span:nth-child(1) { animation-delay: -0.32s; }
.dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}


.wine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.wine-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform .15s ease;
}

.wine-card:hover {
  transform: translateY(-2px);
}

.wine-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.wine-info {
  padding: 12px;
}

.wine-name {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  color: #111;
  text-decoration: none;
}

.wine-price {
  font-size: 0.9rem;
  color: #8b0000;
  margin-bottom: 6px;
}

.wine-desc {
  font-size: 0.85rem;
  color: #555;
}