/*
Theme Name: Flatsome Child
Description: Child theme của Flatsome cho website An Toàn PCCC (Công ty TNHH An Toàn) - antoanpccc.com.vn.
Author: Webvina Team
Author URI: https://webvina.net
Template: flatsome
Version: 3.16.0
Requires PHP: 8.2
Text Domain: antoanpccc
*/

/*************** TOKEN THIẾT KẾ (3.10.0) ***************/
/* Dùng các biến này thay cho giá trị viết tay. Màu chủ đạo lấy từ Flatsome (Giao diện > Tuỳ biến > Màu chủ đạo,
   hiện #d92626: chữ trắng trên nền này đạt độ tương phản 4,9:1, chuẩn WCAG AA). */
:root {
    --antoan-red: var(--fs-color-primary, #d92626);
    --antoan-red-dark: #b22a2e;
    --antoan-red-soft: #fff5f5;
    --antoan-dark: #1f2933;
    --antoan-text: #333;
    --antoan-muted: #555;
    --antoan-border: #e5e5e5;
    --antoan-bg-soft: #fafafa;
    --antoan-radius: 6px;
    --antoan-gap: 16px;
}

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Font Roboto Condensed (tiêu đề banner), chỉ độ đậm 600. Trình duyệt chỉ tải file khi trang có chữ dùng font này. */
/* Roboto Condensed 600 (Google Fonts, giấy phép SIL OFL 1.1), tự host từ 20/10/2026: chỉ 3 bộ ký tự cần cho tiếng Việt. */

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/roboto-condensed/roboto-condensed-600-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/roboto-condensed/roboto-condensed-600-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/roboto-condensed/roboto-condensed-600-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.dark,
.dark p {
    color: #fff;
}

.footer-2 .wpcf7-submit {
    position: absolute;
    top: 4px;
    right: 4px;
    margin-right: 0px;
    border-radius: 5px;
    text-transform: initial;
    min-height: 48px;
}

.footer-2 .wpcf7-email {
    min-height: 56px;
    border-radius: 5px;
}

.nav-pagination>li>a,
.nav-pagination>li>span {
    border-radius: 5px;
    border: 1px solid;
}

.ux-menu-link--active .ux-menu-link__link {
    color: black;
}

.nav-dropdown h3 {
    font-size: 25px;
    color: var(--primary-color);
}

.nav-dropdown img,
.nav-dropdown .box-image {
    border-radius: 20px;
}

div.nav-dropdown {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.blog-archive .post-item .col-inner .box-text {
    padding: 20px;
    padding-left: 0px;
    padding-right: 0px;
}

.blog-archive .post-item .col-inner {
    background-color: #fff;
    border-radius: 1rem;
}

.post-item .cat-label {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    text-decoration: none;
    border-radius: 5px;
    background: var(--primary-color);
    opacity: 1;
    color: #fff;
    text-transform: initial;
    font-size: 1em;
}

.box-overlay.dark .box-text {
    text-shadow: none;
}

.overlay {
    background: rgba(0, 0, 0, 0.2);
}

.section-giam .wpcf7-text {
    height: 60px;
    border-radius: 5px;
}

.section-giam .wpcf7-submit {
    position: absolute;
    top: 2px;
    right: 3px;
    height: 55px;
    border-radius: 5px;
    margin-right: 0px
}

h1.product-title,
h1.entry-title {
    color: var(--primary-color);
}

.nav-column>li>a,
.nav-dropdown>li>a,
.nav>li>a {
    color: black;
}

#search-lightbox .ux-search-submit {
    border-radius: 99px !important;
    font-size: 20px;
    background: var(--primary-color);
    ;
    padding: 10px 35px;
    min-height: 50px;
    font-weight: normal;
}

.mfp-bg.mfp-ready {
    opacity: .8;
}

/* CSS cho dấu X */

.row-tu-khoa-noi-bat .col-inner:after:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* CSS cho row từ khóa - mặc định ẩn */

.row-tu-khoa-noi-bat.show {
    overflow-y: scroll;
    visibility: visible;
    opacity: 1;
    max-height: 500px;
    /* Đủ cao để hiển thị toàn bộ nội dung */
    transition: opacity 0.3s ease, max-height 0.3s ease, visibility 0s linear 0s;
    margin-top: 10px;
}

/* CSS cho row tìm kiếm - mặc định ẩn */

#search-lightbox {
    min-width: 800px;
}

#search-lightbox .searchform {
    background: white;
    padding: 6px 6px;
    border-radius: 99px;
}

#search-lightbox .search-field {
    font-size: 20px;
    min-height: 40px;
    border: unset !important;
    box-shadow: unset !important;
}

#search-lightbox .flex-icon {
    color: #222222a6;
    padding: 0px 20px;
    border-right: 1px solid #cdcdcd;
}

.is-well {
    padding-top: 30px !important;
    border: 1px solid #d7cece;
    border-radius: 1em;
    box-shadow: none;
}

#footer li {
    list-style-type: disc;
}

#footer ul li::marker {
    color: var(--primary-color);
}

.section-email .wpcf7-submit {
    position: absolute;
    top: 4px;
    right: 4px;
    margin-right: 0px;
    border-radius: 5px;
    text-transform: initial;
    min-height: 48px;
}

.section-email .wpcf7-email {
    min-height: 56px;
    border-radius: 5px;
}

#top-bar .nav li>a {
    text-transform: none;
    color: #fff !important;
}

.header-search-form-wrapper form.searchform {
    border: 1px solid var(--antoan-red-dark);
    background: #fff;
    box-shadow: none;
    border-radius: 5px;
    overflow: hidden;
}

.header-search-form-wrapper .searchform .button.icon {
    padding: 0px 15px;
    height: auto;
    font-size: 15px;
}

.header-search-form-wrapper input:not([type="submit"]) {
    height: auto !important;
    padding: 5px 10px;
    font-size: 15px;
    background: #fff;
    box-shadow: none;
    color: var(--color-text-main) !important;
    border: none !important;
}

.breadcrumbs {
    font-size: 0.8em;
}

.single-product .price-wrapper .price {
    font-size: 1.3em;
    color: var(--primary-color);
    font-weight: 600;
}

.banner-text h3 {
    font-family: 'Roboto Condensed', sans-serif !important;
    color: var(--primary-color);
    font-weight: 600;
}

.banner-text h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 3em;
    line-height: 1.3em;
    font-weight: 600;
}

.product-small .price-wrapper .price {
    font-size: 1em;
    color: var(--primary-color);
    font-weight: 600;
}

#footer ul li {
    border-top: none;
}

#shop-sidebar {
    border: 1px solid #e6e6e6;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.sidebar-inner span.widget-title {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 10px;
}

.blog-archive .post-item .box {
    padding-bottom: 10px;
}

