/* === design-tokens.css === */
/* ============================================
   FARINHA DO RIBA — Design Tokens
   Paleta terrosa inspirada no Maranhão e na mandioca
   ============================================ */

:root {
  /* === CORES PRIMÁRIAS === */
  --color-primary: #C8962E;           /* Dourado farinha — cor da farinha torrada */
  --color-primary-dark: #A67A1E;      /* Dourado escuro — hover */
  --color-primary-light: #E8BF6A;     /* Dourado claro — destaques suaves */
  --color-primary-50: rgba(200, 150, 46, 0.08);
  --color-primary-100: rgba(200, 150, 46, 0.15);

  /* === CORES SECUNDÁRIAS === */
  --color-secondary: #2D6B3F;         /* Verde-escuro — folhagem de mandioca */
  --color-secondary-dark: #1E4D2C;    /* Verde profundo — hover */
  --color-secondary-light: #4A9E64;   /* Verde médio — badges */

  /* === ACCENT === */
  --color-accent: #C75B39;            /* Terracota — terra do Maranhão */
  --color-accent-dark: #A14528;       /* Terracota escuro — hover */
  --color-accent-light: #E8845F;      /* Terracota claro */

  /* === CTA (Chamada para Ação) === */
  --color-cta: #D4451A;               /* Laranja-vermelho vibrante — botão de compra */
  --color-cta-hover: #B83815;
  --color-cta-active: #9C2F12;

  /* === NEUTROS === */
  --color-bg-primary: #FFFDF7;        /* Fundo principal — creme suave */
  --color-bg-secondary: #FFF8EE;      /* Fundo alternado — creme mais quente */
  --color-bg-tertiary: #F5EDDF;       /* Fundo cards/seções */
  --color-bg-card: #FFFFFF;           /* Fundo sólido de cards e modais */
  --color-bg-dark: #1A1207;           /* Fundo escuro — footer */
  --color-surface: #FFFFFF;           /* Cards, modais */
  --color-surface-elevated: #FFFFFF;

  --color-text-primary: #2C1A05;      /* Texto principal — marrom escuro */
  --color-text-secondary: #5C4A32;    /* Texto secundário */
  --color-text-tertiary: #8B7355;     /* Texto auxiliar */
  --color-text-inverse: #FFFDF7;      /* Texto sobre fundo escuro */
  --color-text-muted: #A69478;        /* Texto discreto */

  --color-border: #E6DCC8;            /* Bordas suaves */
  --color-border-light: #F0EAD6;
  --color-border-dark: #C8B99A;

  /* === ESTADOS === */
  --color-success: #2D8B4E;           /* Sucesso — verde */
  --color-success-light: #E8F5E9;
  --color-warning: #E8A317;           /* Aviso — amarelo */
  --color-warning-light: #FFF8E1;
  --color-error: #C62828;             /* Erro — vermelho */
  --color-error-light: #FFEBEE;
  --color-info: #1565C0;              /* Info — azul */
  --color-info-light: #E3F2FD;

  /* === FRETE GRÁTIS / SELOS === */
  --color-frete-gratis: #2D8B4E;
  --color-selo-produtor: #8B6914;
  --color-estrela: #F5A623;
  --color-pix: #32BCAD;
  --color-pix-dark: #269E91;

  /* === TIPOGRAFIA === */
  --font-heading: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Escala tipográfica (fluid) */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg: clamp(1.05rem, 0.95rem + 0.5vw, 1.175rem);
  --text-xl: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.8rem, 1.4rem + 2vw, 2.5rem);
  --text-4xl: clamp(2.2rem, 1.6rem + 3vw, 3.25rem);
  --text-5xl: clamp(2.8rem, 2rem + 4vw, 4.5rem);

  /* Pesos tipográficos */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* === ESPAÇAMENTO === */
  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* === BORDAS === */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* === SOMBRAS === */
  --shadow-xs: 0 1px 2px rgba(44, 26, 5, 0.04);
  --shadow-sm: 0 2px 4px rgba(44, 26, 5, 0.06);
  --shadow-md: 0 4px 12px rgba(44, 26, 5, 0.08);
  --shadow-lg: 0 8px 24px rgba(44, 26, 5, 0.1);
  --shadow-xl: 0 12px 40px rgba(44, 26, 5, 0.14);
  --shadow-2xl: 0 20px 60px rgba(44, 26, 5, 0.18);
  --shadow-inner: inset 0 2px 4px rgba(44, 26, 5, 0.05);

  /* Sombras coloridas para hover */
  --shadow-cta: 0 6px 20px rgba(212, 69, 26, 0.35);
  --shadow-cta-hover: 0 8px 28px rgba(212, 69, 26, 0.45);
  --shadow-primary: 0 4px 16px rgba(200, 150, 46, 0.25);
  --shadow-success: 0 4px 12px rgba(45, 139, 78, 0.2);

  /* === TRANSIÇÕES === */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* === Z-INDEX === */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-cookie-banner: 500;
  --z-whatsapp: 600;
  --z-toast: 700;

  /* === LAYOUT === */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1440px;

  --header-height: 64px;
  --header-height-scrolled: 56px;
  --footer-height: auto;
  --sticky-cta-height: 72px;
}

