.navbar.navbar-mind {
  box-shadow: 0 0 5px 5px rgba(180, 189, 182, 0.2);
}

.navbar.navbar-mind-mini {
  box-shadow: 0 0 5px 5px rgba(180, 189, 182, 0.2);
  height: 40px;
}

.custom-home {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 0.700rem;
  color: #126DA6;
  text-align: center;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-home:hover {
  color: #031D40
}

.navbar {
  background-color: #ffffff;
  padding: 10px 20px;
  margin: 15px 0;
}

.navbar .container {
  max-width: 100%;
  width: 100%;
}


.navbar-expand-lg .navbar-collapse {
  flex-direction: row;
  align-content: center;
  justify-content: flex-end;
  align-items: center;
}



.navbar-nav.navbar-right.navbar-custom.custom-nav .button-style-main {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 0.875rem;
  background-color: transparent;
  color: #126DA6;
  padding: 10px 3px;
  text-decoration: none;
  border-radius: 5px;
  transition: color 0.3s ease;
}

.navbar-nav.navbar-right.navbar-custom.custom-nav .button-style-main:hover {
  color: #031D40
}

.separator {
  margin: 10px 1px 0;
  color: #126DA6;
  font-size: 18px;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .separator {
    display: none;
  }
}

@media (max-width: 992px) {
  .nav-space {
    display: none;
  }
}

.navbar-nav.navbar-right.navbar-custom.custom-nav .icon-cart-main {
  color: black;
  font-size: 15px;
  text-shadow: 0.2px 0.2px 0 #000, -0.2px -0.2px 0 #000;
  transition: color 0.3s ease;
}

.navbar-nav.navbar-right.navbar-custom.custom-nav .icon-cart-main:hover {
  color: #031D40
}

nav.navbar .navbar-mind {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: center;
}

.navbar-nav.navbar-right.navbar-custom.custom-nav .navbar-mind {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 0.700rem;
  background-color: transparent;
  color: #004a7e;
  padding: 10px 3px;
  text-decoration: none;
  border-radius: 5px;
  transition: color 0.3s ease;
}

.navbar-nav.navbar-right.navbar-custom.custom-nav .navbar-mind:hover {
  color: #fff;
  background-color: #005d9d;
}


/* Estilos para o menu principal */
.navbar-custom .dropdown {
  position: relative;
  background-color: transparent;
  margin: 10px;
  border-radius: 5px;
}

.navbar-custom .dropdown>a {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-decoration: none;
  background-color: transparent;
}


.navbar-nav.navbar-right.navbar-custom.custom-nav .dropdown:hover>a {
  color: #fff;
  background-color: #005d9d;
}

/* Menu suspenso */
.navbar-nav.navbar-right.navbar-custom.custom-nav .dropdown-menu {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-decoration: none;
  background-color: #005d9d;
  font-size: 0.7rem;
  border: none;
  padding: 0;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  border-radius: 5px;
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1200;
}

.dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background-color: #ffffff;
  border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: #005d9d;
}

.navbar-nav.navbar-right.navbar-custom.custom-nav .dropdown:hover .dropdown-menu {
  display: block;
  border-radius: 5px;
}

.navbar-nav.navbar-right.navbar-custom.custom-nav .dropdown-menu a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  background-color: #005d9d;
  transition: background-color 0.3s ease;

}

.navbar-nav.navbar-right.navbar-custom.custom-nav .dropdown-menu a:hover {
  background-color: #004a7e;
  color: #fff;
}

#estilizacao-verprodutos {
  position: relative;
  text-align: center;
  color: #fff; 
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-decoration: none;
  display: block;
  padding: 10px;
  background-color: transparent;
  transition: color 0.3s ease; 
}

#estilizacao-verprodutos:hover {
  color: #42e8e0; 
}

#estilizacao-verprodutos::after {
  content: "";
  position: absolute;
  bottom: 2px; 
  left: 50%; 
  width: 0;
  height: 3px; 
  background: linear-gradient(90deg, #ffffff, #42e8e0); 
  transition: all 0.3s ease; 
  transform: translateX(-50%);
}

#estilizacao-verprodutos:hover::after {
  width: 100%; 
}



/* Ajuste geral para dropdowns */
.navbar-nav .dropdown-menu {
  white-space: normal;
  overflow-wrap: break-word;
  min-width: 250px;
  max-width: 400px;
  padding: 10px;
  z-index: 1050;
  position: absolute;
}

