/* Base Styles */
header {
  position: relative;
  z-index: 100;
}

/* Quick Menu */
.quickmenu-div {
  background-color: #001b33;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 16px 0 20px;
}

.quickmenu-container {
  width: 80%;
  display: flex;
  margin: 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

/* Mobile Navigation */
.header-navbar__close-mobile {
  display: none;
}

.header-navbar__mobile {
  position: fixed;
  top: -100%;
  right: 0;
  width: 100%;
  height: fit-content;
  background: #fff;
  z-index: 5;
  transition: top 0.3s ease;
}

.header-navbar__mobile.active {
  top: 72px;
}

.header-navbar__links {
  padding: 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.header-navbar__mobile .navbar-header-menu-list__link {
  color: #000;
  text-align: center;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: 143%;
  letter-spacing: -0.56px;
  text-transform: uppercase;
  margin: 0 auto;
}

.header-navbar__mobile .navbar-header-menu-list__link:hover {
  color: #284c85 !important;
  transition: 0.3s ease-in-out;
}

.header-navbar__mobile .secondary-btn {
  width: 100%;
}

.language-dropdown {
  position: relative;
}

.header-navbar__mobile .language-dropdown__btn {
  border: 1px solid #121212;
}

.header-navbar__mobile .language-dropdown__btn .chevron-down {
  stroke: #121212;
}

@media screen and (min-width: 425px) {
  .header-navbar__mobile .language-dropdown {
    display: none;
  }
}

/* Main Navigation */
.navbar-header {
  width: 100%;
  padding: 8px 0;
  background: linear-gradient(
    180deg,
    rgba(0, 19, 45, 0.76) 0%,
    rgba(0, 19, 45, 0.52) 100%
  );
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  z-index: 10;
  transition: top 0.3s ease;
}

.navbar-header.scrolled {
  background: #fff;
}

.navbar-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  max-width: 1520px;
  width: 90%;
}

.navbar-header__content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-header-menu {
  display: none;
}

.navbar-header-menu-list {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
  /* margin-right: 48px; */
}

.navbar-header-menu-list__link {
  color: #ffffffbf;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.navbar-header.scrolled .navbar-header-menu-list__link {
  color: #676767;
}

.navbar-header.scrolled .navbar-header-menu-list__link svg path {
  fill: #676767;
}

.navbar-header.scrolled .navbar-header-menu-list__link:hover,
.navbar-header.scrolled .navbar-header-menu-list__link.active {
  color: #00132d;
  font-weight: 500;
}

.navbar-header-menu-list__link::before {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  opacity: 0;
  transition:
    bottom 0.2s ease,
    opacity 0.2s ease;
}

.navbar-header-menu-list__link:hover::before,
.navbar-header-menu-list__link.active::before {
  opacity: 1;
  bottom: -11px;
}

.navbar-header.scrolled .navbar-header-menu-list__link::before,
.navbar-header.scrolled .navbar-header-menu-list__link::before {
  background-color: #00132d;
}

.navbar-header-menu-list__link:hover,
.navbar-header-menu-list__link.active {
  color: #fff;
}

.navbar-header-menu-list__link svg {
  transition: transform 0.2s ease;
}

.navbar-header-menu-list__link:hover svg {
  transform: rotate(-180deg);
}

.navbar-header-menu + a {
  display: none;
}

/* Submenu */
.sub-menu__container {
  position: absolute;
  top: 98px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1150px;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.3s ease,
    opacity 0.3s ease;
  z-index: 10;
}

.sub-menu:hover .sub-menu__container {
  visibility: visible;
  opacity: 1;
}

.sub-menu__container-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 64px;
  max-width: 1520px;
  width: 90%;
  margin: 0 auto;
}

.sub-menu__container-column {
  width: 100%;
}

.sub-menu__container-column .sub-menu__container-column__title {
  color: #121212;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: 170%;
  margin-bottom: 32px;
}

.sub-menu__container-column ul {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-rows: 1fr;
  grid-template-rows: repeat(6, auto);
  gap: 24px 48px;
}

.sub-menu__container-column a {
  max-width: 250px;
  transition: all 0.2s ease;
  display: block;
  width: 100%;
  height: fit-content;
  color: #424242;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
  line-height: 170%;
  text-decoration: none;
}

/* Produtos Submenu */
.produtos-submenu__container {
  display: grid;
  grid-template-columns: 1fr 1fr 400px;
  margin: 0 auto;
}

/* Coluna Esquerda: Categorias */
.produtos-submenu__categories {
  background: #fff;
  padding: 40px 32px;
}

.produtos-submenu__title {
  color: #424242;
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  margin-bottom: 40px;
}

.produtos-submenu__categories-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.categoria-link {
  color: #121212;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  text-decoration: none;
  display: block;
  padding: 0 24px;
  transition: all 0.2s ease;
  position: relative;
}

.categoria-link:hover,
.categoria-link.active {
  color: #284c85;
  font-weight: 600;
}

