/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
6: Version: 3.0
7: */

/*************** ADD CUSTOM CSS HERE.   ***************/
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #0047ba;
    --bg-light: #E8EEF9;
}

body {
    font-family: "Roboto", sans-serif;
}

.absolute-footer,
.wpcf7-spinner,
.commentlist .hb-rating-count,
.autocomplete-suggestion .search-price {
    display: none;
}

* {
    box-sizing: border-box;
}

.autocomplete-suggestion img+.search-name {
    font-size: 16px;
}

img {
    max-width: 100%;
}

.col-inner:last-child {
    padding-bottom: 0;
}

a {
    transition: all .25s ease;
}

p:last-child {
    margin-bottom: 0;
}

.off-canvas:not(.off-canvas-center) .nav-vertical li>a {
    font-size: 16px;
    text-transform: math-auto;
    color: #000;
}

.mfp-bg.mfp-ready {
    background-color: rgba(0, 0, 0, 0.4) !important;
    opacity: 1 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.mfp-wrap.mfp-ready {
    backdrop-filter: none !important;
}

.nav:not(.nav-slide) .active>.children {
    padding-bottom: 0;
}

.icon-box-img img,
.icon-box-img svg {
    padding-top: 0;
}

.contact-hdmain {
    align-items: center;
    justify-content: center;
    text-align: center;

    span {
        font-size: 14px;
    }

    h3 {
        font-size: 20px;
        font-weight: 600;
        margin: 0;
        color: var(--primary-color);
    }
}

.nav li a {
    font-size: 16px;
}

.ss-pd {
    padding-top: 60px !important;
    padding-bottom: 30px !important;
}

.ss-footer {
    .ux-logo-link {
        padding: 0 !important;
        margin-bottom: 15px;
    }

    ul {
        margin-bottom: 0;

        li {
            list-style-type: none;
            margin-left: 0;

            i {
                width: 20px;
                height: 20px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                margin-right: 4px;
                color: #111;
            }
        }

        li:last-child {
            margin-bottom: 0;
        }
    }

    h3 {
        color: #111;
    }

    iframe {
        border-radius: 8px;
        overflow: hidden;
    }
}

.ss-absolute-footer {
    p {
        margin: 15px 0;
        font-size: 14px;
    }
}

.header-button a.button.primary {
    padding: 0 15px !important;
}


.flickity-slider>.row:not(.is-selected) {
    opacity: 1;
}

.ss-hp-1 {
    img {
        border-radius: 8px;
        transition: all .3s ease;
    }
}

.ss-hp-2 {
    .icon-box {
        background-color: #fff;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transition: all .3s ease;
        height: 100%;

        h3 {
            margin-bottom: 0;
        }
    }

    .row-hover {
        &:hover {
            .col {
                transition: all .3s ease;
                filter: blur(3px);

                &:hover {
                    filter: blur(0px);

                }
            }
        }
    }
}

.ss-product {
    .button {
        margin-bottom: 0;
    }

    .nav-pills {
        gap: 6px;

        li a {
            border-radius: 4px;
            background-color: var(--bg-light);
            color: var(--primary-color);
        }
    }

    .nav-pills li a:hover {
        background-color: var(--primary-color);
        color: #fff;
    }

    .nav-pills li.active a {
        color: #fff;
        cursor: no-drop;
    }
}

.product-small.box {
    border: 1px solid #E5E7EB;
    box-shadow: 0px 1px 2px 0px #0000000D;
    border-radius: 16px;
    padding: 16px;
    background-color: #fff;
    overflow: hidden;

    img {
        border-radius: 8px;
    }

    .box-text {
        padding: 0;
        padding-top: 10px;

        .category {
            font-size: 12px;
            color: var(--primary-color);
            background-color: #eff6ff;
            border-radius: 8px;
            padding: 4px 8px;
            width: max-content;
            line-height: 1;
            opacity: 1;
            text-transform: math-auto;
            font-weight: 500;
        }

        .product-title a {
            color: #0f172a;
            font-size: 16px;
            font-weight: bold;
            margin: 8px 0;
            line-height: 22px;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
        }
    }

    .price bdi,
    .price span {
        color: #ff2929;
        font-size: 16px;
    }
}

.frame-title {
    h2 {
        margin-bottom: 0;

        img {
            max-height: 24px;
            transform: translateY(-3px);
        }
    }
}

.flickity-button {
    opacity: 1;
}

.flickity-button svg {
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    padding: 10px;
    border-radius: 4px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
}

.row-slider .flickity-prev-next-button svg {
    padding: 10px !important;
}

.slider-nav-light .flickity-prev-next-button .arrow,
.slider-nav-light .flickity-prev-next-button svg {
    fill: #333;
}

/* Styling cho box thông tin Sửa chữa & Bảo hành */
.hb-product-extra-info {
    margin: 10px 0 15px 0;
    border-top: 1px dashed #eee;
    padding-top: 8px;
}

.hb-info-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left;
}

