.swiper-container {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}
.swiper-backface-hidden .swiper-slide {
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.product-gallery-h .slider-images-main .img {
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-gallery-h .box-slider-w {
    position: relative;
    margin-top: 10px;
}
.product-gallery-h .slider-thumb-child .img {
    height: 120px;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
}
.swiper-button{
    background: #fd7013;
    color: #fff;
    padding: 15px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.swiper-button:after{
    font-size: 18px;
}
@media only screen and (min-width: 560px) {
    .product-gallery-h .slider-images-main .img {
        height: 450px;
    }
}
/************************* Form đặt mua hàng gnay *********************************/
/********** Form đặt mua hàng - Custom làm mới *****************/
.modal-formdatmua{
    z-index: 9999;
    padding-top: 100px;
}
.modal-formdatmua .order-form-attribute h3{
    text-align: center;
    font-weight: bold;
}
.modal-formdatmua .modal-content{
    background: transparent;
    border: none;
}
.modal-formdatmua .modal-dialog{
    max-width: 80%;
    margin-top: 0;
}
.order-form-custom .order-form-feature{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.order-form-custom .order-form-attribute{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.order-form-custom{
    background-image: url("../images/bg-form-dm.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 0 !important;
}
.order-form-custom .row-wrapper-full{
    padding: 0px;
}
.order-form-custom .order-form-feature{
    background-color: #E5F8FF;
}
/* Wrapper có khoảng cách giữa các ô */
.row-wrapper-feature {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
    padding: 15px 0 15px 0;
}
.modal-formdatmua .feature-item{
    background: transparent;
    margin-bottom: 25px;
}
.modal-formdatmua .feature-item .item-f{
    padding: 15px 12px;
    text-align: center;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    background:
            linear-gradient(#E9FAFF, #ffffff) padding-box,
            linear-gradient(to top, #99DEF3, #E9FAFF) border-box;
    border: 1px solid transparent;
    border-radius: 20px;
}
.modal-formdatmua .feature-item img {
    margin-bottom: 12px;
}

.modal-formdatmua .feature-item p {
    font-size: 16px;
    margin-bottom: 0;
    color: #757589;
    line-height: 1.4;
}
.modal-body-formdatmua .feature-item img{
    width: 60px;
    height: 74px;
}
.feature-item-full.hotline-box-datmua {
    background: linear-gradient(90deg, #F44336 0%, #FF6F00 100%);
    color: white;
    border-radius: 60px 0 60px 0;
    padding: 15px 18px;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.feature-item-full.hotline-box-datmua img{
    float: left;
    width: 57px;
    height: 57px;
}
.feature-item-full.hotline-box-datmua .item-bt{
    text-align: left;
    margin-left: 75px;
}
.feature-item-full.hotline-box-datmua .item-bt .item-line-1{

}
.feature-item-full.hotline-box-datmua .item-bt .item-line-2{
    font-size: 24px;
    margin-top: 0;
    font-weight: bold;
}
/* Giao diện form đặt hàng */
.modal-body-formdatmua .cf7-wrapper form.wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.modal-body-formdatmua .cf7-wrapper .text-white{
    color: #fff !important;
}
.modal-body-formdatmua .cf7-wrapper p {
    margin: 0;
}
.modal-body-formdatmua .cf7-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.modal-body-formdatmua .cf7-wrapper p {
    flex: 1 1 calc(50% - 10px);
}

.modal-body-formdatmua .cf7-wrapper p:nth-child(6)  /* Ghi chú */
{
    width: 100%;
}
.modal-body-formdatmua .cf7-wrapper input,
.modal-body-formdatmua .cf7-wrapper textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    color: #000;
}
.modal-body-formdatmua .cf7-wrapper textarea {
    min-height: 100px;
    resize: vertical;
}
.modal-body-formdatmua .box-submit{
    width: 100%;
}
.modal-body-formdatmua .box-submit p{
    width: 293px;
    margin: 0 auto;
}
.modal-body-formdatmua .box-submit p input{

}
.modal-body-formdatmua .box-submit p .wpcf7-spinner{
    display: none !important;
}
.modal-body-formdatmua .cf7-wrapper .wpcf7-submit {
    background: linear-gradient(to right, #0077a6, #00acc1);
    border: none;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 0;
    border-radius: 6px;
    height: 45px;
    cursor: pointer;
    text-transform: uppercase;
}

.modal-body-formdatmua .cf7-wrapper .wpcf7-submit:hover {
    background: #005f7f;
}

/* Xoá viền thừa */
.modal-body-formdatmua .cf7-wrapper > div {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.order-form-attribute .text-white{
    color: #fff !important;
    font-size: 20px;
    border-bottom: 1px solid #757589;
}
.order-form-attribute  .wpcf7-not-valid-tip-{
    background: #fff;
    color: #dc3232;
    border-radius: 5px;
    margin-top: 1px;
    padding: 2px 5px;
    font-size: 14px;
}
.order-form-attribute .wpcf7-not-valid-tip{
    color: darkred;
    font-size: 14px;
}
.wrap-one-half{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.wrap-one-half .one-half{
    width: calc(50% - 8px);
}
/*** form foxi *********/
.form-foxi-datmua label{
    font-size: 16px;
    margin-bottom: 2px;
}
.box-small label{
    font-weight: bold;
    color: #ededed;
}
.box-small p{
    margin-bottom: 5px;
}
/********** Form dat mua mobile ***********/
@media only screen and (max-width: 768px)
{
    .modal-formdatmua .modal-dialog{
        max-width: 90%;
        margin: 0 auto;
    }
    .order-form-custom {
        background-image: none;
        padding: 0;
    }
    .modal-formdatmua .modal-content{
        padding: 0;
    }
    .modal-formdatmua .modal-content .modal-body{
        padding: 0;
    }
    .modal-formdatmua .order-form-attribute{
        background-image: url("../images/bg-form-dm-mobile.png");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 15px !important;
        border-radius: 20px 20px 0 0;
    }
    .modal-formdatmua .order-form-attribute h3{
        text-align: center;
        font-weight: bold;
        margin: 8px 0;
    }
    .modal-body-formdatmua .cf7-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
    }
    .modal-body-formdatmua .cf7-wrapper p {
        flex: 1 1 calc(50% - 10px);
    }
    .modal-body-formdatmua .cf7-wrapper p:nth-child(6)  /* Ghi chú */
    {
        width: 100%;
    }
    .modal-body-formdatmua .cf7-wrapper textarea {
        height: 101px;
    }
    .order-form-attribute .wpcf7-not-valid-tip {
        font-size: 13px;
    }
    .feature-item-full.hotline-box-datmua{
        padding: 8px 26px;
    }
    .feature-item-full.hotline-box-datmua .item-bt .item-line-2 {
        font-size: 18px;
    }
    .order-form-custom .order-form-feature{
        border-radius: 0 0 20px 20px;
    }
}
/******* Form dat mua giua bai viet ********/
.form-datmua-giua-post{
    background-image: url("../images/bg-form-dm-mobile.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 25px !important;
    border-radius: 20px;
}
.form-datmua-giua-post .wrap_form_in_post{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.form-datmua-giua-post .wrap_form_in_post h3{
    color: #fff;
    text-align: center;
    border-bottom: 1px solid #fff;
}
.form-datmua-giua-post .wrap_form_in_post p{
    flex: 1 1 calc(50% - 10px);
}
.form-datmua-giua-post .wrap_form_in_post label{
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}
.form-datmua-giua-post .wrap_form_in_post input{
    height: 40px;
    border-radius: 8px;
}
.form-datmua-giua-post .wrap_form_in_post .box-submit{
    width: 100%;
}
.form-datmua-giua-post .wrap_form_in_post .box-submit p{
    width: 100%;
    text-align: center;
}
.form-datmua-giua-post .wrap_form_in_post .box-submit .wpcf7-submit{
    width: 200px;
    margin: 0 auto;
    height: 50px;
    background: linear-gradient(to right, #0077a6, #00acc1);
}
.form-datmua-giua-post .wpcf7-spinner{
    display: none;
}
.wpcf7 form .wpcf7-response-output{
    margin: 0;
    width: 100%;
    font-size: 13px;
}
/********************************** single product *********************************************/
.box-product-top{
    border-bottom: 1px solid #ededed;
    padding-bottom: 15px;
}
.box-product-image{

}
.box-product-info h1{
    font-size: 30px;
    line-height: 33px;
    font-weight: bold;
}
.box-product-info .price{
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 500;
}
.box-product-info .price .cost{
    color: #888;
    font-size: 18px;
    font-weight: 700;
    line-height: 42px;
    text-decoration-line: line-through;
    margin-right: 15px;
}
.box-product-info .price .sale{
    color: green;
    font-size: 22px;
    font-weight: 700;
    line-height: 42px;
    text-decoration: none;
    margin-right: 21px;
    background-color: #ffeaea;
    padding: 4px 10px;
    border-radius: 6px;
}
.box-product-info ul.list-other li{
    margin-bottom: 5px;
    font-size: 16px;
}
.box-product-info ul.list-other li strong{

}
.brand-text a{
    color: #333;
}
.box-product-info .product-des{

}
.box-quantity label{
    font-size: 16px;
}
.box-quantity .input-group{
    width: 150px;
}
.box-quantity .input-group input{
    height: 45px;
    font-size: 16px;
}
@media only screen and (max-width: 600px) {
    .box-product-info{
        margin-top: 25px;
    }
}
.btnDatmuanhanhModal{
    background: linear-gradient(to right, #0077a6, #00acc1);
    border: none;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    height: 50px;
    text-transform: uppercase;
    width: 320px;
    transition: all 0.3s ease-in-out;
    border: 1px solid lightgrey;
    box-shadow: 0 4px 12px #fd7013;
}
.btnDatmuanhanhModal:hover{
    background: #005f7f;
}
.product-features{
    border-radius: 5px;
    padding: 5px 8px;
    margin: 15px 0;
}
.product-features ul {
    list-style: none; /* Bỏ bullet mặc định */
    padding-left: 0;
    margin: 0;
}
.product-features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.5;
}

.product-features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 2px;
    color: #28a745; /* Màu xanh lá */
    font-weight: bold;
    font-size: 18px;
}
.box-product-content h2{
    font-size: 28px;
}
.box-relation-list{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
    transition: all 0.3s;
    gap: 15px
}
@media screen and (max-width: 999px)
{
    .box-relation-list{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0 10px;
    }
}
/************** taxonomy product category - archive ********************************/
.box-product-archive{

}
.box-archive-main-product{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
    transition: all 0.3s;
}
.item-product{
    margin-top: 10px;
    transition: all 0.3s;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0px 2px 8px 0px rgba(209, 114, 83, 0.2196078431);
    padding: 15px 10px;
}
.item-product img{
    border-radius: 20px;
}
.item-product a{
    border: none;
}
.item-product h4{
    font-size: 18px;
    line-height: 22px;
    margin: 10px 0;
}
.item-product h4 a{
    color: #757589;
    text-decoration: none;
}
.content-preview {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}
.content-preview.expanded {
    max-height: 10000px;
}
.box-content .btn-readmore{
    background: linear-gradient(to right, #0077a6, #00acc1);
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    height: 38px;
    text-transform: uppercase;
    width: 125px;
    transition: all 0.3s ease-in-out;
    border: 1px solid lightgrey;
    box-shadow: 0 4px 12px #fd7013;
}
.box-product-archive h1{
    font-size: 28px;
    text-transform: capitalize;
    text-align: center;
}
.box-product-archive h2{
    font-size: 25px;
    text-transform: capitalize;
}
.item-product .price {
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 500;
    margin: 8px 0;
}
.item-product .price .cost{
    color: #888;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    text-decoration-line: line-through;
}
.item-product .price .sale{
    color: green;
    font-size: 16px;
    font-weight: 700;
    line-height: 30px;
    text-decoration: none;
    background-color: #ffeaea;
    padding: 2px 10px;
    border-radius: 8px;
}
.item-product .card-footer{

}
.item-product .card-footer .btn-datmua{
    border-radius: 50px;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(90deg, #757589 0%, #fd7013 100%) border-box;
    color: #E2313B;
    padding: 3px 15px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}
@media screen and (min-width: 999px) {
    .item-product img{
        height: 220px;
    }
}
@media screen and (max-width: 999px) {
    .box-archive-main-product{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0 10px
    }
    .item-product .price .cost{
        font-size: 13px;
        font-weight: normal;
        line-height: 22px;
    }
    .item-product .price .sale{
        font-size: 14px;
        line-height: 22px;
    }
    .item-product img{
        height: 200px;
    }
    item-product a {
        text-align: center;
    }
}
@media screen and (max-width: 600px) {
    .item-product img{
        height: 150px;
    }
}
/************ Review, comment product ********************/
/* === Review Box General Layout === */
.box-comment {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* === Title === */
.box-comment h2,
.box-comment h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

/* === Comment List === */
.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.comment_container {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    margin-bottom: 1rem;
    background-color: #fff;
}

.comment_container img.avatar {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.comment-text {
    flex: 1;
}

.comment-text .star-rating {
    margin-bottom: 0.5rem;
}

.comment-text .meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.comment-text .woocommerce-review__author {
    font-weight: 600;
    color: #111;
}

/* === Review Form === */
#review_form_wrapper {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.comment-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #222;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form .form-submit input[type="submit"] {
    background-color: #007cba;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    background-color: #005fa3;
}

/* === Rating Stars (hidden select, show visible stars) === */
.comment-form-rating p.stars {
    margin-bottom: 1rem;
}

.comment-form-rating select {
    display: none;
}

.comment-form-cookies-consent {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .comment_container {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment_container img.avatar {
        margin-bottom: 0.5rem;
    }
}
/* === Reset stars === */
.comment-form-rating .stars a {
    text-indent: -9999px;
    position: relative;
    display: inline-block;
    font-size: 30px;
    width: 30px;
    height: 30px;
    margin-right: 4px;
    color: #ccc;
    cursor: pointer;
}

.comment-form-rating .stars a::before {
    content: "★";
    position: absolute;
    left: 0;
    top: 0;
    text-indent: 0;
    line-height: 1;
}

/* === Hover Effect === */
.comment-form-rating .stars:hover a::before {
    color: #ffc107;
}

.comment-form-rating .stars:hover a:hover ~ a::before {
    color: #ccc;
}

.comment-form-rating .stars:hover a:hover::before,
.comment-form-rating .stars:hover a:hover ~ a::before {
    color: #ffc107;
}

/* === Selected (aria-checked) === */
.comment-form-rating .stars a[aria-checked="true"]::before,
.comment-form-rating .stars a.active::before {
    color: #ffc107;
}

/* Optional: make stars bigger on mobile tap */
@media (max-width: 480px) {
    .comment-form-rating .stars a {
        font-size: 36px;
        width: 36px;
        height: 36px;
    }
}
/* sao */
.comment-form-rating .stars a {
    text-indent: -9999px;
    position: relative;
    display: inline-block;
    font-size: 30px;
    width: 30px;
    height: 30px;
    margin-right: 5px;
    color: #ccc;
    cursor: pointer;
}

.comment-form-rating .stars a::before {
    content: "★";
    text-indent: 0;
    position: absolute;
    left: 0;
    top: 0;
    font-family: Arial, sans-serif;
}

.comment-form-rating .stars a.hovered::before {
    color: #ffc107;
}
/*********** single-review-breakdown ***************/
.rating-breakdown {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.rating-summary {
    text-align: center;
    min-width: 100px;
}

.average-rating {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff9900;
}

.rating-label {
    font-size: 14px;
    color: #555;
}

.rating-details {
    flex: 1;
    min-width: 250px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.star-label {
    width: 30px;
    font-weight: bold;
}

.bar {
    flex: 1;
    background: #eee;
    height: 8px;
    border-radius: 5px;
    overflow: hidden;
}

.bar .fill {
    background: #ff9900;
    height: 100%;
}

.percent {
    width: 40px;
    color: #007bff;
}

.count {
    white-space: nowrap;
    color: #007bff;
}
/**************** Form giữa bài viết ***********************/
.box-content .wpcf7{
    max-width: 69%;
    margin: 25px auto;
    border: 1px solid #757589;
    border-radius: 10px;
    padding: 25px;
    background-image: url(../images/bg-form-dm-mobile.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.box-content .wpcf7 form{

}
/* Lightbox Luôn hiển thị nút Prev/Next trên PC */
.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 1 !important;        /* Không bị ẩn */
    visibility: visible !important;
}

/* Giữ nguyên layout để click được */
.lb-nav a {
    width: 15% !important;
}