/* ================================================================
   PULAPULA FESTAS — DESIGN TOKENS E COMPONENTES COMPARTILHADOS
   Importar em toda página da loja, junto com Bootstrap 5 e
   Bootstrap Icons. Mantém a identidade visual coesa entre as
   telas (catálogo, detalhe do produto, carrinho, etc.).
   ================================================================ */

:root {
  /* cores de marca */
  --brand-blue: #0f4c81;
  --brand-blue-soft: #2c6aa0;
  --brand-blue-bg-1: #eef6ff;
  --brand-blue-bg-2: #d8ebff;
  --brand-orange: #e8491f;
  --brand-orange-light: #f2603a;
  --brand-yellow: #f5a623;
  --brand-dot-1: var(--brand-orange);
  --brand-dot-2: #4fb0e8;
  --brand-dot-3: var(--brand-yellow);

  --whatsapp: #25D366;
  --whatsapp-dark: #1ebe5d;

  --bg-page: #f5f5f5;
  --line: #e9e9e9;

  /* tipografia */
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --fs-xs: .75rem;
  --fs-sm: .82rem;
  --fs-base: .95rem;
  --fs-md: 1.05rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-display: 1.75rem;

  /* forma */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, .06);
}

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  font-size: var(--fs-base);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--brand-blue);
  text-decoration: none;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-dot-1);
  box-shadow: 6px 0 0 var(--brand-dot-2), 12px 0 0 var(--brand-dot-3);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-carrinho {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-blue);
  font-size: var(--fs-lg);
  text-decoration: none;
  flex-shrink: 0;
}

.btn-carrinho:hover {
  background: var(--brand-blue-bg-1);
  color: var(--brand-blue);
}

.btn-carrinho .carrinho-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--brand-orange);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* ============================================
   WHATSAPP — botão único reutilizável
   ============================================ */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--whatsapp);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
  border: none;
  border-radius: var(--radius-pill);
  transition: .2s ease;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, .3);
}

.btn-whatsapp:active {
  transform: translateY(0) scale(.98);
  box-shadow: none;
}

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  background-color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  z-index: 1000;
  text-decoration: none;
  animation: wa-pulse 2.2s infinite;
}

.whatsapp-float i {
  font-size: 1.6rem;
  color: #fff;
  line-height: 1;
}

.whatsapp-float:hover {
  background-color: var(--whatsapp-dark);
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25), 0 0 0 0 rgba(37, 211, 102, .6);
  }
  70% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25), 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 576px) {
  .whatsapp-float {
    right: 14px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }
}

/* ============================================
   BOTÕES DE MARCA (ações primárias fora do WhatsApp)
   ============================================ */
.btn-brand-primary {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.btn-brand-primary:hover {
  background: #c73a15;
  border-color: #c73a15;
  color: #fff;
}

.btn-brand-outline {
  background: #fff;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-brand-outline:hover {
  background: var(--brand-blue-bg-1);
  color: var(--brand-blue);
}

/* ============================================
   BADGES / CHIPS DE MARCA
   ============================================ */
.badge-brand {
  background: var(--brand-blue-bg-1);
  color: var(--brand-blue);
  font-weight: 600;
  font-size: var(--fs-xs);
}
