/* =====================================================================
 * Mitomo — CSS giao diện con Flatsome. Màu chủ đạo #0074BF.
 * Biến màu khai báo ở style.css (:root --mitomo-*).
 * Màu nền đầu trang / menu nên đặt TRƯỚC trong Customizer (Header → màu nền);
 * tệp này chỉ tinh chỉnh phần Customizer không làm được.
 * ===================================================================== */

/* ---------- 1. Đầu trang ---------- */
.header-top {
	background-color: var(--mitomo-xanh-dam);
	font-size: 13px;
}

.header-main {
	background-color: var(--mitomo-xanh);
}

.header-main .nav > li > a,
.header-main .header-button .button,
.header-main .cart-price,
.header-main .icon-shopping-cart,
.header-main .icon-heart {
	color: #fff;
}

/* Ô tìm kiếm lớn, bo tròn */
.header-main .header-search-form,
.header-main .header-search-form-wrapper {
	width: 100%;
	max-width: 620px;
}

.header-main .searchform .search-field {
	height: 42px;
	border: 0;
	border-radius: 21px 0 0 21px;
	padding: 0 18px;
	box-shadow: none;
	font-size: 14px;
}

.header-main .searchform .button.icon {
	height: 42px;
	min-width: 56px;
	border-radius: 0 21px 21px 0;
	background-color: var(--mitomo-cam);
	color: #fff;
}

/* Khối Hotline (phần tử HTML trong Header Builder: <div class="mitomo-hotline"><small>Hotline</small><a href="tel:1900633475">1900 633 475</a></div>) */
.mitomo-hotline {
	color: #fff;
	line-height: 1.2;
	padding-left: 34px;
	position: relative;
}

.mitomo-hotline::before {
	content: "\260E";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
}

.mitomo-hotline small {
	display: block;
	opacity: 0.85;
	font-size: 12px;
}

.mitomo-hotline a {
	color: #fff;
	font-weight: 700;
	font-size: 16px;
}

/* Thanh danh mục ngang */
.header-bottom {
	background-color: #fff;
	border-bottom: 2px solid var(--mitomo-xanh);
}

.header-bottom .nav > li > a {
	color: var(--mitomo-chu);
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
}

.header-bottom .nav > li.active > a,
.header-bottom .nav > li > a:hover {
	color: var(--mitomo-xanh);
}

/* Logo Mitomo (ảnh chữ tối) hiện trắng trên nền xanh của đầu trang — áp cho mọi bản logo Flatsome in ra
 * (header_color = dark nên Flatsome hiện img.header-logo-dark; đầu trang dính cũng nền xanh nên cũng trắng). */
.header-main #logo img.header_logo,
.header-main #logo img.header-logo-dark,
.header-main #logo img.header-logo-sticky {
	filter: brightness(0) invert(1);
}

/* Nút đầu trang không gãy chữ */
.header-bottom .header-button .button,
.header-main .header-button .button {
	white-space: nowrap;
}

/* Mục chỉ cho menu điện thoại (Bảo hành, Liên hệ — trên máy tính đã ở thanh trên cùng) */
.header-bottom-nav > li.mitomo-chi-mobile {
	display: none;
}

/* Thanh danh mục: chữ nhỏ hơn chút để 1 dòng */
.header-bottom .header-bottom-nav > li > a {
	font-size: 12.5px;
	letter-spacing: 0;
}

/* Nút «☰ DANH MỤC SẢN PHẨM» — đặt class mitomo-btn-dm cho mục menu / nút */
.mitomo-btn-dm > a,
a.mitomo-btn-dm {
	background-color: var(--mitomo-xanh);
	color: #fff !important;
	padding: 0 12px !important;
	border-radius: 4px;
}

/* Nút đỏ «KHUYẾN MÃI» — trong Header Builder, phần tử Button → ô Class: mitomo-btn-km */
.mitomo-btn-km,
.mitomo-btn-km > a,
.button.mitomo-btn-km {
	background-color: var(--mitomo-do) !important;
	color: #fff !important;
	border-radius: 4px;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.mitomo-btn-km:hover,
.button.mitomo-btn-km:hover {
	filter: brightness(0.92);
}

/* ---------- 2. Thẻ sản phẩm (trang chủ, danh mục, tìm kiếm) ---------- */
.product-small .box-text .name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
	line-height: 1.3;
}

.product-small .price ins,
.product-small .price > .amount,
.product-small .price > .woocommerce-Price-amount {
	color: var(--mitomo-do);
	font-weight: 700;
	text-decoration: none;
}

.product-small .price del {
	color: var(--mitomo-xam);
	font-size: 0.85em;
}

/* Luật 14/11: không đặt gì lên ảnh SP (ảnh Mitomo đã có tem ở góc). PHP đã bỏ bong bóng (inc/product-price.php);
 * dòng này chặn thêm bong bóng do tùy chọn / plugin khác in vào khung ảnh. */
.product .badge-container,
.product-small .badge-container {
	display: none !important;
}

/* Nhãn «-x%» cạnh giá (lưới SP + Flash sale): nhỏ, nền đỏ chữ trắng, không gãy giữa «-» và «%». */
.mitomo-pct,
.mitomo-fs__pct {
	display: inline-block;
	margin-left: 4px;
	padding: 0 4px;
	border-radius: 3px;
	background: var(--mitomo-do);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	white-space: nowrap;
	vertical-align: middle;
}

/* Giá mới + nhãn % không bị tách khỏi nhau giữa chừng một con số. */
.product-small .price ins,
.product-small .price del {
	white-space: nowrap;
}

/* ---------- 3. Khối FLASH SALE ([mitomo_flash_sale]) ---------- */
.mitomo-fs {
	background: linear-gradient(180deg, var(--mitomo-xanh) 0, var(--mitomo-xanh-dam) 100%);
	border-radius: 8px;
	padding: 14px 14px 16px;
	margin-bottom: 24px;
	color: #fff;
}

.mitomo-fs__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.mitomo-fs__title {
	width: auto; /* một CSS khác đặt h1–h6 rộng 100% → «Xem tất cả» bị đẩy xuống dòng */
	margin: 0;
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	font-style: italic;
	letter-spacing: 0.5px;
}

.mitomo-fs__title::before {
	content: "\26A1";
	margin-right: 4px;
	color: #FFD400;
}

.mitomo-fs__timer {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
}

.mitomo-fs__timer-label {
	margin-right: 4px;
}

