
/* ===== ER: nova disposicao das paginas de categoria (proposta) — INICIO ===== */
/* Depende da classe .er-cat que o js/local/1custom.js poe no body.
   Os filtros continuam na coluna lateral (estilo do er-custom-v3);
   aqui desenha-se a barra de cima, que e uma copia deles. */

/* --- 1. titulo sem a barra verde (e sem as cores das outras categorias) --- */
body#category h1.page-heading.product-listing {
  background: none !important;
  border: 0 !important;
  margin: 4px 0 16px;
  padding: 0;
  color: #1A1A1A;
  font-family: Poppins, -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 26px;
  line-height: 34px;
  font-weight: 700;
  text-transform: none;
}
body#category h1.page-heading.product-listing .cat-name {
  color: inherit; background: none; padding: 0; text-transform: none;
}

/* --- 2. sem a imagem grande no topo --- */
body#category .content_scene_cat .content_scene_cat_bg .image,
body#category .content_scene_cat .content_scene_cat_bg > img { display: none !important; }

/* --- 3. filtros do Creative Elements ---
   Ja nao se escondem por CSS: os blocos foram DESACTIVADOS no proprio
   Creative Elements (ps_ce_content.active=0, hooks displayTopCategory*).
   Deixam de existir no HTML, o que evita qualquer questao de SEO e o
   piscar do conteudo antigo. Ver REVERTER.md. */

/* --- 4. barra de cima: filtros + contagem + ordenar --- */
body#category .er-barra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid #E8EAED;
  font-family: Poppins, -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
}
body#category .er-barra-filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
}
body#category .er-barra-filtros > .er-grupo { flex: 0 1 220px; }
body#category .er-barra-lado {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* botao de cada grupo — mesmo estilo do "Ordenar por" */
body#category .er-barra .er-grupo { position: relative; }
body#category .er-barra .er-botao {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-width: 190px;
  margin: 0;
  padding: 13px 38px 13px 14px;
  background: #fff;
  border: 1px solid #1A1A1A;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  color: #1A1A1A;
  text-align: left;
  cursor: pointer;
  transition: box-shadow .15s;
}
/* a seta igual a do ordenar */
body#category .er-barra .er-botao:after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -7px;
  border-right: 2px solid #1A1A1A;
  border-bottom: 2px solid #1A1A1A;
  transform: rotate(45deg);
  transition: transform .15s;
}
body#category .er-barra .er-grupo.er-aberto .er-botao:after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

/* etiqueta: escondida enquanto nao ha escolha; sobe para o rebordo quando ha */
body#category .er-barra .er-et {
  position: absolute;
  top: -7px; left: 11px;
  padding: 0 6px;
  background: #fff;
  font-size: 11px;
  line-height: 14px;
  color: #6B7280;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
body#category .er-barra .er-grupo.er-com-filtro .er-et { opacity: 1; }

body#category .er-barra .er-valor {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body#category .er-barra .er-grupo.er-com-filtro .er-valor { color: #1860A3; font-weight: 500; }

body#category .er-barra .er-grupo.er-aberto .er-botao { box-shadow: 0 0 0 3px rgba(24,96,163,.12); border-color: #1860A3; }
body#category .er-barra .er-grupo.er-com-filtro .er-botao { border-color: #1860A3; }
body#category .er-barra .er-botao:focus { outline: 2px solid rgba(24,96,163,.35); outline-offset: 1px; }

/* painel */
body#category .er-barra .er-painel {
  display: none;
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  max-height: 320px;
  overflow-y: auto;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
}
body#category .er-barra .er-grupo.er-aberto .er-painel { display: block; }
body#category .er-barra .er-painel ul { margin: 0; padding: 0; list-style: none; }
body#category .er-barra .er-painel li {
  float: none !important; clear: both; width: 100% !important;
  display: flex; align-items: flex-start;
  margin: 0 0 12px; padding: 0 !important; list-style: none;
}
body#category .er-barra .er-painel li:last-child { margin-bottom: 0; }
body#category .er-barra .er-painel input[type="checkbox"],
body#category .er-barra .er-painel input[type="radio"] {
  flex: 0 0 17px; width: 17px; height: 17px; margin: 2px 10px 0 0;
  -webkit-appearance: none; appearance: none;
  background: #fff no-repeat center center;
  border: 1px solid rgba(0,0,0,.14); border-radius: 3px; cursor: pointer;
}
body#category .er-barra .er-painel input[type="radio"] { border-radius: 50%; }
body#category .er-barra .er-painel input:checked {
  background-color: #1860A3; border-color: #1860A3;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.3l2.4 2.4 4.6-5'/%3E%3C/svg%3E");
  background-size: 12px 12px;
}
body#category .er-barra .er-painel label { flex: 1 1 auto; min-width: 0; margin: 0; font-weight: 400; }
body#category .er-barra .er-painel label a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 14px; line-height: 20px; color: #232323; text-decoration: none; cursor: pointer;
}
body#category .er-barra .er-painel label a span { flex: 0 0 auto; color: #6B7280; white-space: nowrap; }
body#category .er-barra .er-painel label a:hover,
body#category .er-barra .er-painel input:checked ~ label a,
body#category .er-barra .er-painel input:checked ~ label a span { color: #1860A3; }