.blog-archive .post-item {
    padding-bottom: 28px;
}

.nav-dropdown-default {
    padding: 8px;
    min-width: 250px;
}

.div-anh .flickity-viewport>.flickity-slider>.col {
    padding: 0 2.8px 19.6px;
    margin-bottom: 0;
}

.flickity-prev-next-button {
    opacity: 1 !important;
}

.stars a.active:after {
    color: #ffd938;
}

.row-form-lien-he .wpcf7-text {
    background-color: transparent;
    border: 0;
    box-shadow: none !important;
    color: #1C2A2D;
    font-weight: 300;
    font-size: 1rem;
    margin: 0;
    height: 50px;
    border-bottom: 1px solid #C8D0D4;
    padding: 0;
}

.row-form-lien-he .wpcf7-submit {
    border-radius: 50px;
}

.wpcf7-spinner {
    display: none;
}

.accro-hanh-trinh a.accordion-title.active .toggle i:before {
    opacity: 1;
    font-size: 22px;
    color: var(--primary-color);
    padding-right: 6px;
    font-weight: 900;
    content: "\f056";
}

.accro-hanh-trinh a.accordion-title .toggle i:before {
    opacity: 1;
    font-size: 22px;
    color: var(--primary-color);
    padding-right: 6px;
    font-weight: 900;
    content: "\f055";
}

.accro-hanh-trinh a.accordion-title .toggle {
    min-height: unset;
    right: 0px;
    left: unset;
    opacity: 1;
    transform: unset;
}

.accro-hanh-trinh a.accordion-title .toggle i {
    line-height: unset;
}

.accro-hanh-trinh a.accordion-title.active {
    font-weight: normal;
    border-top: 1px solid #ddd;
    background: unset;
}

.tab-kham-pha .nav-line li.active a {
    color: white;
    background: var(--primary-color);
}

.slide-cam-nhan .flickity-page-dots {
    bottom: -46px;
}

.slide-cam-nhan .dot.is-selected {
    border-color: var(--primary-color) !important;
    width: 50px;
    border-radius: 8px;
    background: var(--primary-color) !important;
}

.home .flickity-prev-next-button .arrow,
.home .flickity-prev-next-button svg {
    fill: white;
    border-color: white;
    transition: all .3s;
}

.section-faq_tab button.toggle {
    right: 0px;
    left: unset;
}

.mfp-close {
    mix-blend-mode: unset;
}

.header-bottom-nav>li {
    margin: 0px !important;
}

.header-bottom-nav>li>a {
    padding: 8px 20px;
}

.header-bottom-nav>li>a {
    line-height: 25px !important;
}

.nav-pills>li>a {
    border-radius: 5px !important;
}

.woocommerce-breadcrumb {
    text-transform: initial;
}

.div-anh .is-divider {
    display: none;
}

aside .is-divider {
    display: none;
}

.related-products-wrapper {
    padding-top: 20px;
}

.product-section {
    border-top: none;
}

.section-title-container .section-title-normal {
    border: none;
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 0;
}

.section-title-normal span {
    border-bottom: none;
    margin-bottom: 0px;
    margin-right: 15px;
    padding-bottom: 0px;
}

#footer .social-icons .button.icon:not(.is-outline)>i {
    color: var(--fs-color-primary) !important;
}

.section-footer-1 .wpcf7-submit {
    border: 2px solid white;
    line-height: 2.3em;
    min-height: 2.3em;
}

.section-footer-1 .wpcf7-form {
    margin-bottom: 0px;
    padding-top: 13px;
}

.section-title i {
    opacity: 1;
}

.entry-content {
    padding-top: 0px;
}

.lightbox-by-id {
    padding: 10px;
}

.related h3.product-section-title {
    text-transform: initial;
    margin-left: 0px;
    font-size: 26px;
}

.footer .widget-title {
    display: block;
    font-size: 1em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.footer ul {
    margin-left: 15px;
}

.footer .is-divider {
    display: none;
}

.product-small .box-text .product-title {
    min-height: 40px;
    font-weight: bold
}

.product-small .box-text {
    padding: 10px 20px 20px 20px;
}

/*end Menu*/

.row-dang-ky .wpcf7-email {
    float: left;
    width: 68%;
}

.row-dang-ky .wpcf7-submit {
    background: #FF9729 !important;
    float: right;
}

.post-item .is-divider {
    display: none;
}

.back-to-top {
    bottom: 57px !important
}

.absolute-footer .container {
    padding-top: 20px;
}

input:hover,
textarea:hover,
select:hover {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.blog-archive .post-item .box-text .post-title {
    font-size: 20px;
}

.box-overlay .box-image {
    border-radius: 10px !important;
}

.box-overlay .box-text {
    border-bottom-right-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
}

.box-overlay .box-text {
    padding: 10px;
}

b,
strong {
    font-weight: bold !important;
}

.form-tu-van .wpcf7-response-output {
    padding: 10px;
    color: white;
    border: 2px solid #ff9729 !important;
}

/*CSS Phần Tab chi tiết sản phẩm*/
.product-footer .woocommerce-tabs {
    border-top: none;
}

.woocommerce-tabs .nav-line>li a {
    font-size: 1.1em;
    padding: 15px 20px;
}

/*Màu sắc button*/

.badge-container {
    margin-top: 0px;
}

.box-image .image-tools.top {
    display: block;
    left: 10px;
    right: unset;
    opacity: 1;
}

.product-small .product-title a {
    font-weight: 600;
    font-size: 1em;
    overflow: hidden;
}

.product-small .box-text {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.product-small.box {
    border: 1px solid var(--antoan-border);
    border-radius: 10px;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
}

.product-small.box:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-small .box-image {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.post-item .from_the_blog_excerpt {
    font-size: 1em;
}

.post-item .box-vertical img,
.post-item .box-vertical .image-cover {
    border-radius: 10px !important;
}

.post-item .col-inner {
    border-radius: 10px;
    box-shadow: none;
}

.post-item .col-inner img,
.post-item .box-image .image-cover {
    border-radius: 10px;
}

.post-item .box.box-normal .box-text {
    padding: 10px;
}

.post-item .box.box-normal {
    background: #FFFFFF;
    border-radius: 5px;
}

.post-item .col-inner .box-text {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.post-item .box {
    border-radius: 10px;
}

/*Kết thúc màu sắc*/
input[type=email],
input[type=search],
input[type=number],
input[type=text],
input[type=tel],
input[type=url],
textarea,
select {
    -webkit-box-shadow: unset;
    box-shadow: unset;
    -webkit-transition: unset;
}

.woocommerce-checkout .has-border {
    border: 1px solid #ddd !important;
    border-radius: 4px;
}

.woocommerce-breadcrumb a,
.woocommerce-breadcrumb span {
    color: black;
}

footer.entry-meta {
    border-top: none !important;
    border-bottom: 1px dashed #ececec !important;
}

.product-title a {
    font-size: 16px;
}

@media(max-width: 1025px) {
    .html_topbar_left {
        display: none !important
    }
}

@media(min-width: 1023px) {

    #post-list .row .post-item h5.post-title a {
        min-height: unset;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #post-list .row .post-item:nth-child(1) .col-inner {
        background-color: unset !important;
    }

    #post-list .row .post-item:nth-child(1) .box-image,
    #post-list .row .post-item:nth-child(2) .box-image {
        width: 100% !important;
    }

    #post-list .row .post-item:nth-child(1) .box .box-image .image-cover {
        padding-top: 56% !important;
    }

    #post-list .row .post-item:nth-child(2) .box .box-image .image-cover {
        padding-top: 107% !important;
    }

    #post-list .row .post-item:nth-child(1) .box-text,
    #post-list .row .post-item:nth-child(2) .box-text {
        position: absolute;
        bottom: 10px;
        padding: 30px;
        border-bottom-right-radius: 10px;
        border-bottom-left-radius: 10px;
        left: 0px;
        color: white;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.5);
    }

    #post-list .row .post-item:nth-child(1) .box-text p,
    #post-list .row .post-item:nth-child(1) .box-text h5,
    #post-list .row .post-item:nth-child(2) .box-text p,
    #post-list .row .post-item:nth-child(2) .box-text h5 {
        color: white;
    }

    #post-list .row .post-item:nth-child(1) {
        flex-basis: 65%;
        max-width: 65%;
    }

    #post-list .row .post-item:nth-child(2) {
        flex-basis: 35%;
        max-width: 35%;
    }

    .row-dang-ky .wpcf7 {
        margin-top: 58px;
    }
}