.mitomo-fs__u {
	display: inline-block;
	min-width: 30px;
	padding: 3px 4px;
	border-radius: 4px;
	background: #fff;
	color: var(--mitomo-do);
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.mitomo-fs__timer i {
	font-style: normal;
	margin: 0 4px 0 2px;
}

.mitomo-fs__timer.is-over {
	opacity: 0.5;
}

.mitomo-fs__all {
	margin-left: auto;
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}

.mitomo-fs__all:hover {
	color: #FFD400;
}

.mitomo-fs__note {
	margin: 6px 0 0;
	font-size: 14px;
	opacity: 0.95;
}

.mitomo-fs__wrap {
	position: relative;
	margin-top: 12px;
}

.mitomo-fs__list {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
}

.mitomo-fs__list::-webkit-scrollbar {
	display: none;
}

.mitomo-fs__item {
	flex: 0 0 calc((100% - 48px) / 5);
	scroll-snap-align: start;
	background: #fff;
	border-radius: 6px;
	padding: 8px;
	color: var(--mitomo-chu);
	display: flex;
	flex-direction: column;
}

.mitomo-fs__img {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.mitomo-fs__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mitomo-fs__name {
	margin-top: 6px;
	color: var(--mitomo-chu);
	font-size: 13px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
}

/* Giá mới + «-x%» 1 dòng, giá cũ gạch dòng dưới (đợt sửa 3). */
.mitomo-fs__price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 6px;
	margin-top: 4px;
	line-height: 1.3;
}

.mitomo-fs__now {
	color: var(--mitomo-do);
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
}

.mitomo-fs__old {
	color: var(--mitomo-xam);
	font-size: 12px;
}

.mitomo-fs__sold {
	position: relative;
	flex: 0 0 auto;
	margin-top: auto;
	height: 18px;
	/* Không kế thừa line-height 25.6px / chữ 16px của Flatsome: dòng chữ cao hơn thanh 18px sẽ bị đẩy xuống và cắt nửa dưới. */
	font-size: 11px;
	line-height: 18px;
	border-radius: 9px;
	background: #FFE3D3;
	overflow: hidden;
	text-align: center;
}

.mitomo-fs__price + .mitomo-fs__sold {
	margin-top: 8px;
}

.mitomo-fs__bar {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	background: linear-gradient(90deg, #FFB000, var(--mitomo-cam));
	border-radius: 9px;
}

/* Chữ nâu đậm trên nền cam nhạt / cam: đọc rõ cả khi thanh ngắn (Còn hàng) lẫn đầy (Đã bán nhiều). */
.mitomo-fs__sold-text {
	position: relative;
	color: #5A1E00;
	display: block;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	white-space: nowrap;
}

.mitomo-fs__nav {
	position: absolute;
	top: 40%;
	z-index: 2;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: var(--mitomo-xanh);
	font-size: 22px;
	line-height: 30px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	cursor: pointer;
}

.mitomo-fs__nav--prev {
	left: -6px;
}

.mitomo-fs__nav--next {
	right: -6px;
}

/* ---------- 4. Trang chi tiết SP ---------- */
.single-product .product-info .price {
	color: var(--mitomo-do);
}

.single-product .product-info .price ins {
	text-decoration: none;
	font-weight: 800;
}

.single-product .product-info .price del {
	color: var(--mitomo-xam);
	font-size: 0.7em;
}

.mitomo-save {
	margin: -6px 0 12px;
	font-size: 14px;
	color: var(--mitomo-chu);
}

.mitomo-save strong,
.mitomo-save__pct {
	color: var(--mitomo-do);
}

.mitomo-buy-now.button {
	background-color: var(--mitomo-do) !important;
	border-color: var(--mitomo-do) !important;
	color: #fff !important;
	font-weight: 800;
	min-width: 160px;
}

/* W-83: «Xem nhanh» — MUA NGAY xanh như trang SP (nền + viền cùng màu). */
.product-lightbox .mitomo-buy-now.button {
	background-color: var(--mitomo-xanh) !important;
	border-color: var(--mitomo-xanh) !important;
}

form.cart .single_add_to_cart_button:not(.mitomo-buy-now) {
	background-color: #fff;
	border: 2px solid var(--mitomo-xanh);
	color: var(--mitomo-xanh);
}

/* ---------- 4b. Dải cam kết + chân trang (khối do «Dựng Đợt 1» tạo) ---------- */
.mitomo-camket .featured-box {
	background: var(--mitomo-xanh-nhat);
	border-radius: 6px;
	padding: 12px 14px;
}

.mitomo-camket .featured-box h5,
.mitomo-camket .featured-box h4 {
	color: var(--mitomo-xanh);
	margin-bottom: 2px;
}

.mitomo-camket .featured-box p {
	margin: 0;
	font-size: 13px;
}

.mitomo-footer h4 {
	font-size: 15px;
	letter-spacing: 0.3px;
	margin-bottom: 10px;
}

.mitomo-footer p,
.mitomo-footer li {
	font-size: 13px;
	line-height: 1.6;
}

.mitomo-ft-list {
	list-style: none;
	margin: 0;
}

.mitomo-ft-list li {
	margin: 0 0 4px;
}

.mitomo-footer a,
.mitomo-footer-bottom a {
	color: #fff;
}

.mitomo-footer a:hover {
	color: #FFD400;
}

.mitomo-footer-bottom p {
	margin: 0;
	font-size: 12px;
	opacity: 0.85;
}

/* Chân trang dùng UX Block «Chân trang Mitomo» (có dòng bản quyền riêng) → ẩn dải chân trang mặc định của Flatsome. */
body.mitomo-footer-block .absolute-footer {
	display: none;
}

/* Thanh trên cùng: link chữ trắng */
.header-top a {
	color: #fff;
}

/* ---------- 5. Thanh nút đáy điện thoại ---------- */
.mitomo-mbar {
	display: none;
}

/* ---------- 5b. Liên hệ nổi + logo Bộ Công Thương (14/11, inc/footer-extras.php) ---------- */
/* Nút nổi cũ của web Oars (plugin WP Headers and Footers → ô Footer). CSS cũ nằm ở giao diện Oars → giờ hiện icon trần
 * ở góc dưới trái và tạo dải xám dưới chân trang. Ẩn ở đây; đoạn mã trong plugin để nguyên. */
.hotline1,
.hotline2 {
	display: none !important;
}

/* W-40a (15/11): slogan «Trao Giá Trị Thực» dưới logo, như logo mitomoshop.vn — chữ HTML (CSS) trắng, nghiêng có chân,
 * căn phải theo mép chữ «o» (logo-new.png 460px: «o» hết ở 440px → cách mép phải 4.3%). Đặt tuyệt đối → đầu trang
 * KHÔNG cao thêm; cặp logo + slogan nhích lên 7px cho cân giữa đầu trang (100px; dính / điện thoại 70px). */
.mitomo-v2 .header-main #logo a {
	position: relative;
	display: inline-block;
	transform: translateY(-7px);
}

.mitomo-v2 .header-main #logo a::after {
	content: "Trao Gi\E1  Tr\1ECB  Th\1EF1 c";
	position: absolute;
	top: 100%;
	right: 4.3%;
	color: #fff;
	font-family: "Times New Roman", Times, Georgia, serif;
	font-size: 14px;
	font-style: italic;
	font-weight: normal;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	pointer-events: none;
}

@media (max-width: 849px) {
	.mitomo-v2 .header-main #logo a::after {
		font-size: 12.5px;
	}
}

/* W-40a: nút «DANH MỤC SẢN PHẨM» bỏ khối nền sẫm (#005A94) — trong suốt, cùng xanh thanh menu; rê chuột chỉ mờ chữ nhẹ. */
.mitomo-v2 .header-vertical-menu__opener,
.mitomo-v2 .header-vertical-menu__opener:hover,
.mitomo-v2 .header-vertical-menu__opener:focus {
	background: transparent !important;
	box-shadow: none !important;
}

.mitomo-v2 .header-vertical-menu__opener:hover {
	opacity: 0.85;
}

/* W-40a: tab Flatsome kiểu viền (tabbed-content .nav-outline, vd. cột trái /dang-ky-bao-hanh-3/) — bỏ khung bo tròn,
 * chỉ đổi màu chữ: tab đang chọn / rê chuột xanh, tab khác xám đậm. Bàn phím: gạch chân mảnh (:focus-visible), không khung. */
.tabbed-content .nav-outline > li > a,
.tabbed-content .nav-outline > li > a:hover,
.tabbed-content .nav-outline > li > a:focus,
.tabbed-content .nav-outline > li.active > a {
	border-color: transparent !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none;
}

.tabbed-content .nav-outline > li > a {
	color: #333;
}

.tabbed-content .nav-outline > li > a:hover,
.tabbed-content .nav-outline > li.active > a {
	color: #0074BF;
}

