/*
Theme Name: Starter Theme - WPSHARE247
Theme URI: wpshare247.com
Author: wpshare247
Author URI: wpshare247.com
Description: wpshare247 là sản phẩm của công ty chuyên thiết kế website WordPress tbay.vn, website366.com
Version: 1.0
*/

*,
::after,
::before {
    box-sizing: border-box;
}

a,
a:hover,
a:active {
    text-decoration: none;
}

img,
video {
    height: auto;
    /* Make sure images are scaled correctly. */
    max-width: 100%;
    /* Adhere to container width. */
}

img.alignleft,
img.alignright {
    float: none;
    margin: 0;
}

body {
    overflow-x: hidden;
    padding-top: 94px;
}

.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery widget */

.wp-caption,
.gallery-caption {
    color: #666;
    font-size: 13px;
    font-size: 0.8125rem;
    font-style: italic;
    margin-bottom: 1.5em;
    max-width: 100%;
}

.gallery-columns-5 .gallery-caption,
.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
    display: none;
}

.gallery-item {
    display: inline-block;
    text-align: left;
    vertical-align: top;
    margin: 0 0 1.5em;
    padding: 0 1em 0 0;
    width: 50%;
}

.gallery-columns-1 .gallery-item {
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus,
.widget-area .gallery-item a,
.widget-area .gallery-item a:hover,
.widget-area .gallery-item a:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    background: none;
    display: inline-block;
    max-width: 100%;
}

.gallery-item a img {
    display: block;
    -webkit-transition: -webkit-filter 0.2s ease-in;
    transition: -webkit-filter 0.2s ease-in;
    transition: filter 0.2s ease-in;
    transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
    -webkit-filter: opacity(60%);
    filter: opacity(60%);
}

.gallery-caption {
    display: block;
    text-align: left;
    padding: 0 10px 0 0;
    margin-bottom: 0;
}

@media screen and (min-width: 30em) {
    /* Gallery Columns */

    .gallery-item {
        max-width: 25%;
    }

    .gallery-columns-1 .gallery-item {
        max-width: 100%;
    }

    .gallery-columns-2 .gallery-item {
        max-width: 50%;
    }

    .gallery-columns-3 .gallery-item {
        max-width: 33.33%;
    }

    .gallery-columns-4 .gallery-item {
        max-width: 25%;
    }
}

@media screen and (min-width: 48em) {
    /* Gallery Columns */

    .gallery-columns-5 .gallery-item {
        max-width: 20%;
    }

    .gallery-columns-6 .gallery-item {
        max-width: 16.66%;
    }

    .gallery-columns-7 .gallery-item {
        max-width: 14.28%;
    }

    .gallery-columns-8 .gallery-item {
        max-width: 12.5%;
    }

    .gallery-columns-9 .gallery-item {
        max-width: 11.11%;
    }
}


#wpshare247-site-header {
    margin-bottom: 20px;
}

.container {
    width: 1040px;
    margin: 0 auto;
    padding: 0 !important;
}

.wpshare247-row {
    display: flex;
}

.wpshare247-row>.col {
    flex: 0 0 auto;
    width: 25%;
}

.menu ul li,
.menu li {
    display: inline-block;
}

.blog-loop {
    border: 1px solid #ccc;
    padding: 0 20px 20px;
    margin-bottom: 20px;
}

/* My custom */
:root {
    --w247-primary-color: #ED1F24;
}

/* w247-button-and-icon + w247-button + w247-icon */
.w247-button-and-icon .w247-button:hover+.w247-icon,
.w247-button-and-icon .w247-button+.w247-icon:hover {
    rotate: 45deg;
    background-color: black;
    color: white;
}

.w247-button-and-icon .w247-icon {
    cursor: pointer;
}

.w247-button-and-icon .w247-icon,
.w247-button-and-icon .w247-button {
    transition: all 0.4s !important;
}

/* w247-image */
.w247-image::before {
    content: "";
    position: absolute;
    top: -8px;
    bottom: 0;
    left: -8px;
    right: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #ECECEC;
    border-radius: 160px;
    z-index: 1;
}

/* w247-icon-hover */
/* .w247-icon-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--w247-primary-color);
    opacity: 10%;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    z-index: 0;
    transition: all 0.4s ease-in-out;
} */

