/* Variáveis globais */
body {
  font-family: 'Montserrat', sans-serif;
}
:root {
  --primary: #2e5b8b;
  --primary-dark: #1e3a5f;
  --primary-light: #4a7db6;
  --secondary: #e67e22;
  --secondary-dark: #c85d0a;
  --light: #f8f9fa;
  --dark: #343a40;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --success: #28a745;
  /* Cores Rocha Cimentos (padrão) */
  --cimentos-primary: #2e5b8b;
  --cimentos-primary-dark: #1e3a5f;
  --cimentos-primary-light: #4a7db6;
  
  /* Cores RochaMaq */
  --maq-primary: #e67e22;
  --maq-primary-dark: #c85d0a;
  --maq-primary-light: #ec8e21;
  
  /* Cores Rocha Argamassa */
  --argamassa-primary: #0e8ee2;
  --argamassa-primary-dark: #0d6aa8;
  --argamassa-primary-light: #3398db;
  
  /* Cores Rocha Blocos */
  --blocos-primary: #e44331;
  --blocos-primary-dark: #c0392b;
  --blocos-primary-light: #e45e4f;
}



/* Reset e estilos base */
* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

/* Sidebar */
.sidebar {
  width: 280px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 20px;
  box-shadow: 2px 0 15px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  justify-content: space-between;
  
}

.sidebar-content {
  flex: 1 1 auto; /* Cresce e ocupa o espaço vertical restante */
  
}

.sidebar.active {
  transform: translateX(0);
}
.logo-center {
  width: 80px; /* ou 100% se dentro de container fixo */
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 10px;
  align-self: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  
}

.sidebar-slogan {
  font-style: italic;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 15px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}


.sidebar nav a i {
  width: 24px;
  font-size: 1.1rem;
  margin-right: 10px;
}

.logos-lojas {
  display: flex;
  flex-direction:row;
  gap: 2px;
  margin-top: auto;
  margin-bottom: 20px;
}

.logos-lojas img {
  width: 100%;
  max-width: 180px;
  object-fit: contain;
  align-self: center;
  opacity: 0.8;
  transition: opacity 0.3s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); /* Adiciona sombra para melhor contraste */
}

.loja-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: none !important; /* Garante que não será aplicado nenhum filtro */
}

/* Para o dark mode, podemos escurecer um pouco as logos */
.dark-mode .loja-logo {
  filter: brightness(0.9) contrast(1.1);
}

.logos-lojas img:hover {
  opacity: 1;
}

#toggle-dark {
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  margin-top: auto;
}

#toggle-dark:hover {
  background: rgba(255,255,255,0.2);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none;
}

.overlay.active {
  display: block;
}

/* Botão do menu */
.menu-toggle {
  display: none;
  position: absolute;
  top: 15px;
  right: 5px;
  z-index: 1001;
  background: transparent;
  color: rgb(0, 0, 0);
  border: none;
  padding: 10px 15px;
  font-size: 2.3rem;
  border-radius: 6px;
  cursor: pointer;
}

.dark-mode .menu-toggle {
  color: white;
}

.menu-toggle.shifted{
  color: white !important;
}

/* Conteúdo principal */
.main-content {
  transition: margin-left 0.3s;
  
}

/* Seções */
section {
  padding: 20px;
  background: none;
  margin: 10px auto;
  max-width: 1000px;
  opacity: 0;
  transform: translateY(30px);
  border-radius: 25px;
}

section.aparecendo {
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}

/* Página de produtos */
.produtos-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.produtos-header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.produtos-header .subtitle {
  color: var(--gray);
  font-size: 1.1rem;
}
.subtitle {
  padding-left: 20px; /* ou ajuste como preferir, por exemplo: 30px, 40px */
}


.busca-container {
  position: relative;
  margin-bottom: 20px;
  max-width: 500px;
  margin: 20px auto; /* centraliza horizontalmente */
}
.produtosl .busca-container{
  margin-left: 0px;
}
.busca-container input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  border: 1px solid var(--light-gray);
  border-radius: 30px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background-color: transparent;
  color: #000000;
}
.busca-container input:focus {
  border: 1px solid #b3b3b3; /* cor que você quiser */
  outline: none; /* remove a borda azul padrão do navegador */
}

.dark-mode .busca-container input {
border: 1px solid #343a40;
}

.dark-mode .busca-container input:focus {
  border: 1px solid #525a63; /* cor que você quiser */
  outline: none; /* remove a borda azul padrão do navegador */
}
.busca-container i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

.filtros-lojas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.filtro-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  background: var(--light-gray);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filtro-btn.active {
  background: var(--primary);
  color: white;
}

.filtro-btn:hover:not(.active) {
  background: #d1d7dc;
}

.filtro-btn:hover {
  transform: translateY(-5px);
}
.produtos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.produto-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
}

.produto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.produto-card-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.produto-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.produto-card:hover .produto-card-img img {
  transform: scale(1.05);
}

.produto-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.produto-card-title {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  color: var(--dark);
}

.produto-card-desc {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
  flex: 1;
}

.produto-card-preco {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--secondary);
  margin: 10px 0;
}

