/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 5.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.flex-col.hide-for-medium.flex-left {
    width: 530px;
}

#menu-item-46 a.nav-top-link {
    position: relative;
    color: transparent;
    font-size: 0;
}

#menu-item-46 a.nav-top-link {
    position: relative;
    color: transparent;
    font-size: 0;
    margin-right: -3px;
}

.copyright-footer {
    color: #0509F6;
}

.section-footer {
    border-top: 1px solid #2e85dc;
}

.section-footer .tab.active span,
.section-footer .tab:hover a span {
    color: #74baff !important;

}

.section-footer .tab a span {
    font-size: 18px;
    color: #fff;
}

.section-footer ul.nav.nav-simple {
    display: flex;
    gap: 28px;
}


.section-footer ul.nav>li:first-child>a span:after {
    content: "";
    background: #74baff;
    height: 16px;
    width: 2px;
    position: absolute;
    right: -20px;
    top: 17px;
}

.tab-footer .tab-panels {
    padding-top: 0px;
}

.icon-box-pre-footer .icon-box-img {
    background: #2e85dc;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box-pre-footer .icon-box-img img {
    max-width: 40px;
    height: auto;
}

.icon-2::after {
    content: "";
    background: url('https://cmivietnam.vn/wp-content/themes/flatsome-child/img/cham-cham.png') no-repeat;
    width: 286px;
    height: 4px;
    position: absolute;
    top: 40px;
    left: 103%;
    transform: translate(-50%, -50%);
}

.icon-2::before {
    content: "";
    background: url(https://cmivietnam.vn/wp-content/themes/flatsome-child/img/cham-cham.png) no-repeat;
    width: 286px;
    height: 4px;
    position: absolute;
    top: 40px;
    left: -4%;
    transform: translate(-50%, -50%);
}

.section-why .icon-box.featured-box.icon-box-left.text-left {
    display: flex;
    align-items: center;
}


.icon-box-2-divide:after {
    content: "";
    background: #1966b1;
    width: 1px;
    height: 80px;
    position: absolute;
    right: -2px;
    top: 0;
}

.icon-box-2-divide:before,
.icon-box-1-divide:before {
    content: "";
    background: #1966b1;
    width: 1px;
    height: 80px;
    position: absolute;
    top: 0;
    left: -24px;
}


.section-why:after {
    content: "";
    width: 0;
    height: 0;
    border-top: 30px solid #0b539a;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    top: 100%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}


.text-underline h2:after {
    content: "";
    background: url('/wp-content/themes/flatsome-child/assets/img/title-gach-chan.png') no-repeat;
    width: 149px;
    height: 10px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: -29px;
}

.img-box-prod .box-text {
    width: 40%;
    padding: 0px 10px !important;
}

.img-box-prod.box-badge .box-text {
    background-color: #3f3f3aab !important;
    bottom: 15%;
    padding: 10px;
    position: absolute;
    transition: background .3s;
    z-index: 1;
}


.img-prod-small .box-text {
    width: 70%;
}


.section-prod:after {
    content: "";
    width: 0;
    height: 0;
    border-top: 30px solid rgb(242, 242, 242);
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    top: 100%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

.text-ok h3 {
    background: #254a93;
    padding: 12px 0px;
    width: 214px;
    text-align: center;
    color: #fff;
}

h5.post-title.is-large a.plain {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #0005F7;
    margin: 7px 0px;
}

.post-meta.is-small:before {
    content: "";
    background: url('/wp-content/themes/flatsome-child/assets/img/lich-icon.png') no-repeat;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 12px;
    left: 0;
}

.post-meta.is-small {
    padding-left: 24px;
    color: #FF1818;
}

.blog-small .col.post-item {
    margin-bottom: -58px;
}

.blog-small .post-meta.is-small {
    padding-left: 25px;
    color: #FF1818;
}

.blog-small .col.post-item {
    margin-bottom: -38px;
}

.blog-small .post-meta.is-small:before {
    content: "";
    background: url('/wp-content/themes/flatsome-child/assets/img/lich-icon.png') no-repeat;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 12px;
    left: 24px;
}

.section-prod {
    position: relative;
    z-index: 1;
}

.section-all-prod {
    position: relative;
    z-index: 0;
}

.section-why {
    position: relative;
    z-index: 999;
}

.custom-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

.product-eye-link {
    color: #999;
    transition: color 0.3s;
}

.product-eye-link:hover {
    color: #333;
}

.woocommerce-product-gallery__image {
    position: relative;
    overflow: hidden;
    background-color: #fff !important;
    transition: background-position 0.1s ease;
}

.woocommerce-product-gallery__image img {
    opacity: 0;
    /* Ẩn img thật, chỉ dùng làm src cho background */
    width: 100% !important;
    height: auto !important;
    display: block;
}

.woocommerce-product-gallery__image.wc-zoom-active {
    cursor: zoom-out !important;
}

.product-small.box {
    border: 1px solid #ddd;
    background: #fff;
}

a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    color: #0005F7;
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-product-meta svg {
    fill: #0005F7;
}

span.price-contact {
    color: #FB050A;
    font-size: 15px;
}

.custom-breadcrumb a {
    color: #0066cc;
    text-decoration: none;
    transition: 0.2s;
}

.custom-breadcrumb a:hover {
    color: #003366;
    text-decoration: underline;
}

.custom-breadcrumb span {
    color: #000;
    font-weight: 600;
}

nav.breadcrumb * {
    color: #fff;
}

span.widget-title.shop-sidebar,
span.widget-title {
    background: #0080ff;
    text-transform: uppercase !important;
    font-size: 16px !important;
    font-weight: normal !important;
    color: #fff;
    padding: 6px 0px 4px 0px;
    padding-left: 10px;
    line-height: 25px !important;
    margin-bottom: 5px !important;
    width: 100%;
    display: table;
    box-sizing: border-box;
}


.cf7-bao-gia input[type="text"],
.cf7-bao-gia input[type="email"],
.cf7-bao-gia textarea {
    width: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: #fff;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    margin-bottom: 10px;
}

.cf7-bao-gia input[type="text"],
.cf7-bao-gia input[type="email"] {
    height: 40px;
}

.cf7-bao-gia textarea {
    min-height: 110px;
    resize: vertical;
}

.cf7-bao-gia input:focus,
.cf7-bao-gia textarea:focus {
    border-color: #cfcfcf;
    box-shadow: 0 0 0 2px rgba(216, 0, 0, .06);
}

.cf7-bao-gia input[type="submit"] {
    display: inline-block;
    background: #d80000;
    /* đỏ như hình */
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 10px 18px;
    cursor: pointer;
    line-height: 1;
}

.cf7-bao-gia input[type="submit"]:hover {
    background: #bd0000;
}

.cf7-bao-gia ::placeholder {
    color: #9aa0a6;
    opacity: 1;
}

.cf7-bao-gia input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(216, 0, 0, .15);
}

.page-wrapper {
    padding-bottom: 30px;
    padding-top: 0px;
}

.entry-header-text {
    padding: 0;
}

.featured-title {
    height: 115px;
}

.page-title-inner {
    min-height: 60px;
    padding-top: 46px;
    position: relative;
}



/* ===== Quickbox dưới tiêu đề sản phẩm ===== */

.pts-quickbox {
    margin-top: 10px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #222;
}

.pts-quickbox .pts-code {
    margin: 0 0 8px;
    color: #d00;
    font-weight: 600;
}

.pts-quickbox .pts-excerpt {
    color: #202020;
    line-height: 1.6;
    margin: 0 0 12px;
    font-size: 14px;
}

.pts-quickbox .pts-price-banner {
    display: block;
    background: #2e85dc;
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 14px;
}

/* Hàng nút */
.pts-quickbox .pts-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 0 0 12px;
}

/* Nút chung */
.pts-quickbox .pts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1;
    border: 1px solid transparent;
    min-width: 180px;
    text-align: center;
}

