/* =======================================================================
 * Sàn Gỗ Thanh Hóa – Child theme (Flatsome)
 *
 * Cấu trúc file:
 *   0) @font-face – Shopee (tiêu đề) + Be Vietnam Pro (nội dung), self-host woff2.
 *   1) Design tokens (:root) – KHAI BÁO MÀU MỘT NƠI DUY NHẤT.
 *   2) Base typography.
 *   3) Helper tiêu đề section dùng chung.
 *   (Mỗi module sẽ bổ sung block CSS riêng bên dưới khi được thêm vào,
 *    không override chồng chéo, không lặp khai báo màu bằng mã hex.)
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 0) @FONT-FACE – self-host (đường dẫn ../fonts/ tính từ file CSS này)
 *    ShopeeDisplay: dùng cho TIÊU ĐỀ. Be Vietnam Pro: dùng cho NỘI DUNG.
 * ------------------------------------------------------------------- */
@font-face {
	font-family: 'ShopeeDisplay';
	src: url('../fonts/shopee/ShopeeDisplay-Light.woff2') format('woff2');
	font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'ShopeeDisplay';
	src: url('../fonts/shopee/ShopeeDisplay-Regular.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'ShopeeDisplay';
	src: url('../fonts/shopee/ShopeeDisplay-Medium.woff2') format('woff2');
	font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'ShopeeDisplay';
	src: url('../fonts/shopee/ShopeeDisplay-Bold.woff2') format('woff2');
	font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'ShopeeDisplay';
	src: url('../fonts/shopee/ShopeeDisplay-ExtraBold.woff2') format('woff2');
	font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'ShopeeDisplay';
	src: url('../fonts/shopee/ShopeeDisplay-Black.woff2') format('woff2');
	font-weight: 900; font-style: normal; font-display: swap;
}

@font-face {
	font-family: 'Be Vietnam Pro';
	src: url('../fonts/be-vietnam-pro/BeVietnamPro-Regular.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Be Vietnam Pro';
	src: url('../fonts/be-vietnam-pro/BeVietnamPro-Medium.woff2') format('woff2');
	font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Be Vietnam Pro';
	src: url('../fonts/be-vietnam-pro/BeVietnamPro-SemiBold.woff2') format('woff2');
	font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Be Vietnam Pro';
	src: url('../fonts/be-vietnam-pro/BeVietnamPro-Bold.woff2') format('woff2');
	font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Be Vietnam Pro';
	src: url('../fonts/be-vietnam-pro/BeVietnamPro-ExtraBold.woff2') format('woff2');
	font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------------------------------------------------------------------
 * 1) DESIGN TOKENS – Bảng màu thương hiệu
 * ------------------------------------------------------------------- */
:root {
	/* Đỏ thương hiệu (khớp logo) */
	--sgth-primary:      #cb1313; /* chủ đạo: nút/CTA, nhấn */
	--sgth-primary-dark: #812218; /* hover/active của nút đỏ */
	--sgth-primary-2:    #cb3c33; /* đỏ cam: badge/nhấn phụ */

	/* Tông gỗ */
	--sgth-wood:       #764e32;
	--sgth-wood-dark:  #6b4428;
	--sgth-wood-light: #81583c;
	--sgth-wood-soft:  #b0856b;

	/* Nhấn & trung tính */
	--sgth-gold:    #fcb46c; /* điểm nhấn, gạch chân tiêu đề */
	--sgth-muted:   #8c776f; /* chữ phụ */
	--sgth-neutral: #b4a5a1; /* trung tính ấm */
	--sgth-link:    #1d89e4; /* liên kết/thông tin */

	/* Nền & chữ */
	--sgth-cream:   #fdf0e7; /* nền section sáng */
	--sgth-cream-2: #f6edde; /* nền section xen kẽ */
	--sgth-text:    #1a0b04; /* chữ chính (gần đen) */
	--sgth-heading: #2e2218; /* màu tiêu đề h2/h3 */
	--sgth-line:    #ece0d4; /* viền nhạt (tint từ cream) */

	--sgth-radius: 12px;
}

/* ---------------------------------------------------------------------
 * 2) BASE TYPOGRAPHY
 * ------------------------------------------------------------------- */
/* NỘI DUNG & UI: Be Vietnam Pro (dễ đọc tiếng Việt). Form element không tự
 * kế thừa font nên phải liệt kê. !important để đè font Flatsome (Customizer). */
body,
.nav, button, input, select, textarea, .button {
	font-family: 'Be Vietnam Pro', -apple-system, 'Segoe UI', Roboto, sans-serif !important;
}

/* TIÊU ĐỀ: ShopeeDisplay (link trong heading cũng kế thừa Shopee). */
h1, h2, h3, h4, h5, h6,
.heading-font,
.sec-title {
	font-family: 'ShopeeDisplay', 'Be Vietnam Pro', -apple-system, 'Segoe UI', sans-serif !important;
}

body { color: var(--sgth-text); }
a { color: var(--sgth-link); }
a:hover { color: var(--sgth-primary); }

/* Tiêu đề h2, h3: màu #2e2218 + extra-bold. */
h2, h3 { color: var(--sgth-heading); font-weight: 800; }

/* Đậm/nét tiêu đề hơn 1 chút: viền chữ mảnh cùng màu (currentColor). */
h1, h2, h3 { -webkit-text-stroke: 0.3px currentColor; }

/* ---------------------------------------------------------------------
 * 3) HELPER: TIÊU ĐỀ SECTION DÙNG CHUNG
 * ------------------------------------------------------------------- */
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-title {
	font-size: 28px;
	font-weight: 800;
	color: var(--sgth-heading);
	margin: 0 0 6px;
}
.sec-title span { color: var(--sgth-primary); } /* phần chữ muốn nhấn đỏ */
.sec-title::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	margin: 12px auto 0;
	background: var(--sgth-gold);
	border-radius: 2px;
}
.sec-sub {
	color: var(--sgth-muted);
	font-size: 15px;
	margin: 0;
}

@media (max-width: 549px) {
	.sec-title { font-size: 22px; }
}

/* ---------------------------------------------------------------------
 * 4) HEADER – branding theo Flatsome
 *    Cấu trúc header (vị trí element) set trong Customizer → Header.
 *    Phần dưới chỉ re-skin màu sắc theo thương hiệu.
 * ------------------------------------------------------------------- */

/* Top bar: nền ĐỎ thương hiệu, chữ trắng (cần !important để đè màu Customizer). */
#top-bar { background-color: var(--sgth-primary); }
#top-bar,
#top-bar a,
#top-bar .nav > li > a { color: #fff !important; }
#top-bar a:hover,
#top-bar .nav > li > a:hover { color: var(--sgth-gold) !important; }

/* TEXT HEADER dùng font Shopee (đè Lato mặc định Flatsome – phải target thẳng
 * link header + !important vì Flatsome đặt font ở cấp con). */
#top-bar, #top-bar a,
.header-nav .nav > li > a,
.header-main .nav > li > a,
#logo a, #logo strong {
	font-family: 'ShopeeDisplay', 'Be Vietnam Pro', -apple-system, sans-serif !important;
}

/* Menu chính: chữ đậm, hover/active đỏ. */
.header-nav .nav > li > a { color: var(--sgth-text); font-weight: 600; }
.header-nav .nav > li > a:hover,
.header-nav .nav > li.active > a,
.header-nav .nav > li.current-menu-item > a,
.header-nav .nav > li.current-menu-parent > a { color: var(--sgth-primary); }

/* Gạch chân gold (khi chọn kiểu nav "Line/Line Grow" trong Customizer). */
.header-nav.nav-line > li > a::before,
.header-nav .nav-line > li > a::before { background-color: var(--sgth-gold); }

/* Submenu (dropdown "Sản phẩm"). */
.nav-dropdown { border-top: 2px solid var(--sgth-primary); }
.nav-dropdown > li > a:hover { color: var(--sgth-primary); background-color: var(--sgth-cream); }

/* Nút CTA trên header (element Button, vd "Nhận báo giá"). */
.header-button .button {
	background-color: var(--sgth-primary);
	border-color: var(--sgth-primary);
	color: #fff;
	font-weight: 700;
	border-radius: 8px;
}
.header-button .button:hover {
	background-color: var(--sgth-primary-dark);
	border-color: var(--sgth-primary-dark);
	color: #fff;
}

/* Hotline – dán snippet vào 1 element HTML/Text trong header. */
.hotline { display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; }
.hotline .hotline-ico {
	width: 38px; height: 38px; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--sgth-primary);
	color: #fff;
	font-size: 18px;
}
.hotline small { display: block; font-size: 11px; color: var(--sgth-muted); }
.hotline b { display: block; font-size: 18px; font-weight: 800; color: var(--sgth-primary); }

/* ---------------------------------------------------------------------
 * 5) TRANG CHỦ – các section dựng bằng UX Builder
 *    (markup chữ/icon đặt trong [col]; layout cột do Flatsome lo,
 *     phần dưới chỉ tạo kiểu cho element bên trong, dùng biến brand.)
 * ------------------------------------------------------------------- */

/* 5.1 Hero banner ---------------------------------------------------- */
.hero-title {
	color: #fff;
	font-weight: 900;
	font-size: 40px;
	line-height: 1.15;
	margin: 0 0 14px;
	text-transform: uppercase;
}
.hero-sub {
	color: rgba(255, 255, 255, 0.92);
	font-size: 17px;
	margin: 0 0 24px;
}
@media (max-width: 549px) {
	.hero-title { font-size: 26px; }
	.hero-sub  { font-size: 15px; }
}

/* 5.2 Thanh cam kết -------------------------------------------------- */
.commit-item { display: flex; align-items: center; gap: 12px; }
.commit-ico {
	flex: none;
	width: 52px; height: 52px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--sgth-cream);
	color: var(--sgth-primary);
	font-size: 24px;
}
.commit-item b    { display: block; color: var(--sgth-text); font-size: 15px; line-height: 1.3; }
.commit-item span { display: block; color: var(--sgth-muted); font-size: 13px; }

/* 5.3 Danh mục sản phẩm – [ux_product_categories type="slider"] ------ *
 *     Slider tự chạy + mũi tên ‹ › (native Flatsome/Flickity): desktop hiện
 *     đủ 5 cột (đứng yên), mobile hiện ~2 cột, tự chạy + vuốt. Class
 *     `cat-scroll` chỉ để chỉnh màu chấm trang theo brand. */
.cat-scroll .flickity-page-dots .dot.is-selected { background: var(--sgth-primary); }
/* Bo góc + viền nhẹ cho ảnh từng danh mục. */
.cat-scroll .box-image {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--sgth-line);
}
/* Hover: phóng nhẹ ảnh (overflow:hidden ở trên giữ ảnh không tràn). */
.cat-scroll .box-image img { transition: transform 0.45s ease; }
.cat-scroll .box-category:hover .box-image img { transform: scale(1.08); }

/* 5.4 Vì sao chọn chúng tôi ----------------------------------------- */
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li {
	display: flex;
	gap: 10px;
	padding-bottom: 14px;
	color: var(--sgth-text);
	font-size: 15px;
}
.why-list i {
	flex: none;
	color: var(--sgth-primary);
	font-size: 18px;
	margin-top: 2px;
}

/* 5.5 Quy trình 4 bước (class `step` đặt trên [col], nội dung trong [ux_text]) */
.step { text-align: center; }
.step-num {
	width: 56px; height: 56px;
	margin: 0 auto 12px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--sgth-primary);
	color: #fff;
	font-weight: 800;
	font-size: 22px;
}
.step h4 { margin: 0 0 6px; font-size: 17px; }
.step p  { margin: 0; color: var(--sgth-muted); font-size: 14px; }

