/*
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;
}
/*
Css menu đa cấp cho Flatsome
*/
.nav-dropdown-default {
    padding: 0px;
}
.nav-dropdown .menu-item-has-children>a, .nav-dropdown .nav-dropdown-col>a, .nav-dropdown .title>a {
    font-size: 15px;
}
@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: 250px;
        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;
    }
    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;
    }
}

/* Thêm mũi tên xuống ở cuối mục menu đa cấp */
.menu-item-has-children.nav-dropdown-col::after {
    content: "\25BC"; 
    font-size: 14px;
    color: #fff;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}
/* Thay đổi mũi tên khi mở submenu (hoặc hover) */
header#header .nav-dropdown li.menu-item-has-children {
    position: relative;
}

header#header .nav-dropdown li.menu-item-has-children > a::after {
    content: "\25B8";
    font-size: 14px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #333; /* Màu mũi tên */
}
/* Khi hover vào mục có submenu, mũi tên sẽ xoay xuống */
header#header .nav-dropdown li.menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(90deg);
}
/* Mũi tên phải cho các submenu con */
header#header .nav-dropdown li.menu-item-has-children > ul.sub-menu li.menu-item-has-children > a::after {
    content: "\25B8";
    font-size: 14px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #333;
}

/* Khi hover vào submenu con, mũi tên xoay để chỉ submenu con mở */
header#header .nav-dropdown li.menu-item-has-children > ul.sub-menu li.menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(90deg);
}
ul.sub-menu.nav-dropdown.nav-dropdown-default {
    max-height: 80vh !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    display: block !important;
}
a.wv-chat-btn.wv-kakaotalk {
    background: #cad108;
}
#header ul.header-nav.header-nav-main {
    justify-content: center;
}
@media screen and (min-width: 850px) {
	.slidehome .flickity-slider > * {
	    margin: 10px !important;
	    padding: 10px !important;
	    min-height: 348px !important;
	}
	.slidehome .flickity-page-dots {
	    bottom: -10px;
	}
}
.diadiemhome h1 {
    margin-bottom: 15px;
}
.heading-subtitle-span {
    display: inline-flex;
}
.heading-subtitle-span h3,.heading-subtitle-span h4 {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    padding: 5px 20px;
    border-radius: 20px;
    display: inline;
    color: #b74906;
    border: 1px solid #b74906;
}
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.blog-category {
    background: #F6F6F6;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    display: inline-block;
}

.blog-category:hover {
    background: #ff6600;
    color: #fff;
}

.csscolhome h5.post-title {
	font-size: 13px;
	font-weight: normal;
    max-height: 3.375rem;
    overflow: hidden;
}
.spahome .col.post-item > .col-inner{
	background: #fff;
    padding: 20px;
    border-radius: 15px;
}
.spa2home .col.post-item > .col-inner{
	background: #fff;
    padding: 10px;
    border-radius: 15px;
}
.spa2home .flickity-slider .col.post-item .col-inner {
    border-radius: 10px;
    overflow: hidden;
}
.spahome .col.post-item .box-text {
    padding-bottom: 0;
}
.col.post-item {
    display: flex;
}
.tabndhome li.tab.active > a{
    color: #000;
    border-radius: 10px 10px 0 0;
}
.tabndhome li.tab > a{
	border: none;
    font-size: 16px;
    color: #fff;
    padding: 10px 30px;
    font-weight: 500;
}
.csscolhome{
	padding-bottom: 0;
}
.slider-nav-dots-dashes-spaced .flickity-page-dots .dot {
    width: 15px;
}
.flickity-page-dots .dot.is-selected {
    background-color: #F9920A !important;
    border: 3px solid #F9920A;
}

/*Blog*/
.blog-wrapper > .archive-page-header {}
.blog-wrapper > header.archive-page-header::before {}
.category .blog-archive.page-wrapper {}
.blog-wrapper > .archive-page-header h1.page-title {
    text-align: left;
    font-size: 28px;
    margin: 0;
}
.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 {
    display: none;
}
.breadcrumbs {
    padding: 1.5em; padding-bottom: 0;
}
#post-list {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}
.page-content form.searchform { display: none; }

@media screen and (min-width: 850px) {
    .box-list-view .box .box-image, .box-vertical .box-image {
        width: 28% !important;
    }
}

/*Widget*/
@media only screen and (min-width : 1025px) {
    div#secondary, .single_sidebar > .col-inner {
        position: sticky;
        top: 112px;
    }
}
.badge {
    height: 3.8em;
    width: 4.8em;
}
.widget-title {
    background-color: #b74906;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    margin-bottom: 10px;
    display: block;
}
.product-hotline, .product-policises-wrapper, .widget ul {
    background: #fff;
    border: 2px dotted #dbdbdb;
    padding: 5px 10px;
    font-weight: 500;
}
.widget .is-divider {
    margin-top: .66em;
    display: none;
}
.recent-blog-posts-li .post_comments {
    display: none;
}
.recent-blog-posts a {
    font-size: 13px;
}