.hb-info-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 5px;
    margin-left: 0 !important;
}

.hb-info-item:last-child {
    margin-bottom: 0;
}

.hb-info-item i {
    width: 22px;
    /* Đảm bảo icon thẳng hàng theo chiều dọc */
    color: #27ae60;
    /* Màu xanh mượt mà */
    font-size: 14px;
    flex-shrink: 0;
}

.item-repair i {
    color: var(--primary-color);
}

.hb-info-item span {
    font-weight: 500;
}

/* 🌟 REVIEW COUNT STYLING */
.star-rating--inline {
    display: inline-flex !important;
    align-items: center;
    height: 21px;
}

.hb-rating-count {
    font-size: 14px;
    color: #6b7280;
    margin-left: 6px;
    font-weight: 500;
}

.star-rating span:before {
    color: #FDCC0D;
}

.box.box-blog-post {
    border: 1px solid #E5E7EB;
    box-shadow: 0px 1px 2px 0px #0000000D;
    border-radius: 16px;
    padding: 16px;
    background-color: #fff;
    overflow: hidden;

    img {
        border-radius: 8px;
    }

    .box-text {
        padding: 0;
        padding-top: 10px;
    }

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

    .post-title a,
    .from_the_blog_excerpt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}

.ss-cta {

    .column-liquid-glass {
        .col-inner {
            padding: 50px;
            border-radius: 15px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
        }
    }

    form,
    .wpcf7-submit,
    input {
        margin: 0;
    }

    form {
        .form-flat-row {
            position: relative;

            .wpcf7-tel {
                width: 100%;
                height: 50px;
                border-radius: 8px;
                padding-right: 125px;
            }

            .wpcf7-submit {
                position: absolute;
                right: 5px;
                top: 50%;
                transform: translateY(-50%);
                border-radius: 4px;
                text-transform: math-auto;
            }

            .wpcf7-not-valid-tip {
                display: none;
            }
        }


    }
}

.wpcf7 div.wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
    background: #fddddd;
    border: 1px solid red;
    color: red;
    box-shadow: none;
    font-size: 14px;
    padding: 15px;
    border-radius: 6px;
    margin: 0;
    margin-top: 15px;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #ebfee3;
    color: #398f14;
    border-color: #398f142e;
}

.woocommerce-review-link {
    display: flex !important;
    align-items: center;
}

.related-products-wrapper {
    padding-bottom: 40px;
}

.product-info form.cart {
    display: inline-flex !important;
    align-items: center;
    background: #fff;
    border-radius: 99px;
    padding: 5px;
    padding-left: 10px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    gap: 10px;
    margin-bottom: 20px;
    /* Quantity wrapper */
    /* Add to cart button */
}

