/* -------------------------------------------------Product Card----------------------------------------------------------- */
/* Product card */
.product-card {
    font-family: Roboto, sans-serif;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 999;
    overflow: hidden;
    margin-bottom: 10px;
}

.name_and_description {
    overflow-y: hidden;
    height: 60px;
}

/* .product-card:before {
    content: "";
    height: 81%;
    width: 100%;
    background: #fff;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 0.5s ease 0s;
} */
.product-card:hover:before {
    opacity: 1;
    height: 100%;
}
.product-card .product-image {
    position: relative;
}
.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card .product-image a {
    display: block;
}
.product-card .product-image img {
    width: 100%;
    height: auto;
}
.product-card .pic-1 {
    transition: all 0.5s ease-out 0s;
}
.product-card:hover .pic-1 {
    opacity: 0.8;
}
.product-card .social {
    width: 120px;
    padding: 0;
    margin: 0 auto;
    list-style: none;
    opacity: 0;
    position: absolute;
    right: 0;
    left: 0;
    bottom: -10px;
    transform: scale(0);
    transition: all 0.3s ease 0s;
}
/* .product-card:hover .social {
    opacity: 1;
    transform: scale(1);
} */
/* .product-card:hover .product-discount-label,
.product-card:hover .product-new-label,
.product-card:hover .rating {
    opacity: 0;
} */
.product-card .social li {
    display: inline-block;
}
.product-card .social li a {
    color: #f08e00;
    background: #fff;
    font-size: 18px;
    line-height: 50px;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    margin: 0 2px;
    display: block;
    transition: all 0.3s ease 0s;
}
.product-card .social li a:hover {
    background: #f08e00;
    color: #fff;
}
.product-card .product-discount-label,
.product-card .product-new-label {
    background-color: #f08e00;
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    position: absolute;
    left: 10px;
    top: 10px;
    transition: all 0.3s;
    border-radius: 3px !important;
}
.product-card .product-content {
    z-index: -1;
    padding: 15px;
    text-align: left;
}
.product-card .title {
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
    margin: 0 0 7px;
    transition: all 0.3s ease 0s;
}
.product-card .title a {
    color: #414141;
    text-decoration: none;
}
.product-card .price {
    color: #000;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 600;
    margin-right: 2px;
    display: inline-block;
}
.product-card .price span {
    color: #909090;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: line-through;
    text-align: left;
    display: inline-block;
    margin-top: -2px;
}
.product-card .rating {
    padding: 0;
    margin: -22px 0 0;
    list-style: none;
    text-align: left;
    display: block;
}
.product-card .rating li {
    color: #ffd200;
    font-size: 13px;
    display: inline-block;
}
.product-card .rating li.disable {
    color: #dcdcdc;
}
@media only screen and (max-width: 1200px) {
    .product-card .rating {
        margin: 0;
    }
}
@media only screen and (max-width: 990px) {
    .product-card {
        margin-bottom: 30px;
    }
    .product-card .rating {
        margin: -22px 0 0;
    }
}
@media only screen and (max-width: 420px) {
    .product-card .rating {
        margin: 0;
    }
    .product-card {
        margin-bottom: 10px;
    }
}

/* mini cards */
.product-card-mini {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.product-card-mini:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.product-card-mini a {
    text-decoration: none;
}

.product-card-mini img {
    height: 100px;
}

.card-description {
    display: block; /* or inline-block */
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-img {
    height: 250px !important;
    width: auto;
    object-fit: cover;
}

.img-mini-card {
    height: 100px !important;
    width: 100px !important;
    object-fit: cover;
}
