/* =========================================================
   ESTILOS DA PÁGINA DE OFERTAS (ofertas.css)
========================================================= */

/* 1. FAIXA DE URGÊNCIA (TOPO) */
.urgency-bar {
  background-color: #d9381e;
  color: #ffffff;
  text-align: center;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 0.95rem;
}

.countdown-badge {
  background-color: #ffffff;
  color: #d9381e;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 5px;
}

/* 2. HERO SLIDER */
.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #0378FE;
}

.slider-container {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  z-index: 5;
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #FFF700;
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  will-change: transform;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

/* 3. GRADE DE PRODUTOS */
.products-section {
  padding: 40px 15px;
  background-color: #f8f9fa;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  color: #0378FE;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.section-subtitle {
  color: #555555;
  font-size: 1rem;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: contain;
}

/* GRID RESPONSIVO: DESKTOP 3 COLUNAS | MOBILE 2 COLUNAS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARD DE PRODUTO */
.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* CONTAINER DA IMAGEM */
.product-img-box {
  width: 100%;
  height: 240px; /* Aumenta a altura útil */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Remove o padding para a imagem aproveitar 100% da caixa */
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  overflow: hidden;
}

/* IMAGEM COM ZOOM FORÇADO PARA COMPENSAR A BORDA BRANCA */
.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Faz a imagem preencher todo o espaço quadrado */
  transition: transform 0.3s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.05);
}

/* CONTEÚDO E BOTÃO COMPACTOS */
.product-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-title {
  font-size: 0.95rem;
  color: #1a202c;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  min-height: 2.6em;
}

.product-price {
  margin-bottom: 12px;
}

.price-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0378FE;
}

.btn-whatsapp-product {
  display: block;
  width: 100%;
  background-color: #25d366;
  color: #ffffff;
  text-align: center;
  padding: 10px 0;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-whatsapp-product:hover {
  background-color: #1ebd59;
}

/* ==========================================================================
   SEÇÃO COMUNIDADE GULFIER (LAYOUT LADO A LADO COM CORES DA MARCA)
   ========================================================================== */

.community-banner-section {
  padding: 60px 20px;
  background-color: #f4f7fb; /* Fundo suave levemente azulado */
}

.community-split-container {
  display: table;
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
}

/* --- LADO ESQUERDO: PÔSTER --- */
.community-left-poster {
  display: table-cell;
  width: 48%;
  vertical-align: middle;
  padding-right: 30px;
}

.community-poster-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(3, 120, 254, 0.22); /* Sombra no Tom Azul Gulfier */
  transition: transform 0.3s ease;
}

.community-poster-img:hover {
  transform: translateY(-5px);
}

/* --- LADO DIREITO: CARD BRANCO --- */
.community-right-card {
  display: table-cell;
  width: 54%; /* Ajuste de equilíbrio para o layout duplex */
  vertical-align: middle;
  background: #ffffff;
  padding: 45px 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-top: 5px solid #FFF700; /* Linha de destaque Amarela Gulfier */
  overflow: hidden; /* Garante que o canto arredondado funcione com a borda amarela */
}

.card-brand-tag {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #0378FE; /* Azul Gulfier */
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.card-headline {
  font-size: 42px; /* Aumenta o tamanho para preencher o bloco */
  font-weight: 900; /* Peso máximo / Ultra Bold */
  color: #0378FE; /* Azul Gulfier */
  line-height: 1.05; /* Aproxima as linhas para encorpar o texto */
  letter-spacing: -1px; /* Ajusta o encaixe das letras */
  margin: 0 0 20px 0;
  text-transform: uppercase;
}

.card-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* --- LISTA COM CHECKMARK AMARELO GULFIER --- */
.community-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.community-checklist li {
  font-size: 15px;
  font-weight: 600;
  color: #222222;
  margin-bottom: 12px;
}

.check-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: #FFF700; /* Amarelo Gulfier */
  color: #0378FE; /* Ícone Azul Gulfier */
  text-align: center;
  line-height: 24px;
  border-radius: 50%;
  font-weight: 900;
  margin-right: 10px;
  font-size: 13px;
}

