/* Landing Page Styles - Saúde Chinesa Menopausa 
   Inspirado no visual simplificado de alta conversão da Stan.store e adaptado para a MTC */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300..900;1,300..900&family=Montserrat:wght@100..900&display=swap');

:root {
  --card: #f8f5f0;
  --ring: #2e7d32;
  --input: #e0d6c9;
  --muted: #f0e9e0;
  --accent: #c8e6c9;
  --border: #e0d6c9;
  --radius: 0.5rem;
  --chart-1: #4caf50;
  --chart-2: #388e3c;
  --chart-3: #2e7d32;
  --chart-4: #1b5e20;
  --chart-5: #0a1f0c;
  --popover: #f8f5f0;
  --primary: #2e7d32;
  --sidebar: #f0e9e0;
  --font-mono: Source Code Pro, monospace;
  --font-sans: Montserrat, sans-serif;
  --secondary: #e8f5e9;
  --background: #f8f5f0;
  --font-serif: Merriweather, serif;
  --foreground: #3e2723;
  --destructive: #c62828;
  --sidebar-ring: #2e7d32;
  --sidebar-accent: #c8e6c9;
  --sidebar-border: #e0d6c9;
  --card-foreground: #3e2723;
  --sidebar-primary: #2e7d32;
  --muted-foreground: #6d4c41;
  --accent-foreground: #1b5e20;
  --popover-foreground: #3e2723;
  --primary-foreground: #ffffff;
  --sidebar-foreground: #3e2723;
  --secondary-foreground: #1b5e20;
  --destructive-foreground: #ffffff;
  --sidebar-accent-foreground: #1b5e20;
  --sidebar-primary-foreground: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
  --card: #2d3a2e;
  --ring: #4caf50;
  --input: #3e4a3d;
  --muted: #2d3a2e;
  --accent: #388e3c;
  --border: #3e4a3d;
  --radius: 0.5rem;
  --chart-1: #81c784;
  --chart-2: #66bb6a;
  --chart-3: #4caf50;
  --chart-4: #43a047;
  --chart-5: #388e3c;
  --popover: #2d3a2e;
  --primary: #4caf50;
  --sidebar: #1c2a1f;
  --secondary: #3e4a3d;
  --background: #1c2a1f;
  --foreground: #f0ebe5;
  --destructive: #c62828;
  --sidebar-ring: #4caf50;
  --sidebar-accent: #388e3c;
  --sidebar-border: #3e4a3d;
  --card-foreground: #f0ebe5;
  --sidebar-primary: #4caf50;
  --muted-foreground: #d7cfc4;
  --accent-foreground: #f0ebe5;
  --popover-foreground: #f0ebe5;
  --primary-foreground: #0a1f0c;
  --sidebar-foreground: #f0ebe5;
  --secondary-foreground: #d7e0d6;
  --destructive-foreground: #f0ebe5;
  --sidebar-accent-foreground: #f0ebe5;
  --sidebar-primary-foreground: #0a1f0c;
}