/* .w247-icon-hover:hover::before {
    opacity: 90%;
} */

/* w247-my-card + w247-icon + w247-icon-hover-1 */
.w247-my-card::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    border-radius: 50% 50% 0 0;
    background-color: var(--w247-primary-color);
    left: 0;
    bottom: 0;
    transition: all 0.4s ease-in-out;
    z-index: 1;
}

.w247-my-card:hover::after {
    height: 100%;
    border-radius: 35px;
}

.w247-my-card h3,
.w247-my-card p {
    transition: all 0.4s ease-in-out;
}

.w247-my-card:hover h3,
.w247-my-card:hover p {
    color: white !important;
}

.w247-my-card .w247-icon {
    transition: all 0.4s ease-in-out !important;
    cursor: pointer;
}

.w247-my-card:hover .w247-icon {
    rotate: 45deg;
    background-color: black !important;
}

.w247-my-card .w247-icon-hover-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--w247-primary-color);
    opacity: 10%;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    transition: all 0.4s ease-in-out;
}

.w247-my-card:hover .w247-icon-hover-1::before {
    background-color: white;
    opacity: 100%;
}

/* w247-banner + w247-icon */
.w247-banner .w247-icon {
    transition: all 0.4s ease-in-out !important;
    cursor: pointer;
}

.w247-banner:hover .w247-icon {
    rotate: 45deg;
    background-color: black !important;
}

.w247-banner {
    background-position: center !important;
    background-size: 100% !important;
    transition: all 0.4s ease-in-out !important;
}

.w247-banner:hover {
    background-size: 120% !important;
}

/* desc-detail */
.desc-detail table,
.desc-detail div{
    width: 100% !important;
}

/* Custom Post Type */
.ws247-eaddon-post-loop-item {
    border: 1px solid var(--w247-primary-color) !important;
    border-radius: 15px;
    padding: 20px;
}

.ws247-eaddon-post-loop-item img {
    width: 100%;
}

