/* ==================================================
   CARDS DE PRODUTOS
================================================== */

/* =========================
       Cards Estilo Ralifla
    ========================= */
.card-custom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  text-align: center;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-custom img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-custom p.descricao {
  font-weight: 500;
  font-size: 0.9rem;
  color: #444;
  margin: 0 0 10px 0;
  min-height: 40px;
}

.card-custom .valor {
  font-weight: 700;
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 10px;
}

.card-custom .btn-custom {
  padding: 8px 0;
  background-color: #c08081;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: 5px;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.card-custom .btn-custom:hover {
  background-color: #a55f5f;
  transform: translateY(-2px);
}

.row > .col-6,
.row > .col-sm-6,
.row > .col-md-4,
.row > .col-lg-3 {
  display: flex;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .card-custom img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .card-custom img {
    height: 180px;
  }

  .card-custom p.descricao {
    font-size: 0.8rem;
  }

  .card-custom .valor {
    font-size: 1rem;
  }

  .card-custom .btn-custom {
    font-size: 0.8rem;
  }
}


/* ==================================================
   BANNER E CARROSSEL PRINCIPAL
================================================== */

#banner .carousel-control-prev,
#banner .carousel-control-next {
  width: 12%;
  opacity: 1;
}

/* BOTÕES */
#banner .carousel-control-prev-icon,
#banner .carousel-control-next-icon {
  width: 46px;
  height: 46px;

  border-radius: 50%;

  background-size: 18px;

  background-color: rgba(255, 255, 255, 0.18);

  border: 1px solid rgba(255, 255, 255, 0.5);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);

  transition: all 0.25s ease;
}

/* HOVER */
#banner .carousel-control-prev:hover .carousel-control-prev-icon,
#banner .carousel-control-next:hover .carousel-control-next-icon {
  transform: scale(1.08);

  background-color: rgba(192, 128, 129, 0.95);

  border-color: #fff;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

#banner .carousel-control-prev {
  justify-content: flex-start;
  padding-left: 5px;
}

#banner .carousel-control-next {
  justify-content: flex-end;
  padding-right: 5px;
}

/* =========================
   BANNER RESPONSIVO
========================= */
#banner .carousel-inner picture,
#banner .carousel-inner img {
  width: 100%;
  height: auto;
  display: block;

  aspect-ratio: 3 / 1;

  object-fit: cover;
}

/* MOBILE */
@media (max-width: 768px) {
  #banner .carousel-inner img {
    aspect-ratio: 4 / 5;

    object-fit: cover;
  }
}


/* ==================================================
   MODAL DE ALERTA
================================================== */

