.alfaguide {
  --alfa-primary: #50a742;
  --alfa-bg: #f7faf7;
  --alfa-card: #ffffff;
  --alfa-ink: #132016;
  --alfa-muted: #637064;
  --alfa-border: rgba(19, 32, 22, .10);
  margin: 32px 0;
  color: var(--alfa-ink);
}

.alfaguide * { box-sizing: border-box; }

.alfaguide-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--alfa-border);
  border-radius: 26px;
  background: radial-gradient(circle at 10% 0%, rgba(80,167,66,.13), transparent 30%), var(--alfa-card);
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  overflow: hidden;
}

.alfaguide-avatar-wrap {
  position: sticky;
  top: 20px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: var(--alfa-bg);
  border: 1px solid var(--alfa-border);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}

.alfaguide-avatar {
  font-size: 42px;
  line-height: 1;
  animation: alfaFloat 4.5s ease-in-out infinite;
  transform-origin: center;
}

.alfaguide-hand {
  position: absolute;
  right: -8px;
  top: 11px;
  font-size: 22px;
  transform-origin: 20% 80%;
  animation: alfaWave 1.55s ease-in-out infinite;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.14));
}

.alfaguide-kicker {
  margin: 0 0 4px;
  color: var(--alfa-primary);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.alfaguide h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

.alfaguide-intro {
  max-width: 760px;
  color: var(--alfa-muted);
  font-size: 17px;
  margin: 0 0 18px;
}

.alfaguide-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.alfaguide button,
.alfaguide-product a {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--alfa-primary);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.alfaguide-suggestions button {
  background: rgba(80,167,66,.12);
  color: var(--alfa-ink);
}

.alfaguide button:hover,
.alfaguide-product a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(80,167,66,.20);
}

.alfaguide-chat {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding: 6px 4px 10px;
  margin-bottom: 12px;
}

.alfaguide-msg {
  max-width: 92%;
  padding: 13px 15px;
  border-radius: 18px;
  background: var(--alfa-bg);
  border: 1px solid var(--alfa-border);
}

.alfaguide-msg-user {
  justify-self: end;
  background: var(--alfa-primary);
  color: #fff;
  border-color: transparent;
}

.alfaguide-msg-bot.alfaguide-loading {
  opacity: .72;
  font-style: italic;
}

.alfaguide-form,
.alfaguide-lead-form {
  display: grid;
  gap: 10px;
}

.alfaguide-form {
  grid-template-columns: 1fr auto;
}

.alfaguide input,
.alfaguide textarea {
  width: 100%;
  border: 1px solid var(--alfa-border);
  border-radius: 18px;
  padding: 13px 15px;
  font: inherit;
  color: var(--alfa-ink);
  background: #fff;
}

.alfaguide textarea { resize: vertical; }

.alfaguide-lead-form {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed rgba(80,167,66,.45);
  border-radius: 20px;
  background: rgba(80,167,66,.06);
}

.alfaguide-lead-form[hidden] { display: none; }

.alfaguide-products {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.alfaguide-product {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--alfa-border);
  border-radius: 18px;
  background: #fff;
}

.alfaguide-product img,
.alfaguide-product-placeholder {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--alfa-bg);
  display: grid;
  place-items: center;
  font-size: 30px;
}

.alfaguide-product h3 {
  font-size: 16px;
  margin: 0 0 2px;
}

.alfaguide-product small {
  display: block;
  color: var(--alfa-primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.alfaguide-product p {
  margin: 4px 0 8px;
  color: var(--alfa-muted);
  font-size: 14px;
}

.alfaguide-attrs {
  font-size: 13px !important;
  color: #405046 !important;
}

.alfaguide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.alfaguide-price,
.alfaguide-stock {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(19,32,22,.06);
  color: var(--alfa-ink);
  font-size: 13px;
  font-weight: 700;
}

.alfaguide-note {
  margin: 12px 0 0;
  color: var(--alfa-muted);
  font-size: 13px;
}

@keyframes alfaFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-2deg); }
}

@keyframes alfaWave {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  20% { transform: rotate(18deg) translateY(-1px); }
  40% { transform: rotate(-8deg) translateY(1px); }
  60% { transform: rotate(16deg) translateY(-1px); }
  80% { transform: rotate(-3deg) translateY(0); }
}

@media (max-width: 700px) {
  .alfaguide-card { grid-template-columns: 1fr; padding: 20px; }
  .alfaguide-avatar-wrap { position: relative; top: auto; }
  .alfaguide-form { grid-template-columns: 1fr; }
  .alfaguide-product { grid-template-columns: 1fr; }
}
