/*
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.   ***************/
li.html.custom.html_nav_position_text {
    color: #767676;
    font-size: 12px;
}

#wrapper {
    transition: margin-left 0.3s ease;
    margin-left: var(--menu-width-collapsed);
    width: auto;
}

body.logged-in #wrapper {
    margin-left: var(--menu-width-collapsed);
}

a.button.primary.wc-backward {
    padding: 5px 15px;
}

div#top-bar {
    border-bottom: 1px solid #E6E6E4;
}



.header-search-form .searchform-wrapper {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 99px !important;
    padding: 2px 2px 2px 2px;
    overflow: hidden;
}

.header-search-form .search-field {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 20px !important;
    height: 40px;
}

.header-search-form .ux-search-submit {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7cb2c !important;
    border: none !important;
    margin: 0 !important;
}

.header-search-form .ux-search-submit .icon-search {
    font-size: 1.2em;
    line-height: 1;
    margin: 0;
}

.header-search-form .flex-row {
    align-items: center;
}

.header-search-form .ux-search-submit:hover {
    background-color: #e5ba27 !important;
}

/* 
.header-search-form-wrapper {
    width: 920px !important;
} */

.searchform-wrapper:not(.form-flat) .submit-button,
.widget_search .submit-button {
    border-bottom-left-radius: 99px !important;
    border-top-left-radius: 99px !important;
    border-radius: 99px !important;
}


.row-5-col>.col {
    flex-basis: 20%;
    max-width: 20%;
}

.section-footer {
    border-bottom: 1px solid #E6E6E4;
}

.copyright-footer {
    color: #333333;
}

.absolute-footer.dark {
    height: 0px;
    padding: 24px 0px 0px 0px;
}

a.ux-menu-link__link.flex {
    font-size: 14px;
}


span.ux-menu-link__text:hover {

    color: #F7CB2C;
}

.row-8-cate .icon-box:hover h5 {
    color: #F7CB2C !important;
    cursor: pointer;
}

ul.nav.header-nav.header-bottom-nav.nav-left {
    display: flex;
    gap: 15px;
}

.banner-radius .banner-bg.fill {
    border-radius: 12px;
}

.banner-radius {
    border-radius: 14px;
}


.row-8-cate .text {
    position: relative !important;
}

.row-8-cate .text h5 {
    display: inline-block !important;
    position: relative !important;
    margin-top: 35px !important;
    line-height: 1.2 !important;
    overflow: visible !important;
}

.row-8-cate .text h5::before {
    position: absolute;
    top: -30px;
    right: 0;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #fff !important;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 99;
}


.text-hot h5::before {
    content: "HOT";
    background-color: #ff0000;
}

.text-hot h5::after {
    border-top-color: #ff0000;
}

.text-hot-blue h5::before {
    content: "HOT";
    background-color: #00A1BE;
}

.text-hot-blue h5::after {
    border-top-color: #00A1BE;
}

.text-du-loai h5::before {
    content: "ĐỦ LOẠI";
    background-color: #65B32E;
}

.text-du-loai h5::after {
    border-top-color: #65B32E;
}

.text-hot-yellow h5::before {
    content: "HOT";
    background-color: #FBBC34;
}

.text-hot-yellow h5::after {
    border-top-color: #FBBC34;
}

.text-sieu-pham h5::before {
    content: "SIÊU PHẨM";
    background-color: #D41212;
}

.text-sieu-pham h5::after {
    border-top-color: #D41212;
}

.img-radius img {
    border-radius: 10px;
}

.svg-white path {
    fill: #ffffff !important;
}

.svg-white svg {
    width: 100% !important;
    height: auto;
    display: block;
    transform: scaleX(1.1);
    transform-origin: center;
}

.svg-white {
    position: relative;
    z-index: 99;
    line-height: 0;
    margin-bottom: -72px;
    pointer-events: none;
}

.svg-white {
    width: 100%;
    max-width: none !important;
    padding: 0 !important;
}

.col-divide p {
    margin-bottom: 0px;
}


.col-divide {
    position: relative;
}

.col-divide::after {
    content: "";
    position: absolute;
    right: 0;
    top: -62%;
    height: 147px;
    width: 1px;
    background-color: #ffe175;
}

.col-divide:last-child::after {
    display: none;
}

.col-useful .col-inner:hover {
    background: #F7CB2C;
    cursor: pointer;
}

.col-useful .col-inner:hover h4,
.col-useful .col-inner:hover p {
    color: #fff !important;
}

.img-box-variety .box-image {
    border-radius: 12px 12px 0px 0px;
}