.product-info form.cart .quantity {
    display: flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.product-info form.cart .quantity input.minus,
.product-info form.cart .quantity input.plus,
.product-info form.cart .quantity button.minus,
.product-info form.cart .quantity button.plus {
    width: 32px !important;
    height: 32px !important;
    min-height: unset;
    border-radius: 50% !important;
    background-color: #f1f5f9 !important;
    color: var(--primary-color) !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

.product-info form.cart .quantity input.minus:hover,
.product-info form.cart .quantity input.plus:hover,
.product-info form.cart .quantity button.minus:hover,
.product-info form.cart .quantity button.plus:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.product-info form.cart .quantity input.qty {
    width: 35px !important;
    border: none !important;
    background: transparent !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    font-size: 15px !important;
    padding: 0 !important;
    text-align: center !important;
    height: auto !important;
    border: 0;
    box-shadow: none;
}

.product-info form.cart .single_add_to_cart_button {
    border-radius: 99px !important;
    background-color: var(--primary-color) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 0 20px !important;
    height: 44px !important;
    border: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: none !important;
}

.product-info form.cart .single_add_to_cart_button::before {
    content: "\f07a";
    /* FontAwesome shopping-cart */
    font-family: "Font Awesome 6 Pro" !important;
    font-weight: 900;
    font-size: 16px;
}

.product-info form.cart .single_add_to_cart_button:hover {
    background-color: #003a9b !important;
    box-shadow: 0 4px 12px rgba(0, 71, 186, 0.2);
    transform: translateY(-1px);
}

.product-info {
    .price-wrapper {
        .amount {
            color: #ff2929;
        }
    }
}

.has-border {
    border: 1px solid var(--primary-color);
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 4px;
    color: var(--primary-color);
}

.ss-ct-1 {
    iframe {
        border-radius: 8px;
        overflow: hidden;
    }
}

.ss-ct-2 {
    img {
        border-radius: 8px;
        overflow: hidden;
    }

    ul {
        margin-bottom: 0;
        margin-top: 30px;

        li {
            margin-left: 0;
            list-style-type: none;

            i {
                width: 30px;
                height: 30px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                margin-right: 4px;
                color: var(--primary-color);
            }

            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

.btn-order {
    border-radius: 99px;
    background-color: var(--primary-color);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 0 20px;
    height: 44px;
    border: none;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.btn-order:hover {
    background-color: #003a9b;
    box-shadow: 0 4px 12px rgba(0, 71, 186, 0.2);
    transform: translateY(-1px);
}

.header-nav .sub-menu .menu-item-has-children:after {
    content: '\f105';
    font-family: "FontAwesome";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 11px;
}

.header-nav .sub-menu .menu-item-has-children {
    position: relative;
    width: 100%;
}

.header-nav .sub-menu .menu-item-has-children .sub-menu {
    display: none;
    opacity: 0;
    transition: all 0.25s ease;
    position: absolute;
    left: 100%;
    background: #fff;
    border-radius: 5px;
    top: 0;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.header-nav .sub-menu .menu-item-has-children:hover .sub-menu {
    display: block;
    opacity: 1;
}

.header-nav .sub-menu .menu-item-has-children:hover .sub-menu .sub-menu {
    display: none;
    opacity: 0;
}

.header-nav .sub-menu .menu-item-has-children:hover .sub-menu .menu-item-has-children:hover .sub-menu {
    display: block;
    opacity: 1;
}

.header-nav .sub-menu.nav-dropdown-default {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.mobile-sidebar-levels-2 .nav-slide>li>.sub-menu>li:not(.nav-slide-header)>a,
.mobile-sidebar-levels-2 .nav-slide>li>ul.children>li:not(.nav-slide-header)>a {
    color: initial;
    text-transform: math-auto !important;
}

.off-canvas .nav-vertical li a {
    padding: 15px !important;
    font-weight: 400 !important;
}

.off-canvas-left .mfp-content,
.off-canvas-right .mfp-content {
    max-width: 500px;
    width: 100%;
}

.sub-menu li a {
    min-width: 150px;
    font-weight: 400 !important;
    text-transform: math-auto !important;
    color: initial !important;
    font-size: 14px !important;
}

.collapse-cat {
    position: relative;
    max-height: 200px;
    /* Chiều cao mặc định */
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapse-cat.expanded {
    max-height: 9999px !important;
    /* Đảm bảo vượt qua mọi rào cản */
    height: auto !important;
}

/* Hiệu ứng mờ dần ở cuối - Chỉ hiện khi có class has-overflow */
.collapse-cat.has-overflow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: 5;
}

.toggle-btn-edit {
    display: block;
    margin: 20px auto !important;
    border-radius: 99px !important;
    min-width: 160px;
    text-transform: none;
    font-weight: 600;
}

.toggle-btn-edit i {
    margin-left: 8px;
}

#collapseInner:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: 2;
}

.ss-about .banner {
    border-radius: 16px;
    overflow: hidden;
}

.ss-about .banner .video-button-wrapper a {
    background-color: #fff;
    transform: all 0.3s ease;
}

.ss-about .banner .video-button-wrapper a i {
    color: var(--primary-color);
}

.ss-about .banner .video-button-wrapper a:hover {
    background-color: var(--primary-color);
}

.ss-about .banner .video-button-wrapper a:hover i {
    color: #fff;
}

.ss-about .banner .video-button-wrapper a:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: ping 1.2s ease-in-out infinite both;
    z-index: -1;
}

@keyframes ping {
    0% {
        transform: scale(1.2);
        opacity: 0.6;
    }

    80% {
        transform: scale(1.7);
        opacity: 0;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.slogan {
    font-size: 14px;
}

#ez-toc-container {
    background: #F7F9FC;
    border: 1px solid var(--primary-color);
    border-radius: 16px;
    padding: 20px;
    width: 100%;

    .ez-toc-title-container {
        border-left: 2px solid var(--primary-color);
        padding-left: 15px;
    }

    p.ez-toc-title {
        font-size: 16px;
        text-transform: uppercase;
        color: var(--primary-color);
    }

    .ez-toc-list {
        margin-top: 15px;
    }
}

.ss-footer {
    .social-icons a {
        margin-bottom: 0;
        margin-right: 4px;
    }
}


@media(max-width: 998px) {}

@media(max-width: 588px) {
    .header-button a.button.primary {
        width: 100%;
    }

    .off-canvas-left .mfp-content,
    .off-canvas-right .mfp-content {
        max-width: 90%;
    }

    .related-products-wrapper {
        padding-bottom: 10px;
    }

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

    .ss-cta {
        & .column-liquid-glass {
            .col-inner {
                padding: 30px;
            }
        }
    }

    .ss-pd {
        padding-top: 30px !important;
        padding-bottom: 0 !important;
    }
}