.tabbed-content .nav-outline > li > a:focus-visible {
	outline: none;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

/* W-40a: ảnh thẻ SP vuông 1:1, hiện TRỌN ảnh (không cắt mép — tem ở góc ảnh phải hiện đủ). */
.product-small .box-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

.product-small .box-image img.back-image {
	height: 100%;
}

/* W-40a: chữ «Mitomo» ở chân trang dùng font Thủy Tiên cùng dáng logo (VISCII 1993 — chỉ cho chữ Latin không dấu).
 * Giấy phép không cho sửa font → giữ nguyên tệp .TTF (không đổi woff/woff2, không cắt ký tự), kèm README.TXT. */
@font-face {
	font-family: "Mitomo Thuy Tien";
	src: url("../fonts/TT____11.TTF") format("truetype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

.mitomo-brand {
	font-family: "Mitomo Thuy Tien", "Cooper Black", Georgia, serif;
	font-size: 1.25em;
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	letter-spacing: 0;
	color: inherit;
}

.mitomo-bct {
	display: inline-block;
	margin-top: 12px;
	line-height: 0;
}

.mitomo-bct img {
	width: 150px;
	max-width: 100%;
	height: auto;
}

/* Máy tính: cột nút tròn bên phải, ngay trên nút «lên đầu trang» của Flatsome (#top-link, cách đáy 20px). */
.mitomo-float {
	display: none;
}

@media (min-width: 850px) {
	.mitomo-float {
		display: flex;
		flex-direction: column;
		gap: 10px;
		position: fixed;
		right: 16px; /* tâm thẳng tâm nút #top-link (39px, cách phải 20px) */
		bottom: 68px; /* ngay trên #top-link (cao 39px, cách đáy ~17px) */
		z-index: 990;
	}

	.mitomo-float__btn {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		border-radius: 50%;
		color: #fff;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
		transition: transform 0.15s ease;
	}

	.mitomo-float__btn:hover,
	.mitomo-float__btn:focus {
		color: #fff;
		transform: scale(1.08);
	}

	.mitomo-float__btn--goi {
		background: var(--mitomo-do);
	}

	.mitomo-float__btn--zalo {
		background: #0068FF;
	}

	.mitomo-float__btn--messenger {
		background: #0099FF;
	}

	.mitomo-float__zalo {
		font-size: 12px;
		font-weight: 800;
		letter-spacing: -0.2px;
	}

	/* Chữ nhắc hiện bên trái khi rê chuột. */
	.mitomo-float__tip {
		position: absolute;
		right: 56px;
		top: 50%;
		transform: translateY(-50%);
		padding: 4px 10px;
		border-radius: 4px;
		background: rgba(0, 0, 0, 0.75);
		color: #fff;
		font-size: 13px;
		white-space: nowrap;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.15s ease;
	}

	.mitomo-float__btn:hover .mitomo-float__tip,
	.mitomo-float__btn:focus .mitomo-float__tip {
		opacity: 1;
		visibility: visible;
	}
}

/* ---------- 6. Điện thoại / máy tính bảng (Flatsome đổi bố cục ở 849px) ---------- */
@media (max-width: 849px) {
	.mitomo-fs__item {
		flex-basis: calc((100% - 24px) / 3);
	}

	.mitomo-fs__all {
		margin-left: 0;
	}

	.mitomo-mbar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		background: #fff;
		border-top: 1px solid var(--mitomo-vien);
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.mitomo-mbar__btn {
		flex: 1 1 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		height: 54px;
		color: var(--mitomo-chu);
		font-size: 11px;
		font-weight: 600;
	}

	.mitomo-mbar__icon {
		font-size: 20px;
		line-height: 1;
		margin-bottom: 3px;
	}

	.mitomo-mbar__btn--goi {
		background: var(--mitomo-xanh);
		color: #fff;
	}

	.mitomo-mbar__btn--goi .mitomo-mbar__icon::before { content: "\260E"; }
	.mitomo-mbar__btn--zalo .mitomo-mbar__icon::before { content: "Z"; font-weight: 800; color: var(--mitomo-xanh); }
	.mitomo-mbar__btn--messenger .mitomo-mbar__icon::before { content: "\2709"; color: var(--mitomo-xanh); }
	.mitomo-mbar__btn--gio .mitomo-mbar__icon::before { content: "\1F6D2"; }

	body.mitomo-has-mbar {
		padding-bottom: 54px;
	}
}

@media (max-width: 549px) {
	.mitomo-fs__title {
		font-size: 20px;
	}

	.mitomo-fs__item {
		flex-basis: calc((100% - 12px) / 2);
	}

	.mitomo-fs__nav {
		display: none;
	}
}

/* ===== Đợt 2: trang chuyển từ WPBakery / Oars ===== */
.mitomo-sub-title {
	margin-bottom: 4px;
	color: var(--mitomo-xanh, #0074bf);
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.mitomo-icon-box-title {
	margin-bottom: 6px;
}
.mitomo-map iframe {
	display: block;
	width: 100%;
	max-width: 100%;
}
.mitomo-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}
.mitomo-gallery--c2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mitomo-gallery--c4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mitomo-gallery__title {
	margin: 8px 0 0;
	font-size: 1em;
	text-align: center;
	text-transform: uppercase;
}
@media (max-width: 549px) {
	.mitomo-gallery,
	.mitomo-gallery--c4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}
/* W-31: trang Liên hệ — 3 bản đồ HCM / Hà Nội / Đà Nẵng. Máy tính 3 cột, điện thoại xếp dọc. */
.mitomo-maps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}
.mitomo-maps__item {
	min-width: 0;
}
.mitomo-maps__title {
	margin: 0 0 8px;
	font-size: 1.05em;
	color: var(--mitomo-xanh);
}
.mitomo-maps iframe {
	height: 300px;
}
@media (max-width: 549px) {
	.mitomo-maps {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
	.mitomo-maps iframe {
		height: 260px;
	}
}

/* =====================================================================
 * Bố cục 14/11 (bấm «Công cụ → Mitomo — Cập nhật 14/11» → body.mitomo-v2). Theo mẫu GĐ chọn: font Roboto
 * (cài đặt Flatsome), chữ máy tính 14px/21px, thanh trên 40px, đầu giữa 100px, thanh menu 56px, thẻ trắng bo góc.
 * Điện thoại (≤ 849px) giữ bố cục cũ, chỉ đổi font.
 * ===================================================================== */
.mitomo-buy-now__sub,
.mitomo-qty-label {
	display: none;
}

.mitomo-v2 .mitomo-save__pct {
	display: none; /* «-x%» đã nằm cạnh giá */
}

/* Bỏ hộp «Mục lục» (Easy Table of Contents) ở trang SP, giỏ, thanh toán. */
.single-product #ez-toc-container,
.woocommerce-cart #ez-toc-container,
.woocommerce-checkout #ez-toc-container {
	display: none !important;
}

@media (min-width: 850px) {
	body.mitomo-v2 {
		font-size: 14px;
		line-height: 1.5;
	}

	/* --- Thanh trên cùng 40px, chữ 14px --- */
	.mitomo-v2 .header-top,
	.mitomo-v2 .header-top .html,
	.mitomo-v2 .header-top .mitomo-tb {
		font-size: 14px; /* Flatsome thu chữ phần tử HTML thanh trên còn 75% */
	}

	/* --- Đầu trang giữa 100px: ô tìm 470 × 50 bo góc --- */
	.mitomo-v2 .header-main .header-search-form,
	.mitomo-v2 .header-main .header-search-form-wrapper {
		max-width: 470px;
	}

	.mitomo-v2 .header-main .searchform .search-field {
		height: 50px;
		border-radius: 25px 0 0 25px;
		padding: 0 22px;
		font-size: 14px;
	}

	.mitomo-v2 .header-main .searchform .button.icon {
		height: 50px;
		min-width: 64px;
		border-radius: 0 25px 25px 0;
	}

	/* Hotline + Giỏ hàng: icon + 2 dòng chữ 13px */
	.mitomo-v2 .header-main .header-nav-main > li {
		margin: 0 0 0 26px;
	}

	.mitomo-v2 .mitomo-hotline {
		padding-left: 40px;
		font-size: 13px;
		line-height: 1.35;
	}

	.mitomo-v2 .mitomo-hotline::before {
		font-size: 28px;
	}

	.mitomo-v2 .mitomo-hotline small {
		font-size: 13px;
		opacity: 0.9;
	}

	.mitomo-v2 .mitomo-hotline a {
		font-size: 15px;
	}

	.mitomo-v2 .header-main .cart-item .header-cart-link {
		display: flex;
		align-items: center;
		gap: 10px;
		font-size: 13px;
		line-height: 1.35;
		text-transform: none;
	}

	.mitomo-v2 .header-main .cart-item .header-cart-link > i,
	.mitomo-v2 .header-main .cart-item .header-cart-link > .cart-icon {
		order: -1;
	}

	.mitomo-v2 .header-main .header-cart-title {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		font-size: 13px;
		font-weight: 400;
		color: #fff;
		text-transform: none;
	}

	.mitomo-v2 .header-main .header-cart-title .cart-price {
		font-size: 15px;
		font-weight: 700;
	}

	.mitomo-v2 .header-main .icon-shopping-cart,
	.mitomo-v2 .header-main .icon-shopping-basket,
	.mitomo-v2 .header-main .icon-shopping-bag {
		font-size: 26px;
	}

	/* --- Thanh menu 56px nền xanh: «☰ DANH MỤC SẢN PHẨM» 300px + mục in hoa 14px đậm, cách nhau 30px --- */
	.mitomo-v2 .header-bottom {
		background-color: var(--mitomo-xanh);
		border-bottom: 0;
	}

	.mitomo-v2 .header-bottom .header-bottom-nav > li {
		margin: 0;
	}

	.mitomo-v2 .header-bottom .header-bottom-nav > li > a {
		padding: 0 15px;
		color: #fff;
		font-size: 14px;
		font-weight: 700;
		line-height: 56px;
		letter-spacing: 0;
		white-space: nowrap;
	}

	.mitomo-v2 .header-bottom .header-bottom-nav > li.active > a,
	.mitomo-v2 .header-bottom .header-bottom-nav > li > a:hover,
	.mitomo-v2 .header-bottom .header-bottom-nav > li.mitomo-menu-km > a {
		color: #FFD400;
	}

	.mitomo-v2 .header-vertical-menu {
		margin-right: 15px !important;
	}

	.mitomo-v2 .header-vertical-menu__opener {
		height: 56px;
		padding: 0 18px;
		border-right: 1px solid rgba(255, 255, 255, 0.25);
		color: #fff;
		font-size: 14px;
		font-weight: 700;
	}

	.mitomo-v2 .header-vertical-menu__fly-out .ux-nav-vertical-menu > li > a {
		font-size: 14px;
		font-weight: 500;
		text-transform: none;
	}

	.mitomo-sp-sticky {
		position: sticky;
		top: 90px;
	}

	.mitomo-v2 .product-footer .related {
		background: #fff;
		border-radius: 5px;
		padding: 20px 20px 0;
	}
}

/* Màn hình 850–1199px: bớt khoảng cách menu (tối thiểu 12px) để vẫn 1 dòng. */
@media (min-width: 850px) and (max-width: 1199px) {
	.mitomo-v2 .header-bottom .header-bottom-nav > li > a {
		padding: 0 12px;
		font-size: 13px;
	}

	.mitomo-v2 .header-vertical-menu__opener {
		width: 240px !important;
	}
}

/* --- Nền xám nhạt + thẻ SP trắng bo 10px (trang chủ, cửa hàng, danh mục, trang SP) --- */
.mitomo-v2.home #main,
.mitomo-v2.single-product #main,
.mitomo-v2.post-type-archive-product #main,
.mitomo-v2.tax-product_cat #main {
	background: #f5f6f8;
}

.mitomo-v2 .product-small.box {
	background: #fff;
	border-radius: 10px;
	padding: 10px;
}

.mitomo-v2 .product-small .box-image {
	border-radius: 6px;
	overflow: hidden;
}

.mitomo-v2 .product-small .box-text {
	padding: 10px 2px 4px;
}

.mitomo-v2 .product-small .name,
.mitomo-v2 .product-small .woocommerce-loop-product__title {
	font-size: 14px;
}

/* --- Trang chi tiết SP --- */
.mitomo-card {
	background: #fff;
	border-radius: 5px;
	padding: 20px;
	margin-bottom: 20px;
}

.mitomo-card__title {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e7eb;
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
}

.mitomo-v2 .product-page-title {
	background: #f5f6f8;
}

.mitomo-v2 .product-page-title .page-title-inner {
	padding-top: 14px;
	padding-bottom: 6px;
	min-height: 0;
}

.mitomo-v2 .breadcrumbs {
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.mitomo-v2.single-product .product-main {
	padding-top: 10px;
	padding-bottom: 0;
}

.mitomo-v2 .product-info {
	padding-top: 0;
}

.mitomo-v2 .product-info .product-title {
	font-size: 28px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: none;
	margin-bottom: 8px;
}

.mitomo-v2 .product-info .price {
	margin: 10px 0 4px;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.2;
}

.mitomo-v2 .product-info .price ins,
.mitomo-v2 .product-info .price > .amount,
.mitomo-v2 .product-info .price > .woocommerce-Price-amount {
	color: var(--mitomo-do);
	text-decoration: none;
}

.mitomo-v2 .product-info .price del {
	font-size: 16px;
	font-weight: 400;
}

.mitomo-v2 .product-info .price .mitomo-pct {
	font-size: 14px;
	line-height: 22px;
	padding: 0 6px;
	vertical-align: 6px;
}

.mitomo-v2 .mitomo-save {
	margin: 0 0 14px;
}

/* Số lượng + 2 nút rộng hết thẻ: «MUA NGAY» 2 dòng cao 68px, «THÊM VÀO GIỎ HÀNG» viền xanh. */
.mitomo-v2 form.cart:not(.variations_form),
.mitomo-v2 .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.mitomo-v2 form.cart .mitomo-qty-label {
	display: inline-block;
	order: 0;
	flex: 0 0 auto;
	width: auto;
	margin-right: 4px;
}

.mitomo-v2 form.cart .quantity {
	order: 1;
	margin: 0 !important;
}

.mitomo-v2 form.cart .mitomo-buy-now.button {
	order: 2;
	flex: 1 1 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 68px;
	margin: 6px 0 0;
	border-radius: 10px;
	line-height: 1.25;
}

.mitomo-v2 .mitomo-buy-now__main {
	font-size: 18px;
	font-weight: 700;
}

.mitomo-v2 .mitomo-buy-now__sub {
	display: block;
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
}

.mitomo-v2 form.cart .single_add_to_cart_button:not(.mitomo-buy-now) {
	order: 3;
	flex: 1 1 100%;
	min-height: 50px;
	margin: 0;
	border-radius: 10px;
	font-size: 16px;
}

.mitomo-v2 .mitomo-call {
	margin: 4px 0 14px;
	text-align: center;
	font-size: 15px;
}

.mitomo-v2 .mitomo-call a {
	color: var(--mitomo-chu);
}

.mitomo-v2 .mitomo-call strong {
	color: var(--mitomo-do);
}

/* Mô tả ngắn dưới các nút: dài thì thu gọn. */
.mitomo-sp-excerpt {
	padding-top: 12px;
	border-top: 1px solid #e5e7eb;
}

.mitomo-sp-excerpt.is-collapsed .mitomo-sp-excerpt__in {
	max-height: 220px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
	mask-image: linear-gradient(180deg, #000 70%, transparent);
}

.mitomo-more {
	margin: 6px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--mitomo-xanh);
	font-weight: 600;
	cursor: pointer;
}

/* Hàng 2: «ĐẶC ĐIỂM NỔI BẬT» + «Tin nổi bật». */
.mitomo-sp-sec {
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

.mitomo-sp-sec img {
	max-width: 100%;
	height: auto;
}

.mitomo-tin__list {
	list-style: none;
	margin: 0;
}

.mitomo-tin__item {
	margin: 0 0 12px;
}

.mitomo-tin__item a {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--mitomo-chu);
}

.mitomo-tin__item a:hover {
	color: var(--mitomo-xanh);
}

.mitomo-tin__img {
	flex: 0 0 80px;
	width: 80px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
}

.mitomo-tin__title {
	font-size: 14px;
	line-height: 1.4;
}

/* Thanh trên: các link cách nhau rõ; điện thoại chỉ giữ «Hệ thống cửa hàng» như cũ. */
.mitomo-tb {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0 22px;
	white-space: nowrap;
}

.mitomo-tb__sep {
	opacity: 0.5;
}

.mitomo-v2 .product-info .price ins,
.mitomo-v2 .product-info .price .mitomo-pct {
	white-space: nowrap;
}

@media (max-width: 849px) {
	.mitomo-tb__sep,
	.mitomo-tb__hot {
		display: none;
	}

	.mitomo-v2 .product-info .product-title {
		font-size: 22px;
	}

	.mitomo-v2 .product-info .price {
		font-size: 24px;
	}

	.mitomo-v2 .mitomo-buy-now__sub {
		font-size: 12.5px;
	}

	.mitomo-card {
		padding: 14px;
		margin-bottom: 14px;
	}
}

/* Flatsome tô «span.amount» màu #111 → giá mới đỏ phải đè lên cả thẻ con (lưới SP, Flash sale, trang SP). */
.product-small .price ins span.amount,
.product-small .price > span.amount,
.mitomo-fs__now span.amount,
.mitomo-v2 .product-info .price ins span.amount,
.mitomo-v2 .product-info .price > span.amount {
	color: var(--mitomo-do);
}

.product-small .price del span.amount,
.mitomo-fs__old span.amount,
.mitomo-v2 .product-info .price del span.amount {
	color: var(--mitomo-xam);
}

/* Mô tả dán từ Word mang font có chân (Times…) trong style → ép Roboto như phần còn lại (không sửa nội dung).
 * Chỉ vùng mô tả / thông số; thẻ Đánh giá giữ font biểu tượng của sao. */
.mitomo-v2 .mitomo-sp-excerpt__in,
.mitomo-v2 .mitomo-sp-excerpt__in *,
.mitomo-v2 .mitomo-sp-sec--description,
.mitomo-v2 .mitomo-sp-sec--description *,
.mitomo-v2 .mitomo-sp-sec--additional_information,
.mitomo-v2 .mitomo-sp-sec--additional_information * {
	font-family: "Roboto", sans-serif !important;
}

/* =====================================================================
 * Đợt sửa 3 (theo ảnh mẫu GĐ chọn, bố cục 14/11 — body.mitomo-v2)
 * ===================================================================== */

/* --- 8. Tiêu đề khối: chữ giữ nguyên (không ép in hoa), Roboto 500, vạch xanh ngắn dưới chữ, «Xem thêm ⟶» bên phải --- */
.mitomo-v2 .section-title-container {
	margin-bottom: 22px;
}

.mitomo-v2 .section-title {
	position: relative;
	display: flex;
	flex-wrap: nowrap; /* tiêu đề dài tự xuống dòng trong phần của nó, «Xem thêm» vẫn cùng hàng */
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0 0 16px;
	border: 0;
	text-transform: none;
}

.mitomo-v2 .section-title > b {
	display: none;
}

.mitomo-v2 .section-title .section-title-main {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	color: #222;
	font-size: 24px !important;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

.mitomo-v2 .section-title::after,
.mitomo-v2 .product-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 120px;
	height: 4px;
	border-radius: 2px;
	background: var(--mitomo-xanh);
}

.mitomo-v2 .section-title > a {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	margin: 0 0 0 auto;
	padding: 0;
	color: var(--mitomo-xanh);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
}

.mitomo-v2 .section-title > a i {
	display: none;
}

.mitomo-v2 .section-title > a::after {
	content: "\27F6";
	font-size: 22px;
	line-height: 1;
}

/* «Sản phẩm tương tự» (trang SP) cùng kiểu. */
.mitomo-v2 .product-section-title {
	position: relative;
	margin-bottom: 20px;
	padding: 0 0 16px !important;
	border: 0;
	color: #222;
	font-size: 24px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

/* --- 9. Thẻ SP: bỏ danh mục nhỏ + sao; tên 2 dòng; giá mới đỏ to + «-x%», giá cũ dòng dưới --- */
.mitomo-v2 .product-small.box {
	border-radius: 12px;
	padding: 12px;
}

.mitomo-v2 .product-small .box-text .category,
.mitomo-v2 .product-small .box-text .star-rating,
.mitomo-v2 .product-small .box-text .woocommerce-review-link {
	display: none;
}

.mitomo-v2 .product-small .box-text .name,
.mitomo-v2 .product-small .woocommerce-loop-product__title {
	min-height: 2.8em;
	margin-bottom: 6px;
	color: #222;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
}

.mitomo-v2 .product-small .box-text .name {
	display: -webkit-box !important; /* Flatsome đặt display:flow-root → mất cắt 2 dòng */
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	max-height: 2.8em;
}

.mitomo-v2 .product-small .box-text .name a {
	display: inline;
	color: #222;
}

/* Ô giá cao cố định 2 dòng → thẻ trong 1 hàng cao bằng nhau mà không đụng tới khối trượt (Flickity). */
.mitomo-v2 .product-small .price-wrapper .price {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	align-items: center;
	gap: 2px 6px;
	min-height: 48px;
}

.mitomo-v2 .product-small .price ins {
	order: 1;
	font-size: 18px;
	font-weight: 700;
}

.mitomo-v2 .product-small .price > span.amount {
	font-size: 18px;
	font-weight: 700;
}

.mitomo-v2 .product-small .price .mitomo-pct {
	order: 2;
	margin-left: 0;
}

.mitomo-v2 .product-small .price del {
	order: 3;
	flex-basis: 100%;
	font-size: 14px;
	opacity: 1;
}

/* Flash sale: cùng thứ tự giá (giá mới + % trên, giá cũ dưới). */
.mitomo-fs__old {
	flex-basis: 100%;
}

/* --- 10. W-39: thanh đáy điện thoại Danh mục · Gọi · Zalo · Giỏ hàng; Messenger nút tròn nổi --- */
.mitomo-dm__title {
	margin: 0;
	padding: 18px 20px 8px;
	color: var(--mitomo-xanh);
	font-size: 15px;
	font-weight: 700;
}

@media (max-width: 849px) {
	.mitomo-v2 .section-title .section-title-main,
	.mitomo-v2 .product-section-title {
		font-size: 22px !important;
	}

	.mitomo-v2 .section-title::after,
	.mitomo-v2 .product-section-title::after {
		width: 35%;
	}

	.mitomo-v2 .section-title > a {
		font-size: 15px;
	}

	.mitomo-v2 .product-small .price ins,
	.mitomo-v2 .product-small .price > span.amount {
		font-size: 17px;
	}

	.mitomo-v2 .mitomo-mbar {
		background: var(--mitomo-xanh);
		border-top: 0;
	}

	.mitomo-v2 .mitomo-mbar__btn,
	.mitomo-v2 .mitomo-mbar__btn--goi {
		height: 64px;
		background: transparent;
		color: #fff;
		font-size: 13px;
		font-weight: 400;
	}

	.mitomo-v2 .mitomo-mbar__icon {
		position: relative;
		margin-bottom: 4px;
		line-height: 0;
	}

	.mitomo-v2 .mitomo-mbar__icon::before {
		content: none !important;
	}

	.mitomo-mbar__count {
		position: absolute;
		top: -6px;
		right: -12px;
		min-width: 18px;
		height: 18px;
		padding: 0 4px;
		border-radius: 9px;
		background: #fff;
		color: var(--mitomo-xanh);
		font-size: 11px;
		font-weight: 700;
		line-height: 18px;
		text-align: center;
	}

	body.mitomo-v2.mitomo-has-mbar {
		padding-bottom: 64px;
	}

	/* Messenger: nút tròn nổi bên phải, trên nút «lên đầu trang» (đã đẩy lên trên thanh đáy). */
	.mitomo-v2 .mitomo-float {
		display: flex;
		position: fixed;
		right: 14px;
		bottom: 134px;
		z-index: 990;
	}

	.mitomo-v2 .mitomo-float__btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		border-radius: 50%;
		background: #0099FF;
		color: #fff;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	}

	/* Điện thoại: chỉ Messenger (Gọi, Zalo đã ở thanh đáy). Đặt SAU luật nút ở trên để thắng. */
	.mitomo-v2 .mitomo-float .mitomo-float__btn--goi,
	.mitomo-v2 .mitomo-float .mitomo-float__btn--zalo,
	.mitomo-v2 .mitomo-float .mitomo-float__tip {
		display: none;
	}

	.mitomo-v2.mitomo-has-mbar #top-link {
		bottom: 78px !important;
	}

	.mitomo-v2:not(.mitomo-has-mbar) .mitomo-float {
		bottom: 76px;
	}
}

/* =====================================================================
 * W-40a việc 6 (15/11): trang Giới thiệu (/gioi-thieu/, page-id-6866) — nội dung UX Builder 2019 giữ nguyên trong
 * CSDL, chỉ sắp lại bằng CSS: bỏ nền vệt nâu, chữ + ảnh cạnh nhau căn giữa dọc, bỏ lề âm −200px, ảnh bo 8px,
 * khoảng cách đều (60px máy tính / 30px điện thoại); điện thoại chữ trước ảnh sau.
 * ===================================================================== */
.page-id-6866 #content .section-bg,
.page-id-6866 #content .gap-element {
	display: none !important;
}

.page-id-6866 #content .section {
	margin: 0 0 30px;
	padding: 60px 40px !important;
	border-radius: 8px;
	background: #fff;
}

.page-id-6866 #content .section + .section {
	background: #f5f7fa;
}

