/* General container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Nunito Sans', sans-serif;
    color: #333;
}

/* Heading */
h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #2c3e50;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* Product card */
.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Product image */
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Product info */
.product-info {
    padding: 15px;
    text-align: center;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-price {
    font-size: 1rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Add to Cart Button */
.add-to-cart-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3498db, #1d6fa5);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #2980b9, #1a5f87);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 14px rgba(41, 128, 185, 0.4);
}

.add-to-cart-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(41, 128, 185, 0.3);
}


/* No products message */
.no-products {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card {
        flex-direction: column;
    }
}
