.section__footer h3::after {
    background-color: #fffeff;
    position: absolute;
    content: '';
    width: 45px;
    height: 1px;
    left: 0;
    top: 3rem;
}

.section__footer h3 {
    padding-bottom: 2.5rem;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1rem;
}

.scroll-to-bullets a {
    border:1px solid var(--custom-color) !important;
}

.custom_sidebar .sidebar{
    width: 100%;
    float: left;
    padding: 25px;
    background: #fff;
    margin-top: 30px;
}

.section__footer p, .section__footer ul li{
    font-size: 14px;
    margin-bottom: 1rem;
    list-style: none;
    margin-left: 0!important;
}

.section__footer ul li {
    margin-bottom: .5rem!important;
}

.header-vertical-menu__fly-out .nav-vertical-fly-out>li.menu-item>a {
    box-sizing: border-box;
    display: block;
    color: #5e5c5c!important;
    font-size: 13px!important;
    text-transform: uppercase;
    position: relative!important;
    padding: 6px 10px 6px 30px!important;
}

.nav-dropdown.nav-dropdown-default>li>a {
    border-bottom: 1px solid #ececec;
    margin: 0 10px;
    padding-left: 0;
    padding-right: 0;
    font-size: 13px;
}
.col-banner {
    padding-left: 5px !important;
}

/* Front-page LCP guard: keep the first hero image paintable before Flickity is ready.
 * The PHP layer removes a one-slide hero wrapper entirely; these rules are a
 * defensive fallback if the hero later becomes a multi-slide slider. */
.home .col-banner .slider:not(.flickity-enabled) > .banner:first-child,
.home .col-banner .slider .banner:first-child .banner-bg img {
    opacity: 1 !important;
    visibility: visible !important;
}

.home .col-banner .slider .banner:first-child .banner-bg img {
    animation: none !important;
    transition: none !important;
}

.header-vertical-menu__fly-out {
    width:270px!important;
}

.page__lienhe {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

#top-bar .container {
    border-bottom: 1px solid #ececec;
    padding: 0;
}

#header-contact li a {
    text-transform: none;
    letter-spacing: 0;
    color: #232323;
    font-size: 14px;
}

.searchform .button.icon {
    font-size: 14px;
    height: 40px;
    width: 70px;
    background: #d60009;
}

.searchform input[type=search]{
    box-shadow:unset!important;
    height: 40px!important;
}

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

/* ..searchform-wrapper */

.icon-box-img img, .icon-box-img svg {
    padding-top:10px!important;
}

.icon-box-left .icon-box-img+.icon-box-text {
    padding-left: .5rem!important;
}

.header-nav-main {
    justify-content: space-around!important;
}

