/*	
	Theme Name: Motors - Child Theme
	Theme URI: http://motors.stylemixthemes.com/
	Author: StylemixThemes
	Author URI: http://stylemixthemes.com/
	Description: Motors Child theme
	Version: 4.0
	License: GNU General Public License v2 or later
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Tags: blue, red, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, fluid-layout, responsive-layout, flexible-header, custom-background, custom-colors, custom-header, custom-menu, editor-style, sticky-post, theme-options
	Text Domain: motors-child
    Template: motors

    This theme, like WordPress, is licensed under the GPL.
    Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Add your own styles here */
body .icon-box .icon-text {
    overflow: unset !important;
}
.stm-product-inner {
    background: rgb(239 239 239 / 40%);
    border-radius: 10px;
    border: 1px solid #efefef;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.13);
}

.stm-product-inner .product_info, .stm-product-inner h5 {
    padding: 10px;
}

.stm-product-inner .product_thumbnail {
    overflow: hidden;
    position: relative;
    max-height: 200px;
}

.stm-product-inner .product_thumbnail img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.stm-product-inner a.button {
    width: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.woocommerce ul.products li .stm-product-inner{
    padding-bottom: 0px !important;
}

.stm_all_in_one_price_block .contact-btn {
    display: none;
}



.stm-template-ev_dealer.single .stm-single-car-page .stm_all_in_one_price_block {
      padding: 8px 25px !important;
    border-radius: 5px;
}

.d-flex-social .wpb_wrapper {
    display: flex;
    justify-content: center;
}

div#ev_footer_contact_block {
    margin-bottom: -2px;
}


h2.heading-font {
    font-weight: 900;
}

.modal-header-iconed h3 {
    text-transform: uppercase;
    color: #ffffff !important;
}

body.stm-layout-header-ev_dealer #header .header-main .stm-header-right .main-menu .header-menu > li > a{
	padding: 0 13px;
}

.clip-review-car iframe{
	max-height: 85%;
}

.staff-info {
    align-items: center;
    padding: 8px;
    display: flex;
    flex-direction: column;
    text-align: center
}

.staff-info .heading {
    display: flex;
    width: 100%;
    height: 50px;
    flex: 0 0 auto;
    background-color: #e23732;
    background-size: 60px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #fff;
    padding: 8px;
    align-items: center;
    font-weight: 600;
    justify-content: space-between
}

.staff-info .heading>span {
    text-transform: uppercase
}

.staff-info h6.full-name {
    margin-bottom: 4px
}

@media(max-width: 767.98px) {
    .staff-info {
        flex:0 0 auto !important
    }
}

.staff-info .contact-list {
    display: flex;
    align-items: center;
    margin-bottom: 8px
}

.staff-info .contact-list a {
    transition: box-shadow 300ms ease-in-out
}

.staff-info .contact-list a:hover {
    text-decoration: none;
    box-shadow: 0 0 0 .2rem currentColor
}

.staff-info .contact-list .button-call {
    display: inline-flex;
    height: 32px;
    padding: 4px 16px;
    background-color: #ff7f26;
    color: rgba(255,127,38,.25);
    font-weight: normal;
    font-size: 1.2rem;
    align-items: center;
    border-radius: 24px
}

.staff-info .contact-list .button-call>i {
    margin-right: 8px;
    color: #fff;
    font-size: 1.1rem
}

.staff-info .contact-list .button-call>span {
    color: #fff;
    font-weight: 600
}

.staff-info .contact-list .icon-call {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
    font-weight: lighter;
    border-radius: 24px
}

.staff-info .contact-list .icon-call>.icon {
    width: 20px;
    height: 20px;
    display: block;
    background: transparent no-repeat center center;
    background-size: cover
}



.staff-info .contact-list .icon-call>i {
    color: #fff
}

.staff-info .contact-list .icon-call:nth-child(2) {
    background-color: #00a553;
    color: rgba(0,165,83,.25)
}

.staff-info .contact-list .icon-call:nth-child(3) {
    background-color: #0084ff;
    color: rgba(0,132,255,.25)
}

.staff-info .contact-list .icon-call:nth-child(4) {
    background-color: #0068ff;
    color: rgba(0,104,255,.25)
}

.staff-info .contact-list .icon-call:nth-child(4)>.icon {
    background-image: url("/wp-content/themes/motors-child/images/icons/zalo.png");
    border-radius: 4px
}

.staff-info .contact-list .icon-call:nth-child(4)>.icon.icon-zalo:before {
    display: none
}

.staff-info .avatar-wrap {
    display: inline-flex;
    align-items: center
}

.staff-info .avatar-wrap h6 {
    margin: 0
}

.staff-info .avatar-wrap .avatar {
    width: 32px;
    height: 32px;
    background-color: #fff;
    position: relative;
    display: inline-block;
    border-radius: 50%;
    margin-right: 8px
}

