header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: 	#000000;
    width: 100%;
    position: fixed;
    padding: 20px 10%;
    color: #fff;     
}

.logo {
    font-size: 30px;
    font-weight: bold;
}
body {
    margin: 0;
    padding: 0;
    background-color: #F6F6F6;
    font-family: Arial, sans-serif;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #ffeb3b;
}

.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 por linha */
  gap: 20px; /* espaço entre os cards */
  padding: 110px 300px 0px; /* afastar do header fixo */
  justify-items: center;
}

/* Card */
.product {
  width: 220px;
  border-radius: 12px;
  background: #fff;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product:hover{
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,150,255,0.12);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    background: linear-gradient(135deg, #ffffff 60%, #fff 100%);
}

/* Imagem */
.product img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 15px; /* espaço embaixo da imagem */
  border-radius: 10px;
}


/* Preço */
.product .price {
  font-weight: bold;
  color: #e60000;
  margin-bottom: 12px;
}

.product p {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 10px 0 6px;
  line-height: 1.3;
  flex-grow: 1;
}

.product .old-price {
  text-decoration: line-through;
  font-size: 13px;
  color: #999;
}

.product .new-price {
  font-size: 16px;
  color: #d32f2f;
  font-weight: bold;
}

.product .btn,
.product button {
  background: linear-gradient(to right, #ffe259, #ffd000);
  color: #000;
  border: none;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
  margin-top: 8px;
}

.product .btn:hover,
.product button:hover {
  background: #ffcc00;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffeb3b; 
    color: #333; 
    text-decoration: none;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#carrinho-topo {
  background: #3c3b3af7;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#carrinho-topo:hover {
  background: #fdd835;
}

button:hover {
    background-color: #fdd835;
}
  
button.fechar {
    background-color: #000000; /* Cor de fundo vermelho */
    color: white; /* Cor do texto */
    border: none; /* Remove a borda */
    font-size: 18px; /* Tamanho da fonte */
    font-weight: bold; /* Texto em negrito */
    cursor: pointer; /* Cursor de ponteiro ao passar o mouse */
    position: absolute; /* Posicionamento absoluto */
    top: 10px; /* Distância do topo */
    right: 10px; /* Distância da direita */
    width: 30px; /* Largura do botão */
    height: 30px; /* Altura do botão */
    border-radius: 50%; /* Botão circular */
    display: flex; /* Centraliza o conteúdo */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    transition: background-color 0.3s ease; 
}

button.fechar:hover {
    background-color: #000000;
    color : #fff; /* Cor do texto ao passar o mouse */
    transform: scale(1.1); /* Aumenta o tamanho do botão ao passar o mouse */
}

.but {
    display: inline-block;
    padding: 12px 24px;
    width: 80%;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.but:hover {
    background-color: #fdd835;
    color: #333;
}

.banner {
    background: url('../img/bghj.png') no-repeat center center;
    background-size: cover; 
    display: block;
    height: 410px; 
    width: 100%;
    max-width: 100%;
    padding: 0;
    text-align: center;
    color: rgb(0, 0, 0);
}
.menu-toggle {
    font-size: 30px;
    padding: 10px;
    background-color: #f4a213;
    color: white;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: 10px;
    border: none;
    border-radius: 5px;
    z-index: 1000;
}
.slide-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #343434;
    transition: left 0.3s ease;
    z-index: 1000;
}
.slide-menu.active{
    left: 0;
}
.menu-toggle.active{
    left: 250px;
}


.slide-menu ul {
    list-style: none;
    padding: 0;
}
.slide-menu ul li {
    padding: 15px;
}
.slide-menu ul li a {
    color:white;
    text-decoration: none;
    display: black;
}
.slide-menu ul li a:hover {
    background-color:#28a745;
}


.sidebar {
    position: fixed;
    top: 0;
    right: -520px; /* Escondido fora da tela */
    width: 400px; /* reduzido para melhor adaptação */
    height: 100%;
    background: #fff;
    border-left: 2px solid #ccc;
    padding: 20px;
    box-shadow: -3px 0 10px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out;
    z-index: 9999;
    overflow-y: auto; 
  }
  .sidebar.ativo {
    right: 0; 
  }
  
  .frete-gratis {
    color: green;
    font-weight: bold;
  }
  
  .sugestoes {
    list-style: none;
    padding-left: 0;
  }
  
  .sugestoes li {
    margin-bottom: 5px;
  }
  
  .carrinho-produto {
    display: grid;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    margin-bottom: 12px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: 0.3s;
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;

  }
  
  .carrinho-produto img {
    width: 120px; /* menor imagem */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }
  .conteudo img {
    width: 30%;
    display: flex;
    object-fit: contain;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    margin-bottom: 12px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    text-align: center;

  }

  main{
     margin: 110px;
  }
  .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}
