/* Back to top button */
#top-btn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    font-size: 18px;
    background-color: #333;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px;
    border-radius: 100%;
    z-index: 9999;
}

#top-btn:hover {
    background-color: #fff;
    color: #333;
}


/* Products container*/
.container-products {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Product items */
.product-img img {
    border-radius: 10px;
    /* backface-visibility: hidden; */
    width: 100%;
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    object-position: center;
}


.product-flip {
    background: #fff none repeat scroll 0 0;
    border: 1px solid #c0c0c0;
    padding: 25px 15px;
    position: relative;
    text-align: center;
    margin: 20px 20px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
    bottom: 50px;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    width: 100%;
    max-width: 300px;
    max-height: 300px;

}

/* Card turn over - flip on click */
.product-flip.flipped {
    transform: rotateY(180deg);
}

.product-flip.flipped .badge {
    transform: rotateY(180deg);
}

.product-flip.flipped .badge-extra {
    transform: rotateY(180deg);
}

/* Product appearance - hover */
.product:hover {
    -webkit-transform: scale(1.05, 1.05);
    transform: scale(1.05, 1.05);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
}

.product-flip:hover {
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
}

/* Product appearance - Fade in the pseudo-element with the bigger shadow */
.product:hover::after {
    opacity: 1;
}

.product-title {
    color: #000;
    font-weight: 500;
}

.product-desc {
    font-weight: 200;
    max-height: 30px;
    overflow: hidden;
}

.product-text-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-weight: 200;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 10px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #fff;
    line-height: 1.5;
    font-size: 15px;
}

.product-text-back ul,
li {
    list-style-type: none;
    text-align: left;
}

/* Product labels */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff0000;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 10px;
}

.badge-extra {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff0000;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 10px;
}

/* filters */
.filter-container {
    margin-bottom: 50px;
    float: left;
    margin-left: 50px; 
}

.filter-container label {
    display: block;
    margin-bottom: 5px;
}

.filter-container select {
    display: block;
    margin-bottom: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 5px;
    border: 1px solid #f27500;
    border-radius: 4px;
    width: 100%;
}

.filter-container select:focus {
    outline: none;
    border: 1px solid #f27500;
    box-shadow: none;
}


/* .product-flip { */
    /* display: none; Hide all cards by default */
/* } */

.filtered {
    display: block; /* Show filtered cards */
}