/* 5.6 CTA Báo giá (đặt trong [section] nền đỏ full-width) ------------ */
.cta { text-align: center; }
.cta h2 { color: #fff; font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.cta p  { color: rgba(255, 255, 255, 0.9); font-size: 16px; margin: 0 0 22px; }
/* 2 nút CTA trên nền đỏ: chính = nền trắng/chữ đỏ; phụ = viền trắng (gọi điện) */
.cta .button { border-radius: 14px; font-weight: 700; margin: 0; vertical-align: middle; }
.cta a.cta-btn { color: var(--sgth-primary); box-shadow: 0 12px 26px rgba(90, 8, 8, 0.28); }
.cta a.cta-btn:hover { background: var(--sgth-cream); border-color: var(--sgth-cream); color: var(--sgth-primary-dark); transform: translateY(-2px); box-shadow: 0 18px 34px rgba(90, 8, 8, 0.36); }
.cta a.cta-phone { margin-left: 12px; }
.cta a.cta-phone:hover { background: #fff; border-color: #fff; color: var(--sgth-primary); }
@media (max-width: 549px) {
	.cta h2 { font-size: 24px; }
	/* Nút giữ inline-block (căn giữa qua text-align), tự xuống dòng; bỏ lề trái nút gọi khi wrap */
	.cta a.cta-phone { margin-left: 0; margin-top: 12px; }
}

/* 5.7 Section Giới thiệu (ảnh trái + nội dung phải) ----------------- */
.eyebrow {
	color: var(--sgth-gold);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
	font-size: 14px;
	margin: 0 0 8px;
}
/* Tiêu đề dùng element [ux_text] chứa thẻ heading (h1/h2/h3) — không dùng [title]. */
.intro-title h1,
.intro-title h2,
.intro-title h3 {
	font-size: 34px;
	font-weight: 400;            /* regular cho tiêu đề giới thiệu */
	color: var(--sgth-text);
	line-height: 1.2;
	margin: 0 0 14px;
}
.intro-text {
	color: var(--sgth-text);
	font-size: 15px;
	line-height: 1.8;
	margin: 0 0 18px;
}
.intro-text strong { color: var(--sgth-primary); }
@media (max-width: 549px) {
	.intro-title h1,
	.intro-title h2,
	.intro-title h3 { font-size: 26px; }
}

/* 5.8 Sản phẩm nổi bật (heading + nút phải, slider sp theo danh mục) - */
.feat-btn-col { text-align: right; }            /* cột chứa nút "Toàn bộ SP" */
.prod-cat-label {                               /* nhãn từng danh mục */
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 14px;                           /* khoảng cách trên do margin row lo → đều nhau */
	font-size: 19px; font-weight: 400;            /* regular cho nhẹ nhàng hơn */
	text-transform: uppercase;
	color: var(--sgth-heading);
}
.prod-cat-label::before {                        /* viên kim cương vàng trang trí */
	content: ""; flex: none;
	width: 13px; height: 13px;
	background: var(--sgth-gold);
	border-radius: 2px;
	transform: rotate(45deg);
}
/* Card sản phẩm: THẺ TRẮNG NỔI (bo góc + bóng nhẹ + hover nâng), giá đỏ. */
.feat-products .box {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;                              /* thẻ tự bo góc trên của ảnh */
	box-shadow: 0 4px 14px rgba(26, 11, 4, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feat-products .box:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(26, 11, 4, 0.14);
}
.feat-products .box-image { overflow: hidden; }
/* Hover = ĐỔI sang ảnh thứ 2 (Flatsome "Back Image - Fade In"), KHÔNG zoom.
   SP cần có ảnh gallery thứ 2 thì mới đổi; SP 1 ảnh giữ nguyên. */
.feat-products .box-text { padding: 14px 14px 18px; }  /* đệm phần chữ trong thẻ */
/* Card cao đều cho MỌI nhóm: tiêu đề chừa đủ 2 dòng (bền hơn JS equalize_box vốn
   đo sai do ảnh lazy-load + auto_slide). Ảnh vuông + danh mục + giá đều 1 dòng. */
.feat-products .product-title { min-height: 2.8em; }
.feat-products .price,
.feat-products .price .amount { color: var(--sgth-primary); }
@media (max-width: 849px) {
	.feat-btn-col { text-align: left; margin-top: 10px; }
}

/* 5.9 Công trình tiêu biểu (card ảnh + overlay hiện khi hover) -------- */
.ct-card {
	display: block;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
}
.ct-thumb {
	aspect-ratio: 16 / 9;          /* ảnh ngang cho layout 3 cột */
	overflow: hidden;
}
.ct-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;            /* cắt vừa khung 4:3 dù ảnh gốc tỉ lệ nào */
	transition: transform 0.5s ease;
}
.ct-card:hover .ct-thumb img { transform: scale(1.06); }
.ct-overlay {
	display: block;
	text-decoration: none;
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 18px 16px;
	background: linear-gradient(to top, rgba(26, 11, 4, 0.88), rgba(26, 11, 4, 0));
	color: #fff;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}
.ct-card:hover .ct-overlay { opacity: 1; transform: translateY(0); }
.ct-cat {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--sgth-gold);
}
.ct-title {                       /* đè màu/đậm heading chung vì nằm trên overlay tối */
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	-webkit-text-stroke: 0;
}

/* Công cụ card: xem nhanh + chia sẻ (góc trên phải, hiện khi hover) */
.ct-tools {
	position: absolute;
	top: 14px; right: 14px;
	z-index: 3;
	display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
	opacity: 0; transform: translateY(-6px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.ct-card:hover .ct-tools { opacity: 1; transform: translateY(0); }
.ct-tool {
	width: 38px; height: 38px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: #fff;
	color: var(--sgth-text);
	font-size: 16px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	transition: background 0.2s ease, color 0.2s ease;
}
.ct-tool:hover { background: var(--sgth-primary); color: #fff; }
/* Chia sẻ: hover nút share → hiện hàng icon mạng XH trượt sang trái */
.ct-share { position: relative; }
.ct-share-list {
	position: absolute;
	top: 0; right: calc(100% + 8px);
	display: flex; align-items: center; gap: 4px;
	padding: 5px 8px;
	background: #fff;
	border-radius: 99px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	white-space: nowrap;
	opacity: 0; pointer-events: none; transform: translateX(8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.ct-share-list::after {           /* cầu nối trong suốt lấp khoảng 8px → tránh "vùng chết" khi rê chuột */
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	left: 100%;
	width: 12px;
}
.ct-share:hover .ct-share-list,
.ct-share:focus-within .ct-share-list { opacity: 1; pointer-events: auto; transform: translateX(0); }
.ct-share-list a {
	width: 28px; height: 28px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	color: var(--sgth-text);
	font-size: 14px;
}
.ct-share-list a:hover { color: var(--sgth-primary); }

/* Mobile / cảm ứng (không hover): luôn hiện công cụ + thông tin.
   Nút chia sẻ vẫn cần CHẠM để xổ icon (qua :focus-within ở trên). */
@media (hover: none), (max-width: 849px) {
	.ct-tools   { opacity: 1; transform: none; }
	.ct-overlay { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
 * 5.10) MŨI TÊN SLIDER NẰM NGOÀI SLIDE (danh mục + sản phẩm + công trình)
 *   - DESKTOP: slide FULL width (không chừa chỗ); mũi tên đẩy hẳn ra gutter
 *     ngoài content (right/left: 100%) — khớp giao diện UX Builder.
 *   - MOBILE (≤849px): vẫn chừa nhẹ + mũi tên nhỏ nằm sát mép (khối @media bên dưới).
 * ------------------------------------------------------------------- */
.col-inner:has(> .cat-scroll),
.col-inner:has(> .feat-products),
.col-inner:has(> .ct-slider) {
	padding-left: 0;
	padding-right: 0;
	overflow: visible;
}
/* Cho mũi tên (right/left:100%) tràn ra GUTTER ngoài cột mà không bị cắt */
.col:has(> .col-inner > .cat-scroll),
.col:has(> .col-inner > .feat-products),
.col:has(> .col-inner > .ct-slider),
.row:has(.cat-scroll),
.row:has(.feat-products),
.row:has(.ct-slider) { overflow: visible; }
.cat-scroll, .feat-products, .ct-slider { overflow: visible; }
.cat-scroll .flickity-prev-next-button.previous,
.feat-products .flickity-prev-next-button.previous,
.ct-slider .flickity-prev-next-button.previous { left: auto; right: 100%; margin-right: 4px; }
.cat-scroll .flickity-prev-next-button.next,
.feat-products .flickity-prev-next-button.next,
.ct-slider .flickity-prev-next-button.next { right: auto; left: 100%; margin-left: 4px; }

/* Mũi tên = MŨI TÊN ĐỎ trơn, bỏ nền + viền tròn ở mọi trạng thái (kể cả khi bấm/hover).
   Phải liệt kê :hover/:focus/:active để đè rule nền đỏ của slider-nav-circle. */
.cat-scroll .flickity-prev-next-button,
.feat-products .flickity-prev-next-button,
.ct-slider .flickity-prev-next-button { background: transparent !important; box-shadow: none !important; }
/* Nhắm CẢ path `.arrow` lẫn `svg`, mọi trạng thái. Dùng :is() để vượt độ ưu tiên
   rule trắng (0,3,1) của Flatsome cho slider-nav-circle khi hover. */
.cat-scroll .flickity-prev-next-button :is(.arrow, svg),
.feat-products .flickity-prev-next-button :is(.arrow, svg),
.ct-slider .flickity-prev-next-button :is(.arrow, svg),
.cat-scroll .flickity-prev-next-button:is(:hover, :focus, :active) :is(.arrow, svg),
.feat-products .flickity-prev-next-button:is(:hover, :focus, :active) :is(.arrow, svg),
.ct-slider .flickity-prev-next-button:is(:hover, :focus, :active) :is(.arrow, svg) {
	fill: var(--sgth-primary) !important;
	background: transparent !important;
	border-color: transparent !important;
}

/* Mobile/tablet (≤849px): mũi tên vẫn NẰM NGOÀI thẻ (như ảnh), nhỏ + LUÔN HIỆN
   (touch không hover). Chừa 24px mỗi bên để mũi tên nằm gọn trong gutter, không bị cắt. */
@media (max-width: 849px) {
	.col-inner:has(> .cat-scroll),
	.col-inner:has(> .feat-products),
	.col-inner:has(> .ct-slider) {
		padding-left: 10px;
		padding-right: 10px;
	}
	.cat-scroll .flickity-prev-next-button,
	.feat-products .flickity-prev-next-button,
	.ct-slider .flickity-prev-next-button {
		width: 28px !important;
		height: 28px !important;
		opacity: 1 !important;
		display: block !important;
		pointer-events: auto !important;
		background: transparent !important;   /* chỉ còn mũi tên, không nền/viền */
		box-shadow: none !important;
	}
	/* Kéo mũi tên vào sát mép slide (đè nhẹ lên góc) → luôn nằm trong màn hình. */
	.cat-scroll .flickity-prev-next-button.previous,
	.feat-products .flickity-prev-next-button.previous,
	.ct-slider .flickity-prev-next-button.previous { left: -20px !important; right: auto !important; margin: 0 !important; }
	.cat-scroll .flickity-prev-next-button.next,
	.feat-products .flickity-prev-next-button.next,
	.ct-slider .flickity-prev-next-button.next { right: -20px !important; left: auto !important; margin: 0 !important; }
	.cat-scroll .flickity-prev-next-button svg,
	.feat-products .flickity-prev-next-button svg,
	.ct-slider .flickity-prev-next-button svg {
		height: 16px !important;
		border: none !important;
	}
}

/* ---------------------------------------------------------------------
 * 5.11) TIN TỨC – card bài viết (nền section trắng nên không dùng thẻ trắng)
 * ------------------------------------------------------------------- */
/* Thẻ trắng nổi trên nền cream (giống card sản phẩm) */
.news-grid .box {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(26, 11, 4, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-grid .box:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(26, 11, 4, 0.14);
}
.news-grid .box-image img { transition: transform 0.5s ease; }
.news-grid .box:hover .box-image img { transform: scale(1.06); }
.news-grid .box-text { padding: 16px 18px 20px; }
.news-grid .post-title {
	margin: 2px 0 8px;
	font-size: 16px;
	line-height: 1.45;
	min-height: 2.9em;            /* ~2 dòng → card cao đều */
}
.news-grid .post-title a { color: var(--sgth-heading); }
.news-grid .box:hover .post-title a { color: var(--sgth-primary); }
.news-grid .from_the_blog_excerpt { color: var(--sgth-muted); font-size: 14px; }
.news-grid .button { color: var(--sgth-primary) !important; font-weight: 700; } /* "Đọc tiếp" đỏ */
/* Badge ngày trên ảnh: nền trắng, KHÔNG viền, cách lề trên & trái bằng nhau (12px) */
.news-grid .badge.post-date { top: 12px !important; }
.news-grid .badge.top { left: 12px !important; }
.news-grid .badge { margin-left: 0 !important; } /* bỏ -.4em của badge-outline */
.news-grid .badge .badge-inner {
	background: #fff;
	color: var(--sgth-heading);
	border: none !important;       /* bỏ viền đen */
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.news-grid .post-date-day { font-weight: 800; color: var(--sgth-heading); }
.news-grid .post-date-month { color: var(--sgth-primary); text-transform: uppercase; }
/* Hover: badge đổi sang nền ĐỎ (Flatsome) → cho chữ ngày + tháng thành TRẮNG cho nổi. */
.news-grid .box:hover .post-date-day,
.news-grid .box:hover .post-date-month { color: #fff !important; }

/* Badge giảm giá: hiện phần trăm -X% (bật trong Customizer), nền ĐỎ brand,
   chữ trắng, bỏ viền (đè màu "secondary" nâu mặc định). Áp toàn site. */
.badge-inner.on-sale {
	background-color: var(--sgth-primary) !important;
	color: #fff !important;
	border: none !important;
}
.badge-inner.on-sale .onsale { color: #fff !important; }
/* Thu nhỏ badge + đặt góc trên-trái cân đối (~12px mỗi bên). */
.badge-container .badge { font-size: 11px !important; } /* 2.8em ≈ 31px, chữ nhỏ theo */
.badge-container { margin-top: 12px !important; }
.badge-container .badge-circle { margin-left: 12px !important; }

/* News slider: mũi tên ĐỎ; desktop = lưới 3 (ẩn chấm); mobile = trượt + mũi tên hiện. */
.news-grid .flickity-prev-next-button { background: transparent !important; box-shadow: none !important; }
.news-grid .flickity-prev-next-button :is(.arrow, svg),
.news-grid .flickity-prev-next-button:is(:hover, :focus, :active) :is(.arrow, svg) {
	fill: var(--sgth-primary) !important;
	background: transparent !important;
	border-color: transparent !important;
}
.news-grid .flickity-page-dots .dot.is-selected { background: var(--sgth-primary); }
@media (min-width: 850px) {
	.news-grid .flickity-page-dots { display: none; } /* desktop 3 cột, không cần chấm */
}
@media (max-width: 849px) {
	.news-grid .flickity-prev-next-button {
		opacity: 1 !important;
		display: block !important;
		pointer-events: auto !important;
		width: 28px !important;
		height: 28px !important;
	}
	.news-grid .flickity-prev-next-button svg { height: 16px !important; }
	.news-grid .flickity-prev-next-button.previous { left: 2px !important; right: auto !important; margin: 0 !important; }
	.news-grid .flickity-prev-next-button.next { right: 2px !important; left: auto !important; margin: 0 !important; }
}

/* ---------------------------------------------------------------------
 * 5.12) MẠNG LƯỚI ĐỐI TÁC – lưới logo (class `partner-grid` đặt trên [row])
 *   Logo canh giữa, đồng đều chiều cao, xám mờ → màu rõ khi hover.
 * ------------------------------------------------------------------- */
.partner-grid .col-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
}
.partner-grid img {
	max-height: 56px;
	width: auto;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: filter 0.35s ease, opacity 0.35s ease;
}
.partner-grid img:hover {
	filter: grayscale(0);
	opacity: 1;
}

/* ---------------------------------------------------------------------
 * 5.13) SECTION HỢP TÁC – thông tin công ty (trái) + form CF7 (phải)
 * ------------------------------------------------------------------- */
.company-info ul { list-style: none; margin: 20px 0 0; padding: 0; }
.company-info li {
	display: flex; align-items: flex-start; gap: 12px;
	margin-bottom: 12px;
	font-size: 15px;
}
.company-info li i { flex: none; color: var(--sgth-primary); font-size: 18px; margin-top: 2px; }
.company-info a { color: var(--sgth-text); }
.company-info a:hover { color: var(--sgth-primary); }

/* Cột form = thẻ trắng */
.contact-form-col > .col-inner {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 20px rgba(26, 11, 4, 0.08);
	padding: 28px;
}
.contact-form-col h3 { margin: 0 0 16px; }
.contact-form-col input[type="text"],
.contact-form-col input[type="tel"],
.contact-form-col textarea {
	width: 100%;
	border: 1px solid var(--sgth-line);
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 12px;
	font-size: 15px;
	background: #fff;
	box-shadow: none;
}
.contact-form-col input:focus,
.contact-form-col textarea:focus { border-color: var(--sgth-primary); outline: none; }
.contact-form-col textarea { min-height: 100px; }
.contact-form-col .wpcf7-submit {
	width: 100%;
	background: var(--sgth-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 13px 28px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}
.contact-form-col .wpcf7-submit:hover { background: var(--sgth-primary-dark); }
/* Trang Liên hệ (page 17): icon SVG cho thông tin + bản đồ full-width */
.company-info li svg { flex: none; width: 20px; height: 20px; color: var(--sgth-primary); margin-top: 1px; }
.contact-map .section-content > .row { max-width: 100% !important; }
.contact-map .col { padding: 0; }
.contact-map iframe { width: 100%; height: 420px; border: 0; display: block; }
@media (max-width: 549px) { .contact-map iframe { height: 300px; } }

/* ---------------------------------------------------------------------
 * TRANG 404 (template 404.php) – có thương hiệu, căn giữa
 * ------------------------------------------------------------------- */
.page-404 { position: relative; overflow: hidden; text-align: center; padding: 84px 24px 92px;
	background: radial-gradient(620px 420px at 50% 16%, #fdecec 0%, var(--sgth-cream) 45%, #fff 78%); }
.page-404::before, .page-404::after { content: ""; position: absolute; width: 240px; height: 240px;
	border-radius: 26px; background: linear-gradient(135deg, #fbe3d6, #f6cab7); opacity: .35;
	transform: rotate(45deg); z-index: 0; pointer-events: none; }
.page-404::before { top: -95px; left: -75px; }
.page-404::after { bottom: -115px; right: -65px; }
.page-404-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.page-404 .nf-num { font-family: 'ShopeeDisplay', 'Be Vietnam Pro', sans-serif; font-weight: 800;
	font-size: clamp(110px, 20vw, 180px); line-height: 1; letter-spacing: -2px; margin: 6px 0 0;
	background: linear-gradient(135deg, var(--sgth-primary), var(--sgth-primary-dark));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	-webkit-text-stroke: 0; text-shadow: 0 18px 40px rgba(203, 19, 19, .16); }
.page-404 .nf-num .dot { display: inline-block; width: .58em; height: .58em; margin: 0 .05em;
	border-radius: .16em; transform: rotate(45deg); vertical-align: middle;
	background: linear-gradient(135deg, var(--sgth-primary), var(--sgth-primary-dark)); }
.page-404 h1 { font-size: clamp(24px, 3.2vw, 32px); color: var(--sgth-heading); margin: 12px 0 10px; }
.page-404 .nf-lead { color: var(--sgth-muted); font-size: 16px; line-height: 1.6; max-width: 520px; margin: 0 auto 26px; }
.page-404 .nf-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.page-404 .nf-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 14px; font-weight: 700;
	font-size: 15px; padding: 13px 26px; text-decoration: none; transition: .25s; }
.page-404 .nf-btn--primary { background: var(--sgth-primary); color: #fff; box-shadow: 0 12px 26px rgba(203, 19, 19, .26); }
.page-404 .nf-btn--primary:hover { background: var(--sgth-primary-dark); color: #fff; transform: translateY(-2px); }
.page-404 .nf-btn--outline { background: #fff; color: var(--sgth-primary); border: 2px solid var(--sgth-line); }
.page-404 .nf-btn--outline:hover { border-color: var(--sgth-primary); color: var(--sgth-primary-dark); }
.page-404 .nf-search { display: flex; max-width: 460px; margin: 0 auto 28px; background: #fff;
	border: 1px solid var(--sgth-line); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(42, 26, 16, .08); }
.page-404 .nf-search input { flex: 1; border: 0; margin: 0; padding: 13px 18px; font-size: 15px; outline: 0; background: #fff; box-shadow: none; }
.page-404 .nf-search button { border: 0; margin: 0; border-radius: 0; box-shadow: none; align-self: stretch; height: auto; min-width: 56px; background: var(--sgth-primary); color: #fff; padding: 0 20px;
	cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.page-404 .nf-search button:hover { background: var(--sgth-primary-dark); }
.page-404 .nf-search svg { width: 20px; height: 20px; }
.page-404 .nf-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.page-404 .nf-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff;
	border: 1px solid var(--sgth-line); border-radius: 999px; padding: 9px 16px; font-weight: 600;
	font-size: 14px; color: var(--sgth-heading); text-decoration: none; transition: .2s; }
.page-404 .nf-chip:hover { border-color: var(--sgth-primary); color: var(--sgth-primary); }
.page-404 .nf-chip svg { width: 16px; height: 16px; color: var(--sgth-primary); flex: none; }
@media (max-width: 549px) { .page-404 { padding: 56px 18px 64px; } .page-404 .nf-lead { font-size: 15px; } }

/* ---------------------------------------------------------------------
 * 5.14) FOOTER (UX Block, nền đỏ thương hiệu, chữ sáng) – class `site-footer`
 * ------------------------------------------------------------------- */
/* TẤT CẢ chữ footer màu trắng. */
.site-footer,
.site-footer h4,
.site-footer p,
.site-footer a,
.site-footer li { color: #fff; }
.site-footer h4 { font-size: 17px; margin: 0 0 16px; }
.site-footer p { font-size: 14px; line-height: 1.7; }
.site-footer a:hover { color: var(--sgth-gold); }
/* Logo TRẮNG: đảo màu CHỈ ảnh logo (class footer-logo) → trắng trên nền đỏ.
   KHÔNG áp cho mọi <img> để ảnh khác thêm vào footer không bị trắng. */
.site-footer .footer-logo img { filter: brightness(0) invert(1); }
/* Căn đều cột 1: logo + chữ + liên hệ cùng mép trái. */
.site-footer .col-inner { text-align: left; }
.site-footer .footer-info { margin-top: 4px; }
.footer-links ul,
.footer-info ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; font-size: 14px; }
.footer-info li {
	display: flex; gap: 10px; align-items: flex-start;
	margin-bottom: 10px; font-size: 14px;
}
.footer-info li i { flex: none; margin-top: 3px; color: #fff; }
.footer-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	margin: 0 6px 6px 0;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 16px;
	transition: background 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { background: #fff; color: var(--sgth-primary); }

/* ---------------------------------------------------------------------
 * 5.15) TRANG CHI TIẾT SẢN PHẨM (single product)
 * ------------------------------------------------------------------- */
/* Bảng "THÔNG TIN DỮ LIỆU" dưới giá */
.sgth-spec-table {
	width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
}
.sgth-spec-table th,
.sgth-spec-table td {
	border: 1px solid var(--sgth-line);
	padding: 8px 10px; text-align: left; vertical-align: top;
}
.sgth-spec-table thead th {
	background: var(--sgth-cream); color: var(--sgth-heading);
	font-weight: 700; text-transform: uppercase; font-size: 12px;
}
.sgth-spec-table td:first-child { width: 36px; text-align: center; color: var(--sgth-muted); }
.sgth-spec-table td:nth-child(2) { width: 38%; font-weight: 600; color: var(--sgth-text); }

/* Hộp lưu ý đỏ */
.sgth-price-notice {
	background: var(--sgth-primary); color: #fff;
	border-radius: 8px; padding: 12px 16px; margin: 14px 0;
	font-size: 14px; line-height: 1.5;
}

/* SP biến thể – hàng "Số lượng + Giá" (cùng hàng) */
.sgth-qty-price { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.sgth-qty-price .quantity { flex: 0 0 auto; margin: 0; }
.sgth-qty-price .single_variation { flex: 1 1 auto; margin: 0; }
.sgth-qty-price .woocommerce-variation-price .price,
.sgth-qty-price .price { margin: 0; color: var(--sgth-primary); font-size: 1.5em; font-weight: 800; }
.sgth-qty-price .woocommerce-variation-availability { margin: 4px 0 0; font-size: 13px; }

/* Hàng "Đăng ký nhận báo giá" (đỏ chính, full-width) */
.sgth-product-cta { margin: 14px 0 10px; }
.sgth-product-cta .sgth-cta-quote {
	width: 100%; margin: 0; min-height: 50px;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border-radius: 8px; font-weight: 700; font-size: 1.05em;
	background: var(--sgth-primary); border-color: var(--sgth-primary); color: #fff;
}
.sgth-product-cta .sgth-cta-quote:hover { background: var(--sgth-primary-dark); border-color: var(--sgth-primary-dark); color: #fff; }
.sgth-product-cta .sgth-cta-quote i { font-size: 1.05em; }

/* Hàng 2: "Thêm vào giỏ" (WC) CÙNG HÀNG với "Liên hệ" (chèn qua hook) */
.single-product .woocommerce-variation-add-to-cart,
.single-product form.cart:not(.variations_form) {
	display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
}
/* Stepper số lượng (SP đơn giản): căn giữa dọc, không bị kéo giãn/lệch nút "-" */
.single-product form.cart:not(.variations_form) .quantity {
	flex: 0 0 auto; align-self: center; margin: 0;
	display: inline-flex; flex-wrap: nowrap; align-items: center;
}
.single-product .single_add_to_cart_button {
	flex: 1 1 160px; margin: 0; min-height: 50px;
	border-radius: 8px; font-weight: 700;
	background: #1d89e4 !important; border-color: #1d89e4 !important; color: #fff !important;
}
.single-product .single_add_to_cart_button:hover {
	background: #1670c2 !important; border-color: #1670c2 !important; color: #fff !important;
}
/* Mobile + tablet nhỏ: "Thêm vào giỏ" và "Liên hệ" mỗi nút xuống 1 hàng riêng,
   full-width, chữ giữ 1 dòng — tránh chen ngang chật chội, xuống dòng, cao lệch. */
@media (max-width: 767px) {
	.single-product .woocommerce-variation-add-to-cart,
	.single-product form.cart:not(.variations_form) { gap: 8px; }
	.single-product .single_add_to_cart_button,
	.single-product .sgth-cta-call {
		flex: 1 1 100%; width: 100%; min-height: 46px;
		white-space: nowrap; font-size: 14px;
	}
}
.single-product .sgth-cta-call {
	flex: 1 1 160px; margin: 0; min-height: 50px;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border-radius: 8px; font-weight: 700;
	background: #fff; border: 2px solid var(--sgth-wood); color: var(--sgth-wood);
}
.single-product .sgth-cta-call:hover { background: var(--sgth-wood); border-color: var(--sgth-wood); color: #fff; }
.single-product .sgth-cta-call i { font-size: 1.05em; }

/* Tab Mô tả: lưới 2 cột (Bảng giá | Thông số) lấp đầy chiều ngang */
.sgth-desc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 40px;
	align-items: start;
}
.sgth-desc-grid .sgth-desc-title { margin-top: 0; }
@media (max-width: 849px) { .sgth-desc-grid { grid-template-columns: 1fr; } }

.sgth-desc-title { font-size: 18px; margin: 24px 0 12px; }
.sgth-price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sgth-price-table th,
.sgth-price-table td { border: 1px solid var(--sgth-line); padding: 8px 12px; text-align: left; }
.sgth-price-table thead th { background: var(--sgth-primary); color: #fff; font-weight: 700; }
.sgth-tech-specs { list-style: none; margin: 0; padding: 0; }
.sgth-tech-specs li { padding: 5px 0 5px 18px; position: relative; }
.sgth-tech-specs li::before { content: "•"; position: absolute; left: 0; color: var(--sgth-primary); font-weight: 800; }
.sgth-desc-note { color: var(--sgth-muted); font-size: 13px; margin-top: 14px; }

/* Thu gọn nội dung mô tả + nút "Xem thêm" (JS thêm .is-clamped nếu nội dung dài) */
.sgth-collapse__inner { overflow: hidden; transition: max-height 0.35s ease; }
.sgth-collapse.is-clamped:not(.is-open) .sgth-collapse__inner {
	max-height: 300px;
	-webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
	        mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.sgth-collapse__toggle {
	width: fit-content;
	margin: 14px auto 0;
	display: flex; align-items: center; gap: 6px;
	padding: 9px 24px;
	background: none;
	border: 2px solid var(--sgth-primary);
	color: var(--sgth-primary);
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.sgth-collapse__toggle:hover { background: var(--sgth-primary); color: #fff; }
.sgth-collapse__toggle::after { /* caret xuống vẽ bằng border, không phụ thuộc icon font */
	content: ""; flex: none;
	width: 7px; height: 7px;
	margin-top: -3px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}
.sgth-collapse.is-open .sgth-collapse__toggle::after { transform: rotate(-135deg); margin-top: 3px; }

/* Tiêu đề sản phẩm – màu đen (đổi var(--sgth-primary) nếu muốn đỏ thương hiệu) */
.single-product .product-title,
.single-product h1.product_title,
.single-product .product-info .product-title { color: var(--sgth-heading); }

/* Giãn vùng hiển thị trang cho cân đối */
.single-product .product-main > .row,
.single-product .related > .row,
.single-product .woocommerce-tabs > .row { max-width: 1200px; }

/* Đồng bộ border cho mọi ảnh sản phẩm (chính + gallery + liên quan) */
.single-product .woocommerce-product-gallery__image img,
.single-product .product-thumbnails img,
.related .box-image img {
	border: 1px solid var(--sgth-line);
	border-radius: 8px;
}
.related .box-image { border-radius: 8px; }

/* Icon chia sẻ – tròn đặc, màu thương hiệu */
.single-product .share-icons a.button,
.single-product .share-icons a.icon {
	background-color: var(--sgth-wood);
	border-color: var(--sgth-wood);
	color: #fff;
}
.single-product .share-icons a.button:hover,
.single-product .share-icons a.icon:hover {
	background-color: var(--sgth-primary);
	border-color: var(--sgth-primary);
	color: #fff;
}

/* Cố định khung ảnh chính (tỉ lệ 4:3) – giữ chỗ sẵn, không nhảy layout
   khi ảnh tải xong hoặc khi đổi ảnh/biến thể */
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image > a {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.single-product .woocommerce-product-gallery__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Popup form báo giá */
.sgth-modal[hidden] { display: none; }
.sgth-modal {
	position: fixed; inset: 0; z-index: 9999;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
}
.sgth-modal__overlay {
	position: absolute; inset: 0;
	background: rgba(26, 11, 4, 0.55);
	backdrop-filter: blur(2px);
}
.sgth-modal__box {
	position: relative; z-index: 1;
	width: 100%; max-width: 440px;
	max-height: 90vh; overflow-y: auto;
	background: #fff; border-radius: 12px;
	padding: 28px 26px 22px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
	animation: sgthModalIn 0.22s ease;
}
@keyframes sgthModalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sgth-modal__close {
	position: absolute; top: 10px; right: 12px;
	width: 34px; height: 34px; padding: 0; line-height: 1;
	border: 0; background: none; cursor: pointer;
	font-size: 28px; color: var(--sgth-muted);
}
.sgth-modal__close:hover { color: var(--sgth-primary); }
.sgth-modal__title { margin: 0 0 4px; color: var(--sgth-primary); font-size: 22px; }
.sgth-modal__sub { margin: 0 0 16px; color: var(--sgth-muted); font-size: 14px; }
.sgth-modal .sgth-qf-row { margin-bottom: 12px; }
.sgth-modal .sgth-qf-row input,
.sgth-modal .sgth-qf-row textarea {
	width: 100%; margin: 0; border-radius: 8px;
}
.sgth-modal .wpcf7-submit {
	width: 100%; margin: 0; min-height: 48px; border-radius: 8px; font-weight: 700;
	background: var(--sgth-primary); border-color: var(--sgth-primary); color: #fff;
}
.sgth-modal .wpcf7-submit:hover { background: var(--sgth-primary-dark); border-color: var(--sgth-primary-dark); }
body.sgth-modal-open { overflow: hidden; }

/* ---------------------------------------------------------------------
 * 5.16) TRANG SHOP / DANH MỤC SẢN PHẨM
 *   - Thẻ trắng tái dùng .feat-products (block 5.8).
 *   - Nút "Nhận báo giá" trên thẻ + sidebar lọc + thanh công cụ.
 * ------------------------------------------------------------------- */
/* Nút "Nhận báo giá" trên thẻ (mô hình báo giá, thay add-to-cart) */
.feat-products .sgth-loop-quote {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	width: 100%; margin: 10px 0 2px; min-height: 40px;
	border-radius: 8px; font-weight: 700; font-size: 13px;
	background: var(--sgth-primary); border-color: var(--sgth-primary); color: #fff;
}
.feat-products .sgth-loop-quote:hover { background: var(--sgth-primary-dark); border-color: var(--sgth-primary-dark); color: #fff; }
.feat-products .sgth-loop-quote i { font-size: 1.05em; }

/* Tiêu đề trang + breadcrumb */
.shop-page-title .page-title-inner .is-larger,
.shop-page-title .page-title-inner h1 { color: var(--sgth-heading); }

/* Thanh công cụ: sắp xếp + đếm kết quả */
.woocommerce-ordering select { border-radius: 8px; }

/* Nút "Xem thêm sản phẩm" (load more AJAX) */
.sgth-loadmore-wrap { text-align: center; margin: 30px 0 6px; }
.sgth-loadmore {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-width: 250px; min-height: 48px; padding: 0 32px;
	background: #fff; border: 2px solid var(--sgth-primary); color: var(--sgth-primary);
	border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.sgth-loadmore::after { /* dấu V (mũi tên xuống) vẽ bằng border */
	content: ""; flex: none; width: 8px; height: 8px; margin-top: -4px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}
.sgth-loadmore:hover { background: var(--sgth-primary); color: #fff; }
.sgth-loadmore.is-loading { opacity: 0.65; cursor: default; }
.sgth-loadmore.is-loading::after { display: none; }

/* Mô tả/giới thiệu danh mục SP (hiện SAU sản phẩm); ẩn khi rỗng */
.sgth-cat-desc:empty { display: none; }
.sgth-cat-desc { margin: 34px 0 6px; padding-top: 22px; border-top: 1px solid var(--sgth-line); color: var(--sgth-text); font-size: 14.5px; line-height: 1.75; }
.sgth-cat-desc > :first-child { margin-top: 0; }
.sgth-cat-desc > :last-child { margin-bottom: 0; }
.sgth-cat-desc p { margin: 0 0 12px; }
.sgth-cat-desc h2, .sgth-cat-desc h3, .sgth-cat-desc h4 { color: var(--sgth-heading); margin: 18px 0 8px; line-height: 1.3; }
.sgth-cat-desc h2 { font-size: 19px; }
.sgth-cat-desc h3 { font-size: 16px; }
.sgth-cat-desc ul, .sgth-cat-desc ol { margin: 0 0 12px; padding-left: 20px; }
.sgth-cat-desc li { margin: 4px 0; }
.sgth-cat-desc a { color: var(--sgth-primary); }
.sgth-cat-desc img { max-width: 100%; height: auto; border-radius: 6px; }

/* Trang kết quả tìm kiếm: tiêu đề + đếm */
.sgth-search-head { margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--sgth-line); }
.sgth-search-title { margin: 0; font-size: 22px; color: var(--sgth-heading); }
.sgth-search-title span { color: var(--sgth-primary); }
.sgth-search-count { margin: 5px 0 0; color: var(--sgth-muted); font-size: 14px; }

/* ---------------------------------------------------------------------
 * 5.19) SEARCH FORM (top bar) + DROPDOWN GỢI Ý LIVE SEARCH
 * ------------------------------------------------------------------- */
#top-bar .ux-search-box { width: 100%; max-width: 400px; margin: 3px 10px 3px auto; }
/* Search nằm nhóm GIỮA (flex-center): cho nhóm giữa giãn full để ô search lấp đầy;
   nhóm trái (chữ KM) + phải (giỏ hàng) co theo nội dung. */
#top-bar .flex-row > .flex-col.flex-left { flex: 0 1 auto; }
#top-bar .flex-row > .flex-col.flex-center { flex: 1 1 auto; min-width: 0; }
#top-bar .flex-row > .flex-col.flex-right { flex: 0 1 auto; }
#top-bar ul.nav-center { width: 100%; flex-wrap: nowrap; margin: 0; }
#top-bar ul.nav-center > li.header-search-form,
#top-bar .header-search-form-wrapper { flex: 1 1 auto; min-width: 0; width: 100%; }
.ux-search-box.is-normal .flex-row { position: relative; align-items: center; }
.ux-search-box.is-normal .search-field {
	width: 100%; height: 28px; margin: 0;
	border: 0; border-radius: 8px;
	background: #fff; padding: 0 16px 0 42px;
	font-size: 13px; color: var(--sgth-text); box-shadow: none;
}
.ux-search-box.is-normal .search-field::placeholder { color: #9a9a9a; }
.ux-search-box.is-normal .search-field:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4); }
/* Kính lúp BÊN TRÁI, phẳng (không nền tròn) */
.ux-search-box.is-normal .flex-row > .flex-col:last-child {
	position: absolute; left: 6px; right: auto; top: 50%; transform: translateY(-50%); padding: 0; z-index: 2;
}
.ux-search-box.is-normal .ux-search-submit {
	width: 28px; height: 28px; min-width: 0; min-height: 0; margin: 0; padding: 0;
	border: 0; background: none; box-shadow: none; color: rgba(0, 0, 0, 0.5);
	display: inline-flex; align-items: center; justify-content: center;
}
.ux-search-box.is-normal .ux-search-submit:hover { background: none; color: var(--sgth-primary); }
.ux-search-box.is-normal .ux-search-submit i { margin: 0; font-size: 15px; }

/* Dropdown gợi ý (Flatsome live search – devbridge autocomplete) */
.autocomplete-suggestions {
	background: #fff; border: 1px solid var(--sgth-line); border-radius: 10px;
	box-shadow: 0 14px 34px rgba(26, 11, 4, 0.16);
	max-height: 64vh; overflow-y: auto;
}
.autocomplete-suggestion {
	display: flex; align-items: center; gap: 12px;
	padding: 9px 14px; cursor: pointer; white-space: normal;
	border-bottom: 1px solid var(--sgth-line);
}
.autocomplete-suggestion:last-child { border-bottom: 0; }
.autocomplete-suggestion .search-image {
	width: 46px; height: 46px; flex: none;
	object-fit: cover; border-radius: 6px; border: 1px solid var(--sgth-line);
}
.autocomplete-suggestion .search-name {
	flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; color: var(--sgth-text);
}
.autocomplete-suggestion .search-name strong { color: var(--sgth-primary); font-weight: 700; }
.autocomplete-suggestion .search-price {
	flex: none; font-weight: 700; font-size: 13.5px; color: var(--sgth-primary); white-space: nowrap;
}
.autocomplete-suggestion.autocomplete-selected,
.autocomplete-suggestion:hover { background: var(--sgth-cream); }
.autocomplete-no-suggestion { padding: 12px 14px; color: var(--sgth-muted); font-size: 13px; }

/* Sidebar lọc (Danh mục + Khoảng giá) */
.shop-sidebar .widget-title span,
.shop-sidebar .widget-title { color: var(--sgth-heading); }
.shop-sidebar .product-categories a { color: var(--sgth-text); }
.shop-sidebar .product-categories a:hover,
.shop-sidebar .product-categories .current-cat > a { color: var(--sgth-primary); }
.shop-sidebar .product-categories li { padding: 5px 0; border-bottom: 1px solid var(--sgth-line); }
.shop-sidebar .product-categories .count { color: var(--sgth-muted); font-size: 12px; }
.shop-sidebar .price_slider_amount .button,
.shop-sidebar .widget_price_filter .button {
	background: var(--sgth-primary); border-color: var(--sgth-primary); color: #fff;
	border-radius: 8px; font-weight: 700;
}
.shop-sidebar .ui-slider .ui-slider-range,
.shop-sidebar .ui-slider .ui-slider-handle { background: var(--sgth-primary); }

/* ---------------------------------------------------------------------
 * 5.17) TRANG SHOP – BỐ CỤC MỚI (full-width): banner + nút danh mục +
 *       thanh tiêu chí (sắp xếp + khoảng giá).
 * ------------------------------------------------------------------- */
/* Ẩn banner tiêu đề mặc định của Flatsome trên shop/danh mục (banner riêng thay) */
.woocommerce-shop .shop-page-title,
.tax-product_cat .shop-page-title { display: none; }

/* 2 banner đầu trang (mỗi cột là 1 slider) */
.sgth-shop-banners { margin: 0 0 22px; }
.sgth-shop-banners .row { margin-bottom: 0; }
/* Ảnh banner luôn phủ kín khung, đúng tỉ lệ (không méo/giãn) ở mọi màn hình */
.sgth-shop-banners .ux-banner-bg,
.sgth-shop-banners .bg { background-size: cover !important; background-position: center !important; }
/* Slide = ẢNH banner: ép tỉ lệ cố định 3:1, cover (không méo, đồng nhất mọi máy) */
.sgth-shop-banners img {
	width: 100%; aspect-ratio: 3 / 1; height: auto;
	object-fit: cover; display: block;
}
/* Bo góc áp cho KHUNG SLIDE (cả slider window), không phải element con bên trong */
.sgth-shop-banners .slider,
.sgth-shop-banners .ux-slider,
.sgth-shop-banners .flickity-viewport { border-radius: 12px; overflow: hidden; }
.sgth-shop-banners .slider { box-shadow: 0 10px 26px rgba(26, 11, 4, 0.18); }
/* Mũi tên banner: slim, không nền tròn (đồng bộ thiết kế site); màu trắng vì nền tối */
.sgth-shop-banners .flickity-prev-next-button { background: transparent !important; box-shadow: none !important; }
.sgth-shop-banners .flickity-prev-next-button :is(.arrow, svg),
.sgth-shop-banners .flickity-prev-next-button:is(:hover, :focus, :active) :is(.arrow, svg) {
	fill: #fff !important; background: transparent !important; border-color: transparent !important;
}
@media (max-width: 549px) {
	.sgth-shop-banners .row > .col { margin-bottom: 12px; }
}
/* Chấm điều hướng → GẠCH NHỎ MẢNH cho TẤT CẢ slider (đỏ active trên nền sáng) */
.flickity-page-dots { line-height: 0; }
.flickity-page-dots .dot {
	width: 18px !important; height: 3px !important; margin: 0 4px;
	border: 0 !important; border-radius: 2px !important; opacity: 1 !important;
	background: rgba(0, 0, 0, 0.2);
	transition: width 0.25s ease, background 0.25s ease;
}
.flickity-page-dots .dot.is-selected { width: 28px !important; background: var(--sgth-primary) !important; }
/* Banner nền tối → gạch trắng */
.sgth-shop-banners .flickity-page-dots .dot { background: rgba(255, 255, 255, 0.5) !important; }
.sgth-shop-banners .flickity-page-dots .dot.is-selected { background: #fff !important; }

/* Hàng nút danh mục (pill) */
.sgth-cat-nav {
	display: flex; flex-wrap: wrap; gap: 10px;
	margin: 0 0 18px; padding-bottom: 18px;
	border-bottom: 1px solid var(--sgth-line);
}
.sgth-cat-btn {
	display: inline-flex; align-items: center;
	padding: 9px 18px; border-radius: 999px;
	background: #fff; border: 1px solid var(--sgth-line);
	color: var(--sgth-text); font-weight: 600; font-size: 14px;
	transition: all 0.2s ease;
}
.sgth-cat-btn:hover { border-color: var(--sgth-wood); color: var(--sgth-wood); }
.sgth-cat-btn.is-active { background: var(--sgth-wood); border-color: var(--sgth-wood); color: #fff; }

/* Thanh "chọn tiêu chí" */
.sgth-criteria { margin: 0 0 20px; }
.sgth-criteria__label {
	display: block; margin-bottom: 8px;
	font-size: 13px; color: var(--sgth-muted); text-transform: uppercase; letter-spacing: 0.5px;
}
.sgth-criteria__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.sgth-crit-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 18px; border-radius: 8px; cursor: pointer;
	background: #fff; border: 1px solid var(--sgth-line);
	color: var(--sgth-text); font-weight: 600; font-size: 14px; white-space: nowrap;
	transition: all 0.2s ease; list-style: none;
}
.sgth-crit-btn:hover { border-color: var(--sgth-primary); color: var(--sgth-primary); }
.sgth-crit-btn.is-active { background: var(--sgth-primary); border-color: var(--sgth-primary); color: #fff; }

/* Dropdown khoảng giá (native <details>) */
.sgth-crit-drop { position: relative; }
.sgth-crit-drop > summary { list-style: none; }
.sgth-crit-drop > summary::-webkit-details-marker { display: none; }
.sgth-crit-drop > summary::after {
	content: ""; width: 7px; height: 7px; margin-left: 2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); margin-top: -3px;
}
.sgth-crit-drop[open] > summary { border-color: var(--sgth-primary); color: var(--sgth-primary); }
.sgth-crit-panel {
	position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
	min-width: 280px; padding: 16px 18px 14px;
	background: #fff; border: 1px solid var(--sgth-line); border-radius: 10px;
	box-shadow: 0 12px 30px rgba(26, 11, 4, 0.14);
}
/* Panel KHÔNG có tiêu đề (Khoảng giá) → chừa chỗ cho nút × */
.sgth-crit-drop:not(.sgth-filter-drop) .sgth-crit-panel { padding-top: 32px; }
/* Tiêu đề popup Bộ lọc */
.sgth-filter-head {
	margin: 0 0 12px; padding-right: 32px;
	font-size: 16px; font-weight: 800; color: var(--sgth-heading);
}
/* Nút × đóng dropdown */
.sgth-crit-close {
	position: absolute; top: 9px; right: 11px; z-index: 4;
	width: 30px; height: 30px; padding: 0; line-height: 1;
	border: 0; background: none; cursor: pointer;
	font-size: 26px; color: var(--sgth-muted);
}
.sgth-crit-close:hover { color: var(--sgth-primary); }
/* Hiệu ứng mở mượt */
.sgth-crit-drop[open] > .sgth-crit-panel { animation: sgthDropIn 0.2s ease; }
@keyframes sgthDropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sgthSheetIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.sgth-crit-panel .price_slider_amount .button,
.sgth-crit-panel .button {
	background: var(--sgth-primary); border-color: var(--sgth-primary); color: #fff;
	border-radius: 8px; font-weight: 700;
}
.sgth-crit-panel .ui-slider .ui-slider-range,
.sgth-crit-panel .ui-slider .ui-slider-handle { background: var(--sgth-primary); }
.sgth-crit-panel .price_label { color: var(--sgth-text); }

/* Bộ lọc KHOẢNG GIÁ tùy biến (mockup): tiêu đề + 2 ô (đ) + thanh trượt 2 đầu đỏ */
.sgth-price-drop .sgth-crit-close { display: none; }
.sgth-price-drop .sgth-crit-panel { padding-top: 16px; }
.sgth-price { width: 320px; max-width: 86vw; }
.sgth-price-title { margin: 0 0 16px; font-size: 15px; font-weight: 800; color: var(--sgth-heading); }
.sgth-price-inputs { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.sgth-price-field { flex: 1; display: flex; align-items: center; height: 42px; padding: 0 12px; border: 1px solid var(--sgth-line); border-radius: 8px; background: #fff; }
.sgth-price-field input { flex: 1; min-width: 0; padding: 0; margin: 0; height: auto; min-height: 0; border: 0; outline: 0; background: none !important; box-shadow: none !important; -webkit-appearance: none; appearance: none; font-size: 14px; text-align: right; color: var(--sgth-heading); }
.sgth-price-field input::placeholder { color: #c2b3a3; opacity: 1; }
.sgth-price-field i { font-style: normal; color: var(--sgth-muted); margin-left: 6px; }
.sgth-price-dash { color: var(--sgth-muted); }
.sgth-price-slider { position: relative; height: 28px; margin: 0 8px 20px; }
.sgth-price-track { position: absolute; left: 0; right: 0; top: 50%; height: 5px; transform: translateY(-50%); background: var(--sgth-line); border-radius: 3px; }
.sgth-price-range { position: absolute; top: 50%; height: 5px; transform: translateY(-50%); background: var(--sgth-primary); border-radius: 3px; }
.sgth-price-r { position: absolute; top: 0; left: 0; width: 100%; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.sgth-price-r:focus { outline: 0; }
.sgth-price-r::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--sgth-primary); box-shadow: 0 1px 4px rgba(0,0,0,.28); cursor: pointer; }
.sgth-price-r::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--sgth-primary); box-shadow: 0 1px 4px rgba(0,0,0,.28); cursor: pointer; }
.sgth-price-r::-webkit-slider-runnable-track { background: none; border: 0; }
.sgth-price-r::-moz-range-track { background: none; border: 0; }
.sgth-price-actions { display: flex; gap: 10px; }
.sgth-price-actions button { flex: 1; height: 44px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid var(--sgth-line); transition: filter .15s; }
.sgth-price-close { background: #fff; color: var(--sgth-heading); }
.sgth-price-apply { background: var(--sgth-primary); border-color: var(--sgth-primary); color: #fff; }
.sgth-price-apply:hover { filter: brightness(1.06); }

/* Panel "Bộ lọc" – form checkbox + accordion từng thuộc tính.
   Flex column: tiêu đề cố định trên, danh sách cuộn giữa, nút "Xem kết quả" đáy. */
.sgth-filter-panel {
	min-width: 460px; max-width: 92vw;
	display: flex; flex-direction: column;
	max-height: 80vh; overflow: hidden;
}
.sgth-filter-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sgth-fgroups {
	display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px;
	overflow-y: auto; min-height: 0; flex: 1;
}
.sgth-fgroup { border-bottom: 1px solid var(--sgth-line); }
.sgth-fgroup > summary {
	list-style: none; cursor: pointer;
	display: flex; align-items: center; justify-content: space-between;
	padding: 9px 0; font-size: 14px; font-weight: 700; color: var(--sgth-heading);
}
.sgth-fgroup > summary::-webkit-details-marker { display: none; }
.sgth-fgroup > summary::after {
	content: ""; flex: none; width: 7px; height: 7px; margin: -3px 0 0 8px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform 0.2s ease;
}
.sgth-fgroup[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.sgth-fopts { list-style: none; margin: 0 0 8px; padding: 0; }
.sgth-fopts li { padding: 2px 0; }
.sgth-fopts label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--sgth-text); }
.sgth-fopts input { margin: 0; flex: none; accent-color: var(--sgth-primary); }
.sgth-fopts em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--sgth-muted); transition: opacity 0.15s ease; }
/* Live count: giá trị 0 (sau khi đã chọn lọc khác) làm mờ; lúc đang đếm hơi nhạt */
.sgth-fopt.is-zero { opacity: 0.4; }
.sgth-filter-form.is-counting .sgth-fopts em { opacity: 0.35; }
.sgth-filter-head { flex: none; }
.sgth-filter-actions {
	flex: none;
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	margin: 12px -18px -14px; padding: 12px 18px;
	background: #fff; border-top: 1px solid var(--sgth-line);
}
.sgth-filter-clear { color: var(--sgth-muted); font-size: 13px; }
.sgth-filter-clear:hover { color: var(--sgth-primary); }
.sgth-filter-apply {
	flex: 1; max-width: 240px; min-height: 44px; margin: 0; border: 0; cursor: pointer;
	background: var(--sgth-primary); color: #fff; border-radius: 8px; font-weight: 700;
}
.sgth-filter-apply:hover { background: var(--sgth-primary-dark); }
/* Mobile: panel dạng bottom-sheet, 1 cột, accordion thu gọn (JS) */
@media (max-width: 767px) {
	.sgth-filter-panel {
		position: fixed; left: 10px; right: 10px; bottom: 10px; top: auto;
		z-index: 99999; min-width: 0; max-height: 85vh;
	}
	.sgth-filter-drop[open] > .sgth-filter-panel { animation: sgthSheetIn 0.28s ease; }
	.sgth-fgroups { grid-template-columns: 1fr; }
	/* Panel KHOẢNG GIÁ cũng dạng bottom-sheet (tránh tràn mép phải trên mobile) */
	.sgth-price-drop .sgth-crit-panel {
		position: fixed; left: 10px; right: 10px; bottom: 10px; top: auto;
		z-index: 99999; min-width: 0; max-height: 85vh; overflow: auto;
	}
	.sgth-price-drop[open] > .sgth-crit-panel { animation: sgthSheetIn 0.28s ease; }
	.sgth-price { width: auto; max-width: none; }
}

@media (max-width: 549px) {
	.sgth-criteria__bar { gap: 8px; }
	.sgth-crit-btn, .sgth-cat-btn { padding: 8px 14px; font-size: 13px; }
	.sgth-crit-panel { min-width: 240px; }
}

/* ---------------------------------------------------------------------
 * 5.18) GIẢM BO GÓC ẢNH TOÀN TRANG (nhẹ hơn, đồng bộ ~một nửa).
 *   Đặt cuối file → cùng độ ưu tiên với rule gốc nhưng thắng nhờ thứ tự.
 * ------------------------------------------------------------------- */
.cat-scroll .box-image { border-radius: 5px; }
.feat-products .box,
.ct-card,
.news-grid .box,
.sgth-shop-banners .slider,
.sgth-shop-banners .ux-slider,
.sgth-shop-banners .flickity-viewport { border-radius: 6px; }
.single-product .woocommerce-product-gallery__image img,
.single-product .product-thumbnails img,
.related .box-image,
.related .box-image img { border-radius: 4px; }

/* ---------------------------------------------------------------------
 * 5.20) CÔNG TRÌNH – archive (lưới) + single (bài viết + sidebar)
 * ------------------------------------------------------------------- */
.sgth-ct-archive-head{padding:30px 0 14px}
.sgth-ct-archive-head .crumb{font-size:13px;color:var(--sgth-muted);margin-bottom:8px}
.sgth-ct-archive-head .crumb a{color:var(--sgth-muted)}
.sgth-ct-archive-head h1{margin:0;font-size:28px;color:var(--sgth-heading)}
.sgth-ct-archive-head p{margin:8px 0 0;color:var(--sgth-muted);max-width:680px}
.sgth-ct-filters{margin-bottom:24px}
/* Bộ lọc CÔNG TRÌNH: nav chữ tối giản, CĂN GIỮA, gạch chân đỏ ở mục đang chọn
   (chỉ áp cho công trình qua body class — không đụng tin tức/sản phẩm) */
.post-type-archive-cong_trinh .sgth-ct-filters,
.tax-loai_cong_trinh .sgth-ct-filters{
	justify-content:center; gap:10px 30px;
	border-bottom:0; padding-bottom:0; margin-bottom:30px;
}
.post-type-archive-cong_trinh .sgth-ct-filters .sgth-cat-btn,
.tax-loai_cong_trinh .sgth-ct-filters .sgth-cat-btn{
	padding:6px 0; background:none; border:0; border-radius:0;
	color:var(--sgth-heading); font-weight:700; font-size:14px;
	text-transform:uppercase; letter-spacing:.6px;
	border-bottom:2px solid transparent; transition:color .2s,border-color .2s;
}
.post-type-archive-cong_trinh .sgth-ct-filters .sgth-cat-btn:hover,
.tax-loai_cong_trinh .sgth-ct-filters .sgth-cat-btn:hover{ color:var(--sgth-primary); }
.post-type-archive-cong_trinh .sgth-ct-filters .sgth-cat-btn.is-active,
.tax-loai_cong_trinh .sgth-ct-filters .sgth-cat-btn.is-active{
	background:none; color:var(--sgth-heading); border-bottom-color:var(--sgth-primary);
}
@media(max-width:549px){
	.post-type-archive-cong_trinh .sgth-ct-filters,
	.tax-loai_cong_trinh .sgth-ct-filters{ gap:8px 18px; }
	.post-type-archive-cong_trinh .sgth-ct-filters .sgth-cat-btn,
	.tax-loai_cong_trinh .sgth-ct-filters .sgth-cat-btn{ font-size:13px; }
}
.sgth-ct-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
@media(max-width:900px){.sgth-ct-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.sgth-ct-grid{grid-template-columns:1fr}}
.sgth-ct-grid .ct-card .ct-overlay{opacity:1;transform:none}
.sgth-ct-grid .ct-thumb .ph{display:block;width:100%;aspect-ratio:16/9;background:linear-gradient(135deg,#8a6a4a,#5c4026)}
/* Khối "liên quan" cuối nội dung single (tin tức + công trình) */
.sgth-related{margin:36px 0 6px}
.sgth-related-title{font-size:20px;color:var(--sgth-heading);margin:0 0 16px;padding-bottom:10px;border-bottom:2px solid var(--sgth-line)}
.sgth-related-grid{gap:18px}
.sgth-related-grid .ct-title{font-family:inherit;font-size:15px;font-weight:600;line-height:1.35}

/* Hiệu ứng xuất hiện mượt cho lưới sau khi lọc/tải (shop + công trình + tin tức) */
@keyframes sgthFadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.sgth-ct-grid>.ct-card,
.feat-products>.product{animation:sgthFadeUp .5s ease both}
.sgth-ct-grid>.ct-card:nth-child(2),.feat-products>.product:nth-child(2){animation-delay:.06s}
.sgth-ct-grid>.ct-card:nth-child(3),.feat-products>.product:nth-child(3){animation-delay:.12s}
.sgth-ct-grid>.ct-card:nth-child(4),.feat-products>.product:nth-child(4){animation-delay:.18s}
.sgth-ct-grid>.ct-card:nth-child(5),.feat-products>.product:nth-child(5){animation-delay:.24s}
.sgth-ct-grid>.ct-card:nth-child(6),.feat-products>.product:nth-child(6){animation-delay:.30s}
.sgth-ct-grid>.ct-card:nth-child(n+7),.feat-products>.product:nth-child(n+7){animation-delay:.34s}
@media(prefers-reduced-motion:reduce){.sgth-ct-grid>.ct-card,.feat-products>.product{animation:none}}
/* Trạng thái đang tải AJAX (mờ lưới trong lúc fetch) */
.sgth-ajax-loading{opacity:.45;pointer-events:none;transition:opacity .2s}

/* ===== Tương tác cuối bài: chia sẻ + đánh giá sao + bình luận ===== */
.sgth-share{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:18px 0 4px;padding-top:14px;border-top:1px solid var(--sgth-line)}
.sgth-share__label{font-weight:700;color:var(--sgth-heading);font-size:13px}
.sgth-share__btn{display:inline-flex;align-items:center;gap:6px;height:30px;min-height:0;margin:0;padding:0 11px;border:0;border-radius:7px;cursor:pointer;font:700 12px/1 inherit;text-transform:none;letter-spacing:0;color:#fff;text-decoration:none;vertical-align:middle;box-shadow:none}
.sgth-share__btn svg{width:15px;height:15px}
.sgth-share__btn.fb{background:#1877f2}
.sgth-share__btn.zalo{background:#0068ff}
.sgth-share__btn.copy{background:var(--sgth-wood)}
.sgth-share__btn:hover{filter:brightness(1.08)}
.sgth-share__btn.copy .ok{display:none}
.sgth-share__btn.copy.is-copied{background:#2e7d32}
.sgth-share__btn.copy.is-copied .txt{display:none}
.sgth-share__btn.copy.is-copied .ok{display:inline}
/* Dải 5 sao */
.sgth-stars{display:inline-flex;color:#e7d9c6;font-size:16px;line-height:1;letter-spacing:1px}
.sgth-stars i{font-style:normal}
.sgth-stars i.on{color:var(--sgth-gold)}
.sgth-stars i.half{position:relative}
.sgth-stars i.half::before{content:"★";position:absolute;left:0;top:0;width:50%;overflow:hidden;color:var(--sgth-gold)}

/* ===== Đánh giá SẢN PHẨM (WooCommerce review) – đồng bộ sao vàng + style ===== */
/* Sao hiển thị trên thẻ shop: viền xám, phần điểm vàng */
.star-rating::before{color:#e0d3c2 !important}
.star-rating span::before{color:var(--sgth-gold) !important}
.feat-products .star-rating,.star-rating--inline{margin:3px 0 5px;font-size:13px}
/* Khối đánh giá trang SẢN PHẨM – 1 hàng kiểu TMĐT (giống widget news): ★ + X/5 + N lượt */
.sgth-prod-rating{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:2px 0 14px;font-size:12.5px;color:var(--sgth-muted)}
.sgth-prod-rating .sgth-stars{font-size:16px}
.sgth-prod-rating .num b{color:var(--sgth-heading);font-size:13px}
.sgth-prod-rating .cnt{color:var(--sgth-muted);text-decoration:none}
.sgth-prod-rating .cnt:hover{color:var(--sgth-primary)}
.sgth-write-review{font-size:12.5px;font-weight:700;color:var(--sgth-primary);text-decoration:none;white-space:nowrap}
.sgth-write-review:hover{text-decoration:underline}
/* Bộ chọn sao trong form review – dựng lại sạch (WC mặc định vỡ layout), 1 hàng vàng */
#reviews p.stars,#reviews p.stars span{display:inline-flex !important;align-items:center;gap:3px;margin:0;position:static !important;width:auto !important;height:auto !important}
#reviews p.stars{margin:6px 0 14px}
#reviews p.stars a{position:static !important;float:none !important;width:auto !important;height:auto !important;margin:0 !important;padding:0 1px !important;font-size:0 !important;line-height:1 !important;text-indent:0 !important;text-decoration:none;overflow:visible !important}
#reviews p.stars a::before{content:"★" !important;display:inline !important;position:static !important;width:auto !important;height:auto !important;font-size:26px !important;line-height:1 !important;color:#e0d3c2;font-family:Arial,"Segoe UI Symbol",sans-serif !important;transition:color .1s}
#reviews p.stars a::after{content:none !important}
#reviews p.stars:hover a::before{color:var(--sgth-gold)}
#reviews p.stars a:hover ~ a::before{color:#e0d3c2}
#reviews p.stars.selected a:not(.active)::before{color:var(--sgth-gold)}
#reviews p.stars.selected a.active::before{color:var(--sgth-gold)}
#reviews p.stars.selected a.active ~ a::before{color:#e0d3c2}
#review_form .comment-reply-title{font-size:16px;font-weight:800;color:var(--sgth-heading)}
#review_form .form-submit input[type="submit"],#reviews input#submit{background:var(--sgth-primary);border-color:var(--sgth-primary);color:#fff;border-radius:8px;font-weight:700}
#reviews .commentlist li.review{margin-bottom:14px}
#reviews .comment_container img.avatar{border-radius:50%}

/* ===================================================================
 * HERO TRANG CHỦ – LUXURY (hybrid: khung UX Builder + hiệu ứng CSS/JS).
 * Section: [section bg=.. bg_overlay="rgba(24,15,9,.82)" dark="true" class="sgth-hero"]
 * Các class gắn qua ô "Class" của element trong UX Builder.
 * =================================================================== */
.sgth-hero .sgth-hero-text{align-self:center}
/* nhãn nhỏ trên tiêu đề */
.sgth-hero .sgth-hero__eyebrow{display:inline-flex;align-items:center;gap:10px;margin:0;color:#e9d9c9;font-size:13px;font-weight:700;letter-spacing:2px;text-transform:uppercase}
.sgth-hero .sgth-hero__eyebrow::before{content:"\2756";color:var(--sgth-gold)}
/* tiêu đề + dòng nhấn gradient vàng */
.sgth-hero h1.sgth-hero__title{color:#f7ecd9;font-size:clamp(2.1rem,4.2vw,3.7rem);line-height:1.2;letter-spacing:-.5px;margin:14px 0 0;text-shadow:0 2px 24px rgba(0,0,0,.4)}
.sgth-hero .sgth-hero__accent{display:inline-block;padding-bottom:.1em;line-height:1.2;background:linear-gradient(100deg,#ffd9a8,#fcb46c 40%,#e0892f);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
.sgth-hero .sgth-hero__sub{margin:16px 0 0;max-width:460px;font-size:16.5px;color:#d6c6b8}
/* nút CTA */
.sgth-hero a.sgth-hero__btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:54px;margin:26px 10px 0 0;padding:0 26px;border-radius:10px;font-weight:700;border:2px solid transparent}
.sgth-hero a.sgth-hero__btn--primary{background:var(--sgth-primary) !important;border-color:var(--sgth-primary) !important;color:#fff !important;box-shadow:0 10px 26px rgba(203,19,19,.3)}
.sgth-hero a.sgth-hero__btn--primary:hover{background:var(--sgth-primary-dark) !important;border-color:var(--sgth-primary-dark) !important}
.sgth-hero a.sgth-hero__btn--primary::before{content:"";width:19px;height:19px;flex:0 0 auto;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center/contain no-repeat}
.sgth-hero a.sgth-hero__btn--ghost{background:transparent !important;border-color:rgba(247,236,217,.42) !important;color:#f7ecd9 !important}
.sgth-hero a.sgth-hero__btn--ghost:hover{background:#f7ecd9 !important;border-color:#f7ecd9 !important;color:var(--sgth-heading) !important}
/* dải số liệu (count-up) */
.sgth-hero .sgth-hero__stats{display:flex;gap:0;margin-top:30px;flex-wrap:wrap;align-items:center}
.sgth-hero .sgth-hero__stat{display:flex;flex-direction:column;padding:0 26px}
.sgth-hero .sgth-hero__stat:first-child{padding-left:0}
.sgth-hero .sgth-hero__stat:not(:last-child){border-right:1px solid rgba(247,236,217,.18)}
.sgth-hero .sgth-hero__num{font-family:'ShopeeDisplay','Be Vietnam Pro',sans-serif;font-weight:800;font-size:33px;color:var(--sgth-gold);line-height:1;font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
.sgth-hero .sgth-hero__stat-label{margin-top:4px;font-size:13px;font-weight:600;color:#c4b3a4}
/* cột ảnh: khung viền vàng matte + thẻ kính nổi */
.sgth-hero .sgth-hero-media .col-inner{position:relative}
.sgth-hero .sgth-hero__img{margin:0;padding:6px;border-radius:24px;background:linear-gradient(135deg,rgba(252,180,108,.7),rgba(118,78,50,.35));box-shadow:0 34px 74px rgba(0,0,0,.55)}
.sgth-hero .sgth-hero__img img{display:block;width:100%;border-radius:18px}
.sgth-hero .sgth-hero__chip{position:absolute;z-index:3;left:-6px;bottom:22px;display:inline-flex;align-items:center;gap:12px;padding:12px 18px;border-radius:14px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.85);box-shadow:0 16px 38px rgba(42,26,16,.24)}
.sgth-hero .sgth-hero__chip .sgth-hero__num{font-size:23px;color:var(--sgth-primary)}
.sgth-hero .sgth-hero__chip-label{font-size:12.5px;font-weight:600;line-height:1.3;color:var(--sgth-text)}
/* wpautop: ẩn <p> rỗng phát sinh quanh các block */
.sgth-hero .sgth-hero-text p:empty{display:none}
@media (max-width:849px){
	/* Ép 2 cột xếp dọc (Flatsome giữ medium-6 ở 550–849px) */
	.sgth-hero .col.sgth-hero-text,
	.sgth-hero .col.sgth-hero-media{width:100% !important;max-width:100% !important;flex:0 0 100% !important}
	.sgth-hero h1.sgth-hero__title{font-size:clamp(1.85rem,7vw,2.55rem)}
	.sgth-hero .sgth-hero__sub{max-width:none}
	/* 3 ô số liệu: chia đều 1 hàng, căn giữa, không wrap */
	.sgth-hero .sgth-hero__stats{flex-wrap:nowrap;gap:0}
	.sgth-hero .sgth-hero__stat{flex:1 1 0;min-width:0;padding:0 6px;text-align:center;align-items:center}
	.sgth-hero .sgth-hero__stat:first-child{padding-left:6px}
	.sgth-hero .sgth-hero__num{font-size:23px}
	.sgth-hero .sgth-hero__stat-label{font-size:11.5px;line-height:1.3}
	.sgth-hero .sgth-hero-media{margin-top:30px;max-width:520px}
	.sgth-hero a.sgth-hero__btn{display:flex;width:100%;margin:14px 0 0}
	.sgth-hero .sgth-hero__chip{left:8px;bottom:14px}
}

/* ===================================================================
 * HIỆU ỨNG CUỘN-HIỆN (reveal) dùng chung – class .sgth-reveal + JS initReveal.
 * Stagger qua biến --rd (transition-delay).
 * =================================================================== */
.sgth-js .sgth-reveal{opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.22,.61,.36,1),transform .7s cubic-bezier(.22,.61,.36,1);transition-delay:var(--rd,0s);will-change:opacity,transform}
.sgth-js .sgth-reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.sgth-reveal{opacity:1 !important;transform:none !important;transition:none}}

/* ===================================================================
 * TRANG GIỚI THIỆU – page 14 dựng bằng UX Builder (sections) + CSS.
 * Class gắn qua ô "Class" của section/col; thẻ nội dung là HTML block.
 * =================================================================== */
/* Full-width: nội dung trang có thể bị bọc .row-main giới hạn ngang */
/* Áp dụng cho Giới thiệu (14) + Liên hệ (17): full-width section, nội dung căn khung 1250px. */
.page-id-14 #content > .row-main,
.page-id-17 #content > .row-main{max-width:100% !important;padding:0 !important}
.page-id-14 #content > .row-main > .col,
.page-id-17 #content > .row-main > .col{padding:0 !important;margin:0}
.page-id-14 #content > .row-main > .col > .col-inner,
.page-id-17 #content > .row-main > .col > .col-inner{padding:0 !important}
/* Nội dung căn giữa khung 1250px (= site_width 1280 − 30) → ĐỒNG BỘ content width trang chủ */
.page-id-14 .section-content > .row,
.page-id-17 .section-content > .row{max-width:1250px;margin-left:auto;margin-right:auto}
/* Khoảng cách giữa các element [ux_text] trong cùng cột.
   CHỈ reset margin TRÊN/DƯỚI (cho gap), GIỮ trái/phải để margin:auto căn giữa được. */
.page-id-14 .col-inner > .text,
.page-id-17 .col-inner > .text{margin-top:0;margin-bottom:0}
.page-id-14 .col-inner > .text + .text,
.page-id-17 .col-inner > .text + .text{margin-top:15px}
.page-id-14 .col-inner > .text + .button,
.page-id-17 .col-inner > .text + .button{margin-top:10px}

/* ===================================================================
 * GIỚI THIỆU v2 (page 14) – ELEMENT RỜI, class ở Advanced (col/element),
 * KHÔNG class trong HTML. Tái dùng .eyebrow/.intro-title/.intro-text/.cta;
 * biến --sgth-*; bo góc 14px + đổ bóng đồng bộ.
 * =================================================================== */
.about-sec{padding:60px 0}
.about-cream{background:var(--sgth-cream)}
.about-sec .sec-sub{color:var(--sgth-muted);font-size:15px}
.about-sec .sec-sub p{max-width:640px;margin:0 auto}
.about-sec h2{margin:8px 0 0}

/* Banner */
.page-banner .crumb,.page-banner .crumb p{margin:0;font-size:13px;color:#d6c6b8}
.page-banner .crumb a{color:var(--sgth-gold)}
.page-banner h1{color:#fff !important;font-size:clamp(2.1rem,4vw,3.2rem);margin:0}
.page-banner .lead,.page-banner .lead p{color:#e6d6c5;max-width:600px;margin:0 auto}
.page-banner br{display:none}

/* 1. Intro */
.intro-media .col-inner{position:relative}
.intro-frame{margin:0;border-radius:14px;overflow:hidden;box-shadow:0 22px 50px rgba(42,26,16,.22)}
.intro-frame img{width:100%;display:block}
.intro-badge{position:absolute;left:-6px;bottom:26px;z-index:3;background:var(--sgth-primary);color:#fff;border-radius:12px;padding:16px 13px;text-align:center;writing-mode:vertical-rl;transform:rotate(180deg);box-shadow:0 14px 30px rgba(203,19,19,.32)}
.intro-badge b{font-family:'ShopeeDisplay';font-size:30px;font-weight:800;display:block;line-height:1}
.intro-badge span{font-size:11.5px;letter-spacing:2px}
/* checklist: list chữ thuần, dấu check vẽ bằng CSS (không nhét SVG vào HTML) */
.intro-checks ul{list-style:none;margin:4px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:11px 22px}
.intro-checks li{position:relative;padding-left:28px;font-size:14.5px;font-weight:600;color:var(--sgth-heading)}
.intro-checks li::before{content:"";position:absolute;left:0;top:1px;width:19px;height:19px;background:var(--sgth-primary);-webkit-mask: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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E") center/contain no-repeat;mask: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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E") center/contain no-repeat}

/* 2. Feature cards – styling trên COL; icon/tiêu đề/mô tả là element rời */
.feat-card .col-inner{position:relative;z-index:0;overflow:hidden;height:100%;background:#fff;border:1px solid var(--sgth-line);border-radius:14px;padding:26px;transition:box-shadow .3s,border-color .3s}
/* Hover: màu đỏ thương hiệu LAN DẦN từ tâm thẻ (ellipse phình to phủ kín) */
.feat-card .col-inner::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(135deg,var(--sgth-primary),var(--sgth-primary-dark));border-radius:50%;transform:scale(0);transform-origin:center;transition:transform .55s cubic-bezier(.45,0,.2,1),border-radius .55s ease}
.feat-card:hover .col-inner{border-color:transparent;box-shadow:0 22px 46px rgba(203,19,19,.28)}
.feat-card:hover .col-inner::before{transform:scale(1.6);border-radius:0}
.feat-card .col-inner > .text{margin-top:0}
.feat-card .col-inner > .text:nth-child(2){margin-top:14px}   /* icon → tiêu đề */
.feat-card .col-inner > .text:nth-child(3){margin-top:7px}    /* tiêu đề → mô tả */
.feat-ic{width:54px;height:54px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fdecec,#f7c9c9);color:var(--sgth-primary);transition:background .35s,color .35s}
.feat-card h3{font-size:17px;font-weight:800;margin:0;color:var(--sgth-heading);transition:color .35s}
.feat-card p{font-size:14px;color:var(--sgth-muted);margin:0;transition:color .35s}
/* Khi đỏ đã trải kín: icon + chữ chuyển trắng cho nổi */
.feat-card:hover .feat-ic{background:rgba(255,255,255,.18);color:#fff}
.feat-card:hover h3{color:#fff}
.feat-card:hover p{color:rgba(255,255,255,.9)}

/* 3. Awards / chứng nhận */
.awards-num{font-family:'ShopeeDisplay';font-weight:800;font-size:78px;line-height:1;color:var(--sgth-heading)}
.awards-num p{margin:0}            /* khử margin <p> mặc định */
.awards-num br{display:none}        /* khử <br> thừa (wpautop) đẩy khối lệch lên */
.awards-num sup{color:var(--sgth-primary);font-size:44px}
.awards-num small{display:block;font-family:'Be Vietnam Pro';font-size:15px;font-weight:600;color:var(--sgth-muted);margin-top:6px}
.award-badge{margin:0;border:1px solid var(--sgth-line);border-radius:14px;min-height:92px;display:flex;align-items:center;justify-content:center;background:#fff}
.award-badge img{max-height:52px;width:auto;filter:grayscale(1);opacity:.55;transition:.25s}
.award-badge:hover img{filter:none;opacity:1}

/* 4. Stats band (đỏ) – element rời */
.stats-band{background:linear-gradient(120deg,#d11717,#9c0f0f)}
.stat .col-inner{text-align:center}
.stat .col-inner > .text{margin-top:0}
.stat .col-inner > .text + .text{margin-top:8px}
.stat-ic{width:56px;height:56px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.14)}
/* Icon (stat + feat): khử <p>/<br> wpautop bọc svg → svg block, căn giữa đúng tâm */
.stat-ic p,.feat-ic p{margin:0;line-height:0}
.stat-ic br,.feat-ic br{display:none}
.stat-ic svg,.feat-ic svg{display:block}
.stat-num,.stat-num span{font-family:'ShopeeDisplay';font-weight:800;font-size:40px;color:#fff;line-height:1;font-variant-numeric:tabular-nums}
.stat-label{color:#ffd9d9;font-size:14px;font-weight:600}

/* 5. Team – element rời (ux_image + ux_text) */
.team-card{text-align:center}
.team-card .col-inner > .text{margin-top:0}
.team-card .col-inner > .img + .text{margin-top:14px}
.team-card .col-inner > .text + .text{margin-top:2px}
.team-photo{margin:0;border-radius:14px;overflow:hidden;box-shadow:0 14px 34px rgba(42,26,16,.14)}
.team-photo img{width:100%;display:block;aspect-ratio:1/1.12;object-fit:cover}
.team-name h3{font-size:17px;font-weight:700;-webkit-text-stroke:0;margin:0;color:var(--sgth-heading)}
.team-role,.team-role p{font-size:13.5px;color:var(--sgth-primary);font-weight:600;margin:0}

/* 6. News – dùng section [blog_posts] news-grid của trang chủ (style ở block 5.11), không CSS riêng */

/* Stagger reveal theo cột (v2) */
.feat-cards .col:nth-child(2),.team-grid .col:nth-child(2),.stats-band .col:nth-child(2),.award-badges .col:nth-child(2){--rd:.1s}
.feat-cards .col:nth-child(3),.team-grid .col:nth-child(3),.stats-band .col:nth-child(3){--rd:.2s}
.stats-band .col:nth-child(4),.team-grid .col:nth-child(4),.feat-cards .col:nth-child(4){--rd:.3s}

@media (max-width:849px){
	.intro-checks ul{grid-template-columns:1fr}
	.about-sec{padding:44px 0}
}

.sgth-ct-layout{display:grid;grid-template-columns:1fr 320px;gap:34px;align-items:start;margin:26px 0 44px}
@media(max-width:900px){.sgth-ct-layout{grid-template-columns:1fr}}
.sgth-ct-crumb{font-size:13px;color:var(--sgth-muted);margin:0 0 12px}
.sgth-ct-crumb a{color:var(--sgth-muted)}
.sgth-ct-crumb a:hover{color:var(--sgth-primary)}
.sgth-ct-crumb .cur{color:var(--sgth-heading)}
.sgth-ct-title{font-size:26px;color:var(--sgth-heading);line-height:1.35;margin:0 0 8px}
.sgth-ct-meta{display:flex;gap:18px;color:var(--sgth-muted);font-size:13px;margin-bottom:16px}
.sgth-ct-hero{display:block;border-radius:8px;overflow:hidden;margin-bottom:10px;cursor:zoom-in}
.sgth-ct-hero img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block} /* cố định tỉ lệ, ảnh khác kích thước vẫn đều */
.sgth-news-hero{cursor:default;margin-bottom:22px} /* tin tức: ảnh tiêu đề, không gallery */
.sgth-ct-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:22px}
.sgth-ct-thumbs a{display:block;border-radius:6px;overflow:hidden;position:relative;cursor:pointer}
.sgth-ct-thumbs a:nth-child(n+5){display:none} /* chỉ hiện 4 thumb đầu */
.sgth-ct-thumbs a img{transition:opacity .2s}
.sgth-ct-thumbs a:not(.is-active):not(.has-more) img{opacity:.62}
.sgth-ct-thumbs a:hover img{opacity:1}
.sgth-ct-thumbs a.is-active::before{content:"";position:absolute;inset:0;z-index:2;border:3px solid var(--sgth-primary);border-radius:6px;pointer-events:none}
/* Lightbox gallery công trình (xem hết ảnh, ◄ ►) */
.sgth-lightbox{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.88);padding:30px}
.sgth-lightbox.open{display:flex}
.sgth-lightbox img{max-width:90%;max-height:88vh;border-radius:6px;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.sgth-lb-close{position:absolute;top:16px;right:24px;color:#fff;font-size:40px;line-height:1;cursor:pointer;z-index:2}
.sgth-lb-close:hover{color:var(--sgth-gold)}
.sgth-lb-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:22px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2}
.sgth-lb-nav:hover{background:rgba(255,255,255,.32)}
.sgth-lb-nav.prev{left:18px}
.sgth-lb-nav.next{right:18px}
.sgth-lb-counter{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);color:#fff;font-size:14px;background:rgba(0,0,0,.45);padding:4px 14px;border-radius:999px}
.sgth-lightbox.single .sgth-lb-nav,.sgth-lightbox.single .sgth-lb-counter{display:none}
@media(max-width:560px){.sgth-lb-nav{width:40px;height:40px;font-size:18px}.sgth-lb-nav.prev{left:8px}.sgth-lb-nav.next{right:8px}}

/* ---------------------------------------------------------------------
 * 5.20) MENU MOBILE (off-canvas #main-menu) – đồng bộ font Shopee như menu PC
 *       + trang trí: header (wordmark + đóng), item, submenu kem, footer CTA.
 * ------------------------------------------------------------------- */
/* FONT: ShopeeDisplay giống menu PC; BỎ ép IN HOA (chữ thường, Hoa đầu). */
#main-menu,
#main-menu .nav-sidebar a,
#main-menu .sgth-mmenu-logo,
#main-menu .sgth-mmenu-cta,
#main-menu .sgth-mmenu-hotline,
#main-menu input.search-field {
	font-family: 'ShopeeDisplay', 'Be Vietnam Pro', -apple-system, 'Segoe UI', sans-serif !important;
}
#main-menu .nav-sidebar,
#main-menu .nav-sidebar a { text-transform: none !important; letter-spacing: 0 !important; }

/* Panel: cột dọc để footer nằm đáy, vùng menu giữa cuộn được. */
#main-menu.mobile-sidebar { display: flex; flex-direction: column; padding: 0; }
#main-menu .sidebar-menu { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0; }
.sgth-mmenu-head, .sgth-mmenu-foot { flex: 0 0 auto; }

/* HEADER panel: nền đỏ thương hiệu + wordmark + nút đóng tròn. */
.sgth-mmenu-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 15px 18px; background: var(--sgth-primary);
}
.sgth-mmenu-logo {
	color: #fff; font-weight: 800; font-size: 17px; line-height: 1.15;
	text-transform: uppercase; letter-spacing: .4px;
}
.sgth-mmenu-logo:hover { color: #fff; opacity: .92; }
.sgth-mmenu-close.mfp-close {
	position: static; flex: none; width: 36px; height: 36px; margin: 0; padding: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 26px; line-height: 1; color: #fff; opacity: 1;
	background: rgba(255, 255, 255, 0.16); border: 0; border-radius: 50%; cursor: pointer;
}
.sgth-mmenu-close.mfp-close:hover { background: rgba(255, 255, 255, 0.3); }

/* SEARCH (mục đầu của menu) – thoáng hơn. */
#main-menu .header-search-form { padding: 14px 16px 8px; }
#main-menu .header-search-form::after { display: none; } /* bỏ divider của Flatsome */

/* ITEMS chính. */
#main-menu .nav-sidebar { padding: 4px 0; }
#main-menu .nav-sidebar > li { border: 0; }
#main-menu .nav-sidebar > li > a {
	display: block; position: relative;
	padding: 13px 18px; font-size: 15px; font-weight: 600;
	color: var(--sgth-text); border-bottom: 1px solid var(--sgth-line);
}
#main-menu .nav-sidebar > li > a:hover { background: var(--sgth-cream); color: var(--sgth-primary); }
/* Trang hiện tại = đỏ + thanh dọc trái. */
#main-menu .nav-sidebar > li.active > a,
#main-menu .nav-sidebar > li.current-menu-item > a,
#main-menu .nav-sidebar > li.current-menu-parent > a {
	color: var(--sgth-primary); font-weight: 700; background: var(--sgth-cream);
}
#main-menu .nav-sidebar > li.active > a::before,
#main-menu .nav-sidebar > li.current-menu-item > a::before,
#main-menu .nav-sidebar > li.current-menu-parent > a::before {
	content: ""; position: absolute; left: 0; top: 9px; bottom: 9px;
	width: 3px; background: var(--sgth-primary); border-radius: 0 3px 3px 0;
}
/* Nút xổ submenu. */
#main-menu .nav-sidebar .toggle { color: var(--sgth-muted); }
#main-menu .nav-sidebar > li.active .toggle,
#main-menu .nav-sidebar > li:hover .toggle { color: var(--sgth-primary); }

/* SUBMENU (Sản phẩm) – nền kem, thụt vào, chữ nhỏ + chấm đầu dòng. */
#main-menu .nav-sidebar ul { background: var(--sgth-cream-2); }
#main-menu .nav-sidebar ul li a {
	padding: 11px 18px 11px 34px; font-size: 14px; font-weight: 500;
	color: var(--sgth-muted); border-bottom: 1px solid rgba(118, 78, 50, 0.08);
	position: relative;
}
#main-menu .nav-sidebar ul li a::before {
	content: ""; position: absolute; left: 20px; top: 50%; width: 5px; height: 5px;
	margin-top: -2px; border-radius: 50%; background: var(--sgth-wood-soft);
}
#main-menu .nav-sidebar ul li a:hover { color: var(--sgth-primary); }
#main-menu .nav-sidebar ul li a:hover::before { background: var(--sgth-primary); }

/* FOOTER panel: hotline + nút Nhận báo giá. */
.sgth-mmenu-foot {
	padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--sgth-line); background: #fff;
	display: flex; flex-direction: column; gap: 10px;
}
.sgth-mmenu-hotline {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	font-size: 18px; font-weight: 800; color: var(--sgth-primary);
}
.sgth-mmenu-hotline i { font-size: 17px; }
.sgth-mmenu-hotline:hover { color: var(--sgth-primary-dark); }
.sgth-mmenu-cta {
	display: block; text-align: center; padding: 12px 14px; border-radius: 8px;
	background: var(--sgth-primary); color: #fff !important; font-weight: 700;
	text-transform: uppercase; letter-spacing: .4px;
}
.sgth-mmenu-cta:hover { background: var(--sgth-primary-dark); color: #fff !important; }
.sgth-ct-thumbs img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:16/11}
.sgth-ct-thumbs a.has-more::after{content:attr(data-more);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:6px;background:rgba(26,11,4,.55);color:#fff;font-size:14px;font-weight:300;letter-spacing:.3px;line-height:1.3}

/* Gallery SẢN PHẨM (dùng lại bố cục công trình) – hero + thumbnail tỉ lệ 4:3 */
.single-product .sgth-pg-gallery .sgth-ct-hero img { aspect-ratio: 4 / 3; }
.single-product .sgth-pg-gallery .sgth-ct-thumbs img { aspect-ratio: 4 / 3; }
.single-product .sgth-pg-gallery .sgth-ct-hero--empty { cursor: default; border: 1px solid var(--sgth-line); border-radius: 8px; }
.single-product .sgth-pg-gallery { margin-bottom: 0; }

.sgth-ct-info-head{background:var(--sgth-text);color:#fff;text-align:center;padding:10px;border-radius:8px 8px 0 0}
.sgth-ct-info-head .lbl{color:var(--sgth-gold);font-size:13px;text-transform:uppercase;letter-spacing:.5px}
.sgth-ct-info-head .nm{font-size:14px;font-weight:600;margin-top:2px}
.sgth-ct-info-bar{display:grid;gap:2px;background:var(--sgth-line);border-radius:0 0 8px 8px;overflow:hidden;margin-bottom:26px}
.sgth-ct-info-bar .cell{background:var(--sgth-primary);color:#fff;padding:14px 12px;display:flex;gap:10px;align-items:center}
.sgth-ct-info-bar .ic{flex:none;color:#fff;display:flex;align-items:center}
.sgth-ct-info-bar .ic svg{width:24px;height:24px;display:block}
.sgth-ct-info-bar .kv{display:flex;flex-direction:column}
.sgth-ct-info-bar .k{font-size:11px;opacity:.85;text-transform:uppercase}
.sgth-ct-info-bar .v{font-size:13px;font-weight:700;line-height:1.25}
@media(max-width:760px){.sgth-ct-info-bar{grid-template-columns:1fr!important}}

.sgth-ct-content h2{font-size:20px;color:var(--sgth-heading);margin:26px 0 12px}
.sgth-ct-content img{max-width:100%;height:auto;border-radius:8px;margin:8px 0}
.sgth-ct-content p{margin:0 0 14px}
/* Caption ảnh: ép width:auto để không tràn/vỡ layout (override style="width:Npx" của WP) */
.sgth-ct-content figure,
.sgth-ct-content .wp-caption{max-width:100%!important;width:auto!important;height:auto;margin:14px 0}
.sgth-ct-content figcaption,
.sgth-ct-content .wp-caption-text{font-size:13px;color:var(--sgth-muted);font-style:italic;text-align:center;padding:6px 8px;margin:0}
.sgth-ct-content .aligncenter{margin-left:auto;margin-right:auto;display:block}
.sgth-ct-content .alignleft{float:left;margin:6px 18px 12px 0;max-width:50%}
.sgth-ct-content .alignright{float:right;margin:6px 0 12px 18px;max-width:50%}
.sgth-ct-content{overflow-wrap:break-word}

/* Form CTA giữa bài */
/* Dải CTA sang trọng: tiêu đề gọn ở trên, 2 ô nhập + nút trên CÙNG MỘT HÀNG */
.sgth-ct-ctaform{margin:22px 0;border:1px solid #a30f0f;border-radius:12px;
	background:linear-gradient(135deg,var(--sgth-primary) 0%,#a30f0f 100%);
	box-shadow:0 8px 22px rgba(203,19,19,.28);
	display:flex;flex-direction:column;gap:8px;padding:12px 16px 12px 18px;position:relative;overflow:hidden}
.sgth-ct-ctaform::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,var(--sgth-gold),#fff)}
.sgth-ct-ctaform .bar{flex:0 0 auto}
.sgth-ct-ctaform .bar h3{margin:0;font-size:15px;line-height:1.2;color:#fff;font-weight:800}
.sgth-ct-ctaform .bar p{margin:1px 0 0;font-size:12px;color:rgba(255,255,255,.88)}
.sgth-ct-ctaform .body{flex:1 1 auto;min-width:0;display:flex;align-items:center}
.sgth-ct-ctaform .wpcf7-form{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;width:100%;align-items:center}
.sgth-ct-ctaform .sgth-ctf-row{margin:0;min-width:0;display:flex;align-items:center}
.sgth-ct-ctaform .sgth-ctf-row p{margin:0;width:100%;display:flex;align-items:center}
.sgth-ct-ctaform .wpcf7-spinner{display:none}
/* Ẩn field "Công trình" (p trần) + fieldset hidden để không chiếm ô lưới */
.sgth-ct-ctaform .hidden-fields-container,
.sgth-ct-ctaform .wpcf7-form>p{display:none}
.sgth-ct-ctaform input{height:40px;width:100%;border:1px solid #e6d4bf;border-radius:9px;padding:0 13px;margin:0;background:#fff;font-size:13.5px;transition:border-color .2s,box-shadow .2s}
.sgth-ct-ctaform input:focus{border-color:var(--sgth-primary);box-shadow:0 0 0 3px rgba(203,19,19,.12);outline:0}
.sgth-ct-ctaform input::placeholder{color:#b9a892}
.sgth-ct-ctaform .wpcf7-submit{height:40px;width:100%;padding:0 24px;border:0;border-radius:9px;cursor:pointer;
	background:#fff;color:var(--sgth-primary);font-weight:800;font-size:13.5px;
	letter-spacing:.3px;white-space:nowrap;box-shadow:0 5px 14px rgba(0,0,0,.18);transition:transform .15s,box-shadow .15s,background .15s,color .15s}
.sgth-ct-ctaform .wpcf7-submit:hover{background:var(--sgth-gold);color:#7a0a0a;transform:translateY(-1px);box-shadow:0 8px 20px rgba(0,0,0,.24)}
.sgth-ct-ctaform .wpcf7-response-output{grid-column:1/-1;margin:4px 0 0;font-size:13px;color:#fff}
@media(max-width:680px){
	.sgth-ct-ctaform .wpcf7-form{grid-template-columns:1fr}
}

/* Sidebar công trình */
.sgth-side-title{margin:0 0 14px;font-size:16px;font-weight:800;color:var(--sgth-primary);text-transform:uppercase;border-bottom:2px solid var(--sgth-primary);padding-bottom:6px}
.sgth-ct-pop{display:flex;flex-direction:column;gap:12px;margin-bottom:24px}
.sgth-ct-pop a{position:relative;display:block;border-radius:8px;overflow:hidden}
.sgth-ct-pop img,.sgth-ct-pop .ph{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:linear-gradient(135deg,#8a6a4a,#5c4026)}
.sgth-ct-pop .cap{position:absolute;left:0;right:0;bottom:0;padding:12px;color:#fff;font-size:13px;font-weight:600;line-height:1.35;background:linear-gradient(to top,rgba(26,11,4,.92),rgba(26,11,4,0));transition:color .2s ease}
/* Hover "Xem nhiều" */
.sgth-ct-pop a{transition:box-shadow .25s ease,transform .25s ease}
.sgth-ct-pop a img{transition:transform .4s ease}
.sgth-ct-pop a:hover{box-shadow:0 8px 20px rgba(26,11,4,.18);transform:translateY(-2px)}
.sgth-ct-pop a:hover img{transform:scale(1.08)}
.sgth-ct-pop a:hover .cap{color:var(--sgth-gold)}
.sgth-ct-advisor{display:block;border:1px solid var(--sgth-line);border-radius:10px;overflow:hidden;text-align:center;text-decoration:none}
.sgth-ct-advisor .ph{display:flex;align-items:center;justify-content:center;aspect-ratio:3/2;font-size:42px;background:var(--sgth-cream)}
.sgth-ct-advisor img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block}
/* Sản phẩm gợi ý (sidebar công trình) – thẻ card */
.sgth-ct-prods{display:flex;flex-direction:column;gap:10px;margin-bottom:24px}
.sgth-ct-prods a{
	display:flex;gap:12px;align-items:center;padding:8px;
	border:1px solid var(--sgth-line);border-radius:10px;background:#fff;text-decoration:none;
	transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.sgth-ct-prods a:hover{border-color:var(--sgth-primary);box-shadow:0 6px 16px rgba(203,19,19,.10);transform:translateX(2px)}
.sgth-ct-prods .img-wrap{width:64px;height:64px;border-radius:8px;overflow:hidden;flex:none}
.sgth-ct-prods img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.sgth-ct-prods a:hover img{transform:scale(1.09)}
.sgth-ct-prods .info{min-width:0}
.sgth-ct-prods .nm{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;font-weight:600;color:var(--sgth-text);line-height:1.35}
.sgth-ct-prods a:hover .nm{color:var(--sgth-primary)}
.sgth-ct-prods .pr{display:block;font-size:14px;font-weight:800;color:var(--sgth-primary);margin-top:4px}
.sgth-ct-prods .pr del{color:var(--sgth-muted);font-weight:400;font-size:11px;margin-right:4px}
.sgth-ct-prods .pr ins{text-decoration:none}
/* Sidebar dính khi cuộn (đến hết bài) */
.sgth-ct-side{position:sticky;top:90px;align-self:start}
@media(max-width:900px){.sgth-ct-side{position:static;top:auto}}
.sgth-ct-advisor .lbl{display:block;padding:12px;color:var(--sgth-primary);font-weight:800;font-size:17px}