/* === DARK MODE (automático) === */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-primary: #0F0B05;
    --color-bg-secondary: #1A1207;
    --color-bg-tertiary: #251C0F;
    --color-bg-dark: #0A0703;
    --color-surface: #1E1710;
    --color-surface-elevated: #2A2015;

    --color-text-primary: #F5EDD8;
    --color-text-secondary: #D4C4A8;
    --color-text-tertiary: #A69478;
    --color-text-muted: #7A6B52;

    --color-border: #3A2E1E;
    --color-border-light: #2E2315;
    --color-border-dark: #4A3D2A;

    --color-primary-50: rgba(200, 150, 46, 0.12);
    --color-primary-100: rgba(200, 150, 46, 0.2);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-2xl: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  }
}


/* === base.css === */
/* ============================================
   FARINHA DO RIBA — Base Styles
   Reset, Typography, Layout, Global Elements
   ============================================ */

/* === CSS RESET (Modern) === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

img, picture, video, canvas, svg, table, pre, code, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Ocultar selo flutuante do reCAPTCHA v3 (evita quebrar layout mobile e conflitar com WhatsApp) */
.grecaptcha-badge {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: fixed !important;
  left: 0 !important;
  bottom: 0 !important;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
  max-width: 72ch;
}

/* === TYPOGRAPHY === */
h1 { font-size: var(--text-4xl); font-weight: var(--font-extrabold); }
h2 { font-size: var(--text-3xl); font-weight: var(--font-bold); }
h3 { font-size: var(--text-2xl); font-weight: var(--font-semibold); }
h4 { font-size: var(--text-xl);  font-weight: var(--font-semibold); }
h5 { font-size: var(--text-lg);  font-weight: var(--font-medium); }
h6 { font-size: var(--text-base); font-weight: var(--font-medium); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

.font-light { font-weight: var(--font-light); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-accent { color: var(--color-accent); }
.text-primary-color { color: var(--color-primary); }
.text-success { color: var(--color-success); }

.uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

.container-narrow {
  max-width: var(--container-md);
}

.container-wide {
  max-width: var(--container-2xl);
}

/* === GRID SYSTEM === */
.grid {
  display: grid;
  gap: var(--space-6);
  width: 100%;
  max-width: 100%;
}

.grid > * {
  min-width: 0;
  max-width: 100%;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* === FLEX UTILITIES === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* === SECTIONS === */
.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section-sm {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.section-lg {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.section-alt {
  background-color: var(--color-bg-secondary);
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

/* === DIVIDERS === */
.divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-8) 0;
}

.divider-decorative {
  border: none;
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
  margin: var(--space-4) 0;
}

/* === HEADER / NAVIGATION === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
  background: rgba(255, 253, 247, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--color-border-light);
}

.header.scrolled {
  height: var(--header-height-scrolled);
  box-shadow: var(--shadow-md);
  background: rgba(255, 253, 247, 0.95);
}

@media (prefers-color-scheme: dark) {
  .header {
    background: rgba(15, 11, 5, 0.85);
    border-bottom-color: var(--color-border);
  }
  .header.scrolled {
    background: rgba(15, 11, 5, 0.95);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: var(--font-extrabold);
  font-size: var(--text-xl);
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--color-primary);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text-marca {
  color: var(--color-primary-dark);
}

.logo-text-sub {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-regular);
  color: var(--color-text-tertiary);
  letter-spacing: var(--tracking-wide);
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-2) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: var(--color-primary-dark);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-primary);
  padding: var(--space-6);
  z-index: var(--z-dropdown);
  overflow-y: auto;
}

.nav-mobile.active {
  display: block;
  animation: slideDown 300ms ease;
}

.nav-mobile a {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border-light);
  transition: color var(--transition-fast);
}

.nav-mobile a:hover {
  color: var(--color-primary);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === MAIN CONTENT (offset for fixed header) === */
.main-content {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* === BREADCRUMBS === */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.breadcrumbs a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs .separator {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.breadcrumbs .current {
  color: var(--color-text-primary);
  font-weight: var(--font-medium);
}

/* === SKIP TO CONTENT (Accessibility) === */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: white;
  padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 0;
}

/* === SELECTION === */
::selection {
  background: var(--color-primary-100);
  color: var(--color-text-primary);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* === FOCUS STYLES (Accessibility) === */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* === VISUALLY HIDDEN (Accessibility) === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* === components.css === */
/* ============================================
   FARINHA DO RIBA — Components
   Buttons, Cards, Badges, Selos, Trust Icons
   ============================================ */

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1.25;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: normal;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

/* CTA — Botão de compra principal */
.btn-cta {
  background: linear-gradient(135deg, var(--color-cta) 0%, #E85D35 100%);
  color: white;
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-cta);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.btn-cta:hover {
  background: linear-gradient(135deg, var(--color-cta-hover) 0%, #D04A25 100%);
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-2px);
}

.btn-cta:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
  background: var(--color-cta-active);
}

/* Primary */
.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 150, 46, 0.35);
}

/* Secondary */
.btn-secondary {
  background: var(--color-secondary);
  color: white;
}

.btn-secondary:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-1px);
}

/* Outline */
.btn-outline {
  background: transparent;
  border-color: var(--color-border-dark);
  color: var(--color-text-primary);
}

.btn-outline:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* Pix Button */
.btn-pix {
  background: linear-gradient(135deg, var(--color-pix) 0%, #2AA89C 100%);
  color: white;
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
}

.btn-pix:hover {
  background: linear-gradient(135deg, var(--color-pix-dark) 0%, #1E8C82 100%);
  transform: translateY(-1px);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
}

/* Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

@media (max-width: 767px) {
  .btn-lg {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    width: 100%;
  }
}

.btn-block {
  width: 100%;
}

/* Icon in button */
.btn svg, .btn .icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

/* === PRODUCT CARD === */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-tertiary);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: var(--space-5);
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.product-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.product-card-price .price-main {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  color: var(--color-secondary-dark);
}

.product-card-price .price-prefix {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  font-weight: var(--font-regular);
}

.product-card-price .price-per-kg {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.badge-primary {
  background: var(--color-primary-100);
  color: var(--color-primary-dark);
}

.badge-success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.badge-warning {
  background: var(--color-warning-light);
  color: #8B6914;
}

.badge-accent {
  background: rgba(199, 91, 57, 0.1);
  color: var(--color-accent);
}

.badge-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

/* === SELO DE FRETE GRÁTIS === */
.selo-frete-gratis {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--color-success) 0%, #3DA85E 100%);
  color: white;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.selo-frete-gratis svg {
  width: 14px;
  height: 14px;
}

/* === SELO DIRETO DO PRODUTOR === */
.selo-produtor {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, #F5EDD8, #E8D9B8);
  color: var(--color-selo-produtor);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  border: 1px solid rgba(139, 105, 20, 0.15);
}

/* === ESTRELAS DE AVALIAÇÃO === */
.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.rating-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--color-estrela);
  font-size: var(--text-lg);
}

.rating-stars .star-empty {
  color: var(--color-border);
}

.rating-value {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.rating-count {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* === ÍCONES DE CONFIANÇA === */
.trust-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-4);
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-4);
}

.trust-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-align: center;
}

