/* ============================================================
   HUBDRONES - ENHANCEMENTS DE DESIGN & USABILIDADE (FASE 1)
   - Autocomplete ViaCEP com feedback visual
   - Selos de Confiança e Credibilidade (Trust Badges)
   - Melhorias no Box de Pagamento PIX e Timer Regressivo
   - Barra Fixa de Compra no Mobile (Sticky Buy Bar)
   ============================================================ */

/* ------------------------------------------------------------
   1. VIA CEP - FEEDBACK NO CHECKOUT
   ------------------------------------------------------------ */
.hub-cep-feedback {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  margin-top: 5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: all 0.25s ease;
}
.hub-cep-feedback.loading {
  color: #3b82f6;
}
.hub-cep-feedback.success {
  color: #10b981;
  font-weight: 600;
}
.hub-cep-feedback.error {
  color: #ef4444;
}
.hub-cep-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: hubSpin 0.7s linear infinite;
}
@keyframes hubSpin {
  to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------
   2. SELOS DE CONFIANÇA (TRUST BADGES) - PÁGINA DE PRODUTO
   ------------------------------------------------------------ */
.hub-trust-container {
  margin-top: 24px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (max-width: 540px) {
  .hub-trust-container {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
}
.hub-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.hub-trust-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  padding: 6px;
  background: rgba(239, 77, 18, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(239, 77, 18, 0.2);
}
.hub-trust-text {
  display: flex;
  flex-direction: column;
}
.hub-trust-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f0f4f8;
  line-height: 1.25;
}
.hub-trust-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 2px;
}

/* Selos no Checkout */
.hub-checkout-trust {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  font-size: 0.8rem;
  color: #cbd5e1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.hub-checkout-trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* ------------------------------------------------------------
   3. MELHORIAS NO BOX PIX & TIMER REGRESSIVO
   ------------------------------------------------------------ */
.hub-pix-guide {
  margin-top: 14px;
  padding: 14px;
  background: #141b26;
  border: 1px solid #232d3d;
  border-radius: 10px;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.hub-pix-guide-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #009ee3;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hub-pix-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: #94a3b8;
}
.hub-pix-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hub-pix-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #009ee3;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hub-pix-timer-box {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(239, 77, 18, 0.08);
  border: 1px solid rgba(239, 77, 18, 0.25);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #ef4d12;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ------------------------------------------------------------
   4. STICKY BUY BAR NO MOBILE (PÁGINA DE PRODUTO)
   ------------------------------------------------------------ */
.hub-sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(16, 20, 16, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(239, 77, 18, 0.25);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.hub-sticky-mobile-bar.visible {
  transform: translateY(0);
}
@media (min-width: 769px) {
  .hub-sticky-mobile-bar {
    display: none !important;
  }
}
.hub-sticky-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.hub-sticky-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f3eee4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.hub-sticky-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}
.hub-sticky-now {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ef4d12;
  line-height: 1;
}
.hub-sticky-pix-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
}
.hub-sticky-btn {
  padding: 12px 20px;
  background: #ef4d12;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(239, 77, 18, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.hub-sticky-btn:active {
  transform: scale(0.96);
  background: #c73b0b;
}
