* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  padding: 40px 16px 80px;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Logo */
.logo-wrapper {
  width: 130px;
  height: 130px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #f0c0d8;
  background: #fff0f6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(233, 30, 140, 0.15);
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Título */
.title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  color: #c2185b;
  letter-spacing: 0.03em;
}

/* Descrição */
.description {
  font-size: 0.95rem;
  text-align: center;
  color: #444;
  line-height: 1.7;
  max-width: 500px;
}

.description strong {
  color: #c2185b;
}


/* Painéis */
.panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Input */
.input-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 4px 12px 4px 16px;
  gap: 8px;
  transition: border-color 0.2s;
}

.input-wrapper:focus-within {
  border-color: #e91e8c;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #1a1a1a;
  font-size: 0.95rem;
  padding: 12px 0;
}

.input-wrapper input::placeholder {
  color: #aaa;
}

.btn-paste {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
}

.btn-paste:hover {
  color: #e91e8c;
  background: #fff0f6;
}

/* Botão gerar */
.btn-generate {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff6f00 0%, #ff8f00 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(255, 111, 0, 0.35);
}

.btn-generate:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-generate:active {
  transform: translateY(0);
}

.btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Resultado */
.result-box {
  background: #fff8f0;
  border: 2px solid #ff8f00;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-label {
  font-size: 0.85rem;
  color: #888;
  font-weight: 600;
}

.result-link-row {
  display: flex;
  gap: 10px;
}

.result-link-row input {
  flex: 1;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #c2185b;
  padding: 10px 12px;
  font-size: 0.85rem;
  outline: none;
}

.btn-copy {
  background: #e91e8c;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-copy:hover {
  opacity: 0.85;
}

.result-tip {
  font-size: 0.85rem;
  color: #2e7d32;
  font-weight: 600;
}

/* Botão Promoções */
.btn-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(90deg, #e91e8c, #ff4081);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 4px 16px rgba(233, 30, 140, 0.3);
}

.btn-vip:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Histórico */
.recent-section {
  width: 100%;
  margin-top: 8px;
}

.recent-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #1a1a1a;
  letter-spacing: 0.04em;
}

#recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loading-text {
  color: #aaa;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px 0;
}

/* Card de produto */
.product-card {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: #e91e8c;
  box-shadow: 0 2px 10px rgba(233, 30, 140, 0.1);
}

.product-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.product-card .img-placeholder {
  width: 64px;
  height: 64px;
  background: #fff0f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-info .prod-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-info .prod-price {
  font-size: 0.85rem;
  color: #e91e8c;
  margin-top: 4px;
  font-weight: 700;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.btn-view, .btn-copy-small {
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}

.btn-view {
  background: #e91e8c;
  color: #fff;
}

.btn-copy-small {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
}

.btn-view:hover, .btn-copy-small:hover {
  opacity: 0.85;
}

/* Responsivo */
@media (max-width: 480px) {
  .title {
    font-size: 1.25rem;
  }

  .btn-vip {
    font-size: 0.78rem;
    padding: 14px 20px;
  }

  .product-actions {
    flex-direction: row;
  }
}