.produto-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.btn-detalhes {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-detalhes:hover {
  background: var(--primary-dark);
}

/* Dark mode */
.dark-mode {
  background-color: #1E1E1E;
  color: #e0e0e0;
}


.dark-mode .produto-card-title {
  color: #f0f0f0;
}

.dark-mode .produto-card-desc {
  color: #a0a0a0;
}

.dark-mode .filtro-btn:not(.active) {
  background: #2c2c2c;
  color: #e0e0e0;
}

/* Responsividade */
@media (max-width: 991px) {
  .menu-toggle {
    display: block;
  }
  
  .main-content {
    margin-left: 0;
  }
}

@media (min-width: 992px) {
  .sidebar {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 280px;
  }
  
  .menu-toggle, .overlay {
    display: none;
  }
}

@media (max-width: 768px) {
  .produtos-container {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .filtros-lojas {
    justify-content: center;
  }
  
  .produtos-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .produtos-container {
    grid-template-columns: 1fr;
  }
  
  .filtro-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .sidebar {
    width: 260px;
    padding: 15px;
  }
  
  .sidebar nav a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
  
  .logos-lojas {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .logos-lojas img {
    max-width: 120px;
    margin: 5px;
  }
}

.logos-lojas img[alt="RochaMaq"] {
  max-height: 70px;  /* Pode ser ajustado conforme necessário */
}

/* Formulário de contato */
#form-contato {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#form-contato input, 
#form-contato textarea, 
#form-contato button {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #000000;
}

#form-contato button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
}

#form-contato button:hover {
  background-color: var(--primary-dark);
}

/* Footer */
footer {
  width: 100%;
  padding: 20px 10px;
  background-color: var(--primary);
  color: white;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  left: 0;
  right: 0;
  z-index: 2;
}


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

/* Logo do Rocha Center */
.logo-center {
  width: auto;
  max-height: 80px;
  margin: 0 auto 15px;
  
}

/* Logos das lojas */
.logos-lojas img {
  width: auto;
  max-height: 65px;
  margin: 0 auto;
  object-fit: contain;
}

/* Imagens dos produtos */
.produto-card-img img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background-color: transparent; /* Fundo neutro para produtos com transparência */
}

/* Imagens de destaque */
.produto.destaque img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

/* Ajustes para mobile */
@media (max-width: 576px) {
  .logo-center {
    max-height: 60px;
  }
  
  .logos-lojas img {
    max-height: 70px;
  }
  
  .produto-card-img img {
    height: 150px;
  }
}

/* Dark mode para imagens */
.dark-mode .produto-card-img img {
  background-color: transparent;
}

.dark-mode .produto-card {
background-color: #2c2c2c;
}

.produto-card-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  padding: 15px;
  background: #f8f9fa;
}

.dark-mode .produto-card-img-container {
  background: transparent;
}

/* Modal de detalhes do produto */
.produto-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.produto-modal .modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  padding: 25px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.dark-mode .produto-modal .modal-content {
  background: #1e1e1e;
  color: #e0e0e0;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  z-index: 9999;
}

.dark-mode .close-modal {
  color: #fff;
}
.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header img {
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-body p {
  margin: 0;
}

.loja-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.loja-logo {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.produto-card-actions .loja-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.produto-card-actions .loja-logo {
  width: 35px;
  height: 35px;
}

/* Ajustes para mobile */
@media (max-width: 576px) {
  .modal-header img {
      max-height: 150px;
  }
  
  .loja-logo {
      width: 35px;
      height: 35px;
  }
  
  .produto-card-actions .loja-logo {
      width: 35px;
      height: 35px;
  }
}

/* No styles.css, adicione: */
.sidebar .logos-lojas img {
  filter: none; /* Remove qualquer filtro */
  opacity: 0.9;
}

.dark-mode .sidebar .logos-lojas img {
  filter: brightness(0.9) contrast(1.1);
}

/* Estilo para a tag da loja com logo */
.loja-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.05);
  padding: 5px 10px;
  border-radius: 20px;
}

.loja-tag img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Estilo para o botão de tema */
#toggle-dark {
  background: rgba(0,0,0,0.1);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 65px; /* ajuste o valor como desejar */
  transition: all 0.2s;
}

#toggle-dark:hover {
  background: rgba(0,0,0,0.2);
}

.dark-mode #toggle-dark {

  background: rgba(255,255,255,0.1);
}

.dark-mode #toggle-dark:hover {
  background: rgba(255,255,255,0.2);
}

/* Garante que o sidebar tenha espaço para o botão no final */
.sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Estilo para as logos das lojas na sidebar */
.logos-lojas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin: 20px 0;
}