/* etiquetas dos filtros escolhidos */
body#category .er-barra .er-activos { flex: 1 1 100%; margin: 0; padding: 0; background: none; border: 0; }
body#category .er-barra .er-activos .layered_subtitle { display: none; }
body#category .er-barra .er-activos ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
body#category .er-barra .er-activos li {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0; padding: 5px 12px;
  background: #EAF2FA; border: 1px solid rgba(24,96,163,.25); border-radius: 999px;
  font-size: 13px; line-height: 18px; color: #1860A3;
}
body#category .er-barra .er-activos li a { color: #1860A3; text-decoration: none; cursor: pointer; }

/* contagem de produtos */
body#category .er-barra .category-product-count { display: inline-block; }
body#category .er-barra .heading-counter {
  display: inline-block; margin: 0;
  font-size: 14px; line-height: 20px; font-style: normal; text-transform: none;
  color: #6B7280;
}
body#category .er-barra .heading-counter strong { color: #1A1A1A; font-weight: 700; }

/* "Ordenar por" — caixa com a etiqueta sobre o rebordo */
body#category .er-ordenar {
  position: relative;
  display: inline-block;
  min-width: 230px;
}
body#category .er-ordenar .er-ordenar-et {
  position: absolute;
  top: -7px; left: 11px;
  padding: 0 6px;
  background: #fff;
  font-size: 11px;
  line-height: 14px;
  color: #6B7280;
  white-space: nowrap;
}
body#category .er-ordenar select {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 13px 38px 13px 14px;
  background: #fff;
  border: 1px solid #1A1A1A;
  border-radius: 4px;
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 20px;
  color: #1A1A1A;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
body#category .er-ordenar:after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -7px;
  border-right: 2px solid #1A1A1A;
  border-bottom: 2px solid #1A1A1A;
  transform: rotate(45deg);
  pointer-events: none;
}
body#category .er-ordenar select:focus { outline: 2px solid rgba(24,96,163,.35); outline-offset: 1px; }

/* A barra antiga so se esconde depois de o JS ter construido a nova.
   Continua presa ao .er-cat de proposito: se o JS falhar, o cliente
   nao pode ficar sem forma de ordenar. */
body#category.er-cat #center_column #productsSortForm { display: none !important; }
body#category #center_column .content_sortPagiBar .sort:empty,
body#category #center_column .content_sortPagiBar .sortPagiBar:empty { display: none; }

/* ===== ER: paginacao dentro da barra — INICIO =====
   Nas categorias com muitas paginas (ex.: 417, 390 produtos) o tema poe
   "Mostar todos", os numeros das paginas e o "Mostrar N por pagina" em blocos
   com TUDO flutuado. Os blocos ficam com altura zero e o conteudo escapa por
   cima da barra dos filtros. O JS traz estes elementos para dentro da barra
   (ver arrumarPaginacao) e aqui desenha-se a linha. */
body#category .er-barra .er-paginacao {
  flex: 1 0 100%;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  margin-top: 2px; padding-top: 14px; border-top: 1px solid #E6E9EE;
}
body#category .er-barra .er-paginacao .pull-left,
body#category .er-barra .er-paginacao .pull-right { float: none !important; }
body#category .er-barra .er-paginacao form { margin: 0; }
body#category .er-barra .er-paginacao > div.pagination {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0; padding: 0; border: 0; background: none;
}

/* "Mostrar todos" — delineado, como os outros campos da barra */
body#category .er-barra .er-paginacao .showall button {
  height: 38px; padding: 0 16px; border: 1px solid #CBD2DA; border-radius: 6px;
  background: #fff; color: #1860A3; font-size: 13px; font-weight: 500;
  line-height: 36px; text-transform: none; letter-spacing: 0; box-shadow: none;
}
body#category .er-barra .er-paginacao .showall button:hover,
body#category .er-barra .er-paginacao .showall button:focus {
  border-color: #1860A3; background: #F4F8FC; color: #1860A3;
}

/* numeros das paginas */
body#category .er-barra .er-paginacao ul.pagination {
  display: flex; align-items: center; gap: 6px;
  margin: 0; padding: 0; list-style: none; border: 0; border-radius: 0;
}
body#category .er-barra .er-paginacao ul.pagination li { float: none; margin: 0; }
body#category .er-barra .er-paginacao ul.pagination li > a,
body#category .er-barra .er-paginacao ul.pagination li > span {
  display: flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px; margin: 0;
  border: 1px solid #E1E5EA; border-radius: 6px; background: #fff;
  color: #39424E; font-size: 13px; line-height: 1; text-decoration: none;
}
body#category .er-barra .er-paginacao ul.pagination li.active > span,
body#category .er-barra .er-paginacao ul.pagination li.current > span {
  background: #1860A3; border-color: #1860A3; color: #fff; font-weight: 600;
}
body#category .er-barra .er-paginacao ul.pagination li.disabled > span { opacity: .35; }
body#category .er-barra .er-paginacao ul.pagination li > a:hover {
  border-color: #1860A3; color: #1860A3; background: #F4F8FC;
}

