﻿.service-card {
    position: relative;
    display: block;
}

.service-card-img {
    display: block;
    width: 100%;
    border-radius: 12px;
    height: auto;
}

.service-card-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*width: clamp(120px, 80%, 260px);*/
    height: clamp(36px, 8vw, 60px);
    font-size: clamp(12px, 1.5vw, 22px);
    z-index: 2;
    font-weight: 600;
    font-family: 'Lora';
    background: rgba(255, 255, 255, 0.8);
    border: none;
    white-space: nowrap;
    color: var(--green-default);
    padding: 12px 24px;
    border-radius: 40px;
}


.service-card-hover {
    transform: scale(1.05);
    transition: transform 0.3s;
}

.cart-product-card-list, .service-card-list {
    /*padding-bottom: 40px;*/ /*MARK BY 29/01/2026*/
    /*ADD BY 29/01/2026 BEGIN*/
    background: #e9eeec;
    padding: 40px 0 40px 0;
    /*ADD BY 29/01/2026 END*/
}

.service-featured {
    margin-bottom: 30px;
}
/*ADD 29/01/2026 BEGIN*/
.section-top {
    height: 300px;
    background: #f4f6f5;
}

.section-bottom {
    height: 300px;
    background: #1f4d3b;
    margin-top: -194px;
}

.section-content {
    position: relative;
    margin-top: -181px;
    z-index: 2;
    cursor: pointer;
}

.cards {
    width: 80%;
    margin: auto;
}

.card-feature-service {
    border: 1px solid #fff;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #fff;
    cursor: pointer;
}

/*ADD 29/01/2026 END*/


