/* CSS File: styles.css */

.custom-product-widget {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    align-items: start;
}

.custom-product-widget .image {
    width: 30%;
    margin-right: 20px;
}

.custom-product-widget .image img {
    max-width: 100%;
    max-height: 300px;  /* adjust as needed */
    object-fit: cover;  /* this will ensure the aspect ratio of the image is maintained */}

.custom-product-widget .details {
    width: 70%;
}

.custom-product-widget .title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
}

.custom-product-widget .description {
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
}

.custom-product-widget .price {
    margin: 0 0 20px;
    font-size: 16px;
    color: #333;
}

.custom-product-widget .variation-select {
    max-width: 100%; /* Adjust as needed */
}



.custom-product-widget .image-part {
    flex: 1 0 60%;
}

.custom-product-widget .text-part {
    flex: 1 0 40%;
    margin-left: 20px; /* adjust as needed */
}

/* New styles for screens less than 600px wide */
@media (max-width: 600px) {
    .custom-product-widget {
        flex-direction: column;
    }

    .custom-product-widget .image-part,
    .custom-product-widget .text-part {
        flex: 1 0 auto;
        margin-left: 0; /* adjust as needed */
    }
}