.trust-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-text-secondary);
}

.trust-icon span {
  max-width: 80px;
  line-height: var(--leading-tight);
}

/* === EMBALAGEM SELECTOR === */
.embalagem-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  width: 100%;
  max-width: 100%;
}

@media (min-width: 600px) {
  .embalagem-selector {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.embalagem-option {
  position: relative;
  cursor: pointer;
}

.embalagem-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.embalagem-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.embalagem-option label:hover {
  border-color: var(--color-primary-light);
  background: var(--color-primary-50);
}

.embalagem-option input:checked + label {
  border-color: var(--color-primary);
  background: var(--color-primary-50);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.embalagem-label {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
}

.embalagem-preco {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-secondary-dark);
  margin-top: var(--space-1);
}

.embalagem-perkg {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* === TAGS / CHIPS === */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* === INTERNAL LINKS SECTION === */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) 0;
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-secondary);
  color: var(--color-primary-dark);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.related-link:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.related-link svg {
  width: 14px;
  height: 14px;
}

/* === GEO ANSWER BLOCK === */
.geo-answer {
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-tertiary));
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  position: relative;
}

.geo-answer::before {
  content: '💡';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-2xl);
  opacity: 0.4;
}

/* === NUTRITIONAL TABLE === */
.nutri-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.nutri-table th {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: var(--font-semibold);
}