/* "Mostrar N por pagina" encostado a direita */
body#category .er-barra .er-paginacao .nbrItemPage { margin-left: auto; }
body#category .er-barra .er-paginacao .nbrItemPage .selector1 { display: flex; align-items: center; gap: 8px; }
body#category .er-barra .er-paginacao .nbrItemPage label,
body#category .er-barra .er-paginacao .nbrItemPage span {
  margin: 0; padding: 0; font-size: 13px; font-weight: 400; color: #6B7280; white-space: nowrap;
}
body#category .er-barra .er-paginacao .nbrItemPage select {
  width: auto; height: 38px; padding: 0 12px; margin: 0;
  border: 1px solid #CBD2DA; border-radius: 6px; background: #fff;
  font-size: 13px; color: #39424E; box-shadow: none;
}
@media (max-width: 767px) {
  body#category .er-barra .er-paginacao .nbrItemPage { margin-left: 0; width: 100%; }
}
/* ===== ER: paginacao dentro da barra — FIM ===== */

/* Sem coluna lateral abaixo dos 992px (telemovel e tablet).
   Em todas as paginas com coluna lateral (body.er-lat): categorias,
   pesquisa, conta do cliente. O menu ja esta no topo.
   No telemovel sobravam so dois blocos colapsados (categorias e promocoes) que
   nao acrescentavam nada: o menu ja esta no topo e os filtros na barra. */
@media (max-width: 991px) {
  body.er-lat #left_column { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
  body#category #center_column.col-md-9 { width: 100% !important; }
}

/* tablet: a contagem e o ordenar passam para a sua propria linha */
@media (max-width: 991px) {
  body#category .er-barra-lado { width: 100%; margin-left: 0; justify-content: flex-end; }
  body#category .er-ordenar { min-width: 0; flex: 0 1 280px; }
}

/* --- 5. descricao no fim --- */
/* Escondida no sitio original e mostrada ja no fim: o selector distingue
   os dois sitios, por isso nao ha salto nem piscar. */
body#category .content_scene_cat .cat-desc { display: none; }
body#category #center_column > .cat-desc {
  display: block;
  clear: both;
  /* caixa centrada, a alinhar com a largura do conteudo do CE que fica
     por cima — sem isto a descricao ia de ponta a ponta e destoava */
  max-width: 1120px;
  margin: 34px auto 8px;
  padding: 24px 28px;
  border: 1px solid #E8EAED;
  border-radius: 10px;
  background: #FBFCFD;
  font-size: 14px; line-height: 23px; color: #4B5563;
}
body#category #center_column > .cat-desc p { margin: 0 0 10px; }
body#category #center_column > .cat-desc p:last-child { margin-bottom: 0; }

/* Texto inteiro, sem o "Mais" do tema.
   O tema corta a descricao acima de 350 caracteres e mostra um link "Mais"
   que aponta para a propria pagina (nao faz nada util). Cortado a meio de
   uma palavra — "Idea..." — a caixa fica feia, e o texto completo e o que
   interessa para quem le e para o Google.
   `.unvisible{display:none}` e uma classe simples: estes selectores tem
   especificidade muito maior, por isso ganham sem `!important`. */
body#category #center_column > .cat-desc #category_description_short { display: none; }
body#category #center_column > .cat-desc #category_description_full { display: block; }
body#category #center_column > .cat-desc .lnk_more { display: none; }

/* --- 6. blocos do Creative Elements a alinhar com o resto --- */
/* O tema chama o gancho displayFooterCategory{id} DENTRO do
   `<div id="subcategories">`, e a `.clearfix.row` do Bootstrap tem
   `margin: -9.5px`. O bloco do CE herdava isso e ficava 9px a esquerda e
   19px mais largo que a fila de subcategorias e que a caixa da descricao.
   Medido no live a 1280px: CE 261..1279 contra 270..1269 dos outros.
   Os cartoes antigos da grelha estao escondidos, por isso tirar a goteira
   nao custa nada. */
body#category #subcategories > .row { margin-left: 0; margin-right: 0; }

/* --- 7. carrossel do CE: o nome nunca empurra as estrelas --- */
/* O `.product-container` do carrossel tem ALTURA FIXA e `overflow: hidden`.
   Um nome que passe de 2 para 3 linhas empurra as estrelas e os comentarios
   para fora e eles aparecem por cima uns dos outros. Cortar o nome a duas
   linhas com reticencias resolve em qualquer largura.
   E a mesma tecnica dos cartoes do ersubcategorias.
   Defeito antigo, nao da alteracao de 2026-09-23 — verificado ligando e
   desligando a regra da largura e obtendo medidas identicas. */
body#category #center_column .elementor .product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 8. balao do hotspot virado para baixo quando nao ha espaco em cima --- */
/* A CSS do Creative Elements abre o balao SEMPRE para cima. Com o ponto no
   topo da imagem, tapava o titulo da seccao. O `1custom.js` marca esses
   pontos com `er-balao-baixo` e aqui inverte-se o sentido. */
body#category .elementor-image-hotspot-wrapper.er-balao-baixo .elementor-image-hotspot-content {
  transform: translate3d(-50%, 26px, 0);
  -webkit-transform: translate3d(-50%, 26px, 0);
}
body#category .elementor-image-hotspot-wrapper.er-balao-baixo:hover .elementor-image-hotspot-content {
  transform: translate3d(-50%, 16px, 0);
  -webkit-transform: translate3d(-50%, 16px, 0);
}