/* Dropdown Acesso ao Financeiro */
#dropdown-financeiro {
  padding: 0;
  margin-left: 8px;
  position: relative;
  z-index: 2;
  /* Maior que #dropdown-pedidos */
}

#dropdown-financeiro .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #005d9d;
  min-width: 250px;
  max-width: 300px;
  padding: 10px 0;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  z-index: 1050;
}

#dropdown-financeiro .dropdown-menu a {
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.5;
  display: block;
}

#dropdown-financeiro .dropdown-menu a:hover {
  color: white;
  background-color: #007bff;
}

/* Dropdown Consultar Pedidos */
#dropdown-pedidos {
  padding: 0;
  margin-left: 8px;
  position: relative;
  z-index: 1;
  /* Menor que #dropdown-financeiro */
}

#dropdown-pedidos .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #005d9d;
  min-width: 250px;
  max-width: 300px;
  padding: 10px 0;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  z-index: 1049;
}

#dropdown-pedidos .dropdown-menu a {
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.5;
  display: block;
}

#dropdown-pedidos .dropdown-menu a:hover {
  color: white;
  background-color: #007bff;
}

#produtos-controlados-style {
  display: block;
  padding: 5px 0;
  margin: 0;
  margin-left: 22px;
  width: auto;
}

#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1050;
}

#search-button {
  border: none;
  background: none;
}

#global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner-ring {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 6px solid transparent;
  border-radius: 50%;
}

.spinner-ring:nth-child(1) {
  border-top: 6px solid #3ECCC7;
  animation: spin1 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
  border-bottom: 6px solid #005D9D;
  animation: spin2 1.5s linear infinite;
}

@keyframes spin1 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin2 {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}


.search-loader-container {
  position: relative;
  display: flex;
  align-items: center;
}

#search-loader {
  width: 18px;
  height: 18px;
  position: absolute;
  right: 53px;
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid #3ECCC7;
  border-top-color: #005D9D;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }

  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

.d-none {
  display: none !important;
}



.form-control:disabled,
.form-control[readonly] {
  background: linear-gradient(270deg, rgba(54, 232, 158, 0.3), rgba(0, 93, 157, 0.3));
  outline: 2px solid white;
  background-size: 300% 100%;
  animation: gradientMove 3s ease-in-out infinite;
  color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 93, 157, 0.5);
}

@keyframes gradientMove {
  0% {
    background-position: 100% 0;
  }

  25% {
    background-position: 50% 0;
  }

  50% {
    background-position: 0 0;
  }

  75% {
    background-position: 50% 0;
  }

  100% {
    background-position: 100% 0;
  }

}



/* Estilos para menus com max-width: 900px */

@media (max-width: 995px) {

  .segmentos-list,
  .saiba-mais-list {
    display: none;
    list-style-type: none;
    padding-left: 0;
  }

  .segmentos-list a,
  .saiba-mais-list a {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.600rem;
    color: #005d9d;
    padding-right: 7px;
    padding-left: 1px;
    margin-left: 6px;
  }

  .segmentos-list a::before,
  .saiba-mais-list a::before {
    font-size: 0.8rem;
    color: #005d9d;
    margin-right: 7px;
  }

  nav.navbar {
    position: relative;
  }


  nav.navbar .navbar-mind {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
    line-height: 1;
  }

  .navbar-nav.navbar-right.navbar-custom.custom-nav .navbar-mind {
    padding: 7.5px 0;
    position: relative;
    z-index: 900;
  }

  .navbar-nav.navbar-right.navbar-custom.custom-nav .button-style-main {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 0.700rem;
    background-color: transparent;
    color: #004a7e;
    margin-top: 3px;
    font-size: 0.7rem;
    padding: 3px 0;
    display: inline-block;
    border-radius: 5px;

  }

  .navbar-nav.navbar-right.navbar-custom.custom-nav .button-style-main:hover {
    color: #fff;
    background-color: #005d9d;
  }

  .navbar-nav.navbar-right.navbar-custom.custom-nav .icon-cart-main {
    color: #004a7e;
    font-size: 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 5px;
    border-radius: 5px;
    display: inline-block;
    margin-right: 55px;
  }

  .navbar-nav.navbar-right.navbar-custom.custom-nav .icon-cart-main:hover {
    color: #ffffff;
    background-color: #005d9d;
    text-shadow: 0 0 1.5px #005d9d;
  }

}

.navbar-nav.navbar-right.navbar-custom.custom-nav .navbar-mind {
  display: flex;
  flex-direction: row;
  margin-right: 5px;
}



.navbar-mind-search {
  margin: 0 auto;
}