.nutri-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.nutri-table tr:nth-child(even) td {
  background: var(--color-bg-secondary);
}

.nutri-table tr:hover td {
  background: var(--color-primary-50);
}

/* === CONTENT BLOCK === */
.content-block {
  max-width: 72ch;
}

.content-block h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.content-block h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.content-block p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

.content-block ul, .content-block ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.content-block ul { list-style-type: disc; }
.content-block ol { list-style-type: decimal; }

.content-block li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

.content-block a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.content-block a:hover {
  color: var(--color-accent);
}

/* === ALERT / NOTICE === */
.notice {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  border: 1px solid;
}

.notice-info {
  background: var(--color-info-light);
  border-color: rgba(21, 101, 192, 0.2);
  color: var(--color-info);
}

.notice-success {
  background: var(--color-success-light);
  border-color: rgba(45, 139, 78, 0.2);
  color: var(--color-success);
}

.notice-warning {
  background: var(--color-warning-light);
  border-color: rgba(232, 163, 23, 0.2);
  color: #7A5A00;
}

/* === CEP INPUT === */
.cep-form {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.cep-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  background: var(--color-surface);
  transition: border-color var(--transition-fast);
}

.cep-input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-50);
}

.cep-input::placeholder {
  color: var(--color-text-muted);
}

/* === FRETE RESULT === */
.frete-result {
  padding: var(--space-4);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  margin-top: var(--space-3);
}

.frete-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
}

.frete-option:last-child {
  border-bottom: none;
}

.frete-option-name {
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.frete-option-prazo {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.frete-option-preco {
  font-weight: var(--font-bold);
  color: var(--color-secondary-dark);
}

.frete-option-preco.gratis {
  color: var(--color-success);
}

/* === LOADING SPINNER === */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

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

/* === TOAST / SNACKBAR === */
.toast {
  position: fixed;
  bottom: calc(var(--sticky-cta-height) + var(--space-4));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  opacity: 0;
  transition: all var(--transition-base);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* === HEADER CART BUTTON === */
.cart-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 69, 26, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(212, 69, 26, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-left: var(--space-2);
}

.cart-nav-btn:hover {
  background: var(--color-primary);
  color: #FFFFFF;
}

.cart-badge-count {
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-nav-btn:hover .cart-badge-count {
  background: #FFFFFF;
  color: var(--color-primary);
}

/* === MINI CARRINHO / BARRA DE CARRINHO FIXA MOBILE === */
#mobile-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #1C1917;
  color: #FFFFFF;
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.35);
  z-index: 1100;
  padding: 10px 14px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 250ms ease;
  transform: translateY(100%);
  opacity: 0;
}

#mobile-cart-bar.visible {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 768px) {
  #mobile-cart-bar {
    display: none !important;
  }
}

body.has-mobile-cart-bar {
  padding-bottom: 85px !important;
}

.mobile-cart-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.mobile-cart-bar-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 19px;
}

.mobile-cart-bar-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #1C1917;
}

.mobile-cart-bar-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-cart-bar-count {
  font-size: 12px;
  color: #D6D3D1;
  font-weight: 500;
  white-space: nowrap;
}

.mobile-cart-bar-total {
  font-size: 16px;
  font-weight: 800;
  color: #F59E0B;
  white-space: nowrap;
}

.mobile-cart-bar-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(212, 69, 26, 0.4);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.mobile-cart-bar-btn:active {
  transform: scale(0.97);
}