@media(max-width: 321px) {
    .row-dang-ky .wpcf7-email {
        width: 100% !important;
    }

    .row-dang-ky .wpcf7-submit {
        float: none !important;
    }
}

@media(min-width: 321px) and (max-width: 481px) {

    .row-dang-ky .wpcf7-email {
        width: 59% !important;
    }
}

@media(min-width: 1023px) and (max-width: 1400px) {
    .div-right-product .is-affixed .box-contact {
        display: none;
    }
}

@media(max-width: 767px) {
    .mfp-container {
        padding: 15px;
    }

}

@media(max-width: 855px) {

    .category-page-row .product-small .box-text {
        padding: 10px;
    }

    .category-page-row .product-small.col {
        padding: 0 2.8px 9.6px;
    }

    .product-small .product-title a {
        font-weight: 600;
        font-size: 14px;
    }

    #header .stuck #logo img {
        max-height: 65px !important;
    }

    #header.show-on-scroll,
    #header .stuck .header-main {
        height: 60px !important;
    }

    .slide-cam-nhan .slider .flickity-viewport {
        min-height: unset !important;
    }

}

.radio-container input:checked~.checkmark {
    background-color: var(--primary-color);
}

.radio-container input:checked~.checkmark:after {
    display: block;
}

/* Price Slider */
.price-range-slider {
    width: 100%;
}

.price-range-slider .slider {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

.price-range-slider .slider:hover {
    opacity: 1;
}

.price-range-slider .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.price-range-slider .slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

/* Tour Search Autocomplete Dropdown */

.autocomplete-loading,
.autocomplete-error,
.autocomplete-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.autocomplete-item:hover {
    background: #f8f9fa;
}

.autocomplete-item:last-of-type {
    border-bottom: none;
}

.autocomplete-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 12px;
    border-radius: var(--antoan-radius);
    overflow: hidden;
}

.autocomplete-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.autocomplete-content {
    flex: 1;
    min-width: 0;
}

.autocomplete-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.autocomplete-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #666;
}

.autocomplete-meta i {
    color: #667eea;
    margin-right: 3px;
}

.autocomplete-price {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
}

.autocomplete-price .price-label {
    font-size: 11px;
    font-weight: 400;
    color: #999;
}

.autocomplete-view-all {
    display: block;
    padding: 12px 15px;
    text-align: center;
    background: #f8f9fa;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: background 0.2s ease;
}

.autocomplete-view-all:hover {
    background: #667eea;
    color: #fff;
}

.autocomplete-view-all i {
    margin-right: 5px;
}

/* Filter Sidebar */

#price-slider {
    margin: 20px 0;
}

/* Booking Form */

.booking-errors {
    background: #fee;
    border-left: 4px solid #f44;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.booking-errors ul {
    margin: 0;
    padding-left: 20px;
}

.booking-errors li {
    color: #c33;
    margin-bottom: 5px;
}

/**
 * ==========================================
 * SINGLE TOUR DETAIL PAGE
 * ==========================================
 */

/* Tour Gallery */

.product-gallery-slider .gallery-item {
    position: relative;
    padding-top: 60%;
    /* 5:3 aspect ratio */
    overflow: hidden;
}

.product-gallery-slider .gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tour Contact Info */

.contact-title h2,
.contact-title h1 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.section-contact .div-contact {
    padding-bottom: 0;
}

@media (min-width:768px) {
    .absolute-footer {
        padding-top: 0px;
    }
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/

}

/* Single Product Tour Styles */

.product-small .box-text {
    font-size: 1em;
}

/* Car Specifications - Override Plugin CSS */

.is-divider {
    display: none;
}

h1.product-title,
h1.entry-title {
    font-size: 1.5em;
    color: #111;
}

.home-filter-right .wpcf7 form {
    margin-bottom: 0;
}

.home-counter .col-counter {
    flex-basis: 20%;
    max-width: 20%;
    padding-bottom: 0px;
}

.home-counter .col-counter .col-inner {
    padding: 25px 0;
    text-align: center;
}

.home-title .section-title a {
    font-size: 14px;
}

.home-counter .icon-box-text h1,
.home-counter .icon-box-text .antoan-counter__num {
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--primary-color);
}

.home-counter .icon-box-img svg {
    color: var(--primary-color);
}

.home-counter .row-counter {
    border: 1px solid var(--antoan-border);
    border-radius: 10px;
}

.home-counter .icon-box-text p {
    font-size: 14px;
}

.home-news .box-text {
    padding-left: 10px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-top: 0px;
}

.home-news .post-item {
    /* border-bottom: 1px solid var(--antoan-border); */
    padding: 10px auto;
}

.home-gallery .col {
    padding: 5px;
}

.footer-wrapper {
    font-size: .9em;
}

.project-banner {
    border-radius: 10px;
    overflow: hidden;
}

.nav-dropdown>li.nav-dropdown-col {
    display: block
}

.nav-dropdown {
    border: 1px solid #ddd;
    padding: 0
}

