/* =============================================
   APP.CSS — Estilos globais compartilhados
   Feira do Alterosa PWA
============================================= */

/* Importado em todas as páginas do /app */

/* Utilitários */
.text-center  { text-align: center; }
.text-muted   { color: #7F8C8D; }
.mt-8         { margin-top: 8px; }
.mt-16        { margin-top: 16px; }
.mb-16        { margin-bottom: 16px; }
.hidden       { display: none !important; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.w-full       { width: 100%; }

/* Botões padrão */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  text-decoration: none;
}

.btn:active    { transform: scale(.97); }
.btn:disabled  { opacity: .6; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, #2ECC71, #27AE60);
  color: white;
  box-shadow: 0 4px 16px rgba(46,204,113,.3);
}

.btn-primary:hover { box-shadow: 0 6px 20px rgba(46,204,113,.45); }

.btn-outline {
  background: transparent;
  color: #27AE60;
  border: 2px solid #2ECC71;
}

.btn-accent {
  background: linear-gradient(135deg, #F39C12, #E67E22);
  color: white;
}

.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Chips / Tags */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: #e8f8f0;
  color: #27AE60;
}

.chip-accent { background: #fef9e7; color: #E67E22; }
.chip-muted  { background: #f0f0f0; color: #7F8C8D; }

/* Loading spinner */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: #2ECC71;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 24px auto;
}

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

/* Divider */
.divider {
  border: none;
  border-top: 1px solid #E8ECEF;
  margin: 16px 0;
}

/* Scroll snap horizontal */
.scroll-x {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 12px;
  padding-bottom: 4px;
}
.scroll-x::-webkit-scrollbar { display: none; }