.img-box-variety .box-text.text-left {
    background: #fff;
    padding: 12px;
    border-radius: 0px 0px 12px 12px;
}

.col-variety .col-inner {
    border-radius: 0px 0px 12px 12px;
}

.row-sidebar-blog .widget .is-divider {
    display: none;
}

.widget.widget_categories {
    padding: 0px;
}

.widget>ul>li+li,
ul.menu>li+li {
    border-top: unset;
}

.widget>ul>li a {
    font-size: 14px;
}

.custom-post-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 5;
}

.author-info-flex {
    display: flex;
    align-items: center;
    color: #fff;
}

.meta-left.author-info-flex {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px;
    width: auto;
}

.author-img {
    margin: 0 !important;
}

.author-img img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    border: 1.5px solid #fff;
    display: block;
    left: -224px;
}

.author-name {
    font-size: 13px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    margin-left: 30px;
    margin-top: -3px;
}

.icon-share-svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    cursor: pointer;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
}

.icon-share-svg:hover {
    transform: scale(1.1);
}

.share-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -9px;
}

.share-hover-buttons.share-row {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10;
    padding: 10px 5px 10px;
}

.share-hover-buttons.share-row a {
    margin-bottom: 0px;
}

.share-hover-buttons.share-row .social-icons {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.share-hover-buttons.share-row .social-icons li {
    margin: 0;
}

.share-hover-buttons.share-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #555;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.share-hover-buttons.share-row a:hover {
    background-color: #e0e0e0;
    color: #333;
}