.ws247-eaddon-post-loop-item .title {
    border-bottom: 1px solid #ECECEC;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

div.wpshare247-related-posts__list{
    margin: 0 !important;
    gap: 25px 20px !important;
}

.ws247-eaddon-post-loop-item .readmore i,
.w247-card .readmore i,
.wpshare247-related-posts__list .item .info__readmore i {
    background-color: var(--w247-primary-color);
    padding: 10px 11px;
    z-index: 2;
    border-radius: 100px 100px 100px 100px;
    color: white;
    font-size: 18px;
    display:flex;
    align-items: center;
    justify-content: center;
    rotate: -45deg;
    transition: all 0.4s ease-in-out;
}

.w247-card a.readmore {
    color: var(--w247-primary-color);
    font-weight: bold;
}

.ws247-eaddon-post-loop-item:hover .readmore i,
.w247-card:hover .readmore i {
    rotate: 0deg;
    background-color: black;
}

.ws247-eaddon-post-loop-item .readmore-out {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ws247-eaddon-post-loop-item .price {
    font-size: 20px;
    font-weight: bold;
}

/* content-car.php */
.wpshare247-popular-car__content .owl-carousel:not(.active) {
    display: none;
}

.wpshare247-popular-car .wpshare247-popular-car__tab.active h3 {
    font-weight: bold !important;
}

@media (max-width: 1024px){
    .wpshare247-popular-car{
        flex-direction: column;
        gap: 10px;
    }

    .wpshare247-popular-car .wpshare247-popular-car__tabs{
        text-align: center;
    }

    .wpshare247-popular-car .wpshare247-popular-car__content{
        width: 100% !important;
    }

    .wpshare247-before-and-after-car-choose-color{
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .ws247-eaddon-post-loop-item .readmore-out i,
    .wpshare247-related-posts__item .info__readmore i{
        font-size: 10px !important;
        padding: 7px 8px !important;
    }
    .wpshare247-related-posts__list .wpshare247-related-posts__item.item{
        padding: 10px;
    }
}

.wpshare247-carousel-nav {
    display: none;
}

.wpshare247-carousel-nav.active {
    display: block;
}

.wpshare247-carousel-nav button {
    padding: 0;
    background: unset;
    outline: none;
    border: none;
}

.wpshare247-before-and-after-car .wpshare247-before-and-after-car__tab {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.wpshare247-before-and-after-car .wpshare247-before-and-after-car__tab>div {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #030303;
    display: flex;
}

.wpshare247-before-and-after-car .wpshare247-before-and-after-car__tab>div button {
    max-width: 160px;
    padding: 25px 35px;
    font-size: 16px;
    text-align: center;
    outline: none;
    border: none;
}

.wpshare247-before-and-after-car .wpshare247-before-and-after-car__tab>div button.active {
    background: #030303;
    color: #fff;
}

.wpshare247-before-and-after-car .wpshare247-before-and-after-car-choose-color .wpshare247-color__item {
    position: relative;
}

.wpshare247-before-and-after-car .wpshare247-before-and-after-car-choose-color .wpshare247-color__item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 1px);
    border: 1px solid var(--w247-primary-color);
    transform: skew(-25deg);
}

/* --- Truck Detail Layout --- */
.wpshare247-car-truck__information {
    width: 60%;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.information__title h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.information__product-code,
.information__views,
.information__vehicle-load,
.information__carton-size,
.information__gift {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #222;
}

.information__price span {
    color: #ED1F24;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.information__contact {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.information__contact i {
    color: #ED1F24;
    margin-right: 8px;
}

.information__contact a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
}

.information__contact a:hover {
    color: #ED1F24;
    text-decoration: underline;
}

.wpshare247-car-gallary {
    margin-top: 14px;
    background: #fff;
    border-radius: 6px;
    padding: 8px 0;
}

.wpshare247-car-gallary .item {
    padding: 0 2px;
}

.wpshare247-car-gallary.truck .item img {
    border: 2px solid #eee;
    border-radius: 4px;
    width: 100%;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    transition: border .2s;
}

.wpshare247-car-gallary.truck .item img:hover {
    border: 2px solid #ED1F24;
}

.wpshare247-car-gallary.truck .item.active img {
    border: 2px solid #ED1F24;
}

.image img {
    border-radius: 8px;
    width: 100%;
    object-fit: cover;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07); */
}

.d-flex.gap-3 {
    gap: 36px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.wpshare247-car-truck__information .information__contact {
    margin-top: 12px;
}

.wpshare247-car-truck__information .information__contact span {
    font-size: 1rem;
}

.wpshare247-car-truck__information .information__contact a {
    font-size: 1rem;
}

/* --- Button Style --- */
.wpshare247-car-truck__information .wpshare247-btn-row {
    display: flex;
    gap: 16px;
    margin: 18px 0 0 0;
}

.wpshare247-car-truck__information .wpshare247-btn-row .btn {
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    padding: 12px 28px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}

@media (max-width: 1024px){
    .wpshare247-btn-row{
        flex-direction: column;
    }
}

.wpshare247-car-truck__information .btn-buy {
    background: #ED1F24;
    color: #fff;
}

.wpshare247-car-truck__information .btn-buy:hover {
    background: #c9151a;
}

.wpshare247-car-truck__information .btn-cost {
    background: #00703C;
    color: #fff;
}

.wpshare247-car-truck__information .btn-cost:hover {
    background: #005c31;
}

.wpshare247-car-truck__information .btn-installment {
    background: #1D4670;
    color: #fff;
}

.wpshare247-car-truck__information .btn-installment:hover {
    background: #17365a;
}

.wpshare247-toc {
    padding: 8px 15px;
    border: 1px solid #dedede;
    margin-bottom: 2rem;
    border-radius: 5px;
    background-color: #eeeeee;
}

.wpshare247-toc ol li {
    margin-top: 10px;
}

.wpshare247-toc ol li a {
    color: #333333;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.see-more {
    background-color: #ED1F24;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, color .2s;
    outline: none;
    border: none;
}

.wpshare247-related-posts__list .item {
    border: 1px solid var(--w247-primary-color);
    border-radius: 15px;
    padding: 20px;
}

.wpshare247-related-posts__list .item .info h3 {
    border-bottom: 1px solid #ECECEC;
    margin-bottom: 15px;
    padding-bottom: 15px;
    font-size: 20px;
}

.wpshare247-related-posts__list .item .price {
    font-weight: bold;
}

.wpshare247-related-posts__list .item:hover .info__readmore i {
    rotate: 0deg;
    background-color: black;
}

@media (max-width: 1024px){
    .wpshare247-related-posts__list.page-content{
        justify-content: space-between !important;
        padding: 0 20px;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 18px;
    }

    .wpshare247-car-truck__information,
    .image {
        width: 100% !important;
        padding-left: 0;
    }
}

/* w247-popup */
.w247-popup details>summary,
.w247-popup details>div {
    border: unset !important;
}

/* .w247-card + title */
.w247-card .title a {
    color: black;
}

.w247-blog-1 .w247-card {
    position: relative;
}

.w247-blog-1 .w247-card img {
    max-width: unset !important;
    width: 100%;
    opacity: 0.6;
    background-color: rgba(0, 0, 0, 0.8) !important;
}

.w247-blog-1 .w247-card .w247-content {
    position: absolute;
    bottom: 0;
    color: white;
}

.w247-blog-1 .w247-card .w247-content a {
    color: white;
}

.w247-blog-2 .w247-card .img {
    background: unset !important;
}

/* wpshare247-list-menu + wpshare247-menu-label + wpshare247-dropdown-toggle */
.wpshare247-list-menu {
    padding: 20px;
    background-color: #f8f9fa;
    color: var(--w247-primary-color);
    font-weight: bold;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.wpshare247-list-menu .wpshare247-menu-label {
    color: black;
    font-weight: bold;
}

.wpshare247-list-menu .wpshare247-dropdown-toggle {
    color: black;
}

/* Sticky menu */
.w247-header.fixed {
    position: fixed;
    top: 0;
    animation: w247-header 0.8s ease-in 0s forwards;
    box-shadow: unset;
}

@keyframes w247-header {
    0% {
        transform: scale(1.05);
        opacity: 0;
    }

    50% {
        transform: scale(1.035);
        opacity: 0.75;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* w247-form + w247-form-edit */
.w247-form-edit{
    padding: 0 !important;
}
.w247-form .wpforms-field-container {
    display: grid;
    grid-template-areas: '. .'
        '. .'
        'text text';
    gap: 0 10px;
}

.w247-form .wpforms-field-container input {
    max-width: 100% !important;
    border: unset !important;
    border-bottom: 1px solid #DCDCDC !important;
}

.w247-form .wpforms-field-container .wpforms-field-textarea {
    grid-area: text;
}

.w247-form .wpforms-submit-container .wpforms-submit {
    border-radius: 30px;
    color: white !important;
    background-color: var(--w247-primary-color) !important;
    font-weight: bold !important;
    padding: 15px !important;
    transition: all 0.4s linear;
}

.w247-form .wpforms-submit-container .wpforms-submit:hover {
    background-color: black !important;
}

/* wpshare247-pagination */
.wpshare247-pagination {
    margin-top: 30px;
}

.wpshare247-pagination .navigation .nav-links {
    margin: 0 auto 10px;
    display: flex;
    gap: 3px;
}

.wpshare247-pagination .navigation .nav-links .page-numbers {
    border-radius: 50%;
    border: 1px solid #DCDCDC;
    /* padding: 12px 20px; */
    transition: background 0.4s linear, color 0.4s linear;
    text-decoration: none;
    color: black;
    display: flex;
    width: 35px;
    height: 35px;
    justify-content: center;
    align-items: center;
}

.wpshare247-pagination .navigation .nav-links .page-numbers.current,
.wpshare247-pagination .navigation .nav-links .page-numbers:hover {
    background-color: var(--w247-primary-color);
    color: white;
    border: unset;
}

.wpshare247-pagination .navigation .nav-links .next,
.wpshare247-pagination .navigation .nav-links .prev {
    display: none;
}

/* wpshare247-posts + page-content */
.wpshare247-posts,
.page-content {
    justify-content: center;
    margin: 0 auto;
}

.wpshare247-posts.row-cols-2>*,
.page-content.row-cols-2>* {
    width: 47%;
}

.page-content .blog-loop:has(.wpshare247-related-posts__item){
    padding: 0 !important;
    box-shadow: unset !important;
}
.page-content .blog-loop .wpshare247-related-posts__item.item{
    height: 100%;
}

@media (min-width: 768px) {

    .wpshare247-posts.row-cols-md-3>*,
    .page-content.row-cols-md-3>* {
        width: 31.33333333%;
    }
}

@media (min-width: 992px) {

    .wpshare247-posts.row-cols-lg-4>*,
    .page-content.row-cols-lg-4>* {
        width: 23.5%;
    }
}

/* wpshare247-page */
@media (max-width: 768px) {
    #wpshare247-page .d-flex.gap-4,
    #wpshare247-search .d-flex.gap-4 {
        flex-direction: column;
    }

    #wpshare247-page .wpshare247-sidebar,
    #wpshare247-search .wpshare247-sidebar {
        width: 100% !important;
    }

    #wpshare247-page .wpshare247-sidebar+div,
    #wpshare247-search .wpshare247-sidebar+div {
        width: 100% !important;
    }
}

/* swiper-pagination + .swiper-pagination-bullet-active */
.swiper-pagination .swiper-pagination-bullet-active {
    background: var(--w247-primary-color);
}

/* current-menu-item + menu-item */
.menu-item a,
.current-menu-item a {
    position: relative;
}

/* .hfe-has-submenu-container+.sub-menu{
    margin: 0 15px !important;
}
.hfe-has-submenu-container+.sub-menu li{
    background-color: #4D4E4E !important;
}
.hfe-has-submenu-container+.sub-menu li a{
    color: white !important;
    transition: 0.25s linear;
}
.hfe-has-submenu-container+.sub-menu li a:hover{
    color: red !important;
} */


.menu-item:hover a.hfe-menu-item::after,
.current-menu-item a.hfe-menu-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--w247-primary-color) !important;
    opacity: 1 !important;
}

