body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.filter-container {
    text-align: center;
    margin: 20px 0;
}

.filter-btn {
    padding: 12px 18px;
    margin: 5px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.filter-btn:hover {
    background-color: #0056b3;
}

product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Ensures a responsive grid */
    grid-auto-rows: 200px; /* Fixed row height for each product */
    gap: 40px; /* Space between grid items */
    max-height: 300px; /* Maximum height for the grid */
   /* overflow-y: auto; /* Adds a scroll bar when content exceeds the height */
    border: 1px solid #ccc; /* Optional: border for the grid */
    padding: 10px;
    box-sizing: border-box; /* Ensures padding is included in the width/height */ 
}

.product-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 20px;
    width: 90%;
    margin: 0 auto;
}

.product-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 15px;
    background-color: #fff;
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
    position: relative;
}

.product-card img {
    width: 100%;
    height: auto;
    max-height: 150px;
    transition: transform 0.3s;
}

.product-card h3 {
    margin: 10px 0;
}

.product-card p {
    color: #666;
    font-size: 0.9em;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.product-card:hover img {
    transform: scale(1.05);
}

.hidden {
    display: none;
}
