@charset "UTF-8";

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  color: #222;
  /* espaço pro footer fixo não cobrir o conteúdo */
  padding-bottom: 70px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

/* 🔹 HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f3f3f3;
  padding: 10px 25px;
  height: 65px;
  border-bottom: 2px solid #e5e5e5;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon {
  width: 22px;
  height: 22px;
  cursor: pointer;
  transition: 0.3s;
}

.icon:hover {
  opacity: 0.7;
}

.logo {
  height: 55px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .header {
    padding: 8px 15px;
  }

  .logo {
    height: 45px;
  }

  .icon {
    width: 20px;
    height: 20px;
  }
}

/* ---------------- CONTEÚDO PRINCIPAL ---------------- */
.container {
  display: flex;
  gap: 50px;
  padding: 40px;
  max-width: 1200px;
  margin: 30px auto 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- GALERIA --- */
.galeria {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex: 1;
  flex-wrap: nowrap;
}

.miniaturas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;  
  overflow-y: auto;  
}


.miniaturas img {
  width: 90px;
  height: 120px;      
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
  object-fit: cover;  
}

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

/* Imagem principal com altura fixa */
.img-principal {
  width: 400px;
  max-width: 100%;
  height: 520px;
  border-radius: 10px;
  object-fit: cover;
}

/* --- DETALHES / MENU LATERAL --- */
.detalhes {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preco-antigo {
  color: gray;
  text-decoration: line-through;
}

.preco {
  font-size: 28px;
  color: #111;
  margin-top: -10px;
}

.desconto {
  color: #1ea358;
  font-weight: bold;
}

.tamanhos {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tamanhos p {
  width: 100%;
  margin: 0 0 5px 0;
}

.tamanhos button {
  border: 1px solid #ccc;
  background: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.tamanhos button:hover {
  background: #000;
  color: white;
}

.btn-comprar {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
  transition: background 0.3s;
  width: fit-content;
}

.btn-comprar:hover {
  background-color: #1ea358;
}

.frete {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.frete-inputs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.frete input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 150px;
}

.frete button {
  background-color: #1ea358;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------------- FOOTER FIXO ---------------- */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 15px 10px;
  background: #000000d0;
  color: white;
  font-size: 14px;
  z-index: 10;
}

/* ------------- RESPONSIVO ------------- */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
  }

  .galeria {
    flex-direction: column;
    align-items: center;
  }


  .miniaturas {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 8px 0 4px;
  }

  .miniaturas img {
    width: 95px;
    height: 130px;
    flex: 0 0 auto; /* impede de encolher */
  }

  .miniaturas::-webkit-scrollbar {
    height: 6px;
  }

  .miniaturas::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }

  .img-principal {
    width: 100%;
    max-width: 400px;
    height: auto; /* deixa se ajustar melhor no mobile */
  }

  .detalhes {
    padding: 10px 5px 20px;
    background: #fafafa;
    border-radius: 10px;
  }

  .btn-comprar {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .frete-inputs {
    flex-direction: row;
  }
}

@media (max-width: 500px) {
  .frete-inputs {
    flex-direction: column;
    align-items: flex-start;
  }

  .frete input {
    width: 100%;
  }

  .btn-comprar {
    width: 100%;
  }
}