/* --- telemovel --- */
@media (max-width: 767px) {
  body#category #center_column > .cat-desc { padding: 18px 16px; margin-top: 24px; border-radius: 8px; }
  body#category h1.page-heading.product-listing { font-size: 21px; line-height: 28px; margin-bottom: 14px; }
  body#category .er-barra { gap: 12px; }
  body#category .er-barra-filtros { justify-content: center; gap: 8px; }
  body#category .er-barra-filtros > .er-grupo { flex: 1 1 calc(50% - 6px); }
  body#category .er-barra .er-botao { min-width: 0; font-size: 14px; padding: 11px 32px 11px 12px; }
  body#category .er-barra .er-grupo.er-aberto { flex: 1 1 100%; }
  body#category .er-barra .er-painel {
    position: static; min-width: 0; width: 100%; margin-top: 8px; box-shadow: none;
  }
  body#category .er-barra-lado { width: 100%; margin-left: 0; justify-content: space-between; gap: 12px; }
  body#category .er-ordenar { min-width: 0; flex: 1 1 auto; max-width: 260px; }
  body#category .er-barra .er-activos ul { justify-content: center; }
}
/* ===== ER: nova disposicao das paginas de categoria (proposta) — FIM ===== */

/* ===== ER: menu de categorias da coluna esquerda — INICIO ===== */
/* Lista limpa ao estilo das grandes lojas: linhas brancas, rotulo escuro,
   seta a direita e um filete a separar. Em cima, a campanha da altura em dourado. */

body.er-lat #categories_block_left,
body.er-lat #categories_block_left .block_content {
  background: #fff !important;
  border: 0;
  padding: 0;
}
body.er-lat #categories_block_left {
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 4px;
  overflow: hidden;
  font-family: Poppins, -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
}

/* o titulo verde com o nome da categoria deixa de fazer falta:
   ja esta no caminho de navegacao e no H1 */
body.er-lat #categories_block_left > .title_block { display: none; }

/* cabecalho dourado com a campanha */
body.er-lat #categories_block_left .er-campanha {
  display: block;
  padding: 16px 18px;
  background: #C8A248;
  color: #fff;
  font-size: 15px;
  line-height: 21px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .2px;
}
body.er-lat #categories_block_left .er-campanha:hover { background: #B8933F; color: #fff; }

/* lista */
body.er-lat #categories_block_left ul.tree,
body.er-lat #categories_block_left ul.tree ul { margin: 0; padding: 0; list-style: none; background: none; }
body.er-lat #categories_block_left ul.tree > li { border-top: 1px solid #ECEEF0; }
body.er-lat #categories_block_left ul.tree > li:first-child { border-top: 0; }

body.er-lat #categories_block_left ul.tree > li > a {
  display: block;
  padding: 15px 42px 15px 18px;
  background: none;
  border: 0;
  color: #1A1A1A;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
}
body.er-lat #categories_block_left ul.tree > li > a:hover { background: #F7F8F9; color: #1860A3; }

/* Seta a direita.
   E desenhada no proprio link (a:after) e nao no botao de abrir: o botao
   estica-se por todo o <li>, e quando as subcategorias abrem a seta ia parar
   ao fundo do submenu em vez de ficar ao lado do titulo (171px abaixo, medido).
   O botao fica por cima, invisivel, so para receber o clique. */
body.er-lat #categories_block_left ul.tree > li { position: relative; }
body.er-lat #categories_block_left ul.tree > li > a { position: relative; }
body.er-lat #categories_block_left ul.tree > li > a:after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -5px;
  border-right: 2px solid #9AA1A9;
  border-bottom: 2px solid #9AA1A9;
  transform: rotate(-45deg);
  transition: transform .15s, border-color .15s;
}
/* aberta: aponta para baixo */
body.er-lat #categories_block_left ul.tree > li > a.er-aberta:after {
  transform: rotate(45deg);
  margin-top: -7px;
  border-color: #1860A3;
}
/* categorias sem filhos nao levam seta */
body.er-lat #categories_block_left ul.tree > li.er-sem-filhos > a:after { content: none; }

body.er-lat #categories_block_left .grower {
  position: absolute;
  right: 0; top: 0;
  width: 44px; height: 52px;
  margin: 0; padding: 0;
  float: none !important;
  background: none;
  border: 0;
  font-size: 0;
  cursor: pointer;
  z-index: 2;
}
body.er-lat #categories_block_left .grower:before,
body.er-lat #categories_block_left .grower:after { content: none !important; }

/* sub-niveis */
/* O tema entrega a arvore TODA aberta e so a colapsa depois, por JS — via-se
   o menu enorme a piscar. Fecha-se logo por CSS. Nao leva !important de
   proposito: quando o tema (ou o nosso JS) abre um ramo, poe display inline,
   que ganha a esta regra. */
body.er-lat #categories_block_left ul.tree ul { display: none; }