/* Nút Đặt Mua (đỏ) */
.pts-quickbox .pts-btn-primary {
    background: #d61a1a;
    color: #fff;
}

.pts-quickbox .pts-btn-primary:hover {
    background: #be1616;
}

/* Nút Gọi điện */
.pts-quickbox .pts-btn-phone {
    background: #f1c9c9;
    color: #b81313;
    border-color: #d61a1a;
}

.pts-quickbox .pts-btn-phone:hover {
    background: #eab5b5;
}

.pts-quickbox .pts-link {
    display: inline-block;
    padding: 6px 10px;
    /* border: 1px solid #dcdfe4; */
    border-radius: 6px;
    /* background: #fff; */
    color: #0004F7;
    text-decoration: none;
    font-size: 14px;
}

.pts-quickbox .pts-linksbar {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    background: #f3f4f6;
    border: 1px solid #dcdfe4;
    border-radius: 8px;
    padding: 8px;
}

.pts-quickbox .pts-link:hover {
    background: #f7f7f8;
}

/* ====== Tabs chi tiết sản phẩm (phuthuanthanh) ====== */
.pts-tabs-wrap {
    margin-top: 10px;
    background: #fff;
    border: 1px solid #d9dfe7;
    border-radius: 4px;
}

.pts-tabs-nav {
    display: flex;
    gap: 2px;
    padding: 0;
    border-bottom: 1px solid #d9dfe7;
    background: #f6f8fb;
}

.pts-tab-btn {
    appearance: none;
    border: 0;
    margin: 0;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .2px;
    color: #344054;
    background: transparent;
    cursor: pointer;
}

.pts-tab-btn.is-active {
    background: #2e85dc;
    color: #fff;
}

/* Panel nội dung */
.pts-tabs-panels {
    padding: 14px;
    background: #fff;
}

.pts-tab-panel {
    display: none;
}

.pts-tab-panel.is-active {
    display: block;
}

.pts-tab-panel ul {
    margin: 0 0 1em 1.25em;
}

.pts-tab-panel li {
    margin: .35em 0;
}

.pts-readmore {
    position: relative;
    overflow: hidden;
}

.pts-readmore--clamped::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 70%);
    pointer-events: none;
}