.widget_product_categories span.widget-title {
    background: #d60009;
    display: block;
    padding: 10px 10px;
    color: white;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.widget_product_categories ul li a {
    padding-left: 15px!important;
    padding-right: 15px!important;
    font-size: 16px!important;
    text-transform: capitalize!important;
}

.widget a {
    color: #161616;
}

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

.widget_product_categories ul {
    border:1px solid #ececec!important;
}

.tab-sp ul.nav li.active a {
    background: #d60009
}

.tab-sp ul.nav li {
    margin: 0
}

.tab-sp ul.nav li a {
    font-weight: normal;
    font-size: 16px;
    color: white;
    background: #232323;
    padding-left: 18px;
    padding-right: 18px;
}

.box__sp .section-title-normal {
    border-bottom: 0;
    background: #232323;
}

.box__sp .section-title-normal span {
    margin-right: 15px;
    margin-bottom: 0 !important;
    padding: 13px 15px 7.5px;
    border-bottom: 7px solid rgba(0, 0, 0, 0) !important;
    background: #d60009;
    color: white;
    font-size: 16px;
    font-weight: normal;
}

.box__sp .section-title a {
    font-size: 15px!important;
    font-weight: normal;
    color: #ebebeb;
    padding-right: 10px;
}

/* Contact */

.contact__lienhe input[type=text],
.contact__lienhe input[type=email], 
.contact__lienhe input[type=tel], 
.contact__lienhe textarea {
    box-shadow: unset !important;
    border-radius: 5px !important;
    margin-top: 5px;
    margin-bottom: 10px; 
}

.box-blog-post .is-divider {
    display: none;
}

.box__blog .blog-post-inner .post-meta {
    position: absolute;
    top: -50px;
    left: 8px;
    background: red;
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
}

.box__blog .post-item .col-inner .box-blog-post {
    background-color: #fff;
    border-radius: 8px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.box__blog .post-item .col-inner .box-blog-post .box-text {
    padding: 10px;
}

.box__blog .post-item .col-inner .box-blog-post .box-image {
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.box__blog .box-text p {
    font-size: 13px;
    margin-top: 5px;
}

/* Product */

.product-small.box {
    padding: 9px;
    border-bottom: 1px solid #e4e4e4;
    background: white;
    border-right: 1px solid #e4e4e4;
}

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

.product-small span.price_sanpham {
    color: #d60009;
    font-size: 14px;
}

.product-small .product-title a {
    color:#161616;
}

.product-small.box .product-title a {
    font-size: 17px;
    font-weight: normal;
    color: black;
}

.equalize-box .box-text p {
    min-height: 50px;
}

.section-title-center span:after {
    content: "";
    display: table;
    clear: both;
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, transparent 0, #d60009 30%, #d60009 70%, transparent 100%) center bottom / 120px 2px no-repeat;
    padding-top: 0;
}

.section-title-center span {
    font-size: 22px;
}
.section-tintuc .section-title b {
    opacity: 0;
}

.section-tintuc .box-text-inner .post-title {
    min-height: 50px;
}

.flickity-prev-next-button svg {
    background: #232323;
    border-radius: 99%;
}

.related {
    border-top:none;
}

.related h3 {
    padding-bottom: 0;
    letter-spacing: 0;
    font-size: 20px;
}

.related .product-small.col {
    padding: 0;
}

.related .large-columns-3 {
    border-top: 1px solid #e4e4e4;
    border-left: 1px solid #e4e4e4;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.archive #main, .single-product .shop-container {
    background-color: #e8e8e8;
}

.single-product .product-main, .single-product .product-footer {
    background: white;
    border-radius: 5px;
    padding: 15px;
    margin-top: 30px;
}

h1, h2, h3, h4, h5, h6, .heading-font {
    color: #0a0a0a;
}

.single-product .product-info .price span.amount, .single-product .product-info .price ins span {
    font-size: 23px;
    color: #f92e33;
    font-weight: bold;
}

[data-icon-label]:after, .secondary.is-underline:hover, .secondary.is-outline:hover, .icon-label, .button.secondary:not(.is-outline), .button.alt:not(.is-outline), .badge-inner.on-sale, .button.checkout, .single_add_to_cart_button, .current .breadcrumb-step {
    background-color: #d60009;
}

.single-product #product-sidebar {
    flex-basis: 30%;
    max-width: 30%;
    padding-left: 0;
    margin-top: 30px;
}

.single-product .large-9 {
    flex-basis: 70%;
    max-width: 70%;
    border-right: none !important;
}

.product-footer .product-tabs li.active a {
    background: black;
    color: white;
}
.product-footer .product-tabs li a {
    padding-left: 15px;
    border-left: 1px solid #cecece;
    padding-right: 15px;
    background: #e8e8e8;
    font-size: 17px;
    font-weight: normal;
    color: black;
    letter-spacing: 0;
}

.product-footer .product-tabs li {
    margin: 0;
}
.nav-line-bottom>li>a:before, .nav-line-grow>li>a:before, .nav-line>li>a:before {
    background: transparent!important;
}

.mr-half .badge-inner {
    border-radius: 99%;
}

span.widget-title {
    letter-spacing: 0;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase!important;
}

.flickity-prev-next-button .arrow {
    fill: white!important;
}

.blog-archive .post-item .box-text {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 10px 10px 20px 10px;
    background: white;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.blog-archive .post-item .box-image {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.blog-archive .post-item .post-title {
    font-size: 17px;
    overflow: hidden;
    margin-bottom: 10px;
    min-height: 50px;
    font-weight: 600;
}

.blog-single .large-9, .page-right-sidebar .large-9 {
    border-right: none !important;
    flex-basis: 70%;
    max-width: 70%;
}

.blog-single .article-inner {
    background: white;
    padding: 15px;
    border-radius: 5px;
}

.blog-single, .page-right-sidebar {
    background: #eaeaea;
}

.blog-single .large-3 .widget {
    border-radius: 5px;
    background: white;
}
.widget {
    padding: 15px;
    border-radius: 5px;
    background: white;
}

.blog-single .large-3, .page-right-sidebar .large-3 {
    border-left: none !important;
    flex-basis: 30%;
    max-width: 30%;
    padding-left: 0!important;
}

.blog-single .entry-header .entry-meta {
    text-transform: none;
    font-size: 15px;
    letter-spacing: 0;
    color: #525252;
}

.blog-single .entry-meta {
    text-transform: none;
    font-size: 14px;
    letter-spacing: 0;
    color: gray;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
    padding: 10px;
    background: #f9f9f9 
}

.feature {
    position: relative;
    overflow: hidden;
}
.feature::before {
content: "";
display: block;
padding-top: 56.25%;
}
.feature .image{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    background-size: cover;
    background-position: center;
}
ul.row.related-post li {
    list-style: none;
}
.related-title {
    line-height: 1.3 !important;
    margin-top: 10px !important;
}

.bai-viet-lien-quan {
    margin-top: 15px;
}

.bai-viet-lien-quan ul {
    margin-bottom: 0;
    display: flex;
    width: 100%;
    gap:10px;
}

.bai-viet-lien-quan ul li {
    list-style: none;
    width: 25%;
    color: graytext;
    float: left;
    padding-left: 0;
    padding-right: 0;
    border: 1px solid #ebebeb;
    border-radius: 5px;
}

.bai-viet-lien-quan ul li .box-image img {
    height: 120px;
    border-radius: 4px;
    object-fit: cover;
    object-position: center;
}

.bai-viet-lien-quan h4 {
    font-size: 14px;
    font-weight: normal;
    color: black;
    line-height: 19px;
    padding-top: 7px;
    height: 50px;
    overflow: hidden;
    padding: 10px 5px 0 5px;
}

.section-camket .col-inner {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 5px;
    padding: 10px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.section-camket .col-inner h3{
    font-size: 16px!important;
    margin-bottom: 0px!important;
}

.section-camket .col-inner .icon-box-img img {
    padding-top: 3px!important;
}

.section-camket .col-inner p{
    font-size: 14px!important;
}
.archive .product-small.col {
    padding: 0;
}

.has-equal-box-heights .box-image {
    padding-top: 75%;
}

.product-small.box .box-text {
    padding-bottom: 8px;
}

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

.header-bottom .nav-center li.active a, .header-bottom .nav-center li:hover {
    background-color: #d60009;
}

.header-bottom .nav-center li a {
    padding-left: 17px !important;
    padding-right: 17px !important;
    line-height: 35px !important;
    font-weight: normal !important;
    font-size: 15px !important;
} 

.thong-bao {
    background: #DCEDC8;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 16px;
    color: #2E7D32;
    margin-top: 8px;
}

.thong-bao ul {
    margin-bottom: 0;
}

@media (max-width: 549px) {
    .tieu-chi-section .col,
    .footer-section .col,
    .single-product .large-9,
    .single-product .large-3,
    .blog-single .large-9,
    .page-right-sidebar .large-9,
    .blog-single .large-3,
    .page-right-sidebar .large-3 {
        flex-basis: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-bottom: 10px;
    }
}

.form-dien-thoai {
    margin-top: 12px;
    background: #FF9800;
    padding: 15px;
    border-radius: 5px;
}

.form-dien-thoai form {
    margin-bottom: 0;
}

.form-dien-thoai .form-sdt .left {
    float: left;
    width: 85%;
    display: inline-block;
}

.form-dien-thoai .form-sdt .right {
    padding: 0;
    width: 15%;
    text-align: center;
    float: left;
    display: inline-block;
}

.wpcf7-form-control-wrap {
    position: relative;
}
.form-dien-thoai .form-sdt {
    display: inline-block;
    width: 100%;
}

.form-dien-thoai label {
    position: relative;
    display: block;
    background: none;
    padding: 0 5px 0 52px;
    margin: 0px;
    text-align: left;
    font-weight: 400;
    font-size: 14px;
    color: white;
    margin-bottom: 11px;
}

.form-dien-thoai label::before {
    content: "☎";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
}

.form-dien-thoai input {
    margin-bottom: 0!important;
}

.form-dien-thoai input[type='tel'] {
box-shadow: unset!important;
}

.form-dien-thoai input[type='submit'] {
    border-radius: 0 !important;
    text-align: left!important;
    margin: 0;
    padding: 0 10px!important;
    background: #d60009;
}

.form-dien-thoai .wpcf7-spinner {
    width: 12px!important;
    height: 12px!important;
}

/* Quote-only WooCommerce products. */
.thoidung-quote-price {
    color: #d60009;
    font-weight: 700;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.thoidung-quote-label,
.thoidung-quote-phone {
    white-space: nowrap;
}

/* Product-card price wrappers can inherit nowrap from WooCommerce/Flatsome.
 * Allow quote-only labels to use the card width instead of being clipped. */
.product-small .price-wrapper,
.product-small .price {
    max-width: 100%;
}

.product-small .thoidung-quote-price {
    display: block;
    width: 100%;
    line-height: 1.35;
}

@media (max-width: 549px) {
    .product-small .price-wrapper,
    .product-small .price {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .product-small .thoidung-quote-price {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        max-width: 100%;
        font-size: 12px !important;
        line-height: 1.25;
        text-align: center;
        white-space: normal !important;
        overflow: visible !important;
    }

    .product-small .thoidung-quote-label,
    .product-small .thoidung-quote-phone {
        display: block;
        max-width: 100%;
        white-space: nowrap;
    }
}

.thoidung-quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.thoidung-quote-actions .button,
.thoidung-quote-loop-button {
    margin: 0;
}

.thoidung-quote-zalo {
    background-color: #0084ff;
    color: #fff;
}

/* Floating contact buttons. Moved from wp_footer inline CSS for caching. */
.floating-buttons {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.floating-buttons a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Compositor-friendly pulse: animate only transform/opacity on a lightweight
 * pseudo-element instead of repainting box-shadow on three fixed buttons. */
.floating-buttons a::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(0, 0, 0, 0.22);
    border-radius: inherit;
    pointer-events: none;
    transform: scale(1);
    opacity: 0.45;
    will-change: transform, opacity;
    animation: thoidung-contact-pulse 1.8s ease-out infinite;
}

.floating-buttons a:hover {
    transform: scale(1.12);
}

.floating-buttons .hotline {
    background-color: #28a745;
}

.floating-buttons .zalo {
    background-color: #0084ff;
}

.floating-buttons .messenger {
    background-color: #006aff;
}

.floating-buttons svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.floating-buttons a span {
    position: absolute;
    right: 66px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-buttons a:hover span,
.floating-buttons a:focus-visible span {
    opacity: 1;
    transform: translateX(0);
}

@keyframes thoidung-contact-pulse {
    0% {
        transform: scale(1);
        opacity: 0.45;
    }
    70%,
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        right: 16px;
        bottom: 16px;
        gap: 12px;
    }

    .floating-buttons a {
        width: 54px;
        height: 54px;
    }

    .floating-buttons svg {
        width: 26px;
        height: 26px;
    }

    .thoidung-quote-actions .button {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-buttons a {
        transition: none;
    }

    .floating-buttons a::before {
        animation: none;
        opacity: 0;
    }
}

/* Flatsome 3.20.9 compatibility: the parent styles the search lightbox by
 * #search-lightbox. This child override uses unique IDs to prevent duplicate
 * DOM ids, so preserve the parent's sizing through a stable class instead. */
.thoidung-search-lightbox {
    font-size: 1.5em;
    margin: 0 auto;
    max-width: 600px;
}

/* ================================================================
 * v2.3.9 - Single-post Related Posts
 * Deterministic server-rendered internal links; no carousel/JavaScript.
 * ================================================================ */
.thoidung-related-posts {
    margin: 32px 0 24px;
    padding-top: 24px;
    border-top: 1px solid #e6e6e6;
}

.thoidung-related-posts__heading {
    margin: 0 0 18px;
    color: #222;
    font-size: 22px;
    line-height: 1.3;
}

.thoidung-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.thoidung-related-card {
    min-width: 0;
    margin: 0;
}

.thoidung-related-card__thumb {
    display: block;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 4px;
    background: #f3f3f3;
}

.thoidung-related-card__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.thoidung-related-card__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    text-transform: none;
}

.thoidung-related-card__title a {
    color: #222;
    text-decoration: none;
}

.thoidung-related-card__title a:hover {
    color: #c62828;
}

.thoidung-related-card__thumb:focus-visible,
.thoidung-related-card__title a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 849px) {
    .thoidung-related-posts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 549px) {
    .thoidung-related-posts {
        margin-top: 26px;
        padding-top: 20px;
    }

    .thoidung-related-posts__heading {
        font-size: 20px;
    }

    .thoidung-related-posts__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .thoidung-related-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
    }

    .thoidung-related-card--no-thumb {
        grid-template-columns: 1fr;
    }

    .thoidung-related-card__thumb {
        margin-bottom: 0;
    }

    .thoidung-related-card__title {
        font-size: 15px;
    }
}
