* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: #F8F8F8;
}


/* --- Estilo das Caixas de Preview (Atuais e Novas) --- */
.preview-box {
  width: 120px;
  height: 120px;
  /* Força um quadrado */
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid #ddd;
  /* Borda padrão suave */
  overflow: visible;
  /* Permite que o badge 'Principal' saia um pouco da caixa */
  transition: all 0.2s ease;
  padding: 4px;
  background: #fff;
}

/* Imagem dentro da caixa */
.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Garante que a imagem preencha o quadrado sem distorcer */
  border-radius: 6px;
}

/* --- Estado Selecionado (Principal) --- */
.preview-box.selected {
  border-color: #198754;
  /* border-success */
  border-width: 3px;
  box-shadow: 0 0 10px rgba(25, 135, 84, 0.5);
}

/* --- O Badge 'Principal' (Estilo da Imagem 4) --- */
.badge-principal {
  position: absolute;
  top: -12px;
  /* Joga para cima da borda */
  left: 50%;
  transform: translateX(-50%);
  /* Centraliza horizonalmente */
  z-index: 10;
}

.badge-principal .badge {
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 20px;
  /* Arredondado */
}

/* --- O Botão Excluir (X) --- */
.btn-remove-atual,
.btn-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 22px;
  /* Centraliza o X */
  border-radius: 50%;
  /* Bolinha */
  font-size: 16px;
  font-weight: bold;
  z-index: 11;

  /* 👇 SEGURANÇA: Escondido por padrão 👇 */
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
}

/* 👇 UX: Mostra o botão APENAS quando o mouse está sobre a .preview-box 👇 */
.preview-box:hover .btn-remove-atual,
.preview-box:hover .btn-remove {
  opacity: 1;
  visibility: visible;
}

/* ================== Seção de Divisores de Títulos ======================= */
.section-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  /* Espaçamento vertical entre as sessões */
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d1d5db;
  /* Cor da linha do Figma */
}

.section-divider span {
  padding: 0 20px;
  color: #1a1a3a;
  font-size: 1.7rem;
  font-weight: bold;
  text-transform: none;
  /* Mantém como você digitar no HTML */
}

#catalogo .card {
  transition: transform 0.2s ease-in-out;
}

#catalogo .card:hover {
  transform: translateY(-5px);
}

#catalogo .stretched-link::after {
  z-index: 2;
  /* Garante que o clique funcione em todo o card */
}

/* --- Ajuste da Newsletter --- */
.btn-danger-custom {
  background-color: #ff4d4d !important;
  /* Um vermelho vivo para contrastar com o cinza */
  border: none;
  color: white !important;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-danger-custom:hover {
  background-color: #e60000 !important;
  /* Vermelho mais escuro no hover */
}

.newsletter-input {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #ced4da !important;
  color: #333 !important;
}

.newsletter-input:focus {
  background-color: #fff !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 77, 77, 0.25) !important;
}

/* Forçar a visibilidade do botão e estilo do campo */
.newsletter-section .input-group {
  max-width: 500px;
  margin: 0 auto;
}

.btn-newsletter {
  background-color: #ff4d4d !important;
  /* Vermelho vivo */
  color: white !important;
  border: none;
  font-weight: bold;
  padding: 0 25px;
}

.btn-newsletter:hover {
  background-color: #e60000 !important;
}

.input-newsletter {
  border: none !important;
  height: 50px;
}

/* --- Estilo do Rodapé --- */
.footer-link {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: #ff4d4d !important;
  /* Vermelho destaque no hover */
}

.footer-title {
  font-size: 1rem;
  letter-spacing: 1px;
  color: #fff;
}

/* ================= Ajustes Responsivos =============== */
/* --- ESTILIZAÇÃO DO RODAPÉ --- */

.footer-link {
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-link:hover {
  color: #A2001D !important;
  /* Vermelho M3 */
  padding-left: 5px;
}

.footer-title {
  color: #fff;
  letter-spacing: 2px;
  border-bottom: 2px solid #A2001D;
  display: inline-block;
  padding-bottom: 5px;
}

/* Caixinhas para os ícones sociais */
.social-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon-box:hover {
  background: #A2001D;
  color: white;
  transform: translateY(-3px);
}

/* Ajuste de espaçamento no mobile para não ficar "escada" */
@media (max-width: 991px) {
  .footer-title {
    border-bottom: none;
    margin-bottom: 1.5rem !important;
  }

  .footer-title::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background: #A2001D;
    margin: 8px auto 0;
  }
}