body.er-lat #categories_block_left ul.tree ul {
  padding: 2px 0 10px;
  background: #EEF1F4;
  border-top: 1px solid #E1E5EA;
}
body.er-lat #categories_block_left ul.tree ul li { border: 0; }
body.er-lat #categories_block_left ul.tree ul a {
  display: block;
  padding: 8px 18px 8px 32px;
  color: #2F3944;
  font-size: 13px;
  line-height: 19px;
  font-weight: 400;
  text-decoration: none;
}
body.er-lat #categories_block_left ul.tree ul a:hover { color: #1860A3; }
body.er-lat #categories_block_left ul.tree ul li { position: relative; }

/* a "Politica de Cookies" e injectada pelo cookiesplus dentro do menu;
   esconde-se logo por CSS (o JS tambem a remove, para browsers sem :has) */
body.er-lat #categories_block_left li:has(> a#cookieFooter) { display: none !important; }
body.er-lat #categories_block_left a#cookieFooter { display: none !important; }

/* categoria actual */
body.er-lat #categories_block_left a.selected,
body.er-lat #categories_block_left li.current > a { color: #1860A3; }
/* ===== ER: menu de categorias da coluna esquerda — FIM ===== */

/* ===== ER: coluna esquerda a acompanhar (sticky) =====
   NAO se usa position:sticky. O #page do tema tem overflow:hidden e isso
   anula o sticky; trocar por "clip" fazia o sticky funcionar MAS partia o
   megamenu — os submenus deixavam de ocupar a largura toda (visto no live).
   Por isso e feito por JS com translateY, que nao depende do overflow
   nem mexe no layout. Ver er-categoria.js -> acompanharColuna(). */


/* ===== ER: ordem da coluna esquerda + promocoes — INICIO ===== */
/* Ordem pedida: menu, filtros, bloco do Creative Elements, promocoes.
   Feito com flex+order e nao por JS, para nao haver salto ao carregar. */
@media (min-width: 992px) {
  body.er-lat #left_column { display: flex; flex-direction: column; gap: 18px; }
  body.er-lat #left_column > * { order: 5; margin-bottom: 0 !important; }
  body.er-lat #left_column > #categories_block_left { order: 1; }
  body.er-lat #left_column > #layered_block_left   { order: 2; }
  body.er-lat #left_column > .elementor            { order: 3; }
  body.er-lat #left_column > #special_block_right  { order: 4; }
  /* espacadores vazios do tema deixam de ser precisos com o gap */
  body.er-lat #left_column > .row:empty { display: none; }
}

/* --- promocoes com o mesmo desenho dos outros blocos --- */
body.er-lat #special_block_right {
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  font-family: Poppins, -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
}
body.er-lat #special_block_right > .title_block {
  display: block;      /* o tema deixa-o estreito e o risco ficava a meio */
  width: auto;
  float: none;
  margin: 0;
  padding: 14px 16px 12px;
  background: none;
  border: 0;
  border-bottom: 1px solid #ECEEF0;
  text-align: left;
}
body.er-lat #special_block_right > .title_block a {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6B7280;
  text-decoration: none;
}
body.er-lat #special_block_right > .title_block a:hover { color: #1860A3; }

body.er-lat #special_block_right .block_content { padding: 0; }
body.er-lat #special_block_right ul.products { margin: 0; padding: 0; list-style: none; }
body.er-lat #special_block_right ul.products > li { margin: 0; padding: 0; border-top: 1px solid #F1F3F5; }
body.er-lat #special_block_right ul.products > li:first-child { border-top: 0; }
body.er-lat #special_block_right .product-block { background: none; padding: 0; }
body.er-lat #special_block_right .product-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
body.er-lat #special_block_right .products-block-image {
  flex: 0 0 64px;
  float: none !important;
  width: 64px; height: 64px;
  margin: 0;
  border: 1px solid #F1F3F5;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
body.er-lat #special_block_right .products-block-image img {
  width: 100%; height: 100%;
  object-fit: contain;
}
body.er-lat #special_block_right .media-body { flex: 1 1 auto; min-width: 0; }
body.er-lat #special_block_right .product-content { padding: 0; }
body.er-lat #special_block_right h5.name { margin: 0 0 6px; }
body.er-lat #special_block_right a.product-name {
  display: block;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: #1A1A1A;
  text-decoration: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body.er-lat #special_block_right a.product-name:hover { color: #1860A3; }
/* As estrelas nao acrescentam nada num bloco tao pequeno. O tema nao lhes
   poe classe nenhuma: e o unico <div> entre o nome e o preco. */
body.er-lat #special_block_right .product-content > div:not(.content_price) { display: none; }

body.er-lat #special_block_right .content_price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}
/* o preco antigo traz TAMBEM a classe .product-price, por isso precisa de
   mais especificidade para nao ficar azul e grande como o novo */
body.er-lat #special_block_right .content_price .old-price.product-price {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #9AA1A9;
  text-decoration: line-through;
}
body.er-lat #special_block_right .product-price {
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  color: #1860A3;
}

/* botao "todas as promocoes" */
body.er-lat #special_block_right .lnk { padding: 12px 16px 16px; text-align: center; }
body.er-lat #special_block_right .lnk a {
  display: block;
  padding: 10px 14px;
  background: #fff !important;
  border: 1px solid #1860A3 !important;
  border-radius: 999px;
  color: #1860A3 !important;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}
body.er-lat #special_block_right .lnk a:hover {
  background: #1860A3 !important;
  color: #fff !important;
}
body.er-lat #special_block_right .lnk a span { color: inherit; }
/* ===== ER: ordem da coluna esquerda + promocoes — FIM ===== */

