/*
Theme Name: Trần Hiệp Web
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Trần Hiệp Web
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: tranhiepweb
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

.max_line_1 {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
}

.max_line_2,
.max_line_2 a,
.max_line_2 p {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.max_line_3,
.max_line_3 a,
.max_line_3 p {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}


.container-text-btn .content-rhiet-ke {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6; /* số dòng ban đầu */
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}


.container-text-btn.active .content-rhiet-ke {
    -webkit-line-clamp: unset;
    max-height: none;
}




.tinh-nang-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.tinh-nang-item {
    background: linear-gradient(to right bottom, rgb(239, 246, 255), rgb(255, 255, 255));
    border-radius: 16px;
    padding: 24px;
    transition: 
    box-shadow 0.35s ease,
}

.tinh-nang-item:hover{
   box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.1) 0px 8px 10px -6px;
}
.tinh-nang-icon img {
    width: 100%;
    object-fit: contain;
    margin-bottom: 16px;
}

.tinh-nang-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.tinh-nang-desc {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

.tinh-nang-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tablet */
@media (max-width: 1024px) {
    .tinh-nang-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .tinh-nang-wrapper {
        grid-template-columns: 1fr;
    }
}



.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap::after {
    content: '';
    position: absolute;
    background-image: url("assets/images/arrow_bottom.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
    text-align: center;
    line-height: 46px;
    font-size: 24px;
    color: #ED1C24;
    left: 0;
    top: 0;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    z-index: 1;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
    transform: rotate(180deg);
}

.progress-wrap:hover::before {
    opacity: 1;
}

.progress-wrap svg path {
    fill: none;
}

.progress-wrap svg.progress-circle path {
    stroke: #ED1C24;
    /* --- Lijn progres kleur --- */
    stroke-width: 4;
    box-sizing: border-box;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}
.rank-math-breadcrumb a, .rank-math-breadcrumb last{
    color: #000000;
    font-family: "Inter", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3em;
}
.rank-math-breadcrumb .separator {
    margin: 0 5px;
}




.compare-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    
    overflow: hidden;
}

.compare-product {
    position: relative;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    
    border-radius: 20px;
}

.compare-product a {
    text-decoration: none;
    color: rgb(37, 99, 235);

    font-size: 24px;
    font-weight: 700;
}

.compare-product .woocommerce-Price-amount bdi {
    color: #2563EB;
    font-family: "Inter", Sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3em;
}

.compare-product img {
    width: 100%;
    height: auto;
    aspect-ratio: 384 / 256;
    object-fit: cover;
}


.compare-product h3{
    color: rgb(30, 58, 138);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3em;
}
.compare-product.empty {
    border: 2px dashed #ccc;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fb;

    border-radius: 20px;
}

.compare-product .add-product{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    border: 1px solid #063FBC;
    padding: 10px;
    border-radius: 24px;
}

.compare-product p{
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.compare-product.empty span {
    font-size: 18px;
    display: block;
    color: #fff;
    background: #2562E8 !important;
    border-radius: 30px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
}
.remove-compare {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ee211e;
    padding: 16px;
    color: #fff;
    border: none;
}
.accordion-item {
    border: 1px solid #000000;
    border-bottom: none;
}

.compare-accordion {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.accordion-title{
    cursor: pointer;
    
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 10px;
    border-bottom: 1px solid #000;
}

.accordion-title h3{
    font-family: "Inter", Sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3em;
    color: #000;
    margin: 0;
}

.accordion-icon {
    transition: transform 0.35s ease;
    display: flex;
}


.accordion-title.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.45s ease;
}

.spec-row {
    display: grid;
    grid-template-columns: 300px repeat(3, 1fr);
    border-bottom: 1px solid #000000;
}

.spec-row > div:not(:first-child) {
    border-left: 1px solid #000000;
}
.spec-label {
    font-weight: 600;
    padding: 10px;
}

.spec-value {
    text-align: center;
    
    display: flex;
    align-items: center;
    justify-content: center;
}


button.compare-btn{
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3em;
    color: #2563EB;


    background-color: #DBEAFE !important; 
    margin: 0px 0px 16px 0px;
    padding: 8px 16px 8px 16px;
    border-radius: 30px 30px 30px 30px;
    text-align: center;
    border: none !important;
}


button.compare-btn:hover {
    color: #fff;
    background-color: #2563EB !important; 
}


.filter-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 80px;
}

.filter-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-filter{
    width: 100%;
    padding: 10px 20px;
    background: #F47920;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-filter:hover{
    background: #d66a1a;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 40px;
    margin-top: 30px;
}

.product-item {
    border-radius: 16px !important;
    overflow: hidden;


    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.product-item:hover {
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
    transform: translateY(-0.5rem);
}

.product-item:hover img{
    transform: scale(1.1);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image img{
    width: 100%;
    height: auto;
    aspect-ratio: 384 / 256;
    object-fit: cover;
    border-radius: 16px 16px 0 0 !important;

    transition: transform 0.45s ease;
    transform: scale(1);
}


.product-info {
    padding: 24px;
}

.product-title {
    font-family: "Inter", Sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.3em;
    color: #1E3A8A;

    margin-bottom: 8px;
}

.product-excerpt {
    margin: 0px 0px 16px 0px;
    padding: 0px 0px 0px 0px;
    font-family: "Inter", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3em;
    color: #4B5563;
}

.btn-view-detail {
    display: block;
    background: linear-gradient(90deg, #2563EB 0%, #3B82F6 100%);
    
    transition-duration: 0.3s;
    border-radius: 50px 50px 50px 50px;
    padding: 12px 0px 12px 0px;
    font-family: "Inter", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3em;
    color: #fff;
    text-align: center;
}

.btn-view-detail:hover{
    background: linear-gradient(90deg, #2563EB 0%, #103D85 100%); 
}
.product-info .product-price{
    display: flex;
    gap: 6px;
    align-items: center;
}
.product-info .product-price bdi, .product-info .product-price .price-from{
    color: #2563EB;
    font-family: "Inter", Sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3em;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 60px;
}

.page-link {
    height: 40px;
    background: #fff;
    color: #000;
    border-color: #ddd;
    width: 40px;
    justify-content: center;
    display: flex;
    align-items: center;
    border-radius: 20px;

    font-family: "Inter", Sans-serif;
    font-size: 16px;
}

.page-link:hover,
.page-link.active {
    background: #205ad3;
    color: white;
    border-color: #205ad3;
}

.no-products {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #81A7FB !important;
    font-weight: 600;
    font-family: 'Inter' !important;
    line-height: 1.3em;
    font-size: 16px !important;
}
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: none !important;
    height: auto !important;
    border-radius: 12px !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px !important;
}

/* Ẩn mũi tên mặc định */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;
}

/* Custom arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 50% !important;
    right: 10px !important;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url('assets/images/arrow-filter.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 40px !important;
    color: #ff0505 !important   ;
    font-size: 20px !important;
}
.filter-item .btn-filter, .search-filter-item .btn-search-submit {
    width: 100%;
    height: auto;
    border: none !important;
    background-color: transparent;
    background-image: linear-gradient(90deg, #2563EB 0%, #184288 100%);
    border-radius: 12px;
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 10px;
    
    height: 100%;
}
.search-filter-item .btn-search-submit {
    padding: 15px !important;
}

.filter-item .btn-filter  .btn-text ,.btn-search-submit .btn-text {
    font-family: "Inter", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3em;
    fill: #FFFFFF;
    color: #FFFFFF;    
}

@media screen and (max-width: 1550px){
    .accordion-title h3 {
    font-size: 22px;
}
}


@media (max-width: 1024px) {
    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .accordion-title h3 {
      font-size: 20px;
    }
    
    .compare-product h3 {
    font-size: 20px;
    }
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .accordion-title h3 {
      font-size: 18px;
    }
    
    .compare-product .woocommerce-Price-amount bdi {
    font-size: 20px;
    }
    
    .compare-products {
    grid-template-columns: repeat(1, 1fr);
    }
    
     .accordion-content {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; 
    }

    .spec-row {
        min-width: 600px; 
    }
}

.loan-calc-row {
    display: flex;
    gap: 16px;
}

.loan-calc-input {
    width: 100%;
}

.loan-calc-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-form-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .search-form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .search-filter-item {
            position: relative;
        }
        .search-filter-item.full-width {
            grid-column: 1 / -1;
        }

        @media (max-width: 768px) {
            .search-form-row {
                grid-template-columns: 1fr;
            }
        }
        
        .loan-calculator-wrapper {
            background: #fff;
            max-width: 100%;
        }

        .loan-calc-label {
            font-size: 20px;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 16px;
            display: block;
        }

        .loan-calc-input {
            width: 100%;
            padding: 15px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 25px;
            background: #f8f8f8;
            color: #333;
            box-sizing: border-box;
        }

        .loan-calc-input:focus {
            outline: none;
            border-color: #4299e1;
        }

        .down-payment-section {
            margin-bottom: 25px;
        }

        .down-payment-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .down-payment-percent {
                font-family: "Inter", Sans-serif;
                font-size: 18px;
                font-weight: 700;
                line-height: 1.3em;
                color: #2563EB;
        }

        .slider-container {
            position: relative;
            margin-bottom: 15px;
        }

        .loan-slider {
            width: 100%;
            height: 8px;
            border-radius: 5px;
            background: #e0e0e0;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
        }

        .loan-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #4299e1;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(66, 153, 225, 0.4);
        }

        .loan-slider::-moz-range-thumb {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #4299e1;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 10px rgba(66, 153, 225, 0.4);
        }

        .down-payment-amount {
            font-size: 18px;
            color: #666;
            font-weight: 500;
            font-family:'Inter';
        }

        .loan-calc-select {
            width: 100%;
            padding: 15px 20px;
            font-size: 18px;
            background: white;
            cursor: pointer;
            margin-bottom: 25px;
            box-sizing: border-box;
            
            border: 1px solid #666;
            border-radius: 3px;
        }

        .loan-calc-select:focus {
            outline: none;
            border-color: #4299e1;
        }

        .loan-result-box {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            padding: 25px;
            border-radius: 12px;
            text-align: center;
            margin-top: 20px;
        }

        .loan-result-title {
            font-size: 18px;
            color: #000000;
            margin-bottom: 10px;
            font-family: 'Inter';
        }

        .loan-result-amount {
            color: #2563EB;
            font-family: "Inter", Sans-serif;
            font-size: 50px;
            font-weight: 700;
            line-height: 1.3em;
            margin-bottom: 5px;
        }

        .loan-result-note {
                font-size: 18px;
                color: #000000;
                font-family: 'Inter';
        }
@media screen and (max-width: 967px){
    .loan-result-amount {
        font-size: 40px;
    }
    @media (max-width: 768px) {
        .loan-calculator-wrapper {
        padding: 0px;
    }
    .loan-result-amount {
        font-size: 20px;
    }
    .loan-result-title, .loan-result-note  {
    font-size: 14px;
            }
        }
        .loan-calc-label {
    font-size: 16px;
}
}
@media (max-width: 767px) {
   .loan-calc-row {
    display: flex;
    gap: 0px;
    flex-direction: column;
}
}

.car-color-switcher{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.car-color {
    padding: 6px 12px;
    border: 1px solid #063FBC !important;
    background: #fff !important;
    cursor: pointer;
    
        font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3em;
    color: #063FBC !important;
    border-radius: 5px !important;
}

.car-color.active, .car-color:hover, .car-color:focus {
    color: #fff !important;
    background:#063FBC !important;
}

.product-switch {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.product-switch-btn {
    padding: 8px 14px;
    border: 1px solid #063FBC ;
    border-radius: 5px;
    color: #063FBC;
    text-decoration: none;
    font-weight: 500;
    transition: all .2s ease;
    font-family: "Inter", Sans-serif;
    font-size: 14px;
}

.product-switch-btn:hover,
.product-switch-btn.active {
    background: #063FBC ;
    color: #fff;
}

/* Style cho tất cả select trong form */
.search-form-wrapper select {
    width: 100%;
    background-color: #fff;
    cursor: pointer;
    padding: 14px 40px 14px 14px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px !important;
    border: none;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600;
    color: #81A7FB !important;
    line-height: 1.3em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('assets/images/arrow-filter.svg');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
    transition: all 0.3s ease;
}


.search-form-wrapper select:not([value=""]):valid,
.search-form-wrapper select option:not(:first-child):checked {
    color: #333 !important;
    font-weight: 400;
}


.search-form-wrapper select option {
    color: #333;
    font-weight: 400;
    padding: 10px;
}


.search-form-wrapper select option:first-child {
    color: #81A7FB;
    font-weight: 600;
}


.search-form-wrapper select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}


.search-form-wrapper select:not(:disabled):hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}


.search-form-wrapper select:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(129, 167, 251, 0.3);
}
/* Mobile: chia 3 cột */
@media (max-width: 768px) {
    .car-color-switcher {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px; /* chỉnh khoảng cách nếu cần */
    }

    .car-color-switcher .car-color {
        width: 100%;
        text-align: center;
        padding: 8px 6px;
        font-size: 13px; /* mobile cho gọn */
    }
}