.logos-lojas img {
  max-height: 70px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.logos-lojas img:hover {
  opacity: 1;
}

/* Estilos específicos para cada loja */
.loja-cimentos {
  --primary: var(--cimentos-primary);
  --primary-dark: var(--cimentos-primary-dark);
  --primary-light: var(--cimentos-primary-light);
}

.loja-maq {
  --primary: var(--maq-primary);
  --primary-dark: var(--maq-primary-dark);
  --primary-light: var(--maq-primary-light);
}

.loja-argamassa {
  --primary: var(--argamassa-primary);
  --primary-dark: var(--argamassa-primary-dark);
  --primary-light: var(--argamassa-primary-light);
}

.loja-blocos {
  --primary: var(--blocos-primary);
  --primary-dark: var(--blocos-primary-dark);
  --primary-light: var(--blocos-primary-light);
}

/* Ajustes específicos para o dark mode de cada loja */
.dark-mode.loja-maq {
  --primary: #d35400;
  --primary-dark: #a04000;
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode.loja-argamassa {
  --primary: #2874a6;
  --primary-dark: #1f618d;
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode.loja-blocos {
  --primary: #b03a2e;
  --primary-dark: #922b21;
  background-color: #121212;
  color: #e0e0e0;
}

/* Estilos para os itens do menu com logos */
.sidebar nav ul li a .loja-logo-menu {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-right: 10px;
  
}

.sidebar nav ul li a.active .loja-logo-menu {
  filter: none; /* Mantém as cores originais no item ativo */
}

/* Ajuste para o alinhamento dos ícones */
.sidebar nav ul li a {
  display: flex;
  align-items: center;
}

.sidebar nav ul li a i {
  min-width: 24px; /* Mantém o alinhamento dos ícones */
  text-align: center;
}

@media (max-width: 576px) {
  .sidebar nav ul li a .loja-logo-menu {
    width: 40px;
    height: 40px;
    margin-right: 8px;
  }
}
.logo-identidade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  max-width: 220px;
  margin: 0 auto 15px;
}

.logo-identidade .logo-center {
  width: 95px;
  height: auto;
}

.logo-nome {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
}

.logo-nome .rocha {
  color: var(--maq-primary); /* laranja */
  font-weight: bold;
  font-size: 2.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.logo-nome .center {
  color: white;
  font-weight: bold;
  font-size: 1.6rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.apresentacao-rocha {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 20px;
  background-color: var(--primary-dark);
  text-align: center;
  width: calc(100% + 20px); /* Para cobrir o padding de 20px do .main-content */
  margin: 0 -20px; /* Para ocupar toda a área */
  border-radius: 0;
  max-width: none;
  border-radius: 0%;
}

.logo-destaque {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.logo-destaque img {
  width: clamp(80px, 10vw, 140px);
  height: auto;
}

.texto-destaque {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1; /* REDUZ o espaço vertical entre os textos */
  gap: 2px;
}

.texto-destaque .rocha {
  color: var(--maq-primary); /* laranja */
  font-size: 2.5rem;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.texto-destaque .center {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .logo-destaque {
    flex-direction:row;
    align-items: center;
  }
.logo-destaque img {
  width: clamp(100px, 10vw, 140px);
  height: auto;
}
  .texto-destaque {
    align-items: center;
  }
}
.logo-identidade {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 10px;
  max-width: 200px;
}

.logo-center {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}

.logo-nome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.logo-nome .rocha {
  color: var(--maq-primary);
  font-weight: bold;
  font-size: 2.2rem;
}

.logo-nome .center {
  color: white;
  font-weight: bold;
  font-size: 1.6rem;
}
#telefones, #horarios {
  padding: 20px 20px;
  margin: 20px auto;
  border-radius: 10px;
  background-color: var(--telefones-bg);
  color: var(--telefones-text);
  text-align: center;
  max-width: 95%;
}

#telefones h2,
#horarios h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--telefones-text);
}

.telefones-container,
.horarios-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.telefone-box,
.horario-box {
  background-color: var(--telefone-box-bg);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 16px;
  word-break: break-word;
  text-align: left;
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
}

.telefone-box a {
  color: var(--telefone-link);
  text-decoration: none;
  margin-left: 5px;
}

.telefone-box a:hover {
  text-decoration: underline;
}

/* Tema Claro (padrão) */
:root {
  --telefones-bg: none;
  --telefones-text: #222;
  --telefone-box-bg: none;
  --telefone-link: #0056b3;
}

/* Tema Escuro */
body.dark-mode {
  --telefones-bg: none;
  --telefones-text: #f5f5f5;
  --telefone-box-bg: none;
  --telefone-link: #4db8ff;
}
footer p {
  margin: 8px 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
footer i.fa-location-dot {
  color: #fff;
  margin-right: 6px;
}
.footer-enderecos {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  color: white;
  font-size: 0.95rem;
}

.footer-enderecos p {
  margin: 18px 0;
  line-height: 1.4;
}

.footer-enderecos p i.fa-location-dot {
  margin-right: 6px;
}
.footer-enderecos a {
  color: #f1f1f1;
  text-decoration: underline;
}

.footer-enderecos a:hover {
  color: #f9ca24;
}

.footer-enderecos i.fa-envelope {
  margin-right: 6px;
}
footer a[href^="mailto"] {
  color: white;
  text-decoration: underline;
}

footer a[href^="mailto"]:hover {
  color: #f9ca24;
}
a[href^="mailto"] {
  color: white !important;
  text-decoration: underline;
}

a[href^="mailto"]:hover {
  color: #f9ca24 !important;
}
.logo-viemaq {
  height: 50px;
  max-width: 130px;
  transition: filter 0.3s ease;
}

body.dark-mode .logo-viemaq {
  filter: brightness(0) invert(1);
}
.logo-rochamaq {
  max-height: 90px;
  max-width: 160px;
  transition: filter 0.3s ease, content 0.3s ease;
}

/* Quando estiver no modo escuro, troca para a versão branca */
body.dark-mode .logo-rochamaq {
  filter: brightness(0) invert(1);
}


@media (max-width: 576px) {
  .loja-viemaq h1 img {
    height: 4px;
    max-width: 10px;
  }
  .logo-rochamaq h1 img {
    height: 4px;
    max-width: 10px;
  }
}
:root {
  --link-color: #0056b3;
  --link-hover: #003d80;
}

body.dark-mode {
  --link-color: #66aaff;
  --link-hover: #aaccff;
}


.botao-pdf {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin: 10px 5px;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.botao-pdf:hover {
  background-color: #0056b3;
  transform: scale(1.03);
}

.carrossel-rocha {
  max-width: 2300px;
  margin: 0px;
  overflow: hidden;
  border-radius: 0;
  position: relative;
}

.carrossel-container {
  position: relative;
}

.carrossel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}
.carrossel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carrossel-slide img {
  width: 100%;
  height: auto;
  display: block;
  
}

.carrossel-prev, .carrossel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: rgb(0, 0, 0);
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 2rem;
  border-radius: 50%;
  z-index: 10;
}

.carrossel-prev {
  left: 15px;
}

.carrossel-next {
  right: 15px;
}

.carrossel-prev:hover {
  color: #2b2b2b;
}

.carrossel-next:hover {
  color: #2b2b2b;
}

@media (max-width: 768px) {
  .carrossel-prev, .carrossel-next {
  display: none;
}
.menu-toggle.shifted {
  left: calc(260px + 10px); /* ou ajuste conforme a largura do seu sidebar */
}
.apresentacao-rocha {
  display: flex !important;
}
}

@media (max-width: 1024px) {
  .menu-toggle.shifted {
    right: calc(250px + 160px); /* ajuste para a largura do sidebar em tablets */
  }
  .carrossel-prev, .carrossel-next {
  display: none;
}
.apresentacao-rocha {
  display: flex !important;
}
}
/* Botão scroll com liquid glass */
#scrollToBottomBtn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 60px); /* Centraliza no X e afasta 60px no Y */
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px) saturate(400%) contrast(110%);
  -webkit-backdrop-filter: blur(2px) saturate(400%) contrast(110%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1),
              inset 0 0 20px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
  opacity: 0;
}

#scrollToBottomBtn.mostrar {
  opacity: 1;
  transform: translate(-50%, 0); /* Volta ao centro exato */
}

#scrollToBottomBtn canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#scrollToBottomBtn i {
  position: relative;
  z-index: 1;
  color: #000000;
  font-size: 20px;
}

