/* Thẻ sản phẩm WooCommerce trên trang cửa hàng và danh mục */
/* =========================================================
 * WooCommerce Shop – Product cards
 * ======================================================= */

body:is(.woocommerce-shop, .tax-product_cat) .shop-container {
    padding-bottom: 52px;
}

body:is(.woocommerce-shop, .tax-product_cat)
.shop-container .products {
    align-items: stretch;
    margin-right: -8px;
    margin-left: -8px;
}

body:is(.woocommerce-shop, .tax-product_cat)
.shop-container .products > .product-small.col {
    display: flex;
    padding: 0 8px 20px !important;
}

body:is(.woocommerce-shop, .tax-product_cat)
.shop-container .products > .product-small.col > .col-inner {
    display: flex;
    width: 100%;
}

/* Thẻ sản phẩm */

.png-shop-card {
    display: flex;
    overflow: hidden;
    width: 100%;
    min-height: 420px;
    flex-direction: column;
    border: 1px solid rgba(15, 95, 181, .08);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 13px 32px rgba(17, 38, 70, .07);
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.png-shop-card:hover {
    box-shadow: 0 22px 46px rgba(17, 38, 70, .13);
    transform: translateY(-5px);
}

/* Ảnh sản phẩm ngang 4:3 */

.png-shop-card .box-image {
    position: relative;
    display: block !important;
    flex: 0 0 auto;
    width: 100%;
    height: auto !important;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    background: #f3f5f8;
}

.png-shop-card .box-image .image-zoom {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    overflow: hidden;
    aspect-ratio: auto;
}

.png-shop-card .box-image .image-zoom > a {
    display: block;
    width: 100%;
    height: 100%;
}

.png-shop-card .box-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform .55s ease;
}

.png-shop-card:hover .box-image img {
    transform: scale(1.025);
}

/* Nút tim */

.png-shop-card .image-tools.top.right {
    top: 10px;
    right: 10px;
    z-index: 5;
    width: auto;
    opacity: 1 !important;
    pointer-events: auto;
    transform: none !important;
}

.png-shop-wishlist {
    display: inline-flex;
    width: 36px;
    height: 36px;
    min-height: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 !important;
    border: 1px solid rgba(15, 95, 181, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 15px rgba(17, 38, 70, .12);
    color: #1677d2;
    line-height: 1;
    text-align: center;
    transition:
        color .25s ease,
        border-color .25s ease,
        background-color .25s ease,
        transform .25s ease;
}

.png-shop-wishlist i {
    position: static !important;
    display: flex !important;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    color: inherit;
    font-size: 18px;
    line-height: 1 !important;
    transform: none !important;
}

.png-shop-wishlist i::before {
    display: block;
    margin: 0 !important;
    line-height: 1;
    transform: none !important;
}

.png-shop-wishlist:hover {
    border-color: #1677d2;
    background: #1677d2;
    color: #fff;
    transform: translateY(-1px);
}

/* Phần nội dung */

.png-shop-card .png-shop-card-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 15px 15px 14px;
    text-align: left;
}

/* Ẩn giá và mô tả mặc định để tránh lặp */

.png-shop-card .price-wrapper,
.png-shop-card .box-excerpt {
    display: none;
}

/* Tên sản phẩm */

.png-shop-card .product-title {
    min-height: 43px;
    margin: 0 0 7px;
    color: #11213a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.32;
}

.png-shop-card .product-title a {
    color: inherit;
}

.png-shop-card .product-title a:hover {
    color: #1677d2;
}

/* Mô tả ngắn */

.png-shop-excerpt {
     display: -webkit-box;
    height: 2.96em;
    min-height: 0;
	margin-top: -15px !important;
    max-height: 2.96em;
    margin: 0 0 12px;
    overflow: hidden;
    color: #657086;
    font-size: 12px;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Phần thông số và giá */

.png-shop-card-footer {
    position: relative;
    margin-top: auto;
    padding: 12px 48px 1px 0;
    border-top: 1px solid rgba(15, 95, 181, .1);
}

.png-shop-fact {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 10px;
    color: #657086;
    font-size: 11px;
    line-height: 1.25;
}

.png-shop-fact > i {
    flex: 0 0 19px;
    width: 19px;
    margin: 0 !important;
    color: #6683ad;
    font-size: 18px;
    line-height: 1;
    text-align: center;
}

.png-shop-fact > span,
.png-shop-fact strong {
    display: block;
}

.png-shop-fact strong {
    margin-top: 2px;
    color: #18304f;
    font-size: 12px;
    font-weight: 800;
}

/* Giá */

.png-shop-fact--price > span {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.png-shop-fact--price strong {
    margin: 0;
    color: #0f5fb5;
    font-size: 13px;
}

.png-shop-fact--price .price,
.png-shop-fact--price .amount {
    color: #cb0003;
    font-size: inherit;
    font-weight: inherit;
}

/* Nút mũi tên */

.png-shop-card-arrow {
    position: absolute;
    right: 0;
    bottom: 8px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 !important;
    border-radius: 999px;
    background: #edf4ff;
    color: #1677d2;
    line-height: 1;
    text-align: center;
    box-shadow: 0 5px 14px rgba(15, 95, 181, .12);
    transition:
        color .25s ease,
        background-color .25s ease,
        transform .25s ease;
}

.png-shop-card-arrow i {
    position: static !important;
    display: flex !important;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    font-size: 19px;
    line-height: 1 !important;
    transform: none !important;
}

.png-shop-card-arrow i::before {
    display: block;
    margin: 0 !important;
    line-height: 1;
    transform: translateX(1px);
}

.png-shop-card-arrow:hover {
    background: #1677d2;
    color: #fff;
    transform: translateX(2px);
}
