﻿.addcart_card figure.sold_out, .addcart_card figure.sold_out3, .addcart_card figure.sold_out4 {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

    .addcart_card figure.sold_out::before, .addcart_card figure.sold_out3::before, .addcart_card figure.sold_out4::before {
        z-index: 3;
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0.7;
        background-color: #ffffff;
    }

    .addcart_card figure.sold_out::after {
        z-index: 3;
        content: "已售完";
        position: absolute;
        padding: 0.2rem 0.6rem;
        border-radius: 5rem;
        color: #ffffff;
        background-color: rgba(0, 0, 0, 0.6);
    }

    .addcart_card figure.sold_out3::after {
        z-index: 3;
        content: "售完不補";
        position: absolute;
        padding: 0.2rem 0.6rem;
        border-radius: 5rem;
        color: #ffffff;
        background-color: rgba(0, 0, 0, 0.6);
    }

    .addcart_card figure.sold_out4::after {
        z-index: 3;
        content: "售完補貨中";
        position: absolute;
        padding: 0.2rem 0.6rem;
        border-radius: 5rem;
        color: #ffffff;
        background-color: rgba(0, 0, 0, 0.6);
    }

/*這是四張圖拚2x2的方式*/
.image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

    .image-grid img {
        width: calc(50% - 10px);
        height: calc((calc(50% - 10px) * 3) / 5);
        object-fit: cover;
        margin: 0px;
        padding: 0px;
    }

@media (max-width: 767px) {
    .image-grid img {
        width: 100%;
        height: auto;
        margin: 5px;
    }
}
/* end */