/* ===== ER: cartoes de produto =====
   O desenho dos cartoes saiu daqui para o modulo "ercartoes", que junta
   num so sitio a apresentacao, os selos de campanha, o minimo de encomenda
   e o "desde EUR X". A copia antiga ficou em er-categoria.css.bak_cards.
   ================================================================== */


/* ===== ER: os outros blocos da coluna esquerda — INICIO =====
   Promocoes, A minha conta, e o que mais o tema la puser. Ficavam com o
   desenho antigo — titulo ao centro, botao preto de caixa — enquanto o menu
   de categorias ao lado ja estava novo. A regra e generica de proposito:
   um bloco novo que apareca amanha entra logo com o mesmo aspecto. */

body.er-lat #left_column > .block:not(#categories_block_left) {
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  font-family: Poppins, -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
}
body.er-lat #left_column > .block:not(#categories_block_left) > .title_block,
body.er-lat #left_column > .block:not(#categories_block_left) > h4 {
  margin: 0;
  padding: 14px 18px 10px;
  border-bottom: 1px solid #F1F3F5;
  background: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  color: #1860A3;
  line-height: 1.3;
}
body.er-lat #left_column > .block:not(#categories_block_left) > .title_block a {
  color: inherit;
  text-decoration: none;
}
body.er-lat #left_column > .block:not(#categories_block_left) .block_content {
  padding: 12px 18px 16px;
  background: none;
}

/* a lista de links da conta do cliente */
body.er-lat #left_column > .block ul.bullet,
body.er-lat #left_column > .block .block_content > ul {
  margin: 0; padding: 0; list-style: none;
}
body.er-lat #left_column > .block .block_content > ul > li { margin: 0; border-top: 1px solid #F1F3F5; }
body.er-lat #left_column > .block .block_content > ul > li:first-child { border-top: 0; }
body.er-lat #left_column > .block .block_content > ul > li > a {
  display: block;
  padding: 10px 2px;
  font-size: 13px;
  line-height: 18px;
  color: #39424E;
  text-decoration: none;
}
body.er-lat #left_column > .block .block_content > ul > li > a:hover { color: #1860A3; }

/* os botoes pretos de caixa passam a botao de largura toda, como no resto */
body.er-lat #left_column > .block .btn,
body.er-lat #left_column > .block button.btn,
body.er-lat #left_column > .block a.btn {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 4px;
  background: #1860A3;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease;
}
body.er-lat #left_column > .block .btn:hover { background: #134E85; color: #fff; }
/* ===== ER: os outros blocos da coluna esquerda — FIM ===== */

/* ===== ER: barra de ordenacao fora das categorias — INICIO =====
   Na pesquisa e nas outras paginas com grelha, o tema desenha DOIS blocos
   .content_sortPagiBar e prende os dois ao mesmo canto
   (position:absolute; top:25px; right:41px). Ficam um por cima do outro: a
   caixa preta "Mostar todos" tapava o "Ordenar por". Nas categorias isto nao
   se via porque o nosso JavaScript leva-os para dentro da barra; aqui nao ha
   barra, por isso deixam-se correr no sitio normal — o de baixo vai para o fim
   da pagina, que e onde a paginacao se le. */

body.er-lat:not(.er-cat) #center_column .content_sortPagiBar {
  position: static !important;
  top: auto !important; right: auto !important; left: auto !important;
  width: 100% !important; max-width: 100% !important;
  float: none !important;
  margin: 0 0 14px !important;
}
body.er-lat:not(.er-cat) #center_column .content_sortPagiBar > .row {
  margin-left: 0 !important; margin-right: 0 !important;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: flex-end;
}
body.er-lat:not(.er-cat) #center_column .content_sortPagiBar > .row > * {
  float: none !important; width: auto !important; padding: 0 !important; margin: 0 !important;
}
/* o selector grelha/lista nao e usado neste desenho */
body.er-lat:not(.er-cat) #center_column .content_sortPagiBar .display-product-option,
body.er-lat:not(.er-cat) #center_column .content_sortPagiBar .view-product { display: none !important; }

@media (max-width: 767px) {
  body.er-lat:not(.er-cat) #center_column .content_sortPagiBar > .row { justify-content: flex-start; }
}
/* ===== ER: barra de ordenacao fora das categorias — FIM ===== */

/* O #left_column e uma coluna do Bootstrap dentro de uma .row com margens
   negativas de 9,5px; e a propria coluna que as compensa com o seu padding.
   O reset do tema (html, body, div, span... { padding: 0 }) apagava-lho, por
   isso a coluna saia 9px para fora e as palavras ficavam cortadas do lado
   esquerdo ("acos de Papel"). Vinha de tras, tambem nas categorias. */
body.er-lat #left_column { padding-left: 9.5px !important; padding-right: 9.5px !important; }

/* ===== ER: filtros da coluna esquerda com o aspecto do ver8 — INICIO ===== */
/* Valores medidos no ver8: azul #1860A3, titulo 16px/700, grupos 12px/500 #666,
   itens 14px #232323, contagem #373737, linhas 14px, grupos 30px, caixa 1px rgba(0,0,0,.07) r3. */

