/* 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 {
    max-width: 100%;
    border-radius: 10px;
    backface-visibility: hidden;
}

.product {
    background: #fff none repeat scroll 0 0;
    border: 1px solid #c0c0c0;
    overflow: hidden;
    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);
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    bottom: 50px;
}

.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;
}

/* Product appearance - Scale up the item */
.product::after {
    content: "";
    border-radius: 5px;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.5);
    opacity: 0;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 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;
}