/*============================================================================================
   Start Card CSS
==============================================================================================*/
.product.style-2 {
    position: relative;
    font-family: var(--font-family);
    font-size: 1rem;
    color: #020101;
    transition: box-shadow 0.3s, opacity 0.3s;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--white-color);
}
.product.style-2 .product-price {
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.product.style-2 .product-media {
    position: relative;
    margin-bottom: 0;
    transition: box-shadow 0.35s;
    overflow: hidden;
}
.product.style-2 .product-media img {
    display: block;
    width: 100%;
    transition: all 0.3s ease;
}
.product.style-2:hover .product-media img {
    transform: scale(1.04);
}
.product.style-2 .product-media img:last-child {
    position: absolute;
    opacity: 0;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    object-fit: cover;
}
.product.style-2 .product-media img:first-child {
    position: relative;
    opacity: 1;
}
.product.style-2 .product-media:hover img:last-child {
    opacity: 1;
}
.product.style-2 .product-label-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 2rem;
    top: 2rem;
    max-width: 11rem;
    z-index: 1;
}
.product.style-2 .product-label {
    display: inline-block;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.2em;
    letter-spacing: -0.005em;
    color: #fff;
    line-height: 1;
    padding: 0.6rem 1rem;
    border-radius: 0.3rem;
    text-transform: uppercase;
}
.product.style-2 .product-label.label-new {
    background: var(--secondary-color);
    padding: 0.6rem 1rem;
}
.product.style-2 .product-label.label-discount {
    background: var(--secondary-color);
}
.product.style-2 .product-label.label-hot {
    background: #799b5a;
}

.product.style-2 .product-sales-wrapper {
    position: relative;
    margin-bottom: 1.4rem;
}
.product.style-2 .product-sales-wrapper .progress-bar {
    height: 1rem;
    background: #eee;
    margin-bottom: 0.7rem;
}
.product.style-2 .product-sales-wrapper .product-sales-count {
    color: #666;
    font-size: 1.3rem;
}
.product.style-2 .product-sales-wrapper .product-sales-count mark {
    background-color: transparent;
    color: inherit;
}
.product.style-2 .btn-product {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 1.14em 0;
    line-height: 1.2;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 1.4em;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    transition: opacity 0.3s;
}
.product.style-2 .btn-product:active,
.product.style-2 .btn-product:hover {
    color: #fff;
}
.product.style-2 .btn-product.btn-link {
    display: inline-block;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.6;
    flex: none;
    background-color: transparent;
    padding: 0;
}
.product.style-2 .btn-product.btn-link:after {
    margin-top: 0;
}
.product.style-2 .btn-product.btn-sm {
    padding: 0.693em 0;
}
.product.style-2 .btn-wishlist {
    line-height: 1;
}
.product.style-2 .btn-wishlist i:before {
    margin: 0;
}
.product.style-2 .btn-cart {
    font-weight: 600;
}
.product.style-2 .btn-cart.btn-link {
    color: var(--secondary-color);
}
.product.style-2 .btn-cart.btn-link:active,
.product.style-2 .btn-cart.btn-link:hover {
    color: var(--secondary-color);
}
.product.style-2 .btn-cart:not(.btn-product-icon) i.w-icon-cart {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}
.product.style-2 .btn-product-icon {
    margin: 0;
    border-radius: 4px;
    min-width: 40px;
    height: 40px;
    color: var(--title-color);
}
.product.style-2 .btn-product-icon:hover {
    color: var(--white-color);
}
.product.style-2 .product-details {
    position: relative;
    padding-top: 1.6rem;
    background-color: #fff;
    transition: box-shadow 0.3s;
}
.product.style-2 .product-name {
    margin-bottom: 0.8rem;
    font-size: 16px;
    font-weight: 500;
    white-space: initial;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 38px;
    height: 38px;
}
.product.style-2 .product-name a {
    color: inherit;
}
.product.style-2 .product-name a:hover {
    color: var(--secondary-color);
}
.product-card-action {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.product-card-action .order-btn {
    border: 1px solid var(--border-color);
    padding: 8px;
    width: 100%;
    text-align: center;
    font-size: 15px;
    color: var(--title-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.product-card-action .order-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border: 1px solid transparent;
}

@media (max-width: 767px) {
    .product.style-2:not(.product-list) {
        font-size: 0.8rem;
    }
    .product-card-action .order-btn {
        width: 80%;
        font-size: 0;
        gap: 0;
        height: 32px;
    }
    .product-card-action {
        justify-content: center;
        gap: 8px;
    }
    .product-card-action .order-btn i {
        font-size: 15px;
    }
    .product-card-action .order-btn {
        height: 32px;
    }
    .product.style-2 .btn-product-icon {
        width: 20%;
    }
    .product.style-2 .btn-product-icon {
        min-width: 38px;
        height: 32px;
    }
    .product.style-2 .product-name {
        font-size: 14px;
        min-height: 36px;
        height: 36px;
    }
}

/*============================================================================================
   End Card CSS
==============================================================================================*/
