/**
 * GORDINHO PERSONALIZADOS — DESIGN TOKENS
 * Paleta Oficial da Marca: Verde Floresta Profundo, Amarelo Ouro & Verde Esmeralda
 */

:root {
  /* Brand Core Oficial Grupo Gordinho */
  --color-primary: #FAB818;            /* Amarelo Ouro / Âmbar Oficial */
  --color-primary-hover: #E5A50E;      /* Amarelo Ouro escurecido */
  --color-primary-dark: #C98E05;
  --color-primary-subtle: rgba(250, 184, 24, 0.14);
  --color-primary-border: rgba(250, 184, 24, 0.4);

  /* Secondary Accent — Verde Esmeralda */
  --color-accent: #22C55E;             /* Verde Esmeralda vibrante */
  --color-accent-hover: #16A34A;
  --color-accent-subtle: rgba(34, 197, 94, 0.14);
  --color-accent-border: rgba(34, 197, 94, 0.4);

  /* Backgrounds & Superfícies da Marca */
  --bg-main: #0F3822;                  /* Verde Floresta Profundo */
  --bg-darker: #0A2717;                /* Fundo ultra escuro elegante */
  --bg-deep: #06180E;                  /* Base ultra profunda */
  --bg-surface: #13442A;               /* Superfície dos cards */
  --bg-surface-elevated: #195234;      /* Superfície elevada */
  --bg-glass: rgba(10, 39, 23, 0.88);  /* Glassmorphism verde floresta */

  /* Lado Cliente Final (Verde Esmeralda & Floresta Luminoso) */
  --b2c-accent: #22C55E;
  --b2c-accent-hover: #16A34A;
  --b2c-accent-glow: rgba(34, 197, 94, 0.45);
  --b2c-badge-bg: rgba(34, 197, 94, 0.18);
  --b2c-badge-border: rgba(34, 197, 94, 0.45);
  --b2c-badge-text: #86EFAC;
  --b2c-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.92) 100%);
  --b2c-overlay-hover: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.86) 100%);

  /* Lado Terceirizado (Amarelo Ouro / Âmbar Corporativo) */
  --b2b-accent: #FAB818;
  --b2b-accent-hover: #E5A50E;
  --b2b-accent-glow: rgba(250, 184, 24, 0.45);
  --b2b-badge-bg: rgba(250, 184, 24, 0.18);
  --b2b-badge-border: rgba(250, 184, 24, 0.45);
  --b2b-badge-text: #FDE047;
  --b2b-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.92) 100%);
  --b2b-overlay-hover: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.86) 100%);

  /* Neutros e Tipografia */
  --color-white: #FFFFFF;
  --color-offwhite: #F1F5F9;
  --color-text-secondary: #D2E4D8;
  --color-text-muted: #8FB49C;
  --color-dark: #0A2717;
  --color-dark-glass: rgba(10, 39, 23, 0.88);

  /* Fontes */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transições e Sombras */
  --transition-smooth: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --radius-full: 9999px;
  --radius-xl: 18px;
  --radius-lg: 12px;
}

/* ==========================================================================
   BOTÃO FLUTUANTE GLOBAL DE WHATSAPP ("Solicite seu orçamento no WhatsApp")
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.25rem 0.65rem 0.7rem;
  background: linear-gradient(135deg, #25D366 0%, #16A34A 100%);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none !important;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              right 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              background 0.25s ease;
}

.whatsapp-float-btn:hover {
  background: linear-gradient(135deg, #2CE070 0%, #15803D 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.6), 0 6px 16px rgba(0, 0, 0, 0.35);
  color: #FFFFFF !important;
}

.whatsapp-float-btn:active {
  transform: translateY(-1px) scale(0.99);
}

.whatsapp-float-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.whatsapp-float-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.65);
  animation: whatsappPulseRing 2.2s infinite cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.whatsapp-float-icon svg {
  width: 21px;
  height: 21px;
  fill: #FFFFFF;
  display: block;
}

.whatsapp-float-text {
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes whatsappPulseRing {
  0% {
    transform: scale(0.92);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.32);
    opacity: 0;
  }
  100% {
    transform: scale(1.32);
    opacity: 0;
  }
}

/* Ajuste quando o carrinho lateral do catálogo está aberto */
@media (min-width: 992px) {
  body.cart-split-open .whatsapp-float-btn {
    right: calc(450px + 1.5rem);
  }
}

@media (max-width: 991px) {
  body.cart-split-open .whatsapp-float-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }
}

@media (max-width: 580px) {
  .whatsapp-float-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.55rem 1rem 0.55rem 0.55rem;
    font-size: 0.82rem;
    gap: 0.55rem;
  }

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

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