.dark-mode #scrollToBottomBtn i {
  position: relative;
  z-index: 1;
  color: #e6edf3;
  font-size: 20px;
}

#scrollToBottomBtn::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
  animation: borderGlow 2s infinite linear;
  pointer-events: none;
}

@keyframes borderGlow {
  0% {
    transform: rotate(0deg);
    border-color: rgba(255, 255, 255, 0.2);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.4);
  }
  100% {
    transform: rotate(360deg);
    border-color: rgba(255, 255, 255, 0.2);
  }
}

::-webkit-scrollbar {
  width: 8px; /* largura da barra vertical */
  height: 8px; /* altura da barra horizontal (se houver) */
}

::-webkit-scrollbar-track {
  background: #f8f9fa; /* cor do fundo da trilha da barra */
  z-index: -5;
}

::-webkit-scrollbar-thumb {
  background-color: #8d8a8a; /* cor da parte que desliza */
  border-radius: 4px;
  border: 1.2px solid #7a7a7a; /* espaço em volta para dar aparência mais suave */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #7a7a7a; /* cor ao passar o mouse */
}

/* Scrollbar no modo escuro */
body.dark-mode::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.dark-mode::-webkit-scrollbar-track {
  background: #1d1d1f;
}

body.dark-mode::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #999, #666);
  border-radius: 4px;
  border: 1.2px solid #7a7a7a;
}

body.dark-mode::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #919191, #575757);
}


.botao-360 {
  display: inline-block;
  background-color: none; /* ou outra variável como --primary */
  color: #E0E0E0;
  padding: 0px 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.botao-360:hover {
  background-color: none;
  transform: scale(1.05);
  text-decoration: none;
  color: #E0E0E0;
}

/* Dark mode opcional */
.dark-mode .botao-360 {
  background-color: transparent;
  color: #E0E0E0;
}

.dark-mode .botao-360:hover {
  background-color: transparent;
}

.apresentacao-rocha {
  display: none;
}
@media screen and (min-width: 1024px) {
  .sidebar {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  }

  .icones i {
    display: none;
  }

  .sidebar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
  }

  .logo-identidade {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
  }

  .logo-center {
    width: 78px !important;
    height: 78px !important;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
  }

  .logo-nome .rocha,
  .logo-nome .center {
    font-size: 23px;
    font-weight: 600;
    display: inline-block;
    margin: 0;
  }

  .sidebar nav {
    flex: 1;
    display: flex;
    justify-content: end;
  }

  .sidebar nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .sidebar nav ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f5f5f7;
    font-weight: 400;
    font-size: 18px;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background-color 0.25s, color 0.25s;
    background-color: transparent;
  }

  .sidebar nav ul li a::after {
    content: "";
  height: 2px;
  width: 0%;
  position: absolute;
  bottom: 0;
  left: 0%;
  background: linear-gradient(90deg, var(--maq-primary-light), var(--maq-primary-dark));
  transition: all 0.5s ease;
  }
.sidebar nav ul li a:hover::after {
  width: 100%;
}
  .loja-logo-menu {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
  }

  .main-content {
    padding: 80px 20px 20px 20px;
    margin: 0;
  }

  .menu-toggle,
  .overlay,
  .apresentacao-rocha {
    display: none !important;
  }
  /* Esconde os botões das empresas em desktop */
  nav ul li.empresa {
    display: none;
  }
  .footer-enderecos {
    padding: auto;
  }
}
.carrossel-rocha {
  border-radius: none;
  border: none;
}


.carrossel-container {
  display: flex;
  width: calc(100% + 40px); /* 20px de padding * 2 lados = 40px */
  height: calc(100% + 40px);
  margin: -20px; /* "escapa" do padding da section */
  border-radius: none;
  
}

.carrosel-slide {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
}

.carrosel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* <-- Faz a mágica */
  display: block;
  transform: scale(0.8); /* Diminui para 80% do tamanho */
}

.main-content {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}

.carrossel-rocha {
  height: 470px;
  overflow: hidden;
  position: relative;
}

.carrossel-container {
  display: flex;
  width: calc(100% + 40px); /* para compensar padding lateral */
  height: 100%;
  margin: -20px;
}

.carrosel-slide {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
}

