:root {
    --main-bg-grdien: linear-gradient(160deg, #1c61cc 0%, #1BFFFF 100%);
    /*210EFF*/
    --sub-bg-grdien: linear-gradient(160deg, #757F9A 0%, #D7DDE8 100%);
    --main-font-family: 'Barlow', sans-serif;
    --header-height: 70px;
    --max-width-container: 1224px;
    --main-color-hover: #e9345b;
    --color-chu-xanh: #3498db;
    --price-color: #00944a;
}

html {
    scroll-behavior: smooth;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: var(--main-font-family);
}

li {
    list-style: none;
}

a {
    color: unset;
    text-decoration: none;
}

body {
    background-image: var(--main-bg-grdien)
}

.text-heading {
    /* background: -webkit-linear-gradient(#93A5CF, #E4EfE9); */
    background: -webkit-linear-gradient(#ffbd8c, #E4EfE9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 26px;

}

.text-heading-trangchu {
    /* background: -webkit-linear-gradient(#93A5CF, #E4EfE9); */
    background: -webkit-linear-gradient(#ffbd8c, #E4EfE9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 45px;

}

.h3-title {
    margin-bottom: 12px;
    margin-left: 6px;
    font-weight: 500;
}

.h3-title p {
    position: relative;
}

.h3-title p::after {
    position: absolute;
    content: "";
    height: 2px;
    width: 50px;
    bottom: -8px;
    left: 0;
    /* background-color: rgb(36,191,236); */
    background-color: #007BFF;
}

.text-heading-two {
    background: -webkit-linear-gradient(#FF512F, #DD2476);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 35px;

}

.text-heading-price {
    background: -webkit-linear-gradient(#FF512F, #DD2476);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 45px;

}

.section-heading {
    font-size: 45px;
    text-align: center;
    color: #333;
    font-weight: 500;
}

.container {
    max-width: var(--max-width-container);
    margin: auto;

}

.row {
    display: flex;
    justify-content: space-between;
}

.row-grid {
    display: grid;
    justify-content: space-between;
}

.btn-cam {
    background-color: #f27a0f;
    min-width: 70px;
    color: #FFFFFF;
    font-size: 16px;
    padding: 10px 40px;
    border-radius: 3px;
    text-transform: uppercase;
    border: none;
}

.btn-cam:hover {
    cursor: pointer;
    background-color: #d26e4b;
    transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s;
}

.btn-xanh {
    background-color: #3498db;
    min-width: 70px;
    color: #FFFFFF;
    font-size: 16px;
    padding: 10px 40px;
    border-radius: 3px;
    text-transform: uppercase;
    border: none;
}

.btn-xanh:hover {
    cursor: pointer;
    background-color: #007cba;
    transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s;
}

.btn-xanhla {
    background-color: #5bb508;
    min-width: 70px;
    color: #FFFFFF;
    font-size: 16px;
    padding: 10px 40px;
    border-radius: 3px;
    text-transform: uppercase;
    border: none;
}

.btn-xanhla:hover {
    cursor: pointer;
    background-color: #32ab04;
    transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s;
}

.btn-do {
    background-color: #FF512F;
    min-width: 70px;
    color: #FFFFFF;
    font-size: 16px;
    padding: 10px 40px;
    border-radius: 3px;
    text-transform: uppercase;
    border: none;
}

.btn-do:hover {
    cursor: pointer;
    background-color: #e44829;
    transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s;
}

.border-box-tuna {
    margin-top: 30px;
    position: relative;
    border: 1px solid #ddd;
    padding: 15px 10px;
    width: 100%;
    border-radius: 5px;
}

.border-label-tuna {
    position: absolute;
    top: -10px;
    left: 30px;
    /* Điều chỉnh vị trí theo ý bạn */
    background-color: #ffffff;
    /* Màu nền để chữ không bị trùng với viền */
    padding: 0 5px;
    font-weight: 500;
}

.icolor {
    color: #bbb;
}

.istart {
    color: #aaa;
}

/* header */
header {
    height: var(--header-height) + 2px;
    position: fixed;
    width: 100%;
    color: whitesmoke;
    z-index: 1;
}

header.active {
    background-image: var(--main-bg-grdien);
}

@keyframes logo {
    0% {
        color: yellow;
    }

    100% {
        color: red;
    }
}

.header-logo p {
    position: relative;
    letter-spacing: 3px;
    font-weight: bolder;
}

.header-logo p i {
    font-size: 17px;
    position: absolute;
    right: -18px;
    top: -8px;
    animation: logo;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

.header-logo-text p {
    padding-top: 12px;
    position: relative;
    letter-spacing: 3px;
    font-weight: bolder;
}

.header-logo-text p i {
    padding-top: 12px;
    font-size: 17px;
    position: absolute;
    left: 51px;
    top: -8px;
    animation: logo;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

header .row {
    height: var(--header-height);
    align-items: center;
}

header nav ul {
    display: flex;
}

header nav ul li {
    padding: 10px 20px;
    cursor: pointer;
    ;
    transition: all 0.3s ease;
}

header nav ul li:hover {
    color: var(--main-color-hover);
}

/* chức năng tìm kiếm search */
.header-search-desktop {
    display: block;
}

.header-search-mobile {
    display: none;
}

.header-search-input {
    position: relative;
}

.header-search-input input {
    height: 35px;
    min-width: 250px;
    border: none;
    border-radius: 20px;
    padding-left: 15px;
    outline: none;
    font-size: 14px;
}

.header-search-input button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.header-search-input button i {
    font-size: 17px;
    color: #333;
}


/* Kết quả tìm kiếm search-results */
.search-results {
    position: absolute;
    width: 95.3%;
    max-width: 350px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
    margin-top: 5px;
    z-index: 1000;
}

.search-results::-webkit-scrollbar {
    width: 9px;
    /* Độ rộng của thanh cuộn */
}

.search-results::-webkit-scrollbar-thumb {
    background-color: #ccc;
    /* Màu của thanh cuộn */
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
    /* Màu khi rê chuột vào thanh cuộn */
}

.search-results::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* Màu nền thanh cuộn */
}

.search-results-empty {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.search-result-list {
    border-bottom: 1px solid #ddd;
    overflow-x: hidden;
}

.search-result-item {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #000;
    border-bottom: 1px solid #e8e8e8;
    padding: 10px 10px;
}

.search-result-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 100%;
}

.search-result-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    row-gap: 8px;
}

.search-result-item-name {
    font-size: 16px;
    color: #5972be;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item-price {
    font-size: 14px;
    color: var(--price-color);
}

/* Trang search tìm kiếm đầy đủ */

.info-result-kq {
    font-size: 20px;
    font-weight: 400;
    padding-bottom: 10px;
    color: #5972be;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /*response không cần media queries*/
    gap: 20px;
    margin-top: 20px;
}

.search-product-card {
    border: 1px solid #e8e8e8;
    padding: 18px 10px;
    text-align: center;
    background: #fff;

    box-shadow: var(--shadow-color) 2px 2px 22px;
    position: relative;
    overflow: hidden;
    /*Đảm bảo hình ảnh không bị tràn ra ngoài thẻ khi hover*/
}

.search-product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-product-card:hover img {
    transform: translateY(-5px);
}

.search-product-card h3 {
    font-size: 16px;
    font-weight: 400;
    margin: 10px 0;
}

.search-product-card .p-price {
    font-size: 16px;
    font-weight: 400;
    color: var(--price-color);
    padding-bottom: 5px;
}

/* phan trang old mac dinh « Previous Next »*/
/* .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 150px;
    margin-top: 20px;
    color: #999;
}

.pagination a {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.pagination a:hover {
    color: #007bff;
} */

/* phan trang new */
.pagination {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    padding-top: 20px;
    padding-bottom: 10px;
}

.page-item {
    margin: 0 3px;
}

.page-item .page-link {
    border: 1px solid #dee2e6;
    color: #007bff;
    padding: 6px 12px;
    border-radius: 5px;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.page-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

/* section banner */
.section-banner {
    width: 100%;
    height: 100vh;
    /* background-image: var(--main-bg-grdien) */
}

.section-banner .container {
    position: relative;
    height: 100%;
}

.section-banner .row {
    height: 100%;
}



.section-banner-item-img img {
    max-width: 700px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.section-banner-item-text {

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.section-banner-item-text-price-text {
    display: flex;
    align-items: end;
}

.section-banner-item-text-price-text>p {
    margin-right: 20px;
    font-weight: bold;


}

.section-banner-item-text-price {
    width: 100%;
}

.section-banner-item-text-button {
    margin-top: 70px;
}

/* kho-web" */
.section-top,
.section-top-content {
    background: white;
    padding: 20px 0;
}

.main-button.row {
    justify-content: center;
    column-gap: 20px;
    flex-wrap: wrap;
    row-gap: 20px;
}

.section-top-content .row-grid {
    /*sp trang chu*/
    display: grid;
    justify-content: space-between;
    grid-template-columns: repeat(4, 23%);
    row-gap: 20px;
}

/* sanpham */

.section-top-product-item {
    box-shadow: var(--shadow-color) 2px 2px 22px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-top-product-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-color) 4px 4px 30px;
}

.section-top-product-item:hover .section-top-product-item-hiden {
    visibility: visible;
    right: 0;
    /* Di chuyển từ phải qua */
}

.section-top-product-item-hiden {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(216, 217, 221, 0.5); */
    /* background: radial-gradient(circle, rgba(34, 56, 255, 0.7) 0%, rgb(31, 195, 255, 0.8) 100%); */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    transition: all 0.3s ease;
    right: -100%;
    flex-direction: column;
}

.section-top-product-item-hiden button {
    padding: 12px 30px;
    cursor: pointer;
    background: #FF512F;
    border: none;
    border-radius: 5px;
    color: whitesmoke;
}

.section-top-product-item img {
    width: 100%;
    border-radius: 5px;
}

.section-top-product-item-text {
    text-align: center;
    padding: 30px 30px;
    font-size: 18px;
}

.section-top-product-item.hiden {
    display: none;
}

/* end sanpham */


.section-top-content-item {
    box-shadow: var(--shadow-color) 2px 2px 22px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.section-top-content-item:hover .section-top-content-item-hiden {
    visibility: visible;
    top: 0;
}

.section-top-content-item-hiden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(63, 94, 251, 0.5);
    background: radial-gradient(circle, rgba(34, 56, 255, 0.7) 0%, rgb(31, 195, 255, 0.8) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    transition: all 0.3s ease;
    top: -100%;
    flex-direction: column;
}

.section-top-content-item-hiden button {
    padding: 12px 30px;
    cursor: pointer;
    background: #FF512F;
    border: none;
    border-radius: 5px;
    color: whitesmoke;
}

.section-top-content-item img {
    width: 100%;
    border-radius: 5px;
}

.section-top-content-item-text {
    text-align: center;
    padding: 30px 30px;
    font-size: 18px;
}

.section-top-content-item.hiden {
    display: none;
}

.main-button-kho-themes button.active {
    outline-color: transparent;
    box-shadow: var(--btn-color) 2px 2px 22px;
    color: var(--main-color-hover);
}

/* article */
.article {
    padding: 30px 0;
    background-color: whitesmoke;
}

.article .row-grid {
    grid-template-columns: repeat(1, 100%);
}

.article-item-img img {
    width: 100%;
}

/* footer */
footer {
    padding-top: 50px;
    /* background-image: var(--main-bg-grdien); */
    background-image: url(/frontend/asset/images/bg_footer.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

footer h2 {
    font-size: 16px;
}

footer i {
    margin-right: 12px;
}

footer .row-grid {
    grid-template-columns: repeat(3, 33%);
    /* padding-top: 50px; */
    color: whitesmoke;
}

.footer-item p {
    margin-bottom: 12px;

}

.footer-coppyright p {
    text-align: center;
    color: whitesmoke;
    border-top: 1px solid #444444;
    background-color: #282828;
    font-size: 12px;
    padding: 15px 0px;
}

/* Block-hiden */
.block-hiden {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100vh;
    z-index: 2;
    /* background-color: rgba(31, 195, 255, 0.8); */
    background-color: #0000008c;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.block-hiden.active {
    display: flex;
}

.block-hiden1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100vh;
    z-index: 2;
    /* background-color: rgba(31, 195, 255, 0.8); */
    background-color: #0000008c;
    justify-content: center;
    align-items: center;
    display: none;
}

.block-hiden1.active {
    display: flex;
}

.block-hiden-wraper {
    background-color: whitesmoke;
    padding: 20px 20px 20px 20px;
    border-radius: 5px;
    background-image: var(--main-bg-grdien);
    position: relative;
}

.block-hiden-wraper .ri-close-line {
    position: absolute;
    color: whitesmoke;
    font-size: 25px;
    right: 12px;
    top: 12px;
    cursor: pointer;
}

.block-hiden-wraper .ri-close-circle-line {
    position: absolute;
    color: whitesmoke;
    font-size: 25px;
    right: 12px;
    top: 12px;
    cursor: pointer;
}

.block-hiden-main-text-item {
    padding: 20px 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    /* background: #00d2ff;  /* fallback for old browsers */
    /* background: -webkit-linear-gradient(to right, #928DAB, #00d2ff);  /* Chrome 10-25, Safari 5.1-6 */
    /* background: linear-gradient(to right, #928DAB, #00d2ff); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    position: relative;
    background: #FFFFFF;
}

.block-hiden-main-text-item img {
    position: absolute;
    max-height: 100%;
    bottom: 0;
    right: 0;

}

.block-hiden-main-text-item h2 {
    margin-bottom: 20px;
    padding-left: 10px;
}


.block-hiden-main-text-item p {
    margin-bottom: 12px;
    margin-left: 6px;
    font-weight: 500;
}

.block-hiden-main-text-item i {
    margin-right: 6px;
    color: rgb(5, 180, 5);
    padding-left: 20px;
}

.block-hiden-main-text-item ul li {
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.block-hiden-main-text-item ul li:hover {
    color: var(--main-color-hover);
}

/* block-hiden-datmua */
.block-hiden-dat-mua-wraper {
    display: none;
}

.block-hiden-dat-mua-wraper.active {
    display: block;
}

.block-hiden-dat-mua-wraper h2 {
    text-align: center;
    font-weight: 400;
    color: whitesmoke;
    text-transform: uppercase;
    font-size: 18px;
    padding-bottom: 10px;
}

.block-hiden-dat-mua.row-grid {
    grid-template-columns: 42% 55%;
    padding: 12px 30px;
}

.block-hiden-dat-mua-img img {
    width: 100%;
    border-radius: 5px;
}

/* block-hiden-service */
.block-hiden-service-wraper {
    display: none;
}

.block-hiden-service-wraper.active {
    display: block;
}

.block-hiden-service-text h2 {
    text-align: center;
    margin-bottom: 20px;
}

.block-hiden-service.row-grid {
    grid-template-columns: repeat(2, 45%);
}

.block-hiden-service {
    position: relative;
}

.block-hiden-service img {

    /* max-width: 700px; */
    position: absolute;
    bottom: -20px;
    right: 0;
    max-height: 100%;


}

/* block-hiden-policy */
.block-hiden-policy-wraper {
    display: none;
}

.block-hiden-policy-wraper.active {
    display: block;
}

.block-hiden-policy-text h2 {
    text-align: center;
    margin-bottom: 20px;
}

.block-hiden-policy.row-grid {
    grid-template-columns: repeat(2, 45%);
}

.block-hiden-policy {
    position: relative;
}

.block-hiden-policy img {

    /* max-width: 700px; */
    position: absolute;
    bottom: -20px;
    right: 0;
    max-height: 100%;


}

/* block-hiden-contact */
.block-hiden-contact-wraper {
    display: none;
}

.block-hiden-contact-wraper.active {
    display: block;
}

.block-hiden-contact-text h2 {
    text-align: center;
    margin-bottom: 20px;
}

.block-hiden-contact.row-grid {
    grid-template-columns: repeat(2, 45%);
}

.block-hiden-contact {
    position: relative;
}

.block-hiden-contact img {

    /* max-width: 700px; */
    position: absolute;
    bottom: -20px;
    right: 0;
    max-height: 100%;


}

/* loading */
.preLoad {
    display: none;
}

.loading {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading img {
    width: 50px;
    animation: loading 0.8s linear infinite;
}

.loading.hide {
    display: none;
}


#load div {
    position: absolute;
    width: 20px;
    height: 36px;
    opacity: 0;
    font-family: Helvetica, Arial, sans-serif;
    animation: move 2s linear infinite;
    -o-animation: move 2s linear infinite;
    -moz-animation: move 2s linear infinite;
    -webkit-animation: move 2s linear infinite;
    transform: rotate(180deg);
    -o-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    color: #4C4C4C;
    font-size: larger;
    font-weight: bolder;

}

#load div:nth-child(2) {
    animation-delay: 0.2s;
    -o-animation-delay: 0.2s;
    -moz-animation-delay: 0.2s;
    -webkit-animation-delay: 0.2s;
}

#load div:nth-child(3) {
    animation-delay: 0.4s;
    -o-animation-delay: 0.4s;
    -webkit-animation-delay: 0.4s;
    -webkit-animation-delay: 0.4s;
}

#load div:nth-child(4) {
    animation-delay: 0.6s;
    -o-animation-delay: 0.6s;
    -moz-animation-delay: 0.6s;
    -webkit-animation-delay: 0.6s;
}

#load div:nth-child(5) {
    animation-delay: 0.8s;
    -o-animation-delay: 0.8s;
    -moz-animation-delay: 0.8s;
    -webkit-animation-delay: 0.8s;
}

#load div:nth-child(6) {
    animation-delay: 1s;
    -o-animation-delay: 1s;
    -moz-animation-delay: 1s;
    -webkit-animation-delay: 1s;
}

#load div:nth-child(7) {
    animation-delay: 1.2s;
    -o-animation-delay: 1.2s;
    -moz-animation-delay: 1.2s;
    -webkit-animation-delay: 1.2s;
}

#load div:nth-child(8) {
    animation-delay: 1.4s;
    -o-animation-delay: 1.4s;
    -moz-animation-delay: 1.4s;
    -webkit-animation-delay: 1.4s;
}

@keyframes move {
    0% {
        left: 0;
        opacity: 0;
    }

    35% {
        left: 41%;
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    65% {
        left: 59%;
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    100% {
        left: 100%;
        -moz-transform: rotate(-180deg);
        -webkit-transform: rotate(-180deg);
        -o-transform: rotate(-180deg);
        transform: rotate(-180deg);
        opacity: 0;
    }
}

@-moz-keyframes move {
    0% {
        left: 0;
        opacity: 0;
    }

    35% {
        left: 41%;
        -moz-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    65% {
        left: 59%;
        -moz-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    100% {
        left: 100%;
        -moz-transform: rotate(-180deg);
        transform: rotate(-180deg);
        opacity: 0;
    }
}

@-webkit-keyframes move {
    0% {
        left: 0;
        opacity: 0;
    }

    35% {
        left: 41%;
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    65% {
        left: 59%;
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    100% {
        left: 100%;
        -webkit-transform: rotate(-180deg);
        transform: rotate(-180deg);
        opacity: 0;
    }
}

@-o-keyframes move {
    0% {
        left: 0;
        opacity: 0;
    }

    35% {
        left: 41%;
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    65% {
        left: 59%;
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        opacity: 1;
    }

    100% {
        left: 100%;
        -o-transform: rotate(-180deg);
        transform: rotate(-180deg);
        opacity: 0;
    }
}

/* next tuna css*/
/*hide title > 991 tr nang*/
.header .menu>.menu-item>.sub-menu>.menu-item.tuna-hide {
    display: none;
}

/*contact*/
.contact-button-wrap {
    background: rgba(33, 33, 33, .5);
    width: 100vw;
    /* position: fixed;   */
    /*khoa hieu dung den khi click*/
    height: 100%;
    top: 0;
    bottom: 0;
    z-index: 1402971;
}

.hidden {
    display: none
}

.contact-button {
    position: fixed;
    bottom: 80px;
    /*bottom: 30px;*/
    right: 20px;
    z-index: 1402972;
}

.contact-button a {
    position: relative;
    padding: 5px;
    display: inline-block;
    border-radius: 50%;
    color: #FFFFFF;
    width: 55px;
    height: 55px;
    background-color: #1D87EA;
    opacity: 1;
    transition: .5s all;
}

.contact-button>a:hover,
.contact-button>nav>a:hover {
    text-shadow: none;
}

.contact-button a i,
.contact-button a img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    padding: 6px;
}

.contact-button a img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.contact-button>span {
    display: inline-block;
    position: absolute;
    top: 0;
    right: -8px;
    background-color: #1D87EA;
    color: #FFFFFF;
    border-radius: 50%;
    min-width: 20px;
    min-height: 20px;
    padding: 2px;
    text-align: center;
    font-size: 12px;
    z-index: 1421997;
}

.contact-button>nav {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
}

.contact-button>nav a {
    display: block !important;
    margin-bottom: 10px;
    position: relative;
}

.contact-button>nav a>span {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    background-color: #1D87EA;
    display: inline-block;
    right: calc(100% + 5px);
    top: 50%;
    text-align: center;
    padding: 10px;
    border-radius: 20px;
    min-width: 170px;
    transform: translate(0, -50%);
    transition: .5s all;
}

.contact-button>nav a:hover span {
    opacity: 1;
}

.pulsing-button {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1D87EA;
    cursor: pointer;
    box-shadow: 0 0 0 #1D87EA;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 #1D87EA;
    }

    70% {
        box-shadow: 0 0 0 20px rgba(204, 169, 44, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);
    }
}

/*end contact*/
/*back to top*/
#totopBtn {
    display: none;
    position: fixed;
    /* Đặt nút ở vị trí cố định */
    bottom: 20px;
    /* Đặt nút cách đáy trang 20px */
    right: 28px;
    /* Đặt nút cách phải trang 30px */
    z-index: 99;
    border: none;
    outline: none;
    background-color: #e8e8e8;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 100%;
}

#totopBtn i {
    font-size: 20px;
    color: #a2a2a2;
}

#totopBtn:hover {
    background-color: #1D87EA;
    transition: .5s all;
}

#totopBtn:hover i {
    color: white;
}

.header-cart i {
    font-size: large;
    cursor: pointer;
    position: relative;
}

.header-cart i::after {
    content: attr(number);
    /*ham no lay gia tri tu attr ben html*/
    position: absolute;
    display: flex;
    width: 20px;
    height: 20px;
    right: -10px;
    top: -10px;
    background-color: #666666;
    border-radius: 50%;
    color: var(--main-color);
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: small;
}

.section-class-main {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
}

.section-class-main .container {
    padding-top: var(--header-height);
    position: relative;
    height: 100%;
}

.section-class-main .row {
    height: 100%;
}

.section-class-main .row-grid {
    /*sp trang sanpham*/
    display: grid;
    justify-content: space-between;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

header.active1 {
    background-image: var(--main-bg-grdien);
}

.p-title-detail {
    padding: 20px 0px;
    font-weight: 500;
}

.h3-title-detail {
    margin-top: 10px;
    padding: 20px 0px;
    font-weight: 500;
}

.h3-title-detail p {
    position: relative;
}

.h3-title-detail p::after {
    position: absolute;
    content: "";
    height: 2px;
    width: 50px;
    bottom: -8px;
    left: 0;
    background-color: #007BFF;
}

.detail-sanpham .row-grid {
    display: grid;
    justify-content: space-between;
    grid-template-columns: 50% 47%;
    row-gap: 20px;
}

.detail-sp-image {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: white;
}

.detail-sp-image img {
    width: 100%;
    height: auto;
    border-style: none;
}

.detail-sp-content {
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.detail-sp-content span {
    display: inline-block;
    color: #666666B2;
    font-size: 20px;
}

.detail-sp-content span a:hover {
    color: var(--main-color-hover);
}

.detail-sp-content p {
    margin: 10px 0 10px 0;
    font-size: 21px;
    color: var(--color-chu-xanh);
}

.detail-sp-content-uu-dai {
    background: #F1F8E9;
    border-radius: 4px;
    border: 1px dashed #2e942b;
    padding: 10px 20px 20px 20px;
    margin: 30px 0 30px 0;
    text-align: left;
}

.detail-sp-content-uu-dai ul li {
    padding: 5px 0px;
}

.detail-sp-content-uu-dai ul li i {
    color: #3fb847;
}

.detail-sp-content-uu-dai ul li:first-child {
    font-size: 20px;
}

.detail-sp-content-uu-dai1 {
    background: rgb(255 249 232);
    border-radius: 4px;
    border: 1px dashed #ff9800;
    padding: 10px 20px 20px 20px;
    margin: 30px 0 30px 0;
    text-align: left;
}

.detail-sp-content-uu-dai1 ul li {
    padding: 5px 0px;
}

.detail-sp-content-uu-dai1 ul li i {
    color: #ff9800;
}

.detail-sp-content-uu-dai1 ul li:first-child {
    font-size: 20px;
}

.detail-sp-content-uu-dai-gialienhe {
    background: #F1F8E9;
    border-radius: 4px;
    border: 1px dashed #2e942b;
    padding: 10px 20px 20px 20px;
    margin: 30px 0 30px 0;
    text-align: left;
}

.detail-sp-content-uu-dai-gialienhe ul li {
    padding: 5px 0px;
}

.detail-sp-content-uu-dai-gialienhe ul li i {
    color: #3fb847;
}

.detail-sp-content-uu-dai-gialienhe ul li:first-child {
    font-size: 20px;
}

.in-text {
    width: 100%;
    height: 30px;
    padding: 5px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    outline: none;
    transition: box-shadow 0.3s ease-in-out;
}

.in-text:focus {
    box-shadow: 0 0 5px rgba(110, 110, 110, 0.3);
}

.in-select {
    width: 100%;
    height: 30px;
    padding: 5px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    outline: none;
    transition: box-shadow 0.3s ease-in-out;
}

.in-select:focus {
    box-shadow: 0 0 5px rgba(110, 110, 110, 0.3);
}

.block-hiden-dat-mua-text-item {
    padding: 20px 20px;
}

.block-hiden-dat-mua-text-item p {
    margin-left: 0px;
}

.block-hiden-dat-mua-text-item i {
    margin-right: 0px;
    color: #000000;
    padding-left: 0px;
}

.block-hiden-dat-mua-text-item select {
    margin-bottom: 10px;
}

.block-hiden-dat-mua-text-item input {
    margin-bottom: 10px;
}

/* blog tintuc */
.blog-container {
    display: grid;
    /* grid-template-columns: 1fr; */
    grid-template-columns: repeat(2, 1fr);
    column-gap: 15px;
    box-sizing: border-box;
}

.blog-post {
    display: grid;
    grid-template-columns: 150px 1fr;
    /* Hình ảnh chiếm 150px, nội dung chiếm phần còn lại */
    gap: 10px;
    border-top: 1px solid #ddd;
    padding: 15px 0px;
    box-sizing: border-box;
    align-items: center;
}

.blog-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
}

.blog-title {
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
}

.blog-title:hover {
    color: #007cba;
}

.blog-image:hover~.blog-text .blog-title {
    color: #007cba;
}

.blog-content-tomtat {
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-show-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    column-gap: 15px;
}

.blog-show-container-left {
    line-height: 1.4;
    font-size: 1.1em;
}

.blog-show-container-left .baiviet-tieude {
    font-size: 1.3em;
    font-weight: 500;
}

.blog-show-container-left .baiviet-date {
    color: #666;
    font-size: 0.9em;
    padding: 15px 0px;
}

.blog-show-container-left .baiviet-tomtat {
    font-weight: 500;
}

.blog-show-container-left .baiviet-hinhdaidien {
    width: 80%;
    object-fit: cover;
    padding: 20px 0px;
}

/* CSS NOI DUNG TU CKEDITOR */

/* Định dạng các đoạn văn */
.post-content p {
    margin-bottom: 15px;
    /* Khoảng cách giữa các đoạn văn */
}

/* Định dạng tiêu đề */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

.post-content h1 {
    font-size: 2em;
}

.post-content h2 {
    font-size: 1.75em;
}

.post-content h3 {
    font-size: 1.5em;
}

.post-content h4 {
    font-size: 1.25em;
}

.post-content h5 {
    font-size: 1.1em;
}

.post-content h6 {
    font-size: 1em;
}

/* Định dạng danh sách */
.post-content ul,
.post-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.post-content ul {
    list-style-type: disc;
    /* Kiểu danh sách đạn */
}

.post-content ol {
    list-style-type: decimal;
    /* Kiểu danh sách số */
}

.post-content ul ul,
.post-content ol ol {
    margin-left: 20px;
    /* Độ lùi cho danh sách lồng nhau */
}

/* Định dạng liên kết */
.post-content a {
    color: #0066cc;
    /* Màu chữ liên kết */
    text-decoration: none;
    /* Bỏ gạch chân mặc định */
}

.post-content a:hover {
    text-decoration: underline;
    /* Gạch chân khi hover */
}

/* Định dạng hình ảnh */
.post-content img {
    max-width: 100%;
    /* Giữ hình ảnh trong phạm vi container */
    height: auto;
    /* Đảm bảo hình ảnh không bị méo */
    display: block;
    /* Để hình ảnh hiển thị như một khối */
    margin: 10px 0;
    /* Khoảng cách trên dưới hình ảnh */
    object-fit: cover;
}

/* Định dạng cho figure và img */
.post-content figure {
    width: 100% !important;
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;
    /* Canh giữa hình ảnh nếu cần */
}

.post-content figure img {
    max-width: 100%;
    /* Đảm bảo hình ảnh không vượt quá container */
    height: auto;
    /* Đảm bảo hình ảnh không bị méo */
    display: block;
    margin: 0 auto;
    /* Canh giữa hình ảnh */
}

.post-content figure figcaption {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
    /* Canh giữa chú thích hình ảnh */
}

.post-content figure table tr td {
    border: 1px solid #ddd;
    font-size: 0.9em;
    text-align: center;
    padding: 5px;
}

/* Định dạng video và iframe */
.post-content iframe {
    width: 100%;
    /* Chiều rộng của iframe bằng 100% container cha */
    height: auto;
    /* Tự động điều chỉnh chiều cao */
    aspect-ratio: 16 / 9;
    /* Đảm bảo tỷ lệ 16:9 cho video */
    border: 0;
    /* Bỏ đường viền xung quanh iframe */
    display: block;
    margin: 20px 0;
}

.post-content .video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* Tỷ lệ 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    /* Nền đen */
    margin-bottom: 20px;
}

.post-content .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Định dạng blockquote */
.post-content blockquote {
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #ccc;
    /* Tạo một dải bên trái */
    font-style: italic;
    /* Chữ nghiêng cho nội dung trích dẫn */
    color: #555;
}

/* Định dạng bảng */
.post-content table {
    width: 100%;
    /* Đảm bảo bảng chiếm hết chiều rộng */
    border-collapse: collapse;
    /* Xóa khoảng cách giữa các ô */
    margin-bottom: 20px;
    /* Khoảng cách dưới bảng */
}

.post-content table th,
.post-content table td {
    border: 1px solid #ddd;
    /* Đường viền bảng */
    padding: 5px;
    text-align: center;
    font-size: 0.9em;
}

.post-content table th {
    background-color: #eee;
    font-weight: 400;
}

/* Định dạng mã code bo di vi dung prism*/
/* .post-content pre, .post-content code {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    overflow-x: auto;
}

.post-content pre {
    margin: 20px 0;
    white-space: pre-wrap;
} */
/* Định dạng danh sách định nghĩa (dl, dt, dd) */
.post-content dl {
    margin-bottom: 20px;
}

.post-content dt {
    font-weight: bold;
    margin-top: 10px;
}

.post-content dd {
    margin-left: 20px;
}

/* Định dạng văn bản nhấn mạnh (bold, italic) */
.post-content strong {
    font-weight: bold;
}

.post-content em {
    font-style: italic;
}

/* END CSS NOI DUNG TU CKEDITOR */
.blog-show-container-right {
    background-color: #e8e8e8;
    text-align: center;

}

.blog-show-container-left img {
    width: 100%;
    object-fit: cover;
}

.blog-show-container-right img {
    width: 100%;
    object-fit: cover;
}

/* Giỏ hàng */
/* Đặt khối chứa giỏ hàng và biểu tượng */
.cart-container {
    position: relative;
    display: inline-block;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 22px;
    color: #007bff;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
}

/* Khối giỏ hàng */
.cart-dropdown {
    opacity: 0;
    /* Bắt đầu với độ mờ là 0 */
    position: absolute;
    right: 0;
    top: 125%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    width: 350px;
    padding: 25px 20px;
    z-index: 9999;
    color: #333;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Hiệu ứng chuyển đổi */
    visibility: hidden;
    pointer-events: none;
    /* Ngăn người dùng tương tác khi ẩn */
}

.cart-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Cho phép tương tác khi hiển thị */
}

.cart-items {
    border-bottom: 1px solid #ddd;
}

.cart-items {
    max-height: 350px;
    /* Giới hạn chiều cao */
    overflow-y: auto;
    /* Thêm thanh cuộn dọc */
    overflow-x: hidden;
}

.cart-items::-webkit-scrollbar {
    width: 5px;
    /* Độ rộng của thanh cuộn */
}

.cart-items::-webkit-scrollbar-thumb {
    background-color: #ccc;
    /* Màu của thanh cuộn */
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
    /* Màu khi rê chuột vào thanh cuộn */
}

.cart-items::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* Màu nền thanh cuộn */
}

/* bo cuc gio hang chung */
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: center;
    color: #000;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e8e8e8;
}

.cart-item:last-child {
    padding-bottom: 0px;
    border-bottom: none;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

.cart-item .class-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;

}

.cart-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cart-item-header span {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-name {
    font-size: 15px;
    white-space: normal;
    /* Cho phép xuống dòng */
    word-break: break-word;
    /* Ngắt từ khi cần */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Thêm dấu "..." nếu tên quá dài */
    max-width: calc(100% - 20px);
    /* Trừ khoảng trống cho icon xóa */
}

.cart-item-name-100 {
    font-size: 15px;
    white-space: normal;
    /* Cho phép xuống dòng */
    word-break: break-word;
    /* Ngắt từ khi cần */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Thêm dấu "..." nếu tên quá dài */
    max-width: calc(100% - 160px);
    /* Trừ khoảng trống cho icon xóa */
}

.cart-item-details {
    font-size: 16px;
    color: #000;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    width: 97px;
}

.quantity-btn {
    background: #f0f0f0;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
}

.quantity-btn:hover {
    background: #ddd;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 16px;
    background-color: #f7f7f7;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
}

.cart-item-details .mobile-replace {
    display: none;
}

/* end bo cuc gio hang chung */
.cart-total {
    padding: 10px 0px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    color: #000;
    font-weight: 500;
}

.cart-actions {
    text-align: center;
}

.cart-actions .btn {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border: none;
    cursor: pointer;
    color: white;
    /* Màu chữ trắng */
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
}

.xem-gio-hang {
    background-color: #007bff;
}

.thanh-toan {
    background-color: red;
}

.empty-cart {
    text-align: center;
    /*khi gio hang trong*/
    padding: 50px 20px;
    color: #666;
}

.empty-cart-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 10px;
}

.empty-cart p {
    font-size: 16px;
    margin-bottom: 20px;
}

.empty-cart .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.empty-cart .btn:hover {
    background-color: #0056b3;
}

/* cart-main */
.cart-main {
    display: grid;
    justify-content: space-between;
    grid-template-columns: 2fr 1fr;
    column-gap: 20px;
}

.cart-thanhtoan {
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e3e3e3;
    height: 280px;
}

.cart-thanhtoan-conggiohang {
    font-weight: 500;
    color: #333;
    padding-top: 5px;
    padding-bottom: 20px;
}

/* cart-summary */
.cart-summary {
    width: 100%;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e3e3e3;
    height: auto;
}

/* Bảng hiển thị sản phẩm */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th,
.cart-table td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid #e6e6e6;
}

.cart-table th {
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
}

.cart-table-tong {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table-tong td {
    padding: 10px 0px;
}

.cart-table-tong td.text-baogom-vat {
    color: #666;
    font-style: italic;
    font-size: 14px;
    text-align: right;
    padding: 0px 0px;
    padding-bottom: 15px;
}

.cart-table-tong td.price-tongcong {
    text-align: right;
    color: var(--price-color);
    font-size: 18px;
    font-weight: 500;
}

.cart-table-tong td.price-tongcong-vat {
    text-align: right;
    color: #F44336;
    font-size: 24px;
    font-weight: 500;
}

.cart-table-tong td.price-tamtinh {
    text-align: right;
    color: var(--price-color);
    font-size: 18px;
    font-weight: 500;
}

.cart-table-tong td.price-giamgia {
    text-align: right;
    color: #666;
    font-size: 18px;
    font-weight: 500;
}

.cart-table-tong td.price-phivanchuyen {
    text-align: right;
    color: #666;
    font-size: 18px;
    font-weight: 500;
}

/* Căn chỉnh hình ảnh và tên sản phẩm */
.cart-table td.product-cell {
    display: flex;
    align-items: center;
    justify-content: start;
    /* Canh trái */
    gap: 20px;
    /* Khoảng cách giữa hình và chữ */
}

.cart-table td.product-cell img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-table td.product-cell .product-name {
    text-align: left;
    color: #555;
    font-size: 14px;
}

/* Nút xóa sản phẩm */
.remove-from-cart {
    background-color: transparent;
    border: none;
    font-size: 26px;
    color: #C3C3C3;
    cursor: pointer;
}

.cart-dropdown .remove-from-cart {
    /*gio hang nho*/
    background-color: transparent;
    border: none;
    font-size: 18px;
    color: #ff4d4d;
    cursor: pointer;
}

.remove-from-cart:hover {
    color: #ff1a1a;
}

.blockUI.blockOverlay {
    /* position: fixed; */
    /* neu muon can full page */
    position: absolute;
    /* Căn dựa vào phần tử cha */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(255, 255, 255, 0.6); */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    /* thay cho display: none; */
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.blockUI.blockOverlay.show {
    visibility: visible;
    opacity: 1;
}

.blockUI.blockOverlay::before {
    height: 1em;
    width: 1em;
    display: block !important;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -.5em;
    margin-top: -.5em;
    content: "";
    animation: spin 1s ease-in-out infinite;
    background: url(/backend/asset/images/loader.svg);
    background-size: cover;
    line-height: 1;
    text-align: center;
    font-size: 2em;
    color: rgba(0, 0, 0, .75);
}

/* checkout-main */
.checkout-main {
    display: grid;
    justify-content: space-between;
    grid-template-columns: 55% 42%;
}

.checkout-main-left {
    width: 100%;
    height: auto;
}

.checkout-main-right {
    padding: 20px;
    background-color: #fafafa;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e3e3e3;
    min-height: 520px;
    height: auto;
}

.checkout-main-right-title {
    font-weight: 500;
    color: #333;
    padding-top: 5px;
    padding-bottom: 20px;
}

.checkout-href {
    color: #1e91cf;
}

.checkout-href:hover {
    color: #4ab0e7;
}

.checkout-main-left .info-giaohang {
    font-size: 20px;
    font-weight: 400;
    padding: 15px 0px;
    padding-top: 20px;
    color: #333333;
}

.checkout-main-left .info-datthanhcong {
    font-size: 25px;
    font-weight: 400;
    padding-bottom: 5px;
    color: #333333;
}

.text-info-1 {
    padding: 3px 0px;
}

.text-info-1-left25 {
    padding: 3px 0px;
    padding-left: 25px;
}

.text-info-2 {
    color: #737373;
    padding: 3px 0px;
}

.text-info-3 {
    color: #1e91cf;
    padding: 3px 0px;
}

.text-info-3-left25 {
    color: #1e91cf;
    padding: 3px 0px;
    padding-left: 25px;
}

.checkout-main-left input {
    height: 45px;
    border: 1px solid #ddd;
    outline: none;
    background-color: #f9fafa;
    margin-bottom: 12px;
    padding-left: 12px;
    border-radius: 5px;
}

.checkout-main-left input:focus {
    border: 1px solid #4ab0e7;
}

.checkout-main-left select {
    height: 45px;
    border: 1px solid #ddd;
    outline: none;
    background-color: #f9fafa;
    margin-bottom: 12px;
    padding-left: 12px;
    border-radius: 5px;
    width: 30%;
}

.checkout-main-left select:focus {
    border: 1px solid #4ab0e7;
}

.checkout-main-left-input-name-phone {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    column-gap: 10px;
}

.checkout-main-left-input-name-phone input {
    width: 100%;
}

.checkout-main-left-input-email input {
    width: 100%;
}

.checkout-main-left-select {
    display: flex;
    justify-content: space-between;
}

.checkout-main-left-input-adress input {
    width: 100%;
}

.checkout-main-left-input-note input {
    width: 100%;
}

.checkout-main-right input {
    height: 45px;
    border: 1px solid #ddd;
    outline: none;
    margin-bottom: 12px;
    padding-left: 12px;
    border-radius: 5px;
    width: 100%;
}

.checkout-main-right input:focus {
    border: 1px solid #4ab0e7;
}

/* .checkout-main-right button {
    height: 45px;
    border: 1px solid #ddd;
    outline: none;
    margin-bottom: 12px;
    padding-left: 12px;
    border-radius: 5px;
    width: 100%;
} */
.btn-magiam {
    background-color: #c8c8c8;
    color: #FFFFFF;
    height: 44px;
    border: 1px solid #c8c8c8;
    outline: none;
    margin-bottom: 12px;
    padding-left: 12px;
    border-radius: 5px;
    font-size: 16px;
    width: 92%;
}

.btn-magiam.active {
    cursor: pointer;
    background-color: #328dbc;
}

.btn-magiam.active:hover {
    background-color: #50a3cc;
    transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s;
}

#code-giamgia {
    font-size: 15px;
}

/* popup ma giam gia */
.menu-news-table-content {
    position: fixed;
    width: 415px;
    right: -415px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f7f7f7;
    top: var(--header-height);
    height: 100vh;
    padding-top: 40px;
    padding-left: 15px;
    padding-right: 10px;
    transition: left 0.3s ease;
    z-index: 200;
}

.menu-news-table-content.unhide {
    right: 0;
}

.menu-news-table-content.unhide>i {
    transform: rotate(180deg);
}

.menu-news-table-content h1 {
    font-size: 14px;
    font-weight: lighter;
    margin-top: 12px;
}

.menu-news-table-content h1:hover {
    color: #4A86CE;
}

.menu-news-table-content>i {
    position: absolute;
    left: 10px;
    top: 5px;
    cursor: pointer;
    font-size: 25px;
    color: #89a8ce;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 999999;
}

.coupon-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
}

.coupon-item img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.coupon-content {
    flex: 1;
}

.coupon-content h1 {
    font-size: 16px;
    font-weight: bold;
    color: #d61d1d;
    margin-bottom: 5px;
}

.coupon-content p {
    font-size: 14px;
    color: #333;
    margin: 0;
}

.coupon-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.copy-button {
    background: #d61d1d;
    color: #fff;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.copy-button:hover {
    background: #b71c1c;
}

.condition-link {
    font-size: 14px;
    color: #1877f2;
    text-decoration: none;
}

.condition-link:hover {
    text-decoration: underline;
}

.overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 199;
}

