@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
body {
  font-family: "Montserrat", serif;
}
/* Container Grid */
#container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

/* Card Box */
.box {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1),
    -5px -5px 15px rgba(255, 255, 255, 0.7);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.15),
    -5px -5px 20px rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

/* Product Image */
.img {
  width: 250px;
  height: 250px;
  /* object-fit: cover; */
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.box:hover .img {
  transform: scale(1.05);
}

/* Title */
h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 15px 0;
  color: #333;
  text-transform: capitalize;
}

/* Price & Rating */
p {
  font-size: 1rem;
  color: #666;
  margin: 5px 0;
}

/* Rating Style */
.rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 1rem;
  font-weight: bold;
  color: #f39c12;
}

/* Buy Button */
button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  background: linear-gradient(45deg, #28a745, #218838);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
  background: linear-gradient(45deg, #218838, #1e7e34);
  transform: scale(1.05);
}

/* Responsive Design */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  #container {
    grid-template-columns: repeat(2, 1fr);
  }

  .box {
    max-width: 90%;
    margin: auto;
  }
}

/* Mobile Devices (Below 768px) */
@media (max-width: 768px) {
  #container {
    grid-template-columns: 1fr;
  }

  .box {
    max-width: 100%;
    padding: 15px;
  }

  .img {
    width: 200px;
    height: 200px;
  }

  h3 {
    font-size: 1rem;
  }

  p {
    font-size: 0.9rem;
  }

  button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}