.carrosel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* mostra a imagem inteira */
  display: block;
}
@media (max-width: 600px) {
  .carrossel-rocha {
    height: 160px; /* ajuste como quiser */
  }

  .carrossel-container {
    height: 20px;
  }

  .carrosel-slide img {
    object-fit: cover; /* ou contain, se quiser mostrar tudo */
  }
}
.produto-destaque {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 40px 20px;
  gap: 30px;
  position: relative;
}

/* Imagem do produto normal */
.produto-imagem img {
  max-width: 400px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Responsividade: ocultar imagem, reorganizar layout */
@media (max-width: 900px) {
  .produto-destaque {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 10px;
  }

  /* Ocultar imagem */
  .produto-imagem {
    display: none;
  }

  /* Deixar detalhes à esquerda ocupando o máximo */
  .produto-detalhes {
    max-width: 70%;
  }

  /* Miniaturas à direita */
  .miniaturas-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    margin-left: 0;
  }

  /* Ajustar miniaturas para ficar coluna e preencher altura */
  .miniaturas {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Estilos gerais para detalhes do produto */
.produto-detalhes {
  max-width: 500px;
}

.produto-detalhes h2 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
}

.produto-detalhes p {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Miniaturas estilos gerais */
.miniaturas-viewport {
  height: auto;
  max-height: calc(3 * 10vw + 2 * 1vw);
  overflow: hidden;
  width: 6.5rem;
  max-width: 100%;
}

.miniaturas img {
  width: 100%;
  height: 6.5vw;
  max-height: 80px;
  min-height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.3s ease;
  flex-shrink: 0;
}

.miniaturas img:hover {
  transform: scale(1.05);
}

.miniaturas-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 6.5rem;
  max-width: 100%;
  gap: 0.375rem;
  margin-left: 1.25rem;
}

.miniaturas {
  height: auto;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.miniaturas::-webkit-scrollbar {
  display: none;
}

/* Botões de rolagem */
#miniatura-cima,
#miniatura-baixo {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #444;
  transition: transform 0.2s;
}

.dark-mode #miniatura-cima,
.dark-mode #miniatura-baixo {
  color: #e0e0e0;
}

#miniatura-cima:hover,
#miniatura-baixo:hover {
  transform: scale(1.2);
  z-index: 99999;
}

/* Ajustes adicionais para telas menores que 600px */
@media (max-width: 600px) {
  .produto-detalhes {
    max-width: 100%;
  }
  
}


