@import url("https://fonts.googleapis.com/css2?family=Berkshire+Swash&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
}

/* ... (Suas animações @keyframes permanecem as mesmas) ... */
@-webkit-keyframes slide-in-right {
  0% {
    -webkit-transform: translateX(100px);
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slide-in-right {
  0% {
    -webkit-transform: translateX(100px);
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}
.slide-in-right {
  -webkit-animation: slide-in-right 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    both;
  animation: slide-in-right 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@-webkit-keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}
.slide-in-left {
  -webkit-animation: slide-in-left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    both;
  animation: slide-in-left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

p {
  font-family: "Montserrat", sans-serif;
}

body {
  background: linear-gradient(
    to right,
    #161616,
    #000
  ); /* cinza à esquerda, preto à direita */
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5); /* sombra suave */
}

/* -------------------- Menu -------------------- */

#menu-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 5rem;
  font-family: "Montserrat", sans-serif;
  padding: 0 3.125rem;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(42, 40, 41, 0.6); /* Fundo semitransparente */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

#logo {
  font-style: normal;
  font-family: "Berkshire Swash", serif;
  cursor: pointer;
}

#logo h1 {
  font-weight: normal;
  font-size: 2.5rem;
  background: linear-gradient(to right, #ffffff 50%, #544f51);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#nav-bar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  font-family: "Montserrat", serif;
}

#nav-bar ul {
  display: flex;
  gap: 1.875rem;
  list-style: none;
  flex-direction: row;
}

#nav-bar li a {
  display: inline-block;
  padding: 0.625rem 0.3125rem;
  position: relative;
  transition: color 0.3s ease;
}

/* ALTERADO: Efeito de hover mais moderno com sublinhado */
#nav-bar li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  transition: width 0.3s ease;
}

#nav-bar li a:hover::after {
  width: 100%;
}

/* -------------------- Menu Produtos Escondido -------------------- */

#menu-products-hidden {
  opacity: 0;
  transform: scaleY(0.95); /* Animação mais suave */
  transform-origin: top;
  transition: all 0.3s ease-in-out;
  visibility: hidden;
  position: absolute;
  top: 5rem;
  left: 0;
  width: 100%;
  z-index: 999; /* Abaixo do menu principal */
  pointer-events: none;
}

#menu-products-hidden.show {
  opacity: 1;
  transform: scaleY(1);
  visibility: visible;
  pointer-events: auto;
}

#container-menu-products {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  height: 18.125rem;
  padding: 1rem 3.125rem;

  /* NOVO: Efeito glassmorphism */
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

/* ... (Resto das regras de #img-products, .column, etc. permanecem as mesmas) ... */
#img-products {
  width: 17.5rem;
  height: 14.375rem;
  margin-left: 3.125rem;
  object-fit: cover;
  border-radius: 0.9375rem;
  border: 0.0625rem solid white;
}
#container-menu-products h2 {
  font-size: 1.25rem;
}
#container-column {
  display: flex;
  margin-right: 3.125rem;
}
.column {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0 3.125rem 0 0;
}

/* -------------------- Elementos Direita (Buscar, Carrinho, Login) -------------------- */

#left-elements {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem; /* Reduzido para melhor encaixe */
}

#search {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
}

/* -------------------- Sub-Search Escondido -------------------- */
#sub-search-hidden {
  opacity: 0;
  transform: scaleY(0.95);
  transform-origin: top;
  transition: all 0.3s ease-in-out;
  visibility: hidden;
  position: absolute;
  top: 5rem;
  left: 0;
  width: 100%;
  height: 4rem; /* Aumentado para mais respiro */
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;

  /* NOVO: Efeito glassmorphism */
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#sub-search-hidden.show-hidden {
  opacity: 1;
  transform: scaleY(1);
  visibility: visible;
  pointer-events: auto;
}

.search-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px; /* Bordas arredondadas */
  width: 37.5rem;
  height: 2.5rem; /* Altura ajustada */
  padding: 0 4rem 0 1.5rem; /* Padding ajustado */
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}
/* ... (Resto das regras de .formulary-search e ícones permanecem as mesmas) ... */
.search-box::placeholder {
  font-family: "Montserrat", serif;
  font-size: 1rem;
  padding: 0;
  color: white;
}
.formulary-search {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
}
#land {
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
}
#close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.button-search {
  background: none;
  border: none;
}

/* -------------------- Carrinho e Login -------------------- */

#circle-cart,
.login-circle {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

#circle-cart:hover,
.login-circle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-3px);
}

#mini-cart {
  position: fixed !important;
  top: 6rem; /* Distância do menu */
  right: 3rem;
  width: 22rem; /* Aumentado */
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  transform: translateY(-10px); /* Posição inicial para animação */

  /* NOVO: Efeito glassmorphism */
  background: rgba(42, 40, 41, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
}

