/* ============================================
   LP BAGS LAVÔ — Design System (E-commerce UX)
   Tema: Lavô (Roxo, Verde-Limão e Branco)
   Vendido por: UAU PROMO
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---- RESET & VARIÁVEIS ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Cores Lavô */
  --lavo-purple: #463b86;
  --lavo-purple-light: #5f52a8;
  --lavo-purple-dark: #322864;
  
  --lavo-green: #bfd730;
  --lavo-green-hover: #a8be27;
  
  --lavo-blue: #00b4d8;
  --lavo-blue-light: #caf0f8;

  /* Grays */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* UI Colors */
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --white: #ffffff;

  --font: 'Outfit', sans-serif;
  --transition: all .3s ease;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(70, 59, 134, .08);
  --shadow-lg: 0 12px 30px rgba(70, 59, 134, .12);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); border: none; }

/* Formulários */
input, select, textarea {
  font-family: var(--font);
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  width: 100%;
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-800);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--lavo-purple);
  box-shadow: 0 0 0 4px rgba(70, 59, 134, .1);
}
textarea { resize: vertical; min-height: 80px; }
select { 
  appearance: none; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23463b86' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); 
  background-repeat: no-repeat; 
  background-position: right 16px center; 
  padding-right: 40px; 
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- HEADER ---- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky; top: 0; z-index: 100;
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 48px; }
.sold-by { font-size: 0.75rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: flex; flex-direction: column; line-height: 1.2; }
.sold-by strong { color: var(--lavo-purple); font-size: 0.85rem; }

.header-cta {
  background: var(--lavo-green); 
  color: var(--lavo-purple-dark);
  padding: 12px 28px; 
  border-radius: 50px; 
  font-weight: 700; 
  font-size: 0.95rem;
  transition: var(--transition); 
  box-shadow: 0 4px 10px rgba(191, 215, 48, 0.3);
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(191, 215, 48, 0.4); background: var(--lavo-green-hover); }

/* ---- HERO ---- */
.hero {
  background: var(--lavo-purple);
  background-image: radial-gradient(circle at top right, var(--lavo-purple-light), transparent 50%),
                    radial-gradient(circle at bottom left, #292054, transparent 50%);
  color: var(--white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-content {
  flex: 1;
  text-align: left;
}
.hero-image-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 4px solid rgba(255,255,255,0.1);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}
.hero-img:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lavo-green); color: var(--lavo-purple-dark);
  font-weight: 700; padding: 14px 32px; border-radius: 50px;
  text-decoration: none; font-size: 1.1rem; transition: var(--transition);
  box-shadow: 0 10px 20px rgba(191, 215, 48, 0.2);
}
.btn-primary:hover {
  background: var(--lavo-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(191, 215, 48, 0.4);
}
@media (max-width: 900px) {
  .hero-container { flex-direction: column; text-align: center; gap: 40px; }
  .hero-content { text-align: center; }
  .hero-image-wrap { justify-content: center; }
  .hero-img { transform: none; }
  .hero-img:hover { transform: none; }
  .hero-actions { justify-content: center; }
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 40px;
  background: var(--gray-50);
  border-radius: 40px 40px 0 0;
}
.hero-badge {
  display: inline-block; 
  background: rgba(255,255,255,0.15); 
  backdrop-filter: blur(8px);
  padding: 8px 20px; 
  border-radius: 50px; 
  font-size: 0.9rem; 
  font-weight: 600;
  margin-bottom: 24px; 
  color: var(--lavo-green);
  border: 1px solid rgba(191,215,48,0.3);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; margin-bottom: 20px; line-height: 1.1; letter-spacing: -1px; }
.hero h1 span { color: var(--lavo-green); }
.hero p { font-size: 1.2rem; opacity: 0.9; max-width: 650px; margin: 0 auto 40px; font-weight: 300; }

/* ---- STEPPER (E-commerce UX) ---- */
.checkout-stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto 60px;
  max-width: 800px;
  position: relative;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  flex: 1;
}
.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-300);
  color: var(--gray-400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  transition: var(--transition);
}
.step.active .step-number {
  background: var(--lavo-purple);
  border-color: var(--lavo-purple);
  color: var(--lavo-green);
  box-shadow: 0 0 0 6px rgba(70,59,134,0.1);
}
.step.completed .step-number {
  background: var(--lavo-green);
  border-color: var(--lavo-green);
  color: var(--lavo-purple-dark);
}
.step-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-400);
}
.step.active .step-label { color: var(--lavo-purple); }
.step.completed .step-label { color: var(--gray-800); }

