/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.57
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Font chu giong mediamart.vn: Arial / Helvetica / sans-serif */
body,
h1, h2, h3, h4, h5, h6,
.heading-font,
.nav > li > a,
.mobile-sidebar-levels-2 .nav > li > ul > li > a {
	font-family: Arial, Helvetica, sans-serif !important;
}



@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/*************** KHUYẾN MẠI: SỐ THỨ TỰ + HỘP QUÀ ***************/
.khuyenmai2 ul,
.khuyenmai2 ol {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: bfkm;
}

.khuyenmai2 ul li,
.khuyenmai2 ol li {
	position: relative;
	counter-increment: bfkm;
	min-height: 44px;
	margin: 0 0 12px;
	padding: 11px 0 11px 82px;
	list-style: none;
	font-size: inherit;
	line-height: 1.45;
}

.khuyenmai2 ul li:last-child,
.khuyenmai2 ol li:last-child {
	margin-bottom: 0;
}

.khuyenmai2 ul li::before,
.khuyenmai2 ol li::before {
	content: counter(bfkm);
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #edf1f5;
	color: #344054;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

.khuyenmai2 ul li::after,
.khuyenmai2 ol li::after {
	content: "";
	position: absolute;
	left: 34px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: url("https://sontinhtivi.thienbinh.net/wp-content/uploads/2026/10/icon-gift.png") center center / contain no-repeat;
}

/*************** SẢN PHẨM BIẾN THỂ: BỐ CỤC BIẾN THỂ / GIÁ / KHUYẾN MẠI ***************/
/* Da khôi phục về bố cục gốc của theme (không dùng flex order) */

/*************** GIÁ CHI TIẾT SẢN PHẨM ***************/
.col.chitiet .price {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 15px;
	margin: 0 0 12px;
	line-height: 1.1;
}

.col.chitiet .price del {
	order: 2;
	text-decoration: none;
}

.col.chitiet .price del .amount {
	color: #9aa0a6;
	font-size: 18px;
	font-weight: 400;
	text-decoration: line-through;
}

.col.chitiet .price ins {
	order: 1;
	text-decoration: none;
}

.col.chitiet .price ins .amount,
.col.chitiet .price > .amount {
	color: #e11b1e;
	font-size: 30px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.col.chitiet .price .woocommerce-Price-currencySymbol {
	margin-left: 3px;
	font-size: 0.6em;
	font-weight: 600;
}

.col.chitiet .price .bf-save {
	order: 3;
	color: #b12704;
	font-size: 18px;
	font-weight: 400;
	white-space: nowrap;
}

/*************** NÚT MUA NGAY: DÒNG PHỤ ***************/button.single_add_to_cart_button.button.alt {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

button.single_add_to_cart_button.button.alt .bf-btn-sub {
	display: block;
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
}

@media only screen and (max-width: 48em) {
	.khuyenmai2 ul li,
	.khuyenmai2 ol li {
		min-height: 42px;
		padding: 9px 0 9px 74px;
	}

	.khuyenmai2 ul li::after,
	.khuyenmai2 ol li::after {
		left: 33px;
		width: 34px;
		height: 34px;
	}

	.col.chitiet .price {
		gap: 4px 8px;
	}

	.col.chitiet .price ins .amount,
	.col.chitiet .price > .amount {
		font-size: 26px;
	}

	.col.chitiet .price del .amount {
		font-size: 15px;
	}

	.col.chitiet .price .bf-save {
		font-size: 12px;
	}
}

/* Hai cột: mô tả + thông số kỹ thuật */
.bf-two-col {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	flex-wrap: wrap;
	margin: 0 0 14px;
}

.bf-two-col > .product-section:first-child {
	flex: 2 1 0;
}

.bf-two-col > .product-section:last-child {
	flex: 1 1 0;
}

.bf-two-col > .product-section > .row {
	flex-direction: column;
}

.bf-two-col > .product-section > .row > .large-2.col {
	width: 100%;
	padding-bottom: 8px;
}

.bf-two-col > .product-section > .row > .large-10.col {
	width: 100%;
}

.bf-two-col > .product-section:first-child > .row > .large-2.col {
	display: none;
}

@media only screen and (max-width: 600px) {
	.bf-two-col {
		flex-direction: column;
		gap: 16px;
	}

	.bf-two-col > .product-section {
		flex-basis: 100%;
		width: 100%;
		min-width: 0;
	}
}

/*************** QUICK NAV SẢN PHẨM ***************/
.bf-quicknav {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	max-width: 460px;
	margin: 12px auto 16px;
}

.bf-quicknav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	color: #1d2939 !important;
	font-family: inherit;
	font-size: 12px;
	line-height: 1.25;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none !important;
	text-transform: none;
	cursor: pointer;
}

.bf-quicknav-item:hover {
	color: #d71920 !important;
}

.bf-qn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 10px;
	transition: border-color 0.15s ease;
}

.bf-quicknav-item:hover .bf-qn-icon {
	border-color: #d71920;
}

.bf-qn-icon svg {
	width: 26px;
	height: 26px;
}

.bf-qn-icon img.bf-qn-img {
	width: 34px;
	height: 26px;
	object-fit: contain;
	border-radius: 2px;
}

.bf-qn-label {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 30px;
}

/* Modal nội dung sản phẩm */
body.bf-qm-open {
	overflow: hidden;
}

.bf-qm-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 16px;
	background: rgba(0, 0, 0, 0.72);
	overflow: auto;
}

