/*
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.   ***************/


pre, blockquote, form, figure, p, dl, ul, ol {
    margin-bottom: 5px;
}

b, strong {
    font-weight: bold;
}

#footer .col-left .icon-box.featured-box.icon-box-left{
	margin: 10px 0;
}

#footer .col-center h4{
	color: #C12533;
}
#footer .col-center h3{
	margin: 0;
	font-size: 16px;
	color: #c11b1b;
	font-weight: 600;
}
#footer .col-center p{
	margin: 2px 0 0;
	font-size: 14px;
	color: #333;
}
#footer .lien-he-dat-hang .col{
	padding: 10px;
}
#footer .row-dashed .col:before,#footer .row-dashed .col:after{
	display: none;
}
#footer .lien-he-dat-hang .col-inner{
	border: 1.5px dashed #d62b2b;
	border-radius: 10px;
	padding: 10px 15px;
	display: flex;
	align-items: center;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
}
#footer .row.lien-he-dat-hang img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}

#footer .col-right .col.small-12.large-12 p{
	background-color: #f9f9f9;
	border-radius: 10px;
	padding: 8px 15px;
	color: #333;
	font-size: 15px;
	border: 1px solid #eee;
	display: inline-block;
	line-height: 1.8em;
}

#footer .col-right ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
	margin-left: 7px;
}
#footer .col-right ul li{
	margin-bottom: 5px;
	font-size: 15px;
	transition: color 0.2s;
	margin-left: 3px;
}

#footer .col-right h4{
	color: #d71920;
	font-size: 17px;
	margin-bottom: 8px;
	font-weight: 700;
	margin-left: 5px;
}


/* Ẩn danh sách mặc định, ẩn danh mục sản phẩm */
.home.ot-menu-show-home #mega_menu {
    display: none;
    position: absolute; /* để nó xổ xuống dưới */
    top: 100%; /* canh ngay dưới tiêu đề */
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 999;
}
/* Khi hover vào phần wrap thì menu con hiện ra */
#mega-menu-wrap:hover #mega_menu {
    display: block;
}
/* Thêm style cho từng mục */
#mega_menu li {
    padding: 8px 15px;
    white-space: nowrap;
}
#mega_menu li:hover {
    background: #f2f2f2;
}
#wide-nav>.flex-row>.flex-left {
    width: 25%;
    max-width: 270px;
    min-width: 270px;
    margin-right: 15px;
}
#mega-menu-wrap {
    width: 100%;
	max-width: 270px;
    position: relative;
}
#wide-nav>.flex-row>.flex-left{
	max-width: 205px;
    min-width: 205px;
}

#mega-menu-wrap{
	background-color: #ffffff;
	border-radius: 65px;
}
#wide-nav .flex-center a{
	font-weight: bold !important;
}
#wide-nav .header-nav .nav-top-link {
  display: inline-block;
  padding: 0px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  transition: all 0.25s ease;
}
#wide-nav .nav-spacing-xlarge>li{
	margin: 0 2px;
}
.header-bottom-nav > li > a{
	line-height: 45px!important;
}
/* Màu khi hover */
#wide-nav .header-nav .nav-top-link:hover {
  background-color: rgba(255, 192, 203, 0.4);
  color: #b91c1c;
}

/* Trang chủ (mục active) */
#wide-nav .header-nav li.current-menu-item .nav-top-link,#wide-nav .header-nav li.active .nav-top-link {
  background-color: #f1b4b8; /* hồng đậm hơn */
  color: #b91c1c;
}
#wide-nav .flex-right .button.primary {
  background-color: #b91c1c; /* đỏ đậm */
  color: #fff; /* chữ trắng */
  font-weight: 700 !important;
  border: none;
  border-radius: 99px; /* bo tròn */
  padding: 0px 15px;
  text-transform: none; /* không ép in hoa thêm */
  font-size: 14px;
  transition: all 0.3s ease;
}

#mega-menu-title {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: rgba(51, 51, 51, 1);
	font-size: 13px;
	padding-left: 10px;
}
#mega-menu-title .icon-menu {
    background-color: #b91c1c; /* đỏ đậm */
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.icon-menu:before {
    font-weight: bold;
}
.header-bottom {
	height: 70px;
}

#header .header-cart-link.is-small {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #b91c1c; /* đỏ đậm */
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hiệu ứng hover */
#header .header-cart-link.is-small:hover {
  background-color: #a01717; /* đỏ đậm hơn khi hover */
  color: #fff;
}