.categoria-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  background: #0066cc;
  width: 2px;
  height: 100%;
  transform: translateY(-50%);
}

/* Coluna do Meio: Produtos */
.produtos-submenu__products {
  position: relative;
  padding: 40px 32px;
  background: #eee;
}

.produtos-list-container {
  display: none;
  animation: fadeIn 0.3s ease;
}

.produtos-list-container.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.produtos-list-title {
  color: #424242;
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 40px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.produtos-list-title svg {
  width: 16px;
}

.produtos-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.produto-link {
  color: #121212;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  text-decoration: none;
  display: block;
  padding: 0 24px;
  transition: all 0.2s ease;
  position: relative;
}

.produto-link:hover,
.produto-link.active {
  color: #284c85;
  font-weight: 500;
}

.produto-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: #0066cc;
  transition: height 0.3s ease;
}

.produto-link:hover::before,
.produto-link.active::before {
  height: 100%;
}

/* Coluna Direita: Card do Produto */
.produtos-submenu__card {
  padding: 40px 32px;
  background: #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.produto-card {
  border-radius: 10px 70px 10px 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.produto-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.produto-card__content {
  padding: 24px;
  background: #fff;
}

.produto-card__content h3 {
  color: #121212;
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  margin-bottom: 16px;
}

.produto-card__content p {
  color: #5c5c5c;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  margin-bottom: 16px;
}

.search-box__mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #ffffffbf;
  border-radius: 50px;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
}

.search-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #ffffffbf;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.navbar-header.scrolled .search-box__mobile {
  border: 1px solid #676767;
}

.navbar-header.scrolled .search-btn {
  color: #676767;
}

/* Hamburger Menu */
.navbar-header-menu__hamburguer {
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-header-menu__hamburguer svg {
  width: 24px;
  height: 24px;
}

.navbar-header-menu__hamburguer svg path {
  stroke: #ffffff;
}

.navbar-header.scrolled .navbar-header-menu__hamburguer svg path {
  stroke: #121212;
}

.navbar-header .language-dropdown {
  display: none;
  position: relative;
}

.language-dropdown__btn {
  background: transparent;
  border: 1px solid #ffffffbf;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  border-radius: 24px;
  transition: all 0.3s ease;
  min-width: 80px;
}

.navbar-header.scrolled .language-dropdown__btn {
  border: 1px solid #676767;
}

.navbar-header.scrolled .language-dropdown__btn .chevron-down {
  stroke: #676767;
}

.language-dropdown__btn .chevron-down {
  stroke: #fff;
  transition:
    stroke 0.3s ease,
    transform 0.3s ease;
  width: 12px;
  height: 12px;
}

/* Open State Styles */
.language-dropdown.active .language-dropdown__btn {
  background-color: #fff;
  border-color: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 1px solid #eee;
}

.language-dropdown.active .language-dropdown__btn .chevron-down {
  stroke: #121212;
  transform: rotate(180deg);
}

.language-dropdown__menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background-color: #fff;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  list-style: none;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: 100%;
  right: 0;
  left: auto;
}

.current-flag {
  display: flex;
}

.language-dropdown.active .language-dropdown__menu {
  opacity: 1;
  visibility: visible;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #424242;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 130%;
  padding: 8px 16px;
}

.language-option svg,
.language-option img,
.current-flag img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.language-option.active {
  display: none;
}

.produtos-submenu__footer {
  border-radius: 0 0 10px 10px;
  background: #3565b1;
  padding: 20px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.produtos-submenu__footer-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.produtos-submenu__footer-content h3 {
  color: #fff;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
}

/* Responsive Styles */
@media screen and (min-width: 425px) {
  .header-navbar__close-mobile {
    padding: 20px 20px 0 0;
    display: flex;
    justify-content: flex-end;
  }
  .header-navbar__close-mobile button {
    background: none;
    border: none;
    cursor: pointer;
  }
  .header-navbar__close-mobile svg {
    width: 24px;
    height: 24px;
  }
  .header-navbar__mobile {
    right: -250px;
    top: 0;
    width: 250px;
    height: 100%;
    transition: right 0.3s ease;
    z-index: 20;
  }
  .header-navbar__mobile.active {
    right: 0;
    top: 0;
  }
  .header-navbar__mobile .navbar-header-menu-list__link {
    color: #5c5c5c;
    font-size: 0.875rem;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    text-decoration: none;
  }
  .background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 15;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  .header-navbar__mobile.active ~ .background-overlay {
    opacity: 1;
    visibility: visible;
  }
  .navbar-header .language-dropdown {
    display: block;
  }
}

@media screen and (min-width: 768px) {
  .quickmenu-div {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .navbar-header {
    padding: 16px 0;
  }
  .navbar-header-menu {
    display: block;
    margin-right: 48px;
  }
  .navbar-header-menu + a {
    display: flex;
  }
  .navbar-header-menu__hamburguer {
    display: none;
  }
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
