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

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

:root {
	--ms-black: #000;
	--ms-ink: #171717;
	--ms-text: #525252;
	--ms-muted: #737373;
	--ms-soft: #a1a1a1;
	--ms-line: #e5e5e5;
	--ms-bg-soft: #f4f4f5;
	--ms-accent: #f54a00;
	/* Điểm nhấn – dùng ít, cho chi tiết nhỏ (nền / nút chính vẫn đen trắng):
	   cam = giá, đánh giá, trạng thái đang chọn / thời gian; xanh lá = cam kết, tin cậy, còn hàng. */
	--ms-accent-soft: #fb923c;
	--ms-green: #16a34a;
	--ms-green-soft: #4ade80;
	/* Các sắc độ của màu chính / màu phụ. Giá trị dưới đây là màu gốc; khi chủ shop đổi màu ở
	   wp-admin → Màu sắc, inc/brand-colors.php in đè các biến này (tính từ màu mới bằng color-mix). */
	--ms-accent-50: #fff7ed;
	--ms-accent-50b: #fff1e6;
	--ms-accent-100: #ffedd5;
	--ms-accent-200: #fed7aa;
	--ms-accent-300: #fdba74;
	--ms-accent-500: #f97316;
	--ms-accent-600: #ea580c;
	--ms-accent-700: #c2410c;
	--ms-accent-800: #9a3412;
	--ms-accent-hover: #dc4300;
	--ms-accent-hover-2: #d93f00;
	--ms-accent-hover-3: #c43c00;
	--ms-accent-bright: #ff5c0a;
	--ms-accent-bright-2: #ff6900;
	--ms-accent-bright-3: #ff6a26;
	--ms-green-50: #f0fdf4;
	--ms-green-200: #bbf7d0;
	--ms-green-dark: #15803d;
	--ms-green-800: #166534;
	--ms-radius: 12px;
	/* Khung chuẩn của mọi khối (header, slider, các khối trang chủ, cửa hàng, chi tiết SP, footer):
	   rộng tối đa 1280px, lề 2 bên 32px → tablet 24px → điện thoại 16px. */
	--ms-wrap: 1280px;
	--ms-gutter: 32px;
}
@media only screen and (max-width: 849px) { :root { --ms-gutter: 24px; } }
@media only screen and (max-width: 639px) { :root { --ms-gutter: 16px; } }

body {
	letter-spacing: -0.011em;
	-webkit-font-smoothing: antialiased;
}

/* ---------- Top bar (cao 29px, khung 1280px) ---------- */
#top-bar {
	min-height: 29px;
	border-bottom: 1px solid rgba(38, 38, 38, 0.8);
	background: #111 !important;
	font-size: 12px;
}
/* Cùng khung + lề với header chính để chữ hai đầu thẳng mép logo / hotline */
#top-bar .flex-row { max-width: var(--ms-wrap); min-height: 28px; padding: 0 var(--ms-gutter); }
#top-bar .nav > li { margin: 0; }
#top-bar .html {
	color: #d4d4d4;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: -0.011em;
	text-transform: none;
}
.ms-topbar-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--ms-green-soft);
	vertical-align: 0;
	box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
	animation: ms-live 2.4s ease-out infinite;
}
/* Chấm xanh nhịp nhẹ: dịch vụ giao hỏa tốc đang hoạt động */
@keyframes ms-live { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } }
@media (prefers-reduced-motion: reduce) { .ms-topbar-dot { animation: none; } }
.ms-topbar-muted { margin-right: 16px; color: var(--ms-soft); }
.ms-topbar-strong { color: #fff; font-weight: 600; }

/* ---------- Header chính (cao 80px, khung 1280px, lề 32px) ---------- */
.header-main { border-bottom: 1px solid #262626; }
.header-main .header-inner.container {
	max-width: var(--ms-wrap);
	padding-left: var(--ms-gutter);
	padding-right: var(--ms-gutter);
}
/* Menu nằm giữa logo và cụm icon bên phải */
.header-main .hide-for-medium.flex-left { display: flex; flex: 1 1 auto; justify-content: center; margin: 0; }
.header-main .hide-for-medium.flex-left > .header-nav-main { width: auto; justify-content: center; }
.header-main .hide-for-medium.flex-right { flex: 0 0 auto; margin: 0; }

.header-main #logo { width: auto !important; margin-right: 0; }
#logo .ms-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff !important;
	white-space: nowrap;
}
/* Logo ảnh (template-parts/header/partials/element-logo.php): biểu tượng vòng MS2 + chữ Macstore24h */
#logo img.ms-logo-mark {
	display: block;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	max-width: none;
	max-height: none;
	margin: 0;
}
.ms-logo-text { display: flex; flex-direction: column; gap: 5px; }
#logo img.ms-logo-word {
	display: block;
	width: 176px;
	height: auto;
	max-width: none;
	max-height: none;
	margin: 0;
}
.ms-logo-text small {
	color: var(--ms-soft);
	font-size: 10px;
	font-weight: 600;
	line-height: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* Menu: chữ 13px đậm, cách nhau 32px */
.header-nav-main.nav-left > li { margin: 0 16px; }
.header-nav-main.nav-left > li:first-child { margin-left: 0; }
.header-nav-main.nav-left > li:last-child { margin-right: 0; }
.header-nav-main > li > a {
	padding: 8px 0;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 19.5px;
	letter-spacing: 0.05em;
}
.header-nav-main > li > a { position: relative; }
.header-nav-main > li > a:hover { color: var(--ms-accent-soft) !important; }
/* Trang đang xem: vạch cam mảnh dưới mục menu */
.header-nav-main > li.active > a::after { content: ""; position: absolute; right: 30%; bottom: 0; left: 30%; height: 2px; border-radius: 2px; background: var(--ms-accent); }
/* Bỏ mũi tên trắng Flatsome vẽ dưới mục có menu con (lệch màu với menu tối, trông như icon bị chồng) */
.nav-dropdown-has-arrow .header-nav-main li.has-dropdown::before,
.nav-dropdown-has-arrow .header-nav-main li.has-dropdown::after { display: none; }
.header-nav-main .nav-dropdown {
	background: #111;
	border: 1px solid #262626;
	border-radius: 0 0 var(--ms-radius) var(--ms-radius);
}
.header-nav-main .nav-dropdown > li > a {
	color: #e5e5e5;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	border: 0 !important;
}
.header-nav-main .nav-dropdown > li > a:hover { color: #fff; background: #1f1f1f; }

/* Mega menu "Sản Phẩm" (desktop) – nội dung là UX Block "Mega menu – Sản phẩm", sửa trong Khối UX.
   Khung trắng, 4 cột: tiêu đề nhóm + danh sách danh mục (gạch mảnh) + cột sản phẩm nổi bật. */
.header-nav-main li.menu-item-has-block > .nav-dropdown {
	padding: 0;
	background: #fff;
	border: 1px solid var(--ms-line);
	border-top: 0;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}
.ms-mega-menu { max-width: none !important; margin: 0 !important; padding: 32px 24px 16px; }
.ms-mega-menu .ms-mega-col > .col-inner { padding: 0 !important; }
.ms-mega-menu .ms-mega-col { padding-bottom: 16px; }
.ms-mega-menu .ux-menu-title {
	margin: 0 0 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ms-line);
	color: var(--ms-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.ms-mega-menu .ux-menu-title__link { color: inherit !important; transition: color .15s; }
.ms-mega-menu .ux-menu-title__link:hover { color: var(--ms-accent) !important; }
.ms-mega-menu .ux-menu-link { border-color: var(--ms-line) !important; }
.ms-mega-menu .ux-menu-link__link {
	min-height: 0;
	padding: 12px 0;
	color: var(--ms-text) !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	transition: color .15s, padding .15s;
}
.ms-mega-menu .ux-menu-link__link:hover { padding-left: 4px; color: var(--ms-accent) !important; }
.ms-mega-products .ux-products-list { width: 100%; max-width: none; max-height: none; margin: 0; overflow: visible; }
.ms-mega-products .ux-products-list li { display: grid !important; grid-template-columns: 72px 1fr; align-content: start; column-gap: 12px; row-gap: 4px; width: 100%; margin: 12px 0 0 !important; padding: 0 !important; min-height: 0; border: 0; list-style: none; }
.ms-mega-products .ux-products-list li > a { display: contents !important; }
.ms-mega-products .ux-products-list li > :not(a),
.ms-mega-products .ux-products-list .product-title { grid-column: 2; }
.ms-mega-products .ux-products-list .star-rating { display: none; }
.ms-mega-products .ux-products-list img { grid-row: 1 / span 3; position: static !important; float: none !important; width: 72px; height: 72px; margin: 0 !important; border-radius: 8px; object-fit: cover; background: var(--ms-bg-soft); }
.ms-mega-products .product-title { display: block; color: var(--ms-ink); font-size: 14px; font-weight: 500; line-height: 1.4; }
.ms-mega-products .ux-products-list li:hover .product-title { color: var(--ms-accent); }
.ms-mega-products .ux-products-list .amount { color: var(--ms-accent); font-size: 14px; font-weight: 700; }
.ms-mega-products .ux-products-list del .amount { color: var(--ms-soft); font-weight: 400; }

/* Cụm phải: tìm kiếm, giỏ hàng (36x36, icon 20px), cách nhau 24px */
.header-main .nav-right > li { margin: 0 0 0 24px; }
.header-main .nav-right > li:first-child { margin-left: 0; }
.header-main .header-search > a,
.header-main .cart-item > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	color: #fff !important;
}
.header-main .header-search > a:hover,
.header-main .cart-item > a:hover { background: #1f1f1f; }
.header-main .header-search i,
.header-main .cart-item i { font-size: 20px !important; top: 0; }
/* Icon nét mảnh như trang mẫu (thay icon đặc của Flatsome) */
.header-main .header-search i.icon-search:before,
.header-main .cart-item i.icon-shopping-bag:before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--ms-icon) center / contain no-repeat;
	mask: var(--ms-icon) center / contain no-repeat;
}
.header-main .header-search i.icon-search {
	--ms-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}
.header-main .cart-item i.icon-shopping-bag {
	--ms-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}
.header-main [data-icon-label]:after {
	top: -12px;
	right: -12px;
	min-width: 20px;
	height: 20px;
	padding: 0 4px;
	border: 0;
	border-radius: 10px;
	background: var(--ms-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	line-height: 20px;
	box-shadow: none;
}

/* Hotline: kẻ trái 1px, lề trái 16px */
.header-main li.html_top_right_text { margin-left: 24px; }
.ms-hotline {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 36px;
	padding: 0 0 0 16px !important;
	border-left: 1px solid #262626;
	color: #fff !important;
	letter-spacing: -0.011em;
}
.ms-hotline-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ms-accent);
	color: #fff;
	font-size: 16px;
}
/* Icon điện thoại lắc lư như đang đổ chuông: lắc ~1 giây rồi nghỉ, lặp lại */
.ms-hotline-icon i { display: inline-block; color: #fff; transform-origin: 50% 50%; animation: ms-phone-shake 2.4s ease-in-out infinite; }
@keyframes ms-phone-shake {
	0%, 40%, 100% { transform: rotate(0); }
	5%, 15%, 25% { transform: rotate(-18deg); }
	10%, 20%, 30% { transform: rotate(18deg); }
	35% { transform: rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
	.ms-hotline-icon i { animation: none; }
}
.ms-hotline:hover .ms-hotline-icon { background: var(--ms-accent-bright-3); }
.ms-hotline-text { display: flex; flex-direction: column; }
.ms-hotline-text small {
	color: var(--ms-soft);
	font-size: 10px;
	font-weight: 700;
	line-height: 12.5px;
	letter-spacing: -0.011em;
	text-transform: uppercase;
}
.ms-hotline-text b { color: var(--ms-accent); font-size: 14px; font-weight: 900; line-height: 20px; letter-spacing: -0.011em; }

/* Mobile: logo trái; tìm kiếm, giỏ hàng, menu bên phải */
@media only screen and (max-width: 849px) {
	#top-bar .html { font-size: 11px; }
	.header-main .mobile-nav.nav-right > li { margin: 0 0 0 16px; }
	.header-main .mobile-nav .header-search > a,
	.header-main .mobile-nav .cart-item > a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		color: #fff !important;
	}
	.header-main .mobile-nav i { font-size: 20px !important; }
	.header-main .nav-icon > a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		color: #fff !important;
	}
	.header-main .nav-icon i { font-size: 22px !important; }
	/* Logo mobile theo tỷ lệ trang mẫu (vòng 44px, tên 18px, dòng phụ 10px một dòng ở ≥450px),
	   thu nhỏ đều theo chiều rộng màn hình để không chen vào icon trên điện thoại nhỏ. */
	/* Công thức: đạt đúng cỡ mẫu ở 450px, giảm dần khi màn hình hẹp hơn (100vw < 450px). */
	#logo .ms-logo { gap: clamp(8px, calc(12px - (450px - 100vw) * 0.04), 12px); }
	#logo img.ms-logo-mark {
		width: clamp(34px, calc(44px - (450px - 100vw) * 0.1), 44px);
		height: clamp(34px, calc(44px - (450px - 100vw) * 0.1), 44px);
	}
	.ms-logo-text { gap: 3px; }
	#logo img.ms-logo-word { width: clamp(112px, calc(156px - (450px - 100vw) * 0.34), 156px); }
	.ms-logo-text small {
		overflow: hidden;
		font-size: clamp(7.5px, calc(10px - (450px - 100vw) * 0.027), 10px);
		line-height: 1.5;
		letter-spacing: 0.08em;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
}

