@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Poppins", sans-serif !important;
  background-color: #f0f3f7;
}

h2 {
  font-size: 1.5rem;
}

a {
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}

/* ===== CARDS ===== */
.card-datie,
.card-datie-2 {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 0px 3px #e5e5e5;
}

.card-datie {
  padding: 20px;
}

.card-datie-2 {
  padding: 0;
}

/* ===== PERFIL ===== */
.img-perfil {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
}

.user-name {
  font-size: 9pt;
  color: #787878;
}

/* ===== ENSAIOS ===== */
.img-ensaio-wrapper,
.img-ensaio-wrapper-2 {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.img-ensaio-wrapper {
  border-radius: 10px 10px 0 0;
}

/* Gradiente sobre a imagem */
.img-ensaio-wrapper-2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.img-ensaio {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.img-selecionada {
  /* Deixa a imagem mais escura */
  filter: brightness(70%);
  transition: filter 0.3s ease;
  /* Transição suave */
}

/* Indicador "Imagem Comprada" posicionado sobre a imagem */
.foto-comprada {
  position: absolute;
  bottom: 15px;
  /* mesma posição dos botões */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  /* acima do ::after (z-index:1) e acima dos botões (2) */
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px;
  border-radius: 6px;
  font-size: 7pt;
  font-weight: 500;
  pointer-events: none;
  /* evita conflitos de clique */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Botão sobre imagem */
.img-ensaio-wrapper-2 .btn {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  z-index: 2;
}

.img-ensaio-wrapper-2 .ensaio-descricao {
  color: #fff;
  font-size: 10pt;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  z-index: 2;
}

/* ===== BOTÕES ===== */
.btn {
  border-radius: 10px !important;
}

.foto-selecionada {
  border-radius: 7px;
  color: #fff;
  padding: 3px 10px;
}

/* ===== ALERTA ===== */
.alert {
  border-radius: 10px;
  font-size: 9pt;
}

/* ===== ÍCONES ===== */
.pointer {
  cursor: pointer !important;
}

.coracao-ativado,
.coracao-desativado {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 5;
}

.coracao-ativado {
  border: 1px solid #ff3061;
  background-color: #ff3061;
  box-shadow: 0px 0px 5px 1px rgb(0 0 0 / 0.2);
}

.coracao-desativado {
  border: 1px solid #dfdfdf;
  background-color: transparent;
  box-shadow: 0px 0px 5px 1px rgb(0 0 0 / 0.2);
}

.icone-coracao-desativado {
  font-size: 20pt;
  line-height: 1;
  color: #dfdfdf;
}

.icone-coracao-ativado {
  font-size: 20pt;
  line-height: 1;
  color: #b31439;
}

@keyframes batida {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.3);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.ativo-animacao {
  animation: batida 0.4s ease-in-out;
}

.icone-download-1 {
  border: 1.5px solid #ccc;
  background-color: transparent;
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.icone-download-2 {
  font-size: 15pt;
  line-height: 1;
  color: #ccc;
}

/* ===== MODAL ===== */
.modal-close-btn {
  top: 15px;
  right: 20px;
  font-size: 10pt;
}

/* Faz o modal respeitar a altura da tela */
#imageModal .modal-dialog {
  max-width: 95%;
  /* ocupa quase toda a largura */
  margin: 0 auto;
}

#imageModal .modal-content {
  background: transparent;
  border: none;
  max-height: 95vh;
  /* evita que ultrapasse a altura da tela */
  display: flex;
  justify-content: center;
  align-items: center;
}

#imageModal .modal-body {
  padding: 0;
  text-align: center;
}

/* Faz a imagem ser responsiva e caber na tela */
#imageModal img {
  max-width: 100%;
  max-height: 90vh;
  /* limita a altura para não gerar scroll */
  height: auto;
  width: auto;
  object-fit: contain;
}

.container-foto {
  position: relative;
  width: 100%;
  height: 100%;
  display: inline-block;
  overflow: hidden;
}

.marca-dagua {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* cobre a largura inteira */
  height: 100%;
  /* cobre a altura inteira */
  object-fit: contain;
  /* mantém proporção da marca d’água */
  opacity: 1;
  /* deixa com efeito de marca d’água */
  z-index: 5;
  /* garante que fique acima */
  pointer-events: none;
  /* não bloqueia cliques */
}

#imageModal #modalHeart {
  width: 50px !important;
  /* aumenta o círculo */
  height: 50px !important;
  border-width: 3px !important;
  /* borda mais grossa */
}

#imageModal #modalHeart i {
  font-size: 22pt !important;
  /* aumenta o coração */
}

.btn-gold {
  background-color: #BDA35A !important;
  border: #9c8546;
  color: #fff;
  padding: 8px 18px 8px 18px;
  outline: none !important;
}

.btn-gold:hover{
  background-color: #a08743 !important;
  border: #8d773a;
  color: #fff;
  outline: none !important;
}