.menu-item{
    border-bottom: unset !important;
}
.menu-item a.hfe-sub-menu-item{
    font-size: 14px !important;
    padding: 12px !important;
    width: max-content;
}

/* wpshare247_car + title */
h2.title a,
h3.title a{
    overflow: hidden;
    text-overflow: ellipsis;
    /* Adds "..." at the end of truncated text */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Specifies the maximum number of lines */
    -webkit-box-orient: vertical;
    /* Arranges content vertically within the box */
    min-height: 38.38px;
}

/* w247-animation */
.w247-animation .elementor-heading-title {
	animation: w247-flashing-text 0.75s infinite linear;
}

@keyframes w247-flashing-text {
    0% {
        color: black;
    }

	50% {
        color: var(--w247-primary-color);
    }
	
    100% {
        color: black;
    }
}

/* w247-mobile + w247-animation + elementor-heading-title */
@media (max-width: 1024px){
	.w247-mobile .w247-animation .elementor-heading-title{
		animation: w247-flashing-text 0.75s infinite linear;
	}
	
	.w247-mobile .hfe-nav-menu-icon{
		color: white;
	}
	
	@keyframes w247-flashing-text {
    0% {
        color: white;
    }

	50% {
        color: var(--w247-primary-color);
    }
	
    100% {
        color: white;
    }
}
}

