/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/*************** ADD CUSTOM CSS HERE.   ***************/
body {
	font-family: "Inter", sans-serif;
}
.colin_main {
    display: flex;
    width: auto;
    margin-left: auto;
    flex-flow: wrap;
    gap: 20px;
}
.vnt_title {
    display: grid;
    width: auto;
    justify-content: center;
	position: relative;
}
.vnt_title .icon {
    text-align: center;
    margin: auto;
    font-size: 16px;
    margin-bottom: 5px;
}
.vnt_title .type {
    font-size: 13px;
}
.elm_link {
    cursor: pointer;
    position: absolute;
    z-index: 19;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: 0 0;
}

.section > .section-content > .row > .col {
	padding-bottom: 0;
}
p {
	margin-bottom: 10px;
}
p:last-child {
	margin-bottom: 0;
}
.banner h1, .banner h2, .banner h3, .banner h4, .banner h5,
h1, h2, h3, h4, h5 {
	line-height: inherit;
}
.searchform-wrapper:not(.form-flat) input[type=search] {
    border: 1px solid #dc1f19;
    border-right: none;
    box-shadow: none;
    border-radius: 4px 0 0 4px;
    height: 45px;
}
.searchform-wrapper:not(.form-flat) .submit-button {
    border-radius: 0 4px 4px 0;
    height: 45px;
    width: 45px;
}
.section-title-normal span {
    border-color: var(--primary-color);
}
.icon-box-left {
	display: flex;
	align-items: center;
}
.icon-box-left p {
	margin-bottom: 0;
}
.icon-box-left h3 {
    margin-bottom: 2px;
}
.flickity-page-dots {
    bottom: -30px !important;
}
.box-category .box-image {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 100% 100% 100% 100%;
    padding: 5px 5px 5px 5px;
}
.box-category .box-image * {
    border-radius: 100%;
}
.box-category .header-title {
    text-transform: none;
}
.box-category .box-text {
    padding-bottom: 0;
}
.category-custom.slider-nav-push:not(.slider-nav-reveal) .flickity-prev-next-button {
    margin: auto;
}
.slg p {
    display: inline;
    background-color: #ffb700;
    border-radius: 4px;
    padding: 4px 10px;
}
.banner p {
    margin: 5px 0;
}
.banner-radius,
.banner-radius .banner-bg, 
.banner.banner-custom, 
.banner.banner-custom .banner-bg {
    border-radius: 4px;
}
.banner.banner-custom .button {
    font-size: 13px;
}
.section-title a {
    border-radius: 5px 5px 5px 5px;
    background-color: #dbdbdb;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    padding: 3px 10px 3px 10px;
}
.section-title a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.product-small.box {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 6px 6px 6px 6px;
    padding: 8px 8px 8px 8px;
}
.product-small.box .box-image {
    width: 200px;
}
.product-small.box .box-text {
    display: flex;
    flex-direction: column;
    padding-left: 12px;
    padding-top: 0;
    padding-bottom: 0;
}
.product-small.box .box-text .label {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    color: #FFFFFF;
    font-size: 12px;
    line-height: 18px;
}
.label> div {
    border-radius: 3px;
    padding: 3px 8px;
}
.label .type {
    background: #034c8c;
}
.label .sub {
    background-color: #ffb700;
    color: #000;
}
.label .cont {
    background-color: #bf3617;
}
.product-small.box .box-text .product-title {
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.price {
    display: flex;
    width: 100%;
    flex-flow: wrap;
    font-weight: 700;
    color: #bf3617;
}
.lien-he-price {
    font-size: 14px;
    margin-top: 3px;
    color: #bf3617;
}
.view-detail-btn {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    margin-top: 10px;
    color: #034c8c;
}

.col.post-item .box.box-text-bottom {
    border: 1px solid #dcdcdc;
    border-radius: 8px;
}
.col.post-item .box.box-text-bottom .box-image, 
.col.post-item .box.box-text-bottom .box-image img {
    border-radius: 8px 8px 0 0;
}
.col.post-item .box.box-text-bottom .box-text {
    padding: 15px;
}
.col.post-item .box.box-text-bottom .post-title a {
    font-size: 20px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.col.post-item .box.box-text-bottom .from_the_blog_excerpt {
    font-size: 14px;
    opacity: 1;
}

.col.post-item .box-blog-post .is-divider {
    display: none;
}
.col.post-item .post-meta {
    font-size: 12px;
    margin: 5px 0;
}
/* Khung chứa ảnh */
.col.post-item .box-image {
  overflow: hidden; /* Bắt buộc: Cắt bỏ phần ảnh tràn ra ngoài */
  position: relative;
}

/* Thẻ ảnh ban đầu */
.col.post-item .box-image img {
  width: 100%;
  height: auto;
  display: block;
  /* Tạo chuyển động mượt cho thuộc tính transform trong 0.4s */
  transition: transform 0.4s ease-in-out;
}

/* Khi hover vào khung hình (hoặc hover vào bài viết) */
.col.post-item:hover .box-image img {
  transform: scale(1.1); /* Phóng to 110% (Tăng/giảm số này tùy thích) */
}
.custom-read-more-wrapper {
    text-align: right;
}
.custom-read-more-wrapper a {
    font-weight: bold;
    font-size: 12px;
    color: var(--primary-color);
}

h1.page-title {
    text-align: left;
    text-transform: none;
    font-size: 26px;
}
.archive-page-header > .row > .col {
    padding-bottom: 0;
}

.footer-wrapper ul {
    margin-bottom: 0;
    margin-left: 0;
}
.footer-wrapper ul li {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
.footer-wrapper ul li:last-child {
    margin-bottom: 0;
}

.duong-kinh-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    padding: 10px 0;
}

.duong-kinh-item {
    text-decoration: none; /* Bỏ gạch chân đường dẫn */
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: #f7f7f7;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.duong-kinh-item .dk-number {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 2px;
}

.duong-kinh-item .dk-unit {
    font-size: 16px;
    color: #666;
    line-height: 1;
}

/* Hiệu ứng khi di chuột vào (Hover) hoặc trạng thái Active */
.duong-kinh-item:hover,
.duong-kinh-item.active {
    border-color: var(--primary-color);
    background-color: #fff;
}

/* Tạo Tooltip màu đen hiển thị khi hover (như mục 8mm trong ảnh) */
.duong-kinh-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.duong-kinh-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Bao bọc danh sách các nút */
.cau-truc-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Khoảng cách giữa các nút */
    padding: 10px 0;
}

/* Định dạng từng nút cấu trúc */
.cau-truc-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px; /* Bo góc nhẹ giống ảnh */
    font-size: 16px;
    font-weight: 500;
    color: #2b547e; /* Màu chữ xanh xám giống ảnh */
    text-decoration: none !important; /* Xóa gạch chân của thẻ a */
    transition: all 0.2s ease-in-out;
}

