.products-main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin: 3rem 1rem;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.product-card img {
  object-fit: cover;
  display: block;
  width: 100%;
  max-width: 300px;
  height: 300px;
  margin: 0 auto;
}
.product-card:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.product-info {
  padding: 15px;
  text-align: center;
}

.product-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 10px;
}

.product-description {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #eaeaea;
}

.product-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ad4635;
}

.buy-now-btn {
  background: #ad4635;
  color: #ffffff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.buy-now-btn:hover {
  background: #8b372d;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .products-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .products-main-container {
    margin: 2rem 1rem;
  }

  .product-title {
    font-size: 1.1rem;
  }

  .product-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .products-container {
    grid-template-columns: 1fr;
  }

  .product-card img {
    width: 100%;
    max-width: none;
    height: auto;
  }

  .product-title {
    font-size: 1rem;
  }

  .product-description {
    font-size: 0.8rem;
  }
}
