
/* Section Container */
.products .section_container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.section_title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* Category Selector */
.category_selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.category_btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.category_btn:hover {
    background-color: #45a049;
}

/* Product Container */
.product_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

/* Product Card */
.product {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 10px;
    padding: 20px;
    width: calc(33.333% - 40px); /* 3 items per row */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 350px; /* Ensures consistent height */
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.product img:hover {
    transform: scale(1.05); /* Image hover effect */
}

.product h3 {
    font-size: 1.5em;
    color: #333;
    margin: 0 0 10px 0; /* Fixed margin for consistent spacing */
    text-align: center;
    flex-grow: 1; /* Ensures h3 stays in a consistent spot even with multi-line text */
}

.product p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.product:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
}

/* Button */
.product .product-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    margin-top: auto; /* Ensures the button sticks at the bottom */
    transition: background-color 0.3s;
}

.product .product-btn:hover {
    background-color: #0056b3; /* Button hover effect */
}

/* Media Queries */
@media (max-width: 1024px) {
    .product {
        width: calc(50% - 40px); /* 2 items per row */
    }
}

@media (max-width: 768px) {
    .product {
        width: 100%; /* 1 item per row */
    }

    .category_selector {
        flex-direction: column;
        align-items: center;
    }
}