.share-wrapper:hover .share-hover-buttons.share-row {
    display: block;
    animation: fadeInSlideUp 0.3s ease-out;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h5.post-title.is-large a {
    color: #000;
    font-size: 20px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.col.post-item .box-text.text-left {
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, .12);
    transition: box-shadow .5s cubic-bezier(0, 0, .44, 1.18);
    padding: 20px;
    min-height: 325px;
    border-radius: 0px 0px 10px 10px;
}

.col.post-item .box-image {
    border-radius: 10px 10px 0px 0px;
}


h5.post-title.is-large a:hover {
    color: #F7CB2C;
}

.page-wrapper {
    padding-bottom: 30px;
    padding-top: 0px;
}

h6.entry-category {
    width: max-content;
    position: relative;
    margin: 0 auto;
    background: #F7CB2C;
    color: #fff !important;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

h6.entry-category a {
    color: #fff !important;
}

.blog-home .author-img img {
    left: -325px;
}

.product-info.summary {
    background: #fff;
}

.box-image .image-tools,
.box-image .grid-tools,
.box-image .quick-view:not(.custom-quick-view a) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.custom-quick-view {
    display: block !important;
}

.product-small .box-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background-color: #f9f9f9;
}

.product-small .box-image .image-zoom,
.product-small .box-image .image-zoom a,
.product-small .box-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.product-small .box-image img {
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.product-small.col-inner:hover .box-image img {
    transform: scale(1.05);
}

.box-image .image-tools {
    display: none !important;
}

a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    color: #333333;
    font-weight: 600;
    font-size: 14px;
    min-height: 36px;
}

.product_meta>span {
    border-top: 1px dotted #ddd;
    display: block;
    padding: 25px 0 10px;
}

.product-short-description {
    padding-bottom: 22px;
}

.nav-line-bottom>li>a:before,
.nav-line-grow>li>a:before,
.nav-line>li>a:before {
    background-color: #F7CB2C;
    content: " ";
    height: 3px;
    left: 50%;
    opacity: 0;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    transition: all .3s;
    width: 100%;
}

h1.product-title.product_title.entry-title {
    color: #333333;
    font-size: 32px;
}

.has-border {
    border: 2px solid #F7CB2C;
    padding: 30px;
}

.primary,
input[type=submit],
input[type=submit].button {
    background-color: #F7CB2C;
}


.icon-box-title {
    width: max-content;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.icon-box-title:before {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 250px;
    height: 3px;
    background-color: #F7CB2C;
    border-radius: 2px;
}

.icon-box-text h4 {
    margin-bottom: 0;
    display: inline-block;
}

.icon-box-title:after {
    display: none !important;
}

.tab-prod ul.nav.nav-simple {
    margin-top: -112px;
    display: flex;
    gap: 35px;
}

.tab-prod ul.nav.nav-simple span {
    font-size: 14px;
    color: #000;
}

.tabbed-content.tab-prod .nav-simple>li.active>a,
.tabbed-content.tab-prod .nav-simple>li.active>a span,
.tabbed-content.tab-prod .nav-simple>li>a:hover,
.tabbed-content.tab-prod .nav-simple>li>a:hover span {
    color: #F7CB2C !important;
}

.tabbed-content.tab-prod .nav-simple>li.active>a::after {
    background-color: #F7CB2C !important;
}

.product-small.box {
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, .12);
    border-radius: 12px 12px;
}

.product-small .box-image {
    border-radius: 12px 12px 0px 0px;
}

.product-small.box .box-text.box-text-products {
    padding: 12px;
}

.text-tu-hao-vn h5::before {
    position: absolute;
    top: -30px;
    right: 0;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #fff !important;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 99;
    width: max-content;
}


.text-tu-hao-vn h5::before {
    content: "Tự hào hàng Việt Nam";
    background-color: #ff0000;
}
.related-products-wrapper .custom-badge {
    top: -282px;
}

header.archive-page-header {
    display: none;
}
@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/
	
	
	
i.icon-menu {
    color: #FDE51E;
}
	
	
	.header-search-form-wrapper {
    width: auto !important;
}
	
	:root {
        --menu-w-large: 85vw;
    }

    /* Đưa menu con về trạng thái bình thường để nó nằm dưới cha */
    .hk-sub-menu-block {
        position: static !important; 
        display: none;
        width: 100% !important;
        /* Triệt tiêu hoàn toàn tọa độ của JavaScript */
        top: auto !important;
        left: auto !important;
        margin: 0 !important;
        box-shadow: none !important;
        background: #fdfdfd !important;
        border-radius: 0;
    }

    /* Hiển thị menu con ngay khi hover vào cha */
    .hk-category-item:hover .hk-sub-menu-block {
        display: block !important;
    }

    .hk-sub-link {
        padding: 12px 20px 12px 60px !important;
        border-bottom: 1px solid #eee;
        display: block !important;
    }

    .hk-category-item:hover .hk-has-child::after {
        transform: rotate(90deg);
        color: var(--h-yellow) !important;
    }

    .hk-menu-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
	
	.banner-radius h2 {
    font-size: 22px;
}
	
	
	.icon-box-title {
    width: max-content;
    position: relative;
    padding-bottom: 0px;
    margin-bottom: 15px;
}
	
	

	
	.tab-prod ul.nav.nav-simple {
    margin-top: 0px;
    display: flex;
   gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    
    /* Giúp cuộn mượt hơn trên mobile */
    -webkit-overflow-scrolling: touch;
    
    /* Ẩn thanh cuộn nếu muốn (tùy chọn) */
    scrollbar-width: none; /* Firefox */
}

/* Ẩn thanh cuộn cho Chrome, Safari, Edge (tùy chọn) */
.tab-prod ul.nav.nav-simple::-webkit-scrollbar {
    display: none;
}
	
	.custom-badge {
           top: -165px !important;
}
	
	
	.custom-quick-view a {
   
       padding: 10px 0px !important;
   
}
	
	
	.product-small.box {
    min-height: 304px;
}
	
	.svg-white {
    position: relative;
    z-index: 99;
    line-height: 0;
    margin-bottom: -34px;
    pointer-events: none;
}
	
	
/* 	.mfp-container.mfp-s-ready.mfp-inline-holder {
    left: 30px;
} */
	
    .text-tu-hao-vn h5::before {
        position: absolute;
        top: 12px;
        right: 14px;
    }
	.blog-home .author-img img {
    left: -260px;
}
	
	
	.footer-secondary.pull-right{
		display:none;
	}
	
	.absolute-footer.dark {
    height: auto;
    padding: 10px 0px 15px;
}
	
	.off-canvas .sidebar-menu {
    padding: 30px 0 0 55px;
}
	
	
	h2.category-main-title {
    margin-bottom: 34px;
    font-size: 24px;
    margin-top: 25px;
}
	.author-img img {
   left: -252px !important;
}
	
	.custom-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 8px !important;;
    color: #ccc;
    gap: 8px;
    padding: 10px 0;
    justify-content: center;
}
	
	h6.entry-category {
    width: auto;
   
}
	
	
	.sm-header {
  display: block !important;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    padding: 0 10px;
    /* margin-top: 9px; */
}
	
	.sm-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px !important;
}
.sm-sidebar-top {
    padding: 18px 10px !important;
   
}
	
	h1.product-title.product_title.entry-title {
    color: #333333;
    font-size: 24px;
}
	
	.product-info .breadcrumbs {
    font-size: 12px;
    margin: 0 0 .5em;
}
	.sm-map-view iframe#smIframe {
    height: 350px;
}
	
	.row-5-col>.col {
    flex-basis: 100%;
    max-width: 100%;
}
}