/* === Responsividade Imagens === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Responsividade Global === */
@media (max-width: 1024px) {
  .top-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .logo-nav,
  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .nav-links a {
    margin: 5px 0;
  }

  .produtos-container,
  .categorias {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .produto {
    width: 90% !important;
    margin: 10px 0;
  }
}

@media (max-width: 600px) {
  .produto {
    font-size: 14px;
  }

  .top-bar {
    padding: 10px;
  }

  .search-container,
  .user-area {
    flex-direction: column;
    align-items: center;
  }

  .search-input {
    width: 100%;
  }
}

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

/* Fontes e layout geral */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  /*background-image: url('assets/background.jpg'); /* Caminho da tua imagem */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding-top: 2rem;
}

/* Header */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-image: url('assets/topbar-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
  max-width: 1200px;
  box-shadow: none;
  position: fixed;
  top: 19px;
  left: 0;
  right: 0;
  z-index: 999;
  transition: transform 0.3s ease;
}

.top-bar.hide {
  transform: translateY(-150%); /* Empurra completamente para fora da tela */
  opacity: 0;
  pointer-events: none;
}

/* Logo + links agrupados */
.logo-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.logo {
  font-size: 1.2rem;       /* Um pouco menor */
  font-weight: bold;
  color: white;
  text-decoration: none;
}

/* Menu de navegação */
.nav-links {
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: #ffc107;
}

/* Ações à direita */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Pesquisa */
.search-bar {
  display: flex;
  align-items: center;
  background-color: #333;
  border-radius: 6px;
  padding: 2px 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  color: white;
  height: 30px;
  width: 180px;
  border: 1px solid #444;
  position: relative;
}

.search-icon {
  font-size: 1rem;
  margin-right: 6px;
  color: #ccc;
  user-select: none;
}

.search-field {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 0.85rem;
  flex: 1;
  min-width: 0;
}

.search-field::placeholder {
  color: #aaa;
}

.clear-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1rem;
  cursor: pointer;
  display: none;
  margin-left: 6px;
}

.clear-btn:hover {
  color: white;
}

/* Imagem do usuário */
.user-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  transition: transform 0.2s ease;
}

.user-btn img:hover {
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #fff, #f0f0f0);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.hero-buttons button {
  margin: 0 1rem;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background-color: #222;
  color: #fff;
  transition: background-color 0.3s ease;
}

.hero-buttons button:hover {
  background-color: #444;
}

/* Sessão de Categorias */
.categorias {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #fff;
  overflow: hidden;
}

.categorias h2 {
  font-size: 1.5rem;
  color: #552c0d;
  margin-bottom: 0.5rem;
}

.categorias p {
  color: #777;
  margin-bottom: 2rem;
}

.categoria-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.categoria-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
}

.categoria-slider::-webkit-scrollbar {
  display: none;
}

.categoria-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  flex-shrink: 0;
  text-align: center;
}

.categoria-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 0.25rem;
}

.categoria-item span {
  font-size: 0.8rem;
  color: #333;
  white-space: nowrap;
}

.seta {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #884c1f;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: transform 0.2s ease;
  z-index: 10;
}

.seta:hover {
  transform: scale(1.2);
}

.seta-esquerda {
  position: absolute;
  left: 0;
  background: linear-gradient(to right, #fff 50%, transparent);
}

.seta-direita {
  position: absolute;
  right: 0;
  background: linear-gradient(to left, #fff 50%, transparent);
}

.categoria-item img {
  transition: none;
  transform: none;
  cursor: pointer;
}

.categoria-item {
  cursor: pointer;
}

/* Produtos */
.produtos {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #fefefe;
}

.lista-produtos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.produto {
  width: 180px;
  padding: 1rem;
  transition: transform 0.2s;
  background: none;
  border: none;
}

.produto img {
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}

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

.menu-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.menu-btn img:hover {
  transform: scale(1.1);
}

.produtos-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
}

.lista-produtos {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
}

.lista-produtos::-webkit-scrollbar {
  display: none;
}

.produto {
  width: 100%;
  max-width: 300px;
  flex-shrink: 0;
  transition: transform 0.2s;
  text-align: center;
}

.produto img {
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}

.produtos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-content: center;
}

.seta-prod {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #884c1f;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: transform 0.2s ease;
  z-index: 10;
}

.seta-prod:hover {
  transform: scale(1.2);
}