/* Estilos customizados para o modal */
.modal-content-alert {
  background: transparent;
  border: none;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
  animation: customZoomIn 0.4s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content-alert .modal-img {
  max-width: 600px; /* limite horizontal */
  max-height: 70vh; /* limite vertical relativo à tela */
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Ajuste para o backdrop do modal */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-backdrop.show {
  opacity: 0.9;
}

/* Animação personalizada */
@keyframes customZoomIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


/* ==================================================
   CATEGORIAS E OWL CAROUSEL
================================================== */

/* =========================
   Categoria Section - CORREÇÃO DAS SETAS
========================= */
.categories {
  padding: 50px 0;
  background-color: #f8f8f8;
  position: relative;
}

.categories__item {
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  /* Fundo branco para o card completo */
}

.categories__image {
  height: 300px;
  /* Altura fixa para a imagem */
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  /* Não reduz a altura */
}

.categories__item h5.center-black {
  position: absolute;
  bottom: -5px;
  /* Ajustei para ficar mais visível */
  left: 50%;
  transform: translateX(-50%);
  color: #000000 !important;
  /* Preto puro */
  text-align: center;
  margin: 0;
  font-size: 16px;
  font-weight: 700 !important;
  /* Negrito mais forte */
  z-index: 2;
  width: 90%;
  background-color: transparent !important;
  /* Remove o fundo */
  padding: 4px 8px;
  /* Reduzi o padding */
  border-radius: 0;
  /* Remove bordas arredondadas */
  text-shadow: none !important;
  /* Remove sombra do texto */
  border: none !important;
  /* Remove qualquer borda */
}

/* CORREÇÃO DAS SETAS DO OWL CAROUSEL */
.owl-carousel {
  position: relative;
}

.owl-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.owl-nav .owl-prev,
.owl-nav .owl-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  font-size: 25px;
  padding: 15px;
  border-radius: 50%;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 50px;
  height: 50px;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all;
  border: none;
}

.owl-nav .owl-prev:hover,
.owl-nav .owl-next:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* AJUSTE AQUI: Aumente os valores para mover mais para fora */
.owl-nav .owl-prev {
  left: -60px !important;
}

.owl-nav .owl-next {
  right: -60px !important;
}

.owl-nav .owl-prev i,
.owl-nav .owl-next i {
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}

.owl-nav .owl-prev.disabled,
.owl-nav .owl-next.disabled {
  opacity: 0.3 !important;
  cursor: not-allowed;
}

/* FORÇAR DISPLAY NO DESKTOP */
@media (min-width: 769px) {
  .owl-nav {
    display: block !important;
  }

  .owl-nav .owl-prev,
  .owl-nav .owl-next {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Ajuste para responsividade */
@media (max-width: 768px) {
  .owl-nav .owl-prev,
  .owl-nav .owl-next {
    padding: 10px;
    width: 40px;
    height: 40px;
  }

  .owl-nav .owl-prev {
    left: 0px !important;
  }

  .owl-nav .owl-next {
    right: 0px !important;
  }

  .owl-nav .owl-prev i,
  .owl-nav .owl-next i {
    font-size: 16px;
  }

  .categories__item h5.center-black {
    font-size: 16px;
    padding: 6px 10px;
    bottom: -5px;
  }
}

/* CORREÇÃO EXTRA: Garantir que o container não esconda as setas */
.categories .container {
  position: relative;
  overflow: visible !important;
}

.categories .row {
  position: relative;
  overflow: visible !important;
}


/* ==================================================
   BOTÃO FLUTUANTE DO WHATSAPP
================================================== */

/* WHATSAPP: Botao Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background: #0a8f5c;
  color: #fff;
  width: 55px;
  /* fixo e redondo */
  height: 55px;
  border-radius: 50%;
  display: flex;
  /* Centraliza tudo */
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-decoration: none;
  overflow: hidden;
  /* GARANTE que nada vaze */
}

.whatsapp-float i {
  display: block;
  /* Evita linha branca! */
  line-height: 1 !important;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}


/* ==================================================
   MODAL DO PLAYER DE VÍDEO
================================================== */

#modalVideoPlayer .modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;

  width: 95%;
  max-width: 700px;

  margin: 0;
}

#modalVideoPlayer .modal-content {
  background: #000;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

#modalVideoPlayer .modal-header {
  cursor: move;
  user-select: none;
  border: none;
  padding: 10px;
}

#main-video-player {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
}

/* MOBILE */
@media (max-width: 768px) {
  #modalVideoPlayer .modal-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: none !important;
  }

  #modalVideoPlayer .modal-content {
    height: 100vh;
    border-radius: 0;
  }

  #main-video-player {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
  }

  /* DESATIVA DRAG NO MOBILE */
  #modalVideoPlayer .modal-header {
    cursor: default;
  }
}


/* ==================================================
   BOLHA FLUTUANTE DE VÍDEO
================================================== */

@keyframes pulseBubble {
  0% {
    box-shadow:
      0 0 0 0 rgba(79, 78, 78, 0.7),
      0 4px 15px rgba(0, 0, 0, 0.3);
  }

  70% {
    box-shadow:
      0 0 0 18px rgba(192, 128, 129, 0),
      0 4px 15px rgba(0, 0, 0, 0.3);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(192, 128, 129, 0),
      0 4px 15px rgba(0, 0, 0, 0.3);
  }
}

