/* =========================================================
  ESTILOS GERAIS - ORDEM POR PÁGINAS/SEÇÕES
  1) Global / Layout principal
  2) Home
    2.1) Bloco 1
    2.2) Bloco 2
    2.3) Sobre / Informações
  3) Catálogo
  4) Responsivo (1200 / 768 / 480)
  ========================================================= */

/* ==================== 1) GLOBAL / LAYOUT ==================== */
body {
    background-color: #CCB084;
  margin: 0;
  }

.nav-complete {
    display: flex;
  flex-wrap: wrap;
    gap: 15px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    background-color: #8a4500;
    background-position: center; 
    background-repeat: no-repeat;
    margin-bottom: 0%;
    max-width: 1184px; 
    padding: 6px;
    position: relative;
  }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

   .menu-toggle {
    display: none;
    color:#290277;        
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s, opacity 0.3s;
    text-decoration: none;
    background-color: #E2B86D;
    border: 2px solid 290277;
    border-color:#290277;
    height: 40px;
    width: 40px;
    margin-left: 2px;
  
  }

  .busca-topo:hover {
    transform: scale(1.05);
    opacity: 0.9;}

.busca-topo {
    color:#290277;        
    font-size: 10px;
    font-weight: bold;
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s, opacity 0.3s;
    text-decoration: none;
    background-color: #E2B86D;
    border: 2px solid 290277;
    border-color:#290277;
    margin-right: 7px;
}

.busca-aba {
  display: none;
  width: 100%;
  justify-content: center;
}

.busca-aba.is-open {
  display: flex;
}

.busca-form {
  width: min(640px, 100%);
  display: flex;
  gap: 8px;
  align-items: center;
}

.busca-input {
  flex: 1;
  min-height: 40px;
  border-radius: 5px;
  border: 2px solid #290277;
  background-color: #FAF2DB;
  color: #290277;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 12px;
}

.busca-submit {
  min-height: 40px;
  color:#290277;
  font-size: 12px;
  font-weight: bold;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s, opacity 0.3s;
  text-decoration: none;
  background-color: #E2B86D;
  border: 2px solid #290277;
}

.busca-submit:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.botao-imagem {
    background-image:url("../img/botao-menu-2.PNG");
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat;
  display: inline-flex;
  align-items: center;
  justify-content: center;
    
    color:#290277;        
    font-size: 14px;
    font-weight: bold;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
    text-decoration: none;
    
  
    width: 156px;
  }

a {
  text-decoration: none;
  color: inherit;
}

  .botao-imagem:hover {
    transform: scale(1.05);
    opacity: 0.9;
  }
 


.cadastro {
    background-image:url("../img/entre-cadastro.png");
    background-position: center; 
    background-size: cover;
    background-repeat: no-repeat;
    font-weight: bold;
    border: none;
    padding: 25px 66px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;

}
.cadastro:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ==================== 2) HOME ==================== */
.banner {
    background-image: url("../img/fundo-logo-2.PNG");

    height: 660px;
    max-width: 1184px; 
  background-size: cover;
    
    background-position: center; 
    background-repeat: no-repeat;
    margin: 24px auto 0;
  }


/* ---------- 2.1) Home - Bloco 1 ---------- */

.square {
  width:100%;
  min-height:600px;
  height: auto;
  background-size: cover;
  background-position: center;
  background: linear-gradient(to bottom,#FAF2DB,#D1A66F);
  will-change: transform, box-shadow;
  margin-top: 64px;
  margin-bottom: 30px;
   
}

.informativo {
  background-image: url("../img/madeira-2.JPG");
  width: 95%;
  max-width: 1200px;
  position: relative;
  margin: 40px auto;
  top: auto;
  left: auto;
  transform: none;
}

.titulos {
    background-image:url("../img/PAGINA.png");
    background-size: 450px 180px;
    background-position: 0%;   
    background-repeat: no-repeat;
    margin-left: 14%;
    
    color:#290277;        
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    font-weight: bold;
    border: none;
    padding: 70px 70px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 40px;
    
}
.textos {
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  font-style: normal;
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-top: 2%;
  margin-left: 10%;
  line-height: 4rem;

}

.text-img {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
}

.botao-informativo {
  background-image:url("../img/botao-menu-2.PNG");
  background-size: cover;    
  background-position: center; 
  background-repeat: no-repeat;
  
  color:#290277;        
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  font-weight: bold;
  border: none;
  padding: 15px 37px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
  text-decoration: none;
  line-height: 2,5rem;
  position: absolute;
  left: 21%;
  top: 83%;
  transform: translateY(-8%);

}

.botao-informativo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ---------- 2.2) Home - Bloco 2 ---------- */

