* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #0b469e;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  background-color: transparent;
  box-shadow: none; 
  transition: background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

/* ESTILO PARA A NAVBAR QUANDO ROLAR */
.header-scrolled {
  background-color: rgba(255, 255, 255, 0.897);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
}

.logo {
  height: 45px;
  margin-left: 100px;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: #373435;
  text-decoration: none;
  font-size: 16px;
  position: relative; 
  display: inline-block;
}

nav a:hover {
  color: #153880; 
}

/* Pseudo-elemento para a linha de baixo (usado para hover e ativo) */
nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #44a7ea, #153880);
  bottom: -5px; /* Posição da linha */
  left: 0;
  transform: scaleX(0); /* Inicialmente invisível */
  transform-origin: left;
  transition: transform 0.4s ease-out; /* Animação para o hover */
}

nav a::before {
  content: ''; /* Adicione content para pseudo-elementos */
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #44a7ea, #153880);
  top: -5px; /* Posição da linha superior */
  left: 0;
  transform: scaleX(0); /* Inicialmente invisível */
  transform-origin: left;
  transition: transform 0.4s ease-out; /* Animação para o hover */
}


/* Efeito de hover para ambos ::after e ::before */
nav a:hover::after{
  transform: scaleX(1); /* Expande a linha no hover */
}

/* ESTILO PARA A PÁGINA ATIVA */
/* O .active deve mostrar o ::after fixo, sem animação inicial */
nav a.active::after {
  transform: scaleX(1); /* Garante que a linha esteja visível */
  /* Remove a transição para este estado, se desejar que apareça instantaneamente */
  /* transition: none;  <-- Descomente se quiser que a linha apareça sem transição ao carregar a página */
}

nav a.active:hover::after {
  background: linear-gradient(to right, #153880, #44a7ea); 
}

nav a.active:hover {
  color: #153880;
  cursor: default;
}

/* --- Estilos para o Seletor de Idioma --- */

.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 15px; /* Ajuste o espaçamento do menu */
}

.current-language {
    display: flex;
    align-items: center;
    padding: 5px; /* MODIFICADO: Padding ajustado para conter apenas a bandeira */
    border: 0px solid #ccc;
    border-radius: 5px;
    background-color: transparent; /* MODIFICADO: Fundo agora é transparente por padrão */
    color: #373435;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    user-select: none;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    outline: none;
}

/* MODIFICADO: Adicionado estado de fundo para o header com scroll */

.current-language:hover {
    background-color: #f0f0f0e8;
    border-color: #999;
}

.current-language:focus {
    outline: 2px solid #a0a0a0;
    outline-offset: 1px;
}

.flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 0; /* MODIFICADO: Removida a margem que separava a bandeira do texto */
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* MODIFICADO: Esconde o texto (span) dentro do botão e das opções do dropdown */
.current-language span,
.language-option span {
    display: none;
}

/* URLs para as imagens das bandeiras (SVG para melhor qualidade e escalabilidade) */
.flag-br { background-image: url(../../../../assets/images/flags/brasil.png); }
.flag-gb { background-image: url(../../../../assets/images/flags/usa.png); }
.flag-es { background-image: url(../../../../assets/images/flags/espanha.png); }

.language-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 3px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.language-dropdown:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: center; /* MODIFICADO: Centraliza a bandeira na opção */
    padding: 5.5px; /* MODIFICADO: Padding uniforme */
    cursor: pointer;
    color: #333;
    font-size: 14px;
    transition: background-color 0.15s ease;
    outline: none;
}


.language-option:hover {
    background-color: #f0f0f0;
}

.language-option:focus {
    background-color: #e0e0e0;
    outline: 1px solid #999;
    outline-offset: -1px;
}

.language-option .flag {
    margin-right: 0; /* MODIFICADO: Removida a margem */
    width: 18px;
    height: 18px;
    border: 1px solid rgba(0,0,0,0.15);
}

