/* MK Capas - Estilos Otimizados */

:root {
  --colorBlue: #28255d;
  --colorOrange: #fe672f;
  --colorGray: #999;
  --colorDarkGray: #666;
  --colorBlack: #000;
  --colorWhite: #fff;
  --colorSuccess: #090;
  --colorError: #f00;
  --fontMain: 'Titillium Web', Verdana, Geneva, sans-serif;
  --fontTitle: "Swis721 BlkCn BT";
  --fontBody: var(--fontMain);
  --baseFontSize: 14px;
  --titleFontSize: 1.5em;
  --priceFontSize: 1.3em;
  --buttonFontSize: 16px;
  --baseRadius: 6px;
  --transitionSpeed: 0.3s;
  --boxShadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fontBody);
  font-size: var(--baseFontSize);
  color: var(--colorGray);
  line-height: 1.5;
}

a {
  font-family: var(--fontBody);
  font-size: var(--baseFontSize);
  color: var(--colorDarkGray);
  text-decoration: none;
  transition: color var(--transitionSpeed) ease;
}

a:hover {
  color: var(--colorBlack);
}

img {
  max-width: 100%;
  height: auto;
}

/* Estrutura do site */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

/* Títulos e texto */
.Titulo {
  font-size: var(--baseFontSize);
}

.TituloProduto {
  font-size: var(--baseFontSize);
  color: var(--colorBlack);
  font-weight: bold;
}

.TituloRodape {
  font-size: var(--baseFontSize);
  font-weight: bold;
  font-family: "Swis721 BT";
  color: var(--colorDarkGray);
}

.Branco {
  color: var(--colorWhite);
}

/* Preços */
.Valor {
  font-size: var(--baseFontSize);
  font-weight: bold;
  font-family: var(--fontBody);
  color: var(--colorSuccess);
}

.ValorAntigo {
  font-size: var(--baseFontSize);
  font-family: var(--fontBody);
  color: var(--colorError);
  text-decoration: line-through;
}

.Valor1 {
  font-size: var(--baseFontSize);
  font-weight: bold;
  font-family: var(--fontBody);
  color: var(--colorDarkGray);
}

/* Botões */
.Botoes {
  font-family: var(--fontTitle);
  font-size: var(--baseFontSize);
  color: var(--colorWhite);
}

.btn-compre {
  padding: 8px 20px;
  font-size: var(--buttonFontSize);
  border-radius: var(--baseRadius);
  background: var(--colorBlue);
  color: var(--colorWhite);
  transition: all var(--transitionSpeed) ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-compre:hover {
  background: var(--colorOrange);
  color: var(--colorWhite);
  border: 5px solid var(--colorOrange);
  font-weight: 600;
}

a .fa-bag-shopping {
  padding-right: 8px;
  font-size: 14px;
}

/* Layout de produtos */
#divprodutos {
  background-position: center center;
  background-size: cover;
  border: 0;
  display: flex;
  display: -webkit-flex; /* Para compatibilidade Safari */
  justify-content: center;
  align-items: center;
}

.fourcolumns {
  width: 25%;
  display: inline-block;
  vertical-align: top;
  padding: 10px;
  transition: transform var(--transitionSpeed) ease-in-out, box-shadow var(--transitionSpeed) ease-in-out;
}

.fourcolumns:hover {
  transform: translateY(-5px);
  box-shadow: var(--boxShadow);
}

/* Novos componentes otimizados */
.produtos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 95%;
  margin: 0 auto;
}

.produto-item {
  margin: 15px 0;
  padding: 10px;
  transition: all var(--transitionSpeed) ease;
  cursor: pointer;
  font-family: var(--fontBody);
  text-align: center;
}

.produto-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--boxShadow);
}

.produto-titulo {
  margin-top: 20px;
  color: var(--colorBlue);
  font-weight: bolder;
  font-size: var(--titleFontSize);
  height: 70px;
  max-height: 110px;
  overflow: hidden;
}

.produto-preco {
  color: var(--colorDarkGray);
  font-weight: bolder;
  font-size: var(--priceFontSize);
  margin-top: 15px;
  height: 60px;
  font-family: var(--fontBody);
}

.produto-botao {
  font-size: var(--buttonFontSize);
  width: 100%;
  max-width: 100%;
  max-height: 200px;
  display: block;
  text-align: center;
  margin-top: 10px;
}

.section-title {
  border-bottom: 1px solid #C2C2C2;
  margin: 0;
  height: 50px;
  line-height: 50px;
  text-align: center;
  margin-bottom: 2px;
  overflow: hidden;
  text-align: left;
}

.section-title strong {
  color: #333;
  font-size: 27px;
  border-bottom: 2px solid; /* A cor será definida dinamicamente via PHP */
  position: relative;
  top: 4px;
  padding-bottom: 1px;
  margin-left: 20px;
}

/* Suporte para lazy loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy-loaded {
  opacity: 1;
}

.lazy {
  background-color: #f7f7f7;
}

/* Responsividade */
@media (max-width: 1200px) {
  .fourcolumns {
    width: 33.333%;
  }
  
  .container {
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  .fourcolumns {
    width: 50%;
  }
  
  .section-title strong {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .fourcolumns {
    width: 100%;
    display: block;
  }
  
  .section-title {
    height: 40px;
    line-height: 40px;
  }
  
  .section-title strong {
    font-size: 20px;
  }
  
  .produto-titulo {
    height: auto;
    max-height: 80px;
  }
  
  .produto-preco {
    height: auto;
  }
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.slide-up {
  animation: slideUp 0.5s ease-in-out;
}

/* Componentes utilitários */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