.bf-qm-overlay[hidden] {
	display: none;
}

.bf-qm {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1100px, 100%);
	min-height: 70vh;
	max-height: 92vh;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.bf-qm-close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 2;
	padding: 6px 10px;
	border: 0;
	border-radius: 4px;
	background: #1d2939;
	color: #fff;
	font: inherit;
	font-size: 12px;
	line-height: 1.2;
	cursor: pointer;
}

.bf-qm-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 26px;
	padding: 16px 90px 0;
	border-bottom: 1px solid #eee;
}

.bf-qm-tab {
	padding: 6px 2px 10px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	color: #333;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

.bf-qm-tab:hover,
.bf-qm-tab.is-active {
	color: #d71920;
}

.bf-qm-tab.is-active {
	border-bottom-color: #d71920;
}

.bf-qm-body {
	max-height: calc(92vh - 70px);
	padding: 22px 34px 40px;
	overflow: auto;
}

.bf-qm-body .col,
.bf-qm-body .row {
	width: auto !important;
	max-width: 100% !important;
	flex-basis: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.bf-qm-body img {
	max-width: 100%;
	height: auto;
}

.bf-qm-body table {
	width: 100%;
}

.bf-qm-ai {
	margin: 0 0 18px;
	padding: 16px 18px;
	background: #f3f7fd;
	border: 1px solid #e1ebf7;
	border-radius: 6px;
}

.bf-qm-ai-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	color: #1d2939;
	font-size: 16px;
	font-weight: 700;
}

.bf-qm-ai-title svg {
	width: 22px;
	height: 22px;
}

.bf-qm-ai ul {
	margin: 0 0 6px;
	padding-left: 18px;
}

.bf-qm-ai li {
	margin: 0 0 6px;
	color: #344054;
	font-size: 14px;
	line-height: 1.45;
}

.bf-qm-ai-note {
	margin: 0;
	color: #98a2b3;
	font-size: 12px;
}

.bf-qm-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}

.bf-qm-shot {
	display: block;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 6px;
}

.bf-qm-shot img {
	display: block;
	width: 100%;
	height: 110px;
	object-fit: contain;
}

.bf-qm-content {
	color: #344054;
	font-size: 14px;
	line-height: 1.6;
}

.bf-qm-content h1,
.bf-qm-content h2,
.bf-qm-content h3 {
	margin: 16px 0 8px;
	font-size: 18px;
}

.bf-qm-content p {
	margin: 0 0 10px;
}

.bf-qm-content ul {
	margin: 0 0 10px;
	padding-left: 18px;
}