.page-id-6866 #content .section .row {
	align-items: center;
}

.page-id-6866 #content .section .col {
	align-self: center;
	padding-bottom: 0;
}

.page-id-6866 #content .section .row + .row {
	margin-top: 0;
}

.page-id-6866 #content .section .img,
.page-id-6866 #content .xl-mg-left-neg-200 {
	width: 100% !important;
	margin: 0 !important;
}

.page-id-6866 #content .section .img-inner,
.page-id-6866 #content .section .img img {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
}

.page-id-6866 #content .section .img img {
	display: block;
	height: auto;
}

.page-id-6866 #content .section .section-title-container {
	margin-bottom: 16px;
	padding-right: 0;
	padding-left: 0;
}

@media (min-width: 850px) {
	/* Khối 1: chữ 5/12 · ảnh 7/12. */
	.page-id-6866 .main-introduction {
		flex-wrap: nowrap;
	}

	.page-id-6866 .main-introduction > .col:first-child {
		flex-basis: 41.6667%;
		max-width: 41.6667%;
		padding-right: 40px;
	}

	.page-id-6866 .main-introduction > .main-image-intro {
		flex-basis: 58.3333%;
		max-width: 58.3333%;
	}

	/* Khối 2: ảnh 6/12 bên trái · chữ 6/12 bên phải (so le với khối 1); chữ dài → mép trên ảnh ngang tiêu đề,
	 * ảnh dính khi cuộn đọc. */
	.page-id-6866 .col-md-pull-6 {
		padding-left: 40px;
	}

	.page-id-6866 #content .section .col-md-push-6,
	.page-id-6866 #content .section .col-md-pull-6 {
		align-self: flex-start;
	}

	.page-id-6866 #content .section .col-md-push-6 .col-inner {
		position: sticky;
		top: 150px;
	}
}