#header [data-icon-label]:after{
	background-color: white;
	color: #b91c1c;
}

/* Css số điện thoại và icon */
ul#header-contact li a {
    font-size: 20px !important;
    color: #ff6600;
}

input#woocommerce-product-search-field-0 {
    height: 40px;
    padding: 0 25px 0 20px;
    font-size: 13px;
}

/* Trang chủ */


.loi-ich-noi-bat .col.medium-3.small-6.large-3{
	flex: 1; 
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.loi-ich-noi-bat p{
	font-size: 13px;
}
.loi-ich-noi-bat h3{
	font-size: 14px;
}

.edit-banner img{
	border-radius: 15px 15px 15px 15px;
}
.edit-banner .col{
	padding: 0px;
}

.san-pham-noi-bat .section-content > .row, .cac-bai-viet-moi .section-content > .row{
    border-radius: 12px;
    background: #fff;
	border-top: 3px solid rgba(255, 0, 0, 0.4);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    overflow: hidden;
	padding: 10px 10px 10px 5px;
}
.san-pham-noi-bat h1, .cac-bai-viet-moi h1{
	color: #C12533;
}
.san-pham-noi-bat .box{
	padding-top: 10px;
}
.san-pham-noi-bat .box-image img{
	border-radius: 15px 15px 15px 15px;
}
.san-pham-noi-bat .row-box-shadow-1 .col-inner{
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0,0,0,.12);
	border-top: 1px solid rgba(0,0,0,.05);
}
.san-pham-noi-bat .price-wrapper {
	display: inline-flex; /* giữ tất cả trong 1 dòng */
	border: 1px dashed #b91c1c; /* viền đỏ đứt */
	border-radius: 4px;
	padding: 4px 10px;
	color: #555; /* màu chữ "Chỉ từ" */
	font-size: 14px;
	font-weight: 400;
	white-space: nowrap;
	align-items: center;
}
.san-pham-noi-bat .price-wrapper .woocommerce-Price-amount {
  color: #b91c1c; /* đỏ đậm */
  font-weight: 700;
}
.san-pham-noi-bat .price-wrapper::before {
  content: "Chỉ từ: ";
  color: #555;
  font-weight: 400;
}
.san-pham-noi-bat .product-title {
  font-weight: 700 !important; /* in đậm tiêu đề sản phẩm */
  color: #111; /* tùy chọn: cho màu chữ rõ hơn */
  font-size: 16px;
}

.cac-bai-viet-moi .col.post-item.is-selected > .col-inner  {
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0,0,0,.12);
	border-top: 1px solid rgba(0,0,0,.05);
}

.cac-bai-viet-moi .post-date{
	display: none;
}
.cac-bai-viet-moi .cat-label {
	font-size: 13px;
	color: #666;
	text-transform: none; /* bỏ uppercase nếu có */
	letter-spacing: 0;
	margin-bottom: 4px;
	font-weight: 400;
}
.cac-bai-viet-moi .post-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
  line-height: 1.4;
}
/* Đoạn mô tả */
.cac-bai-viet-moi .from_the_blog_excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-top: 4px;
}

/* Gạch chia */
.cac-bai-viet-moi .is-divider {
  display: none; /* ẩn đường gạch nếu không cần */
}

.searchform .button.icon{
	color: white !important;
	background-color: rgb(193,37,51)!important;
	border-radius: 35px;
	right: 5px;
}
.edit-banner-desk img{
	border-radius: 15px;
	border: none;
}
.edit-banner-desk .banner{
	background-color: white;
}

.loi-ich-noi-bat h3{
	color: rgb(185 28 28);
}
.loi-ich-noi-bat .icon-box.featured-box.icon-box-left.text-left {
  display: flex;
  align-items: center; /* canh giữa theo chiều dọc */
  justify-content: center; /* canh giữa theo chiều ngang */
  height: 100%; /* giúp phần tử con chiếm toàn chiều cao khối cha */
}

/*Trang sản phẩm*/
#product-sidebar .thanh-ben-sp{
	padding: 0;
}
#product-sidebar .thanh-ben-sp .row{
	background-color: #f9f9f9;
	border-radius: 15px;
	padding: 9px;
}
#product-sidebar .thanh-ben-sp .row:nth-child(1) .icon-box{
	display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
	margin-bottom: 5px;
}
#product-sidebar .thanh-ben-sp .row:nth-child(1) .icon-box-img{
	flex: 0 0 auto;
    margin-bottom: 0;
    max-width: 200px;
	position: relative;
}
#product-sidebar .thanh-ben-sp .row:nth-child(1) .col.small-12.large-12{
	padding: 0;
}
#product-sidebar .thanh-ben-sp .row:nth-child(1) p{
	font-size: 12px;
}
#product-sidebar .thanh-ben-sp .row:nth-child(1) h3{
	font-size: 13px;
	margin-bottom: 3px;
}

