/*
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.   ***************/
.header-button .button.is-outline,
.header-button input[type=button].is-outline,
.header-button input[type=reset].is-outline,
.header-button input[type=submit].is-outline {
    background-color: transparent;
    border: unset;
}

.absolute-footer.dark {
    display: none;
}


ul.header-nav.header-nav-main.nav {
    display: flex;
    gap: 3px;
}


input#woocommerce-product-search-field-0 {
    width: 155px;
}
.box-text.box-text-products * {
    text-align: center;
}

.sidebar-wrapper .is-divider.small,
.is-divider.small {
    display: none;
}

span.widget-title.shop-sidebar {
    display: block;
    font-size: 16px;
    background: #ffca05;
    font-weight: 600;
    padding: 15px;
    color: #000;
    width: 100%;
    width: 100%;
    box-sizing: border-box;
}

ul.product-categories {
    margin-top: 18px;
}


.text-ok {
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.text-ok::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-bottom: 5px solid rgb(255, 202, 5);
    transition: all 0.3s ease;

}

p.name.product-title.woocommerce-loop-product__title a {
    color: #397fc0;
    text-align: center;
}
p.name.product-title.woocommerce-loop-product__title a:hover {
    color: #000;
}

.section-blog .box-text-inner.blog-post-inner h5.post-title.is-large,
.section-blog p.from_the_blog_excerpt {

    color: #000;
}

.section-blog .box-blog-post:hover .post-title a {
    color: #ffca05 !important;
}

.blog-home-right .box.box-vertical.box-text-bottom {
    border-bottom: 1px solid rgba(98, 98, 98, 0.50);
    padding-bottom: 32px;
}

p {
    text-align: justify;
}


.blog-trang-tin-tuc img {
    border-radius: 20px;
}

ul.ux-relay__pagination.page-numbers.nav-pagination.links {
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.nav-dropdown {

    min-width: 416px;

}


.nav-dropdown-default .nav-column li>a,
.nav-dropdown.nav-dropdown-default>li>a {
    color: #000;
}


.nav-dropdown-default .nav-column li>a:hover,
.nav-dropdown.nav-dropdown-default>li>a:hover {
    color: #ffca05;
    padding-left: 5px;
}

i.icon-envelop::after {
    content: " Mail";
    font-size: 14px;
    margin-left: 5px;
    color: #bebebe;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}


.banner-gra {
    position: relative;
}

.banner-gra::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 0, 0, 0), #000);
    z-index: 1;
    pointer-events: none;
}

.banner-layers {
    position: relative;
    z-index: 2;
}

.img-box-5-slide .box-text.text-center {
    background-color: #2b2b2b;
    display: grid;
    flex-grow: 1;
    padding: 15px;
}

.section-yellow .flickity-page-dots,
.section-gra-grey .flickity-page-dots {
    bottom: -9px;
}

.section-yellow {
    border-top: 6px solid #fc0;
    border-bottom: 6px solid #fc0;
}

.section-yellow span.ux-menu-link__text {
    color: #919191;
    font-size: 14px;
    transition: all 0.3s ease;
}

.section-yellow span.ux-menu-link__text:hover {
    color: #fc0;
}

a.button.primary.lowercase.btn-grey {
    background-color: #bbb;
    color: #000;
    font-weight: 100;
}

.section-gra-grey {
    background: linear-gradient(0deg, #464646, rgba(0, 0, 0, .9));
}


.section-gra-grey .box-text.text-center {
    background-color: #292929;
}

.section-gra-grey .box-text.text-center p {
    text-align: unset;
}

.btn-grey-dark {
    background: #292929;
}


.img-box-edu .box-image {
    display: flex;
    background: #a9a9a9;
    min-height: 341px;
    padding: 30px 50px;
    justify-content: center;
    align-items: center;
}


.img-box-edu .box-text.text-center {
    padding: 15px;
    background: #ebebeb;
    text-align: left;
    font-size: 16px;
}

.img-box-edu .menu-item:nth-child(odd) {
    background-color: #e2e2e2;
}

.img-box-edu .menu-item:nth-child(even) {
    background-color: transparent;
}


.img-box-edu .ux-menu-link {
    position: relative;
    padding-right: 24px;
    /* tạo khoảng trống cho mũi tên */
}

.img-box-edu .ux-menu-link::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    /* cách mép phải một chút */
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    background-image: url('/wp-content/themes/flatsome-child/assets/img/arrw.webp');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}


.img-box-edu .ux-menu-link.flex.menu-item {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
    padding: 5px 10px 0px;
}

.img-box-edu .ux-menu-link.flex.menu-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #fc0;
    z-index: 0;
    transition: none;
}

.img-box-edu .ux-menu-link.flex.menu-item:hover::before {
    animation: bgFillLeftToRight 0.5s forwards;
}
.img-box-edu .ux-menu-link__link, .img-box-edu .ux-menu-link__text {
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.prod-cate .header-title {
    text-transform: none;
    font-weight: 500;
    font-size: 13px;
}

@keyframes bgFillLeftToRight {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}


.header-button a.button.primary.is-outline {
    font-size: 14px;
}

.product-small.box {
    border: 1px solid #eee;
    box-shadow: 1px 2px 6px rgba(0, 0, 0, .08);
}

.product-small .box-image {
    width: 4cm;
    height: 4cm;
    display: flex
;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}


.product-small .box-image img {
    max-width: 80%;
    max-height: unset;
    object-fit: contain;
    margin: 0 auto;
    display: flex
;
}
p.name.product-title.woocommerce-loop-product__title {
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* min-height: 3em; */
}

.post-item .box-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.info-bar {
    justify-content: center;
}

.blog-trang-tin-tuc .post-item p.from_the_blog_excerpt {
    text-align: center;
}

button.single_add_to_cart_button.button.alt {
    background: #ffca05;
}

.product-gallery-slider img, .product-thumbnails img {
    width: 80%;
    display: flex
;
    margin: 0 auto;
}

.woocommerce-product-gallery__wrapper.product-gallery-slider {
    box-shadow: 1px 2px 6px rgba(0, 0, 0, .08);
}

.product-footer p,
.product-footer li{
    font-size: 14px;
}

.entry-content.single-page * {
    font-size: 16px;
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/

    i.icon-menu {
        color: #000;
    }

    .social-icons.follow-icons,
    .sidebar-menu a {
        color: #000 !important;
        transition: all 0.3s ease;
    }

    .social-icons.follow-icons i.icon-envelop::after {
        color: #000;
    }

    .sidebar-menu a:hover {
        color: #fc0 !important;
    }

    .header-button a.button.primary.is-outline {
        font-size: unset;
        color: #000;
        padding: 0px;
    }
}