/* short-description */
.short-description{
	overflow: hidden;
    text-overflow: ellipsis;
    /* Adds "..." at the end of truncated text */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Specifies the maximum number of lines */
    -webkit-box-orient: vertical;
}

@media (max-width: 1024px){
    .short-description{
        overflow: hidden;
        text-overflow: ellipsis;
        /* Adds "..." at the end of truncated text */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* Specifies the maximum number of lines */
        -webkit-box-orient: vertical;
        font-size: 10px;
    }
}

/* w247-breakcum */
.w247-breakcum{
    /* background: var(--w247-primary-color); */
    font-size: 24px;
}

/* ws247-eaddon-classic (Khi hover vào thì sẽ zoom ảnh lên) */
.ws247-eaddon-classic{
    overflow: hidden;
}
.ws247-eaddon-classic:hover{
    box-shadow: unset !important;
}
.ws247-eaddon-classic:hover img{
    transform: scale(1.05) !important;
}

/* wpshare247-combine-car */
.wpshare247-combine-car{
    width: 100%;
}

/* w247-tags */
.w247-tags{
    border-top: 1px solid #DCDCDC;
    border-bottom: 1px solid #DCDCDC;
    padding: 10px 0;
    font-size: 10px;
    text-transform: uppercase;
    width: 100%;
}