.seta-prod-esquerda {
  position: absolute;
  left: 0;
  background: linear-gradient(to right, #fff 70%, transparent);
}

.seta-prod-direita {
  position: absolute;
  right: 0;
  background: linear-gradient(to left, #fff 70%, transparent);
}

.conteudos {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #fff;
}

.conteudos h2 {
  font-size: 1.5rem;
  color: #552c0d;
  margin-bottom: 0.5rem;
}

.conteudos p {
  color: #777;
  margin-bottom: 2rem;
}

.conteudos-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
}

.conteudo-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
}

.conteudo-slider::-webkit-scrollbar {
  display: none;
}

.conteudo-item {
  min-width: 250px;
  flex-shrink: 0;
  background: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: left;
}

.conteudo-item.destaque {
  min-width: 320px;
}

.conteudo-item img {
  width: 100%;
  height: auto;
  display: block;
}

.conteudo-info {
  padding: 1rem;
}

.conteudo-info h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.conteudo-info p {
  font-size: 0.9rem;
  color: #555;
}

.conteudo-info span {
  font-size: 0.75rem;
  color: #888;
}

.seta-conteudo {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #884c1f;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: transform 0.2s ease;
  z-index: 10;
}

.seta-conteudo:hover {
  transform: scale(1.2);
}

