/* ==========================================================================
   AUTHNOW / INDUFAR - DESIGN SYSTEM & MAIN STYLES (PIXEL-PERFECT)
   Arquivo: css/main.css (Com Suporte ao Card de Lote e Validade da Caixa)
   ========================================================================== */

/* 1. VARIÁVEIS OFICIAIS */
:root {
  --color-indufar-brown: #4A1B12;
  --color-indufar-brown-dark: #33120B;
  --color-indufar-gold: #B88D34;
  --color-indufar-gold-btn: #BA9524;
  --color-indufar-gold-dark: #8C7326;
  --color-indufar-teal-bullet: #00A896;

  --color-authentic-green: #0A873D;
  --color-invalid-red: #D92D20;

  --color-authnow-blue: #4F46E5;
  --color-authnow-purple: #7C3AED;
  --color-authnow-gradient: linear-gradient(135deg, #4A56E2 0%, #7E42F5 100%);

  --color-bg-body: #F4F5F7;
  --color-bg-card: #FFFFFF;
  --color-border: #E5E7EB;
  --color-text-main: #111827;
  --color-text-muted: #4B5563;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.18s ease-in-out;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  line-height: 1.45;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container SPA Mobile-First */
.page-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #FFFFFF;
  position: relative;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.05);
}

.page-container.hide {
  display: none !important;
}

.spa-view {
  display: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.spa-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 2. CABEÇALHO DA TELA INICIAL */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 8px;
  border-bottom: 1px solid #F1F3F5;
}

.main-header.hide {
  display: none !important;
}

.icon-btn-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #1F2937;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.icon-btn-box:active {
  background-color: #F9FAFB;
}

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-brand-logo {
  max-height: 42px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.header-product-subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  margin-top: 4px;
  letter-spacing: -0.2px;
}

.lang-selector-box {
  height: 38px;
  padding: 0 10px 0 12px;
  border-radius: 2px;
  background-color: #FFFFFF;
  border: 1.5px solid #1F2937;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
}

/* 3. BANNER DE STATUS AUTÊNTICO */
.auth-status-card {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #F3F4F6;
  gap: 14px;
}

.status-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shield-badge.authentic {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-badge.invalid {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #DC2626;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.status-info {
  flex: 1;
}

.status-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-authentic-green);
  line-height: 1.15;
  letter-spacing: 0.2px;
}

.status-text.invalid-text {
  color: var(--color-invalid-red);
}

.status-code-label {
  font-size: 1.15rem;
  color: #111827;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-top: 2px;
}

.status-arrow-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #111827;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   NOVO: CARD DE VALIDAÇÃO DA CAIXA (LOTE, VALIDADE E VINCULAÇÃO)
   ========================================================================== */
.box-spec-card {
  margin: 12px 18px 0;
  background: #FFFBEB;
  border: 1.5px solid #F59E0B;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
  animation: fadeInSlide 0.35s ease-out;
}

.box-spec-card.hide {
  display: none !important;
}

.box-spec-header {
  background: #FEF3C7;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #92400E;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #FDE68A;
}

.box-spec-grid {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.box-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.box-spec-item.full-width {
  grid-column: 1 / -1;
  border-top: 1px dashed #FDE68A;
  padding-top: 8px;
}

.box-spec-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #78350F;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.box-spec-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1E293B;
}

.box-spec-val.highlight-gold {
  color: #B45309;
}

.box-spec-val.code-font {
  font-family: monospace;
  color: #047857;
  background: #ECFDF5;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  font-size: 0.88rem;
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 4. APRESENTAÇÃO CENTRAL DO PRODUTO */
.product-presentation {
  padding: 20px 20px 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.product-image-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

.product-box-img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.12));
}

.verification-note {
  font-size: 0.88rem;
  color: #1F2937;
  line-height: 1.45;
  margin-bottom: 8px;
  font-weight: 400;
}

.product-dose-tag {
  font-size: 0.88rem;
  color: #6B7280;
  font-weight: 500;
  margin-bottom: 26px;
}

/* Dois Botões Redondos Dourados */
.action-buttons-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 75px;
  margin: 10px 0 10px;
}

.round-gold-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--color-indufar-gold-btn);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(186, 149, 36, 0.38);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.round-gold-btn:active {
  transform: scale(0.92);
  opacity: 0.9;
}

/* 5. TELA DO VADEMÉCUM */
.vademecum-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
}

.vademecum-nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0 10px;
}