.w247-tags a{
    text-decoration: none;
    color: black;
    font-weight: bold;
    transition: all 0.25s linear;
}
.w247-tags a:hover{
    color: var(--w247-primary-color);
}

/* w247-breadcrumbs */
.w247-breadcrumbs{
    font-size: 13px;
}
.w247-breadcrumbs a{
    text-decoration: none;
    color: black;
    transition: all 0.25s linear;
}
.w247-breadcrumbs a:hover{
    color: var(--w247-primary-color);
}

.footer-width-fixer{
    overflow: hidden;
}

#wpshare247-single{
    padding: 0 35px;
}

#wpshare247-single h2{
    font-size: 24px;
}
#wpshare247-single h3{
    font-size: 20px;
}
#wpshare247-single h4{
    font-size: 18px;
}
#wpshare247-single h5{
    font-size: 16px;
}
#wpshare247-single h6{
    font-size: 14px;
}
@media (max-width: 1024px){
    #wpshare247-single .d-flex.gap-3{
        flex-direction: column;
    }
    #wpshare247-single .d-flex.gap-3>div:first-of-type{
        width: 100% !important;
        padding: 0 10px;
    }
    #wpshare247-single .d-flex.gap-3>div:last-of-type{
        width: 100% !important;
        padding: 0 10px;
    }
}
@media (max-width: 768px) {
    #wpshare247-single {
        padding: unset;
    }
}

/* widget_categories + side-widget + widget-blog-title + widget_wpshare247_list_menu */
.side-widget.widget_wpshare247_list_menu{
    padding: 0;
    border: unset;
}
.side-widget{
    padding: 15px;
    border: 1px solid var(--w247-primary-color);
    margin-bottom: 30px;
    border-radius: 5px;
}
.side-widget .widget-blog-title{
    color: var(--w247-primary-color);
}
.side-widget ul{
    list-style: none;
    margin: 0;
    padding: 0;
    padding-top: 10px;
}
.side-widget ul a{
    text-decoration: none;
    color: black;
    font-size: 14px;
}
.widget_categories ul{
    display: flex;
    flex-wrap: wrap;
    gap: 25px 5px;
}
.widget_categories ul a{
    padding: 10px;
    border: 1px solid #DCDCDC;
    border-radius: 5px;
    transition: 0.25s linear;
}
.widget_categories ul a:hover{
    background: #DCDCDC;
}

/* Widget Post News */
.wpshare247-post-news-item{
    align-items: center;
}

.wpshare247-post-news-item a{
    text-decoration: none;
}

.wpshare247-post-news-item:last-of-type{
    margin: 0 !important;
}

.wpshare247-post-news-item .wpshare247-post-new-link{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* w247-menu-mobile */
.w247-menu-mobile .menu-item a{
    color: white !important;
}
.w247-menu-mobile .menu-item a.hfe-sub-menu-item{
    padding-left: 25px !important;
}

/* wpshare247-flex-wrap + w247-full-size */
@media (max-width: 1024px){
    .wpshare247-flex-wrap{
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
    }
    .wpshare247-flex-wrap .readmore-out{
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
    }
    .wpshare247-flex-wrap .readmore-out .price,
    .info__price .price{
        font-size: 12px !important;
        margin: 0 !important;
    }
    .w247-full-size{
        background-size: cover !important;
    }
}

.wpshare247-thumbnail img{
    width: 100%;
}

.entry-content img{
    width: 100%;
}

.entry-content table{
    width: 100%;
}

/* Popup */
.wpshare247-popup {
    position: fixed; z-index: 9999; left: 0; top: 0; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center;
}
.wpshare247-popup-overlay {
    position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5);
}
.wpshare247-popup-content {
    position: relative; background: #fff; padding: 32px 24px 24px 24px; border-radius: 8px; max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    height: 500px;
    overflow: scroll;
}
.wpshare247-popup-close {
    position: absolute; right: 12px; top: 12px; background: none; border: none; font-size: 2rem; color: #888; cursor: pointer;
}

.form-popup .wpforms-container input,
.form-popup textarea{
    max-width: 100% !important;
}

.form-popup .wpforms-submit-container .wpforms-submit {
    border-radius: 30px;
    color: white !important;
    background-color: var(--w247-primary-color) !important;
    font-weight: bold !important;
    transition: all 0.4s linear;
    width: 100%;
}