/* --- BOTÃO VERDE WHATSAPP --- */
.btn-community-green {
  display: block;
  width: 100%;
  background-color: #25d366;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-community-green:hover {
  background-color: #1ebc57;
  transform: translateY(-2px);
}

.disclaimer-text {
  font-size: 12px;
  color: #888888;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 0;
}

/* --- RESPONSIVIDADE PARA CELULARES --- */
@media (max-width: 850px) {
  .community-split-container,
  .community-left-poster,
  .community-right-card {
    display: block;
    width: 100%;
    padding-right: 0;
  }

  .community-left-poster {
    margin-bottom: 30px;
  }

  .community-right-card {
    padding: 30px 20px;
  }

  .card-headline {
    font-size: 22px;
  }
}

/* RESPONSIVO MOBILE */
@media (max-width: 868px) {
  .community-wrapper-split {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .community-header-title h2 {
    font-size: 1.7rem;
  }

  .card-headline {
    font-size: 1.4rem;
  }
}

/* REGRA MEDIA QUERY: MOBILE (2 COLUNAS) E EMPILHAMENTO DO BANNER */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-img-box {
    height: 160px;
    padding: 10px;
  }

  .product-title {
    font-size: 0.85rem;
  }

  .price-value {
    font-size: 1.1rem;
  }

  .community-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
  }

  .community-info p {
    margin-bottom: 15px;
  }

  .btn-community-whatsapp {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   BLOCO FECHADO DA COMUNIDADE (DEGRADÊ AZUL SOMENTE NESTA SEÇÃO)
   ========================================================================== */

.community-banner-section {
  padding: 60px 20px;
  /* Degradê azul isolado apenas nesta seção */
  background: linear-gradient(135deg, #0378FE 0%, #0042a5 60%, #002d73 100%);
  width: 100%;
}

.community-split-container {
  display: table;
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
}

/* Lado Esquerdo: Imagem da Comunidade */
.community-left-poster {
  display: table-cell;
  width: 46%;
  vertical-align: middle;
  padding-right: 30px;
}

.community-poster-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.community-poster-img:hover {
  transform: translateY(-5px);
}

/* Lado Direito: Card Branco */
.community-right-card {
  display: table-cell;
  width: 54%;
  vertical-align: middle;
  background: #ffffff;
  padding: 45px 40px;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border-top: 5px solid #FFF700; /* Destaque Amarelo Gulfier */
}

/* Responsividade para Celulares */
@media (max-width: 850px) {
  .community-split-container,
  .community-left-poster,
  .community-right-card {
    display: block;
    width: 100%;
    padding-right: 0;
  }

  .community-left-poster {
    margin-bottom: 30px;
  }

  .community-right-card {
    padding: 30px 20px;
  }
}

.btn-community-green {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background-color: #25d366;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Estilo para o ícone do WhatsApp */
.wa-btn-icon {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  flex-shrink: 0;
}

/* BARRA DE URGÊNCIA EM AZUL GULFIER */
.top-urgency-bar {
  background-color: #0378FE; /* Azul Gulfier */
  color: #ffffff;
  padding: 10px 15px;
  text-align: center;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.top-urgency-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.urgency-label {
  font-size: 14px;
  color: #ffffff;
}

.timer-display-inline {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.time-unit {
  background: #002d73; /* Azul escuro para destacar os números */
  color: #FFF700; /* Amarelo Gulfier */
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.time-unit b {
  color: #ffffff;
  margin-right: 2px;
}

/* CONTAINER DA IMAGEM DO PRODUTO */
.product-img-box {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background-color: #f9fafb;
  border-bottom: 1px solid #f0f0f0;
  overflow: hidden;
}

/* IMAGEM DO PRODUTO */
.product-img-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* EFEITO AO PASSAR O MOUSE */
.product-card:hover .product-img-box img {
  transform: scale(1.08);
}

/* LINHA DO PREÇO (ALINHAMENTO LADO A LADO) */
.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Preço na esquerda, Badge na direita */
  margin: 12px 0;
}

.price-value {
  font-size: 20px;
  font-weight: 800;
  color: #0378FE; /* Azul Gulfier */
}

/* BADGE / ADESIVO DE PREÇO À VISTA */
.badge-tag {
  position: static; /* Remove o posicionamento absoluto antigo */
  background-color: #FFF700; /* Amarelo Gulfier */
  color: #002d73; /* Azul Escuro */
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
  
  /* ANIMAÇÃO EM MOVIMENTO (PULSO SUAVE) */
  animation: badgePulse 2s infinite ease-in-out;
}

/* EFEITO DE MOVIMENTO DO ADESIVO */
@keyframes badgePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 4px 10px rgba(255, 247, 0, 0.6);
  }
  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   AJUSTE RESPONSIVO DO RODAPÉ DA HOME NO MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  /* Alinhamento geral do container principal */
  .footer__top {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 25px !important;
    padding: 30px 15px !important;
  }

  /* Bloco da marca e redes sociais */
  .footer__brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  .footer__brand p {
    max-width: 300px !important;
    margin: 10px auto 15px auto !important;
  }

  .footer__social {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
  }

  .footer__social svg {
    width: 24px !important;
    height: 24px !important;
  }

  /* Colunas de navegação, categorias e contato */
  .footer__col {
    width: 100% !important;
    margin: 0 auto !important;
  }

  .footer__col h4 {
    margin-bottom: 10px !important;
    font-size: 16px !important;
  }

  .footer__col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .footer__col ul li {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }

  /* Bloco inferior dos direitos autorais */
  .footer__bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    padding: 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  /* Botão flutuante do WhatsApp */
  .whatsapp-float {
    bottom: 20px !important;
    right: 20px !important;
    width: 55px !important;
    height: 55px !important;
    z-index: 9999 !important;
  }
}

/* AJUSTE DOS CARDS DE PRODUTO NO MOBILE */
@media (max-width: 768px) {
  /* Área do preço e badge lado a lado de forma flexível */
  .product-price {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    margin: 8px 0 !important;
  }

  /* Ajusta o tamanho da fonte do preço para não partir a linha */
  .price-value {
    font-size: 16px !important;
    white-space: nowrap !important;
    font-weight: 800 !important;
  }

  /* Ajusta o badge para ficar numa única linha de texto */
  .badge-tag {
    font-size: 9px !important;
    padding: 3px 6px !important;
    white-space: nowrap !important;
    height: auto !important;
    line-height: 1 !important;
  }

  /* Botão do WhatsApp ajustado para mobile */
  .product-content a {
    font-size: 13px !important;
    padding: 8px 6px !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}

/* Torna a barra de urgência fixa no topo */
.top-urgency-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* Ajuste compacto exclusivo para mobile */
@media (max-width: 768px) {
  .top-urgency-bar {
    padding: 6px 10px !important;
  }

  .top-urgency-bar .container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* Reduz o texto no mobile para economizar espaço de tela */
  .urgency-label {
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  /* Mantém os blocos do cronômetro menores e alinhados */
  #countdown-timer .time-unit {
    font-size: 10px !important;
    padding: 2px 4px !important;
  }
}


/* =========================================
   CORREÇÃO ATUALIZADO, DESCARTANDO CODIGOS DO CSS ACIMA (SLIDER) DO BANNER RESPONSIVO
   DESKTOP + MOBILE
========================================= */

/* Slider principal */
.banner-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background-color: #0378FE;
}

/* Container dos slides */
.slider-container {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

/* Cada slide */
.slide {
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Imagem do banner */
.slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

/* =========================================
   AJUSTE PARA CELULAR
========================================= */

@media (max-width: 768px) {

    .banner-slider {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .slider-container {
        width: 100%;
    }

    .slide {
        flex: 0 0 100%;
        min-width: 0;
        width: 100%;
    }

    .slide img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    /* Botões do carrossel */
    .slider-btn {
        width: 32px;
        height: 32px;
    }

    .slider-btn.prev {
        left: 8px;
    }

    .slider-btn.next {
        right: 8px;
    }

}