/* Garante que o nav-container alinhe os itens corretamente */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}



.pagina-produto {
  padding: 100px 80px;
}

.container-produto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.imagem-sacaria img {
  width: 400px;
  height: auto;
}

.conteudo-produto {
  max-width: 600px;
}

.conteudo-produto h2 {
  font-size: 1.8rem;
  font-weight: 800;
  background-image: linear-gradient(to right, #44a7ea 0%, #153880 20%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 20px;
}

.conteudo-produto p {
  margin-top: 5px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #000;
}

.botoes-produto {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}

.btn-azul {
  display: flex;
  justify-content: center;
  align-items: center;

  background-image: linear-gradient(to right, #44a7ea 0%, #153880 100%);
  color: #fff;

  width: 146px;
  height: 54px;

  text-decoration: none;
  font-size: 16px;
  font-weight: 600;

  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 5px;

  transition: 0s ease;
}

.btn-azul:hover {
  background: #44a7ea;
}

.btn-outline {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 146px;
  height: 54px;

  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;

  border: none;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 5px;

  background-image: linear-gradient(to right, #44a7ea 0%, #153880 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  overflow: hidden;
  z-index: 1;

  transition: 0.3s ease;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(to right, #44a7ea 0%, #153880 100%);
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 5px;

  mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mask-repeat: no-repeat;

  transition: opacity .3s ease;
}

.btn-outline:hover {
  background: #2b6cb2;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #fff;
}

.btn-outline:hover::before {
  opacity: 0;
}

/* Seção Rodapé */
.footer {
  background: #fff;
  border-top: 2px solid #44a7ea;
  padding: 50px 20px 10px;
  font-family: 'Montserrat', sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo img {
  margin-top: 40px;
  margin-left: 130px;
  height: 80px;
}

.footer-menu h4,
.footer-contato h4 {
  color: #44a7ea;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
}

.footer-menu ul li {
  margin-bottom: 6px;
}

.footer-menu ul li a {
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
}

.footer-contato p {
  font-size: 0.95rem;
  color: #000;
  margin-bottom: 6px;
}

.footer-redes {
  margin-top: 10px;
  margin-bottom: 30px;
}

.footer-redes a {
  margin-right: 10px;
  display: inline-block;
}

.footer-redes img {
  width: 22px;
  height: 22px;
  filter: invert(40%) sepia(85%) saturate(500%) hue-rotate(180deg);
  transition: 0.3s;
}

.footer-redes a:hover img {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.footer hr {
  border: none;
  border-top: 1.5px solid #e0e0e0;
  margin: 30px auto;
  max-width: 1200px;
}

.footer-bottom {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  padding-bottom: 10px;
}

.footer-bottom spam a{
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  padding-bottom: 10px; /* Adicionado: padding-bottom para igualar o arquivo de referência */
}

/* ======================================================= */
/* ============= SEÇÃO DE RESPONSIVIDADE ================= */
/* ======================================================= */

@media (max-width: 1200px) {
  .nav-container {
    padding: 15px 30px;
  }
  .logo, .user-icon-container {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 992px) {
  .banner-produtos {
    padding: 150px 30px 60px;
  }
  .produtos-container {
    padding: 60px 30px;
  }
  .item-produto {
    flex-direction: column;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
  }
  .descricao {
    width: 100%;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo img {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo {
    order: 1;
    height: 40px;
    width: auto;
  }

  .user-icon {
    order: 2;
  }

  nav {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    margin-top: 15px;
    gap: 15px;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 15px;
  }
  .banner-produtos {
    padding: 150px 20px 40px;
  }
  .banner-produtos h1 {
    font-size: 1.8rem;
  }
  .banner-produtos p {
    font-size: 0.9rem;
  }
  .produtos-container {
    padding: 40px 20px;
    gap: 40px;
  }
  .item-produto img {
    width: 200px;
  }
  .descricao h1 {
      font-size: 2rem;
  }
}