.nav-dropdown .nav-dropdown-col>a,
.nav-dropdown li a {
    font-weight: normal !important;
    text-transform: none !important;
    font-size: 15px;
    font-weight: 500
}

.nav-dropdown .nav-dropdown-col>ul li:hover {
    background: var(--primary-color)
}

.nav-dropdown-default>li:hover>a,
.nav-dropdown .nav-dropdown-col>ul li:hover>a {
    color: white
}

.nav-dropdown-default>li:hover {
    background: var(--primary-color)
}

.nav-dropdown-default>li>a {
    border-bottom: 0 !important
}

.nav-dropdown-has-arrow li.has-dropdown:before {
    border-width: 10px;
    margin-left: -10px;
}

.nav-dropdown .nav-dropdown-col>ul {
    border: 1px solid #d2d2d2;
    margin-top: -40px;
    box-shadow: 2px 2px 5px #828282;
    display: none;
    position: absolute;
    left: 100%;
    z-index: 9;
    background: white;
    min-width: 240px;
}

.nav-dropdown>li.nav-dropdown-col {
    width: 100%;
    border-right: 0
}

.nav-dropdown .nav-dropdown-col>ul li a {
    padding: 10px;
    text-transform: none;
    color: black
}

.header-nav li.nav-dropdown-col:hover>ul {
    display: block !important
}

/*************** GIAI ĐOẠN 1 (19/10/2026): DỌN LỖI GIAO DIỆN ***************/

/* Giá "Liên hệ" cho sản phẩm chưa có giá */
.antoan-price-contact {
    color: var(--primary-color);
    font-weight: 700;
}

.product-small .antoan-price-contact {
    font-size: .95em;
}

.single-product .antoan-price-contact {
    font-size: 1.4em;
}

/* Nút kêu gọi hành động trên trang sản phẩm */
.antoan-product-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 20px;
}

.antoan-product-cta .button {
    margin: 0;
    border-radius: 5px;
    text-transform: none;
    font-size: 1em;
    color: #fff;
}

.antoan-product-cta .antoan-cta-call {
    background: var(--primary-color);
}

.antoan-product-cta .antoan-cta-zalo {
    background: #0068ff;
}

.antoan-product-cta .antoan-cta-quote {
    background: var(--antoan-dark);
}

/* Footer: cột thông tin công ty và bản đồ */
.antoan-footer-info {
    list-style: none;
    margin: 0;
}

.antoan-footer-info li {
    margin: 0 0 8px;
    line-height: 1.5;
}

.antoan-footer-info a {
    color: inherit;
}

.antoan-footer-map iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 5px;
}

/* Footer nền xám than (Customizer footer_2_bg_color): tiêu đề trắng, gạch chân đỏ để dễ đọc.
   Markup .antoan-footer-info / .antoan-footer-map nằm trong widget Custom HTML (lưu ở DB). */
.footer-2 .widget-title {
    color: #fff;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Tablet + mobile: CSS cũ ẩn .html_topbar_left ở <=1025px khiến top bar mất hotline; hiện lại */
@media (max-width: 1025px) {
    .header-top .html_topbar_left {
        display: block !important;
    }
}

/* Mobile (header mobile của Flatsome) */
@media (max-width: 849px) {
    /* Top bar: hotline căn giữa, một dòng */
    .header-top .html_topbar_left {
        width: 100%;
        text-align: center;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-top .html_topbar_left a {
        color: #fff;
        font-weight: 700;
    }
}

@media (max-width: 549px) {
    /* Banner trang chủ: giữ nguyên vị trí do UX Builder đặt, chỉ cho khung chữ rộng hết slide
       và thêm lề + nền mờ ở phần nội dung để dễ đọc trên ảnh */
    .home-slider .text-box.banner-text {
        width: 100% !important;
    }

    .home-slider .banner-text .text-box-content {
        margin: 0 16px;
        padding: 12px 14px;
        background: rgba(255, 255, 255, .85);
        border-radius: var(--antoan-radius);
    }

    .home-slider .banner-text h2 {
        font-size: 1.6em;
    }

    .home-slider .banner-text h3 {
        font-size: 1em;
    }
}

/*************** GIAI ĐOẠN 3 (19/10/2026): KHỐI TRANG CHỦ THEO ANTOANGROUP.COM ***************/

/* Bộ đếm số liệu: 5 ô một hàng trên desktop (UX Builder đặt span=3 nên bị rớt dòng) */
@media (min-width: 850px) {
    .home-counter .row-counter > .col-counter {
        flex-basis: 20%;
        max-width: 20%;
    }
}

/* Quy trình làm việc: xem khối "QUY TRÌNH LÀM VIỆC (3.5.0)" ở cuối file */

/* Khách hàng nói gì */
.home-feedback .antoan-feedback {
    border: 1px solid var(--antoan-border);
    border-radius: var(--antoan-radius);
    padding: 18px 20px;
    margin-bottom: 16px;
    background: #fff;
}

.home-feedback .antoan-feedback .testimonial-text {
    font-size: .95em;
    font-style: normal;
}

/* 4 giá trị */

.antoan-value {
    border: 1px solid var(--antoan-border);
    border-radius: var(--antoan-radius);
    padding: 18px;
    margin-bottom: 0;
    height: 100%;
}

.antoan-value h4 {
    margin-bottom: 4px;
    font-size: 1em;
}

.antoan-value p {
    margin: 0;
    font-size: .9em;
}

/* Khung Đặt lịch tư vấn: nền đỏ, chữ trắng, nút đen (như antoangroup.com) */
.antoan-booking > .col-inner {
    background: var(--primary-color);
    color: #fff;
    padding: 28px 24px 10px;
    border-radius: var(--antoan-radius);
}

.antoan-booking-top {
    margin: 0;
    font-weight: 700;
    letter-spacing: .5px;
}

.antoan-booking-title {
    color: #fff;
    margin-bottom: 8px;
}

.antoan-booking input:not([type="submit"]),
.antoan-booking textarea {
    background: #fff;
    border: 0;
    border-radius: 4px;
    color: #333;
}

.antoan-booking textarea {
    min-height: 70px;
}

/* Form trong khung đỏ: thu khoảng cách giữa các ô (col của Flatsome mặc định đệm dưới 30px) */
.antoan-booking .row-form-booking > .col {
    padding-bottom: 12px;
}

.antoan-booking .wpcf7 p,
.antoan-booking .wpcf7-form-control-wrap input,
.antoan-booking .wpcf7-form-control-wrap textarea {
    margin-bottom: 0;
}

.antoan-booking input[type="submit"] {
    width: 100%;
    background: #111;
    color: #fff;
    border-radius: 4px;
    margin: 0;
}

.antoan-booking .wpcf7-response-output {
    color: #fff;
}

/*************** GIAI ĐOẠN 4 (19/10/2026): CTA MOBILE, BÁO GIÁ, BỘ LỌC ***************/

/* Thanh CTA dính đáy trên mobile (thay cho cụm nút liên hệ nổi đè nội dung); ẩn trên màn hình ≥850px */
.antoan-mobile-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .12);
    padding-bottom: env(safe-area-inset-bottom);
}