.form-popup .wpforms-submit-container .wpforms-submit:hover {
    background-color: black !important;
}

/* wpshare247-menu-root + wpshare247-menu-item + wpshare247-menu-children + collapse */
/* .wpshare247-menu-root #dropdown-car_category-32,
.wpshare247-menu-root #dropdown-car_category-73{
    display: block !important;
} */

/* entry-title-link + wpshare247-entry-header + entry-content + title + ws247-eaddon-post-loop-item */
.entry-title-link{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 10px;
    line-height: 30px;
}
@media (max-width: 1024px){
    a.entry-title-link{
        font-size: 14px !important;
        line-height: 20px;
    }

    .wpshare247-entry-header,
    .entry-content{
        padding: 0 10px;
    }
    .wpshare247-elementor-addon .title a{
        font-size: 13px !important;
        min-height: 33.59px !important;
    }
    .ws247-eaddon-post-loop-item{
        padding: 10px;
    }
}

/* owl-item */
.owl-item .item img{
    height: 300px;
    object-fit: cover;
}

@media (max-width: 1024px){
    .owl-item .item img {
        height: 100px;
    }
}

/* wpshare247-menu-icon */
/* Ẩn icon nếu ngay sau nó là thẻ a */
.wpshare247-menu-item .wpshare247-menu-icon:first-child:has(+ a) {
    display: none !important;
}

.w247-button-back{
    border-radius: 10px;
    background-color: var(--w247-primary-color);
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    margin-top: 10px;
    display: inline-block;
    transition: all 0.25s linear;
    font-weight: bold;
}
.w247-button-back:hover{
    background-color: black;
}

/* Show thêm description */
.category-description {
    max-height: 100px; /* Chiều cao ban đầu */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.category-description.expanded {
    max-height: none; /* Mở rộng hết */
}
.toggle-description {
    color: #0073aa;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
}

.toggle-description{
    margin: 10px auto;
    width: max-content;
    border-radius: 10px;
    background-color: var(--w247-primary-color);
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
    transition: all 0.25s linear;
    font-weight: bold;
}


/* search mobile  */
/* CSS cho search button dropdown từ class zev-search */
.zev-search {
  position: relative;
}

.zev-search .hfe-search-button-wrapper {
  position: relative;
}

.zev-search .hfe-search-icon-toggle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ẩn input mặc định */
.zev-search .hfe-search-form__input {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 35px 8px 12px;
  transition: all 0.3s ease;
  z-index: 999;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 5px;
}

/* Icon tìm kiếm */
.zev-search .fas.fa-search {
  cursor: pointer;
  font-size: 20px;
  color: #333;
  padding: 10px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1000;
}

.zev-search .fas.fa-search:hover {
  color: #007cba;
}

/* Hiện input khi focus hoặc khi có class active */
.zev-search .hfe-search-form__input:focus,
.zev-search.search-active .hfe-search-form__input {
    opacity: 1;
    left: -50px;
    top: 58px;
    visibility: visible;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
  .zev-search .hfe-search-form__input {
    width: 180px;
  }
}

@media (max-width: 480px) {
  .zev-search .hfe-search-form__input {
    width: 150px;
  }
}

.w247-hotline a{
    color: white !important;
}

.zev-post img{
    height: 200px !important;
    object-fit: cover;
}

.zev-post .excerpt{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;   
}

@media (max-width: 1024px){
    .zev-post .excerpt{
        font-size: 10px;
    }
}

#wpforms-496-field_6-container{
	grid-column: 1/3;
}

.wpforms-submit-container{
	text-align: right;
}

.pum-theme-3703 .pum-container, .pum-theme-lightbox .pum-container{
	border: unset !important;
}

@media (max-width: 500px){
    /* Chỉnh màu background là màu đen của CA */
    body #ws247-aio-ct-button-show-all-container.aio-fixed-bt-mb #ft-contact-icons{
        background-color: white;
    }
    body #ft-contact-icons .item .icon{
        background-color: white;
        color: red;
        border: unset;
    }
}

.info__readmore{
    text-decoration: none;
}

.tbay-menu-ft .hfe-has-submenu-container+.sub-menu{
    margin: 0 15px !important;
}