body {
    text-align: center;
    font-family: arial;
}

input {
    display: none;
}

.tag {
    font-size: 20px;
    margin: 1.5em 0px;
    padding: 2.5px 25px;
    border-radius: 500px;
    display: inline-block;
    cursor: pointer;
    background: #ffd769;
    text-decoration: none;
    color: black;
    border: 0px solid #cccccc;
}

.images img {
    transition: all 0.3s ease-in-out;
}

.images img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    outline: 5px solid #ffd769;
    /* เพิ่มขอบสีขาว */
}

.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
}

#ผ้าถุง:checked~.images>img:not([class*='ผ้าถุง']),
#เสื้อ:checked~.images>img:not([class*='เสื้อ']),
#ลายผ้า:checked~.images>img:not([class*='ลายผ้า']),
#กระโปรง:checked~.images>img:not([class*='กระโปรง']),
#อื่นๆ:checked~.images>img:not([class*='อื่นๆ']) {

    width: 0px;
    height: 0px;
}

#ทั้งหมด:checked~.ทั้งหมด,
#ผ้าถุง:checked~.ผ้าถุง,
#เสื้อ:checked~.เสื้อ,
#ลายผ้า:checked~.ลายผ้า,
#กระโปรง:checked~.กระโปรง,
#อื่นๆ:checked~.อื่นๆ {
    background-color: #333333;
    color: white;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}