.overlay-bg.active {
    opacity: 1;
    visibility: visible;
}

#idChongiamgia {
    cursor: pointer;
    color: #2e72d2;
}

/* end popup ma giam gia */
/* phuon thuc thanh toan */
.payment-container {
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    gap: 12px;
}

.payment-option:last-child {
    border-bottom: none;
    /* Bỏ border dưới cùng */
}

.payment-option input[type="radio"] {
    margin: 0;
    width: 15px;
    accent-color: #007bff;
    align-items: center;
    justify-content: center;
}

.payment-option img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    display: flex;
    align-items: center;
}

.bank-details {
    padding: 20px;
    background: #f8f9fa;
    display: none;
    /* Ẩn mặc định */
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.border-box-vanchuyen {
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 30px 15px;
}

#shipping-fee-hien {
    display: flex;
    align-items: center;
    gap: 12px;
}

#shipping-fee-hien.hidden {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

#shipping-fee-hien input[type="radio"] {
    margin: 0;
    width: 15px;
    accent-color: #d45767;
}

@keyframes spin {

    /* Animation xoay */
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* End Giỏ hàng */

/* alert custom add to cart */
#alert-container {
    position: fixed;
    top: 55px;
    right: 10px;
    z-index: 1000;
    min-width: 320px;
}

.custom-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #4caf50;
    /* Màu nền (mặc định là xanh lá cây) */
    color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.custom-alert .close-btn {
    background: none;
    border: none;
    color: #f44336;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.custom-alert.success {
    background-color: #dff0d8;
    /* Màu xanh lá */
    color: #3c763d;
}

.custom-alert.error {
    background-color: #f44336;
    /* Màu đỏ */
}

.custom-alert.info {
    background-color: #2196f3;
    /* Màu xanh dương */
}

.custom-alert.warning {
    background-color: #ff9800;
    /* Màu cam */
}

/* end alert custom */
