  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.category-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    padding-bottom: 1px;
}

.category {
    margin-bottom: 30px;
}

#buttons {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #b6a0f2;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* #buttons button:hover {
    background-color: #e91e63;
}

#buttons button:active {
    transform: scale(0.95);
    background-color: #007bff; 

} */

#buttons button.active {
    background-color: #21198c; /* Blue background for the active button */
    color: white; /* White text for the active button */
}

#buttons button.active:hover {
    background-color: #e91e63; /* Darker blue when hovered, keeps blue background */
}

/* Default button styles (non-active) */
#buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #d41766;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#buttons button:hover {
    background-color: #e91e63;
}

#buttons button:active {
    transform: scale(0.95);
}


#price-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#price-filter label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

#price-filter input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

#price-filter input:focus {
    border-color: #e91e63;
}

#price-filter button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #4caf50;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#price-filter button:hover {
    background-color: #388e3c;
}

#price-filter button:active {
    transform: scale(0.95);
}

.product-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    background-color: #fff;
}

.card img {
    width: 40%;
    height: auto;
}

.product-title {
    font-size: 1.2em;
    margin: 10px 0;
}

.add-to-bag {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.add-to-bag:hover {
    background-color: #0056b3;
}

.rating .star {
    color: gold;
    font-size: 1.2em;
}

.rating .star.empty {
    color: #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    #buttons {
        justify-content: center;
    }

    #price-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    #price-filter input {
        width: 100%;
    }

    .product-container {
        grid-template-columns: 1fr 1fr; /* Two columns on smaller screens */
    }
}