.staff-info .avatar-wrap .avatar>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%
}

.staff-info .avatar-wrap .avatar>i {
    position: absolute;
    right: 8px;
    bottom: 0;
    z-index: 20;
    color: #1877f2;
    border: 2px #fff solid;
    background-color: #fff;
    border-radius: 50%
}

.staff-info .avatar-wrap>div:last-child {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start
}

.staff-info .avatar-wrap>div:last-child span {
    font-size: .8rem;
    color: rgba(51,51,51,.5)
}

.staff-info .addr {
    background-color: rgba(221,221,221,.5);
    padding: 4px 16px 4px 4px;
    font-size: .9rem;
    font-weight: 600;
    border-radius: 16px;
    margin-bottom: 0;
    margin-top: .5rem;
    color: #333;
    text-align: center
}

.staff-info .addr>span {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: rgba(51,51,51,.6)
}

.staff-info .addr>span>i {
    margin: 0 4px;
    color: #00a553;
    font-size: .8rem
}

.staff-info .addr>a:hover {
    text-decoration: none;
    color: #0084ff
}

/***video ***/

 .gallery-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Cột tự động điều chỉnh */
            gap: 15px; /* Khoảng cách giữa các mục */
            max-width: 1200px; /* Chiều rộng tối đa của thư viện */
            width: 100%;
        }

        .video-item {
            position: relative;
            background-color: #fff;
            /* border-radius: 12px; */ /* Góc bo tròn */
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Đổ bóng nhẹ */
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            /* min-height: 180px; */
            transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
            /* width: 50%; */
            border: 1px solid #fff;
        }

        .video-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }

        .video-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* display: block; */
            /* position: absolute; */
            /* top: 0; */
            /* left: 0; */
            z-index: 1;
            /* border-radius: 12px; */ /* Góc bo tròn cho ảnh */
        }

        /* Mục đặc trưng Ford Mustang */
        .featured-item {
            grid-column: span 2; /* Chiếm 2 cột trên màn hình lớn */
            min-height: 360px;
            background-color: #007bff; /* Nền xanh cho phần Mustang */
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center; /* Căn giữa nội dung */
            padding: 15px;
        }

        .featured-item img {
            position: relative;
            height: auto;
            max-height: 80%;
            object-fit: contain;
            z-index: 2;
            margin: auto;
            border-radius: 8px; /* Góc bo tròn cho ảnh Mustang */
        }

        /* Nút Play */
        .play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px; /* Kích thước lớn hơn */
            height: 60px;
            background-color: rgba(255, 255, 255, 0.9); /* Trắng trong suốt hơn */
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 3;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.3s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .play-button::before {
            content: '';
            width: 0;
            height: 0;
            border-top: 15px solid transparent; /* Kích thước tam giác lớn hơn */
            border-bottom: 15px solid transparent;
            border-left: 25px solid #000;
            margin-left: 4px;
        }

        .play-button:hover {
            background-color: rgba(255, 255, 255, 1);
            transform: translate(-50%, -50%) scale(1.1); /* Hiệu ứng phóng to khi hover */
        }

        /* Văn bản phủ lên */
        .video-overlay-text {
            position: absolute;
            color: white;
            padding: 8px 12px;
            font-weight: bold;
            z-index: 4;
            text-shadow: 1px 1px 4px rgba(0,0,0,0.8); /* Đổ bóng mạnh hơn cho chữ */
            border-radius: 6px; /* Góc bo tròn cho nền văn bản */
            background-color: rgba(0, 0, 0, 0.6); /* Nền tối hơn */
        }

        .video-overlay-text p {
            margin: 0;
            line-height: 1.3;
            font-size: 0.9em;
        }

        /* Vị trí và kiểu dáng cụ thể của văn bản */
        .bottom-overlay {
            bottom: 15px;
            left: 15px;
            right: 15px;
            text-align: center;
            font-size: 1em;
            padding: 10px;
        }

        .large-text-overlay .bottom-overlay {
            font-size: 1.2em;
            background-color: rgba(0, 0, 0, 0.8);
        }

        .top-overlay {
            top: 15px;
            left: 15px;
            font-size: 1em;
        }

        /* Lớp phủ cho mục Mustang */
        .featured-item .video-overlay-text {
            text-shadow: none; /* Không đổ bóng trên nền màu */
            background: none; /* Không có nền cho văn bản */
        }

        .top-left-overlay {
            top: 20px;
            left: 20px;
            font-size: 1.4em;
            font-weight: bold;
        }

        .top-right-overlay {
            top: 20px;
            right: 20px;
            font-size: 1.1em;
            text-align: right;
        }

        .bottom-center-overlay {
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1.1em;
            white-space: nowrap;
        }

        /* Mục logo Thaicong Auto */
        .large-logo-item .bottom-dark-bar-overlay {
            bottom: 0;
            left: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.9); /* Thanh tối hơn */
            padding: 12px 18px;
            font-size: 0.9em;
            text-align: center;
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
        }

        /* Lớp phủ cho mục BMW (nhỏ hơn Mustang) */
        .top-left-overlay-small {
            top: 15px;
            left: 15px;
            font-size: 1em;
        }

        .top-right-overlay-small {
            top: 15px;
            right: 15px;
            font-size: 1em;
            text-align: right;
        }
		
		.col-two {
    display: flex;
    flex-wrap: wrap;
}

