/* Modernização visual — Loja Solidária Casa da Caridade Inácio Daniel
   Ajustes seguros via CSS personalizado da Loja Integrada.
   Objetivos: corrigir vitrine quebrada, modernizar menu/banner/cards e manter responsivo. */

body {
  background: linear-gradient(180deg, #f7fbfc 0%, #eef7f8 100%) !important;
  color: #1f3340;
}

.menu.superior {
  background: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
  border: 1px solid #e6f0f2;
  margin: 18px 0 20px;
  overflow: hidden;
}

.menu.superior .nivel-um > li > a {
  padding: 17px 22px !important;
  font-weight: 800;
  color: #063b57 !important;
  letter-spacing: .02em;
}

.menu.superior .nivel-um > li:hover > a {
  background: #0d98ad !important;
  color: #ffffff !important;
}

.banner.cheio {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 69, 89, .18);
  margin-bottom: 30px !important;
}

.banner.cheio img {
  width: 100%;
  display: block;
}

.listagem {
  border: 0 !important;
  box-shadow: none !important;
  margin-top: 18px;
}

.listagem .titulo-categoria {
  border-top: 2px solid #12a9c6 !important;
  padding-top: 14px;
  margin-bottom: 22px;
}

.listagem .titulo-categoria strong,
.listagem strong {
  color: #0797b4 !important;
  font-size: 24px !important;
  font-weight: 800 !important;
}

/* Correção do carrossel antigo que estava gerando width:0px nos produtos */
ul.produtos-carrossel {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
}

.listagem-linha.flexslider {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
}

.listagem-linha .flex-viewport {
  overflow: visible !important;
  width: 100% !important;
  height: auto !important;
}

.listagem-linha .flex-viewport > ul {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
  height: auto !important;
  margin-left: 0 !important;
  transform: none !important;
}

.listagem-linha .flex-viewport > ul > li {
  width: auto !important;
  float: none !important;
  display: block !important;
  height: auto !important;
}

.listagem-linha .listagem-item {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 430px !important;
  float: none !important;
  position: relative !important;
  background: #ffffff;
  border: 1px solid #e8f0f2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 60, 80, .08);
  transition: .25s ease;
  padding: 14px !important;
}

.listagem-linha .listagem-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10, 60, 80, .16);
}

.listagem-linha .imagem-produto {
  width: 100% !important;
  height: 230px !important;
  min-height: 230px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.listagem-linha .imagem-produto img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 220px !important;
  position: static !important;
  object-fit: contain;
}

.listagem-linha .info-produto {
  width: 100% !important;
  height: auto !important;
  position: relative !important;
}

.listagem-linha .nome-produto,
.listagem-linha .info-produto a {
  width: 100% !important;
  height: auto !important;
  min-height: 54px !important;
  color: #17384a !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  font-size: 14px !important;
}

.listagem-linha .preco-produto {
  width: 100% !important;
  height: auto !important;
}

.listagem-linha .preco-promocional,
.listagem-linha .preco-produto {
  color: #0797b4 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

.listagem-linha .acoes-produto {
  width: auto !important;
  height: auto !important;
  position: static !important;
  margin-top: 12px;
}

.listagem-linha .botao,
.listagem-linha .acoes-produto .botao {
  border-radius: 999px !important;
  background: #0797b4 !important;
  border: 0 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

.listagem-linha .produto-sobrepor {
  width: 100% !important;
  height: 100% !important;
}

.flex-direction-nav {
  display: none !important;
}

@media (max-width: 980px) {
  .listagem-linha .flex-viewport > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .listagem-linha .flex-viewport > ul {
    grid-template-columns: 1fr !important;
  }

  .menu.superior .nivel-um > li > a {
    padding: 12px !important;
  }
}


/* Refinamento: mantém o botão Comprar sempre visível nos cards */
.listagem-linha .listagem-item {
  background: #ffffff !important;
}
.listagem-linha .acoes-produto,
.listagem .acoes-produto {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  background: transparent !important;
  position: static !important;
}
.listagem-linha .acoes-produto .botao,
.listagem .acoes-produto .botao {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 8px 18px !important;
  margin-top: 8px !important;
}
.listagem-linha .acoes-produto .botao i,
.listagem .acoes-produto .botao i {
  display: none !important;
}

/* Refinamento de preço e parcelamento — 2026-06-18 */
.listagem-linha .preco-produto,
.listagem .preco-produto {
  color: #5D7480 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  margin: 8px 0 10px !important;
}

.listagem-linha .preco-promocional,
.listagem .preco-promocional {
  color: #0B3653 !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

.listagem-linha .preco-parcela,
.listagem .preco-parcela,
.listagem-linha .preco-produto span,
.listagem .preco-produto span {
  color: #5D7480 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

.listagem-linha .preco-parcela strong,
.listagem .preco-parcela strong {
  color: #425A66 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.listagem-linha .acoes-produto .botao,
.listagem .acoes-produto .botao {
  background: #0A8EA4 !important;
}

.listagem-linha .acoes-produto .botao:hover,
.listagem .acoes-produto .botao:hover {
  background: #0B3653 !important;
}