.antoan-mobile-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 6px 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    position: relative;
}

.antoan-mobile-bar__item i {
    font-size: 18px;
}

.antoan-mobile-bar__item.is-call {
    background: var(--primary-color);
}

.antoan-mobile-bar__item.is-zalo {
    background: #0068ff;
}

.antoan-mobile-bar__item.is-quote {
    background: var(--antoan-dark);
}

.antoan-mobile-bar__item:hover,
.antoan-mobile-bar__item:focus {
    color: #fff;
    opacity: .92;
}

.antoan-zalo-mark {
    font-size: 13px;
    line-height: 18px;
    padding: 0 5px;
    border: 1.5px solid #fff;
    border-radius: 9px;
}

.antoan-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ffb400;
    color: var(--antoan-dark);
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.antoan-badge.is-empty {
    display: none;
}

.antoan-mobile-bar .antoan-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 26px);
}

/* Mobile + tablet (≤1025px, 3.4.2): thanh CTA thay cụm nút nổi (ở 850–1025px cụm nút nổi từng đè chữ banner) */
@media (max-width: 1025px) {
    .antoan-mobile-bar {
        display: flex;
    }

    body {
        padding-bottom: 56px;
    }

    /* Thanh CTA đã có Gọi + Zalo: ẩn cụm nút nổi để không đè nội dung */
    #wvbc-button-contact {
        display: none !important;
    }

    /* Nút "về đầu trang" của Flatsome nâng lên trên thanh CTA */
    .back-to-top {
        bottom: 70px !important;
    }
}

/* Nút "Thêm vào báo giá" dùng chung kiểu nút CTA của theme */
.antoan-product-cta .wvpt-add-to-quote {
    background: var(--antoan-dark);
    color: #fff;
}

/*************** GIAI ĐOẠN 5 (19/10/2026): TỐC ĐỘ ***************/

/* Bản đồ footer nạp khi cuộn tới: giữ chỗ để không nhảy bố cục */
.antoan-map-lazy {
    min-height: 200px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.antoan-map-lazy iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 5px;
}

.antoan-map-link {
    color: #fff;
    text-decoration: underline;
}

/* Tablet / laptop (550–1399px): chữ banner trang chủ không dính sát mép trái và không bị mũi tên slider đè (3.4.2).
   Từ 1400px, khung chữ đã nằm trong container nên không cần. */
@media (min-width: 550px) and (max-width: 1399px) {
    .home-slider .banner-text .text-box-content {
        padding-left: 84px;
        padding-right: 24px;
    }
}

/* Header desktop hẹp (850–979px): bỏ mũi tên dropdown để menu 9 mục đủ chỗ trên 1 dòng; menu con vẫn mở khi rê chuột.
   (Cỡ chữ và khoảng cách menu ở 850–1199px: khối "Font Be Vietnam Pro" 3.10.0 phía dưới.) */
@media (min-width: 850px) and (max-width: 979px) {
    #wide-nav .header-bottom-nav > li > a .icon-angle-down {
        display: none;
    }
}

/*************** QUY TRÌNH LÀM VIỆC (3.5.0): 4 BƯỚC CÙNG MỘT KHUNG ***************/

.antoan-process-intro {
    max-width: 920px;
    margin: -6px 0 6px;
    color: var(--antoan-muted);
    line-height: 1.7;
}

/* Tab: số bước (01–06, ghi theo nth-child) trong vòng tròn + tên bước */
.antoan-process-tabs > .nav {
    min-width: 270px;
}

.antoan-process-tabs > .nav > li {
    margin: 0 0 10px;
    border: 0;
}

.antoan-process-tabs > .nav > li > a {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 62px;
    padding: 12px 14px;
    border: 1px solid var(--antoan-border);
    border-radius: var(--antoan-radius);
    background: #fff;
    color: #333;
    font-size: .95em;
    font-weight: 600;
    text-align: left;
    text-transform: none;
    white-space: normal;
    line-height: 1.35;
    transition: border-color .2s, background .2s;
}