@media only screen and (max-width: 359px) {
	/* Điện thoại rất nhỏ (320px): thu khoảng cách các icon bên phải để logo không chạm icon */
	.header-main .mobile-nav.nav-right > li { margin-left: 6px; }
	.header-main .header-inner.container { padding-left: 12px; padding-right: 12px; }
	.header-main #logo { margin-right: 8px; }
	#logo img.ms-logo-mark { width: 30px; height: 30px; }
	#logo img.ms-logo-word { width: 100px; }
	.ms-logo-text small { font-size: 7px; }
}

/* ---------- Tiêu đề khối ---------- */
.ms-title { margin-bottom: 32px; text-align: center; }
.ms-eyebrow {
	margin-bottom: 8px;
	color: var(--ms-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.ms-eyebrow:empty { display: none; }
.ms-eyebrow--light { color: #e5e5e5; }
.ms-title h2 {
	margin-bottom: 12px;
	color: var(--ms-ink);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
/* Tiêu đề có link tới trang tag ([ms_tag_link]): giữ nguyên màu tiêu đề, gạch chân khi rê chuột */
.ms-title h2 a { color: inherit; text-decoration: none; text-underline-offset: 6px; }
.ms-title h2 a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; }
.ms-sub {
	max-width: 720px;
	margin: 0 auto 16px;
	color: var(--ms-muted);
	font-size: 14px;
}
/* WordPress tự bọc đường chấm vào <p> (khi không có dòng mô tả) – bỏ lề của <p> đó để khoảng cách giữ như thiết kế */
.ms-title > p:not(.ms-eyebrow):not(.ms-sub) { margin: 0; }
.ms-dots {
	display: block;
	width: 48px;
	height: 1px;
	margin: 0 auto;
	background: var(--ms-line);
	position: relative;
}
.ms-dots:after {
	content: "";
	position: absolute;
	top: -2px;
	left: 50%;
	width: 5px;
	height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: var(--ms-accent);
}
.ms-center { margin-top: 24px; text-align: center; }
.ms-center .button { margin: 0 6px 8px; }

/* ---------- Nút ---------- */
.button.ms-btn,
.ms-center .button {
	border-radius: 8px !important;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.button.ms-btn.primary,
.ms-center .button.primary {
	background: var(--ms-black);
	border-color: var(--ms-black);
}
/* Icon trong nút: vẽ bằng CSS (mask SVG, màu theo chữ) thay cho ký tự ⌄ › → để luôn canh giữa theo chữ.
   Dùng: thêm class ms-ic-down | ms-ic-next | ms-ic-arrow vào nút. Nút "Xem thêm" của khối tin tức (.ms-blog) tự có mũi tên. */
.button.ms-btn[class*="ms-ic-"] { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ms-blog .button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.button.ms-btn[class*="ms-ic-"]::after,
.ms-blog .button::after {
	content: "";
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--ms-ic) center / contain no-repeat;
	mask: var(--ms-ic) center / contain no-repeat;
	transition: transform 0.2s;
}
.button.ms-btn.ms-ic-down { --ms-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.button.ms-btn.ms-ic-next { --ms-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.button.ms-btn.ms-ic-arrow,
.ms-blog .button { --ms-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.button.ms-btn.ms-ic-down:hover::after { transform: translateY(2px); }
.button.ms-btn.ms-ic-next:hover::after,
.button.ms-btn.ms-ic-arrow:hover::after,
.ms-blog .button:hover::after { transform: translateX(3px); }

/* ---------- Hero slider (theo tỷ lệ trang mẫu) ----------
   Desktop: khung 1280px, lề 32px → slider 1216×500, nội dung cách trái 56px.
   Tablet (640–1023px): slider cao 460px, nội dung cách trái 40px.
   Mobile (<640px): lề 12px, slider cao 440px, nội dung cách mép 20px.
   Tông cam (theo yêu cầu chủ shop 25/11/2026): dòng nhỏ + chữ nhấn trong tiêu đề (*...*) màu cam,
   mã giảm giá dạng phiếu viền nét đứt cam, nút chính nền cam chữ trắng, tab đang chọn viền/nền cam.
   --ms-hero-orange: cam sáng hơn --ms-accent một chút cho CHỮ trên nền tối (tương phản ~6,8:1 trên nền đen);
   các mảng nền (nút, nút chép mã, tab) dùng đúng màu thương hiệu --ms-accent. */
.ms-hero-section, .ms-hero-slider { --ms-hero-orange: var(--ms-accent-bright); }
.ms-hero-section { border-bottom: 1px solid #d4d4d4; }
.ms-hero-section .row { max-width: var(--ms-wrap) !important; margin-left: auto; margin-right: auto; }
.ms-hero-section .ms-hero-col { padding: 0 var(--ms-gutter) !important; }
.ms-hero-section .ms-hero-col > .col-inner { padding: 0 !important; }

.ms-hero-slider,
.ms-hero-slider .flickity-viewport { border-radius: 16px; overflow: hidden; }
.ms-hero-slider { border: 1px solid #262626; background: #000; }
.ms-hero-slider .banner { background: #000; }
.ms-hero-slider .banner-layers { max-width: none; padding: 0; }
/* Flatsome tự bọc nội dung banner trong một text-box ở giữa: bỏ định vị của lớp bọc
   để khối nội dung và bộ đếm định vị theo khung slide. */
.ms-hero-slide .banner-layers > .text-box,
.ms-hero-slide .banner-layers > .text-box > div,
.ms-hero-slide .banner-layers > .text-box .text-box-content,
.ms-hero-slide .banner-layers > .text-box .text-inner {
	position: static !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: none !important;
	will-change: auto !important; /* will-change: transform cũng tạo mốc định vị */
	filter: none !important;
	font-size: 16px !important;
}

/* Lớp phủ: đậm bên trái (vùng chữ), trong dần sang phải. --ms-shade = "Độ tối phủ ảnh" */
.ms-hero-shade {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(90% 80% at 0% 100%, rgb(var(--ms-accent-rgb, 245 74 0) / 0.24) 0%, transparent 70%),
		linear-gradient(to right, #000 0%, rgba(0, 0, 0, var(--ms-shade, 0.65)) 50%, transparent 100%);
	pointer-events: none;
}

.ms-hero-count {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 2;
	padding: 4px 10px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.8);
	color: var(--ms-soft);
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 0.05em;
}
.ms-hero-count b { color: #fff; font-weight: 700; }

.ms-hero-slider .ms-hero-content {
	position: absolute;
	top: 50% !important;
	bottom: auto !important;
	left: 56px;
	z-index: 1;
	width: min(656px, 54%);
	transform: translateY(-50%);
	color: #fff;
	text-align: left;
}
.ms-hero-slider .ms-hero-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	color: var(--ms-hero-orange);
	font-size: 12px;
	font-weight: 900;
	line-height: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.ms-hero-slider .ms-hero-eyebrow:before {
	content: "";
	flex: 0 0 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--ms-accent);
}
.ms-hero-slider .ms-hero-title {
	margin: 0 0 16px;
	color: #fff;
	font-size: 38px;
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: -0.025em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}
/* Chữ nhấn trong tiêu đề: editor đặt giữa hai dấu *, VD "*MEGA SALE* phụ kiện MacBook" */
.ms-hero-slider .ms-hero-hl { color: var(--ms-hero-orange); }
.ms-hero-slider .ms-hero-desc {
	max-width: 512px;
	margin: 0 0 18px;
	color: #d4d4d4;
	font-size: 14px;
	line-height: 1.625;
}

.ms-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 23px; }
/* Mã giảm giá dạng phiếu: viền nét đứt cam, mã chữ lớn đơn cách, nút chép mã nền cam */
.ms-hero-code {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	padding: 5px 5px 5px 14px;
	border: 1.5px dashed var(--ms-accent);
	border-radius: 10px;
	background: linear-gradient(rgb(var(--ms-accent-rgb, 245 74 0) / 0.16), rgb(var(--ms-accent-rgb, 245 74 0) / 0.16)), rgba(0, 0, 0, 0.75);
	line-height: 1;
}
.ms-hero-code small {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ms-accent-300);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	white-space: nowrap;
	text-transform: uppercase;
}
.ms-hero-code b {
	min-width: 0;
	overflow: hidden;
	color: #fff;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 20px;
	font-weight: 800;
	line-height: 24px;
	letter-spacing: 0.08em;
	white-space: nowrap;
	text-overflow: ellipsis;
	user-select: all; /* bấm vào mã là chọn trọn mã để tự sao chép */
}
.ms-hero-code .ms-hero-copy {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	min-height: 0;
	height: 32px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 7px;
	background: var(--ms-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.04em;
	white-space: nowrap;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s;
}
.ms-hero-code .ms-hero-copy:hover { background: var(--ms-accent-hover-2); }
.ms-hero-code .ms-hero-copy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Sau khi chép (class is-copied do script ở functions.php gắn trong 1,5 giây): nút xanh "Đã chép" */
.ms-hero-copy-done { display: none; }
.ms-hero-code .ms-hero-copy.is-copied { background: var(--ms-green); }
.ms-hero-copy.is-copied .ms-hero-copy-idle { display: none; }
.ms-hero-copy.is-copied .ms-hero-copy-done { display: inline; }
.ms-hero-note {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.7);
	color: #f5f5f5;
	font-size: 13px;
	font-weight: 600;
	line-height: 16px;
}
.ms-hero-note svg { color: var(--ms-hero-orange); }

.ms-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ms-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 12px 20px;
	border: 1px solid #404040;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: background 0.2s, color 0.2s;
}
.ms-hero-btn:hover { background: #000; }
.ms-hero-btn.is-primary {
	padding: 12px 32px;
	border-color: var(--ms-accent);
	background: var(--ms-accent);
	color: #fff !important;
	font-weight: 900;
	box-shadow: 0 6px 18px rgb(var(--ms-accent-rgb, 245 74 0) / 0.35);
}
.ms-hero-btn.is-primary:hover { border-color: var(--ms-accent-hover-2); background: var(--ms-accent-hover-2); }
.ms-hero-btn.is-primary svg { transition: transform 0.2s; }
.ms-hero-btn.is-primary:hover svg { transform: translateX(3px); }
.ms-hero-btn.is-secondary { border-color: rgba(255, 255, 255, 0.35); }
.ms-hero-btn.is-secondary:hover { border-color: #fff; }

/* Mũi tên chuyển slide */
.ms-hero-slider .flickity-prev-next-button {
	top: 50%;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid #404040;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.8);
	opacity: 1;
	transform: translateY(-50%);
}
.ms-hero-slider .flickity-prev-next-button.previous { left: 20px; }
.ms-hero-slider .flickity-prev-next-button.next { right: 20px; }
.ms-hero-slider .flickity-prev-next-button svg {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	fill: #fff;
	transform: translate(-50%, -50%);
}
.ms-hero-slider .flickity-prev-next-button:hover { background: #000; }

/* Thẻ khuyến mãi (desktop/tablet) */
.ms-promo-row { margin-top: 16px !important; }
.ms-promo-grid {
	display: grid;
	grid-template-columns: repeat(var(--ms-promo-count, 3), minmax(0, 1fr));
	gap: 12px;
}
/* Hơn 3 tab: băng chuyền (JS bọc tab vào .ms-promo-track và trượt bằng transform),
   hiện 3,5 tab – tab cuối lộ một nửa để báo còn tab. */
.ms-promo-wrap { position: relative; }
.ms-promo-grid.is-scroll {
	display: block;
	position: relative;
	padding: 2px 0 6px; /* chừa chỗ cho bóng thẻ đang chọn */
	overflow: hidden;
}
.ms-promo-track {
	display: flex;
	gap: 12px;
	will-change: transform;
}
.ms-promo-track > .ms-promo { flex: 0 0 calc((100% - 36px) / 3.5); }
.ms-promo-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: -4px 0 0;
	padding: 0;
	border: 1px solid #d4d4d4;
	border-radius: 50%;
	background: #fff;
	color: #000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	transform: translateY(-50%);
	cursor: pointer;
	transition: opacity 0.2s;
}
.ms-promo-nav.is-prev { left: -16px; }
.ms-promo-nav.is-next { right: -16px; }
.ms-promo-nav:hover { border-color: #000; }
.ms-promo {
	display: block;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 14px;
	border: 1px solid #d4d4d4;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.8);
	color: var(--ms-ink);
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.ms-promo:hover { border-color: var(--ms-accent-300); background: #fff; }
.ms-promo.is-active { border-color: var(--ms-accent); background: #fff; box-shadow: 0 4px 14px rgb(var(--ms-accent-rgb, 245 74 0) / 0.14); }
.ms-promo-bar {
	position: relative;
	display: block;
	height: 6px;
	margin-bottom: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--ms-line);
}
.ms-promo-bar:after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--ms-accent);
	transform: scaleX(0);
	transform-origin: left;
}
/* Thanh tiến trình chạy theo thời gian tự chuyển slide */
.ms-promo.is-active .ms-promo-bar:after { transform: scaleX(1); animation: ms-promo-progress var(--ms-autoplay, 5s) linear; }
.ms-promo-grid[style*="--ms-autoplay:0s"] .ms-promo.is-active .ms-promo-bar:after { animation: none; }
/* Rê chuột vào slider/tab hoặc đang ở tab trình duyệt khác: tạm dừng thanh (và việc chuyển slide) */
.ms-promo-grid.is-paused .ms-promo.is-active .ms-promo-bar:after,
.ms-promo-grid.is-hidden .ms-promo.is-active .ms-promo-bar:after,
.ms-promo-grid.is-offscreen .ms-promo.is-active .ms-promo-bar:after { animation-play-state: paused; }
@keyframes ms-promo-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ms-promo-head { display: flex; justify-content: space-between; gap: 8px; }
.ms-promo-head b {
	overflow: hidden;
	color: #262626;
	font-size: 12px;
	font-weight: 900;
	line-height: 16px;
	letter-spacing: 0.05em;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-transform: uppercase;
}
.ms-promo.is-active .ms-promo-head b { color: var(--ms-accent-hover-3); } /* cam đậm: đủ tương phản trên nền trắng */
.ms-promo.is-active .ms-promo-head i { color: var(--ms-accent); }
.ms-promo-head i {
	color: var(--ms-soft);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 10px;
	font-style: normal;
	font-weight: 700;
	line-height: 15px;
}
.ms-promo-text {
	display: block;
	margin-top: 2px;
	overflow: hidden;
	color: var(--ms-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-transform: uppercase;
}

@media only screen and (max-width: 1023px) {
	.ms-hero-slider .ms-hero-content { left: 40px; width: min(600px, 70%); }
	.ms-hero-slider .ms-hero-title { font-size: 30px; }
}

@media only screen and (max-width: 639px) {
	.ms-hero-shade {
		background:
			linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 50%, rgba(0, 0, 0, 0.7) 100%),
			linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 0.3) 100%);
	}
	.ms-hero-count { top: 12px; right: 12px; font-size: 11px; }
	.ms-hero-slider .ms-hero-content { left: 20px; right: 20px; width: auto; }
	.ms-hero-slider .ms-hero-eyebrow { margin-bottom: 14px; font-size: 11px; line-height: 11px; }
	.ms-hero-slider .ms-hero-title { margin-bottom: 14px; font-size: 20px; line-height: 1.375; letter-spacing: -0.01em; }
	.ms-hero-slider .ms-hero-desc { margin-bottom: 16px; font-size: 12px; }
	.ms-hero-meta { gap: 8px 10px; margin-bottom: 20px; }
	.ms-hero-code { gap: 8px; padding: 4px 4px 4px 10px; }
	.ms-hero-code small { font-size: 0; gap: 0; } /* chỉ giữ icon thẻ, nhường chỗ cho mã */
	.ms-hero-code small svg { width: 14px; height: 14px; }
	.ms-hero-code b { font-size: 16px; line-height: 20px; }
	.ms-hero-code .ms-hero-copy { height: 30px; padding: 0 10px; }
	.ms-hero-note { padding: 0; border: 0; background: none; font-size: 12px; }
	.ms-hero-btns { flex-direction: column; gap: 10px; }
	.ms-hero-btn { width: 100%; }
	.ms-hero-slider .flickity-prev-next-button { display: none; }

	/* Thẻ khuyến mãi → thanh chọn gọn như trang mẫu */
	.ms-promo-row { margin-top: 14px !important; }
	.ms-promo-grid {
		gap: 6px;
		padding: 6px;
		border: 1px solid var(--ms-line);
		border-radius: 12px;
		background: #fff;
	}
	.ms-promo {
		position: relative;
		padding: 8px 4px;
		border: 0;
		border-radius: 8px;
		background: none;
		text-align: center;
		box-shadow: none;
	}
	.ms-promo.is-active { background: var(--ms-accent); box-shadow: none; }
	.ms-promo-head i,
	.ms-promo-text { display: none; }
	/* Thanh tiến trình thu thành vạch 2px ở đáy nút đang chọn (vẫn phải chạy để tự chuyển slide) */
	.ms-promo-bar {
		position: absolute;
		right: 10px;
		bottom: 3px;
		left: 10px;
		height: 2px;
		margin: 0;
		background: rgba(255, 255, 255, 0.25);
		visibility: hidden;
	}
	.ms-promo-bar:after { background: #fff; }
	.ms-promo.is-active .ms-promo-bar { visibility: visible; }
	.ms-promo-head { justify-content: center; }
	.ms-promo-head b { font-size: 11px; font-weight: 700; line-height: 16.5px; letter-spacing: 0; }
	.ms-promo.is-active .ms-promo-head b { color: #fff; }
	/* Hơn 3 tab trên mobile: hiện 2,5 tab, vuốt để chuyển slide, ẩn nút ‹ › */
	.ms-promo-grid.is-scroll { padding: 6px; }
	.ms-promo-track { gap: 6px; }
	.ms-promo-track > .ms-promo { flex-basis: calc((100% - 12px) / 2.5); }
	.ms-promo-nav { display: none; }
}
/* Màn rất hẹp (≤359px): nút chép chỉ còn icon, chữ "Đã chép" vẫn hiện khi đã chép */
@media only screen and (max-width: 359px) {
	.ms-hero-code .ms-hero-copy { padding: 0 8px; }
	.ms-hero-copy-idle { display: none; }
}

/* ---------- Thẻ sản phẩm (template: woocommerce/content-product.php) ----------
   Theo trang mẫu: viền xám bo 12px, ảnh vuông nền #f5f5f7, nhãn -% đen / "Mới" trắng,
   rê chuột: viền đen + bóng, ảnh tối nhẹ + nút "Xem chi tiết" trượt lên.
   Hàng nút: "Mua ngay" (đen, chiếm hết) + "+" thêm vào giỏ (vuông 32px). */
.ms-card-col > .col-inner { height: 100%; }
.ms-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 10px;
	border: 1px solid var(--ms-card-border, rgba(229, 229, 229, 0.9));
	border-radius: 12px;
	background: var(--ms-card-bg, #fff);
	transition: border-color 0.3s, box-shadow 0.3s;
}

/* Ảnh */
.ms-card-media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	margin-bottom: 10px;
	overflow: hidden;
	border: 1px solid var(--ms-card-line, #f5f5f5);
	border-radius: 12px;
	background: var(--ms-card-media-bg, #f5f5f7);
}
.ms-card-media img.ms-card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.ms-card-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}
.ms-card-view {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgb(var(--ms-card-view-bg-rgb, 0 0 0) / 0.9);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 16.5px;
	transform: translateY(8px);
	transition: transform 0.3s;
}
/* Hiệu ứng rê chuột chỉ cho thiết bị có chuột (màn hình cảm ứng bị "dính" hover sau khi chạm) */
@media (hover: hover) {
	.ms-card:hover {
		border-color: var(--ms-card-border-hover, #000);
		box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	}
	.ms-card:hover .ms-card-overlay { opacity: 1; }
	.ms-card:hover .ms-card-view { transform: none; }
	.ms-card:hover .ms-card-title a { color: var(--ms-card-title-hover, #000); }
	.ms-card-buy:hover { background: var(--ms-card-buy-hover, #262626); }
	.ms-card-add:hover { border-color: var(--ms-card-add-hover, #000); background: var(--ms-card-add-hover, #000); color: var(--ms-card-add-hover-icon, #fff) !important; }
}

/* Nhãn */
.ms-card-badge {
	position: absolute;
	top: 10px;
	z-index: 2;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 900;
	line-height: 20px;
	letter-spacing: -0.025em;
}
.ms-card-badge.is-sale { left: 10px; border: 1px solid rgba(255, 255, 255, 0.25); background: var(--ms-sale-from, #e11d48); background: linear-gradient(135deg, var(--ms-sale-from, #e11d48) 0%, var(--ms-sale-to, var(--ms-accent)) 100%); color: #fff; box-shadow: 0 4px 10px -3px rgb(var(--ms-sale-from-rgb, 225 29 72) / 0.55); } /* đỏ → cam cho nổi */
.ms-card-badge.is-new {
	right: 10px;
	background: var(--ms-card-new-bg, #fff);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	color: var(--ms-card-new-text, #000);
	font-size: 11px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.ms-card-badge.is-out { right: 10px; background: rgb(var(--ms-card-out-bg-rgb, 23 23 23) / 0.85); color: var(--ms-card-out-text, #fff); font-size: 11px; }
.ms-card-badge.is-new + .ms-card-badge.is-out { top: 40px; }

/* Nội dung */
.ms-card-body { display: flex; flex-direction: column; }
.ms-card .ms-card-title {
	display: -webkit-box;
	height: calc(1.375em * 2); /* luôn chiếm 2 dòng để các thẻ thẳng hàng */
	margin: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.375;
	letter-spacing: -0.011em;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.ms-card .ms-card-title a { color: var(--ms-card-title, var(--ms-ink)); }
.ms-card-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	color: var(--ms-card-star, var(--ms-accent-bright-2));
	font-size: 11px;
	line-height: 16.5px;
}
.ms-card-rating b { color: var(--ms-card-star-num, var(--ms-accent)); font-weight: 700; }
.ms-card-rating span { color: var(--ms-card-price-old, #a1a1a1); }
.ms-card-rating.is-empty svg { color: #d4d4d4; } /* chưa có đánh giá: sao xám */
.ms-card-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 7px;
	margin-top: 8px;
}
.ms-card-price-now,
.ms-card-price-now .amount { color: var(--ms-card-price, var(--ms-accent)); font-size: 16px; font-weight: 900; line-height: 1; }
.ms-card-price-old,
.ms-card-price-old .amount { color: var(--ms-card-price-old, #a1a1a1); font-size: 11px; font-weight: 400; line-height: 1; opacity: 1; }

/* Hàng nút */
.ms-card-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--ms-card-line, #f5f5f5);
}
.ms-card-body { margin-bottom: 12px; } /* khoảng cách tối thiểu; hàng nút vẫn bám đáy thẻ để các thẻ thẳng hàng */
.ms-card-buy {
	display: inline-flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	height: 33px;
	padding: 0 10px;
	border-radius: 8px;
	background: var(--ms-card-buy-bg, #000);
	color: var(--ms-card-buy-text, #fff) !important;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background 0.2s, transform 0.2s;
}
.ms-card-buy:active,
.ms-card-add:active { transform: scale(0.95); }
.ms-card-buy.is-busy { opacity: 0.6; pointer-events: none; }
.ms-card-buy.is-disabled { background: #e5e5e5; color: #737373 !important; cursor: not-allowed; }
.ms-card-add {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--ms-card-add-border, #e5e5e5);
	border-radius: 8px;
	background: var(--ms-card-add-bg, #fafafa);
	color: var(--ms-card-add-icon, #404040) !important;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
/* Viền khi dùng phím Tab */
.ms-card a:focus-visible { outline: 2px solid var(--ms-card-title-hover, #000); outline-offset: 2px; }
.ms-card-media:focus-visible { outline-offset: -2px; }
/* Bấm "+" → hiện ngay dấu ✓ màu cam (is-added, gắn bằng JS lúc bấm, không chờ server) và giữ nguyên;
   "added" là class WooCommerce gắn khi server trả về. Đang gửi (loading) thì chặn bấm tiếp. */
.ms-card-add-check { display: none; }
.ms-card-add.loading { pointer-events: none; }
.ms-card-add.loading:after { display: none !important; } /* bỏ icon xoay mặc định của theme */
.ms-card-add.added,
.ms-card-add.is-added {
	display: inline-flex !important; /* WooCommerce mặc định ẩn nút đã thêm (.add_to_cart_button.added) */
	border-color: var(--ms-card-add-done, var(--ms-accent));
	background: var(--ms-card-add-done-bg, var(--ms-accent-50));
	color: var(--ms-card-add-done, var(--ms-accent)) !important;
}
.ms-card-add.added:hover,
.ms-card-add.is-added:hover { border-color: var(--ms-card-add-done, var(--ms-accent)); background: var(--ms-card-add-done-bg-hover, var(--ms-accent-100)); color: var(--ms-card-add-done, var(--ms-accent)) !important; }
.ms-card-add.added .ms-card-add-plus,
.ms-card-add.is-added .ms-card-add-plus { display: none; }
.ms-card-add.added .ms-card-add-check,
.ms-card-add.is-added .ms-card-add-check { display: block; animation: ms-card-tick 0.25s ease-out; }
@keyframes ms-card-tick { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.ms-card .added_to_cart { display: none !important; } /* ẩn link "Xem giỏ hàng" WooCommerce chèn thêm */

/* Sản phẩm biến thể: "Mua ngay" và "+" mở popup chọn phân loại (Quick View của Flatsome) */
.ms-card.processing:before { display: none; } /* bỏ vòng xoay mặc định của Flatsome (làm xô lệch thẻ) */
.ms-card-buy.is-loading,
.ms-card-add.is-loading { opacity: 0.6; pointer-events: none; cursor: progress; }

/* Popup chọn phân loại */
.ms-qv .single_add_to_cart_button {
	min-height: 40px;
	border-radius: 8px;
	background: #000 !important;
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.ms-qv .single_add_to_cart_button:hover { background: #262626 !important; }
.ms-qv .single_add_to_cart_button.loading { opacity: 0.6; pointer-events: none; }
.ms-qv .price,
.ms-qv .price ins .amount { color: var(--ms-accent); font-weight: 900; }
.ms-qv .price del .amount { color: #a1a1a1; font-weight: 400; }
.ms-qv-error {
	width: 100%;
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 13px;
	line-height: 1.5;
}

@media only screen and (max-width: 549px) {
	.ms-card { padding: 8px; border-radius: 12px; }
	.ms-card-media { margin-bottom: 8px; border-radius: 8px; }
	.ms-card-badge { top: 8px; padding: 1px 6px; font-size: 12px; }
	.ms-card-badge.is-sale { left: 8px; }
	.ms-card-badge.is-new,
	.ms-card-badge.is-out { right: 8px; font-size: 10px; }
	.ms-card .ms-card-title { font-size: 13px; }
	.ms-card-price-now,
	.ms-card-price-now .amount { font-size: 14px; }
	.ms-card-buy { gap: 3px; padding: 0 6px; letter-spacing: 0.02em; }
	.ms-card-overlay { display: none; } /* màn hình cảm ứng không có rê chuột */
	.ms-card-price { flex-direction: column; align-items: flex-start; gap: 2px; } /* giá gốc luôn ở dòng dưới cho đều các thẻ */
}

/* Mobile: khe giữa các thẻ sản phẩm (hàng Flatsome) thu về 10px để thẻ to hơn; lề ngoài giữ = --ms-gutter */
@media only screen and (max-width: 639px) {
	.row:has(> .ms-card-col),
	.row:has(> .flickity-viewport > .flickity-slider > .ms-card-col) { margin-right: -5px !important; margin-left: -5px !important; }
	.row > .ms-card-col,
	.row .flickity-slider > .ms-card-col { padding-right: 5px !important; padding-bottom: 10px !important; padding-left: 5px !important; }
	/* Slider chưa bật Flickity = dải vuốt ngang inline-block → khoảng trắng HTML cộng thêm ~4px vào khe; dùng flex cho khe đúng 10px */
	.row-slider:not(.flickity-enabled):has(> .ms-card-col) { display: flex; }
	.row-slider:not(.flickity-enabled) > .ms-card-col { flex-shrink: 0; }
}

/* Slider sản phẩm */
.ms-sec .flickity-page-dots .dot { width: 6px; height: 6px; border: 0; background: #d4d4d4; opacity: 1; }
.ms-sec .flickity-page-dots .dot.is-selected { width: 24px; border-radius: 6px; background: var(--ms-ink); }

/* ---------- Trang cửa hàng / danh mục (template: woocommerce/archive-product.php) ----------
   Theo trang mẫu /san-pham: nền xám nhạt, khung đầu trang đen, thanh công cụ trắng bo 16px,
   lưới 4 cột (tablet 3, mobile 2) cách 24px, bộ lọc là ngăn kéo trượt từ trái. */
.ms-shop-page,
.ms-shop-page #main { background: #fafafa; }
.ms-shop { padding-bottom: 80px; }
.ms-shop-container { max-width: var(--ms-wrap); margin: 0 auto; padding: 0 var(--ms-gutter); }

/* Khung đầu trang */
.ms-shop-hero { border-bottom: 1px solid #262626; background: #000; color: #fff; }
.ms-shop-hero .ms-shop-container { padding-top: 48px; padding-bottom: 48px; }
.ms-shop-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: #a1a1a1; font-size: 12px; line-height: 16px; }
.ms-shop-crumbs a { color: #a1a1a1; transition: color 0.2s; }
.ms-shop-crumbs a:hover { color: #fff; }
.ms-shop-crumbs svg { color: #525252; } /* nền đen cố định: không theo màu chữ website */
.ms-shop-crumbs span { color: #fff; font-weight: 600; }
.ms-shop-title {
	margin: 0;
	color: #fff;
	font-size: 36px;
	font-weight: 800;
	line-height: 40px;
	letter-spacing: -0.025em;
	text-transform: uppercase;
}
.ms-shop-desc { max-width: 672px; margin: 8px 0 0; color: #a1a1a1; font-size: 14px; line-height: 1.625; }

/* Thanh công cụ */
.ms-shop-main { padding-top: 32px; }
.ms-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding: 16px;
	border: 1px solid rgba(229, 229, 229, 0.9);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.ms-shop-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 0;
	margin: 0;
	padding: 10px 16px;
	border: 0;
	border-radius: 12px;
	background: #000;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background 0.2s;
}
.ms-shop-filter-btn:hover { background: #262626; color: #fff; }
.ms-shop-filter-btn svg { color: #d4d4d4; transition: transform 0.3s; }
.ms-shop-filter-btn:hover svg { transform: rotate(180deg); }
.ms-shop-filter-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--ms-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
}
.ms-shop-toolbar-end { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.ms-shop-count { margin: 0; color: #737373; font-size: 12px; font-weight: 500; line-height: 16px; }
.ms-shop-count b { color: var(--ms-ink); font-weight: 700; }
.ms-shop-sort { display: flex; align-items: center; gap: 8px; margin: 0; color: #a1a1a1; }
.ms-shop-sort select {
	width: auto;
	height: auto;
	margin: 0;
	padding: 8px 32px 8px 12px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background-color: #fafafa;
	box-shadow: none;
	color: #262626;
	font-size: 12px;
	font-weight: 600;
	line-height: 17px;
	cursor: pointer;
}
.ms-shop-sort select:focus { border-color: #000; outline: 0; box-shadow: 0 0 0 1px #000; }

/* Bộ lọc đang áp dụng */
.ms-shop-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 24px; }
.ms-shop-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px 6px 12px;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	background: #fff;
	color: var(--ms-ink);
	font-size: 12px;
	font-weight: 600;
	transition: border-color 0.2s, color 0.2s;
}
.ms-shop-chip:hover { border-color: var(--ms-accent); color: var(--ms-accent); }
.ms-shop-chip svg { color: #a1a1a1; }
.ms-shop-chip:hover svg { color: var(--ms-accent); }
.ms-shop-chip-clear { padding: 6px 4px; color: #737373; font-size: 12px; font-weight: 600; text-decoration: underline; }
.ms-shop-chip-clear:hover { color: #000; }

/* Lưới sản phẩm (thẻ dùng khung .col của Flatsome → bỏ độ rộng/lề của nó) */
.ms-shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ms-shop-grid > .ms-card-col { width: auto; max-width: none; margin: 0; padding: 0; flex: none; }

/* Phân trang */
.ms-shop .woocommerce-pagination { margin-top: 40px; }
.ms-shop .woocommerce-pagination ul,
.ms-shop .nav-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; }
.ms-shop .woocommerce-pagination li { margin: 0; border: 0; list-style: none; }
.ms-shop li > .page-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	color: #262626;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ms-shop li > a.page-number:hover { border-color: #000; color: #000; }
.ms-shop li > .page-number.current { border-color: #000; background: #000; color: #fff; }
.ms-shop li > .page-number.dots { border: 0; background: none; }

/* Không có sản phẩm */
.ms-shop-empty {
	padding: 64px 24px;
	border: 1px dashed #d4d4d4;
	border-radius: 16px;
	background: #fff;
	color: #a1a1a1;
	text-align: center;
}
.ms-shop-empty h2 { margin: 16px 0 8px; color: var(--ms-ink); font-size: 18px; font-weight: 800; }
.ms-shop-empty p { margin: 0 0 20px; color: #737373; font-size: 14px; }
.ms-shop-empty-btn {
	display: inline-flex;
	padding: 10px 20px;
	border-radius: 12px;
	background: #000;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.ms-shop-empty-btn:hover { background: #262626; }

/* Ngăn kéo bộ lọc */
html.ms-filter-open { overflow: hidden; } /* khóa cuộn trang khi mở */
.ms-filter { position: fixed; inset: 0; z-index: 100000; display: flex; }
.ms-filter[hidden] { display: none; }
.ms-filter-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s;
}
.ms-filter-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 448px;
	height: 100%;
	margin: 0;
	background: #fff;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ms-filter.is-open .ms-filter-overlay { opacity: 1; }
.ms-filter.is-open .ms-filter-panel { transform: none; }

.ms-filter-head { display: flex; align-items: center; gap: 10px; padding: 20px; background: #000; color: #fff; }
.ms-filter-head-icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: #262626; }
.ms-filter-head-text { flex: 1; min-width: 0; }
.ms-filter-head h3 { margin: 0; color: #fff; font-size: 14px; font-weight: 900; line-height: 20px; letter-spacing: 0.05em; text-transform: uppercase; }
.ms-filter-head p { margin: 0; color: #a1a1a1; font-size: 11px; line-height: 16px; }
.ms-filter-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	min-width: 0;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	color: #a1a1a1;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.ms-filter-close:hover { background: #262626; color: #fff; }

.ms-filter-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.ms-filter-group { margin: 0 0 24px; padding: 0; border: 0; }
.ms-filter-group + .ms-filter-group { padding-top: 24px; border-top: 1px solid #f5f5f5; }
.ms-filter-title {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	color: var(--ms-ink);
	font-size: 12px;
	font-weight: 900;
	line-height: 16px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.ms-filter-title:before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--ms-ink); }

.ms-filter-opt {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 4px;
	padding: 10px 14px;
	border-radius: 12px;
	color: #404040;
	font-size: 12px;
	font-weight: 400;
	line-height: 19px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.ms-filter-opt:hover { background: #f5f5f5; color: #000; }
.ms-filter-opt.is-child { padding-left: 28px; }
.ms-filter-opt input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ms-filter-opt-label { min-width: 0; }
.ms-filter-opt-end { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.ms-filter-count {
	padding: 2px 8px;
	border-radius: 6px;
	background: #f5f5f5;
	color: #737373;
	font-size: 11px;
	font-weight: 500;
	line-height: 16px;
}
.ms-filter-check { display: none; }
.ms-filter-opt.is-empty { opacity: 0.4; cursor: not-allowed; }
.ms-filter-opt.is-empty:hover { background: none; color: #404040; }
.is-buttons > .ms-filter-opt.is-empty:hover,
.is-swatch > .ms-filter-opt.is-empty:hover { border-color: #e5e5e5; }
/* Nhóm dài: ẩn phần thêm tới khi bấm "Xem thêm" */
.ms-filter-group:not(.is-expanded) .is-extra { display: none; }
.ms-filter-more {
	min-height: 0;
	margin: 6px 0 0;
	padding: 4px 14px;
	border: 0;
	background: none;
	color: var(--ms-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 18px;
	text-transform: none;
	text-decoration: underline;
	cursor: pointer;
}
.ms-filter-more:hover { color: var(--ms-accent); }
/* Đang chọn: nền đen, chữ trắng đậm, hiện dấu ✓ */
.ms-filter-opt.is-active,
.ms-filter-opt:has(input:checked) { background: var(--ms-ink); color: #fff; font-weight: 700; opacity: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.ms-filter-opt.is-active .ms-filter-count,
.ms-filter-opt:has(input:checked) .ms-filter-count { background: #262626; color: #e5e5e5; }
.ms-filter-opt.is-active .ms-filter-check,
.ms-filter-opt:has(input:checked) .ms-filter-check { display: block; }
.ms-filter-opt:has(input:focus-visible),
.ms-filter-opt:focus-visible { outline: 2px solid var(--ms-accent); outline-offset: 2px; }

/* Tiêu đề nhóm có nút "Bỏ chọn" (nhóm chọn nhiều) */
.ms-filter-clear {
	min-height: 0;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	background: none;
	color: #737373;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 16px;
	text-transform: none;
	text-decoration: underline;
	cursor: pointer;
}
.ms-filter-clear:hover { color: var(--ms-accent); }
.ms-filter-clear[hidden] { display: none; }

/* Kiểu "Nút nhỏ" và "Ô màu": các lựa chọn xếp thành hàng, tự xuống dòng */
.ms-filter-options.is-buttons,
.ms-filter-options.is-swatch { display: flex; flex-wrap: wrap; gap: 8px; }
.is-buttons > .ms-filter-opt,
.is-swatch > .ms-filter-opt {
	gap: 6px;
	margin: 0;
	padding: 7px 12px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	background: #fff;
}
.is-buttons > .ms-filter-opt:hover,
.is-swatch > .ms-filter-opt:hover { border-color: #000; background: #fff; }
.is-buttons .ms-filter-opt-end,
.is-swatch .ms-filter-opt-end { gap: 4px; }
.is-buttons .ms-filter-count,
.is-swatch .ms-filter-count { padding: 0; background: none !important; color: #a1a1a1; font-size: 11px; }
.is-buttons .ms-filter-check,
.is-swatch .ms-filter-check { display: none !important; }
.is-buttons > .ms-filter-opt:has(input:checked),
.is-swatch > .ms-filter-opt:has(input:checked) { border-color: var(--ms-ink); }
.is-buttons > .ms-filter-opt:has(input:checked) .ms-filter-count,
.is-swatch > .ms-filter-opt:has(input:checked) .ms-filter-count { color: #a3a3a3; }
.ms-filter-swatch {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--sw);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.ms-filter-opt:has(input:checked) .ms-filter-swatch { box-shadow: 0 0 0 2px #fff; } /* viền trắng nổi trên nền đen khi chọn */
.is-list .ms-filter-swatch { margin-right: -4px; }
.is-list .ms-filter-opt-label { flex: 1; } /* chấm màu + nhãn nằm sát nhau, số lượng dạt phải */

.ms-filter-promise {
	padding: 16px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fafafa;
	color: var(--ms-text);
	font-size: 11px;
	line-height: 1.625;
}
.ms-filter-promise p { margin: 0 0 6px; }
.ms-filter-promise p:last-child { margin: 0; }
.ms-filter-promise .ms-filter-promise-title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	color: var(--ms-ink);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.ms-filter-promise-title:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ms-ink); }

.ms-filter-foot { display: flex; align-items: center; gap: 12px; padding: 16px; border-top: 1px solid #e5e5e5; background: #fafafa; }
.ms-filter-reset,
.ms-filter-submit {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 0;
	margin: 0;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s;
}
.ms-filter-reset { border: 1px solid #d4d4d4; color: #404040; }
.ms-filter-reset:hover { background: #fff; color: #000; }
.ms-filter-submit {
	border: 0;
	background: #000;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	color: #fff;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.ms-filter-submit:hover { background: #262626; }
.ms-filter-submit span { margin: 0 4px; }

@media (prefers-reduced-motion: reduce) {
	.ms-filter-overlay,
	.ms-filter-panel { transition: none; }
}

/* Tablet: 3 cột */
@media only screen and (max-width: 1023px) {
	.ms-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Mobile: 2 cột, thanh công cụ gọn 1 hàng, ẩn số lượng (giống trang mẫu) */
@media only screen and (max-width: 767px) {
	.ms-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-shop-count { display: none; }
}
@media only screen and (max-width: 639px) {
	.ms-shop-hero .ms-shop-container { padding-top: 32px; padding-bottom: 32px; }
	.ms-shop-title { font-size: 24px; line-height: 32px; }
	.ms-shop-desc { font-size: 12px; }
	.ms-shop-main { padding-top: 20px; }
	.ms-shop-toolbar { flex-wrap: nowrap; gap: 8px; margin-bottom: 16px; padding: 12px; }
	.ms-shop-filter-btn { flex-shrink: 0; gap: 8px; padding: 9px 14px; font-size: 13px; }
	.ms-shop-toolbar-end { min-width: 0; }
	.ms-shop-sort { min-width: 0; }
	.ms-shop-sort svg { display: none; }
	.ms-shop-sort select { max-width: 100%; text-overflow: ellipsis; }
	.ms-shop-grid { gap: 10px; }
	.ms-hide-small { display: none; }
}

/* ---------- Tabs danh mục ---------- */
.ms-sec--bordered { border-top: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line); }
.ms-tabs > .nav { margin-bottom: 24px; }
.ms-tabs .nav-pills > li > a {
	margin: 0 4px;
	padding: 8px 22px;
	border-radius: 999px;
	color: var(--ms-ink);
	font-size: 12px;
	font-weight: 700;
}
.ms-tabs .nav-pills > li.active > a { background: var(--ms-black); color: #fff; }

/* ---------- Đánh giá khách hàng ---------- */
.ms-testimonial { position: relative; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.ms-review { position: relative; max-width: 832px; margin: 0 auto; text-align: center; }
.ms-review-glow {
	position: absolute;
	top: 68px;
	left: 50%;
	width: 420px;
	height: 220px;
	margin-left: -210px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	filter: blur(64px);
	pointer-events: none;
}
.ms-review > *:not(.ms-review-glow) { position: relative; }
.ms-review p:empty { display: none; }
.ms-review-eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 0 14px;
	color: #d4d4d4;
	font-size: 11px;
	font-weight: 700;
	line-height: 16.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.ms-review-eyebrow span { width: 24px; height: 1px; background: rgba(255, 255, 255, 0.2); }
.ms-review-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 10px; color: var(--ms-accent-500); }
.ms-review-quote {
	max-width: 672px;
	margin: 0 auto 16px;
	padding: 0;
	border: 0;
	color: #f5f5f5;
	font-size: 18px;
	font-style: normal;
	font-weight: 300;
	line-height: 1.625;
}
.ms-review-author { display: flex; flex-direction: column; align-items: center; }
.ms-review-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 6px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
}
.ms-review-avatar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ms-review-author h4 {
	margin: 0 0 2px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.ms-review-author p { margin: 0; color: var(--ms-soft); font-size: 11px; line-height: 16.5px; }
.ms-review-author p b { color: #d4d4d4; font-weight: 500; }
.ms-review-author .ms-dot { font-style: normal; }
.ms-review-stars .is-empty { display: inline-flex; color: rgba(255, 255, 255, 0.2); }
.ms-review-initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #262626;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

/* Carousel đánh giá: trượt ngang, mỗi lần 1 đánh giá (khung cao bằng đánh giá dài nhất; JS trong inc/reviews.php) */
/* Không bôi đen chữ khi kéo bằng chuột (bôi đen/kéo chữ làm trình duyệt huỷ thao tác kéo slide). */
.ms-review-slides { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ms-review-slides img { -webkit-user-drag: none; pointer-events: none; }
.ms-review-track { display: flex; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); will-change: transform; }
.ms-review-slide { flex: 0 0 100%; min-width: 0; margin: 0; }
.ms-review.is-dragging .ms-review-slides { cursor: grabbing; user-select: none; }
.ms-review.is-dragging .ms-review-track { transition: none; }
.ms-review-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.ms-review-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	background: none;
	color: var(--ms-soft);
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}
.ms-review-arrow:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.ms-review-arrow:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.ms-review-dots { display: flex; align-items: center; gap: 6px; }
.ms-review-dot {
	width: 4px;
	height: 4px;
	min-width: 0; /* Flatsome đặt min-width cho mọi button */
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	cursor: pointer;
	transition: width 0.3s, background 0.3s;
}
.ms-review-dot.is-active { width: 20px; background: #fff; }
@media (prefers-reduced-motion: reduce) {
	.ms-review-track { transition: none; }
}

.ms-stats {
	display: grid;
	grid-template-columns: repeat(var(--ms-stats-count, 4), 1fr);
	gap: 16px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ms-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ms-stat svg { color: #fff; }
.ms-stat strong { color: #fff; font-size: 24px; font-weight: 900; line-height: 32px; letter-spacing: -0.025em; }
.ms-stat span { color: var(--ms-soft); font-size: 10px; font-weight: 500; line-height: 15px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Tin tức ---------- */
.ms-blog .box-blog-post {
	height: 100%;
	border: 1px solid var(--ms-line);
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
}
.ms-blog .box-blog-post .box-text { padding: 20px; }
.ms-blog .post-title { font-size: 15px; font-weight: 800; line-height: 1.4; }
.ms-blog .from_the_blog_excerpt { color: var(--ms-muted); font-size: 13px; }
.ms-blog .is-divider { display: none; }
.ms-blog .badge.post-date { top: 12px; left: 12px; }
.ms-blog .badge.post-date .badge-inner { border-radius: 8px; background: rgba(0, 0, 0, 0.75); color: #fff; }
.ms-blog .button { width: 100%; margin: 16px 0 0; }
/* Các thẻ tin tức cao bằng nhau (theo thẻ cao nhất trong hàng), nút "Xem thêm" luôn nằm sát đáy thẻ */
.ms-blog > .col > .col-inner { height: 100%; }
.ms-blog .box-blog-post { display: flex; flex-direction: column; }
.ms-blog .box-blog-post .box-image { width: 100%; flex: none; }
.ms-blog .box-blog-post .box-text,
.ms-blog .box-blog-post .box-text-inner { display: flex; flex: 1 1 auto; flex-direction: column; }
.ms-blog .from_the_blog_excerpt { margin-bottom: 16px; }
.ms-blog .box-blog-post .button { margin-top: auto; }

/* ---------- Footer ---------- */
.ms-footer { color: var(--ms-soft); font-size: 14px; line-height: 1.6; }
/* Các khối trang chủ (khuyến mãi, mới nhất, nổi bật, cửa hàng, đánh giá, tin tức) + footer thẳng mép với header:
   hàng rộng 1280px, lề = --ms-gutter (trừ 15px đệm sẵn của cột Flatsome). */
.ms-sec > .section-content > .row,
.ms-testimonial > .section-content > .row,
.ms-footer > .section-content > .row {
	max-width: var(--ms-wrap);
	padding-left: calc(var(--ms-gutter) - 15px);
	padding-right: calc(var(--ms-gutter) - 15px);
}
/* Lưới sản phẩm / bài viết bên trong khối: bỏ giới hạn 1080px mặc định của Flatsome để trải hết khung */
.ms-sec .section-content .row .row,
.ms-testimonial .section-content .row .row { max-width: none; }

/* Khoảng cách giữa các khối trang chủ: đều nhau và gọn (ghi đè padding="64px/72px/0" đặt riêng từng khối trong UX Builder).
   Bỏ thêm đệm dưới 30px của cột bao ngoài và của từng thẻ sản phẩm / bài viết trong slider – trước đây cộng dồn ra 120–170px trắng. */
.ms-sec.section, .ms-testimonial.section { padding-top: 28px !important; padding-bottom: 28px !important; }
.ms-hero-section.section { padding-bottom: 12px !important; }
.ms-sec > .section-content > .row > .col,
.ms-testimonial > .section-content > .row > .col { padding-bottom: 0; }
.ms-sec .row-slider > .col, .ms-sec .slider > .col, .ms-sec .flickity-slider > .col { padding-bottom: 0; }
/* Chấm điều hướng nằm dưới slider (chiếm chỗ, không đè khối sau). Flatsome căn giữa bằng left/right – với
   position: relative thì left lại thành độ dịch sang phải, nên đặt lại 0 để chấm nằm giữa. */
.ms-sec .flickity-page-dots { position: relative; left: 0; right: 0; bottom: auto; margin-top: 16px; }
@media (min-width: 850px) {
	.ms-sec .ms-blog > .col { padding-bottom: 0; } /* tin tức: 1 hàng 3 bài */
}
@media (max-width: 849px) {
	.ms-sec.section, .ms-testimonial.section { padding-top: 20px !important; padding-bottom: 20px !important; }
}
.absolute-footer .container { max-width: var(--ms-wrap); padding-left: var(--ms-gutter); padding-right: var(--ms-gutter); }
.ms-footer-services { border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.ms-footer-services .col { padding-bottom: 12px; }
.ms-service {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: var(--ms-radius);
	background: rgba(255, 255, 255, 0.03);
}
.ms-service-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(74, 222, 128, 0.1);
	color: var(--ms-green-soft);
}
.ms-service h5 { margin: 0; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ms-service p { margin: 4px 0 0; color: var(--ms-soft); font-size: 13px; line-height: 1.5; }

/* Icon 4 cam kết vẽ bằng CSS khi ô icon trống: trình soạn thảo (TinyMCE / bộ lọc bảo mật của WordPress) xoá <svg> khi
   khối chân trang được mở và lưu lại → không phụ thuộc SVG trong nội dung. Ô còn SVG (setup-footer.php) giữ nguyên. */
.ms-service > p:empty { display: none; } /* thẻ <p> trống do trình soạn thảo chèn */
.ms-service-icon:empty::before {
	content: "";
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: var(--ms-svc-icon) center / contain no-repeat;
	mask: var(--ms-svc-icon) center / contain no-repeat;
}
.ms-footer-services .col:nth-child(1) .ms-service-icon { --ms-svc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62L18.3 8.38A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E"); } /* giao hàng */
.ms-footer-services .col:nth-child(2) .ms-service-icon { --ms-svc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); } /* bảo hành */
.ms-footer-services .col:nth-child(3) .ms-service-icon { --ms-svc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E"); } /* đổi trả */
.ms-footer-services .col:nth-child(4) .ms-service-icon { --ms-svc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); } /* đồng kiểm */

.ms-footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.ms-footer-mark {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--ms-radius);
	background: var(--ms-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
}
/* Logo ảnh ở footer ([ms_logo] trong khối Footer MacStore) */
.ms-footer-brand img.ms-footer-logo-mark { flex-shrink: 0; width: 52px; height: 52px; max-width: none; margin: 0; }
.ms-footer-brand img.ms-footer-logo-word { display: block; width: 168px; height: auto; max-width: none; margin: 0 0 6px; }
.ms-footer-mark img.ms-logo-img { display: block; width: 30px; height: 30px; max-width: none; margin: 0; }
.ms-footer-brand h4 { margin: 0; color: #fff; font-size: 18px; font-weight: 800; line-height: 1.3; text-transform: uppercase; }
.ms-footer-brand p { margin: 2px 0 0; color: var(--ms-soft); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.ms-footer ul { margin: 0; padding: 0; list-style: none; }
.ms-footer li { margin: 0 0 14px; padding: 0; } /* margin-left: Flatsome thụt lề mọi <li> 1.3em */
.ms-footer-contact li { display: flex; gap: 12px; color: #c4c4c4; line-height: 1.6; }
.ms-footer-contact i { flex-shrink: 0; width: 16px; margin-top: 4px; color: #fff; text-align: center; }
.ms-footer-contact strong { color: #fff; }
.ms-footer-contact small { display: block; margin-top: 2px; color: var(--ms-muted); font-size: 12px; }
.ms-footer-contact a { color: #e5e5e5; }
.ms-footer-contact a.ms-footer-phone { color: #fff; font-size: 16px; font-weight: 700; }
.ms-pay-label { margin: 20px 0 10px; color: #c4c4c4; font-size: 13px; font-weight: 500; }
.ms-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-pay span { padding: 6px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 12px; font-weight: 800; }

/* Máy tính: cột thông tin liên hệ và Fanpage rộng hơn hai cột link (mặc định 4 cột bằng nhau làm địa chỉ xuống dòng nhiều) */
@media (min-width: 850px) {
	.ms-footer-main > .section-content > .row > .col:nth-child(1) { flex-basis: 30%; max-width: 30%; }
	.ms-footer-main > .section-content > .row > .col:nth-child(2) { flex-basis: 21%; max-width: 21%; }
	.ms-footer-main > .section-content > .row > .col:nth-child(3) { flex-basis: 22%; max-width: 22%; }
	.ms-footer-main > .section-content > .row > .col:nth-child(4) { flex-basis: 27%; max-width: 27%; }
}
.ms-footer-title { margin-bottom: 22px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ms-footer .ms-footer-links li { margin-left: 0; }
.ms-footer-links a { color: #c4c4c4; font-size: 15px; transition: color 0.2s; }
.ms-footer a:hover { color: #fff; }

.ms-fanpage { padding: 20px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; background: rgba(255, 255, 255, 0.03); }
.ms-fanpage-head { display: flex; align-items: center; gap: 12px; }
.ms-fanpage-head b { display: block; color: #fff; font-size: 15px; font-weight: 800; }
.ms-fanpage-head small { color: var(--ms-soft); font-size: 13px; }
.ms-fanpage p { margin: 14px 0 16px; color: #c4c4c4; font-size: 14px; line-height: 1.6; }
.ms-fanpage-btns { display: flex; gap: 8px; }
.ms-fanpage-btns a {
	flex: 1;
	padding: 10px 8px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	color: #e5e5e5;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}
.ms-fanpage-btns .ms-fb-like { background: #fff; color: var(--ms-ink); }
.ms-fanpage-btns .ms-fb-like:hover { color: var(--ms-ink); }

/* Thu gọn khoảng trống cuối footer: khối chính (dưới "Chấp nhận thanh toán") + thanh bản quyền. */
.ms-footer-main.section { padding-top: 36px !important; padding-bottom: 24px !important; } /* ghi đè padding="56px" của khối UX */
.ms-footer-services.section { padding-top: 24px !important; padding-bottom: 24px !important; }
.ms-footer-services > .section-content > .row > .col:last-child { padding-bottom: 0; }
@media (min-width: 850px) {
	.ms-footer-services > .section-content > .row > .col { padding-bottom: 0; }
}
.ms-footer-main > .section-content > .row > .col:last-child { padding-bottom: 0; }
@media (min-width: 850px) {
	.ms-footer-main > .section-content > .row > .col { padding-bottom: 0; }
}

.absolute-footer { padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); color: var(--ms-muted); font-size: 13px; }
.absolute-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.absolute-footer .container::before, .absolute-footer .container::after { display: none; } /* clearfix thừa khi dùng flex */
/* Desktop: chừa chỗ cho cột nút nổi (gọi / Zalo / lên đầu trang ~70px sát mép phải) khi màn hình chưa đủ rộng
   để khung 1280px tự có khoảng trống – nếu không icon mạng xã hội cuối dòng bị nút "lên đầu trang" che. */
@media (min-width: 850px) {
	.absolute-footer .container { padding-right: max(var(--ms-gutter), calc(100px - max(0px, (100vw - var(--ms-wrap)) / 2))); }
}
.absolute-footer .footer-primary, .absolute-footer .footer-secondary { float: none; padding: 0; }
.absolute-footer .footer-primary { order: -1; }
.absolute-footer .footer-secondary .footer-text { display: flex; }
@media (max-width: 849px) {
	.absolute-footer .container { justify-content: center; }
}
.absolute-footer strong { color: var(--ms-soft); }
.ms-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-left: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	color: var(--ms-soft);
}
.ms-social:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Nút liên hệ nổi (inc/float-contact.php – menu "Nút liên hệ" trong admin) ----------
   Màu từng nút lấy từ cài đặt: --msf-bg (nền), --msf-fg (icon / chữ), --msf-ping (chấm nhấp nháy). */
.ms-float {
	position: fixed;
	right: 20px;
	bottom: 84px;
	z-index: 99;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ms-float-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	background: var(--msf-bg, var(--ms-ink));
	color: var(--msf-fg, #fff) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s;
}
.ms-float-btn:hover { transform: translateY(-2px); }
.ms-float-label { font-size: 11px; font-weight: 900; line-height: 1; }
.ms-float-img { display: block; width: 26px; height: 26px; object-fit: contain; }
/* Nút dùng ảnh riêng (vd logo Zalo): ảnh to bằng cả nút, bỏ khung nền / viền / bóng hộp (bóng theo hình ảnh). */
.ms-float-btn.has-img, .ms-float-btn:has(> .ms-float-img) { border: 0; border-radius: 50%; background: none; box-shadow: none; }
.ms-float-btn.has-img .ms-float-img, .ms-float-btn:has(> .ms-float-img) .ms-float-img { width: 100%; height: 100%; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25)); }
.ms-float.is-left { right: auto; left: 20px; }
.ms-float-ping {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 14px;
	height: 14px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--msf-ping, var(--ms-accent-bright-2));
}
.ms-float-ping:after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	background: var(--msf-ping, var(--ms-accent-bright-2));
	animation: ms-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ms-ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ms-float-ping:after { animation: none; } .ms-float-btn { transition: none; } }
.ms-float-btn:focus-visible { outline: 2px solid var(--msf-bg, #000); outline-offset: 3px; }
.ms-float-tip {
	position: absolute;
	right: 58px;
	padding: 6px 12px;
	border-radius: var(--ms-radius);
	background: var(--ms-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translateX(6px);
	transition: opacity 0.2s, transform 0.2s;
}
.ms-float-btn:hover .ms-float-tip { opacity: 1; transform: none; }
.ms-float.is-left .ms-float-tip { right: auto; left: 58px; transform: translateX(-6px); }
.ms-float.is-left .ms-float-btn:hover .ms-float-tip { transform: none; }
/* Nút ở góc trái → nút "lên đầu trang" của Flatsome vẫn ở góc phải, không chồng nhau */
#top-link { right: 24px; bottom: 24px; border-radius: var(--ms-radius); background: rgba(23, 23, 23, 0.9); color: #fff; border: 0; }

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
	.ms-title h2 { font-size: 22px; }
	.ms-review-quote { font-size: 15px; }
	.ms-review-author p b { display: block; }
	.ms-review-author .ms-dot { display: none; }
	.ms-stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
	.ms-stats[style*="--ms-stats-count:1"] { grid-template-columns: 1fr; }
	.ms-stat strong { font-size: 22px; }
	.ms-float { right: 14px; bottom: 76px; }
	.ms-float.is-left { right: auto; left: 14px; }
	.ms-float-btn { width: 44px; height: 44px; border-radius: 14px; }
	.ms-float-tip { display: none; }
	.absolute-footer .footer-secondary { float: none; margin-bottom: 8px; }
	.ms-social { margin: 0 4px; }
}

/* ---------- Khung "Đăng ký bản tin" (UX Block "dang-ky-ban-tin" + Contact Form 7) ----------
   Hàng (row) class "ms-nl", cột class "ms-nl-box"; chữ: ux_text class ms-nl-badge / ms-nl-title / ms-nl-desc. */
.row.ms-nl { max-width: 870px; margin-right: auto; margin-left: auto; }
.ms-nl .ms-nl-box { padding-bottom: 0; }
.ms-nl .ms-nl-box > .col-inner {
	position: relative;
	overflow: hidden;
	padding: 48px 40px 36px;
	border: 1px solid #262626;
	border-radius: 20px;
	background: radial-gradient(520px 220px at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%), linear-gradient(135deg, #000 0%, #171717 55%, #0a0a0a 100%);
	color: #fff;
	text-align: center;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.ms-nl .text p, .ms-nl .text h3 { margin: 0; }
.ms-nl .ms-nl-badge p {
	display: inline-block;
	padding: 3px 12px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	line-height: 18px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.ms-nl .ms-nl-title { margin-top: 14px; }
.ms-nl .ms-nl-title h3 { color: #fff; font-size: 24px; font-weight: 900; line-height: 1.35; letter-spacing: -0.01em; }
.ms-nl .ms-nl-desc { max-width: 640px; margin: 10px auto 0; }
.ms-nl .ms-nl-desc p { color: #a3a3a3; font-size: 14px; line-height: 1.6; }
.ms-nl .wpcf7 { max-width: 560px; margin: 24px auto 0; }
.ms-nl .wpcf7 form > p { margin: 0; }
.ms-nl-form { position: relative; display: flex; gap: 10px; }
.ms-nl-form > p { display: contents; } /* CF7 tự bọc ô nhập + nút trong <p> */
.ms-nl-form br { display: none; }
.ms-nl-form .wpcf7-form-control-wrap { flex: 1; min-width: 0; }
.ms-nl .wpcf7 input[type="email"] {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #404040;
	border-radius: 12px;
	background: #262626;
	box-shadow: none;
	color: #fff;
	font-size: 14px;
	transition: border-color 0.2s, background 0.2s;
}
.ms-nl .wpcf7 input[type="email"]::placeholder { color: #737373; opacity: 1; }
.ms-nl .wpcf7 input[type="email"]:focus { border-color: #fff; background: #1f1f1f; outline: none; }
.ms-nl .wpcf7 input[type="email"].wpcf7-not-valid { border-color: #f87171; }
.ms-nl .wpcf7 input[type="submit"] {
	flex-shrink: 0;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: #000;
	font-size: 13px;
	font-weight: 800;
	line-height: 44px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.ms-nl .wpcf7 input[type="submit"]:hover { background: var(--ms-accent); color: #fff; }
.ms-nl .wpcf7 input[type="submit"]:disabled { opacity: 0.6; cursor: wait; }
.ms-nl .wpcf7-spinner { position: absolute; top: 50%; right: -36px; margin: -12px 0 0; }
.ms-nl .wpcf7-not-valid-tip { margin-top: 6px; color: #f87171; font-size: 12px; text-align: left; }
.ms-nl .ms-nl-note { margin: 12px 0 0; color: #737373; font-size: 11px; }
.ms-nl .wpcf7 form .wpcf7-response-output { margin: 14px 0 0; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; color: #e5e5e5; font-size: 13px; }
.ms-nl .wpcf7 form.sent .wpcf7-response-output { border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.08); color: var(--ms-green-200); }
.ms-nl .wpcf7 form.invalid .wpcf7-response-output,
.ms-nl .wpcf7 form.failed .wpcf7-response-output,
.ms-nl .wpcf7 form.spam .wpcf7-response-output { border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.08); color: #fecaca; }
@media only screen and (max-width: 639px) {
	.ms-nl .ms-nl-box > .col-inner { padding: 32px 20px 26px; border-radius: 16px; }
	.ms-nl .ms-nl-title h3 { font-size: 19px; }
	.ms-nl .ms-nl-desc p { font-size: 13px; }
	.ms-nl-form { flex-direction: column; }
	.ms-nl .wpcf7 input[type="submit"] { width: 100%; }
	.ms-nl .wpcf7-spinner { top: auto; right: 50%; bottom: -34px; margin: 0 -12px 0 0; }
}

/* ---------- Hộp "Cần tư vấn trực tiếp?" (UX Block "tu-van-truc-tiep" – cột phải trang bài viết) ----------
   Hàng class "ms-contact", cột "ms-contact-box"; chữ: ux_text ms-contact-eyebrow / ms-contact-title / ms-contact-desc; nút "ms-contact-btn". */
.ms-contact .ms-contact-box > .col-inner {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	border: 1px solid #262626;
	border-radius: 16px;
	background: #000;
	color: #fff;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.ms-contact .ms-contact-box .text p, .ms-contact .ms-contact-box .text h4 { margin: 0; }
.ms-contact .ms-contact-eyebrow p { color: #a3a3a3; font-size: 10px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.ms-contact .ms-contact-title h4 { color: #fff; font-size: 14px; font-weight: 700; line-height: 1.375; }
.ms-contact .ms-contact-desc p { color: #a3a3a3; font-size: 12px; line-height: 1.5; }
.ms-contact .ms-contact-box .button.ms-contact-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 10px 16px;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: #000;
	font-size: 12px;
	font-weight: 900;
	line-height: 20px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	box-shadow: none;
	transition: background 0.2s, color 0.2s;
}
.ms-contact .ms-contact-box .button.ms-contact-btn:hover { background: #e5e5e5; color: #000; }
.ms-contact .ms-contact-box .button.ms-contact-btn span { color: inherit; }
.ms-contact .button.ms-contact-btn i { top: 0; margin: 0; font-size: 15px; }

/* ---------- Tối ưu trải nghiệm mobile ----------
   Vùng chạm tối thiểu ~40px, nút nổi không đè nội dung, footer gọn hơn. */
/* Nút viền (vd "Xem thêm mẫu"): chữ/viền xám #c0c0c0 của Flatsome trông như nút bị vô hiệu */
.button.ms-btn.is-outline { border-color: var(--ms-black); color: var(--ms-black); }
.button.ms-btn.is-outline:hover { background: var(--ms-black); color: #fff; }

@media only screen and (max-width: 639px) {
	/* Hero: nút chép mã chỉ 24×18px → nới vùng chạm, giữ nguyên hình */
	.ms-hero-copy { margin: -8px -8px -8px -4px; padding: 8px; }

	/* Slider sản phẩm: mũi tên ‹ › đè lên chữ trong thẻ; vuốt + chấm tròn là đủ */
	.ms-sec .row-slider .flickity-prev-next-button { display: none; }

	/* Chấm chuyển đánh giá 4×4px → vùng chạm 24px (lớp giả trong suốt) */
	.ms-review-dots { gap: 10px; }
	.ms-review-dot { position: relative; }
	.ms-review-dot:before { content: ""; position: absolute; inset: -10px -5px; }

	/* Footer: 4 ô dịch vụ thành lưới 2×2 thay vì 4 hàng dọc */
	.ms-footer-services .row > .col { flex-basis: 50%; max-width: 50%; padding-right: 6px; padding-left: 6px; }
	.ms-footer-services > .section-content > .row { padding-right: calc(var(--ms-gutter) - 6px); padding-left: calc(var(--ms-gutter) - 6px); }
	.ms-service { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 12px; }
	.ms-service-icon { width: 34px; height: 34px; }
	.ms-service h5 { font-size: 12px; line-height: 1.4; }

	/* Footer: link thẳng mép với tiêu đề, vùng chạm cao hơn */
	.ms-footer .ms-footer-links li { margin: 0; }
	.ms-footer-links a { display: block; padding: 8px 0; font-size: 15px; }
	.ms-footer-title { margin-bottom: 8px; }
	.ms-footer-contact a { display: inline-block; padding: 4px 0; }
	.ms-social { width: 40px; height: 40px; }

	/* Chừa lề phải cho cột nút liên hệ nổi để không che dòng bản quyền cuối trang */
	.absolute-footer .container { padding-right: 64px; padding-bottom: 16px; }

	/* Nút nổi gọn hơn để ít che nút "+" trên thẻ sản phẩm */
	.ms-float { right: 12px; gap: 10px; }
	.ms-float.is-left { left: 12px; }
	.ms-float-btn { width: 42px; height: 42px; border-radius: 13px; }
	#top-link { right: 16px; bottom: 20px; }

	/* Menu mobile đang mở: ẩn nút nổi; icon mạng xã hội trong menu to hơn */
	.has-off-canvas .ms-float { display: none; }
}

/* ---------- Menu mobile (off-canvas trái của Flatsome, #main-menu) ----------
   Dải đen trên cùng: tên shop + ô tìm kiếm; danh sách mục rõ ràng, menu con dạng thẻ xám;
   cuối menu: mạng xã hội, showroom, nút gọi hotline nổi bật. */
.off-canvas:not(.off-canvas-center) .mfp-content {
	width: min(340px, 86vw);
	background: #fff;
	box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
}
.off-canvas.mfp-bg.mfp-ready { opacity: 0.7; }
.off-canvas .mfp-close { top: 14px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; opacity: 1; mix-blend-mode: normal; }
.off-canvas .mfp-close svg { width: 22px; height: 22px; }
#main-menu .sidebar-menu { padding: 0 0 24px; }
#main-menu .nav-sidebar > li { border: 0; }

/* Dải đen: tên shop + tìm kiếm */
#main-menu .nav-sidebar > li.header-search-form {
	position: relative;
	padding: 64px 16px 18px;
	background: #000;
}
#main-menu .nav-sidebar > li.header-search-form:before {
	content: "MACSTORE24H";
	position: absolute;
	top: 22px;
	left: 16px;
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	letter-spacing: 0.02em;
}
#main-menu .header-search-form .searchform .flex-row { overflow: hidden; border: 1px solid #333; border-radius: 12px; background: #171717; }
#main-menu .header-search-form .search-field {
	height: 44px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font-size: 14px;
}
#main-menu .header-search-form .search-field::placeholder { color: #8a8a8a; opacity: 1; }
#main-menu .header-search-form .ux-search-submit { width: 44px; height: 44px; min-height: 0; margin: 0; border-radius: 0; background: var(--ms-accent); }

/* Mục cấp 1 */
#main-menu .nav-sidebar > li.menu-item,
#main-menu .nav-sidebar > li.header-newsletter-item { position: relative; align-self: stretch; width: auto; margin: 0 16px; border-bottom: 1px solid #f0f0f0; background: none; }
#main-menu .nav-sidebar > li.menu-item:first-of-type,
#main-menu .nav-sidebar > li.header-search-form + li { margin-top: 10px; }
#main-menu .nav-sidebar > li > a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 44px 0 4px;
	color: var(--ms-ink);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.03em;
}
#main-menu .nav-sidebar > li.current-menu-item > a { color: var(--ms-accent); }
#main-menu .nav-sidebar > li.current-menu-item > a:before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ms-accent);
}
#main-menu .nav-sidebar > li > a i { margin: 0; color: #737373; font-size: 16px; }
#main-menu .nav-sidebar > li.header-newsletter-item { border-bottom: 0; }

/* Nút mở menu con */
#main-menu .nav-sidebar li .toggle {
	position: absolute; /* Flatsome để relative → top bị cộng dồn, nút lệch xuống */
	top: 10px; /* (52px hàng - 32px nút) / 2 */
	right: 4px;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: 0;
	border-radius: 50% !important;
	transform: none !important; /* Flatsome xoay cả nút → chỉ xoay icon */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: #f5f5f5;
	color: var(--ms-ink);
	opacity: 1;
}
#main-menu .nav-sidebar li .toggle i { margin: 0; font-size: 18px; line-height: 1; transition: transform 0.2s; }
#main-menu .nav-sidebar li.active > .toggle i { transform: rotate(180deg); }
#main-menu .nav-sidebar li.active > .toggle { background: #000; color: #fff; }

/* Menu con: thẻ xám */
#main-menu .nav-sidebar .sub-menu {
	width: 100%;
	margin: 0 0 12px;
	padding: 6px;
	border-radius: 12px;
	background: #f6f6f6;
}
#main-menu .nav-sidebar .sub-menu li { border: 0; }
#main-menu .nav-sidebar .sub-menu li > a {
	display: block;
	padding: 11px 12px;
	border-radius: 8px;
	color: #404040;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
#main-menu .nav-sidebar .sub-menu li > a:active,
#main-menu .nav-sidebar .sub-menu li.current-menu-item > a { background: #fff; color: #000; }

/* Mạng xã hội */
#main-menu .nav-sidebar > li.header-social-icons,
#main-menu .nav-sidebar > li.html_topbar_right,
#main-menu .nav-sidebar > li.html_top_right_text { align-self: stretch; }
#main-menu .nav-sidebar > li.header-social-icons { padding: 16px 16px 4px; }
#main-menu .header-social-icons .social-icons { display: flex; gap: 10px; }
#main-menu .header-social-icons .social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid #e5e5e5;
	border-radius: 50%;
	color: #262626;
	font-size: 16px;
}

/* Showroom + cam kết */
#main-menu .nav-sidebar > li.html_topbar_right {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 16px 16px 0;
	text-align: left;
	font-size: 12px;
	line-height: 1.5;
	text-transform: none;
}
#main-menu .html_topbar_right .ms-topbar-muted { margin: 0; color: #737373; }
#main-menu .html_topbar_right .ms-topbar-strong {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ms-green-50);
	color: var(--ms-green-dark);
	font-weight: 700;
}
#main-menu .html_topbar_right .ms-topbar-strong:before { content: "✓ "; }

/* Hotline: nút gọi nổi bật */
#main-menu .nav-sidebar > li.html_top_right_text { padding: 16px 16px 0; }
#main-menu .ms-hotline {
	height: auto;
	padding: 12px 16px !important;
	border: 0;
	border-radius: 14px;
	background: #000;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
#main-menu .ms-hotline-icon { width: 40px; height: 40px; border: 0; background: var(--ms-accent); color: #fff; }
#main-menu .nav-sidebar .ms-hotline-icon i { margin: 0; color: #fff; }
#main-menu .ms-hotline-text small { color: #a3a3a3; }
#main-menu .ms-hotline-text b { font-size: 17px; }


/* ---- Trang Liên hệ (/pages/lien-he) – theo bố cục trang cũ trên Haravan ---- */
.ms-lh.container { max-width: var(--ms-wrap); padding: 40px var(--ms-gutter) 56px; } /* thẳng lề với header */
.ms-lh-title { margin: 0 0 24px; color: var(--ms-ink); font-size: 26px; font-weight: 800; text-transform: uppercase; }
.ms-lh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.ms-lh-item { padding: 0 0 14px; margin: 0 0 18px; border-bottom: 1px solid var(--ms-line); }
.ms-lh-item h3 { margin: 0 0 12px; color: #6b6b6b; font-size: 15px; font-weight: 400; }
.ms-lh-item p { display: flex; gap: 12px; margin: 0; color: var(--ms-ink); font-size: 14px; line-height: 1.6; }
.ms-lh-item svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: 3px; fill: var(--ms-ink); }
.ms-lh-item a { color: var(--ms-ink); }
.ms-lh-item a:hover { color: var(--ms-accent); }
.ms-lh .wpcf7 form > p { margin: 0; }
.ms-lh-form .wpcf7-form-control-wrap { display: block; margin-bottom: 10px; }
.ms-lh-form input:not([type=submit]), .ms-lh-form textarea {
	width: 100%; max-width: none; height: auto; min-height: 0; margin: 0; padding: 14px 8px;
	border: 0; border-bottom: 1px solid var(--ms-line); border-radius: 0; background: transparent; box-shadow: none;
	color: var(--ms-ink); font-size: 14px;
}
.ms-lh-form textarea { min-height: 120px; resize: vertical; }
.ms-lh-form input:not([type=submit]):focus, .ms-lh-form textarea:focus { border-bottom-color: var(--ms-ink); box-shadow: none; }
.ms-lh-form .button { min-width: 96px; margin: 14px 0 0; text-transform: uppercase; } /* màu, bo góc theo nút chung của site */
.ms-lh .wpcf7-not-valid-tip { margin-top: 4px; font-size: 12px; }
.ms-lh .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 10px 12px; font-size: 14px; }
.ms-lh-map { overflow: hidden; aspect-ratio: 2 / 3; max-height: 420px; background: var(--ms-bg-soft); }
.ms-lh-map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 849px) {
	.ms-lh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-lh-map { grid-column: 1 / -1; aspect-ratio: 16 / 9; max-height: none; }
}
@media (max-width: 549px) {
	.ms-lh.container { padding-top: 24px; padding-bottom: 32px; }
	.ms-lh-title { font-size: 22px; }
	.ms-lh-grid { grid-template-columns: 1fr; gap: 24px; }
	.ms-lh-map { aspect-ratio: 4 / 3; }
}
