/* Módulo CSS: _siderBarGlobal.css */
/* =========================================
   Módulo CSS: _siderBarGlobal.css (Cabeçalho, Sidebar Mobile e Rodapé)
========================================= */
body.no-scroll {
  overflow: hidden !important;
  height: 100vh;
  touch-action: none;
}

/* --- Base Mobile do Global Sidebar e Overlay (siderBarGlobal.js) --- */
#globalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 10004;
}

#globalOverlay.active {
  visibility: visible;
  opacity: 1;
}

#globalSidebar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 85vh; /* Menu sobe até 85% da tela */
  background: var(--bg-surface, #ffffff);
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 10005;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

#globalSidebar.active {
  transform: translateY(0);
}

#sidebarHeaderDrag {
  width: 100%;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
}

#sidebarHeaderDrag::after {
  content: "";
  width: 40px;
  height: 4px;
  background-color: #d1d5db;
  border-radius: 10px;
}

/* --- CABEÇALHO --- */
.cabecalho {
  position: sticky;
  top: 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 0 4.88rem;
  background-color: #fff;
  z-index: 999;
}
@media (max-width: 59.375em) {
  .cabecalho {
    padding: 0 3.12rem;
  }
}
.cabecalho--carrinho .cabecalho__navegacao,
.cabecalho--carrinho .cabecalho__icones,
.cabecalho--carrinho .cabecalho__menu {
  display: none;
}
@media (max-width: 59.375em) {
  .cabecalho--carrinho .cabecalho__container {
    margin: auto;
  }
}
.cabecalho--carrinho .cabecalho__logo {
  margin: 3.05rem 0;
}
.cabecalho--carrinho .cabecalho__logo-a {
  margin: auto;
}
.cabecalho__container {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: start;
  gap: 3.66vw;
  width: 100%;
}
@media (max-width: 59.375em) {
  .cabecalho__container {
    width: auto;
  }
}

/* Controle Menu Mobile (Sidebar) */
.cabecalho__menu {
  display: none;
  width: 2.2rem;
  cursor: pointer;
}
@media (max-width: 59.375em) {
  .cabecalho__menu {
    display: block;
  }
}
.cabecalho__menu-x {
  display: none;
  font-weight: 500;
  font-size: 2.4rem;
  text-align: center;
}
.cabecalho--aberto .cabecalho__menu-x {
  display: block;
}
.cabecalho--aberto .cabecalho__menu-icone {
  display: none;
}
.cabecalho--aberto .cabecalho__navegacao {
  transform: translateX(0);
}
.cabecalho--aberto .cabecalho__imagem-link {
  display: none;
}

.cabecalho__logo {
  min-width: 15rem;
  width: 15rem;
  margin-bottom: 2px;
}
@media (max-width: 59.375em) {
  .cabecalho__logo {
    margin: 3.05rem 0;
  }
}

/* Sidebar Mobile / Navegação */
.cabecalho__navegacao {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  justify-content: start;
  gap: 4.88rem;
  width: 100%;
  max-width: 81rem;
}
@media (max-width: 59.375em) {
  .cabecalho__navegacao {
    transition: transform 0.5s ease-in-out;
    left: 0;
    top: 100%;
    background-color: #fff;
    min-width: 100%;
    height: 100vh;
    max-height: calc(100vh - 75px);
    overflow-y: scroll;
    transform: translateX(-170%);
    position: absolute;
  }
  .cabecalho__navegacao::-webkit-scrollbar {
    display: none;
  }
}

.cabecalho__lista {
  list-style: none;
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.6rem;
}
@media (max-width: 59.375em) {
  .cabecalho__lista {
    flex-direction: column;
    gap: 0;
    justify-content: start;
  }
}
.cabecalho__lista--tipo {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: start;
  gap: 0.42rem;
  width: auto;
}
@media (max-width: 59.375em) {
  .cabecalho__lista--tipo {
    margin: 0 2rem 0 4rem;
  }
  .cabecalho__lista--tipo:nth-child(2) {
    margin-top: 2rem;
  }
  .cabecalho__lista--tipo:last-child {
    margin-bottom: 2rem;
  }
}