.antoan-process-tabs > .nav > li > a::before {
    content: "";
    flex: 0 0 34px;
    height: 34px;
    box-sizing: border-box;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    background: #fff;
    color: var(--antoan-muted);
    font-weight: 700;
    font-size: .9em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flatsome ẩn ::before của tab không hover (.nav:hover>li:not(:hover)>a:before{opacity:0}),
   làm mất số khi rê chuột trên thanh tab: giữ số luôn hiện */
.antoan-process-tabs > .nav:hover > li > a::before {
    opacity: 1;
}

.antoan-process-tabs > .nav > li:nth-child(1) > a::before { content: "01"; }
.antoan-process-tabs > .nav > li:nth-child(2) > a::before { content: "02"; }
.antoan-process-tabs > .nav > li:nth-child(3) > a::before { content: "03"; }
.antoan-process-tabs > .nav > li:nth-child(4) > a::before { content: "04"; }
.antoan-process-tabs > .nav > li:nth-child(5) > a::before { content: "05"; }
.antoan-process-tabs > .nav > li:nth-child(6) > a::before { content: "06"; }

.antoan-process-tabs > .nav > li > a > span {
    flex: 1 1 auto;
    min-width: 0;
}

.antoan-process-tabs > .nav > li > a:hover {
    border-color: var(--primary-color);
}

.antoan-process-tabs > .nav > li.active > a {
    border-color: var(--primary-color);
    background: var(--antoan-red-soft);
    color: var(--antoan-dark);
}

.antoan-process-tabs > .nav > li.active > a::before {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

/* Nội dung một bước */
.antoan-process-tabs .tab-panels {
    padding: 0 0 0 10px;
    border: 0;
}

.antoan-step__kicker {
    margin: 0 0 2px;
    color: var(--primary-color);
    font-size: .8em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.antoan-step__title {
    margin: 0 0 14px;
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1.3;
}

.antoan-step__intro {
    color: var(--antoan-muted);
}

.antoan-step__list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    counter-reset: antoan-item;
}

.antoan-step__list > li {
    position: relative;
    margin: 0 0 14px;
    padding-left: 38px;
    counter-increment: antoan-item;
    line-height: 1.6;
}

.antoan-step__list > li::before {
    content: counter(antoan-item);
    position: absolute;
    left: 0;
    top: 1px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: .8em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.antoan-step__list > li > strong {
    display: block;
    color: var(--antoan-dark);
}

.antoan-step__list > li > span {
    display: block;
    color: var(--antoan-muted);
}

.antoan-step__note {
    margin: 0;
    padding: 12px 16px;
    border-left: 3px solid var(--primary-color);
    background: var(--antoan-bg-soft);
    color: var(--antoan-muted);
    font-size: .95em;
    line-height: 1.6;
}

/* Cột phải: ảnh + hộp kêu gọi tư vấn */
.antoan-process-image img {
    border-radius: var(--antoan-radius);
}

.antoan-process-cta {
    margin-top: 16px;
    padding: 20px;
    border-radius: var(--antoan-radius);
    background: var(--antoan-dark);
    color: rgba(255, 255, 255, .85);
}

.antoan-process-cta__title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.1em;
    font-weight: 700;
}

.antoan-process-cta .antoan-process-cta__btn {
    margin: 6px 0 0;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Màn hình nhỏ: tab xếp thành lưới 2 cột phía trên nội dung */
@media (max-width: 849px) {
    .antoan-process-tabs > .nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        min-width: 0;
        width: 100%;
        margin-bottom: 16px;
    }

    .antoan-process-tabs > .nav > li {
        display: flex;
        margin: 0;
        padding: 0;
    }

    /* Mọi tab cùng một kiểu: số bên trái, tên bên phải, cao bằng nhau */
    .antoan-process-tabs > .nav > li > a {
        gap: 8px;
        height: 100%;
        min-height: 64px;
        margin: 0;
        padding: 8px 10px;
        font-size: .85em;
    }

    .antoan-process-tabs > .nav > li > a::before {
        flex-basis: 30px;
        height: 30px;
    }

    .antoan-process-tabs .tab-panels {
        padding-left: 0;
    }
}

/*************** QUY TRÌNH LÀM VIỆC (3.5.1): 3 CỘT CAO BẰNG NHAU (≥850px) ***************/
/* Chiều cao hàng = bước dài nhất. Cột tab chia đều 4 tab, cột phải để ảnh lấp chỗ trống, hộp tư vấn sát đáy. */
@media (min-width: 850px) {
    .antoan-process-row > .col > .col-inner {
        height: 100%;
    }

    .antoan-process-tabs {
        flex-wrap: nowrap;
        height: 100%;
        align-items: stretch;
    }

    /* Cột tab: 4 tab giãn đều theo chiều cao */
    .antoan-process-tabs > .nav {
        display: flex;
        flex: 0 0 270px;
        flex-direction: column;
        margin: 0 20px 0 0;
        padding: 0;
    }

    .antoan-process-tabs > .nav > li {
        display: flex;
        flex: 1 1 0;
        margin: 0 0 12px;
    }

    .antoan-process-tabs > .nav > li:last-child {
        margin-bottom: 0;
    }

    .antoan-process-tabs > .nav > li > a {
        height: 100%;
    }

    /* Khung nội dung: các bước chồng lên nhau trong cùng một ô lưới nên khung luôn cao bằng
       bước dài nhất, đổi tab không làm trang nhảy. Bước chưa chọn ẩn bằng visibility. */
    .antoan-process-tabs .tab-panels {
        display: grid;
        flex: 1 1 0;
        min-width: 0;
        padding: 22px 26px 6px;
        border: 1px solid var(--antoan-border);
        border-radius: var(--antoan-radius);
        background: #fff;
    }

    .antoan-process-tabs .tab-panels > .panel {
        grid-area: 1 / 1;
        display: block !important;
        visibility: hidden;
        opacity: 0;
        height: auto !important;
        padding: 0;
        transition: opacity .2s;
    }

    .antoan-process-tabs .tab-panels > .panel.active {
        visibility: visible;
        opacity: 1;
    }

    /* Cột phải: ảnh không tự quyết định chiều cao, chỉ lấp phần còn lại */
    .antoan-process-aside > .col-inner {
        display: flex;
        flex-direction: column;
    }

    .antoan-process-aside .antoan-process-image {
        position: relative;
        flex: 1 1 0;
        min-height: 200px;
    }

    .antoan-process-aside .antoan-process-image .img-inner {
        position: absolute;
        inset: 0;
        border-radius: var(--antoan-radius);
        overflow: hidden;
    }

    .antoan-process-aside .antoan-process-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .antoan-process-aside > .col-inner > .img.antoan-process-image {
        margin-bottom: 0;
    }

    /* Khoảng cách ảnh – hộp tư vấn bằng khoảng cách giữa các tab */
    .antoan-process-aside .antoan-process-cta {
        flex: 0 0 auto;
        margin-top: 12px;
    }
}

@media (min-width: 850px) and (max-width: 1199px) {
    .antoan-process-tabs > .nav {
        flex-basis: 230px;
        min-width: 0;
        margin-right: 16px;
    }

    .antoan-process-tabs .tab-panels {
        padding: 18px 20px 4px;
    }
}

/*************** KHÁCH HÀNG NÓI GÌ (3.6.0): 2 CỘT CAO BẰNG NHAU (≥850px) ***************/
/* Cột trái là một khung cùng kiểu thẻ đánh giá, nút tư vấn sát đáy; cột phải 3 thẻ cao bằng nhau. */
@media (min-width: 850px) {
    .home-feedback .row:has(.antoan-feedback) > .col > .col-inner {
        height: 100%;
    }

    .home-feedback .row:has(.antoan-feedback) > .col:first-child > .col-inner {
        display: flex;
        flex-direction: column;
        padding: 26px 30px;
        border: 1px solid var(--antoan-border);
        border-radius: var(--antoan-radius);
        background: #fff;
    }

    .home-feedback .row:has(.antoan-feedback) > .col:first-child .home-title {
        padding: 0;
    }

    .home-feedback .row:has(.antoan-feedback) > .col:first-child > .col-inner > .button {
        align-self: flex-start;
        margin: auto 0 0;
    }

    /* Lưới 1fr: mọi hàng cao bằng thẻ dài nhất và giãn hết chiều cao cột */
    .home-feedback .row:has(.antoan-feedback) > .col:last-child > .col-inner {
        display: grid;
        grid-auto-rows: 1fr;
        gap: 16px;
    }

    .home-feedback .antoan-feedback.icon-box {
        display: flex;
        align-items: center;
        margin: 0;
    }
}

/* Lời đánh giá: giãn dòng bằng đoạn văn bên trái (Flatsome đặt line-height-small) */
.home-feedback .antoan-feedback .testimonial-text {
    line-height: 1.6;
}

/* Thẻ đánh giá gọn: lời đánh giá ở trên, dòng dưới là tên khách hàng + 5 sao */
.home-feedback .antoan-feedback.icon-box {
    padding: 14px 18px;
}

.home-feedback .antoan-feedback .testimonial-image {
    width: 72px !important; /* Flatsome đặt width 90px inline */
}

.home-feedback .antoan-feedback .icon-box-text {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "text text"
        "meta stars";
    align-items: center;
    column-gap: 10px;
}

.home-feedback .antoan-feedback .testimonial-text {
    grid-area: text;
    margin: 0;
}

.home-feedback .antoan-feedback .testimonial-meta {
    grid-area: meta;
    padding-top: 8px;
}

.home-feedback .antoan-feedback .star-rating {
    grid-area: stars;
    justify-self: start;
    margin: 8px 0 0;
    font-size: .8em;
}

@media (max-width: 549px) {
    .home-feedback .antoan-feedback .testimonial-image {
        width: 56px !important;
    }

    .home-feedback .antoan-feedback.icon-box {
        padding: 14px;
    }
}

/*************** 4 GIÁ TRỊ + ĐẶT LỊCH (3.7.0): 2 CỘT CAO BẰNG NHAU ***************/
/* Đoạn <p> chỉ chứa anchor #dat-lich-tu-van tạo khoảng trống thừa ở đầu khung đặt lịch */
.antoan-booking > .col-inner > p:has(> #dat-lich-tu-van:only-child) {
    margin: 0;
    line-height: 0;
}

/* ≥850px: 2 hàng thẻ giá trị giãn đều cho bằng chiều cao khung đặt lịch, nội dung thẻ căn giữa */
@media (min-width: 850px) {
    .home-booking .row:has(.antoan-value) > .col {
        padding-bottom: 0;
    }

    .home-booking .row:has(.antoan-value) > .col > .col-inner {
        height: 100%;
    }

    /* Lưới 2×2, hàng 1fr: 2 hàng luôn cao bằng nhau và giãn hết chiều cao cột */
    .home-booking .row:has(> .col .antoan-value) > .col:first-child > .col-inner > .row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        gap: 24px;
        height: 100%;
        width: auto;
        margin: 0;
    }

    .home-booking .row:has(> .col .antoan-value) > .col:first-child > .col-inner > .row > .col {
        max-width: none;
        padding: 0;
    }

    /* clearfix ::before/::after của Flatsome sẽ thành ô lưới trống: bỏ đi */
    .home-booking .row:has(> .col .antoan-value) > .col:first-child > .col-inner > .row::before,
    .home-booking .row:has(> .col .antoan-value) > .col:first-child > .col-inner > .row::after {
        display: none;
    }

    .home-booking .row:has(> .col .antoan-value) > .col:first-child > .col-inner > .row > .col > .col-inner {
        height: 100%;
    }

    .antoan-value.icon-box {
        display: flex;
        align-items: center;
        padding: 22px 20px;
    }
}

/*************** ĐỐI TÁC CHIẾN LƯỢC (3.8.0): LOGO CÙNG KHUNG ***************/
/* Khối gallery logo đối tác là slider duy nhất có large-columns-6 trong các section .home-01 */
.home-01 .row-slider.large-columns-6 .gallery-col > .col-inner {
    height: 100%;
}

/* Logo không cần phóng to bằng lightbox */
.home-01 .row-slider.large-columns-6 .image-lightbox {
    pointer-events: none;
    cursor: default;
}

.home-01 .row-slider.large-columns-6 .gallery-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 16px 20px;
    border: 1px solid var(--antoan-border);
    border-radius: var(--antoan-radius);
    background: #fff;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.home-01 .row-slider.large-columns-6 .gallery-col:hover .gallery-box {
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.home-01 .row-slider.large-columns-6 .gallery-box .box-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: visible; /* chỉ .gallery-box cắt phần trống của ảnh, không cắt theo vùng nội dung */
}