.bf-qm-feature-list {
	margin: 0;
	padding-left: 20px;
}

.bf-qm-feature-list li {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.5;
}

.bf-qm-empty {
	color: #98a2b3;
	font-size: 14px;
}

/* Xem thêm mô tả + nút xem chi tiết thông số */
.bf-rm-box {
	position: relative;
}

.bf-rm-box.is-collapsed {
	overflow: hidden;
}

.bf-rm-box.is-collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 140px;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%);
	pointer-events: none;
}

.bf-rm-btn-wrap {
	padding: 14px 0 6px;
	text-align: center;
}

.bf-rm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 28px;
	border: 0;
	border-radius: 999px;
	background: #d71920;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(215, 25, 32, 0.25);
}

.bf-rm-btn:hover {
	background: #b8151b;
}

.bf-rm-chev {
	font-size: 19px;
	line-height: 1;
}

.bf-specs-more-wrap {
	text-align: center;
	margin: 14px 0 0;
}

.bf-specs-more {
	display: block;
	width: 100%;
	margin: 0;
	padding: 9px 16px;
	border: 1px solid #d71920;
	border-radius: 4px;
	background: #fff;
	color: #d71920;
	font: inherit;
	font-size: 14px;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	cursor: pointer;
}

.bf-specs-more:hover {
	background: #fff5f5;
}

/*************** GIÁ TRONG DANH SÁCH SẢN PHẨM ***************/
.products .product .price,
.product-small .price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.products .product .price del,
.product-small .price del {
	order: 2;
	margin: 0;
}

.products .product .price ins,
.product-small .price ins {
	order: 1;
	text-decoration: none;
}

.products .product .price del .amount,
.product-small .price del .amount {
	display: inline;
	margin: 0 !important;
	color: #9aa0a6;
	font-size: 14px;
	font-weight: 400;
}

.products .product .price ins .amount,
.product-small .price ins .amount {
	color: #c5232b;
	font-size: 18px;
	font-weight: 700;
}

.products .product .price > .amount,
.product-small .price > .amount {
	color: #c5232b;
	font-size: 18px;
	font-weight: 700;
}

/*************** TRANG CHU: SAP XEP LAI KHOI DA BAN ***************/
/* Da khôi phục về bố cục gốc của theme */

@media only screen and (max-width: 549px) {
	.bf-quicknav {
		display: flex;
		justify-content: flex-start;
		gap: 8px;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.bf-quicknav-item {
		flex: 0 0 96px;
		min-height: 92px;
	}

	.bf-qm-overlay {
		padding: 0;
	}

	.bf-qm {
		min-height: 100vh;
		max-height: none;
		border-radius: 0;
	}

	.bf-qm-tabs {
		gap: 14px;
		padding: 14px 60px 0;
	}

	.bf-qm-tab {
		font-size: 13px;
	}

	.bf-qm-body {
		max-height: none;
		padding: 16px;
	}
}

/* Hide original buy button in upper add-to-cart; moved below */
.col.chitiet .add-to-cart-container .single_add_to_cart_button { display: none !important; }

/* Product title font */
.product-title.product_title.entry-title,
h1.product-title {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* ===== "Da ban" len tren nut Mua ngay (trang chu + danh muc) ===== */
.products .product .box-text,
.product-small .box-text-products {
	display: flex;
	flex-direction: column;
}

.products .product .box-text > .price,
.product-small .box-text-products > .price {
	order: 1;
}

.products .product .box-text > .skill-set,
.product-small .box-text-products > .skill-set {
	order: 2;
	margin: 4px 0 6px;
}

.products .product .box-text > a.button,
.products .product .box-text > .button,
.products .product .box-text > .add-to-cart-button,
.product-small .box-text-products > a.button,
.product-small .box-text-products > .button,
.product-small .box-text-products > .add-to-cart-button {
	order: 3;
}

.products .product .box-text > .mota,
.products .product .box-text > .star-rating,
.product-small .box-text-products > .mota,
.product-small .box-text-products > .star-rating {
	order: 4;
}