.cabecalho__link {
  font-size: 1.33rem;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  line-height: 1;
  border-bottom: solid 2px transparent;
}
@media (max-width: 59.375em) {
  .cabecalho__link {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    margin: 0 2rem 2rem 2rem;
  }
  .cabecalho__link::after {
    content: "❯";
    transform: rotate(90deg);
  }
  .cabecalho__link--tipo {
    margin-left: 0;
  }
  .cabecalho__link--tipo::after {
    content: "";
  }
}
.cabecalho__link--ofertas {
  color: red;
}
.cabecalho__link--perfil {
  text-transform: none;
  font-weight: 400;
  border-bottom: none;
}
.cabecalho__link--tipo {
  text-transform: none;
  font-weight: 400;
  color: #626262;
}
.cabecalho__link--tipo:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.cabecalho__item-lista {
  padding: 3.12rem 0;
}
@media (max-width: 59.375em) {
  .cabecalho__item-lista {
    border-top: 1px solid #d8d9da;
    padding: 2rem 0 0 0;
    cursor: pointer;
  }
  .cabecalho_item-lista:hover .cabecalho_expansao-tipos {
    display: flex;
  }
  .cabecalho__item-lista--aberto .cabecalho__expansao-tipos {
    max-height: 100rem;
    border-top: 1px solid #d8d9da;
    transition: max-height 0.3s ease-in-out;
  }
}

.cabecalho__expansao-tipos {
  display: none;
  flex-flow: row nowrap;
  align-items: stretch;
  justify-content: start;
  gap: 4.88rem;
  position: absolute;
  background-color: #fff;
  left: 0;
  right: 0;
  top: 100%;
  padding: 3.12rem 4.88rem;
  box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.1);
}
@media (max-width: 59.375em) {
  .cabecalho__expansao-tipos {
    display: flex;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    position: static;
    background-color: #f9f9f9;
    flex-direction: column;
    gap: 2rem;
    transition: max-height 0.3s ease-in-out;
  }
}

.cabecalho__imagem {
  display: none;
  max-height: 35rem;
  width: 100%;
  object-fit: cover;
}
@media (min-width: 768px) {
  .cabecalho__imagem {
    display: block;
  }
}

/* Ícones de Navegação e Perfil */
.cabecalho__icones {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: start;
  gap: 1.02rem;
}
.cabecalho__icone {
  color: inherit;
  fill: currentColor;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
.cabecalho__icone--logado {
  display: none;
  fill: transparent;
  stroke: currentColor;
}
.cabecalho__icone--notificacao {
  fill: transparent;
  stroke: currentColor;
}
.cabecalho__link-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  line-height: 0;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}
.cabecalho__link-icone--notificacoes {
  border: none;
  background: transparent;
  padding: 0;
}
.cabecalho__link-icone:hover {
  color: #111827;
  background-color: rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
.cabecalho__link-icone--logado .cabecalho__icone {
  display: none;
}
.cabecalho__link-icone--logado .cabecalho__icone--logado {
  display: block;
}
.cabecalho__icone-carrinho {
  position: relative;
}
.cabecalho__itens {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(55%, -55%);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  background-color: red;
  color: #fff;
  font-size: 1.11rem;
  align-items: center;
  justify-content: center;
}
.cabecalho__itens--visivel {
  display: flex;
}

.cabecalho__informacoes-perfil {
  display: none;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: start;
  gap: 1.28rem;
  position: absolute;
  top: 100%;
  right: 0;
  transform: translate(0.1rem, 7.5%);
  width: max-content;
  border-radius: 0.5rem;
  padding: 3.12rem 2rem;
  background-color: #fff;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
}
.cabecalho__informacoes-perfil--aberto {
  display: flex;
}

.cabecalho__painel-notificacoes {
  position: absolute;
  top: calc(100% + 1.2rem);
  right: 0;
  width: min(36rem, 90vw);
  padding: 1.6rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2.2rem 5rem rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 10020;
}

.cabecalho__painel-notificacoes-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
}

.cabecalho__painel-notificacoes-titulo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.cabecalho__painel-notificacoes-subtitulo,
.cabecalho__painel-notificacoes-texto {
  font-size: 1.2rem;
  line-height: 1.45;
  color: #64748b;
}

.cabecalho__painel-notificacoes-permissao {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 1.2rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.cabecalho__painel-notificacoes-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cabecalho__notificacoes-botao,
.cabecalho__notificacoes-acao {
  border: none;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.2rem;
}

.cabecalho__notificacoes-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 600;
}

.cabecalho__notificacoes-botao--primario {
  background: #111827;
  color: #fff;
}