@media (max-width: 849px) {
	.page-id-6866 #content .section {
		margin-bottom: 20px;
		padding: 30px 15px !important;
	}

	/* Mỗi khối: chữ trước, ảnh sau. */
	.page-id-6866 .col-md-pull-6 {
		order: 1;
		margin-bottom: 20px;
	}

	.page-id-6866 .col-md-push-6 {
		order: 2;
	}

	.page-id-6866 .main-introduction > .col:first-child {
		margin-bottom: 20px;
	}
}

/* Hộp «MỤC LỤC» (Easy TOC): ẩn ở trang tĩnh (Giới thiệu, Liên hệ, thanh toán…), giữ trong bài viết. */
body.page #ez-toc-container {
	display: none !important;
}

/* Mỏ neo Easy TOC (span rỗng) trong tiêu đề khối không chiếm chỗ trong hàng flex (khỏi lệch chữ tiêu đề). */
.section-title > .ez-toc-section,
.section-title > .ez-toc-section-end {
	position: absolute;
}

/* =====================================================================
 * W-41 (15/11): rà soát giao diện — inc/w41.php + CSS dưới đây.
 * ===================================================================== */

/* (3) Ảnh đại diện chữ cái đầu (thay Gravatar vỡ). */
.mitomo-avatar {
	display: inline-block;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #0074BF;
	color: #fff;
	font-weight: 700;
	text-align: center;
	vertical-align: middle;
	overflow: hidden;
}