.square-2 {
  width:100%;
  min-height:600px;
  height: auto;
  background-size: cover;
  background-position: center;
  background: linear-gradient(to bottom,#FAF2DB,#D1A66F);
  will-change: transform, box-shadow;
  margin-top: 120px;
  margin-bottom: 30px;
  
}

.informativo-2 {
  background-image: url("../public/img/madeira-2.JPG");
 width: 95%;
 max-width: 1200px;
 position: absolute;
  top: 3480px;
  left: 50%;
  transform: translate(-50%, -50%);

  margin-bottom: 300px; 

}

.primeiro-livro-home {
 height: 25%;                
  max-height: 700px; 
  width: auto;    
}

.titulos-2 {
  background-image:url("../img/PAGINA.png");
  background-size: 450px 180px;
  background-position: 0%;   
  background-repeat: no-repeat;
  margin-left: 10%;
  
  color:#290277;        
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: bold;
  border: none;
  padding: 70px 70px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 40px;

}

.textos-2 {
  font-size: clamp(1rem, 2.2vw, 1.9rem);
  font-style: normal;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: justify;
  line-height: 4rem;
  position: absolute;
  right: 15px;
  top: 23%;
  transform: translateY(-50%);

}

.botao-informativo-2 {
  background-image:url("../img/botao-menu-2.PNG");
  background-size: cover;    
  background-position: center; 
  background-repeat: no-repeat;
  
  color:#290277;        
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: bold;
  border: none;
  padding: 15px 37px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
  text-decoration: none;
  line-height: 3rem;
  position: absolute;
  right: 13%;
  top: 70%;
  transform: translateY(-8%);

}
.botao-informativo-2:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.carrossel-livros {
  width: 95%;
  max-width: 600px;
  min-height: 260px;
  height: auto;
  background-size: cover;
  background-color: #FAF2DB;
  display: flex;
  gap:10px;
  margin-left: 2%;
  padding: 20px 30px;
  border-radius: 10px;
  border: solid 2px #290277;

}
.livros-classicos:hover {
  transform: scale(1.05);
  opacity: 0.9;
}


.livros-classicos {
  height: 220px;
  width: auto;
  border-radius: 10px;
  scroll-snap-align: center;

}
.nav-carrossel {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  position: absolute;
  top:81%;
  left:23%;
}

.carrossel-container {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 10px;
  width: 100%;
}
/* ---------- 2.3) Home - Sobre / Informações ---------- */
.informacoes {
  display: flex;
  flex-wrap: wrap;         
  gap: 16px;               
  justify-content: center;  
  align-items: stretch;     
  padding: 20px;

}
.quadrados {
  flex: 0 1 30%;
  min-width: 200px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  background: #D1A66F;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: center;
  margin-top: 6%;
  margin-bottom: 10%;
  
}
.quad-info{
  font-size: 200%;
  font-weight: bold;
  color: #290277;
  
}
.titulos-3{
  background: #E2B86D;
  height: 42px;
  width: min(440px, 92%);
  margin-bottom: 8px;
  margin-left: 8.5%;
  text-align: center;
  padding-top: 17px;
  padding-left: 9px;
  font-size: 160%; 

}
.img-avaliacoes {
  width: clamp(56px, 10vw, 120px);
  position: absolute;
  left: 0.8%;
  top: 1880px;

}
.pena {
  width: clamp(42px, 7vw, 90px);
  position: absolute;
  left: 6.5%;
  top: 1910px;
}

.square-3 {
  width:100%;
  height:600px;
  background-size: cover;
  background-position: center;
  background: linear-gradient(to bottom,#FAF2DB,#D1A66F);
  will-change: transform, box-shadow;
  margin-top: 0px;
  margin-bottom: 30px;
}

.square-comentarios {
  width: 95%;
  max-width: 1200px;
  margin: 8px auto 40px;
  background: linear-gradient(to bottom,#FAF2DB,#D1A66F);
  border: 2px solid #290277;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
}

.comentarios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.comentario-card {
  background-color: #FAF2DB;
  border: 2px solid #290277;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: #290277;
}

.comentario-avatar {
  width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 50% / 40%;
  border: 2px solid #290277;
}

.comentario-nome {
  margin: 10px 0 6px;
  font-size: 1.15rem;
}

.comentario-estrelas {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.comentario-texto {
  margin: 10px 0 0;
  font-size: 0.98rem;
  line-height: 1.4;
}

.dados {
  display: flex;
  width: 90%;
  background-color: aliceblue;
  margin-top: 10%;
  margin-left: 5%;
  margin-bottom: 20%;
  height: 300px;
}

.menus {
  
  color:#290277;        
  font-size: 180%;
 
}

/* ==================== 3) CATÁLOGO ==================== */
.catalogo-outer {
  width: 100%;
  margin: 20px auto 30px;
}

.catalogo-tabs {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.catalogo-tab {
  color: #290277;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s, opacity 0.3s;
  background-color: #E2B86D;
  border: 2px solid #290277;
  text-transform: lowercase;
}

.catalogo-tab:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.catalogo-tab.is-active {
  background-color: #FAF2DB;
}

.catalogo-square {
  width: 100%;
  min-height: 600px;
  max-width: 1184px;
  margin: 0 auto;
  background: linear-gradient(to bottom,#FAF2DB,#D1A66F);
  box-sizing: border-box;
  padding: 24px;
}

.catalogo-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}

.product-card {
  background-color: #FAF2DB;
  border: 2px solid #290277;
  border-radius: 10px;
  padding: 12px;
  box-sizing: border-box;
  color: #290277;
  text-align: center;
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}

.product-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.catalogo-ver-mais {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 5px;
  border: 2px solid #290277;
  background-color: #E2B86D;
  color: #290277;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  transition: transform 0.2s, opacity 0.3s;
}

.catalogo-ver-mais:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.catalogo-feedback {
  text-align: center;
  color: #290277;
  font-size: 20px;
  font-weight: bold;
  margin: 8px auto 20px;
}

.catalogo-pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.catalogo-page-btn {
  min-width: 36px;
  min-height: 36px;
  border-radius: 5px;
  border: 2px solid #290277;
  background-color: #E2B86D;
  color: #290277;
  font-weight: bold;
  cursor: pointer;
}

.catalogo-page-btn.is-active {
  background-color: #FAF2DB;
}

.catalogo-independentes {
  width: min(1200px, 100%);
  min-height: 420px;
  max-width: 1184px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ==================== 3.1) PRODUTO (DETALHE) ==================== */
.produto-page {
  width: 100%;
  margin: 20px auto 30px;
}

.produto-square {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  min-height: 600px;
  background: linear-gradient(to bottom,#FAF2DB,#D1A66F);
  box-sizing: border-box;
  padding: 24px;
}

.produto-card {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 24px;
  align-items: start;
  background-color: #FAF2DB;
  border: 2px solid #290277;
  border-radius: 10px;
  padding: 18px;
  box-sizing: border-box;
}

.produto-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}

.produto-info {
  color: #290277;
}

.produto-info h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.produto-preco {
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: bold;
}

.produto-desc {
  margin: 0;
  line-height: 1.7;
  font-size: 1.05rem;
  text-align: justify;
}

.produto-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 5px;
  border: 2px solid #290277;
  background-color: #E2B86D;
  color: #290277;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
}

.produto-add-cart:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.produto-voltar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 5px;
  border: 2px solid #290277;
  background-color: #E2B86D;
  color: #290277;
  font-weight: bold;
  text-transform: uppercase;
  transition: transform 0.2s, opacity 0.3s;
}

.produto-voltar:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.cart-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  border: 2px solid #290277;
  background-color: #E2B86D;
  color: #290277;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  z-index: 20;
}

.cart-float-icon {
  font-size: 24px;
}

.cart-float-count {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  border: 2px solid #290277;
  background-color: #FAF2DB;
  color: #290277;
  font-size: 12px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-sizing: border-box;
}

/* ==================== 3.2) CADASTRO ==================== */
.cadastro-page {
  width: 100%;
  margin: 20px auto 30px;
}

.cadastro-square {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  min-height: 600px;
  background: linear-gradient(to bottom,#FAF2DB,#D1A66F);
  box-sizing: border-box;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cadastro-form-card {
  width: min(560px, 100%);
  background-color: #FAF2DB;
  border: 2px solid #290277;
  border-radius: 10px;
  padding: 22px;
  box-sizing: border-box;
  color: #290277;
}

.cadastro-form-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.cadastro-form-card p {
  margin: 0 0 18px;
  font-size: 1rem;
}

.cadastro-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cadastro-form label {
  font-weight: bold;
  margin-top: 6px;
}

.cadastro-form input,
.cadastro-form textarea {
  min-height: 42px;
  border-radius: 6px;
  border: 2px solid #290277;
  background-color: #FAF2DB;
  color: #290277;
  font-size: 14px;
  padding: 8px 12px;
  box-sizing: border-box;
}

.cadastro-form textarea {
  min-height: 120px;
  resize: vertical;
}

.cadastro-submit {
  margin-top: 14px;
  min-height: 42px;
  border-radius: 6px;
  border: 2px solid #290277;
  background-color: #E2B86D;
  color: #290277;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
}

.cadastro-submit:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* ==================== 4) RESPONSIVO ==================== */
/* ---------- 4.1) Até 1200px ---------- */
@media (max-width: 1200px) {
  .nav-complete {
    max-width: 100%;
    padding: 10px;
  }

  .cadastro {
    padding: 22px 52px;
  }

  .text-img {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .primeiro-livro-home,
  .primeiro-livro {
    width: min(420px, 90%);
    height: auto;
  }

  .botao-informativo,
  .botao-informativo-2 {
    position: static;
    transform: none;
    display: inline-block;
    margin: 24px auto 0;
  }

  .square,
  .square-2 {
    padding: 20px 14px 36px;
    box-sizing: border-box;
  }

  .textos-2 {
    position: static;
    transform: none;
    margin: 10px 0;
  }

  .carrossel-livros {
    margin: 20px auto 0;
  }

  .nav-carrossel {
    position: static;
    margin-top: 14px;
  }

  .catalogo-square {
    min-height: 0;
  }

  .produto-square {
    min-height: 0;
  }

  .cadastro-square {
    min-height: 0;
  }
}

/* ---------- 4.2) Até 768px ---------- */
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links .botao-imagem {
    width: min(300px, 92%);
  }

  .menu-toggle,
  .busca-topo {
    width: auto;
    min-height: 40px;
  }

  .busca-form {
    flex-direction: column;
    width: min(360px, 95%);
  }

  .busca-input,
  .busca-submit {
    width: 100%;
  }

  .botao-imagem {
    width: 140px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .cadastro {
    width: 140px;
    min-height: 42px;
    padding: 0;
  }

  .banner {
    height: 380px;
  }

  .titulos,
  .titulos-2 {
    background-size: 320px 128px;
    padding: 54px 40px;
    margin-left: 0;
    text-align: center;
  }

  .textos,
  .textos-2 {
    line-height: 1.8rem;
    margin-left: 0;
    text-align: center;
  }

  .livros-classicos {
    height: 170px;
  }

  .quadrados {
    flex: 1 1 100%;
    max-width: 520px;
    aspect-ratio: auto;
    min-height: 190px;
  }

  .titulos-3 {
    margin: 20px auto;
    padding: 12px 8px;
    height: auto;
  }

  .img-avaliacoes,
  .pena {
    position: static;
    display: inline-block;
    margin: 6px;
  }

  .catalogo-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .catalogo-square {
    padding: 18px 12px;
  }

  .produto-square {
    padding: 18px 12px;
  }

  .cadastro-square {
    padding: 18px 12px;
  }

  .produto-card {
    grid-template-columns: 1fr;
  }

  .comentarios-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .cart-float {
    right: 14px;
    bottom: 14px;
    min-width: 52px;
    min-height: 52px;
  }
}

/* ---------- 4.3) Até 480px ---------- */
@media (max-width: 480px) {
  .nav-complete {
    gap: 8px;
  }

  .botao-imagem {
    width: 130px;
    font-size: 12px;
  }

  .nav-links .botao-imagem {
    width: min(280px, 100%);
  }

  .banner {
    height: 280px;
  }

  .square,
  .square-2 {
    min-height: 0;
    margin-top: 30px;
  }

  .titulos,
  .titulos-2 {
    background-size: 280px 112px;
    padding: 44px 24px;
  }

  .carrossel-livros {
    padding: 12px;
  }

  .livros-classicos {
    height: 140px;
  }

  .catalogo-grid {
    grid-template-columns: 1fr;
  }

  .comentarios-grid {
    grid-template-columns: 1fr;
  }
}