/* Fontes e Variáveis CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* Cores */
    --primary-color: #2a5f8b;
    --primary-dark: #1a3a5a;
    --secondary-color: #000000;
    --accent-color: #4a90e2;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    
    /* Espaçamentos */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Bordas */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.produto-main h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #722f6c;
}

.produto-main h1 {
    font-size: 2.2rem;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-xs);
}

.produto-main h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.produto-main h2 {
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
}

.produto-main h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-dark);
}

.filtros-container{
  display: flex;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Botões */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    /* border-radius: var(--border-radius); */
    font-weight: 500;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-ver-mais {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
}

.btn-ver-mais:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Layout Principal */
.produto-main {
    padding: var(--space-xl) 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
}

/* Voltar Link */
.voltar-link {
    margin-bottom: var(--space-xl);
}

.voltar-link a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--gray-color);
    font-weight: 500;
    transition: var(--transition-normal);
}

.voltar-link a:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

/* Container do Produto */
.produto-container {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}


/* Container Principal da Galeria */
.galeria-one {
  display: flex;
  justify-content: center;
  padding: var(--space-md);
  /* border-radius: var(--border-radius-lg); */
  margin-bottom: var(--space-lg);
  position: relative;
}

/* Galeria de Imagens - Estilo Premium */
.galeria {
  position: relative;
  display: flex;
  overflow: hidden;
  /* border-radius: var(--border-radius-lg); */
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05); /* Borda sutil */
  background-color: var(--white);
  padding: var(--space-md);
  animation: fadeIn 0.8s ease;
  width: 94%;
  max-width: 800px;
  max-height: 600px;
  border: 1px solid rgba(0, 0, 0, 0.08); /* Borda adicional */
  transition: all 0.3s ease;
}

.galeria:hover {
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Container da Imagem Principal */
.imagem-principal-container {
  position: relative;
  width: 100%;
  height: 540px; /* Aumentei a altura */
  overflow: hidden;
  margin-bottom: var(--space-md);
  /* border-radius: var(--border-radius); */
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 12%);
}

/* Imagem Principal */
#imagemPrincipal {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  cursor: zoom-in;
  padding: 20px;
}

/* Navegação do Slider - Flechas Sempre Visíveis */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; /* Aumentei o tamanho */
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 10;
  opacity: 1 !important; /* Sempre visível */
}

.nav-arrow:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

.arrow-left {
  left: 25px;
}

.arrow-right {
  right: 25px;
}

/* Efeito de hover na galeria para destacar as flechas */
.galeria:hover .nav-arrow {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

/* Container das Thumbnails - Estilo Premium */
.thumbnails-container {
  position: relative;
  margin-top: var(--space-md);
  padding: 0 30px; /* Espaço para os botões de navegação */
}

.thumbnails {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 5px 0 10px 5px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--light-gray);
  -webkit-overflow-scrolling: touch; /* Suave no iOS */
}

/* Estilo da scrollbar */
.thumbnails::-webkit-scrollbar {
  height: 8px; /* Mais grossa para melhor usabilidade */
}

.thumbnails::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.thumbnails::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
  border: 2px solid var(--white);
}

/* Thumbnails - Estilo Aprimorado */
.thumb {
  flex: 0 0 auto;
  width: 90px; /* Aumentei o tamanho */
  height: 90px;
  border: 2px solid transparent;
  /* border-radius: var(--border-radius); */
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  object-fit: cover;
  background-color: var(--white);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-right: 25px;
}

.thumb:hover {
  border-color: var(--primary-color);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumb.ativa {
  border-color: var(--primary-color); /* Mantém a cor da borda */
  transform: scale(1.05); /* Mantém o efeito de zoom */
  
  /* Sombra única, suave e um pouco opaca */
  box-shadow: 0 4px 12px rgba(42, 95, 139, 0.35); 
}

.thumb.ativa::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(42, 95, 139, 0.4);
}

/* Botões de navegação para thumbnails - Estilo Premium */
.thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 2;
  opacity: 0.9;
}

.thumb-nav:hover {
  background-color: var(--primary-color);
  color: var(--white);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.thumb-nav-left {
  left: 0;
}

.thumb-nav-right {
  right: 0;
}

/* Efeito de brilho ao passar o mouse */
.thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumb:hover::before {
  opacity: 0.4;
}


/* Estilos para a seção de Matérias Primas */
.materias-title {
    margin-top: var(--space-lg);
    color: var(--primary-dark);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--light-gray);
}