.botao-destaque {
  display: inline-block;
  background: linear-gradient(45deg, #FFD700, #c9a514, #b39314 );
  color: black;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Botão um pouco menor em telas pequenas */
@media (max-width: 600px) {
  .botao-destaque {
    padding: 8px 16px;
    font-size: 14px;
  }
}

.botao-destaque:hover {
  background: linear-gradient(45deg, #3d50ff, #1e47ce, #062a79 );
  color: #ffffff;
  transform: translateY(-5px);
}
/* Altura fixa para cada miniatura */
.miniaturas img {
  width: 100%;
  height: 80px; /* Altura fixa */
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.3s ease;
  flex-shrink: 0;
}

/* Container das miniaturas com altura exata para 3 miniaturas */
.miniaturas {
  max-height: calc(3 * 80px + 2 * 10px); /* 3 miniaturas + 2 gaps de 10px */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

/* Remove o max-height antigo e overflow do viewport */
.miniaturas-viewport {
  height: auto;
  overflow: hidden;
  width: 6.5rem;
  max-width: 100%;
}

/* Scrollbar invisível para WebKit */
.miniaturas::-webkit-scrollbar {
  display: none;
}

/* Responsividade para telas pequenas */
@media (max-width: 600px) {
  .miniaturas-wrapper {
    width: 30%;
    margin-left: 0;
  }
  .miniaturas {
    max-height: calc(3 * 80px + 2 * 8px) !important; /* menor altura para 3 miniaturas */
    gap: 8px;
  }
  .miniaturas img {
    height: 80px; /* reduz miniatura em telas pequenas */
    max-height: none;
    object-fit: contain; /* mostra a imagem toda, com possível espaço vazio */
  }
  .miniaturas-viewport {
    height: auto !important;
    max-height: calc(3 * 80px + 2 * 8px) !important; /* altura exata para 3 miniaturas */
    overflow: visible !important;
  }
  .produto-destaque {
    margin-left: 20px;
  }
}
.miniaturas {
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; /* Ajuda em iOS */
}
@media (min-width: 768px) and (max-width: 1024px) {
  .carrossel-rocha {
    margin-bottom: 0px; /* Reduz o espaço abaixo do carrossel */
  }

  .produto-destaque {
    margin-top: -160px !important; /* Caso tenha margem padrão alta */
    margin-bottom: -60px;
    margin-left: 20px;
  }
  .miniaturas {
    margin-right: 20px;
  }
  #miniatura-cima,
  #miniatura-baixo {
    margin-right: 20px;
    z-index: 9998;
  }
  
}
.miniaturas {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.modal-carousel {
  position: relative;
  text-align: center;
}

.modal-carousel img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.modal-carousel .prev-btn,
.modal-carousel .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  color: white;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.modal-carousel .prev-btn { left: 0px; }
.modal-carousel .next-btn { right: 0px; }

/* Novo footer mais organizado */
.footer-novo {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-coluna {
  flex: 1 1 250px;
}

.footer-coluna h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #f1f1f1;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 6px;
}

.footer-coluna ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-coluna li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-coluna a {
  color: #f1f1f1;
  text-decoration: none;
}

.footer-coluna a:hover {
  color: #f9ca24;
  text-decoration: underline;
}
.footer-coluna li:hover {
  color: #f9ca24;
}
.social-icons i {
  margin-right: 8px;
}

.footer-creditos {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #cccccc;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}


/* Responsivo */
@media (max-width: 768px) {
  .loja-header {
    display: block !important;
  }
  .wrapper-centralizado {
    display: none;
  }
  .busca-container {
  margin-left: 20px;
  margin-right: 20px;
}
  .footer-novo {
    padding: 20px 10px !important;
  }

  .footer-container {
    gap: 0px !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .footer-coluna {
    margin-bottom: 20px !important;
    padding: 0 !important;
  }

  .footer-coluna h3 {
    margin: 5px 0 6px !important;
    font-size: 1rem !important;
  }

  .footer-coluna ul {
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer-coluna ul li {
    margin-bottom: 4px !important;
    font-size: 0.85rem;
    line-height: 1.3;

  }

  .footer-creditos {
    margin-top: 10px !important;
    font-size: 0.8rem;
  }

  .blog-header img {
    padding: 0px !important;
    object-fit: contain !important;
    height: 220px !important;
    object-position: center !important;
    border-radius: 0px !important;
  }
  .footer-coluna a:hover {
  color: none !important;
  text-decoration: none;
}
.footer-coluna li:hover {
  color: none;
}
}
.dark-mode .produto-card,
.dark-mode .form-contato,
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
  background-color: transparent;
  color: #f0f0f0;
  
}

.dark-mode .produto-card:hover {
  box-shadow: 1px 4px 10px rgba(255, 255, 255, 0.05);
}
.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
  color: #aaaaaa;
}
/* Novos cards para os blogs */
.blog-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  padding: 20px;
  margin-bottom: 30px;
}

.blog-card:hover {
  transform: translateY(-5px);
}
.dark-mode .blog-card {
  background: #2c2c2c;
}

.blog-header img {
  width: 100%;
  height: 174px;
  object-fit: contain;
  object-position: center center;
  margin-bottom: 5px;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}

.blog-title {
  font-size: 19.2px;
  margin: 5px 0 15px;
}

.blog-desc {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 10px;
}

.btn-leia-mais {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn-leia-mais:hover {
  background: var(--primary-dark);
}
.imagem-artigo img {
  width: 100%;
  height: 174px;
  object-fit: contain;
  object-position: center center;
  border-radius: 25px !important;
  padding: 8px; /* opcional: se quiser margem interna ao redor da imagem */
  display: block;
  margin-bottom: 5px;
}
@media (max-width: 768px) {
  .imagem-artigo img {
  width: 100%;
  height: 174px;
  object-fit: contain;
  object-position: center center;
  border-radius: 30px !important;
  padding: 8px; /* opcional: se quiser margem interna ao redor da imagem */
  display: block;
  margin-bottom: 4px;
}
}

.btn-voltar-blog {
  background: #2c3e50; 
  color: #fff; 
  padding: 10px 20px; 
  border-radius: 8px; 
  text-decoration: none; 
  transition: 0.3s;
  font-size: 15px;
}

.btn-voltar-blog:hover {
  background: var(--primary-dark);
  font-size: 16px;
}

.btn-voltar-blog i{
  font-size: 14px;
  margin-right: 4px;
}

/* Novo menu-toggle com animação */
.menu-toggle {
  position: absolute;
  top: 20px;
  right: 5px;
  width: 49px;
  height: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  height: 3px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.menu-toggle .line1,
.menu-toggle .line2,
.menu-toggle .line3 {
  width: 100%;
}

.menu-toggle .line2 {
  right: 10px;
}

.dark-mode .hamburger-line {
  background-color: white;
}

/* Animação para o estado ativo */
.menu-toggle.active .line1 {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .line2 {
  opacity: 0;
}

.menu-toggle.active .line3 {
  transform: rotate(-45deg) translate(5px, -5px);
}

.menu-toggle.active .hamburger-line {
  background-color: white;
}

#novidades {
  padding: clamp(1.5rem, 0vw, 3rem) 1rem;
  background-color: transparent;
  text-align: center;
}

#novidades h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 1.5rem;
  color: #1e3a5f;
}

.dark-mode #novidades h2 {
  color: #e6edf3;
}

.novidades-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas */
  gap: 1.5rem;
  justify-items: center;
  padding: 0 1rem;
}



.card-instagram {
  width: 100%;
  max-width: 350px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-instagram:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.dark-mode .card-instagram {
  background: #ffffff;
  
}

.card-instagram iframe,
.card-instagram blockquote {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

.card-instagram p {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  padding: 0.75rem 1rem;
  margin: 0;
}

.dark-mode .card-instagram p {
  color: #ccc;
}

/* 📱 Ajustes para tablets e celulares */
@media (max-width: 480px) {
  #novidades {
    padding: 1.5rem 0.75rem;
  }

  #novidades h2 {
    font-size: 1.75rem;
  }

  .novidades-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .card-instagram {
    width: 100%;
    max-width: 100%;
    border-radius: 0.75rem;
  }

  .card-instagram iframe,
  .card-instagram blockquote {
    height: 420px; /* Aumentado para melhor visualização */
  }

  .card-instagram p {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
}

/* Versão padrão: grid de cards */
.carrossel-instagram {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.carrossel-wrapper,
.carrossel-track,
.prev-post,
.next-post {
  display: none; /* escondido por padrão */
}

.card-instagram {
  width: 340px;
  max-width: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card-instagram iframe {
  width: 100%;
  height: 500px;
  border: none;
}
.card-instagramm {
  width: 340px;
  max-width: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.card-instagramm iframe {
  width: 100%;
  height: 500px;
  border: none;
}

/* Apenas para telas menores que 768px: ativa o carrossel */
@media screen and (max-width: 768px) {
.produto-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.produto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.produto-card-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.produto-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.produto-card:hover .produto-card-img img {
  transform: scale(1.05);
}

.produto-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.produto-card-title {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  color: var(--dark);
}

.produto-card-desc {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
  flex: 1;
}

.produto-card-preco {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--secondary);
  margin: 10px 0;
}

.produto-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.produto-card-img img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background-color: #f5f5f5; /* Fundo neutro para produtos com transparência */
}

/* Dark mode para imagens */
.dark-mode .produto-card-img img {
  background-color: transparent;
}

.dark-mode .produto-card {
background-color: transparent;
}

.produto-card-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  padding: 15px;
  background: #f5f5f5;
}

.dark-mode .produto-card-img-container {
  background: transparent;
}

.dark-mode .produto-card,
.dark-mode .form-contato,
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
  background-color: transparent;
  color: #f0f0f0;
  border: 1px solid #444;
}

.dark-mode .produto-card {
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}
  .blog-desca {
    display: none;
  }
  .carrossel-instagram {
    position: relative;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .carrossel-wrapper {
    display: block;
    overflow: hidden;
    width: 100%;
  }

  .carrossel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
  }

  .card-instagramm {
    flex: 0 0 100%;
    max-width: 100%;
    
  }
  
  /* com os botões de prev e next do insta */
  .prev-post, .next-post {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 56%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

  .prev-post { left: 6px; }
  .next-post { right: 6px; }
  .novidades-container {
    display: none;
  }

  .novidades-viewport {
    display: none;
  }

  /* card do insta de pc desaparece nos celulares */
  .card-instagram {
  display: none;
  /* Linha suave no sidebar */
  }
  .sidebar nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* linha sutil */
  padding-bottom: 4px;
  margin-bottom: 4px;
}
/* Página de Nossas Lojas, e de cada loja */
}
.wrapper-centralizado {
  text-align: center; /* centraliza elementos inline ou inline-block */
}

.container-loja {
  display: inline-block;        /* faz o container encolher ao tamanho do conteúdo */
  margin: 3rem auto;
  padding: 1.5rem 0;            /* só padding vertical */
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}



.container-loja h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.container-loja hr {
  width: 60px;
  margin: 1rem auto;
  border: 1px solid #1e3a5f;
}
.dark-mode .container-loja hr {
  width: 60px;
  margin: 1rem auto;
  border: 1px solid white;
}
.container-loja p {
  font-size: 1.1rem;
  margin: 0.3rem 0;
}

.container-loja a {
  color: #1e3a5f;
  text-decoration: none;
  font-weight: bold;
}
.dark-mode .container-loja a {
  color: white;
}
.container-loja .mapa {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.loja-card:hover {
  background-color: #f0f0f0;
  transform: translateY(-5px);
}
.dark-mode .loja-card:hover {
  background-color: #3a3a3a;
}

.nossas-lojas:hover {
  color: rgba(34, 34, 34, 0.952);
}

.dark-mode .nossas-lojas:hover {
  color: rgba(228, 228, 228, 0.952);
}

.nossas-lojas {
  color: #000;
}

.dark-mode .nossas-lojas {
  color: white;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .novidades-viewport {
    display: none;
  }
  .carrossel-instagram {
    position: relative;
    flex-wrap: nowrap;
    overflow: hidden;
    padding: 0 1rem;
  }

  .carrossel-wrapper {
    display: block;
    overflow: hidden;
    width: 100%;
  }

  .carrossel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 1rem; /* 👈 espaçamento entre cards */
  }

  .card-instagramm {
    flex: 0 0 calc(50% - 0.5rem); /* 2 cards visíveis com espaço */
    max-width: calc(50% - 0.5rem);
  }

  .prev-post, .next-post {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  
  color: rgb(255, 255, 255);
  border: none;
  font-size: 26px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

  .prev-post { left: 24px; }
  .next-post { right: 24px; }

  .novidades-container,
  .card-instagram {
    display: none;
  }

  /*Linha suave nos botões do sidebar*/
  .sidebar nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* linha sutil */
  padding-bottom: 4px;
  margin-bottom: 4px;
}
.dark-mode .sidebar nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

}


@media (min-width: 1025px) {
  .novidades-viewport {
    overflow: hidden;
    width: 100%;
    /* Remova o padding-left */
    /* padding-left: 1px; */
    margin: 0 auto;
  }

  .novidades-container {
    display: flex;
    gap: 0.5rem;
    transition: transform 0.5s ease;
    will-change: transform;
  }

  .card-instagram {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    box-sizing: border-box;
  }

  .card-instagram iframe {
    width: 100%;
    height: 460px;
    border: none;
    display: block;
  }

  .prev-post, .next-post {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 28px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}


  .prev-post { left: 26px; }
  .next-post { right: 26px; }
}
.novidades-container {
  background-color: transparent;
}
  .carrossel-instagram {
    background-color: transparent;
  }

  .dark-mode .carrossel-instagram {
  background-color: #1E1E1E;
  }

  .prev-post, .next-post {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6); /* borda semi-transparente branca */
  background-color: rgba(136, 136, 136, 0.37); /* fundo levemente opaco */
  backdrop-filter: blur(5px); /* efeito de vidro fosco */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.prev-post:hover, .next-post:hover {
  border: 2px solid rgba(194, 194, 194, 0.6);
  font-size: 1.3rem;
}

.prev-post i, .next-post i {
  pointer-events: none;
}
@media screen and (max-width: 768px) {

.prev-post:hover, .next-post:hover {
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
}
}

@media (max-width: 1024px) and (min-width: 768px) {
.prev-post:hover, .next-post:hover {
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
}
}

/* Destaque de busca — não altera layout dos cards */
mark {
  background-color: #fff59d; /* amarelo suave no modo claro */
  color: inherit;
  padding: 0 3px;
  border-radius: 4px;
  line-height: 1;
  display: inline;
  font-weight: 600;
  box-decoration-break: clone;
}

body.dark-mode mark {
  background-color: rgba(255, 245, 157, 0.18);
  color: inherit;
  font-weight: 600;
}

mark, mark * {
  vertical-align: baseline;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
/* track */
.carrossel-rocha .carrossel-container {
  display: flex;             
  height: 100%;
  transform: translate3d(0,0,0);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

/* slides (atenção ao nome COM dois 'r') */
.carrossel-rocha .carrossel-slide {
  position: relative;        /* reseta o absolute antigo */
  flex: 0 0 100%;            /* cada slide ocupa 100% da viewport */
  opacity: 1;                /* reseta a opacidade do modo “fade” */
  z-index: 0;                /* neutro */
}

.carrossel-rocha .carrossel-slide img {
  
  object-fit: contain;         /* ou 'contain' se preferir ver 100% da imagem */
  display: block;
}

/* opcional: classe active só pra acessibilidade/estilo, não esconde mais nada */
.carrossel-rocha .carrossel-slide.active {
  opacity: 1;
  z-index: 1;
}

.produtosl {
  
  flex-direction: column;
  align-items: center; /* centraliza filhos no eixo horizontal */
}

.produtosl .busca-container{
  margin: 20px auto; /* centraliza */
  width: 100%;
  max-width: 500px;
  justify-content: center;
}

.filtros-lojas {
justify-content: center;
}

.loja-header {
  display: none;
}

/* Adicione isso ao seu arquivo styles.css */
.wrapper-centralizado {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 20px 0;
}

.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1200px;
}

.pagination-info {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

.pagination-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.pagination-btn {
  padding: 8px 16px;
  background: linear-gradient(45deg, #FFD700, #c9a514, #b39314);
  color: black;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background: linear-gradient(45deg, #3d50ff, #1e47ce, #062a79);
  color: white;
  transform: translateY(-2px);
}

.pagination-btn i {
  font-size: 0.9rem;
}

/* Dark mode styles */
.dark-mode .pagination-info {
  color: #aaa;
}

.dark-mode .pagination-btn {
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#produtos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
}

/* Container da paginação */
.pagination-wrapper {
  grid-column: 1 / -1; /* Ocupa todas as colunas do grid */
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.pagination-buttons {
  display: flex;
  gap: 15px;
}

.sidebar nav ul li a {
  position: relative; /* necessário para o ::after */
  display: inline-block; /* garante que o sublinhado fique certinho */
}
/* Estilo para seção de catálogos */
.secao-catalogo {
  margin: 40px 0;
}

.secao-catalogo h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: black;
  font-weight: bold;
}

.dark-mode .secao-catalogo h2 {
  color: white;
}
.secao-catalogo ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Botões de catálogos */
.secao-catalogo ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: black;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 8px;
  transition: all 0.5s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.dark-mode .secao-catalogo ul li a {
background: #2c2c2c;
color: white;
}

.secao-catalogo ul li a i {
  font-size: 1.1rem;
}

/* Hover */
.secao-catalogo ul li a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white
}

.dark-mode .secao-catalogo ul li a:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
}
@media (max-width: 600px) {
  .secao-catalogo ul {
    gap: 8px;
  }

  .secao-catalogo ul li a {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
    gap: 8px;
  }

  .secao-catalogo ul li a i {
  background: rgba(255,255,255,0.15);
  width: 26px;
  height: 26px; /* mesmo valor da largura para manter o círculo */
  border-radius: 50%;
  font-size: 0.95rem;
  display: flex; /* ativa flexbox */
  align-items: center; /* centraliza verticalmente */
  justify-content: center; /* centraliza horizontalmente */
  flex-shrink: 0;
}

}

/* Imagem: desliza da esquerda + zoom */
.slide-in-left {
  animation: slideInLeft 2s ease forwards;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-200px) scale(0.7);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Texto: desliza da direita + zoom */
.slide-in-right {
  animation: slideInRight 2s ease forwards;
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(-200px) scale(0.7);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Saída para a esquerda */
.slide-out-left {
  animation: slideOutLeft 1s ease forwards;
}

@keyframes slideOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-200px) scale(0.7);
  }
}

/* Saída para a direita */
.slide-out-right {
  animation: slideOutRight 1s ease forwards;
}

@keyframes slideOutRight {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-200px) scale(0.7);
  }
}
.miniaturas-viewport {
  overflow: hidden;
  height: 300px; /* ou o tamanho do seu carrossel */
  
}

.miniaturas {
  overflow: hidden !important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.miniaturas img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  /* Mantém pointer-events ativo para cliques */
  pointer-events: auto;
}

.miniaturas-viewport {
  overflow: hidden !important;
}

/* Estilização do scrollbar para o modal de produtos - APENAS o fundo */
.produto-modal .modal-content::-webkit-scrollbar-track {
  background: white; /* Cor do fundo da track */
  border-radius: 0 10px 10px 0; /* Radius apenas no lado direito */
}

/* Para Firefox */
.produto-modal .modal-content {
  scrollbar-color: auto white; /* Mantém o thumb padrão, muda apenas o track */
}

/* Para modo escuro - se necessário */
.dark-mode .produto-modal .modal-content::-webkit-scrollbar-track {
  background: #1e1e1e;
  border-radius: 0 10px 10px 0; /* Radius apenas no lado direito */
}

.dark-mode .produto-modal .modal-content {
  scrollbar-color: auto #1e1e1e;
}