/*Baivietlienquan*/
.relatedthumb img {
  height: 100%;
  max-height: 165px;
  min-height: 125px;
}
#related_posts {
  border-top: 4px double #e8e8e8;
  padding-top: 10px;
}
.relatedcontent a {
	color: #000;
    font-weight: 400;
    line-height: 19px;
    display: inline-block;
    margin-top: 5px;
    font-size: 15px;
}
.icon-menu:before {
    color: #fff;
}

@media only screen and (max-width: 48em) {
	.slidehome .flickity-page-dots {
	    bottom: -15px;
	}
	.nav-tabs+.tab-panels {
	    padding: 10px;
	}
	ul.nav.nav-tabs.nav-normal.nav-size-normal.nav-center {
	    display: flex;
	    flex-wrap: nowrap;
	    justify-content: space-around;
	}
	.tabndhome li.tab > a {
	    border: none;
	    font-size: 14px;
	    color: #fff;
	    padding: 5px 9px;
	    font-weight: 500;
	}
	iframe.Instagramhome {
	    height: 430px;
	}
	.box-overlay.dark .box-text, .box-shade.dark .box-text {
	    padding: 10px;
	}
    .header-main .nav > li > a {
        line-height: 16px;
        color: #fff;
    }
}

/* ==========================================================
   DESKTOP MENU GỐC (Giữ nguyên vẹn tuyệt đối cho Laptop)
   ========================================================== */
.nav-dropdown li > ul {
    display: none !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding-left: 15px !important;
}
.nav-dropdown li:hover > ul {
    display: block !important;
}
.nav-dropdown > li > a {
    text-transform: none !important;
    font-weight: normal !important;
    font-size: inherit !important;
    font-family: inherit !important;
}

/* ==========================================================
   MOBILE MENU - SỔ TRỰC TIẾP BẰNG HOVER/FOCUS VÀ ĐỊNH VỊ CHUẨN
   ========================================================== */
@media screen and (max-width: 768px) {
    .header, .header-wrapper {

    }
    .absolute-footer {
        margin-bottom: 50px !important;
        display: inline-block;
        width: 100%;
    }
    
    .menu-container {
        width: 100%;
        overflow: visible !important;
        padding: 5px 0;
        background-color: #fff;
        border-bottom: 1px solid #ddd;
        position: fixed;
        left: 0;
        top: 70px;
        z-index: 9;
    }

    .menu-container .custom-menu-items {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 0 10px;
        margin: 0;
        list-style: none;
        scrollbar-width: none;
        -ms-overflow-style: none;
        min-width: 100%;
    }

    .menu-container .custom-menu-items::-webkit-scrollbar {
        display: none;
    }

    .menu-container .custom-menu-items .menu-item {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 5px 10px;
        margin-right: 10px;
        margin-bottom: 0;
        border: 1px solid #ddd;
        border-radius: 20px;
        background-color: #fff;
        cursor: pointer;
        transition: background-color 0.3s;
        min-width: 100px !important;
        position: relative !important;
    }

    .menu-container .custom-menu-items .menu-item.active,
    .menu-container .custom-menu-items .menu-item.current-menu-item,
    .menu-container .custom-menu-items .menu-item.current_page_item {
        background-color: #e0f7fa;
        border-color: #00acc1;
    }

    .menu-container .custom-menu-items .menu-item:hover {
        background-color: #f0f0f0;
    }

    .menu-container .custom-menu-items .menu-item a {
        font-size: 14px;
        color: #333;
        text-decoration: none;
        white-space: nowrap;
        width: 100%;
        text-align: center;
    }

    /* Ép hiển thị trực tiếp danh mục con khi có class mobile-open hoặc focus/active/hover */
    .menu-container .custom-menu-items .menu-item .sub-menu,
    .menu-container .custom-menu-items .menu-item .nav-dropdown {
        display: none !important;
    }

    .menu-container .custom-menu-items .menu-item.mobile-open > .sub-menu,
    .menu-container .custom-menu-items .menu-item.mobile-open > .nav-dropdown,
    .menu-container .custom-menu-items .menu-item:hover > .sub-menu,
    .menu-container .custom-menu-items .menu-item:hover > .nav-dropdown,
    .menu-container .custom-menu-items .menu-item:focus-within > .sub-menu,
    .menu-container .custom-menu-items .menu-item:focus-within > .nav-dropdown,
    .menu-container .custom-menu-items .menu-item:active > .sub-menu,
    .menu-container .custom-menu-items .menu-item:active > .nav-dropdown {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        min-width: 180px !important;
        max-width: 250px !important;
        width: auto !important;
        background-color: #fff !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
        padding: 8px 0 !important;
        z-index: 9999 !important;
        white-space: normal !important;
    }

    .menu-container .custom-menu-items .menu-item li {
        float: none !important;
        display: block !important;
        width: 100% !important;
        border: none !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .menu-container .custom-menu-items .menu-item li a {
        text-align: left !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
        color: #333 !important;
        white-space: nowrap !important;
        background: transparent !important;
    }
    
    .menu-container .custom-menu-items li ul {
        padding-left: 10px !important;
        display: block !important;
        position: relative !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }
}