@theme inline {
  --color-card: var(--card);
  --color-ring: var(--ring);
  --color-input: var(--input);
  --color-muted: var(--muted);
  --color-accent: var(--accent);
  --color-border: var(--border);
  --color-radius: var(--radius);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-popover: var(--popover);
  --color-primary: var(--primary);
  --color-sidebar: var(--sidebar);
  --color-font-mono: var(--font-mono);
  --color-font-sans: var(--font-sans);
  --color-secondary: var(--secondary);
  --color-background: var(--background);
  --color-font-serif: var(--font-serif);
  --color-foreground: var(--foreground);
  --color-destructive: var(--destructive);
  --color-sidebar-ring: var(--sidebar-ring);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-border: var(--sidebar-border);
  --color-card-foreground: var(--card-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent-foreground: var(--accent-foreground);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary-foreground: var(--primary-foreground);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 10px;
}

.wrapper {
  width: 100%;
  max-width: 480px; /* Largura padrão de landing pages mobile Stan.store */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  body {
    align-items: flex-start;
    padding: 40px 20px;
  }
  .wrapper {
    max-width: 960px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
    align-items: start;
  }
  .profile-card {
    position: sticky;
    top: 40px;
    padding: 30px 20px;
  }
  .avatar-container {
    width: 120px;
    height: 120px;
    border-width: 4px;
  }
  .profile-name {
    font-size: 1.4rem;
  }
  .profile-bio {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .product-card, .checkout-card {
    padding: 30px 20px;
  }
  .product-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .product-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .bullet-item {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .price-promo {
    font-size: 1.6rem;
  }
  .price-original {
    font-size: 1.1rem;
  }
  .checkout-card h3 {
    font-size: 1.4rem;
  }
  .form-control {
    font-size: 0.95rem;
    padding: 12px 14px;
  }
  .btn-purchase {
    font-size: 1.1rem;
    padding: 16px;
  }
}

@media (min-width: 1024px) {
  body {
    padding: 60px 30px;
  }
  .wrapper {
    max-width: 1140px;
    grid-template-columns: 1fr 1.35fr;
    gap: 40px;
  }
  .profile-card {
    top: 60px;
    padding: 40px 30px;
  }
  .avatar-container {
    width: 140px;
    height: 140px;
  }
  .profile-name {
    font-size: 1.65rem;
  }
  .profile-bio {
    font-size: 1.05rem;
  }
  .product-card, .checkout-card {
    padding: 40px 30px;
  }
  .product-title {
    font-size: 2.1rem;
  }
  .product-description {
    font-size: 1.05rem;
  }
  .bullet-item {
    font-size: 1rem;
  }
  .price-promo {
    font-size: 1.8rem;
  }
  .price-original {
    font-size: 1.15rem;
  }
  .checkout-card h3 {
    font-size: 1.6rem;
  }
  .form-control {
    font-size: 1rem;
    padding: 12px 14px;
  }
  .btn-purchase {
    font-size: 1.15rem;
    padding: 16px;
  }
}

@media (min-width: 1280px) {
  body {
    padding: 80px 50px;
  }
  .wrapper {
    max-width: 1280px;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
  }
  .profile-card {
    top: 80px;
    padding: 48px 36px;
  }
  .avatar-container {
    width: 160px;
    height: 160px;
    border-width: 5px;
  }
  .profile-name {
    font-size: 1.9rem;
  }
  .profile-bio {
    font-size: 1.15rem;
    line-height: 1.6;
  }
  .product-card, .checkout-card {
    padding: 48px 36px;
  }
  .product-title {
    font-size: 2.4rem;
    line-height: 1.25;
  }
  .product-description {
    font-size: 1.15rem;
    line-height: 1.6;
  }
  .bullet-item {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  .price-promo {
    font-size: 2.1rem;
  }
  .price-original {
    font-size: 1.3rem;
  }
  .checkout-card h3 {
    font-size: 1.8rem;
  }
  .form-control {
    font-size: 1.05rem;
    padding: 14px 16px;
  }
  .btn-purchase {
    font-size: 1.25rem;
    padding: 18px 22px;
  }
}

/* =============================================================================
   1. CUBERTURA DO PERFIL (Profile Header)
   ============================================================================= */

.profile-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatar-container {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  background-color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
}
.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.profile-bio {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.4;
  max-width: 90%;
}

/* =============================================================================
   2. DETALHES DO PRODUTO (Product Info)
   ============================================================================= */

.product-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cover-image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 4px double var(--accent);
  padding: 6px;
  background-color: var(--card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.product-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
}

.price-original {
  text-decoration: line-through;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.price-promo {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.4rem;
}

.product-description {
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.bullet-icon {
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.star-callout {
  background-color: var(--muted);
  border-left: 4px solid var(--accent);
  padding: 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--foreground);
}

/* =============================================================================
   3. FORMULÁRIO DE CHECKOUT (Inline Checkout)
   ============================================================================= */

.checkout-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted-foreground);
}

.form-control {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  background-color: var(--input);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--foreground);
  outline: none;
  transition: var(--transition);
}

.form-control::placeholder {
  color: #a09e95;
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--card);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-control:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  cursor: pointer;
}

.checkbox-group input {
  margin-top: 3px;
}

.checkbox-group input:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.form-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Checkout integrations handled via external redirect */

/* =============================================================================
   4. BOTÃO DE COMPRA & ELEMENTOS DE SEGURANÇA
   ============================================================================= */

.btn-purchase {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--card);
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(47, 79, 79, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-purchase:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

@media (hover: hover) {
  .btn-purchase:hover {
    background-color: #1f3737;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(47, 79, 79, 0.35);
  }
}

.btn-purchase:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(47, 79, 79, 0.15);
}

.purchase-total {
  font-size: 0.95rem;
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
  color: var(--muted-foreground);
}

.purchase-total span {
  color: var(--primary);
  font-size: 1.15rem;
}

/* Selos e Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.badge-item {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-item svg {
  width: 14px;
  height: 14px;
  fill: var(--muted-foreground);
}

.recaptcha-text {
  font-size: 0.65rem;
  color: var(--muted-foreground);
  text-align: center;
  line-height: 1.3;
  margin-top: 8px;
}

.recaptcha-text a {
  color: var(--muted-foreground);
  text-decoration: underline;
}

/* =============================================================================
   5. ANIMAÇÃO DE LOADING E POPUP DE SUCESSO
   ============================================================================= */

.loader-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(248, 245, 240, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    border-color: var(--border);
    border-top-color: var(--primary);
  }
  .success-popup {
    animation: none;
  }
}

.success-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  background-color: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  animation: popupShow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupShow {
  from { transform: translate(-50%, -40%) scale(0.8); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.success-icon {
  width: 60px;
  height: 60px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  font-size: 2rem;
  font-weight: bold;
}
