body {
    background-color: #FFFCF7;
    background-size: contain;
    overflow-x: hidden;
}

.top-bar.green {
    background-image: url('../imgs/images/topgreenbardog.png');
    background-position: right 20px;
    background-size: 400px 200px;
    background-repeat: no-repeat;
    background-color: #E4F0D0;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    margin-top: 20px;
    margin-left: 5px;
    margin-right: 5px;
    justify-content: space-between;
    align-items: center;

}

.top-bar.pink {
    background-image: url('../imgs/images/toppinkbarcat.png');
    background-position: right 2px;
    background-size: 400px 200px;
    background-repeat: no-repeat;
    background-color: #FBDEDB;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    margin-top: 140px;
    margin-left: 5px;
    margin-right: 5px;
    justify-content: space-between;
    align-items: center;

}

.top-bar.blue {
    background-image: url('../imgs/images/topbarbluecats.png');
    background-position: right 30px;
    background-size: 400px 220px;
    background-repeat: no-repeat;
    background-color: #A1B5D8;
    border-radius: 15px;
    padding: 32px;
    display: flex;
    margin-top: 140px;
    margin-left: 5px;
    margin-right: 5px;
    justify-content: space-between;
    align-items: center;

}

.left-section {
    margin-left: 20px;
}

.title {
    font-size: 28pt;
    font-family: Legwork Demo;
    color: #1C1C42;
}

.categories {
    text-decoration: none;
    display: flex;
    margin-top: 16pt;
    color: #5C4F66;
    font-size: 20pt;
    font-family: Oliver Regular;
}

.categories a:hover {
    text-decoration: underline;
}


.filterbuttons-container {
    display: flex;
    /* Ensures child elements align horizontally */
    justify-content: flex-start;
    /* Align items to the left (adjust as needed) */
    align-items: center;
    /* Vertically align items */
    gap: 20px;
    /* Space between buttons */
}

.filterbutton {
    margin-top: 20px;
    border: 1px solid black;
    align-items: center;
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 10px;
    color: #000000;
    width: 125px;

}

.filterbutton-photo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.filterbutton-text {
    font-size: 17px;
    color: #000000
}

.categories .row {
    display: flex;
    gap: 15px;
}

.container {
    display: flex;
    gap: 40%;
    justify-content: center;
    padding: 20px;
}

.firstrowcolumn {
    display: flex;
    flex-direction: row;
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: 30px;
    padding: 30px;
    justify-content: center;
    align-items: center;
    gap: 20%;
    max-width: 1440px;


}


.product-card {
    width: 240px;
    height: auto;
    margin-top: 30px;
    margin-bottom: -70px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card .background {
    display: flex;
    justify-content: center;
    width: 220px;
    height: 200px;
    background-color: #FEF7E7;
    border-radius: 10px;
    /* Optional: match the card's border radius */
    padding: 10px;
    /* Optional: Add space between the image and the background */
    align-items: center;
}

.product-card img {
    width: 200px;
    /* Adjust the width to 100% of the container */
    height: 190px;
    justify-content: center;
    align-items: center;
    display: flex;
    object-fit: contain;
    /* Ensures image maintains aspect ratio and fits inside */
    display: block;
    transition: transform 0.3s ease;
}

.product-card img:hover {
    transform: scale(1.1);
    /* Zoom in the image */
}

.product-card .brand {
    margin-top: 20px;
    margin-bottom: 2px;
    font-size: 17px;
    font-family: "Nunito Sans", sans-serif;
}

.product-card .name {
    font-size: 17px;
    color: #4A4A4A;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 800;
    margin-bottom: 7px;
}

.product-card.rating {
    display: flex;
    align-items: center;
    margin-top: 5px;
    font-size: 16px;
}

.product-card .stars {
    display: inline-flex;
    /* Ensures stars are in a row */
    color: gold;
    font-size: 30px;
    margin-top: 15pt;
    margin-right: 2px;
    line-height: 1;
    gap: 5px;
}

.product-card .reviewnumbers {
    margin-left: 5px;
    align-items: center;
    font-size: 16px;
    color: #4A4A4A;
    font-family: "Nunito Sans", sans-serif;
    line-height: 1;
    justify-content: center;
}

.product-card.prices {
    display: flex;
    align-items: center;
    gap: 10pt;
    margin-top: 5px;
    font-size: 16px;
    display: inline-block;
}

.product-card .price {
    font-size: 16px;
    color: #4A4A4A;
    font-family: "Nunito Sans", sans-serif;
    margin-top: 10pt;
    display: block;
}

.product-card .old-price {
    font-size: 14px;
    color: #4A4A4A;
    font-family: "Nunito Sans", sans-serif;
    text-decoration: line-through;
    margin-left: 12pt;
    display: inline-block;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .firstrowcolumn {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 6%;
    }

    .product-card {
        width: 180px;
        /* Reduce width */
        padding: 15px;
        /* Adjust padding for smaller size */
        margin-top: 20px;
        /* Adjust spacing if needed */
        margin-bottom: -50px;
    }

    .product-card .background {
        width: 160px;
        /* Reduce background width */
        height: 140px;
        /* Reduce background height */
    }

    .product-card img {
        width: 140px;
        /* Adjust image width */
        height: 130px;
        /* Adjust image height */
    }

    .product-card .brand,
    .product-card .name,
    .product-card .reviewnumbers,
    .product-card .price,
    .product-card .old-price {
        font-size: 15px;
        /* Decrease font size for smaller screens */
    }

    .product-card .stars {
        font-size: 20px;
        /* Reduce star size */
        margin-top: 10pt;
    }
}

@media (max-width: 768px) {
    .firstrowcolumn {
        flex-direction: column;
    }

    .product-card {
        justify-content: center;
        flex-direction: column;
        margin-bottom: 16px;
    }
}


@media (max-width: 600px) {

    body {
        flex-direction: column;
        background-size: contain;
        background-image: none;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    #nav {
        flex-direction: column;
        justify-content: space-between;
        display: none;
    }

    header {
        background-size: cover;
        align-items: center;
        justify-content: space-between;
    }

    .categories {
        display: none;
    }

    .top-bar.green {
        background-position: right 8px;
        background-size: 280px 150px;
    }

    .top-bar.pink {
        margin-top: 40px;
        background-position: right -10px;
        background-size: 280px 180px;
    }

    .top-bar.blue {
        margin-top: 40px;
        background-position: right 30px;
        background-size: 260px 140px;
    }


    .firstrowcolumn {
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 20px;

    }

    .product-card {
        justify-content: center;
        flex-direction: column;
        margin-bottom: 16px;
    }
}