/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.1
*/
@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;
}
p {
	margin-bottom: 10px;
}
p:last-child {
	margin-bottom: 0;
}
.section > .section-content > .row > .col {
	padding-bottom: 0;
}
.banner h1, .banner h2, .banner h3, .banner h4, .banner h5,
h1, h2, h3, h4, h5 {
	line-height: inherit;
}
.banner h1, .banner h2, .banner h3, .banner h4, .banner h5 {
	margin: 0;
}
.banner p {
	margin: 0;
}
b, strong {
	font-weight: bold;
}
.entry-content h2 {
	text-align: center;
	color: var(--primary-color);
}
.entry-content h3 {
	color: #c32526;
}
.entry-content img {
	display: block;
	margin: auto;
	margin-bottom: 15px;
}
.header:not(.transparent) .header-nav-main.nav > li > a {
	font-weight: normal;
}
.header:not(.transparent) .header-nav-main.nav > li.active > a {
	font-weight: 600;
}
.slogan {
	text-align: center;
	background-image: linear-gradient(to right, #ffffff, rgb(255 219 219 / 70%), #ffffff);
	padding: 6px 10px;
}
.slogan span {
	font-size: 20px;
}
.slogan h1 {
	font-size: 22px;
	color: #333333;
	margin-bottom: 0;
	background-image: url(images/line-1.png);
	background-repeat: no-repeat;
	background-position: top center;
	padding-top: 5px;
}
.slogan h1 span {
	color: #C32526;
	font-size: 22px;
}
.header-bottom .nav > li > a {
	text-transform: none;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
}
.header-bottom .header-search-form.search-form {
	min-width: 398px;
}
.nav-dark .form-flat input:not([type=submit]) {
	border-radius: 8px;
	border: 1px solid #D9D9D9;
}
h2.section-title-normal, 
h3.section-title-normal {
	font-size: 24px;
}
.section-title-normal {
	border-bottom: none;
}
.section-title-normal span {
	border-bottom: none;
	padding-bottom: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
}
.section-title-normal span:before {
	content: '\f0c9';
	font-family: FontAwesome;
	margin-right: 10px;
	font-size: 18px;
	font-weight: normal;
	color: #1E1E1E;
}
.box-sp {
	background-image: linear-gradient(to top, #FFF7F7, #fff );
}
.box-sp .box-text ul li {
	list-style: none;
	width: 50%;
	float: left;
	margin-left: 0;
	padding: 0 10px;
	color: #666666;
}
.box-sp .box-text ul li:before {
	content: '›';
	margin-right: 6px;
}
.box-sp .box-text ul li a {
	color: #666666;
}
.box-sp .box-text ul li a:hover {
	color: var(--primary-color);
}
.box-sp .button {
	font-weight: normal;
	color: #000 !important;
	font-style: italic;
	margin: 0;
}
.box-sp .button:hover {
	color: #C32526 !important;
	font-weight: 600;
}
.box-sp .button i {
	width: 18px;
	height: 18px;
	border-radius: 100%;
    padding: 0px;
    text-align: center;
    background-color: #000;
    color: #fff;
    font-size: 16px;
}
.box-sp .button:hover i {
	background-color: #C32526;
}
.box-sp h3 {
	margin-bottom: 15px;
}
.des-home {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.des-home:before {
	content: '';
    width: 10px;
    min-width: 10px;
    height: 34px;
    margin-right: 10px;
    background-color: #C32526;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    display: block;
}
.col-gp > .col-inner {
	background-image: linear-gradient(to top, #FFF7F7, #fff );
}

.col.post-item .box-image {
	position: relative;
}
.col.post-item .box-image img {
	transition: transform 0.4s ease;
}
.col.post-item:hover .box-image img {
	transform: scale(1.05);
}
.col.post-item .box-image:before {
	content: '';
	width: 55px;
	height: 43px;
	background-image: url(images/post-new.png);
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 2;
}
.col.post-item.has-post-icon .box-image:before {
	background-image: url(images/post-youtube.png);
}
.col.post-item .box-image .absolute {
	display: none;
}
.box-blog-post .is-divider {
	display: none;
}
.col.post-item .box-text {
	padding: 15px;
	background-color: #F6F6F6;
}
.col.post-item .box-text .post-meta {
	font-size: 16px;
	color: #5B5B5B;
}
.col.post-item .box-text .post-title {
	font-size: 16px;
	font-weight: 500;
}
.col.post-item:hover .box-text .post-title {
	color: #C32526;
}
.stuck .slogan span {
    font-size: 14px;
}
.stuck .slogan h1 {
	font-size: 16px;
}
.stuck .slogan h1 span {
	font-size: 16px;
}
.button.is-outline {
	border: 1px solid;
}
.button {
	font-weight: 500;
}
.ch p {
	display: inline-flex;
	background-color: #F6F5ED;
	border-radius: 99px;
	padding: 6px 30px;
	align-items: center;
	gap: 10px;
}
.ch p:before {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	background-color: #C32526;
	border-radius: 99px;
}

.section-before-footer .section-bg {
	background-image: linear-gradient(to top, #FFE1E1, #fff );
}
.icon-box p {
	margin-bottom: 0;
}
.icon-box-left {
	display: flex;
	align-items: center;
}
.icon-box-img img, .icon-box-img svg {
	padding-top: 0;
}

.social-icons i {
	top: 0;
}
.social-icons .button.is-outline {
	border: 1px solid #C32526;
	color: #C32526;
}
.absolute-footer {
	background-image: url(images/line-3.png);
	background-position: top center;
	background-repeat: no-repeat;
	padding-top: 15px;
	padding-bottom: 15px;
}
.footer-wrapper .section-bottom-footer .icon-box-left .icon-box-img {
	width: 16px !important;
}
.footer-wrapper .section-bottom-footer .icon-box-left .icon-box-img+.icon-box-text {
	padding-left: 10px;
}
.archive.woocommerce-page .header-vertical-menu__fly-out {
	opacity: 1 !important;
	visibility: visible !important;
}
.archive.woocommerce-page .stuck .header-vertical-menu__fly-out {
	opacity: 0 !important;
	visibility: hidden !important;
}
.archive.woocommerce-page .stuck .header-vertical-menu:hover .header-vertical-menu__fly-out  {
	opacity: 1 !important;
	visibility: visible !important;
}
.page-id-103 .header-vertical-menu__fly-out {
	opacity: 1 !important;
	visibility: visible !important;
}
.page-id-103 .stuck .header-vertical-menu__fly-out {
	opacity: 0 !important;
	visibility: hidden !important;
}


.archive .shop-page-title {
	display: none;
}
.category-page-row {
	padding-top: 0;
}
.box-description-product {
	background-position: top left;
    padding: 20px;
    background-repeat: no-repeat;
}
.box-description-product h1 {
	color: var(--primary-color);
	text-transform: uppercase;
	font-size: 24px;
}
/* Style cho bố cục hàng ngang ở trang Danh mục (Hình 1) */
.archive .product-small {
	border-bottom: 1px solid #D9D9D9;
	padding-bottom: 20px;
	margin-bottom: 20px;
}
.product-small:last-child {
	border-bottom: none;
}
.archive .products .product-small.box {
    display: flex;
    align-items: center;
}
.cus-term-pro .box-image,
.archive .products .box-vertical .box-image {
    width: 20% !important; /* Tỉ lệ độ rộng ảnh */
    min-width: 209px !important;
    flex-shrink: 0;
}
.archive .products .box-vertical .box-text {
    width: 80%;
    text-align: left;
    padding-left: 20px;
}
.product-small.box .product-title {
	font-size: 21px;
	font-weight: 500;
	margin-bottom: 10px;
	color: var(--primary-color);
	transition: all .2s;
}
.product-small.box .product-title a {
	transition: all .2s;
}
.product-small.box:hover .product-title a {
	color: #C32526;
}
.product-small.box .btn-readmore {
	font-size: 12px;
	color: #1E1E1E;
	font-style: italic;
	transition: all .2s;
	display: flex;
	align-items: center;
}
.product-small.box .btn-readmore:before {
	content: '\f138';
	font-family: FontAwesome;
	margin-right: 10px;
	font-style: normal;
	font-size: 18px;
}
.product-small.box:hover .btn-readmore {
	color: var(--primary-color);
	font-weight: 600;
}
.product-excerpt {
	font-size: 14px;
}

.footer-wrapper .banner {
	display: none;
}
.home .footer-wrapper .banner {
	display: block;
}
td:first-child, th:first-child {
	padding-left: 10px;
}
.row-contact .col {
	padding-bottom: 0;
}
input.wpcf7-form-control {
	border-radius: 8px;
	height: 40px;
	border: 1px solid #D9D9D9;
	box-shadow: none;
}
input.wpcf7-form-control.wpcf7-submit {
	border: 1px solid #C32526;
	background: #fff !important;
	color: #C32526 !important;
	border-radius: 0;
	margin: auto;
	display: block;
}
.wpcf7-spinner {
	position: absolute;
}

.woocommerce-product-gallery__wrapper {
	border: 1px solid #D9D9D9;
}

.product-acf-advantage {
	margin-bottom: 15px;
	margin-top: 15px;
}
.product-acf-advantage .advantage-title {
	font-size: 24px;
	color: var(--primary-color);
	text-transform: uppercase;
	font-weight: bold;
}
.product-acf-advantage ul li {
	list-style: none;
	margin-left: 0;
}
.product-acf-advantage ul li:before {
    content: "\f046";
	font-family: FontAwesome;
	margin-right: 8px;
	color: #C32526;
}
.product-info {
	padding-top: 0;
}
.product-info h1.product-title {
	margin-bottom: 0;
}
.woocommerce-tabs .tabs.wc-tabs {
	display: none;
}
.woocommerce-tabs .tab-panels {
	padding-top: 0 !important;
}
.product-footer .woocommerce-tabs {
	padding-top: 0;
	border: none;
}
.sidebar-inner .widget {
	border-radius: 8px;
	border: 1px solid #D9D9D9;
}
.sidebar-inner span.widget-title {
	background-color: #C32526;
	color: #ffffff;
	text-transform: uppercase;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	padding: 15px 10px;
	display: block;
	border-radius: 8px 8px 0 0;
}
.widget .is-divider {
	display: none;
}
ul.product_list_widget {
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 10%);
}
ul.product_list_widget li+li {
    border-top: 1px solid #D9D9D9;
}
ul.product_list_widget li img {
	margin-bottom: 0;
}
.related .box-vertical .box-image {
	width: 20% !important;
	direction: ltr;
    display: table-cell;
    vertical-align: middle;
}
.related .product-small.box .product-title {
	margin-bottom: 5px;
}

.related .box-vertical .box-text {
	padding-top: 0;
	padding-bottom: 0;
	padding-right: 0;
}
.product-specifications-list {
	font-size: 14px;
	overflow: hidden;
}
.product-specifications-list .spec-item {
	width: 50%;
	float: left;
}
.product-specifications-list .spec-item:nth-child(even) {
	padding-left: 10px;
}
.product-section {
	border: none;
}
h3.product-section-title.product-section-title-related {
	font-size: 24px;
	color: var(--primary-color);
}
.widget-area .widget {
	border: 1px solid #D3D3D3;
	border-radius: 8px;
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 10%);
    background-image: linear-gradient(to top, #ffffff, #FFEBEB);
}
.widget-area .widget span.widget-title {
	text-align: center;
	display: block;
	color: var(--primary-color);
	font-size: 16px;
	padding: 15px 15px;
	border-bottom: 1px solid #D3D3D3;
}
.widget>ul>li+li, ul.menu>li+li {
    border-top: 1px solid #D3D3D3;
}
.widget li.recent-blog-posts-li > div {
	padding: 10px;
}
.widget li.recent-blog-posts-li .badge.post-date {
	width: 130px;
	height: 96px;
}
.widget li.recent-blog-posts-li a {
	text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    font-size: 14px;
    color: #555;
    font-weight: 600;
}
.widget li.recent-blog-posts-li:hover a {
	color: #C32526;
}
.widget li.recent-blog-posts-li .post_comments {
	display: none;
}
.category .col.post-item .box-vertical .post-title {
	font-size: 21px;
	color: var(--primay-color);
	font-weight: 600;
}
.category .col.post-item:hover .box-vertical .post-title {
	color: #C32526;
}
.category .col.post-item .box-vertical .box-text {
	background-color: #fff;
}
.category .col.post-item .box-vertical .box-text p {
	color: #333333;
}
.category .col.post-item:hover .box-vertical .box-text p {
	color: var(--primary-color);
}
ul.links.nav-pagination {
	text-align: right;
}
ul.links.nav-pagination>li>a, 
ul.links.nav-pagination>li>span {
	border-radius: 6px;
}
.blog-wrapper.blog-archive {
	padding-top: 0;
}
body .box-heading-archive {
	background-size: cover;
	padding: 45px 200px 40px 20px;
	text-align: left;
}
.box-heading-archive h1.page-title {
	font-size: 24px;
	color: var(--primary-color);
}
h1.entry-title {
	font-size: 24px;
	color: var(--primary-color);
}
.entry-header .is-divider {
	display: none;
}
.entry-header-text-top {
	padding-bottom: 0;
}
.entry-content {
	padding-top: 0;
}
.related-post-list {
    margin-top: 30px;
}
.related-post-list .related-title {
    font-size: 20px;
    font-weight: 700;
    color: #0b3471;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.related-post-grid {
    display: flex;
    flex-wrap: wrap;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.related-post-grid li {
    width: 50%; /* Chia làm 2 cột */
    padding: 6px 12px 6px 0;
    box-sizing: border-box;
    margin: 0 !important;
}
.related-post-grid li a {
    display: flex;
    color: #333;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.related-post-grid li a:hover {
    color: #d32f2f;
}
.related-post-grid .icon-check {
    margin-right: 8px;
    flex-shrink: 0;
}
.related-post-grid .post-title {
    line-height: 1.4;
}
.section-before-footer-home {
	display: none;
}
.home .section-before-footer {
	display: none;
}
.home .section-before-footer-home {
	display: block;
}
.row-divided.row-sp > .col > .col-inner {
	position: relative;
}
.row-divided.row-sp > .col > .col-inner:after {
	content: '';
	display: block;
	width: 1px;
	height: 680px;
	position: absolute;
	bottom: 0;
	right: 0;
	z-index: 2;
	background-image: url(images/line-4.png);
	background-repeat: no-repeat;
	background-position: bottom right;
}
.row-divided.row-sp > .col:last-child > .col-inner:after {
	display: none;
}
.block-comment {
	background-color: #FAFBFD;
	border-radius: 16px;
	padding: 30px;
}
.breadcrumbs {
	text-align: left;
}
/* Bọc bảng trong khung cuộn ngang trên mobile */
@media (max-width: 767px) {
  .entry-content table,
  .woocommerce-Tabs-panel table,
  #tab-description table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* cuộn mượt trên iOS */
  }

  .entry-content table thead,
  .entry-content table tbody,
  .entry-content table tr {
    display: revert; /* giữ nguyên cấu trúc hàng/cột, chỉ cuộn ngang cả bảng */
  }

  .entry-content table th,
  .entry-content table td {
    white-space: nowrap; /* tránh chữ bị dồn/xuống dòng lộn xộn khi cuộn */
    padding: 8px 10px;
    font-size: 13px;
  }
}
/* Đảm bảo màn hình điện thoại vẫn hiển thị chuẩn */
@media (max-width: 549px) {
    .custom-layout-category .product-small.box {
        flex-direction: column;
    }
    .custom-layout-category .box-image,
    .custom-layout-category .box-text {
        width: 100%;
        padding-left: 0;
    }
}
@media screen and (min-width: 850px) {
    .row-divided>.col+.col:not(.large-12) {
        border-left: none;
        background-image: url(images/line-2.png);
        background-position: left center;
        background-repeat: no-repeat;
    }
    .category .col.post-item .box-vertical .box-image {
    	width: 24% !important;
    }
    .category .col.post-item .box-vertical .box-image .image-cover {
    	padding-top: 75% !important;
    }
    .category .col.post-item .box-vertical .box-image img {
    	height: 156px !important;
    }
}

@media only screen and (max-width: 820px) {
	.related-post-grid li {
        width: 100%;
    }
}
@media only screen and (max-width: 480px) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .related .box-vertical {
        display: table !important;
        width: 100% !important;
    }
    .related .product-small.box .product-title {
    	font-size: 16px;
    }
	.related .box-vertical .box-image {
		width: 25% !important;
	}
    .related .box-vertical .box-text {
    	padding-left: 15px;
    }
    
	.row-divided > .col > .col-inner:after {
		display: none;
	}
	.block-comment {
		padding: 20px;
	}
	.product-main {
		padding-top: 0 !important;
	}
	.product-info {
		padding-top: 30px;
	}
	.box-sp .box-text ul li {
		width: 100%;
	}
	body .off-canvas-left.dark .mfp-content, body .off-canvas-right.dark .mfp-content {
		background-color: #002f79;
	}
	.archive .product-small {
		padding-bottom: 0;
    	margin-bottom: 0;
	}
}