.pts-readmore-toggle {
    margin: 12px auto 0;
    display: block;
    text-align: center;
    background: #e9eef7;
    color: #2e85dc;
    border: 1px solid #cdd6e6;
    padding: 0px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.pts-readmore-toggle:hover {
    background: #dfe7f5;
}

/* ===== CONTACT FORM 7 - FORM TƯ VẤN SẢN PHẨM ===== */
/* ===== FORM BÁO GIÁ TỰ ĐỘNG ===== */
.custom-quote-form {
    background: #fff;
    padding: 0px 25px;
    border-radius: 10px;
}

.form-note {
    font-size: 15px;
    color: #777;
    text-align: center;
    margin-bottom: 20px;
}

.required {
    color: #d00;
    font-weight: bold;
    font-size: 16px;
}

.form-row {
    margin-bottom: 15px;
}

.form-row-flex {
    display: flex;
    gap: 15px;
}

.form-row-flex input {
    flex: 1;
}

.custom-quote-form input,
.custom-quote-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: border 0.3s;
    height: 45px;
}

.custom-quote-form input:focus,
.custom-quote-form textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.2);
}

.form-title {
    text-align: center;
    color: #0073aa;
    font-size: 20px;
    font-weight: bold;
    margin: 4px 0 22px;
    text-transform: uppercase;
}

.product-box {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
    text-align: left;
    font-size: 16px;
    margin-bottom: 20px;
}

.form-submit {
    text-align: center;
    margin-top: 25px;
}

.btn-quote {
    background: #d00;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 55px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    box-shadow: 0 3px 8px rgba(200, 0, 0, 0.2);
}

.btn-quote:hover {
    background: #b00000;
    transform: translateY(-1px);
}

.success {
    color: green;
    font-weight: bold;
    text-align: center;
}

.error {
    color: red;
    font-weight: bold;
    text-align: center;
}

.related.related-products-wrapper.product-section {
    margin: 46px 0px;
}


.shop-page-title .page-title-inner.flex-row.medium-flex-wrap.container {
    padding: 34px 0px 20px;
}

.widget>ul>li>a,
.widget>ul>li>span:first-child,
ul.menu>li>a,
ul.menu>li>span:first-child {
    font-weight: bold;
    background: #0758a9;
    color: #fff !important;
    padding-left: 12px;
}

.widget .toggle {
    display: none;
}

.widget>ul>li ul,
ul.menu>li ul {
    border-left: none;
    display: block;
    margin: 0 0 10px 3px;
    padding-left: 15px;
    width: 100%;
    color: #000;
}

/* ======= MENU CẤP 1 ======= */
.header-nav>li {
    position: relative;
}

/* Link cấp 1 */
.header-nav>li>a.nav-top-link {
    display: block;
    color: #222;
    text-transform: uppercase;
    font-weight: 600;
}

/* ===================== CẤP 2 ===================== */
.header-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);

    display: none;
    width: 260px;
    padding: 0px 0;
    margin: 0;
    list-style: none;
    float: none !important;
    flex-wrap: nowrap !important;
}

.header-nav li:hover>.sub-menu {
    display: block;
}

.header-nav .sub-menu>li {
    position: relative;
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    border-bottom: 1px solid #f3f3f3;
}

.header-nav .sub-menu>li:last-child {
    border-bottom: none;
}

.header-nav .sub-menu>li>a {
    display: block;
    padding: 11px 16px;
    color: #333;
    font-weight: 500;
    text-transform: none;
    white-space: nowrap;
    background: transparent;
    transition: background .2s ease, color .2s ease;
    margin: 0px;
    font-size: 16px;
}

.header-nav .sub-menu>li>a:hover {
    background: #007bff;
    color: #fff;
}

.header-nav .sub-menu>li.nav-dropdown-col,
.header-nav .sub-menu.nav-dropdown-default>li {
    width: 100% !important;
    float: none !important;
}

.header-nav .sub-menu .sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 10000;

    display: none;
    width: 240px;
    padding: 6px 0;
    margin: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    float: none !important;
}

.header-nav .sub-menu>li:hover>.sub-menu {
    display: block;
    padding: 0px;
}

.header-nav .sub-menu .sub-menu>li {
    border-bottom: 1px solid #f3f3f3;
}

.header-nav .sub-menu .sub-menu>li:last-child {
    border-bottom: none;
}

.header-nav .sub-menu .sub-menu>li>a {
    display: block;
    padding: 11px 14px;
    color: #333;
    white-space: nowrap;
}

.header-nav .sub-menu .sub-menu>li>a:hover {
    background: #007bff;
    color: #fff;
}

.header-nav .sub-menu,
.header-nav .sub-menu .sub-menu {
    transition: opacity .15s ease, transform .15s ease;
}

.header-nav .sub-menu.nav-dropdown-default {
    display: none;
}

.header-nav .sub-menu,
.header-nav .sub-menu .sub-menu {
    min-width: 220px;
}
ul.product_list_widget a {
    background: unset !important;
    /* color: #000 !important; */
}

ul.product_list_widget a span {
    /* background: unset !important; */
    color: #000 !important;
}

.header-block-block-2 .icon-box.featured-box.icon-box-left.text-left{
    flex-wrap: nowrap;
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/


}