* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #fff3f3;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    text-align: center;
    margin: 20px auto;
    padding-bottom: 40px;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
    transition: 0.5s;
}

.card:hover {
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.product-info {
    flex: 1;
    max-width: 60%;
    height: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-product-name {
    font-size: 30px;
    margin-top: -20px;
    margin-bottom: 50px;
    color: rgba(0, 0, 0, 0.7);
    transition: color 0.2s;
}

.main-product-name:hover {
    color: rgba(0, 0, 0, 1);
}

.sub-product-name {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
    margin-top: 0;
    color: #555;
}

.product-info p {
    margin-bottom: 10px;
    display: flex;
}

.product-info strong {
    display: inline-block;
    width: 120px;
    flex-shrink: 0;
    margin-right: 10px;
}

.product-info p strong {
    margin-left: 0;
    flex-shrink: 0;
    width: 150px;
}

.product-info p span {
    flex-grow: 1;
    padding-left: 10px;
}

@media screen and (min-width: 768px) {
    .card {
        display: flex;
        align-items: center;
        width: 80%;
        height: 400px;
        margin: 20px auto;
    }

    .product-image {
        flex: 1;
        max-width: 40%;
        max-height: 800px;
        margin-right: 20px;
    }

    .product-info {
        flex: 1;
        max-width: 60%;
        height: 100%;
        text-align: left;
    }
}

@media screen and (max-width: 767px) {
    .container {
        max-height: 100vh;
        padding-bottom: 60px;
    }

    .card {
        width: 90%;
        margin: 0 auto 10px;
        padding: 15px;
    }

    .product-image {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .product-info {
        max-width: 100%;
        text-align: left;
    }

    .main-product-name {
        font-size: 18px;
        margin-top: 10px;
        margin-bottom: 10px;
        text-align: center;
    }

    .sub-product-name {
        font-size: 16px;
        margin-bottom: 5px;
        text-align: center;
    }

    .product-info strong {
        width: 100%;
        margin-bottom: 5px;
    }

    .product-info p {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .product-info p strong {
        margin-left: 0;
        flex-shrink: 0;
        width: 100%;
    }

    .product-info p span {
        flex-grow: 1;
        padding-left: 10px;
    }
}
