/* Products Section */
.products-section {
  padding-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background-color: var(--main-color);
}

.products-section .content {
  flex: 1;
  text-align: left;
}

.products-section .content h1 {
  color: var(--main-text-color);
  font-size: 2rem;
  margin-bottom: 10px;
}

.products-section .content p {
  color: var(--main-text-color);
  font-size: 10px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.products-section .content .button {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 30px;
}

.products-section .content .button:hover {
  background-color: #555;
}

.products-section .product {
  cursor: pointer;
  flex: 1;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  height: 300px;
  position: relative;
}

.products-section .product img {
  height: 70%;
  position: absolute;
  top: 0;
  transition: transform ease-in-out 0.2s;
}
.products-section .product:hover img {
  transform: translateY(-50px);
}

.products-section .product .product-footer {
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
}

.products-section .product h3 {
  color: var(--main-text-color);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.products-section .product p {
  font-size: 1rem;
  color: gray;
}

.products-section .product:hover {
  background-color: rgba(169, 169, 169, 0.5);
}

.products-section .product .add-to-cart {
  background-color: #333;
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  position: absolute;
  bottom: -15px;
  left: 50% - 15px;
  display: none;
}

.products-section .product:hover .add-to-cart {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 800px) {
  .products-section {
    flex-direction: column;
    gap: 50px;
  }

  .products-section .content {
    width: 100%;
    text-align: center;
  }

  .products-section .content p {
    margin-bottom: 0;
  }

  .products-section .content .button {
    margin-top: 15px;
    margin-bottom: 30px;
  }

  .products-section .product {
    width: 100%;
    height: auto;
    position: relative;
  }

  .products-section .product img {
    position: static;
    width: 25%;
  }

  .products-section .product .product-footer {
    position: static;
  }
}

@media (max-width: 550px) {
  .products-section .product img {
    width: 80%;
  }
}