.col-two .video-item {
    width: 50%;
}

.channel-container.container .col-video {
    padding-left: 0;
    padding-right: 0;
}
.channel-container {
 margin-bottom:35px;
}

        /* Điều chỉnh responsive */
        @media (max-width: 768px) {
            .gallery-container {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 10px;
            }

            .featured-item {
                grid-column: span 1; /* Trên màn hình nhỏ hơn, mục nổi bật chỉ chiếm 1 cột */
                min-height: 250px;
                padding: 10px;
            }

            .top-left-overlay {
                font-size: 1.2em;
            }

            .top-right-overlay {
                font-size: 0.9em;
            }

            .bottom-center-overlay {
                font-size: 0.9em;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            .gallery-container {
                grid-template-columns: 1fr; /* Bố cục một cột trên màn hình rất nhỏ */
            }
            .video-item {
                min-height: 200px;
            }
            .featured-item {
                 min-height: 280px;
            }
            .play-button {
                width: 50px;
                height: 50px;
            }
            .play-button::before {
                border-top: 10px solid transparent;
                border-bottom: 10px solid transparent;
                border-left: 18px solid #000;
            }
        }



/***** modal video*/
   /* Button to open the modal */
        

        /* Modal Overlay */
        .modal-overlay {
            display: none; /* Hidden by default */
            position: fixed; /* Stay in place */
            z-index: 10000; /* Sit on top */
            left: 0;
            top: 0;
            width: 100%; /* Full width */
            height: 100%; /* Full height */
            overflow: auto; /* Enable scroll if needed */
            background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
            backdrop-filter: blur(5px); /* Optional: blur background */
            justify-content: center; /* Center content horizontally */
            align-items: center; /* Center content vertically */
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal-overlay.active {
            display: flex; /* Show when active */
            opacity: 1;
        }

        /* Modal Content Box */
        .modal-content {
            background-color: #fefefe;
            margin: auto; /* Centered */
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
            position: relative;
            max-width: 90%; /* Max width for responsiveness */
            width: 800px; /* Desired max width */
            transform: scale(0.95);
            transition: transform 0.3s ease;
			background: transparent !important;
        }

        .modal-overlay.active .modal-content {
            transform: scale(1);
        }

        /* Close Button */
        .close-button {
            color: #aaa;
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 32px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close-button:hover,
        .close-button:focus {
            color: #333;
            text-decoration: none;
            cursor: pointer;
        }

        /* Responsive YouTube Iframe Container */
        .video-responsive {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 aspect ratio (height / width = 9 / 16 = 0.5625) */
            height: 0;
            overflow: hidden;
            border-radius: 8px; /* Rounded corners for the video */
            margin-top: 15px; /* Space below close button */
        }

        .video-responsive iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        /* Mobile Adjustments */
        @media (max-width: 768px) {
            .modal-content {
                padding: 15px;
                width: 95%;
            }
            .close-button {
                font-size: 28px;
                top: 5px;
                right: 10px;
            }
            .open-modal-button {
                padding: 10px 20px;
                font-size: 1em;
            }
        }



body #main .stm-shop-sidebar-area .widget .product_list_widget li .product-title {
    color: #102127;
    font-size: 11px;
    font-weight: bold;
    height: 35px !important;
    overflow: hidden;
    display: block;
}
body #main .stm-shop-sidebar-area .widget ul.product_list_widget li img {
    float: left;
    margin-right: 20px;
    width: 60px;
    height: auto;
    box-shadow: none;
    min-height: 60px;
    max-height: 0px;
}

.related.products .stm-product-inner {
    background: transparent !important;
    box-shadow: unset;
    border: 0;
}

.stm-template-ev_dealer.single .stm-single-car-page .stm-attribute_boxes .attribute-box p.value-text {
    font-weight: bold;
    font-size: 15px;
    min-height: 22px;
    display: block;
}

.stm-template-ev_dealer .ev_footer_contact_block .icon-box .title {
   color:#fff !important
}




	
	.whatsapp-btn {
    background-color: #fff;
    color: #121e24;
    border-color: #e0e3e7;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 22px;
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    padding: 13px 17px;
    margin-bottom: 15px;
}

 .whats-button-wrap .whatsapp .whatsapp-btn {
    box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, .09);
}

	.whats-button-wrap .whatsapp .whatsapp-btn {
		display: flex;
		align-items: center;
		text-align: left;
	}

	.whats-button-wrap a,
	.whats-button-wrap a:hover,
	.whats-button-wrap a:focus,
	.whats-button-wrap a:active {
		text-decoration: none;
	}
	
	.whatsapp-btn i {
    font-size: 26px;
    margin: 0 20px 0 0;
}

