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

/*************** ADD CUSTOM CSS HERE.   ***************/
h1, h2, h3, h4, h5, h6 {
    text-wrap: inherit;
}
li.menu-item.menu-item-gtranslate > div{
    margin-left: 20px;top: -12px;
}
p.from_the_blog_excerpt {
    display: none;
}
/* Text ban đầu nằm ẩn dưới */
.box-overlay .box-text.text-center{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.5s ease;
}
/* Khi hover vào box thì text trượt lên giữa */
.box-overlay:hover .box-text.text-center {
    bottom: 35%;
    right: 0;
    transform: translate(-50%, 50%);
    opacity: 1;
    background: transparent;
}
.box-overlay:hover p.from_the_blog_excerpt {
    display: inherit;
    font-size: 13px;
}

.header-contact li a span {
    text-transform: initial !important;
}
.dichvuhome .box-blog-post .is-divider {
    display: none;
}
.dichvuhome h5.post-title {
    font-weight: 500;
}
.dichvuhome .box-blog-post{
    
}
.menuthuonghieu {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
}

.menuthuonghieu .ux-menu-link.flex.menu-item a {
    background: #E2E8F0;
    padding: 10px 20px;
    border-radius: 10px;
    min-height: auto;
}
.allproduct a.ux-menu-link__link{
    background: #EE8844 !important;
    color: #fff;
}
.bannerwhy{
    border-radius: 15px;
    overflow: hidden;
}
a.button{
    font-weight: 400;
}

/* Vùng chứa không cho tràn */
.slide-option {
    max-height: 600px; /* hoặc chiều cao bạn muốn */
    overflow: hidden;
    position: relative;
}
/* Vùng cuộn */
.scroll-container {
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: scroll-up 20s linear infinite;
}

/* Mỗi ảnh */
.scroll-container .img {

}

.scroll-container .img-inner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    aspect-ratio: 1 / 1;  /* Vuông 1:1 */
    overflow: hidden;
    border-radius: 15px;
}

/* Animation từ dưới lên trên (mặc định cho PC) */
@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@media screen and (max-width: 430px) {
    .slide-option {
        max-height: 560px;
        overflow: hidden;
        width: 100%;
    }
    .scroll-container {
        overflow: visible;
    }
    .scroll-container {
        display: flex;
        flex-direction: row;
        width: 100%;
        animation: scroll-left 10s linear infinite;
        height: auto;
        gap: 10px; /* tạo khoảng cách giữa các ảnh */
    }

    .scroll-container .img {
        width: 250px;
        min-width: 250px;
        height: auto;
    }

    .scroll-container .img-inner {
        height: auto;
    }

    .scroll-container .img-inner img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 560px;
        object-fit: cover; /* dùng 'cover' để ảnh căn đều vùng ảnh */
        border-radius: 12px;
    }

    @keyframes scroll-left {
        0% {
          transform: translateX(0);
      }
      100% {
          transform: translateX(-100%);
      }
  }
}

/* scroll-down*/
.slide-option2 {
    margin-top: 50px;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.scroll-container2 {
    display: flex;
    flex-direction: column;
    animation: scroll-loop-down 30s linear infinite;
}

.scroll-container2 .img {
    flex-shrink: 0;
    margin-bottom: 10px;
}

.scroll-container2 .img-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    aspect-ratio: 1 / 1;  /* Vuông 1:1 */
    overflow: hidden;
    border-radius: 15px;
}

/* Scroll từ dưới lên rồi quay lại đầu */
@keyframes scroll-loop-down {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

/*widget*/
.recent-blog-posts-li .post_comments{display:none;}
.widget-title {
    background-color: #172e54;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    margin-bottom: 10px;
    display: block;
}
.widget .is-divider {
    margin-top: .66em;
    display: none;
}
ul.product_list_widget,#support-online ul,#filter-form,.flatsome_recent_posts ul{
    background: var(--mainColor2);
    border: 2px dotted #dbdbdb;
    line-height: 30px;
    padding: 5px 10px;
}
/*Blog*/
.page-title {
    text-align: left;
    font-size: 24px;
}
.box.box-blog-post .box-image .image-cover,.relatedthumb{
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.box.box-blog-post .box-image .image-cover img,.relatedthumb img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* cắt ảnh cho vừa khung */
    display: block;
}
.box.box-text-bottom.box-blog-post.has-hover {
    background: #f2f2f2;
    border-radius: 15px;
    border: 1px solid #d3d3d3;
    overflow: hidden;
}
.box-text.text-left {
    padding: 15px;
}
.widget .is-divider {
    margin-top: .66em;
    display: none;
}
.product-hotline,.product-policises-wrapper {
    background: var(--mainColor2);
    border: 2px dotted #dbdbdb;
    line-height: 30px;
    padding: 5px 10px;
}
.badge.post-date.badge-outline {
    width: 90px;
    height: 60px;
}
span.post_comments.op-7.block.is-xsmall {
    display: none;
}
.flex-row.recent-blog-posts.align-top.pt-half.pb-half {
    padding-top: 15px;
}
.recent-blog-posts a {
    font-size: 14px;
}
.type-post h1.entry-title {
    text-align: left
}
.type-post .article-inner.has-shadow .entry-header-text-top {
    padding-top: 0;
    padding-bottom: 0
}
.type-post .entry-divider {

}
.entry-header-text.entry-header-text-top.text-left {
    padding-top: 0;
    padding-bottom: 0;
}
.entry-content {
    padding-top: 5px;
}
#toc_container p.toc_title {
    text-align: left;
}
.blog-wrapper>.archive-page-header {
    /*
    background: url(/wp-content/uploads/2024/07/bg-breadcrumb.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    margin-bottom: 20px;
    min-height: 334px;
    display: flex;
    align-items: center;
    position: relative;
    */
}
/*Blog*/

/*Sản phẩm*/
.sanpham-home > .col > .col-inner {
    border: 1px solid #d3d3d3;
    border-radius: 10px;
    overflow: hidden;
}
p.name.product-title.woocommerce-loop-product__title a {
    padding: 10px 0;
    font-weight: 400;
    color: #1A1A1A;
    font-size: 14px;
    text-align: left;
}
.shop-container .products .col-inner {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #d3d3d3;
}
.box-text.box-text-products {
    padding: 15px 10px;
}
select.orderby{
    font-size: 15px;
}
.product-gallery-slider img.wp-post-image.ux-skip-lazy {
    width: 100%;
    border: 1px solid #d3d3d3;
    border-radius: 15px;
}
/*Sản phẩm*/
.bg-giaiphap1 {
    border-radius: 30px;
    overflow: hidden;
}


@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/
    .menuthuonghieu {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: flex-start;
        flex-wrap: nowrap!important;
        overflow-x: auto!important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        margin: 0;
        list-style: none;
        scrollbar-width: none;
        -ms-overflow-style: none;
        min-width: 100%
    }

    .menuthuonghieu .ux-menu-link.flex.menu-item a {
        font-size: 13px
    }

}