.stepper-line {
  position: absolute;
  top: 20px; left: 15%; right: 15%;
  height: 2px;
  background: var(--gray-200);
  z-index: 1;
}
.stepper-progress {
  height: 100%;
  background: var(--lavo-purple);
  width: 0%; /* Alterado via JS */
  transition: width 0.5s ease;
}

/* ---- PRODUTOS (Vitrine) ---- */
.products-section { 
  padding: 80px 0; 
  background: #f4f5f8; 
}
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; color: var(--lavo-purple); margin-bottom: 12px; }
.section-header p { color: var(--gray-500); font-size: 1.1rem; }

.products-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 30px; 
  max-width: 900px; 
  margin: 0 auto; 
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card.selected { 
  border-color: var(--lavo-purple); 
  box-shadow: 0 10px 30px rgba(70,59,134,0.15);
}

.product-img-wrap {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 6px 14px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
}
.product-badge.pronta { background: var(--lavo-green); color: var(--lavo-purple-dark); }
.product-badge.prevenda { background: var(--lavo-purple); color: var(--lavo-green); }

.shipping-badge {
  position: absolute; top: 46px; left: 12px;
  background: var(--white);
  color: var(--lavo-purple-dark);
  padding: 4px 10px; border-radius: 50px;
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-info { padding: 24px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }

.price-block { margin-bottom: 20px; }

.price-discount {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -4px;
}
.old-price {
  font-size: 1rem;
  color: var(--gray-400);
  text-decoration: line-through;
  font-weight: 600;
}
.discount-badge {
  background: #16a34a; /* A strong green to pop */
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price { font-size: 2rem; font-weight: 800; color: var(--lavo-purple); display: flex; align-items: baseline; gap: 4px; margin-bottom: 20px; }
.price small { font-size: 1rem; color: var(--gray-500); font-weight: 500; }

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-features li {
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.4;
}
.product-features li .icon {
  margin-right: 8px;
  font-size: 1rem;
  opacity: 0.8;
}
.product-features li strong {
  color: var(--gray-800);
  margin-right: 4px;
}

.buy-card-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--lavo-green);
  color: var(--lavo-purple-dark);
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
  transition: var(--transition);
  margin-top: auto;
  border: none;
  cursor: pointer;
}
.product-card:hover .buy-card-btn {
  background: var(--lavo-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(191, 215, 48, 0.4);
}
.product-card.selected .buy-card-btn {
  background: var(--lavo-purple);
  color: var(--lavo-green);
  box-shadow: 0 6px 15px rgba(70, 59, 134, 0.3);
}
.product-card.selected .buy-card-btn::after {
  content: ' ✓';
}


/* Stock badges */
.stock-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; }
.stock-badge.stock-ok { background: #dcfce7; color: #166534; }
.stock-badge.stock-low { background: #fef3c7; color: #92400e; }
.stock-badge.stock-out { background: #fee2e2; color: #991b1b; }
.stock-badge.stock-info { background: var(--lavo-blue-light); color: var(--lavo-purple); }

.product-rules {
  background: var(--gray-50); padding: 12px; border-radius: var(--radius-sm);
  font-size: 0.8rem; color: var(--gray-600); margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.product-rules strong { color: var(--gray-800); }

.select-btn {
  width: 100%; padding: 16px; border-radius: var(--radius-md);
  background: var(--gray-100); color: var(--gray-700);
  font-weight: 700; font-size: 1.05rem;
  transition: var(--transition);
}
.product-card:hover .select-btn { background: var(--gray-200); }
.product-card.selected .select-btn {
  background: var(--lavo-purple); color: var(--lavo-green);
}
.product-card.selected .select-btn::after { content: 'Selecionado ✓'; }
.product-card:not(.selected) .select-btn::after { content: 'Selecionar'; }

/* Out of stock card */
.product-card.out-of-stock { opacity: 0.6; pointer-events: none; }
.sold-out-overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-10deg);
  background: var(--danger); color: var(--white);
  padding: 10px 30px; font-size: 1.5rem; font-weight: 800; border-radius: 8px;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3); z-index: 10;
}

/* ---- CONFIGURAÇÃO DO PEDIDO (Calculadora + Pagamento) ---- */
.config-section {
  padding: 60px 0;
  background: var(--white);
  display: none; /* Revelado via JS */
}
.config-section.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.config-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 40px;
  align-items: start;
}