.stm-dealer-info-unit.phone {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    padding-left: 53px;
    margin-bottom: 15px;
}

 .stm-dealer-info-unit.phone {
    background-color: #fff;
    color: #121e24;
    border-color: #e0e3e7;
    box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, .09);
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    padding: 13px 17px;
}

 .stm-dealer-info-unit.phone i {
    font-size: 26px;
    margin: 0 17px 0 0;
     color: #4e90cc;
}

 .stm-dealer-info-unit.phone .inner .phone {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 22px;
        margin-right: 20px;
}

 .stm-dealer-info-unit.phone .phone a {
/*     color: #4e90cc; */
	 color:#000
}

.icon-zalo {
        width: 25px !important;
    height: 25px !important;
    display: block;
    background: transparent no-repeat center center;
    background-size: cover;
    background-image: url("/wp-content/themes/motors-child/images/icons/zalo.png");
    border-radius: 4px;
	margin-left: 0 !important;
}

.dealer-contact-unit.mail{
    margin-bottom: 15px;
}

.dealer-contact-unit.mail .email-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.dealer-contact-unit.mail .email-btn {
    background-color: #fff;
    color: #121e24;
    border-color: #e0e3e7;
    box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, .09);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 22px;
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    padding: 13px 17px;
}

.email-btn i {
    font-size: 26px;
    margin: 0 17px 0 0;
}

.email-btn i:before {
    color: #6c98e1;
}
.stm-listing-car-dealer-info-simple {
    background-color: rgb(255, 255, 255);
    padding: 29px 0px;
    border-bottom: 1px solid rgb(229, 232, 236);
}

.stm-listing-car-dealer-info-simple {
       padding: 22px 23px 8px;
    border-width: 3px;
    border-style: solid;
    border-color: rgb(228, 230, 234);
    border-image: initial;
    margin-bottom: 15px;
}

.stm-listing-car-dealer-info-simple.stm-common-user .stm-user-main-info-c .image {
    float: left;
    margin-right: 14px;
    text-align: center;
    line-height: 40px;
    width: 40px;
}

.stm-listing-car-dealer-info-simple.stm-common-user .stm-user-main-info-c .image a {
    text-decoration: none !important;
}

.stm-listing-car-dealer-info-simple.stm-common-user .stm-user-main-info-c .image img {
    border-radius: 50%;
    overflow: hidden;
}
.stm-template-listing_four_elementor .stm-no-text-decoration {
    text-decoration: none !important;
}

.stm-listing-car-dealer-info-simple.stm-common-user .stm-user-main-info-c a .title {
    font-size: 16px;
    margin: 1px 0px 0px;
	    letter-spacing: -0.4px;
	    color: rgb(35, 38, 40) !important;
}

.stm-listing-car-dealer-info-simple .stm-user-main-info-c .stm-label {
    color: rgb(136, 136, 136);
	font-size: 13px;
}
#trade-in .modal-dialog .modal-body {
    padding: 30px;
    background: #fff;
}
#request-trade-offer-form .modal-body, #get-car-price-form .modal-body, #request-test-drive-form .modal-body {
    padding: 44px 37px 15px;
    background: #fff;
}

/* .slider_listing_attrs {
    background-color: rgb(236 34 42 / 50%) !important;
} */
@media (min-width: 1400px) {
	  body .stm_ev_swiper_slider .swiper .swiper-slide .slider_listing_attrs_wrapper .slider_listing_attrs {
        min-width: 1180px !important;
        padding: 22px 42px !important;
    }

}
  
@media (min-width: 992px) {
    .stm-template-ev_dealer .ev_footer_contact_block .stm-contact-us-form-wrapper {
                background-color: rgb(236 34 42 / 70%) !important;
    }
	.stm-template-ev_dealer.single .stm-single-car-page .stm_gallery_with_buttons .ev_gallery img{
/* 	        max-height: 445px; */
		        max-height: 554px;
}
body .stm_ev_swiper_slider .swiper .swiper-slide .slider_listing_attrs_wrapper .slider_listing_attrs h3 {
			font-size: 20px !important;
		}
}

@media(max-width:992px){
	.stm-template-ev_dealer.single .stm-single-car-page .stm_all_in_one_price_block .prices_wrap .h3{
		font-size:18px !important;
	}
	
	.stm-template-ev_dealer .ev_footer_contact_block .icon-box .content p span{
    	font-size:13px !important
	}

}