/* === CART MODAL (DRAWER / MODAL) === */
.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.cart-modal.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.cart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.cart-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  background: #FFFFFF;
  color: #1C1917;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .cart-modal {
    align-items: center;
    justify-content: center;
  }
  .cart-modal-content {
    border-radius: 16px;
    max-height: 85vh;
    transform: scale(0.95);
    transition: transform 250ms ease;
  }
  .cart-modal.active .cart-modal-content {
    transform: scale(1);
  }
}

.cart-modal.active .cart-modal-content {
  transform: translateY(0);
}

.cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E7E5E4;
  background: #FAFAF9;
}

.cart-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #1C1917;
}

.cart-modal-badge {
  background: var(--color-primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.cart-modal-close {
  font-size: 26px;
  line-height: 1;
  color: #78716C;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}

.cart-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  max-height: 50vh;
}

.cart-empty-state {
  text-align: center;
  padding: 32px 16px;
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.cart-empty-state h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-empty-state p {
  font-size: 14px;
  color: #78716C;
  margin-bottom: 20px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F5F5F4;
}

.cart-item-img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #E7E5E4;
  flex-shrink: 0;
}

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

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: #1C1917;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-variant {
  font-size: 12px;
  color: #78716C;
}

.cart-item-price-unit {
  font-size: 12px;
  color: #A8A29E;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #D6D3D1;
  border-radius: 6px;
  overflow: hidden;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  background: #F5F5F4;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1C1917;
}

.cart-qty-value {
  width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.cart-item-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-secondary-dark);
  min-width: 60px;
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  opacity: 0.6;
}

.cart-item-remove:hover {
  opacity: 1;
}

.cart-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #E7E5E4;
  background: #FAFAF9;
}

.cart-frete-progress {
  margin-bottom: 12px;
  background: #FEF3C7;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #92400E;
}

.cart-frete-bar-track {
  height: 6px;
  background: #FDE68A;
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.cart-frete-bar-fill {
  height: 100%;
  background: #D97706;
  border-radius: 3px;
  transition: width 300ms ease;
}

.cart-frete-achieved {
  margin-bottom: 12px;
  background: #DCFCE7;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #166534;
  text-align: center;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #78716C;
  margin-bottom: 6px;
}

.cart-summary-row.total-row {
  font-size: 18px;
  font-weight: 800;
  color: #1C1917;
  padding-top: 8px;
  border-top: 1px dashed #D6D3D1;
  margin-bottom: 14px;
}

.cart-final-total {
  color: var(--color-primary-dark);
}

.btn-checkout-cart {
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
}

/* Toast */
.cart-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: #1C1917;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  z-index: 2500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: transform 250ms ease, opacity 250ms ease;
  white-space: nowrap;
}

.cart-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* === product-block.css === */
/* ============================================
   FARINHA DO RIBA — Product Purchase Block
   Bloco fixo de compra (presente em todas as landing pages)
   ============================================ */

/* === HERO PRODUCT SECTION === */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  padding: var(--space-8) 0;
  width: 100%;
  max-width: 100%;
}

.product-hero > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .product-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .product-hero {
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
    gap: var(--space-12);
  }
}

/* === IMAGE GALLERY === */
.product-gallery {
  position: relative;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

@media (min-width: 768px) {
  .product-gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
  }
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-light);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.product-gallery-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  opacity: 0.6;
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--color-primary);
  opacity: 1;
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Selos flutuantes sobre a imagem */
.product-gallery-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 2;
}

/* === PRODUCT INFO === */
.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.product-info-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-badge-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.product-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
}

.product-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

/* === RATING ROW === */
.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
}

