
*{
  transition: 1s;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;

}

/* Versão alternativa com gradiente */
.login-btn.gradient {
  display: none;
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
}

.login-btn {
  display: none;
}

.login-btn.gradient:hover {
  background: linear-gradient(135deg, #3a56d4, #2e0785);
  color: white;
}

/* Versão outline */
.login-btn.outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.login-btn.outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Versão outline */
.login-btn.outline.register {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.login-btn.outline.register:hover {
  background: var(--primary-color);
  color: var(--text-color);
}

main {

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

:root {
  --primary-color: #4a6fa5;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}




#produto-container {
  display: flex;
  position: fixed;
  top: 8%;
  left: -120%;
  flex-direction: column;
  width: 79%;
  max-height: 85%;
  overflow: scroll;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: 1s;
  z-index: 3000;
}

#produto-topo {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

#produto-galeria {
  flex: 1;
  min-width: 300px;
}

#imagem-principal {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#miniaturas {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.search-box {
  list-style: none;
  width: 80%;
  /* border: 1px solid black; */
  display: flex;
  flex-direction: row;
  height: 50px;
  align-items: center;
  /* position: relative;
  right: 500px;
  top: 12px; */
  flex-wrap: wrap;
}
ul{
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: end;
}
a{
  text-decoration: none;
  color: black;
  cursor: pointer;
}
li{
  background-color: white;
  /* height: 30px; */
  /* border: 0.2px solid gray; */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 0.3px solid rgba(128, 128, 128, 0.521);
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  width: 108px;
}
li:hover{
  transform: scale(1.1);
  background-color: rgba(199, 199, 199, 0.616);
  /* color: white; */
  transition: 0.5s;
}
a:hover{
  color: white;
  transition: 0.4s;
}


.miniatura {
  width: 200px;

  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s ease;
}

.miniatura:hover {
  border-color: #007bff;
}

#info-produto {
  flex: 1;
  min-width: 280px;
  margin: 0% 0% 0% 29%;
}

#titulo-produto {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

#preco-produto {
  font-size: 24px;
  color: #28a745;
  margin: 10px 0;
}

#descricao-produto {
  font-size: 16px;
  margin-top: 20px;
  line-height: 1.5;
}

#botao-compra {
  margin-top: 20px;
  background-color: #25D366;
  color: #fff;
  padding: 15px 25px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#botao-compra:hover {
  background-color: #1ebe5d;
}

#avaliacoes {
  margin-top: 40px;
}

.avaliacao {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
}

#relacionados {
  margin-top: 50px;
}

#relacionados h3 {
  margin-bottom: 20px;
}

#grade-relacionados {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.item-relacionado {
  background: #fafafa;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.item-relacionado img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 8px;
}

.item-relacionado p {
  margin: 0;
  font-size: 14px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Foca no centro da imagem */
}


.product-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.product-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-image.active {
  opacity: 1;
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  /* Altura fixa para consistência */
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Centraliza verticalmente */
  justify-content: center;
  /* Centraliza horizontalmente */
  background-color: #f5f5f5;
  /* Cor de fundo para áreas não cobertas pela imagem */
}

.product-image {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  /* Mantém proporções sem cortar */
  opacity: 0;
  transition: opacity 0.5s ease;
}

.image-dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--white);
  transform: scale(1.2);
}

.product-info {
  padding: 18px;
}

.product-title {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 8px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-description {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 20px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.current-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.original-price {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.add-to-cart {
  flex: 1;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart:hover {
  background-color: #3a5a8f;
}

.wishlist-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background-color: var(--light-gray);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.wishlist-btn:hover {
  background-color: #ddd;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff4757;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}
.slider-container{
  width: 70dvw;
  height: 75dvh;
  
}
.slider{
  height: 60dvh;

}
.slider img{
  
  height: 80dvh;
  background-position: center;
  object-fit: contain;
}
.product-card2{
  background-size: contain;
  background-position: center;
  width: 70dvw;
}

@media (max-width: 1500px) {

  .slider img{
    height: 85dvh;
    background-position:top;
    background-size: contain;
  }
}

@media (max-width: 868px) {
  .slider{
    height: 48dvh;
  }
  #produto-container {
    left: 0%;
  }
  .product-card{
    width: 100%;
  }
  #imgTecnico{
    width: 100%;
    height: auto;
  }
  .slider img{
    
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: contain;
  }
  ul{
    /* flex-wrap: wrap; */
    overflow: scroll;
    display: flex;
    flex-direction: row;
    justify-content: start;
    padding: 10px;
    
  }
  ul li{
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 1px solid black; */
  }
  .search-box{
    left: 0px;
  
    position: fixed;
    top: 100px;
    background-color: rgba(255, 255, 255, 0.575);
    height: 20dvh;
    width: 100%;
    border-bottom: 0.5px solid rgba(148, 145, 145, 0.5);
    margin: auto 0px;
  }
  

  .slider-container {
    width: 80dvw;
    margin: 0 auto;
    height: 50dvh;
    
  }
  
  .slide-caption{
    width: 100px;
    height: 50px;
    font-size: 0.9rem;
    padding: 5px 0px; 
  }

  .logo {

    margin-right: 20px;
  }

  .dot {
    width: 20px;
    height: 20px;
  }

  .login-btn {
    display: none;
  }

}