.config-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.config-panel h3 { font-size: 1.5rem; color: var(--lavo-purple); margin-bottom: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.config-panel h3 span { background: var(--lavo-purple); color: var(--white); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }

/* Quantidade */
.qty-selector {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px;
}
.qty-selector label { font-weight: 700; color: var(--gray-800); }
.qty-controls {
  display: flex; align-items: center;
  background: var(--gray-50); border: 2px solid var(--gray-200);
  border-radius: var(--radius-md); overflow: hidden;
  height: 56px;
}
.qty-btn {
  width: 60px; height: 100%; background: transparent;
  color: var(--lavo-purple); font-size: 1.5rem; font-weight: 400;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--gray-200); }
.qty-input {
  flex: 1; height: 100%; border: none; background: transparent;
  text-align: center; font-size: 1.3rem; font-weight: 800; color: var(--lavo-purple);
  -moz-appearance: textfield; padding: 0;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-rules-text { font-size: 0.85rem; color: var(--gray-500); }

/* Pagamento */
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.payment-option {
  border: 2px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 20px 16px; text-align: center; cursor: pointer;
  transition: var(--transition); position: relative;
}
.payment-option:hover { border-color: var(--gray-300); }
.payment-option.selected { 
  border-color: var(--lavo-purple); 
  background: rgba(70,59,134,0.03);
}
.payment-option.selected::before {
  content: '✓'; position: absolute; top: 10px; right: 10px;
  background: var(--lavo-purple); color: var(--white);
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: bold;
}
.payment-option .icon { font-size: 1.8rem; margin-bottom: 8px; }
.payment-option .name { font-weight: 700; font-size: 1rem; color: var(--gray-800); }
.payment-option .desc { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; }

/* Resumo Sidebar */
.summary-card {
  background: var(--lavo-purple);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky; top: 100px;
  box-shadow: var(--shadow-lg);
}
.summary-card h4 { font-size: 1.3rem; font-weight: 800; margin-bottom: 24px; color: var(--lavo-green); }

.summary-item { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 0.95rem; }
.summary-item .label { opacity: 0.8; }
.summary-item .val { font-weight: 700; text-align: right; }
.summary-item.product-name .val { font-size: 1.1rem; color: var(--lavo-green); }

.summary-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 24px 0; }

/* Voucher Lavô Games */
.voucher-box { margin-top: 24px; padding: 16px; border-radius: var(--radius-md); background: rgba(255,255,255,0.08); }
.voucher-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.voucher-form { display: grid; gap: 8px; }
.voucher-form input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25); background: var(--white); color: var(--lavo-purple-dark);
  font-family: var(--font); font-size: 1rem;
}
.voucher-form input:focus { outline: 2px solid var(--lavo-green); outline-offset: 1px; }
.voucher-apply {
  padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--lavo-green);
  background: transparent; color: var(--lavo-green); font-weight: 800; font-size: 1rem;
  transition: var(--transition);
}
.voucher-apply:hover:not(:disabled) { background: var(--lavo-green); color: var(--lavo-purple-dark); }
.voucher-apply:disabled { opacity: 0.6; cursor: wait; }
.voucher-ok { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--lavo-green); font-weight: 700; }
.voucher-ok[hidden], .voucher-discount[hidden], .voucher-form[hidden] { display: none; }
.voucher-remove { background: none; color: var(--white); opacity: 0.8; text-decoration: underline; font-size: 0.85rem; }
.voucher-discount .val { color: var(--lavo-green); }
.voucher-discount { margin-top: 16px; margin-bottom: 0; }

.summary-total { display: flex; justify-content: space-between; align-items: center; }
.summary-total .label { font-size: 1.1rem; font-weight: 600; }
.summary-total .val { font-size: 2.2rem; font-weight: 800; color: var(--lavo-green); }