.product-rating-link {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-rating-link:hover {
  color: var(--color-primary);
}

/* === PRICE SECTION === */
.product-pricing {
  padding: var(--space-5);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.product-price-main {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.product-price-currency {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
}

.product-price-value {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--color-secondary-dark);
  line-height: 1;
}

.product-price-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.product-price-perkg {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.product-price-installments {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.product-price-installments strong {
  color: var(--color-primary-dark);
}

/* Frete grátis destaque */
.product-frete-gratis-banner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-success-light);
  color: var(--color-success);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

/* === CTA SECTION === */
.product-cta-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-cta-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-cta-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: #25D366;
  color: white;
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.product-cta-whatsapp:hover {
  background: #1EBD5B;
  transform: translateY(-1px);
}

.product-cta-whatsapp svg {
  width: 20px;
  height: 20px;
}

/* === TRUST SECTION (below CTA) === */
.product-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

@media (max-width: 480px) {
  .product-trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
}

.product-trust-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.product-trust-item span {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  line-height: var(--leading-tight);
}

/* === CEP / FRETE CALCULATOR === */
.product-frete-calc {
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.product-frete-calc h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
  color: var(--color-text-secondary);
}



/* === PRODUCT DETAILS TABS / SECTIONS === */
.product-details {
  margin-top: var(--space-12);
}

.product-section {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.product-section:last-child {
  border-bottom: none;
}

.product-section-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.product-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* === INTERNAL LINKS CTA BLOCK (end of page) === */
.cta-contextual {
  padding: var(--space-10);
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-tertiary));
  border-radius: var(--radius-xl);
  text-align: center;
  margin: var(--space-12) 0;
  border: 1px solid var(--color-border-light);
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.cta-contextual h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
  overflow-wrap: break-word;
  word-break: break-word;
}

.cta-contextual p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  .cta-contextual {
    padding: var(--space-6) var(--space-4);
    margin: var(--space-8) 0;
    border-radius: var(--radius-lg);
  }

  .cta-contextual h2 {
    font-size: var(--text-lg);
  }

  .cta-contextual p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
  }

  .cta-contextual .btn {
    width: 100%;
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-3);
    white-space: normal;
  }
}


/* === reviews.css === */
/* ============================================
   FARINHA DO RIBA — Customer Reviews (Avaliações Reais)
   Baseado em avaliações verificadas de clientes reais da Shopee
   ============================================ */

.reviews-section {
  padding: var(--space-12) 0;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.reviews-header-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-8);
}

.reviews-badge-source {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(238, 77, 45, 0.1);
  color: #EE4D2D;
  border: 1px solid rgba(238, 77, 45, 0.3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
}

.reviews-score-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-8);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .reviews-score-summary {
    padding: var(--space-3) var(--space-3);
    gap: var(--space-3);
  }
  .score-meta {
    padding-left: var(--space-3);
  }
}

.score-main {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.score-number {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--color-primary-dark);
}

.score-stars {
  color: #F59E0B;
  font-size: var(--text-xl);
  letter-spacing: 2px;
}

.score-meta {
  text-align: left;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-6);
}

.reviews-filters {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  max-width: 100%;
}

.review-filter-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.review-filter-btn:hover,
.review-filter-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  width: 100%;
  max-width: 100%;
}

.reviews-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.review-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.review-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary-100);
}

.review-avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
}

.review-user-info {
  flex: 1;
}

.review-username {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.review-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-success);
  font-size: 11px;
  font-weight: var(--font-bold);
}

.review-meta-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.review-stars {
  color: #F59E0B;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.review-variation-tag {
  display: inline-block;
  background: var(--color-bg-tertiary);
  color: var(--color-text-tertiary);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  font-weight: var(--font-medium);
}

.review-attributes {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.review-attr-pill {
  font-size: 11px;
  background: rgba(217, 119, 6, 0.08);
  color: var(--color-primary-dark);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.review-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex: 1;
}

.review-photos-grid {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
  padding-bottom: var(--space-1);
}

.review-photo-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}

.review-photo-thumb:hover {
  transform: scale(1.08);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.review-seller-reply {
  background: var(--color-bg-secondary);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-3);
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.review-seller-reply-title {
  font-weight: var(--font-semibold);
  color: var(--color-primary-dark);
  margin-bottom: 2px;
}

/* Review Lightbox */
.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.review-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.review-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.review-lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: var(--text-2xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.review-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}


/* === faq.css === */
/* ============================================
   FARINHA DO RIBA — FAQ Accordion
   ============================================ */

.faq-section {
  padding: var(--space-8) 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border-light);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
  gap: var(--space-4);
}

.faq-question:hover {
  color: var(--color-primary-dark);
}

.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-text-tertiary);
  border-bottom: 2px solid var(--color-text-tertiary);
  transform: rotate(45deg);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question::after {
  transform: rotate(-135deg);
}