.cart-product-card {
    display: flex;
    flex-direction: row;
    margin-left: 10px;
    min-height: 100px;
    margin-right: 10px;
    margin-bottom: 5px;
    gap: 10px;
}

    .cart-product-card h4 {
        font-size: 18px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .cart-product-card p {
        font-size: 14px;
        font-weight: 400;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .cart-product-card input {
        width: 100px;
        border: 1.5px solid #D1D5DB;
        border-radius: 6px;
        font-size: 16px;
        padding: 0 10px;
        box-sizing: border-box;
        vertical-align: middle;
    }

        .cart-product-card input:focus {
            outline: none;
            border: 1.5px solid #4CAF50;
        }

    .cart-product-card i {
        font-size: 18px;
        cursor: pointer;
    }

    .cart-product-card hover {
        color: #4CAF50
    }

    .cart-product-card img {
        min-height: 80px;
        min-width: 80px;
        height: 80px;
        width: 80px;
        border-radius: 8px;
        object-fit: cover;
    }

    .cart-product-card .cart-product-card-input {
        width: 120px;
        height: 42px;
        border-width: 2px;
        border-color: #D1D5DB;
        border-radius: 8px
    }

.cart-product-card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-bottom: 1px solid #E5E7EB
}

.input-product-card {
    width: 150px;
    height: 42px;
}
/*override*/


/*Product Card*/
.product-card {
    width: 100%;
    height: 530px;
    box-shadow: rgba(44, 95, 44, 0.5) 0px 2px 5px;
    border-radius: 20px;
    border: 0px;
    cursor: pointer;
    margin: 0 auto;
    box-sizing: border-box;
}

    .product-card:first-child {
        margin-left: 8px
    }

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(44, 95, 44,0.6);
    }

    .product-card .card-body {
        padding: 12px;
        transition: transform 0.4s ease;
        height: 35%;
    }

    .product-card .product-card-information {
        display: none
    }

    .product-card .product-card-function {
        display: block;
        cursor: default;
    }

    .product-card img {
        width: 100%;
        min-height: 340px;
        height: 340px;
        border-radius: 20px 20px 0 0;
        display: block;
    }

    .product-card h5 {
        font-weight: 700;
        font-size: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .product-card p {
        margin-bottom: 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .product-card i {
        font-size: 40px;
        cursor: pointer;
        margin-right: 8px;
    }

    .product-card strong {
        text-decoration: line-through;
    }

    .product-card .product-input {
        width: 50%;
        height: 42px;
    }

    .product-card .priceCal {
        font-size: 22px;
        height: fit-content;
        color: #4B5563
    }

    .product-card .btn-priceNow {
        border-bottom-left-radius: 20px;
        font-size: 16px;
        font-weight: 600
    }

        .product-card .btn-priceNow:focus {
            box-shadow: none !important;
        }

    .product-card .btn-addCart {
        border-bottom-right-radius: 20px;
        font-size: 16px;
        font-weight: 600
    }

        .product-card .btn-addCart:focus {
            box-shadow: none !important;
        }

    .product-card .card-group-button {
        height: 50px;
    }
/*News card*/
.news-components {
    background: #1f4d3b;
    padding: 60px 20px 100px 20px;
}

.news-title {
    color: #fff;
    padding: 10px;
}

/*Swipper 5/2/2025 begin*/
.newsSwiper {
    padding: 40px 0 60px;
    overflow: hidden;
}

    .newsSwiper .swiper-wrapper {
        align-items: stretch;
    }

    .newsSwiper .swiper-slide {
        width: 100px;
        transition: all 0.4s ease;
    }

        .newsSwiper .swiper-slide.even .news-card img {
            height: 300px;
        }

        .newsSwiper .swiper-slide.odd .news-card img {
            height: 340px;
        }

    .newsSwiper .swiper-slide-active {
        transform: translateY(10px);
        opacity: 1;
    }

.news-card {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

    .news-card img {
        width: 100%;
        object-fit: cover;
    }

.swiper-pagination {
    bottom: 10px;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient( to top, rgba(0,0,0,0.7), rgba(0,0,0,0.15), transparent );
}

/*.news-title {
    margin-top: 6px;
    line-height: 1.3;
}*/
.news-title-desc {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    margin-right: 100px;
    cursor: pointer;
}

.news-card:hover {
    color: #edc259;
}

    .news-card:hover img {
        transform: scale(1.05);
        transition: transform 0.4s ease;
    }

/*swipper 5/2/2026 end*/

.news-card {
    height: fit-content;
    border-radius: 12px;
    position: relative;
    box-shadow: rgba(44, 95, 44, 0.5) 0px 2px 5px;
    transition: all 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(44, 95, 44,0.8);
    }

    .news-card img {
        display: block;
        width: 100%;
        height: 62.5%;
        border-radius: 12px 12px 0 0;
    }

.new-card-content {
    padding: 12px
}

/*.news-card h5 {
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    min-height: 24px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}*/

.news-card p {
    font-size: 16px;
    overflow: hidden;
    font-weight: 500;
    min-height: 72px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    margin-bottom: 0;
}

.news-card-date {
    position: absolute;
    top: 35px;
    left: 0;
    width: 60px;
    height: 84px;
    background-color: #6BD2FF;
    color: white;
    text-align: center;
}

    .news-card-date .card-day {
        font-size: 24px;
        font-weight: 700;
        margin-top: 4px;
    }

    .news-card-date .card-month-year {
        line-height: 1.2;
        font-size: 16px;
        font-weight: 500;
    }

/*handle Review Card*/
.review-card {
    height: 100%;
    background: #F8F9FA
}

.review-card-title img {
    width: 64px;
    height: 64px;
}

/*service intro card*/
.service-intro-card {
    text-align: left;
    border-radius: 12px;
    box-shadow: #afd6bc 0.5px 1px 0px;
    padding: 16px;
    background: white;
    height: 100%;
    max-height: 320px;
    gap: 5px;
    background: #F8F9FA
}

    .service-intro-card .card-icon {
        width: 64px;
        height: 64px;
        border-radius: 8px;
        background: #27C840;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        color: white;
    }

    .service-intro-card .card-content {
        margin-top: 12px;
    }

    .service-intro-card .card-title {
        font-size: 20px;
        font-weight: 500;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 25px;
        color: #343A40;
    }

    .service-intro-card .card-description {
        color: #4B5563;
        font-size: 16px;
        font-weight: 400;
        margin-top: 16px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 72px;
    }

    .service-intro-card .card-link {
        color: #2C5F2D
    }

        .service-intro-card .card-link:hover {
            color: #27C840
        }
/*Handle orderHistoryCard*/
.order-history-card {
    border: 1px solid #d6d6d6;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 16px;
}

.order-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
}

.order-history-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-date {
    color: #6B7280;
    font-size: 14px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

    .order-item:not(:last-child) {
        border-bottom: 1px solid #F3F4F6;
    }

.order-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

    .order-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

.order-item-info {
    flex-grow: 1;
    min-width: 0;
}

.order-item-name {
    font-size: 16px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-item-quantity {
    font-size: 14px;
    color: #6B7280;
}

.order-item-price {
    font-size: 16px;
    color: #2C5F2D;
    white-space: nowrap;
}

.btn-showMore:hover {
    color: #22C55E;
    text-decoration: underline;
    cursor: pointer;
}

.btn-showMore:active {
    color: #2d7230;
    text-decoration: underline;
    cursor: pointer;
}

.order-history-footer {
    padding: 18px 24px;
    background: #F9FAFB
}

    .order-history-footer button {
        background: #22C55E;
        width: 80px !important;
        height: 36px !important
    }

    .order-history-footer span {
        color: #2C5F2D;
        font-weight: 700;
        font-size: 18px;
    }

a {
    text-decoration: none;
    color: #000;
}

    a:hover {
        color: #000;
        cursor: pointer;
    }

@media (max-width: 1199.98px) {
    .product-card {
        height: 500px;
    }

        .product-card img {
            min-height: 320px;
            height: 320px;
        }


        .product-card strong {
            font-size: 15px;
        }

        .product-card strong {
            font-size: 12px;
        }

        .product-card i {
            font-size: 36px;
        }
}

@media (max-width: 991.98px) { /* Bootstrap md breakpoint */
    /*Handle product card*/
    .product-card {
        height: 480px;
    }

        .product-card img {
            min-height: 320px !important;
            height: 320px;
        }

        .product-card h5 {
            font-size: 14px;
        }

        .product-card strong {
            font-size: 14px;
        }

        .product-card p {
            font-size: 13px;
            -webkit-line-clamp: 3;
        }

        .product-card i {
            font-size: 32px;
        }

        .product-card .priceCal {
            font-size: 20px;
            margin-left: auto;
            margin-right: auto;
            color: #4B5563
        }

        .product-card .product-input {
            margin-left: auto;
            margin-right: auto;
            width: 50%;
            height: 36px;
        }
    /* Handle ResponeSive newCard   */


    .news-card-date {
        width: 40px;
        height: 64px;
        top: 20px
    }

        .news-card-date .card-day {
            font-size: 16px;
        }

        .news-card-date .card-month-year {
            font-size: 12px;
        }

    .news-card h5 {
        font-size: 12px;
    }

    .news-card p {
        font-size: 12px;
    }
}

@media (max-width: 767.98px) { /* Bootstrap md breakpoint */
    .product-card {
        height: 430px;
    }

        .product-card img {
            min-height: 280px !important;
            height: 280px;
        }

        .product-card strong {
            font-size: 13px;
        }

        .product-card h5 {
            font-size: 13px;
        }

        .product-card .product-input {
            margin-left: auto;
            margin-right: auto;
            width: 50%;
            height: 36px;
        }

        .product-card p {
            font-size: 12px;
            -webkit-line-clamp: 3;
        }

        .product-card i {
            font-size: 28px;
        }

    .order-history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .order-item {
        gap: 12px;
    }

    .order-item-image {
        width: 60px;
        height: 60px;
    }

    .order-item-name {
        font-size: 14px;
    }

    .order-item-price {
        font-size: 14px;
    }
    /*ADD BY 30/01/2026 BEGIN*/
    .section-content {
        margin-top: -246px;
    }

    .section-bottom {
        height: 245px;
    }
    /*ADD BY 30/01/2026 END*/
}

@media (max-width: 575.98px) { /* Bootstrap sm breakpoint */
    .product-card {
        height: 300px;
    }

        .product-card img {
            min-height: 170px !important;
            height: 170px
        }

        .product-card strong {
            font-size: 12px;
        }

        .product-card h5 {
            font-size: 12px;
        }

        .product-card p {
            font-size: 11px;
            -webkit-line-clamp: 3;
        }

        .product-card i {
            font-size: 24px;
        }

        .product-card .card-body {
            height: 150px;
            padding: 8px;
        }

        .product-card .priceCal {
            font-size: 16px;
            color: #4B5563
        }

        .product-card .product-input {
            margin-left: auto;
            margin-right: auto;
            width: 60%;
            height: 36px;
        }

    .service-card-btn {
        padding: 0
    }

    .product-card .btn-priceNow {
        font-size: 10px;
    }

    .product-card .btn-addCart {
        font-size: 12px;
    }

    .product-card .card-group-button {
        height: 35px;
    }
}

@media (max-width: 350px) {
    .product-card .product-input {
        margin-left: auto;
        margin-right: auto;
        width: 70%;
        height: 36px;
    }
}
/*ADD BY 30/01/2026 BEGIN*/
@media (min-width:768px) and (max-width:1024px) {
    .section-content {
        top: -57px;
    }
}
/*ADD BY 30/01/2026 END*/