.seta-conteudo-esquerda {
  position: absolute;
  left: 0;
  background: linear-gradient(to right, #fff 60%, transparent);
}

.seta-conteudo-direita {
  position: absolute;
  right: 0;
  background: linear-gradient(to left, #fff 60%, transparent);
}

.conteudos {
  padding: 3rem 1rem;
  background-color: #fff;
  text-align: center;
}

.conteudos h2 {
  font-size: 1.5rem;
  color: #552c0d;
  margin-bottom: 0.5rem;
}

.conteudos p {
  color: #777;
  margin-bottom: 2rem;
}

.conteudos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.conteudo-grande {
  flex: 1 1 400px;
  max-width: 600px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.conteudo-grande img {
  width: 100%;
  height: auto;
  display: block;
}

.conteudo-menores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  flex: 1 1 400px;
  max-width: 600px;
}

.conteudo-item {
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.conteudo-item:hover {
  transform: scale(1.02);
}

.conteudo-item img {
  width: 100%;
  height: auto;
  display: block;
}

.conteudo-info {
  padding: 1rem;
  text-align: left;
}

.conteudo-info h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #333;
}

.conteudo-info p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.3rem;
}

.conteudo-info span {
  font-size: 0.75rem;
  color: #999;
}

.conteudo-principal {
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.conteudo-detalhado {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.conteudo-detalhado img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.conteudo-texto h1 {
  font-size: 1.8rem;
  color: #552c0d;
  margin-bottom: 1rem;
}

.conteudo-texto p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.sobre-kai {
  background: url('assets/fundo-folha.png') no-repeat center center;
  background-color: #f1f1f1;
  background-size: cover;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.conteudo-sobre-kai {
  max-width: 600px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.conteudo-sobre-kai h2 {
  font-size: 24px;
  color: #532c1b;
  margin-bottom: 0;
}

.conteudo-sobre-kai h3 {
  font-size: 16px;
  margin-top: 4px;
  margin-bottom: 20px;
}

.conteudo-sobre-kai p {
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 15px;
  color: #333;
}

.conteudo-sobre-kai .btn-conhecer,
.conteudo-sobre-kai .btn-subscrever {
  margin: 10px auto;
  display: inline-block;
  padding: 8px 18px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.conteudo-sobre-kai .newsletter {
  margin-top: 30px;
}

.conteudo-sobre-kai input[type="email"] {
  padding: 8px;
  width: 100%;
  max-width: 250px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.newsletter {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter p {
  margin-bottom: 0.4rem;
}

.newsletter small {
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.newsletter label {
  margin-top: 1rem;
  font-weight: bold;
  font-size: 0.9rem;
}

.newsletter input[type="email"] {
  width: 100%;
  max-width: 350px;
  padding: 0.6rem;
  font-size: 1rem;
  margin-top: 0.3rem;
  border-radius: 6px;
  border: 1px solid #aaa;
  background-color: #ddd;
  margin-bottom: 1rem;
  text-align: center;
}

.rodape {
  background-color: #f1f1f1;
  padding: 3rem 1rem 1rem;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: #333;
}

.rodape-colunas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
}

.rodape-colunas .coluna {
  flex: 1 1 180px;
  max-width: 180px;
  text-align: left;
}

footer.rodape {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.304);
  padding-top: 40px;
}

.coluna {
  flex: 1 1 160px;
  min-width: 140px;
}

.coluna h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

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

.coluna ul li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.coluna.redes {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.coluna.redes h4 {
  margin-bottom: 12px;
}

.icones-redes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 4px;
  row-gap: 10px;
  justify-items: center;
  align-items: center;
  width: 100%;
  max-width: 120px;
}

.icones-redes img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s;
}

.icones-redes img:hover {
  transform: scale(1.1);
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  margin-top: 2rem;
}

.conteudos-hero {
  text-align: center;
  padding: 3rem 1rem 1rem;
  background-color: #f5f0e9;
}

.conteudos-hero h1 {
  font-size: 2rem;
  color: #552c0d;
  margin-bottom: 0.5rem;
}

.conteudos-hero p {
  color: #5c4630;
  font-size: 1.1rem;
}

.conteudos-filtros {
  border-top: 1px solid #bcae99;
  border-bottom: 1px solid #bcae99;
  padding: 1rem 0;
  background-color: #f5f0e9;
}

.conteudos-filtros ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.conteudos-filtros li {
  font-size: 1rem;
  color: #5c3b1d;
  cursor: pointer;
  font-weight: 500;
}

.conteudos-filtros li.active {
  font-weight: bold;
  border-bottom: 2px solid #5c3b1d;
}

.conteudos-carousel {
  padding: 2rem 1rem;
  background-color: #f5f0e9;
  overflow-x: auto;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1rem;
  min-width: 800px;
}

.video-card {
  background-color: #e6ddd1;
  border-radius: 8px;
  overflow: hidden;
  width: 230px;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-card img {
  width: 100%;
  height: auto;
  display: block;
}

.video-card p {
  font-size: 0.9rem;
  padding: 0.5rem;
  margin: 0;
  font-weight: 500;
}

.video-card span {
  font-size: 0.75rem;
  color: #555;
  padding: 0 0.5rem 0.8rem;
  display: block;
}

.conteudos-hero {
  text-align: center;
  padding: 3rem 1rem 1rem;
  background-color: #f5f0e9;
}

.conteudos-hero h1 {
  font-size: 2rem;
  color: #552c0d;
  margin-bottom: 0.5rem;
}

.conteudos-hero p {
  color: #5c4630;
  font-size: 1.1rem;
}

.conteudos-filtros {
  border-top: 1px solid #bcae99;
  border-bottom: 1px solid #bcae99;
  padding: 1rem 0;
  background-color: #f5f0e9;
}

.conteudos-filtros ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.conteudos-filtros li {
  font-size: 1rem;
  color: #5c3b1d;
  cursor: pointer;
  font-weight: 500;
}

.conteudos-filtros li.active {
  font-weight: bold;
  border-bottom: 2px solid #5c3b1d;
}

.conteudos-grid-pagina {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 3rem 1rem;
  background-color: #f5f0e9;
  max-width: 1200px;
  margin: 0 auto;
}

.conteudo-item {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.conteudo-item:hover {
  transform: scale(1.02);
}

.conteudo-item img {
  width: 100%;
  height: auto;
}

.conteudo-info {
  padding: 1rem;
  text-align: left;
}

.conteudo-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #333;
}

.conteudo-info p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.3rem;
}

.conteudo-info span {
  font-size: 0.8rem;
  color: #888;
}

.inspiracoes {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.inspiracao-grande img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
}

.inspiracoes-menores {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inspiracoes-menores img {
  width: 110px;
  height: auto;
  border-radius: 6px;
}

.caixas-conteudo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.caixas-conteudo {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
}

.caixa {
  min-width: 240px;
  background-color: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.seta {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #555;
}

.seta-esquerda {
  margin-right: 0.5rem;
}

.seta-direita {
  margin-left: 0.5rem;
}

.inspiracoes-layout {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.imagem-principal img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
}

.imagens-menores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  flex: 1;
}

.imagens-menores img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.caixas-conteudo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.caixas-conteudo {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
}

.caixa {
  min-width: 240px;
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.seta {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

.seta-esquerda {
  margin-right: 0.5rem;
}

.seta-direita {
  margin-left: 0.5rem;
}

/* Página de produtos */

.produtos-hero {
  text-align: center;
  background-color: #f5f6fa;
  padding: 4rem 2rem 2rem;
}

.produtos-hero h1 {
  font-size: 2.5rem;
  color: #4a2b13;
  margin-bottom: 0.5rem;
}

.produtos-hero p {
  font-size: 1.2rem;
  color: #6d5a4b;
}

.produtos-page {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  background-color: #f5f6fa;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

/* Filtros laterais */
.filtros-laterais {
  flex: 0 0 220px;
  background-color: #3a3a3a;
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filtros-laterais h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.filtro h4 {
  margin-top: 1rem;
  font-size: 1.1rem;
  border-bottom: 1px solid #777;
  padding-bottom: 0.3rem;
}

.filtro ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.filtro ul li {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  cursor: pointer;
}

.filtro ul li:hover {
  color: #ffc107;
}

/* Área de produtos */
.area-produtos {
  flex: 1;
}

/* Ordenação */
.ordenar-por {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.ordenar-por select {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #aaa;
  font-size: 0.95rem;
}

/* Grade de produtos */
.grade-produtos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.produto-box {
  width: 100%;
  max-width: 320px;
  background-color: #fff;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.produto-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.produto-box img {
  width: 100%;
  max-width: 160px;
  height: auto;
  margin: 0 auto 0.8rem;
}

.produto-box h4 {
  font-size: 1rem;
  color: #333;
  margin: 0.4rem 0;
}

.produto-box .preco {
  font-size: 1rem;
  color: #6c4e2a;
}

.produto-box .preco del {
  color: #999;
  margin-right: 0.3rem;
}

.produto-box .preco strong {
  color: #e53935;
}

/* Destaques e rótulos */
.produto-box.destaque {
  position: relative;
}

.produto-box.destaque::before {
  content: 'Sale';
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #ff6b6b;
  color: white;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: bold;
}

.close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
}

.left, .right {
  flex: 1;
  margin: 0 1rem;
}

.preco-range-wrapper {
  padding-top: 0.8rem;
  text-align: center;
}

.preco-slider input[type="range"] {
  position: absolute;
  width: 100%;
  pointer-events: none;
  -webkit-appearance: none;
  background: none;
  height: 4px;
  top: 12px;
  z-index: 2;
}

#preco-valor-texto {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.preco-inputs {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  align-items: center;
}

.preco-inputs input[type="number"] {
  width: 60px;
  padding: 4px;
  text-align: center;
}


.preco-slider {
  position: relative;
  width: 100%;
  height: 30px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: #ccc;
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 2px;
}

.slider-fill {
  position: absolute;
  top: 50%;
  height: 4px;
  background: #00cc66;
  transform: translateY(-50%);
  z-index: 2;
  border-radius: 2px;
  left: 0;
  width: 0;
}

.preco-slider input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  z-index: 3;
}


.preco-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  width: 16px;
  height: 16px;
  margin-top: 0px;
  background: white;
  border: 2px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
  position: relative;
  z-index: 4;
}


.preco-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: white;
  border: 2px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.preco-slider input[type="range"]::-moz-range-track {
  background: transparent;
  height: 4px;
}

.filtro-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #777;
  padding-bottom: 0.3rem;
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
}

.filtro-summary .toggle-icon {
  font-size: 1.2rem;
  font-weight: bold;
  color: white; /* cor do + */
  transition: transform 0.3s ease, color 0.3s ease;
}

details[open] .toggle-icon {
  transform: rotate(180deg);
  color: #ffc107; /* cor do - igual ao texto principal */
}

/* Filtro de Cor */
.filtro-cores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.8rem;
}

.cor-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform 0.2s ease, outline 0.2s ease;
}

.cor-box:hover {
  transform: scale(1.15);
  outline: 2px solid #ffc107;
  outline-offset: 2px;
}

.cor-box.active {
  outline: 3px solid #ffc107;
  outline-offset: 2px;
}

/* Filtro de Tamanho */
.filtro-tamanhos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.8rem;
}

.tam-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  font-weight: bold;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.tam-box:hover {
  transform: scale(1.1);
  background-color: #ffe082;
}

.tam-box.active {
  border-color: #ffc107;
  background-color: #fff3cd;
  color: #333;
}

/* Estilo dos inputs manuais no filtro de preço */
.preco-inputs input[type="number"] {
  border-radius: 6px;
  background-color: #333;
  color: white;
  border: 1px solid #555;
  padding: 4px;
  width: 60px;
  text-align: center;
  font-size: 0.9rem;
}

.menu-user-popup {
  position: absolute;
  top: 50px;
  right: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 1rem;
  width: 220px;
  display: none;
  z-index: 9999;
  animation: popupAnim 0.25s ease;
}

@keyframes popupAnim {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.menu-user-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-info-popup {
  text-align: center;
}

.user-info-popup img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.user-email {
  font-size: 0.85rem;
  color: #555;
}

.user-menu-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.user-menu-list li {
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.user-menu-list li:hover {
  background-color: #f0f0f0;
}

.user-modal {
  position: fixed;
  top: 72px; /* abaixo da top-bar */
  right: 160px;
  width: calc(100vw - 1200px - 1.5rem); /* ocupa espaço entre o conteúdo da top-bar e a borda da janela */
  max-width: 320px; /* limite visual */
  background-color: white;
  border-radius: 10px;
  box-shadow: -6px 0 20px rgba(0,0,0,0.2);
  padding: 1.2rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  max-height: calc(100vh - 100px); /* Altura máxima do menu */
  overflow-y: auto;                /* Ativa rolagem vertical */
  scrollbar-width: thin;          /* Firefox */
  scrollbar-color: #999 #eee;     /* Firefox */
}

.user-modal::-webkit-scrollbar {
  width: 6px;
}

.user-modal::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 6px;
}

.user-modal::-webkit-scrollbar-track {
  background-color: #eee;
}

.user-modal.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-modal-content {
  position: relative;
}

.user-modal-content h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.user-email {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1rem;
}

.user-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-menu li {
  margin-bottom: 0.6rem;
}

.user-menu a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
}

.user-menu a:hover {
  color: #ffc107;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.2rem;
  color: #999;
  cursor: pointer;
}

.form-login input {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.form-login button {
  width: 100%;
  padding: 0.6rem;
  font-weight: bold;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.form-login button:hover {
  background-color: #555;
}

.auth-tab {
  background: none;
  border: none;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  color: #333;
}

.auth-tab.active {
  color: #ffc107;
  text-decoration: underline;
}

.form-login input {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.form-login button {
  width: 100%;
  padding: 0.6rem;
  font-weight: bold;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.form-login button:hover {
  background-color: #555;
}

.form-login small {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: #777;
}

#form-recuperar input {
  margin-bottom: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#form-recuperar button {
  width: 100%;
  padding: 0.5rem;
  border-radius: 6px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
}

#form-recuperar button:hover {
  background-color: #555;
}

.btn-carrinho, .btn-guardar {
  background: none;
  border: none;
  font-size: 1.1rem;
  margin-top: 0.4rem;
  margin-right: 0.3rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-carrinho:hover, .btn-guardar:hover {
  transform: scale(1.2);
}

#user-conteudo-extra button {
  background-color: #333;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

#user-conteudo-extra button:hover {
  background-color: #555;
}

.user-lista-itens ul {
  margin-top: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
}

.user-lista-itens button {
  background-color: #333;
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

.user-lista-itens button:hover {
  background-color: #555;
}

.btn-qtd svg {
  transition: fill 0.2s;
}

.campo {
  display: flex;
  flex-direction: column;
  margin-bottom: 0; /* zero espaço entre campos */
}

input {
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: border-color 0.2s;
}

input.erro {
  border-color: red;
}

.mensagem-erro {
  color: red;
  font-size: 0.68rem;
  line-height: 1;
  margin-top: 2px; /* literalmente colado ao input */
  visibility: hidden;
  height: 0;
  overflow: hidden;
  padding-left: 2px;
}

input.erro + .mensagem-erro {
  visibility: visible;
  height: auto;
}

/* === Modal de Produto - Estilo personalizado === */
.product-modal {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
}

.product-modal.show {
  display: flex;
}

.modal-content {
  background-color: #fff;
  display: flex;
  flex-direction: row;
  border-radius: 12px;
  padding: 2rem;
  max-width: 1000px;
  width: 100%;
  gap: 2rem;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.modal-content .left {
  flex: 1;
}

.modal-content .right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.main-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.thumbnails img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s ease;
}

.thumbnails img:hover {
  border-color: #ffc107;
}

#modal-nome {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.2rem;
}

.subinfo {
  color: #777;
  font-size: 0.9rem;
}

.price {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.price del {
  color: #aaa;
  margin-right: 0.5rem;
}

.price .new {
  color: #e53935;
  font-size: 1.3rem;
  font-weight: bold;
}

.color-option {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1rem;
}

.color-option div {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ccc;
}

.product-buttons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.btn-cart, .btn-guardar {
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cart {
  background-color: #333;
  color: white;
}

.btn-cart:hover {
  background-color: #555;
}

.btn-guardar {
  background-color: #eee;
  color: #333;
}

.btn-guardar:hover {
  background-color: #ddd;
}

.descricao-curta {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #444;
}

/* Detalhes expandíveis */
details {
  border-top: 1px solid #ddd;
  padding-top: 0.6rem;
  margin-top: 0.6rem;
}

details summary {
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95rem;
  color: #333;
}

details p {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.4rem;
}