body::after {
    content: '';
    display: block;
    height: 0px;
}


body {
	background: #e7f8ff;
	background-size: cover;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Tắt gạch dưới cho toàn site */
a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none !important;
}

/* Nếu dùng Bootstrap: chặn các class hay tự underline */
.nav-link,
.nav-link:hover,
.btn-link,
.btn-link:hover,
.btn-link:focus,
[class^="link-"],
[class^="link-"]:hover,
[class*=" link-"],
[class*=" link-"]:hover {
  text-decoration: none !important;
}

	
.card {
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}


.table th, .table td {
    white-space: nowrap;
}


#postsListContainer {
    max-height: 100%; /* Chiều cao tối đa của danh sách */
    overflow-y: auto; /* Kích hoạt thanh cuộn dọc */
    border: 1px solid #ddd; /* Viền cho danh sách */
    padding: 10px; /* Khoảng cách bên trong */
    background-color: #000; /* Màu nền */
}
.list-group-item {
    cursor: pointer; /* Hiển thị con trỏ khi hover vào item */
}
.list-group-item:hover {
    background-color: #f5f5f5; /* Hiệu ứng hover */
}

.chat-input-container > label {
    margin-bottom: 0rem; /* icon upload ảnh cân bằng */
}


/* custom theme nav.php */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

.dropdown:hover .dropdown-menu {
    display: block;
}


/* custom theme footer.php */
footer p, footer a {
    color: #555;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    text-decoration: none;
    color: #d63384;
	font-weight: 500;
}

/* Footer Contact Info */
footer .col-md-3 img {
    max-width: 100%;
}

footer .col-md-3 p i {
    color: #d63384; /* Màu nổi bật */
    margin-right: 10px;
}

/* Footer Navigation */
footer ul {
    padding: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li i {
    color: #d63384;
    margin-right: 8px;
}

/* Social Media Icons */
footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #d63384;
    color: white;
    transition: background 0.3s ease;
}

footer .social-links a:hover {
    background-color: #b02a67;
}

/* custom theme breadcrumb  */
#breadcrumb {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
}

#breadcrumb li {
	display: flex;
	align-items: center;
}

#breadcrumb li a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
}

#breadcrumb li a:hover {
	color: #d9534f; /* Màu đỏ khi hover */
}

#breadcrumb li i {
	margin-right: 5px;
}

#breadcrumb li:last-child a {
	color: #555;
	font-weight: bold;
}

#breadcrumb li i.fa-chevron-right {
	color: #999;
	margin: 0 8px;
}

#breadcrumb {
    font-size: clamp(12px, 2vw, 18px); /* Font chữ co giãn từ 10px đến 18px */
    white-space: nowrap; /* Không xuống dòng */
    overflow: hidden; /* Ngăn chặn tràn nội dung */
    text-overflow: ellipsis; /* Hiển thị dấu "..." nếu quá dài */
}

#breadcrumb a {
    font-weight: bold;
    text-decoration: none;
    color: #333; /* Màu chữ */
}

#breadcrumb i {
    font-size: clamp(12px, 2.2vw, 20px); /* Icon co giãn cùng font chữ */
}

@media (max-width: 400px) {
    #breadcrumb {
        font-size: 12px; /* Chữ sẽ nhỏ hơn nữa nếu màn hình cực nhỏ */
    }
}

/* custom theme post xem thêm và thu gọn  */
.description-content {
    max-height: 200px; /* Giới hạn chiều cao ban đầu */
    overflow: hidden;
    position: relative;
}

.description-content.expanded {
    max-height: none; /* Khi mở rộng, hiển thị toàn bộ */
}

/* custom theme post cùng chuyên mục  */
@media (max-width: 768px) {
    .card.h-100 {
        height: auto !important;
    }
}


/* custom theme slide index  */
ul.slick-dots {
    position: absolute;
    margin: -20px;
}


/* custom theme slide post item  */
.carousel-cell {
    width: 100%;
    height: auto;
}