.home-01 .row-slider.large-columns-6 .gallery-box .box-text {
    display: none;
}

/* ≥850px: 5 logo chia đều 5 cột, không còn ô trống ở cuối hàng */
@media (min-width: 850px) {
    .home-01 .row-slider.large-columns-6 > .gallery-col,
    .home-01 .row-slider.large-columns-6 .flickity-slider > .gallery-col {
        flex-basis: 20%;
        max-width: 20%;
        width: 20%;
    }
}

@media (max-width: 549px) {
    .home-01 .row-slider.large-columns-6 .gallery-box {
        height: 84px;
        padding: 12px 14px;
    }
}

/* Logo đối tác đã cắt hết viền trống (3.10.0), nên chỉ cần một quy tắc: vừa khung 140×50px, giữ tỉ lệ.
   Logo mới nên được cắt viền trước khi tải lên. */
.home-01 .row-slider.large-columns-6 .gallery-box .box-image img {
    width: auto !important;
    height: auto;
    max-width: 140px;
    max-height: 50px;
    object-fit: contain;
    flex: 0 1 auto;
}

@media (max-width: 549px) {
    .home-01 .row-slider.large-columns-6 .gallery-box .box-image img {
        max-width: 112px;
        max-height: 40px;
    }
}

/* Đủ chỗ cho cả 5 logo thì Flickity vô hiệu hoá nút trượt: ẩn luôn */
.home-01 .row-slider.large-columns-6 .flickity-button:disabled {
    display: none;
}

/* Nút trượt kiểu "reveal" có nền trắng che viền ô logo đầu/cuối (tablet, mobile): bỏ nền */
.home-01 .row-slider.large-columns-6 .flickity-button {
    background: none;
    box-shadow: none;
}

/*************** GIAI ĐOẠN 8 (3.10.0): GIAO DIỆN ***************/

/* Top bar: số hotline trước đây chỉ 8,6px; cả dòng cùng cỡ chữ */
#top-bar .html_topbar_left {
    font-size: 13px;
}

#top-bar .html_topbar_left a[href^="tel:"] {
    /* Flatsome áp style link menu (inline-flex, vertical-align: top, padding 5px) làm số điện thoại lệch xuống so với
       chữ "Hotline:": trả về chữ thường nằm cùng dòng */
    display: inline;
    padding: 0;
    vertical-align: baseline;
    line-height: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

/* Header: hotline + nút "Danh sách báo giá" lấp khoảng trống bên phải ô tìm kiếm */
.antoan-header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.antoan-header-contact__phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--antoan-dark);
}

.antoan-header-contact__phone > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--antoan-red-soft);
    color: var(--antoan-red);
    font-size: 18px;
}

.antoan-header-contact__phone small {
    display: block;
    color: var(--antoan-muted);
    font-size: 12px;
    line-height: 1.3;
}

.antoan-header-contact__phone strong {
    display: block;
    color: var(--antoan-red);
    font-size: 18px;
    line-height: 1.3;
}

.antoan-header-contact__phone:hover strong {
    color: var(--antoan-red-dark);
}

.antoan-header-contact .antoan-header-contact__quote {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border-radius: var(--antoan-radius);
}