/* Tipo de letra igual ao ver8. O Poppins ja e carregado pelo tema do novo21,
   por isso nao ha pedido de fonte novo. */
#layered_block_left,
#layered_block_left .title_block,
#layered_block_left .layered_subtitle,
#layered_block_left ul.layered_filter_ul > li > label > a,
#layered_block_left ul.layered_filter_ul > li > label > a > span {
  font-family: Poppins, -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
}

/* A moldura e o titulo so no computador: no telemovel o tema usa o
   .title_block:after (FontAwesome) como icone +/- para abrir o bloco,
   e nao se lhe pode tocar, senao o cliente fica sem forma de abrir os filtros. */
@media (min-width: 992px) {
  #left_column #layered_block_left {
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 3px;
    padding: 0;
  }

  /* --- titulo FILTROS --- */
  #layered_block_left .title_block {
    position: relative;
    margin: 0;
    padding: 10px 15px;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #1860A3;
    border: 0;
    background: none;
  }
  #layered_block_left .title_block:after {   /* risco cinzento a toda a largura */
    content: "";
    position: absolute;
    left: 15px; right: 15px; bottom: 0;
    width: auto; height: 1px;
    background: #eee;
    font-size: 0;
  }
  #layered_block_left .title_block:before {  /* risco azul curto por cima */
    content: "";
    position: absolute;
    left: 15px; bottom: 0;
    width: 80px; height: 1px;
    background: #1860A3;
    z-index: 1;
  }

  #layered_block_left .block_content { padding: 15px 15px 0; }
}

/* --- filtros activos (so aparece quando ha algum) --- */
#layered_block_left #enabled_filters {
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}
#layered_block_left #enabled_filters:has(ul:empty) { display: none; }

/* --- titulo de cada grupo --- */
/* o tema poe um risco no fim de cada grupo; o ver8 nao tem */
#layered_block_left .layered_filter { margin-bottom: 30px; border-bottom: 0; padding-bottom: 0; }
#layered_block_left .layered_filter:last-child { margin-bottom: 15px; }
#layered_block_left .layered_subtitle_heading { margin: 0; padding: 0; }
#layered_block_left .layered_subtitle {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #666;
}

/* --- lista numa so coluna --- */
#layered_block_left ul.layered_filter_ul {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
#layered_block_left ul.layered_filter_ul > li {
  float: none !important;
  clear: both;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 0 14px;
  list-style: none;
  display: flex;
  align-items: flex-start;   /* rotulos de duas linhas alinham em cima */
}
#layered_block_left ul.layered_filter_ul > li:last-child { margin-bottom: 0; }

/* caixa de selecao */
#layered_block_left ul.layered_filter_ul > li > input[type="checkbox"],
#layered_block_left ul.layered_filter_ul > li > input[type="radio"] {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 2px 10px 0 0;   /* 2px para assentar na linha do texto */
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  background: #fff no-repeat center center;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 3px;
  cursor: pointer;
}
#layered_block_left ul.layered_filter_ul > li > input[type="radio"] { border-radius: 50%; }
#layered_block_left ul.layered_filter_ul > li > input:checked {
  background-color: #1860A3;
  border-color: #1860A3;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.3l2.4 2.4 4.6-5'/%3E%3C/svg%3E");
  background-size: 12px 12px;
}
#layered_block_left ul.layered_filter_ul > li > input:focus { outline: 2px solid rgba(24,96,163,.35); outline-offset: 1px; }

/* texto + contagem */
#layered_block_left ul.layered_filter_ul > li > label {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-weight: 400;
}
#layered_block_left ul.layered_filter_ul > li > label > a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #232323;
  text-decoration: none;
}
#layered_block_left ul.layered_filter_ul > li > label > a > span {
  flex: 0 0 auto;
  color: #373737;
  white-space: nowrap;
}
#layered_block_left ul.layered_filter_ul > li > label > a:hover,
#layered_block_left ul.layered_filter_ul > li > label > a:hover > span { color: #1860A3; }
#layered_block_left ul.layered_filter_ul > li > input:checked ~ label > a,
#layered_block_left ul.layered_filter_ul > li > input:checked ~ label > a > span { color: #1860A3; }

/* --- deslizador de preco/peso: nao mexer no alinhamento dele --- */
#layered_block_left .layered_slider_container,
#layered_block_left .layered_slider,
#layered_block_left .layered_price_range,
#layered_block_left .layered_weight_range { display: block; }
#layered_block_left .layered_slider_container { padding: 0 4px; }

/* --- amostras de cor, se existirem --- */
#layered_block_left ul.layered_filter_ul > li > label > a > .color-option,
#layered_block_left ul.layered_filter_ul > li .color-option {
  width: 17px; height: 17px; border-radius: 3px; display: inline-block; vertical-align: middle;
}

/* --- botao de limpar/ver mais --- */
#layered_block_left .btn.btn-default,
#layered_block_left #layered_form .btn { font-size: 13px; }

@media (max-width: 991px) {
  #left_column #layered_block_left { margin-bottom: 20px; }
  #layered_block_left .block_content { padding: 15px 0 0; }
}
/* ===== ER: filtros da coluna esquerda com o aspecto do ver8 — FIM ===== */

