/* BASE STYLE FOR PRODUCT ITEM */

[class*='card-product'] a.title {
    color: #212529;
    display: block;
}

[class*='card-product'] a.title:hover {
    color: #3167eb;
}

[class*='card-product'] .badge {
    top: 10px;
    left: 10px;
    position: absolute;
}

[class*='card-product'] p {
    margin-bottom: 0;
}

[class*='card-product'] .img-wrap {
    overflow: hidden;
    position: relative;
}

[class*='card-product'] .img-wrap img {
    height: 100%;
    max-width: 100%;
    width: auto;
    display: inline-block;
    -o-object-fit: cover;
    object-fit: cover;
}


/* GRID STYLE PRODUCT ITEM */

.card-product-grid {
    margin-bottom: 20px;
}

.card-product-grid .img-wrap {
    border-radius: 0.2rem 0.2rem 0 0;
    height: 220px;
}

.card-product-grid .info-wrap {
    overflow: hidden;
    padding: 18px 20px;
}

.card-product-grid .bottom-wrap {
    padding: 18px;
    border-top: 1px solid #e4e4e4;
}

.card-product-grid .topbar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
    left: 0;
    text-align: initial;
    padding: 10px 15px;
}

.card-product-grid .topbar a {
    color: #ccc;
}

.card-product-grid .topbar a:hover {
    color: #3167eb;
}

.card-product-grid .fix-height {
    height: 80px;
    overflow: hidden;
}

.card-product-grid .btn-overlay {
    -webkit-transition: .5s;
    transition: .5s;
    opacity: 0;
    left: 0;
    bottom: 0;
    color: #fff;
    width: 100%;
    padding: 5px 0;
    text-align: center;
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
}

.card-product-grid:hover .btn-overlay {
    opacity: 1;
}

span.product-unit {
    background-color: #f2f2f2;
    padding: 2px 5px;
    font-size: 0.8em;
}

.card-product-grid:hover {
    -webkit-box-shadow: 0 4px 15px rgba(153, 153, 153, 0.3);
    box-shadow: 0 4px 15px rgba(153, 153, 153, 0.3);
    -webkit-transition: .3s;
    transition: .3s;
}

.item-slide .card-product-grid {
    margin-bottom: 0;
}


/* LARGE LIST STYLE PRODUCT ITEM */

.card-product-list {
    margin-bottom: 20px;
}

.card-product-list .img-wrap {
    height: 220px;
    border-radius: 0.37rem 0 0 0.37rem;
}

.card-product-list .info-main {
    padding: 1.5rem 1rem;
}

.card-product-list .info-aside {
    padding: 1.5rem 1rem;
    border-left: 1px solid #e4e4e4;
    height: 100%;
}


/* ====================== shopping-cart ==================== */

.table-shopping-cart.table td,
.table-shopping-cart.table th {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.table-shopping-cart .price-wrap {
    line-height: 1.2;
}

.table-shopping-cart .price {
    font-weight: bold;
    margin-right: 5px;
    display: block;
}