* {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #eef8ff;
}

a {
    text-decoration: none;
}

.box {
    width: 370px;
    /* height: auto; */
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    /* position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%); */
    margin: 15px;
}

.slide-img {
    height: 550px;
    /*<!-- ///////////-->*/
    position: relative;
}

.slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
}

.detail-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 4px 2px 2px;
    box-sizing: border-box;
    background-color: #252525;
}

.type {
    display: flex;
    flex-direction: column;
    /*display: inline-flex;*/
    width: 150px;
    text-align: center;

}

.type a {
    color: #ffffff;
    margin: 1px 0px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding-right: 4px;

}


.type span {
    color: rgba(26, 26, 26, 0.5);
}

.price {
    color: #3b0000;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #eef8ff;
}

.overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(56, 119, 145, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.buy-btn {
    width: 160px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: whitesmoke;
    color: #252525;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 20px;
    box-shadow: 2px 2px 30px rgba(0, 0, 0, .2);
}

.buy-btn:hover {
    color: white;
    background-color: palevioletred;
    transition: all ease 0.3s;
}

.overlay {
    visibility: hidden;
}

.slide-img:hover .overlay {
    visibility: visible;
    animation: fade 0.5s;
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }

}

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    .slide-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        box-sizing: border-box;
    }
}