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

/*************** ADD CUSTOM CSS HERE.   ***************/
.mx-auto{
    margin-left: auto;
    margin-right: auto;
}

.mt-1{
    margin-top: 1em;
}

.top-section{
    padding: 17px 20px;
    box-shadow: 0 1px 4px rgba(10, 10, 10, .15);
    background: #fff;
    border-radius: 4px;
    margin-bottom: 20px;
}

.bottom-section{
    padding: 17px 20px;
    box-shadow: 0 1px 4px rgba(10, 10, 10, .15);
    background: #fff;
    border-radius: 4px;
}

.bottom-section .row{
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.bottom-section .post-item{
    padding-bottom: 20px;
    padding-left: 0;
    padding-right: 0;
}

.bottom-section .post-item:not(:first-child){
    padding-top: 20px;
}

.bottom-section .post-item:not(:last-child){
    border-bottom: 1px solid #dee2e6;
}

.bottom-section .nav-pagination{
    padding: 30px 0;
}

.hightlight .post-item, .mobile-vertical, .mobile-vertical .post-item:last-child{
    padding-bottom: 0 !important;
}

.top-section .mobile-vertical .post-item .post-title{
    font-size: 1em;
    font-weight: normal;
}

.category-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-weight: 500;
    flex-wrap: wrap;
}

.category-menu li a {
    text-decoration: none;
    color: #000;
    padding-bottom: 5px;
    position: relative;
    font-weight: 500;
}
.category-menu li.active a{
    font-weight: bold;
}
.category-menu li.active a::after,
.category-menu li:hover a::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #c80000; /* red underline */
}

.popular-posts {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.popular-title {
    font-weight: bold;
    margin-bottom: 15px;
}

.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.number-circle {
    background-color: #c80000;
    color: #fff;
    font-weight: bold;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-size: 16px;
    flex-shrink: 0;
}

.popular-list a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.popular-list a:hover {
    text-decoration: underline;
}

.thumb {
    width: 80px; /* or whatever size you need */
    height: 80px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 6px; /* optional: rounded corners */
}

.thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.author-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: sans-serif;
    margin-top: 10px;
}

.author-initial {
    background-color: #c80000;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    text-align: center;
    line-height: 32px;
    font-size: 16px;
}

.author-name {
    color: #666;
    font-size: 14px;
}

.devvn_localstore_wrap input[type="text"], .devvn_localstore_wrap select{
    border-color: #ccc;
    border-radius: 5px;
    background: #fff;
}

.localstore_searchbox{
    margin: 10px;
    padding: 0;
    background: transparent;
}

.localstore_search_results{
    padding: 10px;
    border: 1px solid #ccc;
    margin: 10px;
    border-radius: 5px;
}

.sec__products .products.columns-4{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

section.custom .products .product-small.type-product{
    padding: 0 9.8px 19.6px;
}

.nav-top-link{
	padding: 15px 0 !important;
}

.top-bar-nav > li > a {
    line-height: 5px !important;
}

#header #wide-nav .flex-col ul.header-nav {
    justify-content: left !important;
}

.header-nav .menu-item a {
    font-size: 14px !important;
}

.sec__chinh-sach .chinh-sach-item .chinh-sach-content {
    font-size: 15px !important;
}

.sub-menu .menu-item a{
	font-size: 14px !important;
}

section .products .product .box-text-products .name a {
    font-size: 17px !important;
}

section .products .product .box-text-products .price {
    font-size: 16px !important;
}

section .btn.btn-default, #load-more {
    background-color: #fff !important;
    color: #C9252C !important;
    border: 1px solid #C9252C;
}
section .btn.btn-default:hover, #load-more:hover{
	background-color: #C9252C !important;
	color: #fff !important;
}

.button:hover{
	box-shadow: none !important;
}

#footer .sec__branch .branch-list {
    grid-template-columns: repeat(5, 1fr) !important;
}

#footer ul li a {
    font-size: 14px !important;
}

section h2.title {
    font-size: 22px !important;
}

.banner {
    background-color: transparent !important;
}

.mo_ta_wrapper .mo_ta {
    font-size: 16px !important;
}

.single-product .rank-math-breadcrumb p, .p_header .rank-math-breadcrumb p {
    font-size: 14px !important;
}

.single-product #product-sidebar .custom-list-p-box .p-box .info-item, .single-product #product-sidebar .custom-list-p-box .p-box .info-item a {
    font-size: 15px !important;
}

.single-product .box-price .info-box {
    font-size: 15px !important;
}

.single-product .product-footer .row .col.col--right table td {
    font-size: 14px !important;
}

.single-product .product-main .product-gallery {
    flex-basis: 40% !important;
    max-width: 40% !important;
}

.single-product .product-main .product-info {
    padding: 0 15px !important;
}

.single-product .product-info .woocommerce-product-rating .star-rating span:before, .star-rating span:before {
    color: #F59E0B !important;
}

.single-product .cr-all-reviews-shortcode .cr-histogramTable i, .single-product .crstar-rating-svg .cr-rating-icon-frnt .cr-rating-icon {
    color: #F59E0B !important;
    fill: #F59E0B !important;
}

.p_header h1 {
    font-size: 22px !important;
}

.sec__list_p #product-filter label.title {
    font-size: 16px !important;
}

.sec__list_p #product-filter .filter-group select, .sec__list_p #product-filter .filter-group .button span {
    font-size: 12px !important;
}

.filter-group .button{
	border: 0 !important;
}

.single-post .top-posts-slider .top-post-item a strong {
    font-size: 14px !important;
}

