/* General Reset for Consistency */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Container for Product Page */
main .container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* Product Card Styles */
main .product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    padding: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main .product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

main .product-card.right {
    flex-direction: column-reverse;
}

/* Product Image Styles */
main .product-image {
    width: 100%;
    height: 300px; /* Fixed height, adjust as needed */
    overflow: hidden;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(50%);
    transition: all 0.5s ease-in-out;
}

main .product-image img {
    width: 100%; /* Ensure the image fills the container's width */
    height: 100%; /* Ensure the image fills the container's height */
    object-fit: contain; /* Ensures the full image fits inside without cropping */
    display: block;
}

/* Make the image appear smoothly */
main .product-card.visible .product-image {
    opacity: 1;
    transform: translateY(0);
}


main .product-info {
    text-align: center;
    padding: 20px;
       
}

main .product-info h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #007bff;
    text-transform: uppercase;
}

main .product-info p {
    margin: 10px 0;
    color: #555;
    font-size: 1rem;
}

main .btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

main .btn-primary:hover {
    background-color: #0056b3;
}



/* Responsive Styles */
@media (min-width: 768px) {
    main .product-card {
        flex-direction: row;
    }

    main .product-card.right {
        flex-direction: row-reverse;
    }

    main .product-image {
        width: 50%;
    }

    main .product-info {
        width: 50%;
        text-align: left;
        padding: 20px;
    }

    main .product-card.right .product-info {
        text-align: left;
        padding-left: 0;
    }
}

/* Prevent Conflicts with Global Styles */
main {
    padding-bottom: 50px; /* Adjust as needed */
}
