@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');

        * {
            padding: 0;
            margin: 0;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
        }

        .wrapper {
            width: 100%;
            overflow-x: hidden;
        }

        .wrapper .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        .category-filter {
            margin-top: 40px;
        }

        .title {
            margin-bottom: 40px;
        }

        .title h1 {
            color: #1b1919;
            text-align: center;
            font-weight: 800;
            font-size: 36px;
            letter-spacing: 1px;
        }

        .filter-btns {
            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;
        }

        .filter-btn {
            background: none;
            cursor: pointer;
            border: none;
            font-family: inherit;
            text-transform: uppercase;
            display: inline-block;
            margin: 10px 30px;
            font-size: 16px;
            color: #000000;
            font-weight: 600;
            letter-spacing: 2px;
            position: relative;
            -webkit-transition: all 0.2s ease-in-out;
            -o-transition: all 0.2s ease-in-out;
            transition: all 0.2s ease-in-out;
        }

        .filter-btn::after {
            content: "";
            position: absolute;
            top: 110%;
            left: 50%;
            -webkit-transform: translateX(-50%);
            -ms-transform: translateX(-50%);
            transform: translateX(-50%);
            height: 2px;
            width: 0;
            background-color: #555;
            -webkit-transition: all 0.2s ease-in-out;
            -o-transition: all 0.2s ease-in-out;
            transition: all 0.2s ease-in-out
        }

        .filter-btn:hover {
            color: #555;
        }

        .filter-btn:hover::after {
            width: 100%;
        }

        /* active button */
        .active-btn {
            color: #555;
        }

        .active-btn::after {
            width: 100%;
        }

        /*  */

        .filter-items {
            margin-top: 40px;
        }

        .item-img {
            position: relative;
            overflow: hidden;
        }

        .item-img::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(212, 203, 203, 0.1);
        }

        .item-img .discount {
            position: absolute;
            right: 0;
            top: 20px;
            background-color: #b39640;
            z-index: 1;
            border-radius: 2px;
            color: #fff;
            font-size: 12px;
            padding: 4px 16px;
        }

        .item-img img {
            width: 100%;
            display: block;
            -webkit-transition: -webkit-transform 0.2s ease-in-out;
            transition: -webkit-transform 0.2s ease-in-out;
            -o-transition: transform 0.2s ease-in-out;
            transition: transform 0.2s ease-in-out;
            transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
        }

        .filter-item:hover .item-img img {
            -webkit-transform: scale(1.1);
            -ms-transform: scale(1.1);
            transform: scale(1.1);
        }

        .item-info {
            padding: 14px 0;
        }

        .item-info p {
            font-weight: 600;
            font-size: 17px;
            margin-top: 8px;
        }

        .item-info .old-price {
            font-size: 14px;
            font-weight: 700;
            text-decoration: line-through;
        }

        .item-info .new-price {
            display: inline-block;
            margin-left: 6px;
            font-weight: 600;
            color: #f53939;
        }

        .add-btn {
            display: inline-block;
            margin-top: 20px;
            background-color: #b39640;
            text-decoration: none;
            color: #fff;
            padding: 8px 20px;
            border-radius: 2px;
            border: 2px solid #b39640;
            -webkit-transition: all 0.2s ease-in-out;
            -o-transition: all 0.2s ease-in-out;
            transition: all 0.2s ease-in-out;
        }
        .add-btn-add {
            display: inline-block;
            margin-top: 20px;
            background-color: #ffffff;
            text-decoration: none;
            color: #b39640;
            padding: 8px 20px;
            border-radius: 2px;
            border: 2px solid #b39640;
            -webkit-transition: all 0.2s ease-in-out;
            -o-transition: all 0.2s ease-in-out;
            transition: all 0.2s ease-in-out;
        }

        .add-btn:hover {
            border-color: #b39640;
            background-color: #fff;
            color: #b39640;
        }
        .add-btn-add:hover {
            border-color: #b39640;
            background-color: #b39640;
            color: #ffffff;
        }


        .filter-items {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -ms-flex-wrap: wrap;
            flex-wrap: wrap;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            -webkit-box-pack: space-evenly;
            -ms-flex-pack: space-evenly;
            justify-content: space-evenly;
        }

        .filter-item {
            width: 100%;
            margin-bottom: 40px;
            -webkit-animation: fadeIn 1s;
            animation: fadeIn 1s;
        }

        @-webkit-keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @media screen and (min-width: 768px) {
            .filter-item {
                width: calc(50% - 30px);
            }
        }

        @media screen and (min-width: 992px) {
            .filter-item {
                width: calc(33.3333% - 30px);
            }
        }

        @media screen and (min-width: 1200px) {
            .filter-item {
                width: calc(25% - 30px);
            }
        }
        
#ผ้าถุง: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;
}


.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;
}