/*
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: space-between;
    align-items: stretch;
}

#header #wide-nav .header-nav > li.menu-item {
    flex: 1 0 auto;
    margin: 0;
}

#header #wide-nav .header-nav > li.menu-item > .nav-top-link {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    white-space: nowrap;
    font-size: 12px !important;
    padding-inline: 16px !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;
}

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

.banner {
    background-color: transparent !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: 24px !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;
}

.entry-content p:not(:where(.tts-content *)), .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;
}



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

.entry-content td:not(:where(.tts-content *)){
	padding: 10px !important;
	color: #231f20 !important;
}

.entry-content :is(img, iframe):not(:where(.tts-content *)){
	margin: auto;
    display: block;
}

.entry-content a:not(:where(.tts-content *)){
	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);
}
.back-to-top{
	bottom: 70px !important;
}
section .products .product .badge .on-sale {
    background-color: #f7810a !important;
}

/* Opt-in mega menu: add cs-mega-menu to a top-level menu item. */
@media (min-width: 850px) {
    #header #wide-nav .header-nav > li.cs-mega-menu {
        position: static;
    }

    #header #wide-nav .header-nav > li.cs-mega-menu > ul.sub-menu {
        display: block !important;
        column-count: 4;
        column-gap: 24px;
        top: 100%;
        left: auto !important;
        right: 0 !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 24px 20px;
        background: #fff;
        border: 0;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    }

    #header #wide-nav .header-nav > li.cs-mega-menu:hover > ul.sub-menu,
    #header #wide-nav .header-nav > li.cs-mega-menu:focus-within > ul.sub-menu,
    #header #wide-nav .header-nav > li.cs-mega-menu.current-dropdown > ul.sub-menu {
        opacity: 1;
        visibility: visible;
        max-height: calc(100dvh - 230px);
        overflow-y: auto;
    }

    #header #wide-nav .header-nav > li.cs-mega-menu > ul.sub-menu > li {
        display: block;
        width: auto;
        min-width: 0;
        margin: 0 0 24px;
        padding: 0;
        border: 0;
        break-inside: avoid;
    }

    #header #wide-nav .header-nav > li.cs-mega-menu > ul.sub-menu > li:not(.menu-item-has-children) {
        margin-bottom: 6px;
    }

    #header #wide-nav .header-nav > li.cs-mega-menu > ul.sub-menu > li > a {
        display: block;
        margin: 0 0 6px;
        padding: 0 0 10px;
        border-bottom: 1px solid #e8e8e8;
        font-weight: 700;
        text-transform: uppercase;
    }

    #header #wide-nav .header-nav > li.cs-mega-menu > ul.sub-menu ul.sub-menu,
    #header #wide-nav .header-nav > li.cs-mega-menu > ul.sub-menu li.menu-item-has-children:hover > ul.sub-menu {
        display: block !important;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: inherit;
        max-height: none;
    }

    #header #wide-nav .header-nav > li.cs-mega-menu ul.sub-menu li {
        border: 0;
    }

    #header #wide-nav .header-nav > li.cs-mega-menu ul.sub-menu a {
        white-space: normal;
        color: #231f20;
        line-height: 1.5;
        background: transparent;
        border-radius: 0;
    }

    #header #wide-nav .header-nav > li.cs-mega-menu ul.sub-menu ul.sub-menu a {
        display: block;
        margin: 0;
        padding: 6px 0;
        font-weight: 400;
        text-transform: none;
    }

    #header #wide-nav .header-nav > li.cs-mega-menu ul.sub-menu a:hover {
        color: #C9252C;
        background: transparent;
    }
}

@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;
    }
	}


@media (max-width: 849px) {
    #header #masthead .cart-item .header-cart-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 8px !important;
        gap: 0;
        border: 1px solid #C9252C;
        border-radius: 5px;
        background-color: #fff !important;
        color: #C9252C;
        line-height: 1;
    }

    #header #masthead .cart-item .header-cart-link .icon-shopping-cart {
        display: block;
        width: 24px;
        height: 24px;
        line-height: 1;
    }

    #header #masthead .cart-item .header-cart-link .icon-shopping-cart:before {
        width: 24px;
        height: 24px;
        transform: none;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h2l2.4 12a2 2 0 0 0 2 1.6h8.8a2 2 0 0 0 2-1.6L22 7H6'/%3E%3Ccircle cx='10' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h2l2.4 12a2 2 0 0 0 2 1.6h8.8a2 2 0 0 0 2-1.6L22 7H6'/%3E%3Ccircle cx='10' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    #header #masthead .cart-item .header-cart-link:focus-visible {
        outline: 2px solid #C9252C;
        outline-offset: 3px;
    }
}

@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;
    }
	.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;
    }
	
	.single-product .product-main .product-gallery {
	 	flex-basis: 100% !important;
    	max-width: 100% !important;
  	}

}

.chungnhan {
    display: flex;
    gap: 20px;
    align-items: center;
}
.chungnhan img {
    height: 80px;
}