.antoan-header-contact__quote .antoan-badge {
    position: static;
    background: #fff;
    color: var(--antoan-red);
}

@media (max-width: 1199px) {
    .antoan-header-contact__phone small {
        display: none;
    }
}

@media (max-width: 1060px) {
    .antoan-header-contact__phone > i {
        display: none;
    }
}

/* ≤1025px đã có thanh CTA dính đáy (Gọi · Zalo · Báo giá): bỏ hotline trên header để không chạm ô tìm kiếm */
@media (max-width: 1025px) {
    .antoan-header-contact__phone {
        display: none;
    }
}

/* Nút liên hệ nổi (Webvina Button Contact, chế độ gộp): nhỏ lại, bỏ hiệu ứng xoay/nhấp nháy liên tục */
#wvbc-button-contact .wvbc-button .wvbc-circle {
    transform: scale(.8);
    transform-origin: left bottom;
}

#wvbc-button-contact .wvbc-circle-fill,
#wvbc-button-contact .wvbc-circle-img {
    animation: none !important;
}

#wvbc-all-in-one:focus-visible {
    outline: none;
}

#wvbc-all-in-one:focus-visible .wvbc-circle-img {
    outline: 3px solid var(--antoan-dark);
    outline-offset: 2px;
}

/* Bàn phím: viền focus rõ ràng cho link, nút, ô nhập */
a:focus-visible,
button:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--antoan-red);
    outline-offset: 2px;
}

.nav-dark a:focus-visible,
#top-bar a:focus-visible,
#wide-nav a:focus-visible {
    outline-color: #fff;
}

/* Trang sản phẩm: tóm tắt + khối cam kết dưới các nút liên hệ */
.antoan-product-summary {
    margin: 4px 0 16px;
    color: var(--antoan-muted);
    line-height: 1.7;
}

.antoan-product-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 20px;
    padding: 14px 16px;
    border: 1px solid var(--antoan-border);
    border-radius: var(--antoan-radius);
    background: var(--antoan-bg-soft);
    list-style: none;
}

.antoan-product-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--antoan-text);
    font-size: .92em;
    line-height: 1.4;
}

.antoan-product-trust li > i {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--antoan-red-soft);
    color: var(--antoan-red);
    font-size: 14px;
}

@media (max-width: 549px) {
    .antoan-product-trust {
        grid-template-columns: 1fr;
    }

    /* Breadcrumb 1 dòng; bỏ nút chuyển sản phẩm trước/sau đứng lẻ */
    .single-product .woocommerce-breadcrumb {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .single-product .next-prev-thumbs {
        display: none;
    }
}

/* Lưới sản phẩm: khung ảnh vuông, nền trắng, ảnh hiển thị trọn (không cắt, không méo) */
.product-small .box-image {
    aspect-ratio: 1 / 1;
    background: #fff;
}

.product-small .box-image > div,
.product-small .box-image > div > a {
    display: block;
    height: 100%;
}

.product-small .box-image img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

/* Tên sản phẩm tối đa 2 dòng để các thẻ thẳng hàng */
.product-small .product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Font Be Vietnam Pro, cỡ chữ gốc 16px (3.10.0): menu chính 9 mục giữ 1 dòng ở desktop hẹp.
   Cỡ chữ đặt bằng px (không phụ thuộc cỡ chữ gốc); khoảng cách giữa các mục là padding của <a>
   (margin của <li> bị .header-bottom-nav>li{margin:0 !important} khoá). */
@media (min-width: 850px) and (max-width: 1199px) {
    #wide-nav .header-bottom-nav > li > a {
        padding-left: 13px;
        padding-right: 13px;
        font-size: 14px;
    }
}

@media (min-width: 850px) and (max-width: 1060px) {
    #wide-nav .header-bottom-nav > li > a {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 13px;
    }
}

@media (min-width: 850px) and (max-width: 979px) {
    #wide-nav .header-bottom-nav > li > a {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 12.5px;
    }
}

@media (min-width: 850px) and (max-width: 899px) {
    #wide-nav .header-bottom-nav > li > a {
        padding-left: 5px;
        padding-right: 5px;
        font-size: 12px;
    }
}

/* Bộ đếm trang chủ trên mobile: 5 ô trong 390px làm số dính nhau ("1,000+500+") và cắt chữ. Xếp 3 + 2 ô căn giữa. */
@media (max-width: 549px) {
    .home-counter .row-counter {
        justify-content: center;
    }

    .home-counter .row-counter > .col-counter {
        flex-basis: 33.333%;
        max-width: 33.333%;
    }

    .home-counter .col-counter .col-inner {
        padding: 16px 4px;
    }

    .home-counter .icon-box-text h1,
    .home-counter .icon-box-text .antoan-counter__num {
        font-size: 22px;
    }

    .home-counter .icon-box-text p {
        font-size: 13px;
        line-height: 1.4;
    }

    .home-counter .icon-box,
    .home-counter .icon-box-text {
        text-align: center;
    }

    .home-counter .icon-box-img {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Chip lọc nhanh theo danh mục con (hãng / hệ) phía trên lưới sản phẩm */
.antoan-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.antoan-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--antoan-border);
    border-radius: 999px;
    background: #fff;
    color: var(--antoan-text);
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    transition: border-color .2s, color .2s, background .2s;
}

.antoan-cat-chip:hover {
    border-color: var(--antoan-red);
    color: var(--antoan-red);
}

.antoan-cat-chip.is-active {
    border-color: var(--antoan-red);
    background: var(--antoan-red);
    color: #fff;
}

.antoan-cat-chip__count {
    color: var(--antoan-muted);
    font-size: 12px;
}

.antoan-cat-chip.is-active .antoan-cat-chip__count {
    color: rgba(255, 255, 255, .85);
}

/* Mobile: 1 hàng cuộn ngang thay vì nhiều dòng */
@media (max-width: 549px) {
    .antoan-cat-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-left: -15px;
        margin-right: -15px;
        padding: 0 15px 4px;
        scrollbar-width: none;
    }

    .antoan-cat-chips::-webkit-scrollbar {
        display: none;
    }
}

/* SEO H1 (inc/seo.php, 20/10/2026): thẻ được nâng thành H1 giữ nguyên cỡ chữ của thẻ gốc (Flatsome: h2 1.6em, h3 1.25em) */
.antoan-h1--h2 {
    font-size: 1.6em;
}

.antoan-h1--h3 {
    font-size: 1.25em;
}

/* Bộ đếm trang chủ: trước là H1, nay là div cùng kiểu chữ */
.home-counter .antoan-counter__num {
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Tiêu đề trang in thêm cho trang không có tiêu đề nào */
.antoan-page-title {
    margin-bottom: .6em;
    color: var(--antoan-dark);
}

