/*
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.   ***************/
h1, h2, h3, h4, h5 {
	line-height: inherit;
}
.banner h1, .banner h2, .banner h3, .banner h4 {
	line-height: inherit;
}
p {
	margin-bottom: 10px;
}
p:last-child {
	margin-bottom: 0;
}
b, strong {
	font-weight: bold;
}
.section > .section-content > .row > .col {
	padding-bottom: 0;
}

.post-item .post-title {
	text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.post-item .box:hover .post-title {
	color: var(--primary-color);
}
.box-blog-post .is-divider {
	display: none;
}

.product-small > .col-inner {
	padding-top: 10px;
	padding-bottom: 10px;
}
.product-small.box {
	background-color: #fff;
	border-radius: 5px;
    box-shadow: 2px 0 5px #c4c4c4;
	padding: 10px;
	border-bottom: 2px solid #fff;
}
.product-small.box:hover {
	border-bottom: 2px solid var(--primary-color);
}
.product-small.box .box-image {
	overflow: hidden;
}
.product-small.box .box-image img {
	height: 200px;
	object-fit: cover;
}
.product-small.box .box-text {
	padding: 15px 10px 10px;
}
.product-small.box .product-title a {
	font-size: 18px;
	font-weight: bold;
	text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
	text-transform: uppercase;
}
.product-small.box:hover .product-title a {
	color: var(--primary-color);
}
.product-small.box .amount, 
.product-small.box ins .amount, 
.product-small.box .amount {
	color: #ef0000;
	font-weight: bold;
	font-size: 16px;
}
.product-small.box del {
	text-decoration: none;
}
.product-small.box del .amount {
	color: #333;
	opacity: .8;
	text-decoration: line-through;
	font-size: 14px;
}
.no-price .product-small.box .price {
	display: none;
}
.custom-short-desc {
	text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
	margin-bottom: 10px;
}
.product-info .amount {
	color: #ef0000;
	font-weight: bold;
	font-size: 28px;
}
.product-info del {
	text-decoration: none;
}
.product-info del .amount {
	color: #333;
	opacity: .8;
	text-decoration: line-through;
	font-size: 16px;
}
.absolute-footer.light {
	background-color: #fff;
	padding: 10px;
}


/* Fixed Menu on Scroll - CSS */
.block-menu {
  transition: all 0.2s ease;
}

.block-menu.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.block-menu-placeholder {
  display: none;
}

.block-menu-placeholder.active {
  display: block;
}

.widget .is-divider {
	display: none;
}
.widget span.widget-title {
	display: block;
	background-color: #eb241f;
	color: #fff;
	text-align: center;
	font-size: 16px;
	padding: 12px;
}
.recent-blog-posts a {
	text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-short-description {
	font-size: 14px;
}
.product-short-description b, .product-short-description strong {
	color: var(--primary-color);
}
.product-short-description ul li {
	list-style: none;
	margin-left: 0;
}
h1.product-title {
	color: var(--primary-color);
}
.dx-section-content h2 {
    color: #ffffff;
    background: linear-gradient(to right, #00abe9, #fff);
    padding: 5px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 24px;
}
h1.entry-title, 
h1.page-title {
	text-align: left;
	font-size: 26px;
	margin-bottom: 0;
	color: var(--primary-color);
}
.archive .post-item .post-title {
	font-size: 18px;
}
.archive .post-item .from_the_blog_excerpt {
	color: #666;
}
.archive .post-item .box.box-vertical {
	background-color: #fff;
    border-radius: 5px;
    box-shadow: 2px 0 5px #c4c4c4;
    padding: 10px;
}
.entry-header-text {
	padding-bottom: 0;
}

@media (min-width: 850px) {
	#logo img {
		position: absolute;
		top: 0;
		border-radius: 0 0 6px 6px;
		border-bottom: 2px solid var(--primary-color);
		min-height: 80px !important;
		background-color: #fff;
	}
	.stuck #logo img {
		min-height: 60px !important;
	}
}
@media (min-width: 768px) {
    .navbar-nav {
        float: left;
        margin: 0;
    }
}

/* ==========================================================
   dx_menu_detail - Menu ngang cuộn tab
   ========================================================== */

.dx_menu_detail {
    position: relative;
}

.dx_menu_detail ul.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dx_menu_detail ul li {
    text-transform: uppercase;
    border-right: 1px solid #ffffff;
    margin-left: 0;
    white-space: nowrap; /* không cho chữ xuống dòng khi cuộn ngang */
}

.dx_menu_detail ul li:last-child {
    border: none;
}

.dx_menu_detail ul li a {
    display: block;
    padding: 5px 10px !important;
    color: #787878;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.dx_menu_detail ul li a i,
.dx_menu_detail ul li a strong {
    font-size: 20px;
}

/* Trạng thái active khi cuộn tới đúng section (JS thêm class .active) */
.dx_menu_detail ul li a.active {
    color: #d4232c; /* đổi theo màu thương hiệu */
    border-bottom: 2px solid #d4232c;
}

/* ==========================================================
   TABLET (≤ 991px)
   ========================================================== */
@media (max-width: 991px) {
    .dx_menu_detail {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox: ẩn scrollbar */
    }

    .dx_menu_detail::-webkit-scrollbar {
        display: none; /* Chrome/Safari: ẩn scrollbar */
    }

    .dx_menu_detail ul.navbar-nav {
        flex-wrap: nowrap;
        width: max-content; /* cho phép danh sách rộng hơn màn hình */
    }

    .dx_menu_detail ul li a {
        padding: 12px 14px !important;
        font-size: 13px;
    }

    /* Hiệu ứng mờ 2 bên mép để gợi ý còn nội dung có thể cuộn */
    .dx_menu_detail::before,
    .dx_menu_detail::after {
        content: "";
        position: sticky;
        top: 0;
        height: 100%;
        width: 24px;
        z-index: 2;
        pointer-events: none;
    }
    .dx_menu_detail::before {
        left: 0;
        background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0));
    }
    .dx_menu_detail::after {
        right: 0;
        background: linear-gradient(to left, rgba(255,255,255,0.95), rgba(255,255,255,0));
    }
}

/* ==========================================================
   MOBILE (≤ 575px)
   ========================================================== */
@media (max-width: 575px) {
    .dx_menu_detail ul li a {
        padding: 10px 12px !important;
        font-size: 12px;
    }

    .dx_menu_detail ul li a i,
    .dx_menu_detail ul li a strong {
        font-size: 16px;
    }

    /* Nút "về đầu trang" gọn lại, không chiếm nhiều chỗ */
    .dx_menu_detail ul li:first-child a {
        padding: 10px 8px !important;
    }
}
/* */
.cus-blog .col.post-item {
    padding-bottom: 25px;
}