.navbar-mind-search .style-mind-search {

  max-width: 100%;
  width: 600px;
  max-width: 100%;
  border-radius: 10px;
  padding: 10px 10px 10px 40px;
  border: 2px solid transparent;
  position: relative;
  background-color: transparent;
}

.search-form-style {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--color-pantone-285C);
  border-radius: 10px;
  transition: all 300ms ease-in-out;
  box-shadow: none;
}

.search-form-style .style-mind-search:focus {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
}

.search-form-style i {
  color: var(--color-pantone-285C);
  font-size: 15px;
  padding: 0 10px;
}

.search-form-style:focus-within {
  box-shadow: 0 0 4px 3px rgba(0, 123, 255, 0.25);
}

#cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 1200;
}


.cart-sidebar-open+#cart-overlay {
  display: block;
}


.cart-sidebar {
  position: fixed;
  right: -750px;
  top: 0;
  width: 520px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0px 8px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1200;
  padding: 15px;
  font-family: "Montserrat", sans-serif;
}


.cart-sidebar-open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#cart-item-count {
  font-weight: bold;
}

.cart-body {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.cart-footer {
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
}


.cart-item-img { width:40px; height:40px; flex:0 0 auto; object-fit:contain; }

.erro-quantidade {
  display: block;
  width: 100%;
  font-size: 0.875rem;
  margin-top: 4px;
}

.cart-item img {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

.cart-item input {
  width: 60px;
  text-align: center;
}

.cart-item .btn-remove {
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  color: #333;
  padding: 4px 8px;
  transition: all 0.3s ease-in-out;
}

.cart-item .btn-remove:hover {
  background-color: #e0e0e0;
  color: #000;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
}

.cart-item-title {
  font-size: 14px;
  color: #333;
}

#cart-count {
  background-color: #005d9d;
  color: white;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 100%;
  font-size: 14px;
}

.btn-finalizar-compra {
  background-color: #005d9d;
  color: white !important;
  font-size: 16px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  font-weight: bold;
  box-shadow: none;
  transition: background 0.3s ease-in-out;
}


.btn-finalizar-compra:hover {
  background-color: #004380 !important;
}

.produto-peso-total {
  font-size: 15px;
  color: #666;
  min-width: 70px;
  margin-left: 8px;
  white-space: nowrap;
}


#menu-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2000px;
  background-color: #f8f9fa;
  z-index: 1000;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
  margin-top: 87px;

}

#menu-bg.menu-open {
  opacity: 0;
  pointer-events: none;
}


@media (max-width: 1120px) and (min-width: 1081px) {
  .navbar-mind-search .style-mind-search {
    width: 450px;
    padding: 8px;
  }

  .navbar.bg-body-tertiary {
    padding: 0;
    margin-left: 0;
  }
}

@media (max-width: 1080px) {
  .navbar-mind-search .style-mind-search {
    width: 400px;
    padding: 8px;
  }

  .navbar.bg-body-tertiary {
    padding: 0;
    margin-left: 0;
  }

}


@media (max-width: 768px) {
  .search-form-style {
    justify-content: flex-start;
  }

  .search-form-style .style-mind-search {
    width: 300px;
    padding: 6px;
    margin-left: 10px;
  }

  .navbar.bg-body-tertiary {
    padding: 0;
    margin-left: 0;
  }
}

/* Para telas de até 480px (celulares) */
@media (max-width: 480px) {

  .navbar.bg-body-tertiary {
    padding: 0;
    margin-left: 0;
  }

  .search-form-style {
    justify-content: flex-start;
  }

  .search-form-style .style-mind-search {
    width: 200px;
    padding: 4px;
    margin-left: 5px;
  }
}

nav.navbar.navbar-mind-scroll.navbar-mind-mini {
  height: 65px;
}

nav.navbar.navbar-mind-scroll.navbar-mind-mini.open {
  height: auto;
}


nav.navbar.navbar-mind-scroll div.collapse.navbar-collapse {
  align-items: flex-start
}

nav.navbar.navbar-mind-scroll ul.navbar-mind {
  display: flex;
  flex-wrap: wrap;
}


.navbar-nav.navbar-right.navbar-custom.custom-nav .icon-seta {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 0.700rem;
  background-color: transparent;
  color: #004a7e;
  padding: 18px 3px;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.bi.bi-caret-down-fill {
  padding: 18px 3px;
  font-size: 8px;
}

@media (min-width: 992px) {
  nav.navbar.navbar-mind-scroll.navbar-expand-lg {
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
  }
}