/*=======================================*/ 
/* Banner */
/*=======================================*/
.banner-section {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 1rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    font-family: var(--font-heading);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
  
  /* --- Carrossel e Slides --- */
  .banner-carousel {
    height: 100%;
    width: 100%;
    position: relative;
  }
  
  .banner-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .banner-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Overlay para melhor contraste do texto */
  .banner-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg, 
      rgba(0, 0, 0, 0.5) 0%, 
      rgba(0, 0, 0, 0.3) 50%, 
      rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
  }
  
  /* --- Layout de Conteúdo Reorganizado --- */
  .banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
    height: 100%;
    text-decoration: none;
    color: inherit;
  }
  
  /* --- Área de Texto Otimizada --- */
  .banner-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 2rem 0;
  }
  
  .banner-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin: 0 0 1rem 0;
    color: var(--text-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-family: var(--font-heading);
  }
  
  .banner-text p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 2rem 0;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
    font-family: var(--font-body);
  }
  
  /* --- Container de Imagem Profissional --- */
  .banner-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-height: 350px;
  }
  
  .banner-image-wrapper {
    position: relative;
    height: 115%;
    max-width: 300px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
  }
  
  /* ESTILO PARA AS IMAGENS MARKDOWN */
  .banner-content img {
    display: block;
    max-width: 100%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    border-radius: 8px;
  }
  
  .banner-content:hover img {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.4));
  }
  
  /* --- Badge de Oferta (Opcional) --- */
  .banner-badge {
    position: absolute;
    top: 8px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    animation: pulse 2s infinite;
    font-family: var(--font-body);
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  /* --- Botão CTA Mais Atraente --- */
  .banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, var(--accent-color), var(--button-bg-hover));
    border-radius: 8px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--button-text);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(57, 181, 74, 0.3);
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content; 
    min-width: 150px;
    margin-top: 15px;
    padding: 12px 30px;
    align-self: flex-start;
  }
  
  .banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
  }
  
  .banner-btn:hover::before {
    left: 100%;
  }
  
  .banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(57, 181, 74, 0.4);
    background: linear-gradient(45deg, var(--button-bg-hover), var(--accent-color));
  }
  
  .banner-btn:active {
    transform: translateY(0);
  }
  
  /* --- Controles de Navegação Modernos --- */
  .banner-prev,
  .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 5;
  }
  
  .banner-prev:hover,
  .banner-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
  }
  
  .banner-prev { left: 20px; }
  .banner-next { right: 20px; }
  
  /* --- Indicadores de Slide --- */
  .banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
  }
  
  .banner-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .banner-indicator.active {
    background: white;
    transform: scale(1.2);
  }
  
  /* =======================================*/
  /* Responsividade Avançada */
  /* =======================================*/
  @media (max-width: 1024px) {
    .banner-section {
      height: 350px;
    }
    
    .banner-content {
      padding: 0 2rem;
      gap: 2rem;
    }
    
    .banner-text h2 {
      font-size: 2rem;
    }
    
    .banner-image-wrapper {
      max-width: 250px;
      max-height: 250px;
    }
  }
  
  @media (max-width: 768px) {
    .banner-section {
      height: auto;
      min-height: 500px;
      border-radius: 8px;
    }
    
    .banner-content {
      grid-template-columns: 1fr;
      grid-template-rows: auto 1fr;
      text-align: center;
      padding: 2rem 1.5rem;
      gap: 1.5rem;
    }
    
    .banner-text {
      order: 2;
      padding: 1rem 0;
    }
    
    .banner-text h2 {
      font-size: 1.8rem;
    }
    
    .banner-text p {
      max-width: 100%;
      font-size: 1rem;
    }
    
    .banner-image-container {
      order: 1;
      height: auto;       /* Deixe o container fluido */
      margin-bottom: 1rem;
    }
    
    .banner-image-wrapper {
      max-width: 200px;
      max-height: 200px;
      max-width: 100%;    /* Segurança extra */
    }
    
    .banner-prev,
    .banner-next {
      width: 40px;
      height: 40px;
      font-size: 1rem;
    }
    
    .banner-btn {
      padding: 12px 24px;
      font-size: 0.9rem;
    }
  }
  
  @media (max-width: 480px) {
    .banner-section {
      min-height: 450px;
    }
    
    .banner-text h2 {
      font-size: 1.5rem;
    }
    
    .banner-text p {
      font-size: 0.9rem;
    }
    
    .banner-image-wrapper {
      max-width: 150px;
      max-height: 150px;
    }
    
    .banner-content {
      padding: 1.5rem 1rem;
    }
  }
  
  /* --- Animações de Entrada --- */
  .banner-slide {
    animation: slideIn 0.8s ease-out;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* --- Efeito de Brilho no Hover --- */
  .banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
  }
  
  .banner-content:hover::before {
    left: 100%;
  }
  
  /* --- Variações de Cor Alternativas --- */
  .banner-section.variant-1 {
    background: linear-gradient(135deg, #1F509A 0%, #0A3981 100%);
  }
  
  .banner-section.variant-2 {
    background: linear-gradient(135deg, #003f8a 0%, #00275d 100%);
  }
  
  .banner-section.variant-3 {
    background: linear-gradient(135deg, #1F509A 0%, #39b54a 100%);
  }
  
  .banner-section.variant-4 {
    background: linear-gradient(135deg, #0A3981 0%, #003f8a 50%, #1F509A 100%);
  }

  /* ======================================= */
/* ESTILO PARA BANNER FESTIVO (Full BG)    */
/* ======================================= */
/* --- TEMA FESTIVO GLOBAL (Aplica ao carrossel inteiro) --- */
.banner-section.festive-theme {
    /* Remove o gradiente azul e põe a imagem */
    background: none !important;
    background-image: var(--festive-bg) !important;
    background-size: cover !important;
    background-position: center !important;
    
    /* Overlay escuro para garantir que texto de QUALQUER produto seja lido */
    position: relative;
}

/* Overlay escuro global para garantir leitura dos produtos */
.banner-section.festive-theme::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* Escurece 60% */
    z-index: 0;
}

/* Garante que o conteúdo fique acima do overlay */
.banner-section.festive-theme .banner-content {
    position: relative;
    z-index: 2;
    color: white !important; /* Força texto branco em tudo */
}

/* Força textos dos produtos a serem brancos no natal */
.banner-section.festive-theme .banner-text h2,
.banner-section.festive-theme .banner-text p {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* --- LAYOUT DO PRIMEIRO SLIDE (HERO / BOAS VINDAS) --- */
.banner-slide.festive-hero .banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}

.banner-slide.festive-hero .banner-text {
    align-items: center; /* Centraliza itens internos */
    max-width: 800px;
}

.banner-slide.festive-hero h2 {
    font-size: 3.5rem; /* Texto Gigante */
    margin-bottom: 0.5rem;
}

.banner-slide.festive-hero .banner-image-container {
    display: none; /* Esconde a caixinha de imagem pequena */
}

/* 1. Remove o Grid e Centraliza tudo */
.banner-slide.festive-slide .banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Configuração da Imagem de Fundo */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Garante que cubra tudo */
    width: 100%;
    height: 100%;
    padding: 0; /* Remove padding lateral */
}

.banner-slide.festive-hero .banner-btn {
    align-self: center;
}

/* 2. Ajusta o texto para ler melhor em cima da foto */
.banner-slide.festive-slide .banner-text {
    max-width: 800px;
    padding: 2rem;
    /* Fundo semi-transparente opcional para ler melhor, ou use text-shadow */
    /* background: rgba(0, 0, 0, 0.4); 
       border-radius: 16px; 
       backdrop-filter: blur(4px); */
}

.banner-slide.festive-slide h2 {
    font-size: 3rem; /* Título maior */
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    margin-bottom: 0.5rem;
}

.banner-slide.festive-slide p {
    font-size: 1.4rem;
    color: #f0f0f0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 2rem;
}

/* 3. Botão no banner festivo (opcional: mudar cor) */
.banner-slide.festive-slide .banner-btn {
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* RESPONSIVO FESTIVO */
@media (max-width: 768px) {
    .banner-slide.festive-slide h2 {
        font-size: 2rem;
    }
    .banner-slide.festive-slide p {
        font-size: 1.1rem;
    }
}