/* Hiệu ứng khi di chuột vào (Hover) */
.cau-truc-item:hover {
    border-color: var(--primary-color);
    background-color: #f9f9f9;
    color: #1a3c5e;
}

.shop-page-title.category-page-title {
    background: #f5f5f5;
    padding-top: 15px;
    padding-bottom: 15px;
}
.shop-page-title.category-page-title .page-title-inner {
    padding-top: 0;
}
.widget .widget-title {
    display: flex;
    background: #e0e0e0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding-top: 15px;
    padding-bottom: 15px;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}
.widget > div {
    border: 1px solid #e0e0e0;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
    padding: 10px 20px 10px 20px;
}
.widget .is-divider {
    display: none;
}

.widget .duong-kinh-item {
    width: 71px;
    height: 71px;
}
.widget .duong-kinh-item .dk-number {
    font-size: 22px;
}

.widget .duong-kinh-item .dk-unit {
    font-size: 14px;
}

.widget .img {
    padding: 0;
    border: none;
}

.shop-sidebar {
    padding-top: 40px;
}

table tr:nth-child(odd) {
    background: #f5f5f5;
}
td, th {
    border: none;
    text-transform: none !important;
}
td:first-child, th:first-child {
    padding-left: 10px !important;
}
.single-product .widget > div {
    padding: 0;
}