/* (4) Trang chính sách: đường dẫn + H1 cùng kiểu tiêu đề khối, khung chữ ~860px. */
.mitomo-policy-page #content .col-inner {
	max-width: 860px;
	margin: 0 auto;
}

.mitomo-bc {
	margin: 0 0 10px;
	color: #777;
	font-size: 14px;
}

.mitomo-bc a {
	color: #777;
}

.mitomo-bc a:hover {
	color: #0074BF;
}

.mitomo-page-title {
	position: relative;
	margin: 0 0 28px;
	padding-bottom: 16px;
	color: #222;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.3;
}

.mitomo-page-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 120px;
	height: 4px;
	border-radius: 2px;
	background: #0074BF;
}

.mitomo-policy {
	color: #333;
	font-size: 15px;
	line-height: 1.7;
}

.mitomo-policy p,
.mitomo-policy ul,
.mitomo-policy ol {
	margin-bottom: 14px;
}

.mitomo-policy li {
	margin-bottom: 6px;
}

@media (max-width: 849px) {
	.mitomo-page-title {
		font-size: 22px;
	}
}

/* (5) Bảng trong nội dung trang / bài viết (không đụng bảng WPTB, bảng Woo). */
.page-wrapper .col-inner table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes),
.entry-content table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes) {
	width: 100%;
	margin: 0 0 20px;
	border: 1px solid #e5e7eb !important;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 15px;
}

.page-wrapper .col-inner table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes) :is(td, th),
.entry-content table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes) :is(td, th) {
	padding: 10px 14px;
	border: 1px solid #e5e7eb !important;
	color: #333 !important;
	text-align: left;
	vertical-align: top;
}

.page-wrapper .col-inner table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes) :is(thead th, tr:first-child > th),
.page-wrapper .col-inner table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes):not(:has(thead)) tr:first-child > td,
.entry-content table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes) :is(thead th, tr:first-child > th),
.entry-content table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes):not(:has(thead)) tr:first-child > td {
	background: #e8f2fa;
	color: #0b3d63 !important;
	font-weight: 700;
}