/* =========================================
   VIDEO BUBBLE FLOAT
========================================= */

#video-bubble-container {
  position: fixed !important;

  left: 18px !important;
  bottom: 18px !important;

  top: auto !important;
  right: auto !important;

  width: 92px;
  height: 92px;

  z-index: 999999 !important;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: move;
  touch-action: none;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* BOLINHA */
.video-bubble-content {
  width: 100%;
  height: 100%;

  border-radius: 50%;

  overflow: hidden;

  background: #000;

  border: 3px solid rgba(255, 255, 255, 0.9);

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.35),
    0 0 0 6px rgba(255, 255, 255, 0.12);

  animation: pulseBubble 2s infinite;
}

/* VIDEO */
#thumb-video {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 50%;
}

/* BOTÃO FECHAR */
#close-video-bubble {
  position: absolute;

  top: -4px;
  right: -4px;

  width: 24px;
  height: 24px;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.85);

  color: #fff;

  font-size: 16px;
  line-height: 1;

  z-index: 1000000;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* HOVER */
#video-bubble-container:hover {
  transform: scale(1.05);
}

/* MOBILE */
@media (max-width: 768px) {
  #video-bubble-container {
    width: 78px;
    height: 78px;

    left: 12px !important;
    bottom: 12px !important;
  }

  #close-video-bubble {
    width: 22px;
    height: 22px;

    font-size: 14px;
  }
}
/* =====================================================
   MODAL ALERTA
   ===================================================== */

#modalMensagem .modal-mensagem-dialog {
    width: auto;
    max-width: 650px;
    margin: auto;
    padding: 15px;
}

#modalMensagem .modal-content-alert {
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,.35);
}

#modalMensagem .modal-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 85vh;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 14px;
}

/* Botão fechar */

#modalMensagem .custom-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;

    width: 34px;
    height: 34px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background-color: rgba(255,255,255,.55); /* igual ao modal do vídeo */
    backdrop-filter: blur(4px);

    opacity: 1;
    transition: all .2s ease;
}

#modalMensagem .custom-close-btn:hover {
    background-color: rgba(255,255,255,.80);
    transform: scale(1.05);
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width:768px){

    #modalMensagem .modal-mensagem-dialog{
        width: calc(100% - 60px);
        max-width: 320px;
        margin:20px auto;
        padding:0;
    }

    #modalMensagem .modal-img{
        max-height:50vh;
    }

    #modalMensagem .custom-close-btn{
        width:32px;
        height:32px;
        top:8px;
        right:8px;
    }

}

/* Celulares pequenos */

@media (max-width:480px){

    #modalMensagem .modal-mensagem-dialog{
        width:calc(100% - 80px);
        max-width:280px;
    }

    #modalMensagem .modal-img{
        max-height:50vh;
    }

}
.produto-preco-antigo{
    color:#8c8c8c;
    text-decoration:line-through;
    font-size:.92rem;
    margin-bottom:2px;
}

.produto-preco{
    font-size:1.15rem;
    font-weight:700;
    color:#111;
}

.produto-desconto{
    display:inline-block;
    margin-left:8px;
    padding:2px 8px;
    background:#dc3545;
    color:#fff;
    font-size:.72rem;
    font-weight:700;
    border-radius:999px;
    vertical-align:middle;
    line-height:1.4;
}
#modalMensagem .modal-content-alert{
    position: relative;
    overflow: visible; /* importante */
}

#modalMensagem .custom-close-btn{
    position: absolute;
    top: -18px;
    right: -18px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #fff;
    border-radius: 50%;

    background: #000;
    color: #fff;

    font-size: 28px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
    z-index: 9999;

    box-shadow: 0 4px 10px rgba(0,0,0,.35);
    transition: .2s;
}

#modalMensagem .custom-close-btn:hover{
    background: #222;
    transform: scale(1.08);
}