.product-info {
    padding-bottom: 0;
}
.product-info .vnt-elm {
    display: flex;
    border-radius: 5px 5px 5px 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    justify-content: center;
    align-items: center;
    background: #dc1f19;
    color: #fff;
    gap: 15px;
    margin-top: 10px;
}
.product-info .vnt-elm.call_zalo {
    background: #03A9F4;
    margin-bottom: 15px;
}
.product-info .vnt-elm.call_zalo .img {
    display: block;
    width: auto;
    height: 40px;
}
/* Chuyển ảnh Zalo sang màu trắng */
.product-info .vnt-elm.call_zalo img {
    -webkit-filter: brightness(0) invert(1); /* Hỗ trợ các trình duyệt cũ dựa trên WebKit như Safari */
    filter: brightness(0) invert(1);
}
.product-info .vnt-elm .col {
    padding: 0;
    width: auto;
}
.product-info .vnt-elm i {
    font-size: 30px;
}
.product-info .vnt-elm .type {
    font-size: 20px;
    font-weight: 700;
}
.product-info .vnt-elm .sub {
    font-size: 14px;
    line-height: 14px;
}
.product-info .lien-he-price {
    font-size: 20px;
}
.product_meta {
    font-weight: bold;
    margin-bottom: 0;
}
.product_meta a {
    font-weight: normal;
}
.product-main {
    padding-bottom: 20px;
}
.product-section {
    border-top: none;
}
.product-section .product-section-title-related {
    text-transform: none;
    font-size: 25px;
}
blockquote {
    width: 100%;
    float: left;
    margin: 0 0 15px;
    background: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    padding: 8px;
    border-radius: 5px;
    font-size: 16px;
}
blockquote p:last-child {
    margin-bottom: 0;
}
.entry-header {
    padding-top: 0 !important;
}
.entry-header-text-top {
    padding-bottom: 0;
}
.accordion-title {
    border: 1px solid #dcdcdc;
    margin-bottom: 15px;
    border-radius: 4px;
    padding-left: 15px;
}
.accordion-inner {
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}
.accordion .toggle {
    left: auto;
    right: 0;
}

.category .page-title-bar {
    padding: 10px 0;
}
.category .page-title-bar .breadcrumb {
    border-bottom: 1px solid #dcdcdc;
    padding-bottom: 10px;
}
.single-post .page-title-bar {
    background: #f5f5f5;
    padding-top: 15px;
    padding-bottom: 15px;
}
.single-post .page-title-bar h1 {
    margin-bottom: 0;
}
.single-post .entry-content {
    padding-top: 0;
}
.single-post .col.post-item .box.box-text-bottom .post-title a {
    -webkit-line-clamp: 2;
}
.row-contact .col {
    padding-bottom: 0;
}
input.wpcf7-form-control {
    background-color: #f2f3f7;
    border-radius: 4px;
    height: 50px;
    box-shadow: none;
}
textarea.wpcf7-form-control {
    background-color: #f2f3f7;
    border-radius: 4px;
    box-shadow: none;
}
input.wpcf7-submit {
    border-radius: 4px;
    background-color: var(--primary-color);
}
.absolute-footer {
    display: none;
}
.section-title-bold span {
    background-color: var(--primary-color);
    color: #FFFFFF;
    text-transform: uppercase !important;
    border-radius: 4px;
}
.section-title-bold b {
    background-color: var(--primary-color);
    opacity: 1;
}
.col-dv .col-inner {
  transition: all 0.3s ease;
}
.col-dv .col-inner:hover {
    background-color: var(--primary-color) !important;
}
.col-dv .col-inner:hover * {
    color: #fff;
}
@media (min-width: 850px) {
    .row-5 .col {
        max-width: 20%;
        flex-basis: 20%;
    }
}
@media (max-width: 820px) {
    .shop-sidebar {
        padding-top: 0;
    }
}
@media only screen and (max-width: 480px) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .single-post .page-title-bar h1 {
        font-size: 26px;
        line-height: 30px;
        margin-top: 6px;
    }
    .duong-kinh-item {
        width: 100px;
        height: 100px;
    }
}