.vademecum-header-logo {
  max-height: 48px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.vademecum-products-bar {
  padding: 14px 20px 8px;
  background-color: #FFFFFF;
}

.btn-dropdown-products {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-indufar-gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.vademecum-catalog-drawer {
  background-color: #FFFFFF;
  border-bottom: 2px solid var(--color-border);
  padding: 10px 18px 24px;
  animation: slideDown 0.3s ease-out;
}

.vademecum-catalog-drawer.hide {
  display: none;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.catalog-tabs-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.catalog-tab {
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1F2937;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-nuevo {
  background-color: #4A1B12;
  color: #FFFFFF;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
}

.catalog-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-indufar-brown);
  margin-bottom: 16px;
}

.therapeutic-classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.therapy-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.therapy-card:active {
  transform: scale(0.96);
  border-color: var(--color-indufar-gold);
}

.therapy-icon {
  font-size: 1.8rem;
  color: #7BB3B5;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.therapy-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-indufar-gold-dark);
  line-height: 1.2;
}

.catalog-search-box {
  position: relative;
  width: 100%;
}

.catalog-search-input {
  width: 100%;
  padding: 12px 40px 12px 18px;
  border-radius: var(--radius-full);
  border: 1px solid #CBD5E1;
  background-color: #F8FAFC;
  font-size: 0.95rem;
  outline: none;
}

.catalog-search-box i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #1E293B;
  font-size: 1.1rem;
}

/* Ficha Técnica */
.vademecum-card-box {
  background-color: #FFFFFF;
  padding: 24px 20px;
}

.vademecum-img-wrapper {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #F1F3F5;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vademecum-preview-img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
}

.vademecum-product-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-indufar-gold);
  line-height: 1.3;
  margin-bottom: 22px;
}

.brand-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.divider-logo-img {
  max-height: 28px;
  width: auto;
}

.spec-group {
  margin-bottom: 20px;
}

.spec-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 4px;
}

.spec-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.bullet-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-indufar-teal-bullet);
  display: inline-block;
}

.btn-more-info {
  width: 100%;
  background-color: var(--color-indufar-brown);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  margin-top: 24px;
  box-shadow: 0 4px 10px rgba(74, 27, 18, 0.25);
}

/* Bloco Verde Institucional */
.interest-section {
  background-color: #FFFFFF;
}

.interest-title {
  padding: 16px 20px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1F2937;
}

.green-promo-card {
  background-color: #1EA941;
  color: #FFFFFF;
  padding: 24px 24px 36px;
  text-align: center;
}

.drag-handle-bar {
  width: 44px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  margin: 0 auto 30px;
}

.promo-item {
  margin-bottom: 34px;
}

.promo-item:last-child {
  margin-bottom: 0;
}

.promo-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.promo-item-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.promo-item-desc {
  font-size: 0.85rem;
  opacity: 0.95;
  font-weight: 400;
  max-width: 280px;
  margin: 0 auto;
}

/* Rodapé & Certificações */
.company-footer {
  padding: 40px 20px 24px;
  text-align: left;
  background-color: #FFFFFF;
}

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.footer-custom-logo {
  max-height: 44px;
  width: auto;
}

.footer-info-block {
  margin-bottom: 20px;
}

.footer-info-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-indufar-brown);
  margin-bottom: 4px;
}

.footer-info-text {
  font-size: 0.88rem;
  color: #4B5563;
  line-height: 1.4;
}

.footer-info-text i {
  color: var(--color-indufar-brown);
  margin-right: 6px;
}

.certifications-badge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #B91C1C;
  padding: 12px 14px;
  margin: 32px 0 24px;
  background-color: #FFFFFF;
}

.cert-item.cert-ias {
  background-color: #0E5A3B;
  color: #FFFFFF;
  padding: 8px 10px;
  text-align: center;
  border-radius: 2px;
}

.cert-item.cert-ias .cert-top {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}

.cert-item.cert-ias .cert-sub {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.cert-item.cert-ias .cert-small {
  font-size: 0.45rem;
  line-height: 1.1;
  margin-top: 2px;
}

.cert-vertical-bar {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.65rem;
  font-weight: 800;
  color: #991B1B;
  padding: 0 4px;
  letter-spacing: 0.5px;
}

.cert-item.cert-staregister {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.star-shape-art {
  font-size: 2.2rem;
  color: #B91C1C;
}

.staregister-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 900;
  font-style: italic;
  color: #991B1B;
  letter-spacing: -0.5px;
}

.copyright-line {
  font-size: 0.78rem;
  color: #374151;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
}

.social-links-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.social-links-bar a {
  color: var(--color-indufar-brown);
  font-size: 1.15rem;
  text-decoration: none;
}

/* 6. SUBPÁGINAS (LEGAL & LICENSES) */
.subpage-nav {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.back-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #1F2937;
  cursor: pointer;
}

.subpage-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  padding-right: 44px;
}

.legal-links-list {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.legal-action-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  text-decoration: underline;
  cursor: pointer;
}

.licenses-document-content {
  padding: 20px;
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.6;
}

.lic-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.lic-sub-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin: 18px 0 6px;
}