/* ===== ER: aviso de cookies com o aspecto do ver8 — INICIO ===== */
/* Medido no ver8: cartao 320px em baixo a direita, cantos 8px, afastamento 16px,
   Aceitar a azul #1860A3 a esquerda, Recusar delineado, Configurar como ligacao. */

#cookiesplus-modal.cookiesplus-bottom-right {
  bottom: 16px !important;
  right: 16px !important;
  max-width: 320px;
  padding: 14px !important;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}

/* texto */
#cookiesplus-modal .cookiesplus-info,
#cookiesplus-modal .cookiesplus-info p {
  font-size: 14px;
  line-height: 20px;
  margin: 0 0 12px;
}

/* sem os icones do Material, como no ver8 */
#cookiesplus-modal .cookiesplus-btn .material-icons { display: none; }

/* botoes: Aceitar e Recusar lado a lado, Configurar por baixo como ligacao */
#cookiesplus-modal .cookiesplus-actions .first-layer > .row,
#cookiesplus-modal .cookiesplus-actions .second-layer > .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
#cookiesplus-modal .cookiesplus-actions .first-layer > .row > div,
#cookiesplus-modal .cookiesplus-actions .second-layer > .row > div {
  float: none !important;
  width: auto;
  padding: 0;
  margin: 0;
}
/* 1 = Aceitar, 2 = Recusar (ordem do HTML) */
#cookiesplus-modal .cookiesplus-actions .first-layer > .row > div:nth-child(1),
#cookiesplus-modal .cookiesplus-actions .first-layer > .row > div:nth-child(2) { flex: 1 1 0; min-width: 0; }
#cookiesplus-modal .cookiesplus-actions .first-layer > .row > div:nth-child(3) { flex: 1 1 100%; text-align: center; }

#cookiesplus-modal .cookiesplus-btn {
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
  white-space: normal;      /* deixar quebrar: os rotulos longos nao cabem em 320px */
}
/* so Aceitar/Recusar ficam numa linha, que sao curtos */
#cookiesplus-modal .cookiesplus-actions .first-layer > .row > div:nth-child(1) .cookiesplus-btn,
#cookiesplus-modal .cookiesplus-actions .first-layer > .row > div:nth-child(2) .cookiesplus-btn { white-space: nowrap; }

/* segunda camada (preferencias): botoes empilhados, largura toda */
#cookiesplus-modal .cookiesplus-actions .second-layer > .row > div { flex: 1 1 100%; }
#cookiesplus-modal .cookiesplus-actions .second-layer .cookiesplus-btn { text-align: center; }

/* rodape da segunda camada: Voltar em cima, politica por baixo */
#cookiesplus-modal .cookiesplus-footer-actions { display: block; text-align: center; }
#cookiesplus-modal .cookiesplus-footer-actions > div { float: none !important; display: block; width: 100%; }
#cookiesplus-modal #cookiesplus-back { display: inline-block; padding: 8px 0 2px; font-size: 13px; cursor: pointer; }

/* o painel de preferencias nao pode passar do ecra */
#cookiesplus-modal.cookiesplus-bottom-right { max-height: calc(100vh - 32px); overflow-y: auto; }

/* Configurar = ligacao discreta */
#cookiesplus-modal .cookiesplus-more-information {
  background: none !important;
  border: 0 !important;
  padding: 6px 0 0 !important;
  font-size: 13px;
  text-decoration: underline;
  width: auto;
}

/* ligacao da politica */
#cookiesplus-modal .cookiesplus-policy {
  display: inline-block;
  float: none !important;
  padding-top: 6px;
  font-size: 13px;
}
#cookiesplus-modal .cookiesplus-footer-actions,
#cookiesplus-modal .cookiesplus-actions .first-layer > .row:last-child { text-align: center; }

@media (max-width: 767px) {
  #cookiesplus-modal.cookiesplus-bottom-right {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    max-width: none;
    width: auto;
  }
}
/* ===== ER: aviso de cookies com o aspecto do ver8 — FIM ===== */

/* ===== ER: o botão de voltar ao topo passa à frente ===== */
/* O tema desenha-o com `position: fixed` mas sem `z-index` — fica em `auto`,
   e qualquer outro elemento fixo lhe passa por cima. 9000 chega para ficar
   acima do conteúdo, e fica de propósito abaixo do aviso de cookies (que usa
   o máximo): enquanto a pessoa não responder aos cookies, é isso que tem de
   estar à frente. */
#back-top { z-index: 9000; }
/* ===== ER: botão de voltar ao topo — FIM ===== */

/* er-balao-hotspot-por-cima: o balao do hotspot ficava ATRAS da imagem seguinte.
   Causa: cada .elementor-widget-wrap tem z-index:1 e cria contexto de empilhamento,
   por isso a coluna seguinte pinta sempre por cima. Levanta-se a coluna enquanto
   um pino estiver sob o rato ou com foco. */
body#category .elementor-widget-wrap:has(.elementor-image-hotspot-wrapper:hover),
body#category .elementor-widget-wrap:has(.elementor-image-hotspot-wrapper:focus-within) { z-index: 30; }
body#category .elementor-image-hotspot-wrapper:hover,
body#category .elementor-image-hotspot-wrapper:focus-within { z-index: 5; }