/* Aviso de frete */
.freight-note {
  margin: 0 0 24px; padding: 14px 16px; border-radius: var(--radius-md);
  background: #fffbeb; border-left: 4px solid var(--warning);
  color: var(--gray-700); font-size: 0.95rem; line-height: 1.5;
}
.freight-note strong { display: block; color: var(--gray-900); }
.freight-note--dark {
  margin: 20px 0 0; background: rgba(255,255,255,0.1);
  border-left-color: var(--lavo-green); color: var(--white); font-size: 0.9rem;
}
.freight-note--dark strong { color: var(--lavo-green); }

.continue-btn {
  width: 100%; padding: 18px; border-radius: var(--radius-md);
  background: var(--lavo-green); color: var(--lavo-purple-dark);
  font-size: 1.15rem; font-weight: 800; 
  transition: var(--transition); margin-top: 32px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.continue-btn:hover { background: var(--lavo-green-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(191,215,48,0.3); }

/* ---- FORMULÁRIO (Checkout) ---- */
.checkout-section {
  padding: 60px 0 100px;
  background: var(--gray-50);
  display: none;
}
.checkout-section.active { display: block; animation: fadeIn 0.5s ease; }

.form-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-title { font-size: 1.8rem; color: var(--lavo-purple); font-weight: 800; margin-bottom: 30px; text-align: center; }

.form-divider {
  margin: 40px 0 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
  font-size: 1.2rem; font-weight: 800; color: var(--gray-800);
  display: flex; align-items: center; gap: 10px;
}
.form-divider > span:first-child { flex-shrink: 0; background: var(--lavo-purple); color: var(--white); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; color: var(--gray-700); }
.form-group label .required { color: var(--danger); }

/* Botão Submit Final */
.submit-btn {
  width: 100%; padding: 20px; border-radius: var(--radius-md);
  background: var(--lavo-purple); color: var(--lavo-green);
  font-size: 1.2rem; font-weight: 800; letter-spacing: 0.5px;
  transition: var(--transition); margin-top: 40px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 2px solid var(--lavo-purple);
}
.submit-btn:hover:not(:disabled) { background: var(--lavo-purple-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.submit-btn .spinner {
  width: 24px; height: 24px; border: 3px solid rgba(191,215,48,0.3);
  border-top-color: var(--lavo-green); border-radius: 50%;
  animation: spin 0.8s linear infinite; display: none;
}
.submit-btn.loading .spinner { display: block; }
.submit-btn.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.safe-checkout {
  text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--gray-500);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500;
}
.safe-checkout svg { width: 16px; height: 16px; fill: var(--success); }

/* ---- BOTÃO VOLTAR ---- */
.back-btn {
  background: none; color: var(--gray-500); font-weight: 600; font-size: 1rem;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  transition: var(--transition);
}
.back-btn:hover { color: var(--lavo-purple); }

/* ---- FAQ ---- */
.faq { padding: 80px 0; background: var(--white); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
  width: 100%; padding: 24px 0; text-align: left; font-weight: 700; font-size: 1.1rem;
  background: none; display: flex; justify-content: space-between; align-items: center;
  color: var(--lavo-purple); transition: var(--transition);
}
.faq-question:hover { color: var(--lavo-purple-dark); }
.faq-question .arrow { transition: transform .3s; font-size: 1.2rem; color: var(--lavo-green); }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { padding: 0 0 24px; color: var(--gray-600); font-size: 1rem; line-height: 1.7; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ---- FOOTER ---- */
.footer {
  background: var(--lavo-purple-dark); color: rgba(255,255,255,0.7); 
  padding: 60px 0 30px; text-align: center;
}
.footer .brand-imgs { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; align-items: center;}
.footer .brand-imgs img { height: 40px; filter: grayscale(1) brightness(2); opacity: 0.8; }
.footer p { font-size: 0.9rem; margin-bottom: 8px; }
.footer strong { color: var(--white); }
.footer .whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 15px;
  transition: var(--transition);
  text-decoration: none;
}
.footer .whatsapp-btn:hover {
  background: #25d366; /* Official WhatsApp green */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  color: var(--white);
}
.footer .whatsapp-btn svg {
  fill: currentColor;
}
.footer .copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; }

/* ---- TOAST ---- */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--white); border-radius: var(--radius-md); padding: 16px 20px;
  box-shadow: var(--shadow-lg); min-width: 300px; max-width: 400px;
  display: flex; align-items: flex-start; gap: 12px;
  animation: slideUp .3s ease-out;
  border-left: 4px solid var(--lavo-purple);
}
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--success); }
.toast-message { flex: 1; font-size: 0.95rem; font-weight: 500; color: var(--gray-800); }
.toast-close { background: none; font-size: 1.2rem; color: var(--gray-400); padding: 0; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---- LOADING ---- */
.page-loader {
  position: fixed; inset: 0; background: var(--lavo-purple); z-index: 10000;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px;
}
.page-loader .loader-spinner {
  width: 60px; height: 60px; border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--lavo-green); border-radius: 50%; animation: spin .8s linear infinite;
}