.page-wrapper .col-inner table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes) tbody tr:nth-child(even) > td,
.entry-content table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes) tbody tr:nth-child(even) > td {
	background: #f8fafc;
}

.page-wrapper .col-inner table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes) a,
.entry-content table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes) a {
	color: #0074BF !important;
}

@media (max-width: 849px) {
	.page-wrapper .col-inner table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes),
	.entry-content table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes) {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Trang chính sách: bỏ khoảng trống cũ (gap-element UX Builder) dưới H1. */
.mitomo-policy .gap-element {
	display: none !important;
}

/* Trang chính sách dạng tab (vd. /chinh-sach-bao-hanh/ có tab dọc): giữ khung rộng, chỉ thêm H1. */
.mitomo-policy-page #content .col-inner:has(.tabbed-content) {
	max-width: none;
}

/* Bảng: chữ trong link (span có màu viết sẵn) cùng màu xanh của link. */
.page-wrapper .col-inner table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes) a *,
.entry-content table:not(.wptb-preview-table):not(.shop_table):not(.variations):not(.woocommerce-product-attributes) a * {
	color: inherit !important;
}

/* (7) Tin tức / danh mục bài viết: thẻ trắng bo 8px, ảnh 16:9, tiêu đề 2 dòng, tóm tắt 3 dòng, chữ căn trái. */
.blog .post-item .box-blog-post,
.archive.category .post-item .box-blog-post {
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.blog .post-item .box-text,
.archive.category .post-item .box-text {
	padding: 14px 16px 18px;
	text-align: left;
}

.blog .post-item .post-title,
.archive.category .post-item .post-title {
	display: -webkit-box !important;
	min-height: 2.8em;
	margin-bottom: 8px;
	overflow: hidden;
	color: #222;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-transform: none;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Link trong tiêu đề phải là inline thì cắt 2 dòng mới ăn (Flatsome để inline-block). */
.blog .post-item .post-title a,
.archive.category .post-item .post-title a {
	display: inline !important;
}

.blog .post-item .is-divider,
.archive.category .post-item .is-divider {
	display: none;
}

.blog .post-item .from_the_blog_excerpt,
.archive.category .post-item .from_the_blog_excerpt {
	display: -webkit-box !important;
	min-height: 4.65em;
	margin: 0;
	overflow: hidden;
	color: #555;
	font-size: 14px;
	line-height: 1.55;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* =====================================================================
 * W-42 (15/11): tiêu đề khối trang chủ kiểu mitomoshop.vn (inc/w42.php) — nhãn xanh #0074BF có biểu tượng trắng,
 * đầu phải bo tròn + vòng cung viền mảnh; banner 1200×314 bo 8px; nút «Xem tất cả ⟶» cuối khối; tab 1 hàng.
 * ===================================================================== */
.mitomo-w42-head {
	margin: 0 0 12px;
	line-height: 0;
}

.mitomo-w42-label {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: auto !important;
	max-width: calc(100% - 14px);
	margin: 0 14px 0 0;
	padding: 9px 26px 9px 16px;
	border-radius: 0 999px 999px 0;
	background: #0074BF;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0;
}

.mitomo-w42-label::after {
	content: "";
	position: absolute;
	top: -5px;
	right: -9px;
	bottom: -5px;
	width: 44px;
	border: 2px solid #0074BF;
	border-left: 0;
	border-radius: 0 999px 999px 0;
	pointer-events: none;
}

.mitomo-w42-icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	background: #fff;
	-webkit-mask: var(--mitomo-w42-icon) center / contain no-repeat;
	mask: var(--mitomo-w42-icon) center / contain no-repeat;
}

.mitomo-w42-banner {
	display: block;
	margin: 0 0 16px;
	overflow: hidden;
	border-radius: 8px;
	line-height: 0;
}

.mitomo-w42-banner img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 314;
	object-fit: cover;
	transition: transform 0.3s ease;
}

a.mitomo-w42-banner:hover img {
	transform: scale(1.02);
}

.mitomo-w42-more {
	margin: 6px 0 10px;
	text-align: center;
}

.mitomo-w42-more__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 26px;
	border: 1.5px solid #0074BF;
	border-radius: 999px;
	color: #0074BF;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

.mitomo-w42-more__btn:hover {
	background: #0074BF;
	color: #fff;
}

/* W-44: hàng tab trong khối trang chủ (Điện gia dụng / Gia dụng nhà bếp) kiểu viên thuốc như mitomoshop.vn — tab chọn nền xanh
 * chữ trắng, tab khác nền trắng viền xám; bỏ vạch gạch chân tab cũ; điện thoại 1 hàng cuộn ngang (ẩn thanh cuộn). */
.mitomo-v2.home .tabbed-content > .nav-line {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
	border: 0 !important;
	box-shadow: none !important;
}

.mitomo-v2.home .tabbed-content > .nav-line > li > a::before,
.mitomo-v2.home .tabbed-content > .nav-line > li > a::after,
.mitomo-v2.home .tabbed-content > .nav-line::before,
.mitomo-v2.home .tabbed-content > .nav-line::after {
	display: none !important;
}

.mitomo-v2.home .tabbed-content > .nav-line > li {
	margin: 0 !important;
}

.mitomo-v2.home .tabbed-content > .nav-line > li > a {
	display: inline-block;
	margin: 0;
	padding: 8px 18px;
	border: 1px solid #dcdfe4;
	border-radius: 999px;
	background: #fff;
	color: #444;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
}

.mitomo-v2.home .tabbed-content > .nav-line > li > a:hover {
	border-color: #0074BF;
	color: #0074BF;
}

.mitomo-v2.home .tabbed-content > .nav-line > li.active > a,
.mitomo-v2.home .tabbed-content > .nav-line > li.active > a:hover {
	border-color: #0074BF;
	background: #0074BF;
	color: #fff;
}

@media (max-width: 849px) {
	.mitomo-w42-label {
		gap: 8px;
		padding: 7px 20px 7px 12px;
		font-size: 18px;
	}

	.mitomo-w42-label::after {
		top: -4px;
		right: -7px;
		bottom: -4px;
		width: 36px;
	}

	.mitomo-w42-icon {
		width: 24px;
		height: 24px;
	}

	.mitomo-w42-banner {
		margin-bottom: 12px;
		border-radius: 6px;
	}

	.mitomo-v2.home .tabbed-content > .nav-line {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.mitomo-v2.home .tabbed-content > .nav-line::-webkit-scrollbar {
		display: none !important;
	}

	.mitomo-v2.home .tabbed-content > .nav-line > li {
		flex: 0 0 auto;
	}

	.mitomo-v2.home .tabbed-content > .nav-line > li > a {
		padding: 7px 15px;
		font-size: 14px;
	}
}

/* (6) Liên hệ (/lien-he-2/, page-id-4613 — đúng ID web thật): 2 cột — trái thông tin công ty + 3 văn phòng (khung xanh nhạt),
 * phải form rộng đủ (ô thẳng hàng, Họ tên + Email 2 cột, còn lại cả hàng); bản đồ 3 chi nhánh bên dưới; bỏ khoảng trống đầu trang. */
.page-id-4613 #content .gap-element {
	display: none !important;
}

.page-id-4613 #content .row:has(> .contact-color) {
	align-items: stretch;
	margin-top: 36px;
	margin-bottom: 36px;
}

.page-id-4613 #content .row:has(> .contact-color) > .contact-color {
	order: 1;
}

.page-id-4613 #content .row:has(> .contact-color) > .col:first-child {
	order: 2;
}

.page-id-4613 #content .contact-color > .col-inner {
	height: 100%;
	padding: 28px;
	border-radius: 8px;
	background: #f3f8fc;
	font-size: 15px;
	line-height: 1.7;
}