.cabecalho__notificacoes-botao--secundario,
.cabecalho__notificacoes-acao {
  color: #0f766e;
}

.cabecalho__notificacoes-acao {
  padding: 0.4rem 0;
  font-weight: 600;
}

.cabecalho__painel-notificacoes-lista {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 34rem;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.cabecalho__notificacao-item {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  border-radius: 1.4rem;
  padding: 1.2rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.cabecalho__notificacao-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 118, 110, 0.25);
}

.cabecalho__notificacao-item strong {
  font-size: 1.35rem;
  color: #0f172a;
}

.cabecalho__notificacao-item p {
  font-size: 1.2rem;
  line-height: 1.45;
  color: #475569;
}

.cabecalho__notificacao-item--nova {
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.95), #ffffff);
}

.cabecalho__notificacao-item--lida {
  opacity: 0.82;
}

.cabecalho__notificacao-data {
  font-size: 1.1rem;
  color: #94a3b8;
}

.cabecalho__notificacao-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cabecalho__notificacao-tag--pedido_concluido {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.cabecalho__notificacao-tag--novo_produto {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.cabecalho__notificacao-tag--desconto_loja {
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
}

.cabecalho__notificacao-tag--sistema {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.cabecalho__notificacao-vazia {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
}

.cabecalho__notificacao-vazia strong {
  display: block;
  margin-bottom: 0.6rem;
  color: #0f172a;
}

/* Variação Tema Escuro (Black) */
.cabecalho--black {
  background-color: var(--bg-preto);
}
.cabecalho--black .cabecalho__lista {
  background-color: var(--bg-preto);
}
.cabecalho--black .cabecalho__link,
.cabecalho--black .cabecalho__link--tipo {
  color: aliceblue;
}
.cabecalho--black .cabecalho__expansao-tipos {
  background-color: var(--bg-preto);
  z-index: 9999;
}
.cabecalho--black .cabecalho__informacoes-perfil {
  background: black;
}
.cabecalho--black .cabecalho__link-icone:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}
.cabecalho--black .cabecalho__painel-notificacoes {
  background: rgba(10, 10, 10, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2.2rem 5rem rgba(0, 0, 0, 0.45);
}
.cabecalho--black .cabecalho__painel-notificacoes-titulo,
.cabecalho--black .cabecalho__notificacao-item strong,
.cabecalho--black .cabecalho__notificacao-vazia strong {
  color: #f8fafc;
}
.cabecalho--black .cabecalho__painel-notificacoes-subtitulo,
.cabecalho--black .cabecalho__painel-notificacoes-texto,
.cabecalho--black .cabecalho__notificacao-vazia,
.cabecalho--black .cabecalho__notificacao-item p {
  color: #94a3b8;
}
.cabecalho--black .cabecalho__painel-notificacoes-permissao,
.cabecalho--black .cabecalho__notificacao-item {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}
.cabecalho--black .cabecalho__notificacao-item--nova {
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.7), rgba(15, 23, 42, 0.7));
}
.cabecalho--black .cabecalho__notificacoes-botao--primario {
  background: #06b6d4;
  color: #0f172a;
}
.cabecalho--black .cabecalho__notificacoes-botao--secundario,
.cabecalho--black .cabecalho__notificacoes-acao {
  color: #67e8f9;
}

/* --- RODAPÉ --- */
.rodape {
  font-size: 1.33rem;
  padding-top: 2.5rem;
}
.rodape--carrinho .rodape__secao-formulario {
  display: none;
}
.rodape--conta {
  padding-top: 0;
}
.rodape__secao-informacoes {
  padding: 3.12rem 2rem;
}
.rodape__container {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.6rem;
  max-width: 136.6rem;
  margin: 0 auto;
}
@media (max-width: 59.375em) {
  .rodape__container {
    flex-direction: column;
    gap: 3.12rem;
    align-items: center;
  }
}
.rodape__secao-formulario {
  background-color: #f9f9f9;
  padding: 3.12rem 2rem;
}

/* App & Newsletter */
.rodape__app-newsletter {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 4.88rem;
  max-width: 136.6rem;
  margin: 0 auto;
}
@media (max-width: 59.375em) {
  .rodape__app-newsletter {
    flex-direction: column;
    max-width: 66rem;
  }
}
.rodape__app,
.rodape__newsletter {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: start;
  gap: 1rem;
}
@media (max-width: 59.375em) {
  .rodape__app,
  .rodape__newsletter {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}
.rodape__container-app,
.rodape__container-newsletter {
  display: flex;
  flex-flow: column nowrap;
  gap: 1.6rem;
}
.rodape__logo {
  min-width: 1.8rem;
  height: 2.3rem;
}
.rodape__texto-newsletter {
  font-size: 3.32rem;
  font-family: serif;
  font-weight: 700;
  line-height: 1;
}
.rodape__imagens-loja {
  max-height: 4.2rem;
}

/* Infos e Links Rodapé */
.rodape__informacoes {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.6rem;
  max-width: 60%;
  width: 100%;
}
@media (max-width: 59.375em) {
  .rodape__informacoes {
    max-width: 66rem;
  }
}
@media (max-width: 30em) {
  .rodape__informacoes {
    flex-wrap: wrap;
    text-align: center;
  }
}
.rodape__informacao {
  display: flex;
  flex-flow: column nowrap;
  gap: 1.6rem;
}
@media (max-width: 30em) {
  .rodape__informacao {
    min-width: 100%;
  }
}
.rodape__links {
  display: flex;
  flex-flow: column nowrap;
  gap: 0.65rem;
  list-style: none;
  color: #585858;
}
.rodape__links a {
  text-decoration: none;
  color: inherit;
}
.rodape__links a:hover {
  text-decoration: underline;
}
.rodape__titulo {
  font-family: serif;
  font-size: 1.92rem;
  font-weight: 700;
}

.rodape__atendimento {
  display: flex;
  flex-flow: column nowrap;
  gap: 1.6rem;
  width: 100%;
  max-width: 46.4rem;
}
@media (max-width: 59.375em) {
  .rodape__atendimento {
    max-width: 60rem;
    text-align: center;
  }
}
.rodape__ancoras {
  display: flex;
  flex-flow: row wrap;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}
.rodape__ancora-icone {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration-thickness: 1px;
  color: inherit;
  width: 50%;
}
@media (max-width: 59.375em) {
  .rodape__ancora-icone {
    width: auto;
    flex: 1;
    justify-content: center;
  }
}
.rodape__icone {
  width: 2rem;
}
.rodape__horarios {
  font-size: 1.11rem;
}
.rodape__redes {
  margin-top: 2rem;
  display: flex;
  justify-content: space-evenly;
  gap: 1rem;
}
.rodape__rede {
  opacity: 0.6;
  filter: grayscale(1);
}
.rodape__rede:hover {
  opacity: 1;
  filter: none;
}

/* Diferenciais e Certificações */
.rodape__diferenciais {
  display: flex;
  flex-flow: row nowrap;
  justify-content: start;
  gap: 2rem;
  margin: 6.1rem auto;
}
@media (max-width: 30em) {
  .rodape__diferenciais {
    flex-wrap: wrap;
  }
}
.rodape__diferencial {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  gap: 0.65rem;
  opacity: 0.5;
  max-width: 25rem;
  text-align: center;
}
.rodape__diferencial-imagem {
  max-height: 5rem;
  width: auto;
}
.rodape__diferencial-titulo {
  font-size: 1.6rem;
  font-weight: 600;
}

.rodape__certificacoes {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}
@media (max-width: 59.375em) {
  .rodape__certificacoes {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4.88rem;
  }
  .rodape__certificacao:nth-child(2) {
    order: -1;
    width: 100%;
  }
}
.rodape__certificacao {
  display: flex;
  flex-flow: column nowrap;
  gap: 1.6rem;
}
.rodape__certificacao-titulo {
  font-size: 1.6rem;
  font-weight: 600;
}
@media (max-width: 59.375em) {
  .rodape__certificacao-titulo {
    text-align: center;
  }
}
.rodape__certificados {
  display: flex;
  align-items: center;
  gap: 1.02rem;
}
@media (max-width: 59.375em) {
  .rodape__certificados {
    justify-content: center;
  }
}
.rodape__certificado--opacidade {
  opacity: 0.3;
}
.rodape__certificado--opacidade:hover {
  opacity: 1;
}
.rodape__secao-empresa {
  display: flex;
  justify-content: center;
  background-color: #f0f0f0;
  font-size: 1.11rem;
  opacity: 0.5;
  padding: 1.28rem;
  text-align: center;
}