.faq-item.active .faq-question {
  color: var(--color-primary-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 var(--space-4) var(--space-6) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.faq-answer-content p {
  margin-bottom: var(--space-3);
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}


/* === footer.css === */
/* ============================================
   FARINHA DO RIBA — Footer
   ============================================ */

.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 599px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Footer Brand Column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--color-primary-light);
}

.footer-brand-slogan {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: var(--leading-normal);
  max-width: 300px;
}

.footer-brand-contato {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand-contato a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-brand-contato a:hover {
  color: var(--color-primary-light);
}

.footer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: #25D366;
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  transition: all var(--transition-fast);
  width: fit-content;
}

.footer-whatsapp-btn:hover {
  background: #1EBD5B;
  transform: translateY(-1px);
}

/* Footer Link Columns */
.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-column-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-primary-light);
  margin-bottom: var(--space-2);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-link:hover {
  color: white;
  transform: translateX(4px);
}

/* Footer Payment Icons */
.footer-payment {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.footer-payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-payment-icon img {
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-legal {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  line-height: var(--leading-relaxed);
}

.footer-legal strong {
  color: rgba(255, 255, 255, 0.6);
  font-weight: var(--font-medium);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}


/* === cookie-banner.css === */
/* ============================================
   FARINHA DO RIBA — Cookie Banner (LGPD)
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-cookie-banner);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  padding: var(--space-5) var(--space-4);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--container-xl);
  margin: 0 auto;
}

@media (max-width: 767px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
}

.cookie-banner-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  max-width: 700px;
}

.cookie-banner-text a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  color: var(--color-accent);
}

.cookie-banner-actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cookie-banner-accept {
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: white;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cookie-banner-accept:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* === WHATSAPP FLOATING BUTTON === */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-whatsapp);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* Tooltip no hover */
.whatsapp-float-tooltip {
  position: absolute;
  right: calc(100% + var(--space-3));
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-bg-dark);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  box-shadow: var(--shadow-lg);
}

.whatsapp-float-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid var(--color-bg-dark);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.whatsapp-float:hover .whatsapp-float-tooltip {
  opacity: 1;
}

/* Ajuste quando cookie banner está visível */
@media (max-width: 767px) {
  .whatsapp-float {
    bottom: calc(var(--sticky-cta-height) + var(--space-4));
    right: var(--space-4);
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-float-tooltip {
    display: none;
  }
}


/* === animations.css === */
/* ============================================
   FARINHA DO RIBA — Animations
   Micro-animations for engagement and polish
   ============================================ */

/* === FADE IN ON SCROLL (IntersectionObserver) === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left,
.fade-in-right {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .fade-in-left {
    transform: translateX(-30px);
  }
  .fade-in-left.visible {
    transform: translateX(0);
  }
  .fade-in-right {
    transform: translateX(30px);
  }
  .fade-in-right.visible {
    transform: translateX(0);
  }
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 500ms ease, transform 500ms ease;
}

.fade-in-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for child elements */
.stagger > :nth-child(1) { transition-delay: 0ms; }
.stagger > :nth-child(2) { transition-delay: 80ms; }
.stagger > :nth-child(3) { transition-delay: 160ms; }
.stagger > :nth-child(4) { transition-delay: 240ms; }
.stagger > :nth-child(5) { transition-delay: 320ms; }
.stagger > :nth-child(6) { transition-delay: 400ms; }
.stagger > :nth-child(7) { transition-delay: 480ms; }
.stagger > :nth-child(8) { transition-delay: 560ms; }
.stagger > :nth-child(9) { transition-delay: 640ms; }

/* === HOVER LIFT (Cards) === */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* === PULSE (CTA button attention) === */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: var(--shadow-cta);
  }
  50% {
    box-shadow: 0 6px 30px rgba(212, 69, 26, 0.5);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Pulse ring (WhatsApp button) */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse-ring 2s ease-out infinite;
}

/* === SHIMMER (Loading placeholder) === */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--color-bg-tertiary) 25%,
    var(--color-bg-secondary) 50%,
    var(--color-bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* === SLIDE COUNTER (price change animation) === */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 300ms ease;
}

/* === BADGE APPEAR === */
@keyframes badgeAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.badge-animate {
  animation: badgeAppear 300ms var(--transition-spring);
}

/* === FLOATING (subtle float for hero elements) === */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.float {
  animation: float 4s ease-in-out infinite;
}