/* ... (Classes .hidden e conteúdo do mini-carrinho permanecem as mesmas) ... */
.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
}
#mini-cart-footer {
  border-top: 1px solid #544f51;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  text-align: right;
}
#mini-cart-checkout {
  background: white;
  color: black;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  border-radius: 5px;
}
#number-purchases {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.25rem;
  top: -5px;
  right: -5px;
  background: white;
  color: black;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
}
.login-circle {
  margin-right: 3.125rem;
}
.close-button {
  position: absolute;
  top: 0.1rem;
  left: 0.8rem;
  background: none;
  width: auto;
  height: auto;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* -------------------- Banner Carrossel -------------------- */
/* Lembre-se de adicionar padding-top: 5rem; nesta regra! */
#banner {
  font-family: "Montserrat", sans-serif;
  display: flex;
  position: relative;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 35.6rem; /* Aumentado para mais impacto */
  background-size: cover;
  background-position: center;
  transition: background-image 0.8s ease-in-out;
  padding-top: 5rem; /* IMPORTANTE: Para compensar o menu fixo */
}

/* ... (Regras de .carousel-inner, .carousel-item e setas permanecem as mesmas) ... */
#banner2 {
  background-position: center 50%;
}
.carousel-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.carousel-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.arrow {
  position: absolute;
  cursor: pointer;
  z-index: 100;
  top: 50%;
  transform: translateY(-50%);
}
.arrow img {
  width: 2.5rem;
}
.left-arrow {
  left: 1.875rem;
}
.right-arrow {
  right: 1.875rem;
}

/* ALTERADO: Container do texto com efeito glassmorphism */
.carousel-item .main-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1rem;
  font-size: 1.8rem;
  margin-right: 8.125rem;

  /* Efeito glassmorphism */
  padding: 2.5rem;
  background: rgba(42, 40, 41, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.main-text {
  height: 15rem;
  margin-top: 3rem;
}

#secundary-text {
  background: linear-gradient(to right, #ffff, #544f51);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

/* ALTERADO: Botão com hover moderno */
.button-start {
  background: linear-gradient(to right, #2a2829, #000000);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 15rem;
  height: 3rem;
  margin: 0.625rem auto 0; /* Centraliza o botão */
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button-start:hover {
  transform: scale(1.05); /* Efeito de zoom suave */
  border-color: white;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1); /* Brilho sutil */
}

/* -------------------- Barra de Informações -------------------- */

.barra-informacoes {
  font-family: "Montserrat", sans-serif;
  display: flex;
  justify-content: space-around; /* Distribuição mais uniforme */
  width: 100%;
  height: 5rem;
  padding: 0 2rem;

  /* NOVO: Efeito glassmorphism */
  background: rgba(42, 40, 41, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.info-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.3125rem;
}

/* ... (Media Queries permanecem as mesmas, mas os ajustes feitos acima serão aplicados) ... */
@media (min-width: 1440px) {
  html {
    font-size: 106.25%;
  }
  #menu-container {
    padding: 0 4rem;
  }
  #banner {
    height: 35rem;
  }
  .carousel-item .main-text {
    margin-right: 10rem;
    font-size: 1.7rem;
  }
  .button-start {
    width: 15rem;
    height: 2.8rem;
    font-size: 1.7rem;
  }
  .barra-informacoes {
    height: 4.5rem;
  }
}
@media (min-width: 1920px) {
  html {
    font-size: 112.5%;
  }
  #menu-container {
    padding: 0 6rem;
  }
  #banner {
    height: 40rem;
  }
  .carousel-item .main-text {
    margin-right: 12rem;
    font-size: 1.8rem;
  }
  .button-start {
    width: 18rem;
    height: 3rem;
    font-size: 1.8rem;
  }
  .barra-informacoes {
    height: 5rem;
  }
}
@media (min-width: 2560px) {
  html {
    font-size: 137.5%;
  }
  #menu-container {
    height: 6rem;
    padding: 0 8rem;
  }
  #logo h1 {
    font-size: 3.5rem;
  }
  #banner {
    height: 50rem;
  }
  .carousel-item .main-text {
    margin-right: 15rem;
    font-size: 2.2rem;
  }
  .button-start {
    width: 22rem;
    height: 4rem;
    font-size: 2.2rem;
  }
  .barra-informacoes {
    height: 6rem;
  }
}
@media (min-width: 3840px) {
  html {
    font-size: 187.5%;
  }
  #menu-container {
    height: 8rem;
    padding: 0 12rem;
  }
  #logo h1 {
    font-size: 4.5rem;
  }
  #banner {
    height: 70rem;
  }
  .carousel-item .main-text {
    margin-right: 20rem;
    font-size: 3rem;
  }
  .button-start {
    width: 30rem;
    height: 6rem;
    font-size: 3rem;
  }
  .arrow img {
    width: 4rem;
  }
  .barra-informacoes {
    height: 8rem;
  }
}