#product-sidebar .thanh-ben-sp .tuvan h3{
	font-size: 16px;
	color: #c12533;
}

#product-sidebar .thanh-ben-sp .tuvan .icon-box-text {
	padding-left: 10px
}
#product-sidebar .thanh-ben-sp .tuvan{
	padding: 5px;
}
#product-sidebar .thanh-ben-sp .tuvan .icon-box{
	border: 1.5px dashed #d62b2b;
	border-radius: 10px;
	padding: 10px;
	display: flex;
	align-items: center;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
	margin-bottom: 5px;
}
#product-sidebar .thanh-ben-sp .tuvan img{
	border-radius: 60px;
}
#product-sidebar .thanh-ben-sp .thoigianlamviec ul{
	list-style-type: disc;
	list-style-position: inside;
	padding-left: 0px;

}
#product-sidebar .thanh-ben-sp .thoigianlamviec{
	padding-left: 0px;
	padding-right: 0px;
}
#product-sidebar .thanh-ben-sp .thoigianlamviec ul li {
  display: list-item !important;
  list-style: disc;
}

#product-sidebar .thanh-ben-sp .thoigianlamviec h3{
	font-size: 16px;
}

.product-main{
	padding-top: 15px;
	padding-bottom: 0px;
}
.single-product .custom-breadcrumb{
	font-size: 17px;
	margin-top: 12px;
}
.single-product  .edit-title {
	font-weight: bold;
}
.single-product h1.product-title.product_title.entry-title{
	font-size: 35px;
	color: #c12533;
	margin-bottom: 0;
}

.product-footer .woocommerce-tabs{
	padding-top: 10px;
	border-radius: 12px;
    background: #fff;
    border-top: 3px solid rgba(193, 37, 51, 0.4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	margin-top: 20px;
}
.product-footer .kk-star-ratings.kksr-align-left{
	display: none;
}

/* ==== Khung giá sản phẩm ==== */
.single-product .price-wrapper {
	justify-content: flex-start;
	width: 98%;
	box-sizing: border-box; 
	border: 1px dashed #c62828;      /* viền nét đứt đỏ */
	padding: 10px 15px;
	border-radius: 4px;
	display: inline-flex;             /* đảm bảo tất cả nằm cùng hàng */
	align-items: center;
	flex-wrap: nowrap;
	gap: 4px;                         /* khoảng cách nhỏ giữa các phần */
	margin: 10px 0;
}

/* ==== Dòng giá ==== */
.single-product .price-wrapper p.price {
	margin: 0;
	font-size: 16px;
	color: #222;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 23px;
}
.single-product .is-divider.small{
	max-width: 98%;
	height: 1px;
    margin-top: 5px;
    margin-bottom: 5px;;
}

.single-product .thongso-label{
	font-size: 18px;
	color: #c12533;
}

.single-product .product-short-description li{
	font-size: 14px;
    margin-bottom: 5px;
    margin-left: 30px;
}
/* ==== Căn lại phần "Số lượng" ngay dưới mô tả ngắn ==== */
.single-product .custom-soluong {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;         /* Không cho xuống dòng */
  gap: 10px;                 /* Khoảng cách giữa các phần tử */
  margin: 15px 0 25px;
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
}

/* Nhãn "Số lượng:" */
.single-product .custom-soluong-label {
  font-size: 15px;
  color: #111;
  font-weight: 700;
  white-space: nowrap;       /* Giữ chữ luôn trên 1 dòng */
}

/* Select box */
.single-product .custom-soluong-select {
  width: auto;               /* Không full chiều ngang */
  min-width: 110px;          /* Giới hạn kích thước vừa phải */
  max-width: 150px;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  line-height: 1.4;
  appearance: none;          /* Ẩn style mặc định trình duyệt (nếu muốn đẹp hơn) */
  -webkit-appearance: none;
  -moz-appearance: none;
}
/* Nút Clear */
.single-product .custom-clear {
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  white-space: nowrap;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.single-product .custom-clear:hover {
  color: #c62828;
 
}
/* Đảm bảo tất cả cùng hàng */
.single-product .custom-soluong * {
  vertical-align: middle;
}

/* ==== Nút Add to Cart + Đặt Hàng Ngay ==== */
.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
  margin-top: 10px;
}

.single-product button.single_add_to_cart_button.button.alt {
  
  text-align: center;
  border-radius: 4px;
  font-size: 15px;
  background-color: #c12533;
}

/* Nút Đặt Hàng Ngay (nằm cùng hàng với Add to Cart) */
.single-product .custom-buy-now {
  flex: 1 1 24%;
  background-color: #43a047;
  color: #fff;
  border: none;
  padding: 2px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.single-product .custom-buy-now:hover {
  background-color: #388e3c;
}

/* ==== Nút đỏ Đặt In Nhiều Số Lượng ==== */
.single-product .custom-order-more {
  background-color: #c12533;
  color: #fff;
  border: none;
  padding: 5px 20px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  margin-top: 10px;
}

.single-product .custom-order-more:hover {
  background-color: #b71c1c;
}

/* ==== Dòng "Khách đang xem sản phẩm này" ==== */
.single-product .custom-viewers {
  margin-top: 10px;
  background-color: #fdecec;
  border-radius: 6px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #444;
  font-size: 14px;
}

.single-product .custom-viewers-icon {
  font-size: 15px;
  color: #c62828;
}

.single-product .custom-viewers-count {
  color: #c62828;
  font-weight: 700;
}

.single-product .custom-viewers-text {
  font-weight: 400;
}
.product_meta{
	display: none;
}
.single-product .social-icons{
	margin-top: 10px;
}
/* ======= STYLE CHIA 4 TAB BẰNG NHAU ======= */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 25px;
    border: none;
    padding: 0 10px;
    gap: 0;
}

/* Mỗi tab chiếm 1/4 chiều ngang */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    flex: 1 1 25%;
    text-align: center;
    margin: 0;
    padding: 0;
    border: none;
}