.materias-lista {
    list-style: none;
    margin: var(--space-md) 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.materias-lista li {
    padding: var(--space-sm);
    background-color: #f5f9ff;
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
    border-left: 4px solid var(--primary-color);
}

.materias-lista li:hover {
    background-color: #e6f0ff;
    transform: translateX(5px);
}

.materias-lista strong {
    color: var(--primary-dark);
    font-weight: 600;
    display: inline-block;
}
/* Responsividade */
@media (max-width: 768px) {
  .galeria {
    padding: var(--space-sm);
    width: 100%;
  }
  
  .imagem-principal-container {
    height: 350px;
  }
  
  .nav-arrow {
    width: 40px;
    height: 40px;
  }
  
  .thumb {
    width: 70px;
    height: 70px;
  }
  
  .thumb-nav {
    display: none; /* Oculta em mobile para melhor usabilidade */
  }
}

@media (max-width: 576px) {
  .imagem-principal-container {
    height: 300px;
  }
  
  .thumb {
    width: 60px;
    height: 60px;
  }
  
  .nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Informações do Produto */
.produto-infos {
    /* background-color: var(--white); */
    padding: var(--space-lg);
    /* border-radius: var(--border-radius-lg); */
    /* box-shadow: var(--shadow-md); */
    animation: fadeInUp 0.8s ease;
}

.descricao {
    color: var(--gray-color);
    margin-bottom: var(--space-lg);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Lista de Características com Ícones */
.caracteristicas-lista {
    list-style: none;
    margin-bottom: var(--space-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.caracteristicas-lista li {
    padding: var(--space-sm);
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
}

.caracteristicas-lista li strong{
  margin-right: 0.5ch;
}

.caracteristicas-lista li:hover {
    background-color: #e2e6ea;
    transform: translateX(5px);
}

.caracteristicas-lista strong {
    color: var(--primary-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* Ícones para características */
.caracteristicas-lista li[data-icon]::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: var(--space-xs);
    color: var(--primary-color);
}

.caracteristicas-lista li[data-icon="material"]::before {
    content: "\f1b2"; /* Ícone de tecido */
}

.caracteristicas-lista li[data-icon="size"]::before {
    content: "\f545"; /* Ícone de tamanho */
}

.caracteristicas-lista li[data-icon="color"]::before {
    content: "\f53f"; /* Ícone de cor */
}

.caracteristicas-lista li[data-icon="weight"]::before {
    content: "\f496"; /* Ícone de peso */
}

/* Seção de Produtos Relacionados - Versão Melhorada */
.produtos-relacionados {
  margin: 80px auto;
  padding: 60px 44px;
  background: linear-gradient(135deg, #7d4778 0%, #722f6c 100%);
  /* border-radius: 20px; */
  box-shadow: 0 15px 40px rgba(30, 64, 175, 0.2);
  max-width: 1300px;
  position: relative;
  overflow: hidden;
}

.produtos-relacionados::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: 1;
}
/* Botão Ver Catálogo Completo */
.ver-catalogo-container {
  text-align: center;
  margin-top: 40px;
}

.ver-catalogo-btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: white;
  color: #7e4e7a;
  border: 2px solid #722f6c;
  /* border-radius: 30px; */
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.ver-catalogo-btn:hover {
  background-color: #722f6c;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.ver-catalogo-btn:active {
  transform: translateY(0);
}

/* Efeito de onda ao clicar */
.ver-catalogo-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  /* border-radius: 100%; */
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
  z-index: -1;
}

.ver-catalogo-btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .ver-catalogo-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}
.produtos-relacionados h3 {
  font-size: 2.2rem;
  color: white;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.produtos-relacionados h3:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: white;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  /* border-radius: 2px; */
}

.produtos-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.produto-item {
  background-color: #ffff;
  /* border-radius: 12px; */
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.produto-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  /* border-radius: 8px; */
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}

.produto-item h4 {
  font-size: 1.3rem;
  color: #1e3a8a;
  margin: 15px 0;
  font-weight: 600;
}

.produto-item p {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 20px;
}

.produto-item .preco {
  display: block;
  font-size: 1.4rem;
  color: #611c5b;
  font-weight: 700;
  margin: 15px 0;
}

.produto-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.produto-item:hover img {
  transform: scale(1.05);
}

/* Produto Não Encontrado */
.produto-nao-encontrado {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background-color: var(--white);
    /* border-radius: var(--border-radius-lg); */
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease;
}

.produto-nao-encontrado h2 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.produto-nao-encontrado p {
    color: var(--gray-color);
    margin-bottom: var(--space-lg);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividade */
@media (max-width: 1200px) {
    .produto-main {
        width: 95%;
    }
}

@media (max-width: 992px) {
    .imagem-principal-container {
        height: 400px;
    }
    
    .thumb {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .imagem-principal-container {
        height: 350px;
    }
    
    .relacionados-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumb-nav {
        display: none;
    }
}

@media (max-width: 576px) {
    .produto-main {
        padding: var(--space-lg) 0;
    }
    
    .imagem-principal-container {
        height: 300px;
    }
    
    .relacionados-container {
        grid-template-columns: 1fr;
    }
    
    .produto-infos {
        padding: var(--space-md);
    }
    
    .caracteristicas-lista strong {
        min-width: 120px;
    }
    
    .thumb {
        width: 60px;
        height: 60px;
    }
}