/* === HERO GRADIENT SHIFT === */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.gradient-animate {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* === CHECKMARK ANIMATION (after purchase) === */
@keyframes checkDraw {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.check-animate {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkDraw 500ms ease forwards 200ms;
}

/* === COUNTER ANIMATION === */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.count-animate {
  animation: countUp 400ms ease;
}

/* === REDUCE MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in, .fade-in-left, .fade-in-right, .fade-in-scale {
    opacity: 1;
    transform: none;
  }

  .pulse-glow {
    animation: none;
    box-shadow: var(--shadow-cta);
  }

  .pulse-ring::after {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}



/* === CHECKOUT MODAL TRANSPARENTE === */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base, 0.25s ease);
}
.checkout-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.checkout-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 6, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.checkout-modal-content {
  position: relative;
  background-color: #FFFFFF !important;
  background: #FFFFFF !important;
  color: #2C1A05 !important;
  border: 1px solid #E6DCC8;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 520px;
  width: 92%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transform: translateY(20px);
  transition: transform var(--transition-base, 0.25s ease);
  z-index: 1;
}
.checkout-modal.active .checkout-modal-content {
  transform: translateY(0);
}
.checkout-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  line-height: 1;
  color: #8B7355;
  cursor: pointer;
  background: #F5EDDF;
  border: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}
.checkout-modal-close:hover {
  background: #E8845F;
  color: #FFFFFF;
}

.checkout-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.checkout-header {
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F0EAD6;
}

.checkout-summary-price {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  color: #5C4A32;
}

.checkout-summary-price strong {
  font-size: 28px;
  color: #1E4D2C;
  font-weight: 800;
}

/* Tabs */
.checkout-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  background: #F5EDDF;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid #E6DCC8;
}

.checkout-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #5C4A32;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkout-tab-btn:hover {
  color: #2C1A05;
}

.checkout-tab-btn.active {
  background-color: #FFFFFF !important;
  background: #FFFFFF !important;
  color: #A67A1E;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-badge {
  font-size: 11px;
  font-weight: 500;
  color: #8B7355;
}

.checkout-tab-btn.active .tab-badge {
  color: #059669;
  font-weight: 700;
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #4A3B29;
  margin-bottom: 5px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-control {
  width: 100%;
  padding: 11px 13px;
  font-size: 14px;
  background-color: #FAF8F5 !important;
  background: #FAF8F5 !important;
  border: 1.5px solid #D8CBB5 !important;
  border-radius: 8px;
  color: #2C1A05 !important;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.form-control:focus {
  background-color: #FFFFFF !important;
  background: #FFFFFF !important;
  border-color: #C8962E !important;
  box-shadow: 0 0 0 3px rgba(200, 150, 46, 0.2) !important;
}

.card-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.card-input-wrapper input {
  padding-right: 70px;
}

.card-brand-badge {
  position: absolute;
  right: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #A67A1E;
}

/* Pix Result Screen */
.checkout-pix-screen {
  text-align: center;
}

.pix-timer-alert {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #B45309;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  margin-bottom: var(--space-4);
}

.pix-qrcode-container {
  background: white;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  display: inline-block;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

.pix-qrcode-image {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto;
}

.pix-copia-box {
  margin-bottom: var(--space-4);
  text-align: left;
}

.pix-copia-box label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  margin-bottom: 4px;
  display: block;
}

.pix-copy-row {
  display: flex;
  gap: var(--space-2);
}

.pix-copy-row input {
  flex: 1;
  padding: 8px 12px;
  font-size: var(--text-xs);
  font-family: monospace;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
}

.pix-steps {
  text-align: left;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.6;
  background: var(--color-bg-secondary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin: 0;
  list-style: none;
}

.pix-steps li {
  margin-bottom: 4px;
}

/* Success Screen */
.checkout-success-screen {
  text-align: center;
  padding: var(--space-4) 0;
}

.success-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #059669;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin: 0 auto var(--space-3);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.success-details-box {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  text-align: left;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.success-details-box p {
  margin: 2px 0;
}

.checkout-footer-trust {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-light);
  text-align: center;
}

.trust-icons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  font-size: 11px;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.checkout-loading {
  text-align: center;
  padding: var(--space-8);
}
/* === HOMEPAGE === */
.hero-section {
  padding: var(--space-20) 0 var(--space-16);
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-tertiary) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary-50) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: var(--container-md);
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--color-text-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}