.single-post article.post .box .entry-content .content p, .entry-content p, .single-post #post_author .author-desc {
    font-size: 16px !important;
	text-align: justify !important;
}

.top-section .mobile-vertical .post-item .post-title {
    font-size: 1.1em !important;
}

.popular-list a {
    font-size: 15px !important;
}

.single-post .yarpp-related .yarpp-thumbnails-horizontal a .yarpp-thumbnail-title {
    font-size: 16px !important;
	margin-bottom: 10px !important
}

.sec__dmsp .dmsp .dmsp-item .dmsp-img {
    border: 4px solid #eee;
}

.entry-content td{
	padding: 10px !important;
	color: #231f20 !important;
}

.entry-content img, .entry-content iframe{
	margin: auto;
    display: block;
}

.entry-content a{
	color: #0076BC !important;
}

.search-field {
    border-radius: 5px !important;
}

.single-product .product-info form .ux-buy-now-button {
    width: 100% !important;
	height: 66px !important;
}

.box-text-products p{
	min-height: 48px;
}

.single-product #product-sidebar .custom-list-p-box .p-box .info-item.button{
	padding: 10px 0;
}

.single-product .product-footer #reviews .stars, .single-product .product-footer #reviews .stars a{
	color: white !important;
}
.nav-dropdown-has-arrow.nav-dropdown-has-border li.has-dropdown:before,.nav-dropdown-has-arrow li.has-dropdown:after{
	display: none;
}

.cta-fixed {
    position: fixed;
    z-index: 1010;
    display: block;
    width: 100%;
    bottom: 1rem;
}
.cta-fixed .inner {
    display: block;
    text-align: center;
}
.cta-fixed a {
    display: inline-block;
}
.cta-fixed a img {
    transition: all .5s;
    max-width: 200px;
}
.cta-fixed a+a {
    margin-left: 3rem;
}
.cta-fixed a:hover img {
 	transform: scale(1.1);
}
#footer .sec__info {
    padding-bottom: 110px;
}
.back-to-top{
	bottom: 70px !important;
}
section .products .product .badge .on-sale {
    background-color: #f7810a !important;
}


@media (min-width: 850px){
    header#header .nav-dropdown {
        display: block;
    }
    header#header .nav-dropdown ul.sub-menu {
        position: absolute;
        left: 100%;
        top: 0;
        background: #fff;
        width: 260px;
        padding: 0;
        display: none !important;
        border-radius: 5px;
        -webkit-box-shadow: 1px 1px 15px rgb(0 0 0 / 15%);
        box-shadow: 1px 1px 15px rgb(0 0 0 / 15%);
    }
    header#header .nav-dropdown ul.sub-menu a {
        white-space: normal;
        margin: 0;
        padding: 10px 15px;
        border: 0;
        font-weight: 400;
    }
    header#header .nav-dropdown li:hover > ul.sub-menu{
        display: block !important;
    }
    header#header .nav-dropdown li {
        border-right: 0;
        white-space: normal;
        width: 100%;
        display: block;
        position: relative;
		margin-top: 0 !important;
    }
    header#header .nav-dropdown li.menu-item-has-children > a {
        font-weight: 400;
        text-transform: none;
        color: rgba(102,102,102,.85);
    }
    header#header .nav-dropdown li.active>a {
        color: #e82c2a;
    }
}

@media (max-width: 1024px){
    .sec__products .products.columns-4{
        grid-template-columns: repeat(3, 1fr);
    }
	.gap-default {
        padding: 24px 15px !important;
    }
	.mobile-nav .nav-icon a{
		color: #C9252C !important;
	}
	#header #masthead .cart-item .header-cart-link .icon-shopping-cart:before {
		background: #C9252C !important;
	}
	#header #masthead .cart-item .header-cart-link {
		background-color: transparent !important;
	}
	.sec__products{
		padding: 24px 0 !important;
	}
	.sec__products .products.columns-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
	#footer .sec__branch .branch-list {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .category-menu {
        gap: 10px;
    }
    
    .bottom-section .post-item .box-text .post-title a, .bottom-section .post-item .box-text .from_the_blog_excerpt {
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
    
    .author-initial{
        width: 25px;
        height: 25px;
        font-size: 14px;
        line-height: 25px;
    }
    
    .sec__products .products.columns-4{
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    section.custom .products .product-small.type-product{
        padding: 0 5px 10px;
    }
    
    .sec__products.custom .container{
        padding: 0 10px;
    }
	.sec__dmsp .dmsp .dmsp-item .dmsp-img {
		width: 110px !important;
		height: 110px !important;
	}
	.sec__products .products.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
	#footer .sec__branch .branch-list {
		grid-template-columns: repeat(2, 1fr) !important;
	}
		.cta-fixed {
        padding: 0 10px;
    }
	.cta-fixed .inner {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0 10px;
    }
	.cta-fixed a {
		display: inline-block;
	}
	.cta-fixed a+a {
        margin-left: 0;
    }
	.cta-fixed a img {
        max-width: 100%;
    }
}

@media screen and (max-width: 549px) {
    .mobile-vertical .box-vertical{
        display: table;
    }
    
    .mobile-vertical .box-vertical .box-image {
        width: 35% !important;
        direction: ltr;
        display: table-cell;
        vertical-align: middle;
    }
    
    .mobile-vertical .box-vertical .box-text{
        direction: ltr;
        display: table-cell;
        vertical-align: middle;
        padding-left: 1em;
        padding-right: 1em;
    }

}



