* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
}

/* ====================== HEADER ====================== */
.header {
    background-color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid #eee;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu {
    display: flex;
    gap: 2.8rem;
    list-style: none;
}



/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: #E30613;
    text-decoration: none;
}

.logo span {
    color: #111111;
}


/* botão hamburguer */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

.menu a {
    color: #222222;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #E30613;
}
    nav a {
      color: #fff;
      margin-left: 20px;
      text-decoration: none;
      font-weight: 500;
    }

    .container {
      max-width: 1200px;
      margin: 60px auto;
      padding: 0 20px;
    }

    .products {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
    }

    .product {
      background: #fff;
      border-radius: 12px;
      padding: 25px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.08);
      transition: transform 0.3s;
    }

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

    .product img {
      width: 100%;
      height: 240px;
      object-fit: contain;
      margin-bottom: 20px;
    }

    .product h2 {
      font-size: 20px;
      margin-bottom: 10px;
    }

    .product p {
      font-size: 14px;
      color: #555;
      margin-bottom: 15px;
    }

    .price {
      font-size: 22px;
      font-weight: 700;
      color: #16a34a;
      margin-bottom: 20px;
    }

    .btn {
      background: #006414;
      color: #fff;
      border: none;
      padding: 14px;
      width: 100%;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
    }

    .btn:hover {
      background: #15803d;
    }

    

    .cart {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -3px 0 8px rgba(0,0,0,0.2);
  padding: 20px;
  transition: right .3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.cart-toggle {
  background: rgb(255, 255, 255);
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  
}
.cart.open {
  right: 0;
}



.cart .fechar {
  background: rgb(186, 0, 0);
  margin-top: 10px;
  width: 100%;
}


.cart .finalizar {
   background: rgb(28, 152, 0);
  margin-top: 10px;
  width: 100%;
}

.cart-total {
  margin-top: 10px;
  font-weight: bold;
  font-size: 18px;
}


.remove-btn {
  background: red;
  border: none;
  color: white;
  margin-left: 10px;
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 6px;
}

@media (max-width: 768px) {
  .header,
  .nav {
    flex-direction: row;
    align-items: center;
  }

  .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
  }
}


  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    text-align: center;
    background: white;
    width: 100%;
  }

  .menu.active {
    display: flex;
  }
}