.card {
    height: 400px; /* igual ao .card */
    width: 200px;  /* igual ao .card */
    margin: 10px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgb(255, 255, 255); /* mantido igual ao .card */
    text-align: center;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 160px; /* igual ao .card */
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 10px;
}

.card p {
    font-size: 15px;
    font-weight: bold;
    min-height: 50px;
    margin: 0;
}

.card .price-old {
    text-decoration: line-through;
    font-size: 14px;
    color: #888;
}

.card .price-new {
    font-size: 18px;
    font-weight: bold;
    color: #E53935;
}

.card button {
    background-color: #FFEB3B;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: auto;
    transition: 0.3s;
}

.card button:hover {
    background-color: #fdd835;
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 5%;
    }

    .logo {
        font-size: 24px;
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0;
    }

    nav ul li a {
        font-size: 16px;
    }

    .banner {
        height: 250px;
        background-size: cover;
        background-position: center;
    }

    .sidebar {
        width: 100%;
        right: -100%; /* Esconde toda a largura da tela */
    }

    .sidebar.ativo {
        right: 0;
    }

    .carrinho-produto {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .conteudo img {
        width: 100%;
    }

    .cards-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .card {
        width: 100%;
        margin: 10px 0;
        padding: 15px;
    }

    main {
        margin: 20px;
    }

    .btn, .but, .add-to-cart-button, button {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 16px;
    }

    button.fechar {
        width: 25px;
        height: 25px;
        font-size: 16px;
        top: 5px;
        right: 5px;
    }
}


footer {
  background: linear-gradient(135deg, #000000, #000000);
  color: #fff;
  padding: 40px 0 20px;
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
}

/* Pata decorativa */
footer::before {
  content: "🐾";
  position: absolute;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.08);
  top: 20px;
  left: 30px;
  transform: rotate(-15deg);
}

footer::after {
  content: "🐾";
  position: absolute;
  font-size: 100px;
  color: rgba(255, 255, 255, 0.08);
  bottom: 20px;
  right: 50px;
  transform: rotate(25deg);
}

/* Container principal */
.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 40px;
}

/* Colunas */
.footer-col {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-col h4 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
}

.footer-col h4::after {
  content: "";
  width: 40px;
  height: 3px;
  background-color: #FFD54F;
  position: absolute;
  left: 0;
  bottom: -6px;
  border-radius: 2px;
}

/* Links */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: #FFD54F;
  transform: translateX(5px);
}

/* Redes sociais */
.social-icons {
  display: block;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #FFD54F;
  color: #333;
  transform: scale(1.1) rotate(5deg);
}

/* Newsletter */
.newsletter input {
  padding: 10px 15px;
  border: none;
  border-radius: 25px;
  outline: none;
  width: 70%;
  margin-bottom: 10px;
}

.newsletter button {
  background-color: #FFD54F;
  color: #333;
  padding: 10px 25px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.newsletter button:hover {
  background-color: #FFC107;
  transform: scale(1.05);
}

/* Linha inferior */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  font-size: 14px;
  color: #eee;
}

/* Ícones de pagamento */
.payment-icons {
  display: flex;
  justify-content: center;
  margin: 10px 0;
  gap: 15px;
  font-size: 30px;
}

.payment-icons i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.payment-icons i:hover {
  transform: scale(1.2);
  color: #FFD54F;
}

/* Cores personalizadas no hover */
.social-icons a:nth-child(1):hover {
  background-color: #E4405F; /* Instagram */
  color: white;
}

.social-icons a:nth-child(2):hover {
  background-color: #1877F2; /* Facebook */
  color: white;
}

.social-icons a:nth-child(3):hover {
  background-color: #FF0000; /* YouTube */
  color: white;
}

.social-icons a:nth-child(4):hover {
  background-color: #000000; /* TikTok */
  color: white;
}