/* Nút tab */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-radius: 15px;
    color: #C12533;
    font-weight: bold !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    letter-spacing: 0.5px;
}

/* Tab đang active */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    background-color: #c12533;
    color: #fff !important;
    border-color: #c12533;
}

/* Ẩn viền gạch Flatsome mặc định */
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before {
    display: none !important;
}

/* Bỏ padding khung nội dung */
.woocommerce div.product .woocommerce-tabs .panel {
    border: none;
    padding: 0;
}

.product-footer .tab-panels {
	padding-left: 30px;
	padding-right: 30px;
}

/* Responsive - tự co tab trên mobile */
@media (max-width: 768px) {
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
    }
    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        flex: 1 1 50%;
        margin-bottom: 10px;
    }
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        font-size: 13px;
        padding: 8px 0;
    }
}



@media (min-width: 800px) {
	.col, .gallery-item, .columns {
		position: relative;
		margin: 0;
		padding: 0 10px 15px;
		width: 100%;
	}
	.cac-bai-viet-moi .col .col-inner {
		min-height: 25em;    
	}
	.edit-banner3 .banner{
		height: 10.2em;
	}
	.edit-banner3{
		margin-top: 14px !important;
		margin-left: -5px !important;
		margin-right: -5px !important;
	}
	.edit-banner3 .col.medium-6.small-12.large-6{
		padding-left: 5px;
		padding-right: 5px;
	}
	.banner {
		height: 12em;
	}
	.loi-ich-noi-bat .row {
		display: flex;
		gap: 20px; 
		align-items: stretch; 
	}
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
	.col, .gallery-item, .columns {
		position: relative;
		margin: 0;
		padding: 0 10px 15px;
		width: 100%;
	}
	.edit-banner-mobie .banner {
		margin: 15px 0;
		background-color: white;
	}
	.edit-banner-mobie  img{
		border-radius: 15px;
		border: none;
	}
	.loi-ich-noi-bat .col.small-12.large-12{
		border-radius: 12px;
		background: #fff;
		padding: 20px;
		display: flex;
		box-shadow: 0 2px 6px rgba(0,0,0,0.1);
		transition: all 0.3s ease;
		margin: 5px 15px;
	}
	#footer .col-left p{
		font-size: 15px;
	}
	#footer .col-left{
		padding-bottom: 0 !important;
	}
	#footer .col-right .col.small-12{
		margin-left: 10px;
	}
	.edit-banner{
		padding-left: 10px;
		padding-right: 10px;
	}
	
	.product-footer .container .row-small:not(.row-collapse){
		margin-left: 0px;
		margin-right: 0px;
	}
}