* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Anek Bangla", sans-serif;
}

/* Container for the entire page content */
.page-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Header Section */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 2.8rem;
  color: #2d3748; /* Darker heading */
  margin-bottom: 10px;
  font-weight: 800;
}

.page-header p {
  font-size: 1.1rem;
  color: #718096;
  /* max-width: 600px; */
  margin: 0 auto;
}

/* Product Grid Container */
.product-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  ); /* Responsive grid columns */
  gap: 30px; /* Space between cards */
}

/* Individual Product Card Styling */
.product-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Soft shadow */
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* More pronounced shadow on hover */
}

/* Product Image Wrapper */
.product-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistent image size */
  overflow: hidden;
  background-color: #e2e8f0; /* Light background for image area */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px; /* Padding inside the image wrapper */
  box-sizing: border-box;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Ensures the whole image is visible */
  display: block;
}

/* Product Details Section */
.product-details {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-category {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 15px;
}

.product-price {
  font-size: 2rem;
  font-weight: 800;
  color: #e53e3e; /* Red for emphasis on price */
  margin-bottom: 20px;
}

/* View Product Button */
.view-product-button {
  display: inline-block;
  width: 50%;
  padding: 12px 14px;
  background: linear-gradient(to right, #f6ad55, #ed8936);
  color: white;
  text-decoration: none;
  border-radius: 2rem;
  font-weight: 600;
  transition: 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(237, 137, 54, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.view-product-button:hover {
  background: linear-gradient(to right, #ed8936, #dd6b20);
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.2rem;
  }
  .page-header p {
    font-size: 1rem;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .product-card {
    max-width: 320px;
    margin: 0;
  }
  .product-title {
    font-size: 1.3rem;
  }

  .view-product-button {
    padding: 10px 13px;
  }
}

@media (max-width: 480px) {
  .page-container {
    margin: 20px auto;
    padding: 0 15px;
  }
  .page-header h1 {
    font-size: 1.8rem;
  }
  .page-header p {
    font-size: 0.9rem;
  }
  .product-grid {
    grid-template-columns: 1fr; /* Single column on very small screens */
    gap: 25px;
  }
  .product-image-wrapper {
    height: 180px;
  }
  .product-details {
    padding: 15px;
  }
  .product-title {
    font-size: 1.2rem;
  }
  .product-price {
    font-size: 1.6rem;
  }
  .view-product-button {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}
