/* Danh sách sản phẩm */
.wrap-product {
    background-color: #f1f1f1;
    padding: 30px 0 55px;
}


.widget-products-by-category {
    background-color: #f1f1f1;
}

.title-product-main {
    margin-bottom: 20px;
}

.title-product-main .title-main {
    margin-bottom: 40px;
    text-align: center;
}

.title-product-main .title-main p {
    font-size: 22px;
    letter-spacing: 1px;
    line-height: 36px;
    color: #0a0a0a;
    font-weight: 400;
    font-family: "Saira";
    margin-bottom: 10px;
}

.title-product-main .title-main span {
    font-size: 33px;
    line-height: 25px;
    text-transform: uppercase;
    color: #005904;
    font-weight: 700;
    font-family: "Saira";
    position: relative;
    display: inline-block;
    padding: 0 50px;
}

.title-product-main .title-main span::before {
    position: absolute;
    content: '';
    background: url(../images/title-main.png) no-repeat;
    width: 34px;
    height: 21px;
    left: 0;
    top: calc(50% - 21px / 2);
}

.title-product-main .title-main span::after {
    position: absolute;
    content: '';
    background: url(../images/title-main.png) no-repeat;
    width: 34px;
    height: 21px;
    right: 0;
    top: calc(50% - 21px / 2);
}

.list-product .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -13px;
    gap: 10px 0;
}

.list-product .row .sanpham {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 13px;
    width: 100%;
    margin-bottom: 20px;
}

.list-product .row .sanpham a {
    text-decoration: none;
}

.list-product .row .box-sanpham {
    display: block;
    position: relative;
    text-align: center;
    overflow: hidden;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-product .row .box-sanpham:hover {
    transform: translateY(-5px);
}

.scale-img {
    overflow: hidden;
    display: block;
    position: relative;
    background-color: #fff;
}

.list-product .row .box-sanpham .pic-sanpham {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background-color: #fff;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.list-product .row .box-sanpham .pic-sanpham img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.list-product .row .box-sanpham:hover .pic-sanpham img {
    transform: scale(1.05);
}

.list-product .row .box-sanpham .badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    font-family: "Open Sans";
    letter-spacing: 0.5px;
}

.list-product .row .box-sanpham .watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 215, 0, 0.3);
    z-index: 1;
    white-space: nowrap;
    font-family: "Open Sans";
    pointer-events: none;
}

.pic-phutung {
    margin-bottom: 5px;
}

.info-product {
    padding: 15px 10px;
    background-color: #fff;
}

.info-product .product-name {
    font-size: 15px;
    line-height: 1.4;
    text-transform: uppercase;
    color: #151515;
    font-weight: 600;
    font-family: "Open Sans";
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    min-height: 44px;
    transition: color 0.3s ease;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    margin-top: 10px;
    margin-bottom: 0;
}

.price .price-new {
    font-size: 16px;
    line-height: 23px;
    text-transform: uppercase;
    color: #005904;
    font-weight: 700;
    font-family: "Open Sans";
    transition: color 0.3s ease;
}

.list-product .row .box-sanpham:hover .price .price-new {
    color: #c7291d;
}


@media (max-width: 1199px) {

    .wrap-product {
        padding: 40px 0 25px;
    }

    .title-product-main {
        margin-bottom: 18px;
    }

    .title-product-main .title-main {
        margin-bottom: 20px;
    }

    .title-product-main .title-main span {
        font-size: 28px;
        line-height: 28px;
        padding: 0 40px;
    }

    .title-product-main .title-main p {
        font-size: 20px;
    }

    .list-product .row {
        margin: 0 -12px;
        gap: 20px 0;
    }

    .list-product .row .sanpham {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        padding: 0 12px;
    }
}

@media (max-width: 991px) {

    .wrap-product {
        padding: 35px 0 20px;
    }

    .title-product-main {
        margin-bottom: 15px;
    }

    .title-product-main .title-main {
        margin-bottom: 20px;
    }

    .title-product-main .title-main span {
        font-size: 24px;
        line-height: 1.4;
        padding: 0 55px;
    }

    .title-product-main .title-main p {
        font-size: 18px;
        line-height: 32px;
    }

    .list-product .row {
        margin: 0 -10px;
        gap: 18px 0;
    }

    .list-product .row .sanpham {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 10px;
    }

    .info-product .product-name {
        font-size: 13px;
        line-height: 1.4;
        min-height: 32px;
    }
}

@media (max-width: 767px) {

    .wrap-product {
        padding: 30px 0 15px;
    }

    .title-product-main {
        margin-bottom: 12px;
    }

    .title-product-main .title-main {
        margin-bottom: 20px;
    }

    .title-product-main .title-main span {
        font-size: 20px;
        line-height: 24px;
        padding: 0 30px;
    }

    .title-product-main .title-main p {
        font-size: 16px;
        line-height: 28px;
    }

    .list-product .row {
        margin: 0 -8px;
        gap: 15px 0;
    }

    .list-product .row .sanpham {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 8px;
        margin-bottom: 0;
    }

    .info-product .product-name {
        font-size: 13px;
        line-height: 1.4;
        min-height: 30px;
    }
}

@media (max-width: 575px) {
    .title-product-main .title-main span::before,
    .title-product-main .title-main span::after {
        display: none;
    }

    .wrap-product {
        padding: 25px 0 15px;
    }

    .title-product-main {
        margin-bottom: 10px;
    }

    .title-product-main .title-main {
        margin-bottom: 20px;
    }

    .title-product-main .title-main span {
        font-size: 20px;
        line-height: 1.4;
        padding: 0 25px;
    }

    .title-product-main .title-main p {
        font-size: 13px;
        line-height: 1.3;
        display: none;
    }

    .list-product .row {
        margin: 0 -8px;
        gap: 12px 0;
    }

    .list-product .row .sanpham {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 8px;
    }

    .info-product .product-name {
        font-size: 14px;
        line-height: 1.4;
        min-height: 28px;
    }
}