/* ---- RESPONSIVO ---- */
@media (max-width: 900px) {
  .config-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; margin-top: 30px; }
}
@media (max-width: 768px) {
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 2.2rem; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: 1fr; }
  .stepper-line { left: 10%; right: 10%; }
  .step-label { font-size: 0.8rem; }
  .form-panel, .config-panel, .summary-card { padding: 24px; }
}

.hidden { display: none !important; }

/* ---- SUCESSO & ERRO ---- */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.success-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--success);
}
.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1;
}
.success-box h1 {
  font-size: 2.5rem;
  color: var(--lavo-purple);
  margin-bottom: 16px;
  font-weight: 800;
}
.success-box p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 30px;
  line-height: 1.6;
}
.success-details {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
  text-align: left;
}
.success-details .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
  border-bottom: 1px dashed var(--gray-200);
  padding-bottom: 12px;
}
.success-details .row:last-child {
  margin-bottom: 0; border-bottom: none; padding-bottom: 0;
}
.success-details .label {
  color: var(--gray-500);
  font-weight: 600;
}
.success-details .val {
  color: var(--gray-900);
  font-weight: 800;
}
.action-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  gap: 8px;
}
.action-btn.primary {
  background: var(--lavo-purple);
  color: var(--lavo-green);
}
.action-btn.primary:hover {
  background: var(--lavo-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(70,59,134,0.3);
}
.action-btn.whatsapp {
  background: var(--success);
  color: var(--white);
}
.action-btn.whatsapp:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}
@media (max-width: 480px) {
  .success-box { padding: 30px 20px; }
  .success-box h1 { font-size: 2rem; }
  .action-buttons { flex-direction: column; }
  .action-btn { width: 100%; }
}

/* ---- FRETE (Pronta Entrega) ---- */
.frete-box { margin: 8px 0 24px; }
.frete-intro { margin: 0 0 12px; color: var(--gray-700); font-size: 0.95rem; line-height: 1.5; }
.frete-intro strong { color: var(--gray-900); }
.frete-status { margin-bottom: 12px; color: var(--gray-500); font-size: 0.9rem; }
.frete-opcoes { display: grid; gap: 10px; }
.frete-opcao {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-md);
  background: var(--white); cursor: pointer; transition: var(--transition);
}
.frete-opcao:hover { border-color: var(--lavo-purple-light); }
.frete-opcao.selected { border-color: var(--lavo-purple); background: #f6f4ff; box-shadow: var(--shadow-md); }
.frete-opcao input { width: 18px; height: 18px; accent-color: var(--lavo-purple); margin: 0; }
.frete-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.frete-info strong { color: var(--gray-900); font-size: 1rem; }
.frete-info small { color: var(--gray-500); font-size: 0.82rem; line-height: 1.4; }
.frete-preco { font-weight: 800; color: var(--lavo-purple-dark); white-space: nowrap; }
.frete-resumo {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--gray-50); border-left: 4px solid var(--lavo-green);
  color: var(--gray-700); font-size: 0.9rem; line-height: 1.6;
}
@media (max-width: 480px) {
  .frete-opcao { grid-template-columns: auto 1fr; }
  .frete-preco { grid-column: 2; }
}

/* ---- FRETE NA PÁGINA DE SUCESSO ---- */
.frete-pix {
  margin: 20px 0; padding: 18px; border-radius: var(--radius-md); text-align: left;
  background: #fffbeb; border-left: 4px solid var(--warning);
}
.frete-pix h2 { margin: 0 0 8px; font-size: 1.15rem; color: var(--gray-900); }
.frete-pix p { margin: 0; color: var(--gray-700); font-size: 0.95rem; line-height: 1.5; }
.frete-pix-chave {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--white);
}
.frete-pix-chave button {
  padding: 8px 14px; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  background: var(--lavo-purple); color: var(--white); font-weight: 700;
}