.page-id-4613 #content .row:has(> .contact-color) > .col:first-child > .col-inner {
	height: 100%;
	padding: 28px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.page-id-4613 #content .contact-color .row {
	margin: 0;
}

.page-id-4613 #content .contact-color .row > .col {
	flex-basis: 100%;
	max-width: 100%;
	padding: 0 0 10px;
}

.page-id-4613 #content .contact-color a {
	overflow-wrap: anywhere;
}

.page-id-4613 #content .contact-color .mitomo-icon-box-title {
	margin: 14px 0 6px;
	color: #0074BF;
	font-size: 16px;
}

.page-id-4613 .g5plus-contact-form .row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
	margin: 0;
}

.page-id-4613 .g5plus-contact-form .ct-field {
	float: none;
	width: auto;
	max-width: none;
	padding: 0;
}

.page-id-4613 .g5plus-contact-form .ct-subject,
.page-id-4613 .g5plus-contact-form .ct-message,
.page-id-4613 .g5plus-contact-form .ct-submit {
	grid-column: 1 / -1;
}

.page-id-4613 .g5plus-contact-form p {
	margin: 0 0 14px;
}

.page-id-4613 .g5plus-contact-form input:not([type="submit"]),
.page-id-4613 .g5plus-contact-form textarea {
	width: 100%;
	max-width: none;
	height: 46px;
	margin: 0;
	border-radius: 6px;
	font-size: 15px;
}

.page-id-4613 .g5plus-contact-form textarea {
	height: 150px;
}

.page-id-4613 .g5plus-contact-form .wpcf7-submit {
	height: 46px;
	margin: 0;
	padding: 0 36px;
	border-radius: 6px;
	background: #0074BF;
	font-size: 15px;
}

.page-id-4613 #content iframe {
	border-radius: 8px;
}

@media (min-width: 850px) {
	.page-id-4613 #content .row:has(> .contact-color) > .contact-color {
		flex-basis: 41.6667%;
		max-width: 41.6667%;
	}

	.page-id-4613 #content .row:has(> .contact-color) > .col:first-child {
		flex-basis: 58.3333%;
		max-width: 58.3333%;
	}
}

@media (max-width: 849px) {
	.page-id-4613 #content .row:has(> .contact-color) {
		margin-top: 16px;
	}

	.page-id-4613 #content .contact-color > .col-inner,
	.page-id-4613 #content .row:has(> .contact-color) > .col:first-child > .col-inner {
		padding: 18px;
	}

	.page-id-4613 #content .row:has(> .contact-color) > .contact-color {
		margin-bottom: 16px;
	}

	.page-id-4613 .g5plus-contact-form .row {
		grid-template-columns: 1fr;
	}
}

/* (1) Trang «Hợp tác kinh doanh» (/dai-ly-2/, inc/hop-tac.php): thẻ trắng bo 8px, tiêu đề vạch xanh, nút xanh #0074BF. */
.mitomo-hoptac {
	max-width: 1200px;
	margin: 30px auto 50px;
	color: #333;
	font-size: 15px;
	line-height: 1.7;
}

.mitomo-hoptac__lead {
	max-width: 860px;
	margin-bottom: 30px;
	font-size: 16px;
}

.mitomo-hoptac__h2 {
	margin: 34px 0 16px;
	color: #222;
	font-size: 22px;
	font-weight: 500;
}

.mitomo-hoptac__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.mitomo-hoptac__card {
	position: relative;
	padding: 24px 22px 22px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.mitomo-hoptac__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: #0074BF;
	color: #fff;
	font-weight: 700;
}

.mitomo-hoptac__card h3 {
	margin: 0 0 8px;
	color: #0074BF;
	font-size: 18px;
}

.mitomo-hoptac__card p {
	margin: 0;
}

.mitomo-hoptac__more {
	display: inline-block;
	margin-top: 12px;
	color: #0074BF;
	font-weight: 500;
}

.mitomo-hoptac__benefits {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mitomo-hoptac__benefits li {
	display: flex;
	gap: 10px;
	margin: 0 0 10px;
}

.mitomo-hoptac__benefits svg {
	flex: 0 0 18px;
	margin-top: 4px;
	color: #0074BF;
}

.mitomo-hoptac__contact {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 24px;
	margin-top: 34px;
}

.mitomo-hoptac__info {
	padding: 4px 28px 28px;
	border-radius: 8px;
	background: #f3f8fc;
}

.mitomo-hoptac__info a {
	color: #0074BF;
}

.mitomo-hoptac__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.mitomo-hoptac__btns .button {
	margin: 0;
	padding: 0 28px;
	border-radius: 6px;
	font-size: 15px;
	line-height: 46px;
	min-height: 46px;
}

.mitomo-hoptac__btns .button,
.mitomo-hoptac__info .mitomo-hoptac__btns a.button {
	color: #fff !important;
}

.mitomo-hoptac__btns .button.primary {
	background: #0074BF;
}

.mitomo-hoptac__btns .mitomo-hoptac__zalo {
	background: #0068FF;
	color: #fff;
}

.mitomo-hoptac__form {
	padding: 24px 28px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.mitomo-hoptac__form h3 {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 500;
}

.mitomo-hoptac__form .g5plus-contact-form .row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
	margin: 0;
}

.mitomo-hoptac__form .g5plus-contact-form .ct-field {
	float: none;
	width: auto;
	max-width: none;
	padding: 0;
}

.mitomo-hoptac__form .g5plus-contact-form .ct-subject,
.mitomo-hoptac__form .g5plus-contact-form .ct-message,
.mitomo-hoptac__form .g5plus-contact-form .ct-submit {
	grid-column: 1 / -1;
}

.mitomo-hoptac__form .g5plus-contact-form p {
	margin: 0 0 14px;
}

.mitomo-hoptac__form input:not([type="submit"]),
.mitomo-hoptac__form textarea {
	width: 100%;
	max-width: none;
	height: 46px;
	margin: 0;
	border-radius: 6px;
}

.mitomo-hoptac__form textarea {
	height: 130px;
}

.mitomo-hoptac__form .wpcf7-submit {
	height: 46px;
	margin: 0;
	padding: 0 36px;
	border-radius: 6px;
	background: #0074BF;
}

@media (max-width: 849px) {
	.mitomo-hoptac {
		margin-top: 16px;
	}

	.mitomo-hoptac__cards,
	.mitomo-hoptac__contact,
	.mitomo-hoptac__form .g5plus-contact-form .row {
		grid-template-columns: 1fr;
	}

	.mitomo-hoptac__info,
	.mitomo-hoptac__form {
		padding: 4px 18px 18px;
	}

	.mitomo-hoptac__form {
		padding-top: 18px;
	}
}

/* W-43: ảnh rê chuột (Flatsome .back-image) ẩn hẳn trên điện thoại / máy tính bảng (không rê chuột được); ảnh nạp chậm
 * nên khi bị ẩn trình duyệt không tải. */
@media (max-width: 849px) {
	.product-small .box-image .back-image {
		display: none !important;
	}
}

/* W-45: H1 ẩn trực quan (trang chủ, trang dựng bằng UX Builder) — máy đọc được, không phá bố cục. */
.mitomo-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* W-45: H1 tên danh mục SP trên lưới; mô tả danh mục dưới lưới. */
.mitomo-cat-title {
	margin: 4px 0 22px;
	font-size: 24px;
}

.mitomo-cat-desc {
	max-width: 860px;
	margin: 30px auto 10px;
	color: #444;
	font-size: 15px;
	line-height: 1.7;
}

@media (max-width: 849px) {
	.mitomo-cat-title {
		margin-bottom: 16px;
		font-size: 20px;
	}
}
