:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  --secondary: #ec4899;
  --secondary-hover: #db2777;
  --accent-amber: #f59e0b;
  --amazon-orange: #ff9900;
  --amazon-hover: #e68a00;
  --ml-yellow: #ffe600;
  --ml-text: #2d3277;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #f8fafc;
  color: var(--slate-800);
  line-height: 1.6;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
}

.brand-logo .brand-icon {
  font-size: 1.5rem;
}

.brand-tag {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Hero */
.hero {
  text-align: center;
  padding: 36px 0 24px;
}

.hero h1 {
  font-size: 2.3rem;
  color: var(--slate-900);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero h1 span {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--slate-600);
  max-width: 620px;
  margin: 0 auto;
}

/* Questionnaire Box */
.finder-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.step-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 10px;
}

.form-section {
  margin-bottom: 24px;
}

/* Grid Selections */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.option-btn {
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.option-btn:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
}

.option-btn.selected {
  background: #eef2ff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.option-btn .opt-icon {
  font-size: 1.3rem;
}

/* Interest Multi-tag Pills */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  background: var(--slate-50);
  border: 1px solid var(--slate-300);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.tag-pill:hover {
  border-color: var(--primary);
}

.tag-pill.selected {
  background: #fdf2f8;
  border-color: var(--secondary);
  color: var(--secondary);
}

/* Textarea / Details */
.custom-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--slate-900);
  background: var(--slate-50);
  transition: all 0.2s;
}

.custom-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Submit Action Button */
.btn-generate {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-generate:hover {
  opacity: 0.95;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

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

/* Results Section */
.results-section {
  display: none;
  margin-top: 20px;
}

.results-header {
  text-align: center;
  margin-bottom: 28px;
}

.results-header h2 {
  font-size: 1.8rem;
  color: var(--slate-900);
  font-weight: 800;
}

.results-header p {
  color: var(--slate-600);
  font-size: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.gift-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.gift-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -4px rgba(99, 102, 241, 0.15);
  border-color: #a5b4fc;
}

/* Container da Imagem do Card */
.gift-card-media {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f1f5f9;
}

.gift-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gift-card:hover .gift-card-media img {
  transform: scale(1.05);
}

.gift-badge-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gift-badge-price {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(22, 163, 74, 0.95);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Conteúdo interno do Card */
.gift-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gift-card-body h3 {
  font-size: 1.15rem;
  color: var(--slate-900);
  margin-bottom: 8px;
  font-weight: 800;
  line-height: 1.35;
}

.gift-ai-tag {
  font-size: 0.72rem;
  color: #6366f1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
}

.gift-reason-box {
  background: #f8fafc;
  border-left: 3px solid var(--primary);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.86rem;
  color: var(--slate-600);
  margin-bottom: 16px;
  line-height: 1.45;
  margin-top: auto;
}

/* Área de Ações e Botões */
.gift-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 18px 18px;
}

/* Botão Dominante Hero: Amazon Oficial */
.btn-amazon-primary {
  background: linear-gradient(180deg, #ffa41c 0%, #ff8f00 100%);
  color: #0f1111;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 14px;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 5px rgba(213, 142, 7, 0.4);
  transition: all 0.2s ease;
  border: 1px solid #d58e07;
}

.btn-amazon-primary:hover {
  background: linear-gradient(180deg, #ffb03a 0%, #fa8900 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(213, 142, 7, 0.5);
}

.btn-prime-pill {
  background: #002f36;
  color: #00a8e1;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Linha Secundária: Mercado Livre + WhatsApp */
.gift-secondary-row {
  display: flex;
  gap: 8px;
}

.btn-ml-secondary {
  flex: 1;
  background: #fff;
  color: #333;
  border: 1.5px solid #ffe600;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-ml-secondary:hover {
  background: #fffde6;
  border-color: #ffd100;
}

.btn-whatsapp-share {
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-whatsapp-share:hover {
  background: #20ba59;
}

/* Reset / Recalculate */
.recalculate-bar {
  text-align: center;
  margin: 30px 0;
}

.btn-secondary {
  background: var(--white);
  border: 1.5px solid var(--slate-300);
  color: var(--slate-700);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

/* ============================================================
   SEÇÃO DE KITS PRONTOS & MAIS DESEJADOS
   ============================================================ */
.featured-kits-section {
  margin: 50px 0 40px;
  padding: 40px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.kits-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
}

.kits-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ede9fe;
  color: #6366f1;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.kits-section-header h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--slate-900);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.kits-section-header p {
  color: var(--slate-600);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Filtros da Seção de Kits */
.kits-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.kit-filter-btn {
  background: var(--white);
  border: 1.5px solid var(--slate-300);
  color: var(--slate-700);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kit-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.kit-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Grid de Kits */
.kits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 26px;
}

.kit-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -5px rgba(99, 102, 241, 0.18);
  border-color: #a5b4fc;
}

.kit-card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #0f172a;
}

.kit-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.kit-card:hover .kit-card-media img {
  transform: scale(1.06);
}

.kit-tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.kit-price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(22, 163, 74, 0.95);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.kit-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kit-card-content h3 {
  font-size: 1.22rem;
  color: var(--slate-900);
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.35;
}

.kit-tagline {
  color: #6366f1;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.kit-items-list {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.kit-items-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--slate-500);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.kit-items-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.kit-items-list li {
  font-size: 0.85rem;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

.kit-items-list li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 900;
  font-size: 0.9rem;
}

.kit-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

/* Footer */
footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 36px 0 20px;
  font-size: 0.88rem;
  margin-top: 50px;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 12px;
  text-align: center;
}

/* Sub-itens clicáveis dentro dos kits */
.kit-item-link {
  color: var(--slate-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all 0.2s ease;
  font-weight: 500;
}

.kit-item-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.kit-item-link::after {
  content: "↗";
  font-size: 0.72rem;
  color: var(--primary);
  opacity: 0.6;
  margin-left: 4px;
}

.gift-secondary-row .btn-whatsapp-share {
  flex: 1;
  justify-content: center;
}