.thumbnail-carousel .carousel-cell {
    width: 20%;
    cursor: pointer;
    margin-right: 5px;
}

.thumbnail-carousel img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.main-carousel img {
    width: 100%;
    border-radius: 10px;
}


/* --- Định dạng danh sách bước --- */
.step-item {
    position: relative;
    text-align: center;
    flex: 1;
    font-weight: bold;
    color: #6c757d;
}

.step-item a {
    display: inline-block;
    padding: 10px;
    color: inherit;
    text-decoration: none;
	cursor: pointer;
}

.step-item.completed {
    color: #28a745;
}

.step-item.active {
    color: #007bff;
    font-weight: bold;
}

/* --- Tooltip khi di chuột vào --- */
.tooltip-cart {
    position: relative;
}

.tooltip-cart::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 80%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.tooltip-cart:hover::before {
    opacity: 1;
    visibility: visible;
}

/* --- Định dạng thanh tiến trình --- */
.progress {
    height: 5px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: #28a745;
    transition: width 0.5s ease-in-out;
}

/* custom theme number đơn hàng  */
.cart-badge {
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 50%;
    position: absolute;
    top: -10px; /* Đẩy số lượng lên trên */
    right: -8px; /* Đẩy sang phải */
    min-width: 22px;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* custom theme show menu mobile    */
/* Menu Mobile */
.mobile-menu {
	background: #fff;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	padding-top: 20px;
	position: relative;
}

/* Nút đóng bằng FontAwesome */
.close-mobile-menu {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	color: #333;
	cursor: pointer;
	font-size: 28px;
}

.close-mobile-menu:hover i {
	color: red;
}

/* Menu items */
.mobile-menu .nav-link {
	color: #333;
	padding: 10px 15px;
}

.mobile-menu .nav-link:hover {
	background: #28a745;
	color: white;
}

/* custom theme menu cửa hàng desktop  */
.dropdown-menu.mega-menu {
    margin-top: 0px;
	margin-left: -220px;
}

/* Định dạng menu dropdown */
.mega-menu {
    width: 1135px; /* Điều chỉnh độ rộng */
    background: #ffffff;
    border-radius: 5px;
}

/* Hiển thị menu khi hover */
.nav-item.dropdown:hover .mega-menu {
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1000;
}

/* Hiển thị menu dưới dạng 4 cột */
.mega-menu .col-md-3 {
    padding: 10px;
}

/* Thiết lập màu sắc và hiệu ứng hover */
.mega-menu .dropdown-item {
    color: #333;
    padding: 8px 15px;
    transition: all 0.3s;
}

.mega-menu .dropdown-item:hover {
    background: #f8f9fa;
    color: #007bff;
}


/* custom theme card sản phẩm */
.product-card {
    height: 100%; /* Đảm bảo tất cả các card có chiều cao bằng nhau */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

.product-card img {
    height: 160px; /* Định chiều cao cố định cho ảnh */
    object-fit: cover;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Giữ tiêu đề sản phẩm có chiều cao đồng nhất */
.product-card .card-title {
    height: 60px; /* Định chiều cao tiêu đề */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Giới hạn số dòng tối đa */
    -webkit-box-orient: vertical;
}

/* Đảm bảo card-body lấp đầy khoảng trống và căn chỉnh nội dung dưới cùng */
.product-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* custom theme dropdown profile */
ul.dropdown-menu {
    margin-top: 0px !important;
    margin-left: -85px !important;
}

/* custom theme icon liên hệ */
.fixed-right {
    position: fixed;
    z-index: 9999;
    right: 5px;
    transform: translateY(-50%);
    top: calc(70% + 10px) !important;
    width: 50px;
    text-align: center;
    overflow: hidden;
}

.fixed-right a {
    margin-bottom: 10px;
    width: 40px;
    height: 40px;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.fixed-right a:hover {
    transform: scale(0.9);
}

/* Hiệu ứng động cho nút gọi điện thoại */
.fixed-right a.phone {
    border-radius: 50%;
    background: #64bc46;
    padding: 6px;
    animation: quick-alo-circle-img-anim 1s infinite ease-in-out;
}

/* Hiệu ứng rung lắc cho ảnh điện thoại */
@keyframes shake-animation {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

.fixed-right a.phone img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    animation: shake-animation 1s infinite ease-in-out;
}

/* custom theme liên hệ pro */
.phone-mobile {display: none;}
.supper-nav {
    position: fixed;
    left: 13px;
    background: #fff;
    border-radius: 5px;
    width: auto;
    z-index: 150;
    bottom: 50px;
    padding: 10px 0;
    border: 1px solid #1f1f1f;
}
.supper-nav ul {list-style: none;padding: 0;margin: 0;}
.supper-nav ul li {list-style: none!important;}
.supper-nav ul>li a {
    border:none;
    padding: 3px;
    display: block;
    border-radius: 5px;
    text-align: center;
    font-size: 10px;
    line-height: 15px;
    color: #fff;
    font-weight: 700;
    max-width: 72.19px;
    max-height: 54px;
    text-decoration: none;
}
.supper-nav ul>li .chat_animation{display:none}
.supper-nav ul>li a i.ticon-home {
    background: url(/upload/home-icon.png) no-repeat;
    background-size: contain;
    width: 36px;
    height: 36px;
    display: block;
}

.supper-nav ul>li a i.ticon-cskh {
    background: url(/upload/cskh-icon.png) no-repeat;
    background-size: contain;
    width: 36px;
    height: 36px;
    display: block;
}

.supper-nav ul>li a i.ticon-work {
    background: url(/upload/work-icon.png) no-repeat;
    background-size: contain;
    width: 36px;
    height: 36px;
    display: block;
}

.supper-nav ul>li a i.ticon-account {
    background: url(/upload/account-icon.png) no-repeat;
    background-size: contain;
    width: 36px;
    height: 36px;
    display: block;
}

.supper-nav ul>li a i.ticon-storage {
    background: url(/upload/storage-icon.png) no-repeat;
    background-size: contain;
    width: 36px;
    height: 36px;
    display: block;
}

.supper-nav ul>li a i.ticon-heart {
    background: url(/upload/icon-map.png) no-repeat;
    background-size: contain;
    width: 36px;
    height: 36px;
    display: block;
}
.supper-nav ul>li a i.ticon-zalo-circle2 {
    background: url(/upload/icon-zalo-circle2.png) no-repeat;
    background-size: contain;
    width: 36px;
    height: 36px;
    display: block;
}.supper-nav li .button {
    background: transparent;
}.supper-nav ul>li a i.ticon-angle-up {
    background: url(/upload/icon-angle-up.png) no-repeat;
    background-size: contain;
    width: 36px;
    height: 36px;
    display: block;
}.supper-nav ul>li a i {
    width: 33px;
    height: 33px;
    display: block;
    margin: auto;
}.supper-nav ul li .button .btn_phone_txt {
    position: relative; top:35px;
    font-size: 10px;
    font-weight: bold;
    text-transform: none;
}
.supper-nav ul li .button .phone_animation i {
    display: inline-block;
    width: 37px;
    font-size: 26px;
	margin-top: 10px;
    margin-right: 5px;
}.supper-nav ul>li a.chat_animation svg {
    margin: -13px 0 -20px;
}
.supper-nav ul>li a i.ticon-messenger {
    background: url(/upload/icon-messenger.png) no-repeat;
    background-size: contain;
    width: 36px;
    height: 36px;
    display: block;
}.supper-nav ul li .button .phone_animation i {
    display: inline-block;
    width: 37px;
    font-size: 26px;
	margin-top: 10px;
    margin-right: 5px;
}
.supper-nav ul>li a i.ticon-chat-sms {
    background: url(/upload/icon-sms-1.jpg) no-repeat;
    background-size: contain;
    width: 38px;
    height: 36px;
    display: block;
}
.supper-nav ul>li a i.icon-phone-w {
    background: url(/upload/icon-phone-w.png) no-repeat;
    background-size: contain;}
.supper-nav ul li .button .btn_phone_txt {
    position: relative;
}
@media only screen and (max-width: 50000px){
.supper-nav li .chat_animation{display:block !Important}
 
.supper-nav li .button .phone_animation {box-shadow: none;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translate(-50%,0);
    width: 50px;
    height: 50px;
    border-radius: 100%;
    background: #6cb917;
    line-height: 15px;
    border: 2px solid white;
}
.supper-nav ul>li a{padding:0; margin:0 auto}
.supper-nav {
	background: url(/images/menu-footer.png), -webkit-gradient(linear, left top, left bottom, from(#3b3d34), to(#2a3036));
    width: 100%; border-radius:0;
    color: #000;
    height: 80px;
    /* line-height: 50px; */
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
    padding: 5px;
    margin: 0;
    box-shadow: 0 4px 10px 0 #000;
}
.supper-nav li {
    float: left;
    width: 20%;
    list-style: none;
    height: 50px;
}
.phone-mobile{display:block !important}}

/* custom theme livechat */
.chat-support-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chat-avatar-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f3f3; /* Màu nền cho avatar */
}

.chat-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chat-info {
    text-align: center;
    margin-top: 10px;
}

.chat-title {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

.chat-subtitle {
    font-size: 1rem;
    color: #e3e2cd;
}

/* Tổng thể container chat */
.chat-container {
    background-color: #272d2d;
    border-radius: 10px;
    padding: 15px;
}

.message-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.message-sender {
    font-size: 13px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
}

.align-left {
    align-items: flex-start;
}

.align-right {
    align-items: flex-end;
}

.message-content-container {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.message-box {
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.admin-message {
    background-color: #2b2d42;
    color: #ffffff;
    border-radius: 18px 18px 18px 4px;
}

.user-message {
    background-color: #0088cc;
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.message-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    align-self: flex-end;
    margin-top: 5px;
    font-style: italic;
    font-weight: 500;
}

.chat-image {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    margin-top: 5px;
}


/* ===== Pascale block ===== */
.pascale-block {
    border-radius: 14px;
    padding: 18px 16px;
    margin-top: 20px;
}

.pascale-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #168a2f;
    margin-bottom: 14px;
}

.pascale-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #222;
    margin-bottom: 12px;
}

.pascale-meta {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #222;
    margin-bottom: 6px;
}

.pascale-meta strong {
    color: #111;
}

.pascale-hot-number {
    color: #e10600;
    font-weight: 700;
}

.pascale-label {
    font-size: 1.05rem;
    font-weight: 500;
    color: #222;
    margin: 14px 0 10px;
}

.pascale-triangle-wrap {
    margin-top: 8px;
    margin-bottom: 18px;
}

.pascale-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
    flex-wrap: nowrap;
}

.pascale-node {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 999px;
    background: #f8f8f8;
    border: 2px solid #cfcfcf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    color: #ff0000;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.pascale-node.is-result {
    background: #fffdfd;
    border-color: #d5d5d5;
}

.pascale-result-label {
    font-size: 1.05rem;
    color: #222;
    text-align: center;
    margin: 8px 0 10px;
}

.pascale-result-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.pascale-separator {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d60000;
    line-height: 1;
}

.pascale-final-note {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #222;
    margin: 0;
}

.pascale-final-note .highlight {
    color: #ff0000;
    font-weight: 700;
}

.pascale-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 14px 0 10px;
}

@media (max-width: 768px) {
    .pascale-title {
        font-size: 1.45rem;
    }

    .pascale-desc,
    .pascale-meta,
    .pascale-label,
    .pascale-final-note,
    .pascale-result-label {
        font-size: 1rem;
    }

    .pascale-node {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 1.25rem;
    }

    .pascale-row {
        gap: 3px;
        margin-bottom: 2px;
    }
}