/* =========================================================
   GCB theme – CSS chung (header, footer, trang, nút).
   CSS của từng khối trang chủ nằm trong blocks/<tên>/style.css.
   Màu & font: theme.json (biến --wp--preset--color--*).
   ========================================================= */

:root {
	--gcb-green: #006600;
	--gcb-green-2: #2f7d32;
	--gcb-lime: #d4ff6f;
	--gcb-lime-2: #7fc805;
	--gcb-ink: #1f2421;
	--gcb-muted: #6b7280;
	--gcb-soft: #f6f6f6;
	--gcb-line: #e7ebe4;
	--gcb-footer: #00241a;
	--gcb-footer-text: #c7ffae;
	--gcb-radius: 20px;
	--gcb-maxw: 1320px;
	--gcb-top-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; } /* bỏ lớp xám/xanh phủ lên link, nút khi chạm trên điện thoại */
body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gcb-green); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gcb-green); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.gcb-skip:focus {
	clip: auto; width: auto; height: auto;
	z-index: 100000; top: 8px; left: 8px;
	padding: 10px 16px; background: #fff; border-radius: 8px;
}

.gcb-container { width: 100%; max-width: var(--gcb-maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Nút ---------- */
.gcb-btn,
.wp-element-button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--gcb-green);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 12px 28px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.gcb-btn:hover, .wp-element-button:hover { background: #1b651c; color: #fff; transform: translateY(-2px); }
.gcb-btn--lg { padding: 15px 54px; font-size: 16px; }
.gcb-btn--ghost { background: transparent; color: var(--gcb-green); box-shadow: inset 0 0 0 1.5px var(--gcb-green); }
.gcb-btn--ghost:hover { background: var(--gcb-green); color: #fff; }

/* ---------- Logo chữ GIAYCHANBET.vn ---------- */
.gcb-logo { display: inline-flex; align-items: center; gap: 2px; color: #111; line-height: 1; }
.gcb-logo:hover { color: #111; }
.gcb-logo__text {
	position: relative;
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -.02em;
	padding-bottom: 12px;
}
.gcb-logo__tld {
	position: absolute;
	right: 0;
	bottom: 0;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
}
.gcb-logo__foot { width: 26px; height: 46px; color: #54bf00; margin-left: 2px; }
/* Logo SVG (inc/template-tags.php → gcb_logo): cao 46px, rộng theo tỉ lệ 571.93 : 141.39 */
.gcb-logo__svg { display: block; height: 46px; width: auto; aspect-ratio: 571.93 / 141.39; }
.gcb-logo__mark { fill: var(--gcb-logo-mark, #006600); }
.gcb-logo--light { --gcb-logo-mark: var(--gcb-footer-text); }
.gcb-logo__img { display: block; max-height: 52px; width: auto; }
.gcb-logo--light, .gcb-logo--light:hover, .gcb-footer .gcb-logo--light, .gcb-footer .gcb-logo--light:hover { color: #fff; }
.gcb-logo--light .gcb-logo__foot { color: var(--gcb-footer-text); }

/* ---------- Thanh thông báo + header (dính trên cùng) ---------- */
.gcb-sticky-top {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 900;
	background: #fff;
	transition: box-shadow .2s, transform .4s cubic-bezier(.16, 1, .3, 1);
}
@media (max-width: 600px) {
	/* Thanh admin ở điện thoại không dính -> header dính sát mép trên */
	.gcb-sticky-top { top: 0; }
}

.gcb-topbar { background: var(--gcb-green); color: #fff; font-size: 13px; }
.gcb-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 38px;
	padding: 6px 16px;
	color: #fff;
}
a.gcb-topbar__inner:hover { color: #fff; text-decoration: underline; }
.gcb-topbar__icon { width: 20px; height: 20px; flex: 0 0 auto; }
/* Nhiều thông báo: chồng lên nhau trong 1 ô lưới (không đổi chiều cao), dòng mới trượt lên thay dòng cũ */
.gcb-topbar { overflow: hidden; }
.gcb-topbar__track { display: grid; }
.gcb-topbar__track > .gcb-topbar__inner { grid-area: 1 / 1; transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .4s; }
.gcb-topbar__track > .gcb-topbar__inner:not(.is-active) { opacity: 0; transform: translateY(100%); visibility: hidden; pointer-events: none; }
.gcb-topbar__track > .gcb-topbar__inner.is-leaving { transform: translateY(-100%); visibility: visible; }
@media (prefers-reduced-motion: reduce) { .gcb-topbar__track > .gcb-topbar__inner { transition: opacity .3s; transform: none !important; } }

.gcb-header { background: #fff; }
.gcb-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 80px;
	gap: 20px;
}
.gcb-header__brand { justify-self: start; }
.gcb-header__actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.gcb-header__burger { display: none; }

.gcb-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 44px; }
.gcb-menu > li { position: relative; }
.gcb-menu > li > a {
	display: block;
	padding: 8px 0;
	font-size: 15px;
	font-weight: 500;
	text-transform: uppercase;
	color: #111;
	letter-spacing: .01em;
}
.gcb-menu > li > a:hover,
.gcb-menu > .current-menu-item > a,
.gcb-menu > .current-menu-ancestor > a { color: var(--gcb-green); }
/* Menu con */
.gcb-menu .sub-menu {
	list-style: none;
	position: absolute;
	top: 100%;
	left: -18px;
	min-width: 220px;
	margin: 0;
	padding: 10px 0;
	background: #fff;
	border-radius: 14px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: .18s;
}
.gcb-menu li:hover > .sub-menu,
.gcb-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.gcb-menu .sub-menu a { display: block; padding: 8px 18px; font-size: 14px; }

.gcb-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	color: #111;
}
.gcb-icon-btn svg { width: 22px; height: 22px; }
.gcb-icon-btn .gcb-cart-ic { width: 21px; height: 21px; }
.gcb-cart-count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--gcb-green);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.gcb-cart-count.is-empty { display: none; }

/* ---------- Header đè lên banner ảnh (như laviem.vn) ----------
   body.gcb-overlay-header (inc/template-tags.php → gcb_overlay_header_mode): banner đầu trang kéo lên nằm dưới header.
   html.gcb-hdr-over (đang ở đầu trang; main.js bỏ khi cuộn xuống): header trong suốt nổi khối nhờ bóng đổ,
   logo / menu / icon trắng. Cuộn xuống = header trắng bình thường. --gcb-header-h do main.js đo, đây là số dự phòng. */
:root { --gcb-header-h: 80px; }
@media (max-width: 1024px) { :root { --gcb-header-h: 60px; } }
body.gcb-overlay-header:not(.gcb-overlay-header--desktop) .gcb-main { margin-top: calc(-1 * var(--gcb-header-h)); }
@media (min-width: 769px) { body.gcb-overlay-header--desktop .gcb-main { margin-top: calc(-1 * var(--gcb-header-h)); } }

.gcb-header { transition: background-color .3s, box-shadow .3s; }
.gcb-menu > li > a, .gcb-icon-btn, .gcb-logo { transition: color .3s, text-shadow .3s; }
html.gcb-hdr-over .gcb-sticky-top { background: transparent; box-shadow: none; }
/* Nền trong suốt hẳn (không phủ tối / làm mờ banner), nổi khối chỉ nhờ bóng đổ dưới thanh như laviem.vn */
html.gcb-hdr-over .gcb-header { background: transparent; box-shadow: 0 4px 4px rgba(0, 0, 0, .25); }
html.gcb-hdr-over .gcb-menu > li > a,
html.gcb-hdr-over .gcb-icon-btn,
html.gcb-hdr-over .gcb-logo,
html.gcb-hdr-over .gcb-logo:hover { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
html.gcb-hdr-over .gcb-menu > li > a:hover,
html.gcb-hdr-over .gcb-menu > .current-menu-item > a,
html.gcb-hdr-over .gcb-menu > .current-menu-ancestor > a { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
html.gcb-hdr-over .gcb-menu .sub-menu a { color: #111; text-shadow: none; }
html.gcb-hdr-over .gcb-logo { --gcb-logo-mark: #fff; }
html.gcb-hdr-over .gcb-logo__svg, html.gcb-hdr-over .gcb-icon-btn svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
html.gcb-hdr-over .gcb-logo__img { filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
html.gcb-hdr-over .gcb-header__burger span { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }

/* Banner mỏng (Cửa hàng / danh mục): khung cao thêm đúng bằng header -> phần ảnh lộ ra dưới header vẫn như cũ */
.gcb-overlay-header .gcb-shop-hero { aspect-ratio: auto; min-height: calc(100vw / (var(--gcb-hero-ar, 4500 / 688)) + var(--gcb-header-h)); }
.gcb-overlay-header .gcb-shop-hero__inner { padding-top: calc(24px + var(--gcb-header-h)); }
@media (max-width: 768px) {
	body.gcb-overlay-header:not(.gcb-overlay-header--desktop) .gcb-shop-hero { min-height: calc(150px + var(--gcb-header-h)); }
	body.gcb-overlay-header:not(.gcb-overlay-header--desktop) .gcb-shop-hero__inner { padding-top: calc(16px + var(--gcb-header-h)); }
	/* danh mục “nền pastel” trên điện thoại: header thường, banner như cũ */
	.gcb-overlay-header--desktop .gcb-shop-hero { min-height: 0; }
	.gcb-overlay-header--desktop .gcb-shop-hero__inner { padding-top: 16px; }
}

/* ---------- Tìm kiếm (lớp phủ) ---------- */
.gcb-search {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 36, 26, .45);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: calc(var(--gcb-top-h) + 20px) 16px 16px;
	opacity: 0;
	transition: opacity .2s;
}
.gcb-search[hidden] { display: none; }
.gcb-search.is-open { opacity: 1; }
.gcb-search__wrap { width: 100%; max-width: 760px; }
.gcb-search__row { display: flex; align-items: center; gap: 10px; }
.gcb-search__box { flex: 1 1 auto; min-width: 0; background: #fff; border-radius: 999px; padding: 6px; }
.gcb-search__box form { display: flex; align-items: center; gap: 8px; margin: 0; }
.gcb-search__box input[type=search] {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	font: inherit;
	font-size: 16px;
	padding: 10px 16px;
	background: transparent;
}
.gcb-search__box input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.gcb-search__box .gcb-btn { flex: none; }
.gcb-search__close { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #111; cursor: pointer; }
.gcb-search__close:hover { color: var(--gcb-green); }
/* Kết quả gõ tới đâu hiện tới đó */
.gcb-search__results { margin-top: 10px; max-height: calc(100vh - var(--gcb-top-h, 0px) - 120px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border-radius: 20px; background: #fff; }
.gcb-search__results[hidden] { display: none; }
.gcb-search__list { margin: 0; padding: 0; list-style: none; }
.gcb-search__item a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--gcb-ink); }
.gcb-search__item a:hover, .gcb-search__item a:focus-visible, .gcb-search__item.is-active a { background: #f3f6f1; color: var(--gcb-ink); }
.gcb-search__item img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--gcb-soft); }
.gcb-search__name { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcb-search__name mark { background: none; color: var(--gcb-green); font-weight: 700; }
.gcb-search__price { display: block; margin-top: 2px; font-size: 14px; font-weight: 800; color: #111; }
.gcb-search__price del { margin-left: 6px; font-weight: 400; font-size: 12.5px; color: #8a8f8b; }
.gcb-search__more { display: block; margin: 6px 4px 2px; padding: 12px; border-radius: 999px; background: var(--gcb-green); color: #fff; font-size: 14px; font-weight: 700; text-align: center; }
.gcb-search__more:hover { color: #fff; background: var(--gcb-green-2); }
.gcb-search__empty, .gcb-search__loading { margin: 0; padding: 14px 12px; font-size: 14px; color: var(--gcb-muted); }
@media (max-width: 700px) {
	/* điện thoại: ô tìm kiếm sát đầu màn hình (che header), kết quả dài hết phần còn lại */
	.gcb-search { z-index: 1215; padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px 10px; }
	.gcb-search__results { max-height: calc(100vh - 86px); max-height: calc(100dvh - 86px - env(safe-area-inset-top, 0px)); }
	.admin-bar .gcb-search { padding-top: 56px; } /* chỉ khi đăng nhập admin: chừa thanh quản trị */
	.gcb-search__row { gap: 8px; }
	.gcb-search__box { padding: 5px; }
	.gcb-search__box input[type=search] { padding: 9px 12px; }
	.gcb-search__box .gcb-btn { padding: 0 18px; min-height: 42px; }
	.gcb-search__close { width: 44px; height: 44px; }
	.gcb-search__item img { width: 50px; height: 50px; }
}

/* ---------- Menu điện thoại (kiểu FERRONI) ----------
   Tấm trắng phủ màn hình ngay dưới thanh thông báo (--gcb-bar-h, main.js đặt), mờ dần hiện ra;
   hàng đầu trùng header: ✕ đúng chỗ nút ☰, logo giữa. Các mục chữ in hoa lần lượt hiện từ trên xuống,
   đóng thì thu lên lần lượt từ dưới lên. */
.gcb-drawer {
	--dr-i: 0;
	position: fixed; left: 0; right: 0; bottom: 0; top: var(--gcb-bar-h, 0px); z-index: 1210;
	display: flex; flex-direction: column;
	background: #fff; color: #111;
	overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none;
	opacity: 0; visibility: hidden;
	transition: opacity .3s ease .16s, visibility 0s .46s;
}
.gcb-drawer::-webkit-scrollbar { display: none; }
.gcb-drawer[hidden] { display: none; }
.gcb-drawer.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.gcb-drawer__head { flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 60px; padding: 0 6px; }
.gcb-drawer__close { justify-self: start; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #111; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gcb-drawer__logo .gcb-logo__text { font-size: 18px; padding-bottom: 10px; }
.gcb-drawer__logo .gcb-logo__tld { font-size: 10px; }
.gcb-drawer__logo .gcb-logo__foot { width: 20px; height: 36px; }
.gcb-drawer__logo .gcb-logo__svg { height: 36px; }
.gcb-drawer__nav { padding: 18px 24px 0; }
.gcb-menu--drawer { flex-direction: column; align-items: stretch; gap: 0; }
.gcb-menu--drawer > li { border: 0; }
.gcb-menu--drawer > li > a { display: block; padding: 14px 0; font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; color: #111; }
.gcb-menu--drawer > li > a:active { opacity: .55; }
.gcb-menu--drawer > li.current-menu-item > a, .gcb-menu--drawer > li.current-menu-ancestor > a { color: var(--gcb-green); }
.gcb-menu--drawer .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 8px 2px; min-width: 0; background: none; }
.gcb-menu--drawer .sub-menu a { display: block; padding: 8px 0; font-size: 15px; font-weight: 500; color: #444; text-transform: none; }
.gcb-drawer__help { margin-top: auto; padding: 32px 24px 0; }
.gcb-drawer__help-text { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; font-weight: 600; text-transform: uppercase; color: #111; }
.gcb-drawer__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.gcb-drawer__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.gcb-drawer__btn:active { opacity: .7; }
.gcb-drawer__btn--solid { background: var(--gcb-green); color: #fff; }
.gcb-drawer__btn--solid:hover { color: #fff; }
.gcb-drawer__btn--ghost { border: 1px solid #cfcfcf; background: #fff; color: #111; }
.gcb-drawer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding: 18px 24px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e3e3e3; font-size: 13.5px; color: var(--gcb-muted); }
.gcb-drawer__foot .gcb-social { margin: 0; }
/* Hiệu ứng từng dòng: mở = trên xuống, đóng = dưới lên (độ trễ đặt ở 2 nơi) */
.gcb-menu--drawer > li, .gcb-drawer__help, .gcb-drawer__foot { opacity: 0; transform: translateY(-10px); transition: opacity .22s ease, transform .22s ease; }
.gcb-menu--drawer > li { transition-delay: calc((5 - var(--dr-i, 0)) * 28ms); }
.gcb-drawer.is-open .gcb-menu--drawer > li { opacity: 1; transform: none; transition-delay: calc(70ms + var(--dr-i, 0) * 45ms); }
.gcb-drawer.is-open .gcb-drawer__help { opacity: 1; transform: none; transition-delay: .34s; }
.gcb-drawer.is-open .gcb-drawer__foot { opacity: 1; transform: none; transition-delay: .38s; }
@media (prefers-reduced-motion: reduce) {
	.gcb-drawer, .gcb-menu--drawer > li, .gcb-drawer__help, .gcb-drawer__foot { transition: none !important; }
}
@media (min-width: 1025px) { .gcb-drawer { display: none !important; } }

@media (max-width: 1024px) {
	.gcb-nav { display: none; }
	/* 3 cột bằng nhau: menu sát trái · logo đúng giữa · tìm kiếm + giỏ sát phải */
	.gcb-header__inner { grid-template-columns: 1fr auto 1fr; min-height: 60px; gap: 8px; padding-left: 6px; padding-right: 6px; }
	.gcb-header__brand { justify-self: center; }
	.gcb-header__burger { justify-self: start; }
	.gcb-header__burger {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 40px;
		height: 40px;
		padding: 0 8px;
		border: 0;
		background: none;
		cursor: pointer;
	}
	.gcb-header__burger span { display: block; height: 2px; background: #111; border-radius: 2px; }
	.gcb-header__actions { gap: 0; }
	.gcb-logo__text { font-size: 18px; padding-bottom: 10px; }
	.gcb-logo__tld { font-size: 10px; }
	.gcb-logo__foot { width: 20px; height: 36px; }
	.gcb-logo__svg { height: 36px; }
	.gcb-topbar { font-size: 12px; }
	.gcb-topbar__inner { min-height: 30px; padding: 4px 12px; }
}

/* ---------- Nội dung chung ---------- */
.gcb-main { display: block; min-height: 40vh; }
.gcb-page, .gcb-archive, .gcb-single, .gcb-404, .gcb-shop { padding-top: 40px; padding-bottom: 70px; }
/* Điện thoại: breadcrumb sát header hơn (40px -> 14px) */
@media (max-width: 700px) {
	.gcb-page, .gcb-archive, .gcb-single, .gcb-404, .gcb-shop { padding-top: 14px; }
}
.gcb-page-head { margin-bottom: 28px; }
.gcb-page-title { font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; line-height: 1.2; margin: 0; text-transform: none; }
.gcb-page-desc { color: var(--gcb-muted); margin-top: 8px; }
.gcb-entry { max-width: 860px; }
.gcb-entry > * + * { margin-top: 1em; }
.gcb-entry h2 { font-size: 26px; margin-top: 1.6em; }
.gcb-entry h3 { font-size: 21px; margin-top: 1.4em; }
.gcb-entry img { border-radius: 14px; }
.gcb-entry a { color: var(--gcb-green); text-decoration: underline; text-underline-offset: 3px; }
.gcb-single { max-width: 900px; }
.gcb-single__cat a { color: var(--gcb-green); font-weight: 600; font-size: 14px; text-transform: uppercase; }
.gcb-single__meta { color: var(--gcb-muted); font-size: 14px; margin-top: 10px; }
.gcb-single__thumb { margin: 0 0 28px; }
.gcb-single__thumb img { width: 100%; border-radius: var(--gcb-radius); }
.gcb-404 { text-align: center; }
.gcb-404 p:last-child { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gcb-empty { color: var(--gcb-muted); }

/* Trang dựng bằng khối (trang chủ): không lề, khối tự lo khoảng cách */
.gcb-content--landing > * { margin-top: 0; margin-bottom: 0; }
.gcb-content--landing > .alignfull { width: 100%; max-width: none; }
.gcb-content--landing > :not(.alignfull):not([class*="wp-block-gcb-"]) { max-width: var(--gcb-maxw); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* ---------- Thẻ bài viết ---------- */
.gcb-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gcb-post-card { background: #fff; border-radius: var(--gcb-radius); padding: 12px 12px 26px; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--gcb-line); }
.gcb-knowledge .gcb-post-card { box-shadow: none; }
.gcb-post-card__pic { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--gcb-soft); }
.gcb-post-card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gcb-post-card:hover .gcb-post-card__pic img { transform: scale(1.04); }
.gcb-post-card__noimg { display: block; width: 100%; height: 100%; }
.gcb-post-card__body { padding: 16px 6px 0; display: flex; flex-direction: column; flex: 1; }
.gcb-post-card__meta { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 11.5px; color: var(--gcb-muted); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 12px; }
.gcb-post-card__meta span { display: inline-flex; align-items: center; gap: 7px; }
.gcb-post-card__meta span + span { margin-left: auto; } /* ngày tháng dạt sang góc phải */
.gcb-post-card__meta svg { width: 14px; height: 14px; color: #a2a8a3; }
.gcb-post-card__title { font-size: 18px; line-height: 1.45; font-weight: 700; margin: 0 0 18px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.gcb-post-card__title a { color: #1f2421; }
.gcb-post-card__more { margin-top: auto; font-size: 14px; font-weight: 500; }
@media (max-width: 900px) { .gcb-post-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 560px) { .gcb-post-grid { grid-template-columns: 1fr; } }

.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--gcb-soft); font-weight: 600; }
.page-numbers.current { background: var(--gcb-green); color: #fff; }

/* ---------- Footer ---------- */
.gcb-footer { background: var(--gcb-footer); color: var(--gcb-footer-text); padding: 72px 0 0; font-size: 15px; }
.gcb-has-newsletter .gcb-footer { padding-top: 150px; }
.gcb-footer a { color: var(--gcb-footer-text); }
.gcb-footer a:hover { color: #fff; }
.gcb-footer__grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
	gap: 40px;
	padding-bottom: 48px;
}
.gcb-footer__address { margin: 22px 0 18px; }
.gcb-footer__map {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 22px;
	border: 1px solid var(--gcb-footer-text);
	border-radius: 999px;
	font-size: 14px;
}
.gcb-footer__map-icon { width: 11px; height: 16px; }
.gcb-social { display: flex; gap: 22px; margin-top: 22px; align-items: center; }
.gcb-social__link { display: inline-flex; }
.gcb-social__icon { height: 24px; width: auto; }
.gcb-footer__title { color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; margin: 22px 0 22px; }
.gcb-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gcb-footer__contact { display: grid; gap: 18px; align-content: start; justify-items: end; }
.gcb-contact-box {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	max-width: 270px;
	padding: 14px 22px;
	border: 1px solid var(--gcb-footer-text);
	border-radius: 16px;
	transition: background .2s;
}
.gcb-contact-box:hover { background: rgba(199, 255, 174, .08); }
.gcb-contact-box__icon { width: 30px; height: 30px; flex: 0 0 auto; }
.gcb-contact-box__text { display: flex; flex-direction: column; line-height: 1.3; }
.gcb-contact-box__text strong { color: #fff; font-size: 24px; font-weight: 600; }
.gcb-contact-box__text small { font-size: 14px; }
.gcb-footer__bottom {
	border-top: 1px solid rgba(199, 255, 174, .15);
	padding: 22px 0 26px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	font-size: 14px;
	opacity: .9;
}
.gcb-footer__legal p { margin: 0; }
.gcb-footer__legal p + p { margin-top: 6px; }
.gcb-footer__biz a { color: inherit; }
.gcb-footer__bct img { max-height: 56px; width: auto; }

@media (max-width: 1024px) {
	.gcb-footer__grid { grid-template-columns: 1fr 1fr; }
	.gcb-footer__contact { justify-items: start; }
}
@media (max-width: 600px) {
	.gcb-footer { padding-top: 48px; }
	.gcb-has-newsletter .gcb-footer { padding-top: 120px; }
	.gcb-footer__grid { grid-template-columns: 1fr; gap: 8px; }
	.gcb-footer__title { margin: 22px 0 12px; }
	.gcb-footer__contact { margin-top: 20px; }
	.gcb-contact-box { max-width: none; }
	.gcb-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Khối trang chủ – phần dùng chung (tiêu đề khối, lưới, slider)
   ========================================================= */
.gcb-sec { padding: 72px 0; margin-block: 0; }
.gcb-sec--soft { background: var(--gcb-soft); }
.gcb-sec__head { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 36px; }
.gcb-sec__head--split { justify-content: space-between; }
.gcb-sec__title {
	margin: 0;
	font-size: clamp(24px, 2.3vw, 36px);
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	color: #111;
	letter-spacing: -.01em;
}
.gcb-sec__sub { margin: 6px 0 0; font-size: clamp(15px, 1.1vw, 18px); color: #222; }
@media (max-width: 600px) {
	.gcb-sec { padding: 48px 0; }
	.gcb-sec__head { margin-bottom: 22px; gap: 14px; }
}

/* Nút tròn ‹ › (slider) */
.gcb-round-btn {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #333;
	transition: opacity .2s, transform .2s;
}
.gcb-round-btn svg { width: 20px; height: 20px; }
.gcb-round-btn:hover { transform: scale(1.06); color: var(--gcb-green); }
.gcb-round-btn:disabled { opacity: .35; cursor: default; transform: none; }

/* Slider (assets/js/slider.js) */
.gcb-slider { position: relative; }
.gcb-slider__track {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	overflow-y: hidden; /* chỉ trượt ngang, không bao giờ cuộn dọc bên trong slider */
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}
.gcb-slider__track::-webkit-scrollbar { display: none; }
.gcb-slider__slide { flex: 0 0 auto; scroll-snap-align: start; }
.gcb-slider.is-centered .gcb-slider__slide { scroll-snap-align: center; }
.gcb-slider__dots { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 26px; }
.gcb-slider__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: var(--gcb-lime-2);
	cursor: pointer;
	position: relative;
}
.gcb-slider__dot.is-active { background: var(--gcb-green-2); }
.gcb-slider__dot.is-active::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 1.5px solid var(--gcb-green-2);
}
.gcb-slider__progress { height: 6px; border-radius: 6px; background: #ececec; margin-top: 34px; overflow: hidden; }
.gcb-slider__progress > span { display: block; height: 100%; width: 50%; background: var(--gcb-lime-2); border-radius: 6px; transition: width .25s ease; }

/* =========================================================
   Thẻ sản phẩm (template-parts/card-product.php)
   ========================================================= */
.gcb-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.gcb-products.is-loading { opacity: .45; pointer-events: none; transition: opacity .2s; }
@media (max-width: 1024px) { .gcb-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .gcb-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } }

.gcb-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.gcb-card__media { position: relative; border-radius: var(--gcb-radius); background: var(--gcb-soft); overflow: hidden; aspect-ratio: 3 / 4; }
.gcb-card__img-link { position: relative; display: block; width: 100%; height: 100%; }
/* Ảnh tràn viền 3:4 */
/* Mạnh hơn “.woocommerce ul.products li.product a img { height: auto }” (0,3,4) của WooCommerce ở trang Cửa hàng /
   danh mục — ảnh thẻ khác tỉ lệ 3:4 (vd 745×865) vẫn phủ kín khung */
.gcb-card .gcb-card__media .gcb-card__img-link img.gcb-card__img, .gcb-card__img { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; transition: transform .45s ease, opacity .35s ease; }
.gcb-card__media:hover .gcb-card__img { transform: scale(1.03); }
/* Ảnh khi rê chuột (máy tính): chỉ khi rê vào KHUNG ẢNH — rê vào tên, giá, ô màu vẫn giữ ảnh 1
   (rê ô màu = ảnh 1 của màu đó, main.js) */
.gcb-card__img--hover { opacity: 0; }
@media (hover: hover) {
	.gcb-card.has-hover .gcb-card__media:hover .gcb-card__img--hover { opacity: 1; }
	.gcb-card.has-hover .gcb-card__media:hover .gcb-card__img:not(.gcb-card__img--hover) { opacity: 0; }
}
.gcb-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	min-width: 48px;
	min-height: 22px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	background: #67ad54;
	color: #fff;
	pointer-events: none;
}
.gcb-card__badge svg { width: 11px; height: 11px; }
.gcb-card__badge--flash { background: var(--gcb-lime); color: #1f2421; }


.gcb-card__swrow { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; }
.gcb-card__swatches { display: flex; flex: 1 1 auto; min-width: 0; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
/* Ô “+N” (còn N màu bị khuất) — bấm để cuộn hàng màu tới cuối; ở cuối thành “‹” (main.js) */
.gcb-card__more { flex: none; display: grid; place-items: center; min-width: 36px; height: 38px; padding: 0 6px; border: 1px solid var(--gcb-line); border-radius: 8px; background: #fff; color: #444; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s; }
.gcb-card__more:hover { border-color: var(--gcb-green-2); color: var(--gcb-green-2); }
.gcb-card__more[hidden] { display: none; }
.gcb-card__swatches::-webkit-scrollbar { display: none; }
/* Ô màu: ảnh vuông đặt vào ô dẹt 68×38 (object-fit: cover) -> xén khoảng trắng trên / dưới, giày to theo bề ngang.
   Giày chiếm 72–85% bề ngang ảnh gốc (đo 24 ảnh, 29/09/2026) -> chỉ phóng thêm 1.08 để không mất mũi / gót
   (trước đây scale 1.35 / 1.45 làm mất 2 bên giày). */
.gcb-card__swatch { flex: 0 0 auto; display: block; width: 68px; padding-bottom: 6px; border-bottom: 2px solid transparent; overflow: hidden; }
.gcb-card__swatch img {
	display: block;
	width: 68px;
	height: 38px;
	object-fit: cover;
	object-position: 50% 55%;
	mix-blend-mode: multiply;
	transform: scale(1.08);
	transition: transform .2s;
}
.gcb-card__swatch:hover img { transform: translateY(-2px) scale(1.08); }
.gcb-card__swatch.is-active { border-bottom-color: var(--gcb-green-2); }
/* Trang Cửa hàng / danh mục: CSS WooCommerce (ul.products li.product a img { height: auto; margin: 0 0 1em })
   làm ô màu thành hình vuông -> giữ đúng khung ngang như trang chủ */
.woocommerce ul.products li.product .gcb-card__swatch img { width: 68px; height: 38px; margin: 0; object-fit: cover; object-position: 50% 55%; }
.gcb-card__title { margin: 10px 0 4px; font-size: 15px; font-weight: 500; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcb-card__title a { color: #1f2421; }
.gcb-card__title a:hover { color: var(--gcb-green); }
.gcb-price { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.gcb-price__now { font-size: 19px; font-weight: 800; color: #111; }
.gcb-price__now small { font-size: 12px; font-weight: 500; color: var(--gcb-muted); }
.gcb-price__off { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--gcb-green); color: #fff; font-size: 12px; font-weight: 700; }
.gcb-price__was { color: #8a8f8b; font-size: 13px; }
@media (max-width: 700px) {
	.gcb-card__swatches { gap: 6px; }
	.gcb-card__more { min-width: 30px; height: 29px; padding: 0 4px; font-size: 12px; border-radius: 6px; }
	.gcb-card__swatch { width: 49px; } /* 3 ô vừa thẻ 161px ở màn 375px: 3×49 + 2×6 = 159 */
	.gcb-card__swatch img, .woocommerce ul.products li.product .gcb-card__swatch img { width: 49px; height: 29px; }
	.gcb-card__title { font-size: 14px; }
	.gcb-price__now { font-size: 16px; }
}

/* Trang Cửa hàng / danh mục dùng cùng lưới */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 0; }
@media (max-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } }

/* Ô lọc dạng viên thuốc (khối Lưới sản phẩm) */
.gcb-pill-select { position: relative; display: inline-flex; align-items: center; }
.gcb-pill-select select {
	appearance: none;
	-webkit-appearance: none;
	min-width: 170px;
	padding: 12px 64px 12px 36px;
	border: 1.5px solid #e2e2e2;
	border-radius: 999px;
	background: #fff;
	color: var(--gcb-green);
	font: inherit;
	font-size: 19px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
}
.gcb-pill-select__arrow {
	position: absolute;
	right: 4px;
	top: 4px;
	bottom: 4px;
	width: 40px;
	border-radius: 50%;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #777;
	pointer-events: none;
}
.gcb-pill-select__arrow svg { width: 18px; height: 18px; }
/* Ô lọc tự vẽ (blocks/luoi-san-pham/view.js) */
.gcb-pill-select__btn {
	display: inline-flex; align-items: center; gap: 14px;
	min-width: 170px; padding: 4px 4px 4px 22px;
	border: 1.5px solid #e2e2e2; border-radius: 999px; background: #fff;
	color: var(--gcb-green); font: inherit; font-size: 19px; line-height: 1; font-weight: 600; text-transform: uppercase;
	cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.gcb-pill-select__btn:hover, .gcb-pill-select.is-open .gcb-pill-select__btn { border-color: var(--gcb-green); }
.gcb-pill-select__val { flex: 1; text-align: center; white-space: nowrap; }
.gcb-pill-select.is-custom .gcb-pill-select__arrow { position: static; width: 40px; height: 40px; flex: none; transition: transform .25s, background .2s, color .2s; }
.gcb-pill-select.is-open .gcb-pill-select__arrow { transform: rotate(180deg); background: var(--gcb-green); color: #fff; }
.gcb-pill-select__menu {
	position: absolute; left: 0; top: calc(100% + 8px); z-index: 20;
	min-width: 100%; margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid var(--gcb-line); border-radius: 18px;
	opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left;
	transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.gcb-pill-select__menu:focus { outline: none; }
.gcb-pill-select.is-open .gcb-pill-select__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.gcb-pill-select__menu li {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 11px 14px 11px 18px; border-radius: 12px;
	font-size: 15px; font-weight: 600; text-transform: uppercase; color: var(--gcb-ink); white-space: nowrap; cursor: pointer;
	transition: background .15s, color .15s;
}
.gcb-pill-select__menu li.is-focus { background: var(--gcb-soft); }
.gcb-pill-select__menu li.is-selected { color: var(--gcb-green); background: #eef6ee; }
.gcb-pill-select__menu li svg { width: 18px; height: 18px; flex: none; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.gcb-pill-select__menu li.is-selected svg { opacity: 1; transform: none; }
.gcb-grid-block__more { text-align: center; margin: 40px 0 0; }
.gcb-link-more { font-weight: 600; color: var(--gcb-green); white-space: nowrap; }

/* Carousel “Sản phẩm bán chạy”: 4 thẻ/màn (máy tính), 2,2 thẻ (điện thoại) */
.gcb-carousel .gcb-slider__track { gap: 28px; }
.gcb-carousel__slide { width: calc((100% - 3 * 28px) / 4); }
@media (max-width: 1024px) { .gcb-carousel__slide { width: calc((100% - 2 * 20px) / 3); } .gcb-carousel .gcb-slider__track { gap: 20px; } }
@media (max-width: 700px) { .gcb-carousel__slide { width: 44%; } .gcb-carousel .gcb-slider__track { gap: 14px; } }

/* =========================================================
   Nút thêm nhanh trên thẻ + popup chọn màu/size + thông báo
   (assets/js/quick-add.js – làm theo xixa.vn)
   ========================================================= */
.gcb-qa {
	position: absolute;
	z-index: 3;
	right: 10px;
	bottom: 10px;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .3);
	-webkit-backdrop-filter: blur(9px) saturate(150%);
	backdrop-filter: blur(9px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, .55);
	color: #1f2421;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: transform .16s ease, background .16s ease, color .16s ease;
}
.gcb-qa__ic {
	width: 22px;
	height: 22px;
	display: block;
	background: currentColor;
	-webkit-mask: url("../icons/cart-plus.svg") no-repeat center / contain;
	mask: url("../icons/cart-plus.svg") no-repeat center / contain;
}
.gcb-qa:hover { background: rgba(255, 255, 255, .88); color: var(--gcb-green); transform: scale(1.08); }
.gcb-qa:active { transform: scale(.96); }
@media (max-width: 700px) {
	.gcb-qa { right: 8px; bottom: 8px; width: 36px; height: 36px; }
	.gcb-qa__ic { width: 19px; height: 19px; }
}

.gcb-qa-modal { position: fixed; inset: 0; z-index: 11000; }
.gcb-qa-modal[hidden] { display: none; }
.gcb-qa-backdrop { position: absolute; inset: 0; background: rgba(20, 32, 18, .48); opacity: 0; transition: opacity .22s ease; }
.gcb-qa-modal.open .gcb-qa-backdrop { opacity: 1; }
.gcb-qa-sheet {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -46%) scale(.97);
	width: min(460px, calc(100vw - 32px));
	max-height: min(86vh, 720px);
	overflow-y: auto;
	background: #fff;
	border-radius: 22px;
	padding: 22px;
	opacity: 0;
	transition: opacity .22s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}
.gcb-qa-modal.open .gcb-qa-sheet { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gcb-qa-grab { display: none; }
.gcb-qa-close {
	position: absolute; top: 14px; right: 14px;
	width: 34px; height: 34px; padding: 0;
	border: 0; border-radius: 50%;
	background: #f2f4f0; color: #465244;
	display: grid; place-items: center; cursor: pointer;
}
.gcb-qa-close svg { width: 16px; height: 16px; }
.gcb-qa-close:hover { background: #e6f4d2; color: var(--gcb-green); }
.gcb-qa-head { display: flex; gap: 14px; align-items: flex-start; padding-right: 40px; }
.gcb-qa-thumb { width: 96px; aspect-ratio: 3 / 4; flex: 0 0 auto; border-radius: 14px; overflow: hidden; background: #f4f6f3; }
.gcb-qa-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcb-qa-headinfo { min-width: 0; padding-top: 2px; }
.gcb-qa-name { font-size: 16px; font-weight: 800; color: #2c3a2d; line-height: 1.35; overflow-wrap: anywhere; }
.gcb-qa-price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.gcb-qa-price b { font-size: 19px; font-weight: 800; color: var(--gcb-green); }
.gcb-qa-price del { font-size: 13px; color: #9aa39b; }
.gcb-qa-picked { margin-top: 6px; font-size: 13px; color: #6b7280; }
.gcb-qa-body { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.gcb-qa-group[hidden] { display: none; }
.gcb-qa-label { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #7a857a; margin-bottom: 9px; }
.gcb-qa-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gcb-qa-colors { display: flex; flex-wrap: wrap; gap: 9px; }
.gcb-qa-color {
	width: 52px; aspect-ratio: 1 / 1; padding: 2px;
	border: 2px solid #e6e9e3; border-radius: 11px;
	background: #fff; overflow: hidden; cursor: pointer;
	transition: border-color .15s, transform .15s;
}
.gcb-qa-color img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; transform: scale(1.25); }
.gcb-qa-color:hover { transform: translateY(-2px); }
.gcb-qa-color.on { border-color: var(--gcb-green); }
.gcb-qa-guide-btn {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 0; border: 0; background: none;
	font: inherit; font-size: 12.5px; font-weight: 700;
	color: var(--gcb-green); text-transform: none; letter-spacing: 0;
	cursor: pointer; text-decoration: underline;
}
.gcb-qa-guide-btn svg { width: 15px; height: 15px; }
.gcb-qa-guide { margin-top: 12px; padding: 13px 14px; border: 1px solid #e6ece0; border-radius: 12px; background: #f7faf4; }
.gcb-qa-guide[hidden] { display: none; }
.gcb-qa-guide-head { font-size: 12.5px; line-height: 1.5; color: #5b665a; }
.gcb-qa-guide-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.gcb-qa-guide-table th, .gcb-qa-guide-table td { padding: 7px 8px; text-align: left; border-bottom: 1px solid #e6ece0; }
.gcb-qa-guide-table th { font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #7a857a; }
.gcb-qa-guide-table td:first-child { font-weight: 800; width: 78px; }
.gcb-qa-guide-table tr:last-child td { border-bottom: 0; }
.gcb-qa-guide-note { margin-top: 9px; font-size: 12px; line-height: 1.5; color: #7a857a; }
.gcb-qa-sizes { display: flex; flex-wrap: wrap; gap: 9px; }
.gcb-qa-size {
	min-width: 54px; height: 42px; padding: 0 14px;
	border: 1.5px solid #e2e6df; border-radius: 999px;
	background: #fff; color: #2c3a2d;
	font: inherit; font-size: 14.5px; font-weight: 700;
	cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.gcb-qa-size:hover { border-color: var(--gcb-green); color: var(--gcb-green); }
.gcb-qa-size.on { background: var(--gcb-green); border-color: var(--gcb-green); color: #fff; }
.gcb-qa-size:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.gcb-qa-error { margin: 0; color: #b32d2e; font-size: 13px; }
.gcb-qa-foot { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.gcb-qa-qty { display: inline-flex; align-items: center; height: 50px; border: 1px solid #e2e6df; border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.gcb-qa-qty button { width: 44px; height: 100%; border: 0; background: transparent; color: #3f4a3d; font: inherit; font-size: 19px; line-height: 1; cursor: pointer; }
.gcb-qa-qty button:hover { background: #e6f4d2; color: var(--gcb-green); }
.gcb-qa-qty span { min-width: 30px; text-align: center; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gcb-qa-add {
	flex: 1 1 auto; height: 50px;
	border: 0; border-radius: 999px;
	background: var(--gcb-green); color: #fff;
	font: inherit; font-size: 15.5px; font-weight: 800;
	cursor: pointer; transition: background .15s, transform .12s;
}
.gcb-qa-add:hover { background: #1b651c; }
.gcb-qa-add:disabled { background: #b9c4b8; cursor: not-allowed; }
@media (max-width: 640px) {
	.gcb-qa-sheet {
		left: 0; top: auto; bottom: 0;
		width: 100%;
		max-height: 88vh;
		transform: translateY(14px);
		border-radius: 22px 22px 0 0;
		padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
	}
	.gcb-qa-modal.open .gcb-qa-sheet { transform: translateY(0); }
	.gcb-qa-grab { display: block; width: 42px; height: 4px; margin: 0 auto 14px; border-radius: 999px; background: #dfe4dc; }
	.gcb-qa-close { top: 8px; right: 10px; width: 32px; height: 32px; }
	.gcb-qa-thumb { width: 82px; }
}

/* Thông báo “Đã thêm vào giỏ hàng” – nổi dưới icon giỏ hàng */
.gcb-cart-toast {
	position: fixed; right: 24px; top: calc(var(--gcb-top-h, 110px) + 12px);
	z-index: 12000;
	display: flex; align-items: flex-start; gap: 14px;
	width: min(400px, calc(100vw - 32px));
	padding: 14px;
	background: #fff; color: #2c3a2d;
	border: 1px solid var(--gcb-line);
	border-radius: 16px;
	opacity: 0; visibility: hidden;
	transform: translateY(-16px);
	transition: opacity .28s ease, transform .28s cubic-bezier(.22, 1, .36, 1), visibility .28s;
}
.gcb-cart-toast.show { opacity: 1; visibility: visible; transform: translateY(0); }
.gcb-cart-toast .ct-thumb { flex: 0 0 auto; width: 64px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #f4f6f3; }
.gcb-cart-toast .ct-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcb-cart-toast .ct-body { min-width: 0; flex: 1 1 auto; padding-right: 18px; }
.gcb-cart-toast .ct-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--gcb-green); }
.gcb-cart-toast .ct-head svg { width: 15px; height: 15px; }
.gcb-cart-toast .ct-name { margin-top: 5px; font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.gcb-cart-toast .ct-meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: #6b7280; }
.gcb-cart-toast .ct-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--gcb-green); text-decoration: underline; text-underline-offset: 3px; }
.gcb-cart-toast .ct-close { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: #9aa39b; cursor: pointer; display: grid; place-items: center; }
.gcb-cart-toast .ct-close svg { width: 13px; height: 13px; }
@media (max-width: 600px) {
	.gcb-cart-toast { right: 12px; left: 12px; width: auto; gap: 12px; padding: 12px; border-radius: 14px; }
	.gcb-cart-toast .ct-thumb { width: 56px; }
}

/* Carousel có nút ‹ › ở góc phải tiêu đề + thanh tiến trình bấm được */
.gcb-sec__nav { display: flex; gap: 12px; }
.gcb-slider__progress { cursor: pointer; }
.gcb-slider.is-dragging .gcb-slider__track { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.gcb-slider.is-dragging a { pointer-events: none; }

/* =========================================================
   Bài viết / trang nội dung: 2 cột nội dung | mục lục (như xixa.vn)
   ========================================================= */
.gcb-single { max-width: var(--gcb-maxw); }
.gcb-single .gcb-single__head, .gcb-single .gcb-single__thumb { max-width: 860px; }
.gcb-article { display: block; }
.gcb-article.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.gcb-article__main { min-width: 0; max-width: 860px; }
.gcb-article__side { position: sticky; top: calc(var(--gcb-top-h, 110px) + 24px); }
.gcb-entry h2, .gcb-entry h3 { scroll-margin-top: calc(var(--gcb-top-h, 110px) + 20px); }

.gcb-toc { background: #fff; border: 1px solid var(--gcb-line); border-radius: 16px; padding: 22px 20px 20px; }
.gcb-toc__head {
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--gcb-line);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--gcb-ink);
}
.gcb-toc__list {
	list-style: none;
	margin: 0;
	padding: 0 8px 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: calc(100vh - var(--gcb-top-h, 110px) - 160px);
	overflow-y: auto;
	scrollbar-width: thin;
}
.gcb-toc__list a { display: block; font-size: 14px; line-height: 1.45; color: #555; transition: color .2s, padding-left .2s; }
.gcb-toc__list a:hover { color: var(--gcb-green); padding-left: 4px; }
.gcb-toc__list a.is-active { color: var(--gcb-green); font-weight: 700; }
.gcb-toc__num { color: var(--gcb-green); font-weight: 700; }
.gcb-toc__h3 { padding-left: 16px; }
.gcb-toc__h3 a { font-size: 13px; color: #777; }

/* Dưới mục lục: danh sách Giày chân bẹt */
.gcb-side-prods { margin-top: 28px; }
.gcb-side-prods__title { margin: 0 0 14px; font-size: 18px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.gcb-side-prods__title a { color: var(--gcb-ink); }
.gcb-side-prods ul { list-style: none; margin: 0; padding: 0; }
.gcb-side-prods__item { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--gcb-line); }
.gcb-side-prods__item:first-child { border-top: 0; padding-top: 0; }
.gcb-side-prods__pic { flex: 0 0 92px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--gcb-soft); }
.gcb-side-prods__pic img { width: 100%; height: 100%; object-fit: cover; }
.gcb-side-prods__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gcb-side-prods__name { font-size: 14.5px; line-height: 1.45; color: #1f2421; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.gcb-side-prods__name:hover { color: var(--gcb-green); }
.gcb-side-prods .gcb-price__now { font-size: 16px; }
/* Có danh sách sản phẩm: rút gọn mục lục (cuộn bên trong) để cả cột dính vừa một màn hình */
.gcb-article__side:has(.gcb-side-prods) .gcb-toc__list { max-height: max(180px, calc(100vh - var(--gcb-top-h, 110px) - 560px)); }

/* Điện thoại / máy tính bảng: mục lục đóng/mở ở đầu bài */
.gcb-toc--inline { display: none; margin: 0 0 24px; padding: 0; }
.gcb-toc--inline > summary { list-style: none; cursor: pointer; margin: 0; padding: 16px 18px; border: 0; display: flex; justify-content: space-between; align-items: center; }
.gcb-toc--inline > summary::-webkit-details-marker { display: none; }
.gcb-toc--inline > summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--gcb-green); }
.gcb-toc--inline[open] > summary::after { content: "−"; }
.gcb-toc--inline nav { padding: 0 18px 18px; }
.gcb-toc--inline .gcb-toc__list { max-height: none; }
@media (max-width: 1024px) {
	.gcb-article.has-toc { display: block; }
	.gcb-article__side { display: none; }
	.gcb-toc--inline { display: block; }
}

/* =========================================================
   Trang sản phẩm: thanh mua hàng xổ xuống dưới header (như xixa.vn)
   ========================================================= */
.gcb-sbuy {
	position: fixed; left: 0; right: 0; top: var(--gcb-top-h, 0px); z-index: 899;
	background: #fff; border-bottom: 1px solid var(--gcb-line);
	transform: translateY(-100%); opacity: 0; visibility: hidden; pointer-events: none;
	transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .3s, visibility 0s .4s;
}
.gcb-sbuy.is-on { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .3s; }
.gcb-sbuy__inner { display: flex; align-items: center; gap: 22px; min-height: 104px; padding-top: 10px; padding-bottom: 10px; }
.gcb-sbuy__inner > * + * { position: relative; padding-left: 22px; }
.gcb-sbuy__inner > * + *::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 56px; transform: translateY(-50%); background: var(--gcb-line); }
.gcb-sbuy__inner > .gcb-sbuy__buy { margin-left: auto; }

.gcb-sbuy__prod { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 0 1 auto; padding-right: 14px; }
.gcb-sbuy__thumb { flex: 0 0 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--gcb-soft); }
.gcb-sbuy__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gcb-sbuy__meta { min-width: 0; max-width: 320px; display: flex; flex-direction: column; gap: 8px; }
.gcb-sbuy__name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcb-sbuy__price { flex-wrap: nowrap; gap: 10px; white-space: nowrap; }
.gcb-sbuy__price .gcb-price__now { font-size: 21px; }

.gcb-sbuy__stats { display: flex; flex-direction: column; gap: 18px; min-height: 66px; font-size: 14px; white-space: nowrap; } /* cao bằng cột Màu sắc / Size: sao ngang dòng nhãn, “Đã bán” ngang dòng ô màu */
.gcb-sbuy__rating { display: inline-flex; align-items: center; gap: 6px; height: 16px; color: var(--gcb-ink); }
.gcb-sbuy__rating:hover { color: var(--gcb-ink); text-decoration: underline; }
.gcb-sbuy__stars { display: inline-flex; gap: 2px; }
.gcb-sbuy__stars span { color: #d9d9d9; display: inline-flex; }
.gcb-sbuy__stars span.on { color: var(--gcb-green); }
.gcb-sbuy__stars svg { width: 20px; height: 20px; }
.gcb-sbuy__sold { color: var(--gcb-muted); }
.gcb-sbuy__sold b { color: var(--gcb-ink); font-weight: 400; }

.gcb-sbuy__field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gcb-sbuy__label { font-size: 14px; color: var(--gcb-muted); line-height: 1.1; white-space: nowrap; }
.gcb-sbuy__label b { color: var(--gcb-ink); margin-left: 4px; }
.gcb-sbuy__swatches { display: flex; gap: 8px; }
.gcb-sbuy__swatch { position: relative; display: block; width: 46px; padding-bottom: 6px; }
.gcb-sbuy__swatch img { display: block; width: 46px; height: 32px; object-fit: contain; }
.gcb-sbuy__swatch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: transparent; transition: background .2s; }
.gcb-sbuy__swatch:hover::after { background: var(--gcb-line); }
.gcb-sbuy__swatch.is-active::after { background: var(--gcb-green-2); }

.gcb-sbuy__size { flex: 1 1 260px; max-width: 380px; }
.gcb-sbuy__select { position: relative; }
.gcb-sbuy__trigger {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 8px 2px; border: 0; border-bottom: 1px solid var(--gcb-line); background: none;
	font: inherit; font-size: 15px; color: var(--gcb-ink); text-align: left; cursor: pointer;
}
.gcb-sbuy__trigger span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcb-sbuy__trigger svg { flex: none; transition: transform .2s; }
.gcb-sbuy__select.is-open .gcb-sbuy__trigger svg { transform: rotate(180deg); }
.gcb-sbuy__select.is-need .gcb-sbuy__trigger { border-bottom-color: #d33; animation: gcb-sbuy-shake .35s; }
@keyframes gcb-sbuy-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.gcb-sbuy__menu {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 2; margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid var(--gcb-line); border-radius: 12px;
	max-height: 320px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.gcb-sbuy__select.is-open .gcb-sbuy__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.gcb-sbuy__menu li { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.gcb-sbuy__menu li:hover { background: var(--gcb-soft); }
.gcb-sbuy__menu li.is-active { background: #eef6ee; color: var(--gcb-green); }
.gcb-sbuy__menu li b { min-width: 24px; }
.gcb-sbuy__menu li span { color: var(--gcb-muted); font-size: 13px; }
.gcb-sbuy__menu li em { margin-left: auto; font-style: normal; font-size: 12px; color: #b44; }
.gcb-sbuy__menu li.is-out { opacity: .5; cursor: not-allowed; }

.gcb-sbuy__buy { display: flex; align-items: center; gap: 14px; }
.gcb-sbuy__qty { display: flex; align-items: center; height: 48px; border: 1px solid var(--gcb-line); border-radius: 999px; }
.gcb-sbuy__qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 18px; color: var(--gcb-ink); cursor: pointer; }
.gcb-sbuy__qty input { width: 36px; border: 0; background: none; text-align: center; font: inherit; font-size: 15px; }
.gcb-sbuy__qty input:focus { outline: none; }
.gcb-sbuy__add { height: 48px; padding: 0 26px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.gcb-sbuy__add svg { flex: none; width: 20px; height: 20px; max-width: none; }
.gcb-sbuy__add:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Thanh sản phẩm hiện -> header mặc định xổ lên nhường chỗ (chỉ máy tính) */
@media (min-width: 1025px) {
	html.gcb-sbuy-on .gcb-sticky-top { transform: translateY(calc(-100% - 40px)); box-shadow: none; }
	html.gcb-sbuy-on .gcb-sbuy { top: var(--wp-admin--admin-bar--height, 0px); }
}
@media (max-width: 1280px) {
	.gcb-sbuy__stats { display: none; }
	.gcb-sbuy__inner { gap: 18px; }
	.gcb-sbuy__inner > * + * { padding-left: 18px; }
}

/* Điện thoại / máy tính bảng: thanh trượt lên từ đáy (thay cho thanh trên) */
.gcb-sbot { display: none; }
@media (max-width: 1024px) {
	.gcb-sbuy { display: none; }
	.gcb-sbot {
		display: flex; flex-direction: column; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 899;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		background: #fff; border-top: 1px solid var(--gcb-line);
		transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; pointer-events: none;
		transition: transform .38s cubic-bezier(.55, .06, .45, .94), opacity .26s, visibility 0s .38s;
	}
	.gcb-sbot.is-on {
		transform: none; opacity: 1; visibility: visible; pointer-events: auto;
		transition: transform .5s cubic-bezier(.22, 1.3, .36, 1), opacity .3s;
	}
	.gcb-sbot__row { display: flex; align-items: center; gap: 10px; }
	/* position: relative ở hàng -> danh sách size xổ lên rộng bằng cả thanh */
	.gcb-sbot__options { position: relative; }
	/* Ô màu to hơn, vuốt ngang xem tiếp (bắt dính từng ô), mép phải mờ dần báo còn màu */
	.gcb-sbot__colors { flex: 0 1 56%; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); }
	.gcb-sbot__colors::-webkit-scrollbar { display: none; }
	.gcb-sbot__colors + .gcb-sbot__size { padding-left: 10px; border-left: 1px solid var(--gcb-line); }
	.gcb-sbot__size { flex: 1 1 0; min-width: 120px; }
	.gcb-sbot .gcb-sbuy__swatches { gap: 8px; width: max-content; padding-right: 18px; }
	.gcb-sbot .gcb-sbuy__swatch { flex: 0 0 auto; width: 58px; padding-bottom: 5px; overflow: hidden; scroll-snap-align: start; }
	.gcb-sbot .gcb-sbuy__swatch img { width: 58px; height: 42px; object-fit: cover; transform: scale(1.3); transform-origin: 50% 55%; mix-blend-mode: multiply; }
	.gcb-sbot .gcb-sbuy__select { position: static; }
	.gcb-sbot .gcb-sbuy__trigger { font-size: 13.5px; }
	.gcb-sbot .gcb-sbuy__menu {
		top: auto; bottom: calc(100% + 12px); left: -16px; right: -16px; max-height: 46vh;
		border-bottom: 0; border-radius: 18px 18px 0 0; transform: translateY(6px);
	}
	.gcb-sbot .gcb-sbuy__menu li { padding: 11px 12px; }
	.gcb-sbot .gcb-sbuy__qty { flex: none; height: 40px; }
	.gcb-sbot .gcb-sbuy__qty button { width: 34px; }
	.gcb-sbot .gcb-sbuy__qty input { width: 28px; font-size: 14px; }
	.gcb-sbot__add { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 14px; font-size: 14.5px; gap: 8px; }
	.gcb-sbot__add:hover { transform: none; }
}
@media (max-width: 400px) {
	.gcb-sbot__add { font-size: 13px; gap: 6px; }
	.gcb-sbot__add svg { width: 17px; height: 17px; }
}

/* =========================================================
   Cửa hàng / danh mục: thanh công cụ + bảng bộ lọc (như xixa.vn)
   ========================================================= */
.gcb-shop-bar {
	position: sticky; top: var(--gcb-top-h, 0px); z-index: 50;
	display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
	margin: 0 0 26px; padding: 14px 0; background: #fff; border-bottom: 1px solid var(--gcb-line);
}
.gcb-shop-bar__left { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-width: 0; }
.gcb-shop-bar__count { margin: 0; font-size: 14px; color: var(--gcb-muted); white-space: nowrap; }
.gcb-shop-bar__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gcb-shop-bar__tags a {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 14px;
	border: 1px solid #cfe3cf; border-radius: 999px; background: #f3f9f2;
	font-size: 12.5px; font-weight: 700; color: var(--gcb-green); transition: background .15s, border-color .15s;
}
.gcb-shop-bar__tags a span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 15px; line-height: 1; color: #6b8f6b; transition: background .15s, color .15s; }
.gcb-shop-bar__tags a:hover { border-color: var(--gcb-green); }
.gcb-shop-bar__tags a:hover span { background: var(--gcb-green); color: #fff; }
.gcb-shop-bar__clear { font-size: 12.5px; font-weight: 700; color: #c2415d; border-bottom: 1.5px dashed currentColor; line-height: 1.3; }
.gcb-shop-bar__clear:hover { color: #a3223f; }

.gcb-shop-bar__tools { display: flex; align-items: center; margin-left: auto; }
.gcb-sort { position: relative; }
.gcb-sort__btn, .gcb-filter-btn {
	display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0;
	font: inherit; font-size: 14px; font-weight: 600; color: #606161; cursor: pointer; white-space: nowrap; transition: color .15s;
}
.gcb-sort__btn { padding-right: 18px; }
.gcb-sort__btn:hover, .gcb-filter-btn:hover, .gcb-sort.is-open .gcb-sort__btn, .gcb-filter-btn.is-active { color: var(--gcb-green); }
.gcb-sort__btn svg { width: 12px; height: 12px; transition: transform .25s; }
.gcb-sort.is-open .gcb-sort__btn svg { transform: rotate(180deg); }
.gcb-filter-btn { padding-left: 18px; border-left: 1.5px solid var(--gcb-line); }
.gcb-filter-btn svg { width: 15px; height: 15px; }
.gcb-filter-btn__count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gcb-green); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.gcb-sort__menu {
	position: absolute; right: 18px; top: calc(100% + 10px); z-index: 5; min-width: 190px; margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid var(--gcb-line); border-radius: 14px;
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.gcb-sort.is-open .gcb-sort__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.gcb-sort__menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--gcb-ink); white-space: nowrap; }
.gcb-sort__menu a:hover { background: var(--gcb-soft); color: var(--gcb-ink); }
.gcb-sort__menu a.is-active { background: #eef6ee; color: var(--gcb-green); }
.gcb-sort__menu a.is-active::after { content: ""; width: 14px; height: 8px; border: solid currentColor; border-width: 0 0 2.4px 2.4px; transform: translateY(-3px) rotate(-45deg); }

/* Bảng lọc */
.gcb-shop-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 36px; }
.gcb-filter { display: none; }
.gcb-filter__head { display: none; }
.gcb-filter__group + .gcb-filter__group { margin-top: 22px; }
.gcb-filter__title { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1.5px solid var(--gcb-line); font-size: 13.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gcb-green); }
.gcb-filter__opts { display: flex; flex-direction: column; gap: 6px; }
.gcb-chip {
	display: flex; align-items: center; padding: 7px 14px; border: 1.5px solid var(--gcb-line); border-radius: 999px; background: #fff;
	font-size: 13px; font-weight: 600; line-height: 1.25; color: #606161; transition: border-color .15s, color .15s, background .15s;
}
.gcb-chip:hover { border-color: #9fcf9f; color: var(--gcb-green); background: #fafdf7; }
.gcb-chip.is-active { border-color: var(--gcb-green); background: #eef6ee; color: var(--gcb-green); font-weight: 750; }
.gcb-filter__group--size .gcb-filter__opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gcb-filter__group--size .gcb-chip { justify-content: center; padding: 7px 0; font-weight: 700; font-size: 12.5px; }
.gcb-filter__group--mau-sac .gcb-filter__opts { flex-direction: row; flex-wrap: wrap; }
.gcb-filter__group--mau-sac .gcb-chip { padding: 6px 12px; font-size: 12.5px; }

@media (min-width: 1025px) {
	.gcb-shop-layout.is-filter-open { grid-template-columns: minmax(0, 1fr) 260px; }
	.gcb-shop-layout.is-filter-open .gcb-filter {
		display: block; position: sticky; top: calc(var(--gcb-top-h, 0px) + 90px); align-self: start;
		max-height: calc(100vh - var(--gcb-top-h, 0px) - 110px); overflow-y: auto; scrollbar-width: thin; padding: 2px 4px 2px 2px;
	}
	.gcb-filter-ready .gcb-shop-layout.is-filter-open .gcb-filter { animation: gcb-filter-in .3s cubic-bezier(.4, 0, .2, 1); }
	.gcb-shop-layout.is-filter-open .woocommerce ul.products, .gcb-shop-layout.is-filter-open ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gcb-filter-overlay { display: none; }
}
@keyframes gcb-filter-in { from { opacity: 0; transform: translateX(12px); } }

/* Điện thoại / máy tính bảng: ngăn kéo trượt từ phải */
@media (max-width: 1024px) {
	.gcb-filter {
		display: block; position: fixed; top: 0; right: 0; bottom: 0; z-index: 10001; width: min(360px, 88vw);
		padding: 0 20px 28px; overflow-y: auto; background: #fff;
		transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s .35s;
	}
	.is-filter-open .gcb-filter { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
	/* Đang đăng nhập: chừa chỗ cho thanh admin của WordPress */
	.admin-bar .gcb-filter { top: var(--wp-admin--admin-bar--height, 0px); }
	.gcb-filter__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin: 0 -20px 18px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--gcb-line); }
	.gcb-filter__head p { margin: 0; font-size: 17px; font-weight: 800; }
	.gcb-filter__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--gcb-soft); font-size: 24px; line-height: 1; cursor: pointer; }
	.gcb-filter__group--size .gcb-filter__opts { grid-template-columns: repeat(5, 1fr); }
	.gcb-filter-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 20, 15, .45); }
	.gcb-filter-overlay[hidden] { display: none; }
	.gcb-shop-bar { padding: 12px 0; margin-bottom: 20px; }
}
@media (max-width: 600px) {
	.gcb-shop-bar__left { width: 100%; }
	.gcb-shop-bar__tools { margin-left: 0; }
}

/* Phân trang */
.gcb-shop .woocommerce-pagination { margin-top: 44px; text-align: center; }
.gcb-shop .woocommerce-pagination ul.page-numbers { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; white-space: nowrap; }
.gcb-shop .woocommerce-pagination ul.page-numbers li { float: none; display: block; border: 0; overflow: visible; }
.gcb-shop .woocommerce-pagination ul.page-numbers li .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 6px; margin: 0;
	border: 1.5px solid var(--gcb-line); border-radius: 999px; background: #fff;
	font-size: 15px; font-weight: 600; line-height: 1; color: var(--gcb-ink); transition: border-color .15s, color .15s, background .15s, transform .15s;
}
.gcb-shop .woocommerce-pagination ul.page-numbers li a.page-numbers:hover { border-color: var(--gcb-green); color: var(--gcb-green); background: #fff; transform: translateY(-2px); }
.gcb-shop .woocommerce-pagination ul.page-numbers li span.current { border-color: var(--gcb-green); background: var(--gcb-green); color: #fff; }
.gcb-shop .woocommerce-pagination ul.page-numbers li span.dots { border-color: transparent; background: none; min-width: 24px; color: var(--gcb-muted); }
.gcb-shop .woocommerce-pagination ul.page-numbers li .page-numbers svg { width: 18px; height: 18px; }
.gcb-shop .woocommerce-pagination ul.page-numbers li .prev, .gcb-shop .woocommerce-pagination ul.page-numbers li .next { background: var(--gcb-soft); border-color: transparent; }

/* =========================================================
   Đường dẫn (breadcrumb) mọi trang: icon nhà trước “Trang chủ”
   ========================================================= */
.woocommerce .woocommerce-breadcrumb, .woocommerce-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0 0 22px; font-size: 14px; color: var(--gcb-muted); }
.woocommerce-breadcrumb a { color: var(--gcb-muted); }
.woocommerce-breadcrumb a:hover { color: var(--gcb-green); }
@media (max-width: 700px) { .woocommerce .woocommerce-breadcrumb, .woocommerce-breadcrumb { margin-bottom: 14px; font-size: 13px; } }
.woocommerce-breadcrumb > a:first-child { display: inline-flex; align-items: center; gap: 6px; }
.woocommerce-breadcrumb > a:first-child::before {
	content: ""; width: 15px; height: 15px; flex: none; background: currentColor;
	-webkit-mask: url("../icons/icon_Home_B.svg") center / contain no-repeat; mask: url("../icons/icon_Home_B.svg") center / contain no-repeat;
	transform: translateY(-1px);
}

/* =========================================================
   Trang Kiến thức (index.php, inc/blog.php) — mockup 28/09/2026
   ========================================================= */
.gcb-blog-hero { padding: 58px 0 62px; text-align: center; background: #dde9fc url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22720%22 height=%22220%22 viewBox=%220 0 720 220%22%3E%3Cdefs%3E%3Cg id=%22f%22%3E%3Cpath d=%22M46.99,17.09s2.39-4.53-3.04-6.73c-5.93-2.4-2.07-8.45,2.42-6.16,3.66,1.87,5.08,8.46.63,12.89%22/%3E%3Cpath d=%22M40.86,1.85c-.02,1.03.57,1.89,1.32,1.9.75.01,1.37-.81,1.39-1.85S42.99.01,42.24,0c-.75-.01-1.37.81-1.39,1.85%22/%3E%3Cpath d=%22M44.55,1.75c-.22.77.05,1.52.6,1.67.55.16,1.18-.33,1.4-1.1.22-.77-.05-1.52-.6-1.67-.55-.16-1.18.33-1.4,1.1%22/%3E%3Cpath d=%22M47.22,2.7c-.47.45-.59,1.1-.26,1.44.33.34.97.25,1.44-.2.47-.45.59-1.1.26-1.44-.33-.34-.97-.25-1.44.2%22/%3E%3Cpath d=%22M48.74,4.3c-.42.25-.62.7-.44,1.01.18.31.67.35,1.09.1.42-.25.62-.7.44-1.01-.18-.31-.67-.35-1.09-.1%22/%3E%3Cpath d=%22M49.49,5.89c-.32.08-.53.32-.47.55.05.23.36.35.67.28.32-.08.53-.32.47-.55-.05-.23-.36-.35-.67-.28%22/%3E%3C/g%3E%3C/defs%3E%3Cg fill=%22%23c6d9f6%22%3E%3Cuse href=%22%23f%22 transform=%22translate(30 30) rotate(-25) scale(2.6) translate(-45.5 -8.6)%22/%3E%3Cuse href=%22%23f%22 transform=%22translate(62 74) rotate(-15) scale(2.6) translate(-45.5 -8.6)%22/%3E%3Cuse href=%22%23f%22 transform=%22translate(170 120) rotate(20) scale(3.2) translate(-45.5 -8.6)%22/%3E%3Cuse href=%22%23f%22 transform=%22translate(210 168) rotate(30) scale(3.2) translate(-45.5 -8.6)%22/%3E%3Cuse href=%22%23f%22 transform=%22translate(330 26) rotate(-40) scale(2.2) translate(-45.5 -8.6)%22/%3E%3Cuse href=%22%23f%22 transform=%22translate(356 62) rotate(-30) scale(2.2) translate(-45.5 -8.6)%22/%3E%3Cuse href=%22%23f%22 transform=%22translate(460 130) rotate(15) scale(2.8) translate(-45.5 -8.6)%22/%3E%3Cuse href=%22%23f%22 transform=%22translate(500 176) rotate(25) scale(2.8) translate(-45.5 -8.6)%22/%3E%3Cuse href=%22%23f%22 transform=%22translate(600 40) rotate(-20) scale(3.0) translate(-45.5 -8.6)%22/%3E%3Cuse href=%22%23f%22 transform=%22translate(640 88) rotate(-10) scale(3.0) translate(-45.5 -8.6)%22/%3E%3C/g%3E%3C/svg%3E") center / 720px 220px repeat; }
.gcb-blog-hero__title { margin: 0 0 12px; font-size: clamp(28px, 3vw, 44px); font-weight: 800; line-height: 1.2; color: var(--gcb-ink); }
.gcb-blog-hero .woocommerce-breadcrumb { justify-content: center; margin: 0; font-size: 14px; color: var(--gcb-ink); }
.gcb-blog-hero .woocommerce-breadcrumb a { color: var(--gcb-ink); }
.gcb-blog-hero .woocommerce-breadcrumb a:hover { color: var(--gcb-green); }
.gcb-blog-hero .woocommerce-breadcrumb > a:first-child::before { display: none; }
.gcb-blog-hero__sep { margin: 0 12px; }

.gcb-blog { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto 1fr; gap: 0 44px; padding-top: 60px; padding-bottom: 110px; }
.gcb-blog__main { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
.gcb-blog__side { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.gcb-blog__top { grid-column: 2; grid-row: 2; align-self: end; justify-self: center; display: grid; place-items: center; width: 44px; height: 44px; margin-top: 32px; border-radius: 4px; background: var(--gcb-green); color: #fff; transition: transform .2s, background .2s; }
.gcb-blog__top:hover { color: #fff; background: var(--gcb-green-2); transform: translateY(-3px); }
.gcb-blog__top svg { width: 20px; height: 20px; }
.gcb-blog__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.gcb-blog .gcb-post-card { padding: 12px 12px 24px; border-radius: 16px; box-shadow: 0 0 0 1px var(--gcb-line); transition: box-shadow .25s; }
.gcb-blog .gcb-post-card__pic { border-radius: 12px; }
.gcb-blog .gcb-post-card__body { padding: 16px 4px 0; }
.gcb-blog .gcb-post-card__title { font-size: 17px; margin-bottom: 12px; }
.gcb-post-card__excerpt { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--gcb-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.gcb-blog .gcb-post-card__more { font-size: 13.5px; font-weight: 600; color: var(--gcb-ink); }
.gcb-blog .gcb-post-card__more:hover { color: var(--gcb-green); }

.gcb-blog__foot .nav-links { margin-top: 44px; gap: 10px; }
.gcb-blog__foot .page-numbers { min-width: 38px; height: 38px; border: 1px solid var(--gcb-line); background: #fff; font-size: 13.5px; color: var(--gcb-ink); transition: border-color .2s, color .2s; }
.gcb-blog__foot .page-numbers svg { width: 16px; height: 16px; }
.gcb-blog__foot a.page-numbers:hover { border-color: var(--gcb-green); color: var(--gcb-green); }
.gcb-blog__foot .page-numbers.current { background: #e9ecea; border-color: #e9ecea; color: var(--gcb-ink); }
.gcb-blog__foot .page-numbers.dots { border-color: transparent; background: none; }

/* Cột phải */
.gcb-bw { padding: 22px 20px; border: 1px solid var(--gcb-line); border-radius: 16px; background: #fff; }
.gcb-bw__title { margin: 0 0 6px; padding-bottom: 14px; border-bottom: 1px solid var(--gcb-line); font-size: 16px; font-weight: 800; }
.gcb-bw--search { padding: 26px 20px; border: 0; background: #f1f3f1; }
.gcb-bw-search { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 18px; border: 1.5px solid var(--gcb-green); border-radius: 999px; background: #fff; }
.gcb-bw-search input { flex: 1; min-width: 0; height: 34px; border: 0; outline: 0; background: none; font: inherit; font-size: 13.5px; }
.gcb-bw-search input::-webkit-search-cancel-button { display: none; }
.gcb-bw-search button { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--gcb-green); color: #fff; cursor: pointer; }
.gcb-bw-search button svg { width: 16px; height: 16px; }
.gcb-bw--cats { padding: 0; overflow: hidden; border: 0; background: #f1f3f1; }
.gcb-bw__head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 17px 20px; border-radius: 16px 16px 0 0; background: #0c6b36; color: #fff; font-size: 16px; font-weight: 700; }
.gcb-bw__head svg { width: 18px; height: 18px; color: var(--gcb-lime); }
.gcb-bw-cats { list-style: none; margin: 0; padding: 16px 20px 20px; }
.gcb-bw-cats a { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--gcb-ink); }
.gcb-bw-cats a::before { content: ""; flex: none; width: 8px; height: 8px; border: 1px solid #c3c9c4; border-radius: 50%; transition: background .2s, border-color .2s; }
.gcb-bw-cats a:hover, .gcb-bw-cats .is-current a { color: var(--gcb-green); }
.gcb-bw-cats a:hover::before, .gcb-bw-cats .is-current a::before { border-color: var(--gcb-green); background: var(--gcb-green); }

.gcb-bw-posts, .gcb-bw-prods, .gcb-bw-tags { list-style: none; margin: 0; padding: 0; }
.gcb-bw-posts li, .gcb-bw-prods li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--gcb-line); }
.gcb-bw-posts li:first-child, .gcb-bw-prods li:first-child { border-top: 0; }
.gcb-bw-posts__pic { flex: 0 0 66px; height: 66px; overflow: hidden; border-radius: 8px; background: var(--gcb-soft); }
.gcb-bw-posts__pic img, .gcb-bw-prods__pic img { width: 100%; height: 100%; object-fit: cover; }
.gcb-bw-posts__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 13.5px; font-weight: 700; line-height: 1.45; color: var(--gcb-ink); }
.gcb-bw-posts__date { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--gcb-muted); text-transform: uppercase; letter-spacing: .02em; }
.gcb-bw-posts__date svg { width: 13px; height: 13px; color: #a2a8a3; }

.gcb-bw-promo { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(100deg, #d7eaff 0%, #92c9fb 100%); color: var(--gcb-ink); transition: transform .2s; }
.gcb-bw-promo:hover { color: var(--gcb-ink); transform: translateY(-2px); }
.gcb-bw-promo__badge { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid #fff; border-radius: 50%; background: #1d6fe0; color: #fff; box-shadow: 0 0 0 1.5px #1d6fe0; }
.gcb-bw-promo__badge svg { width: 18px; height: 30px; }
.gcb-bw-promo__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.gcb-bw-promo__text strong { font-size: 15.5px; font-weight: 800; }
.gcb-bw-promo__text span { font-size: 12px; }
.gcb-bw-promo__btn { flex: none; margin-left: auto; padding: 8px 14px; border-radius: 999px; background: #1d6fe0; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

.gcb-bw-prods__pic { flex: 0 0 66px; height: 66px; overflow: hidden; border-radius: 10px; background: #fdeef3; }
.gcb-bw-prods__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gcb-bw-prods__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13.5px; line-height: 1.4; color: var(--gcb-ink); }
.gcb-bw-prods .gcb-price { gap: 4px 6px; }
.gcb-bw-prods .gcb-price__now { font-size: 14.5px; }
.gcb-bw-prods .gcb-price__off { padding: 0 6px; font-size: 11px; }
.gcb-bw-prods .gcb-price__was { font-size: 12px; }

.gcb-bw-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.gcb-bw-tags a { display: inline-block; padding: 6px 12px; border: 1px solid var(--gcb-line); border-radius: 6px; font-size: 12.5px; color: var(--gcb-ink); }
.gcb-bw-tags a:hover { border-color: var(--gcb-green); color: var(--gcb-green); }

/* Hộp đăng ký ngay sau danh sách bài (nền trắng): nửa trên nền trắng thay vì xám mặc định của khối */
.gcb-blog ~ .gcb-news { background: linear-gradient(#fff 50%, transparent 50%); }
@media (max-width: 1100px) { .gcb-blog { grid-template-columns: minmax(0, 1fr) 280px; gap: 0 28px; } }
@media (max-width: 860px) {
	.gcb-blog-hero { padding: 36px 0 40px; }
	.gcb-blog { display: block; padding-top: 32px; padding-bottom: 90px; }
	.gcb-blog__side { margin-top: 44px; }
	.gcb-blog__top { display: none; }
}
@media (max-width: 560px) { .gcb-blog__grid { grid-template-columns: 1fr; gap: 18px; } }

/* =========================================================
   Trang bài viết (single.php, inc/post-extras.php) — mockup 28/09/2026
   ========================================================= */
.single-post .gcb-single { padding-top: 26px; }
.gcb-single__title { margin: 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; line-height: 1.3; }
.gcb-single .gcb-single__meta { margin: 12px 0 0; }
.gcb-single__head { margin-bottom: 24px; }
.single-post .gcb-single__thumb { margin: 0 0 30px; }
.single-post .gcb-single__thumb img { display: block; width: 100%; border-radius: 16px; }
.gcb-single__thumb figcaption { margin-top: 10px; text-align: center; font-size: 13px; font-style: italic; color: var(--gcb-muted); }

.gcb-article.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.gcb-post-side { position: static; display: flex; flex-direction: column; gap: 22px; }
.gcb-post-side .gcb-toc--side { padding: 22px 20px; }
.gcb-post-side .gcb-toc__list { max-height: 420px; }

/* H2 trong bài: hộp xanh nhạt nhạt dần sang phải */
.single-post .gcb-entry h2 { margin: 1.8em 0 .8em; padding: 12px 18px; border-radius: 10px; background: linear-gradient(90deg, #cdecbc 0%, #e6f5dc 55%, rgba(236, 248, 228, 0) 100%); font-size: 20px; line-height: 1.4; font-weight: 800; color: var(--gcb-ink); }
.single-post .gcb-entry h3 { font-size: 18px; }

/* Trích dẫn */
.gcb-entry blockquote { position: relative; margin: 1.6em 0; padding: 4px 0 4px 72px; border: 0; border-left: 3px solid var(--gcb-lime-2); font-style: normal; }
.gcb-entry blockquote::before { content: "\201C"; position: absolute; left: 22px; top: -6px; font-size: 60px; line-height: 1; font-family: Georgia, serif; color: #c9cec9; }
.gcb-entry blockquote p { margin: 0 0 .5em; font-size: 15px; line-height: 1.8; color: #444; }
.gcb-entry blockquote cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; font-weight: 700; color: var(--gcb-green); }

/* Chú thích » … link */
.gcb-entry .gcb-note { font-size: 14.5px; color: var(--gcb-ink); }
.gcb-entry .gcb-note::before { content: "» "; font-weight: 700; }
.gcb-entry .gcb-note a { text-decoration: none; }
.gcb-entry .gcb-note a:hover { text-decoration: underline; }

/* Sản phẩm đính kèm */
.gcb-pp { display: flex; flex-direction: column; gap: 20px; margin: 1.8em 0; }
.gcb-pp__item { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 18px 26px 18px 18px; border: 1px solid var(--gcb-line); border-radius: 14px; background: #fff; }
.gcb-pp__num { position: absolute; left: -10px; top: 14px; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #cfd4d0; border-radius: 50%; background: #fff; font-size: 12px; font-weight: 700; }
.gcb-pp__pic { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #f3f5f8; }
.gcb-entry .gcb-pp__pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.gcb-pp__body { min-width: 0; }
.gcb-entry .gcb-pp__name { display: block; font-size: 15.5px; font-weight: 800; color: var(--gcb-ink); text-decoration: none; }
.gcb-entry .gcb-pp__name:hover { color: var(--gcb-green); }
.gcb-entry .gcb-pp__desc { margin: 8px 0 0; font-size: 14px; color: #555; }
.gcb-entry .gcb-pp__feat { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.gcb-pp__feat li { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: #444; }
.gcb-pp__feat svg { flex: none; width: 15px; height: 15px; color: var(--gcb-green); }
.gcb-entry .gcb-pp__btn { display: inline-block; padding: 11px 26px; border-radius: 999px; background: var(--gcb-green); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s; }
.gcb-entry .gcb-pp__btn:hover { background: var(--gcb-green-2); color: #fff; transform: translateY(-2px); }

/* Xem thêm */
.gcb-more { margin: 2em 0 0; padding: 20px 24px; border-radius: 12px; background: #f1f2f1; }
.gcb-entry .gcb-more__title { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.gcb-entry .gcb-more ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.gcb-more li { margin: 0; font-size: 14px; }
.gcb-more li::marker { color: var(--gcb-green); }
.gcb-entry .gcb-more a { color: #333; text-decoration: none; }
.gcb-entry .gcb-more a:hover { color: var(--gcb-green); text-decoration: underline; }

/* Chia sẻ + tags */
.gcb-share, .gcb-post-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 26px; }
.gcb-share { padding-top: 22px; border-top: 1px solid var(--gcb-line); }
.gcb-share__label, .gcb-post-tags__label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.gcb-share__label svg, .gcb-post-tags__label svg { width: 16px; height: 16px; }
.gcb-share ul, .gcb-post-tags ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gcb-share a, .gcb-share button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--gcb-line); border-radius: 50%; background: #fff; color: var(--gcb-ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.gcb-share a:hover, .gcb-share button:hover, .gcb-share button.is-copied { border-color: var(--gcb-green); background: var(--gcb-green); color: #fff; }
.gcb-share svg { width: 16px; height: 16px; }
.gcb-post-tags a { display: inline-block; padding: 6px 14px; border: 1px solid var(--gcb-line); border-radius: 6px; font-size: 12.5px; color: var(--gcb-ink); }
.gcb-post-tags a:hover { border-color: var(--gcb-green); color: var(--gcb-green); }

/* Bài viết nổi bật khác */
.gcb-related { padding: 64px 0 120px; background: #f4f5f4; }
.gcb-related__title { margin: 0 0 30px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; text-transform: uppercase; }
.gcb-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gcb-related .gcb-post-card { box-shadow: none; }
/* Form bình luận: ô nhập không vượt khung trên điện thoại (textarea mặc định cols=45) */
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { box-sizing: border-box; width: 100%; max-width: 100%; }

@media (max-width: 1024px) {
	.gcb-article.has-side { display: block; }
	.gcb-article__side.gcb-post-side { display: flex; margin-top: 48px; }
	.gcb-post-side .gcb-toc--side { display: none; }
}
@media (max-width: 700px) {
	.gcb-pp__item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; }
	.gcb-entry .gcb-pp__btn { grid-column: 1 / -1; text-align: center; }
	.gcb-entry blockquote { padding-left: 52px; }
	.gcb-entry blockquote::before { left: 12px; font-size: 48px; }
	.gcb-related { padding: 44px 0 100px; }
	.gcb-related__grid { grid-template-columns: 1fr; }
}
@media (min-width: 701px) and (max-width: 900px) { .gcb-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =========================================================
   Banner đầu trang Cửa hàng / danh mục (inc/shop-banner.php) — như .page-hero của xixa.vn
   ========================================================= */
.gcb-shop-hero { position: relative; display: flex; aspect-ratio: var(--gcb-hero-ar, 4500 / 688); overflow: hidden; background: #eef1f4; }
.gcb-shop-hero picture { display: contents; }
/* “.gcb-shop-hero img.…” mạnh hơn “.woocommerce-page img { height: auto }” của WooCommerce — không thì ảnh chỉ cao theo tỉ lệ gốc (điện thoại: lộ dải xám dưới ảnh) */
.gcb-shop-hero img.gcb-shop-hero__img { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center; }
.gcb-shop-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.30) 32%, rgba(0,0,0,.06) 62%, rgba(0,0,0,0) 100%); }
.gcb-shop-hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding-top: 24px; padding-bottom: 24px; }
.gcb-shop-hero .woocommerce-breadcrumb { margin: 0; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.95); }
.gcb-shop-hero .woocommerce-breadcrumb a { color: rgba(255,255,255,.95); }
.gcb-shop-hero .woocommerce-breadcrumb a:hover { color: #fff; }
.gcb-shop-hero__title { margin: 0; font-size: clamp(26px, 2.2vw, 38px); font-weight: 800; line-height: 1.2; letter-spacing: .2px; color: #fff; }
.gcb-has-shop-hero .gcb-shop { padding-top: 10px; }
@media (max-width: 768px) {
	.gcb-shop-hero { aspect-ratio: auto; min-height: 150px; }
	.gcb-shop-hero__inner { padding-top: 16px; padding-bottom: 16px; gap: 8px; }
	.gcb-shop-hero .woocommerce-breadcrumb { font-size: 13px; }
	.gcb-shop-hero__title { font-size: 24px; }
	/* Điện thoại, danh mục bật “nền pastel”: bỏ ảnh, chữ đậm màu tối */
	.gcb-shop-hero.is-soft { min-height: 0; background: linear-gradient(105deg, #fbe4ee 0%, #f0e6fa 52%, #e3ebfb 100%); }
	.gcb-shop-hero.is-soft::before, .gcb-shop-hero.is-soft .gcb-shop-hero__img { display: none; }
	.gcb-shop-hero.is-soft .gcb-shop-hero__inner { padding-bottom: 20px; gap: 10px; }
	.gcb-shop-hero.is-soft .woocommerce-breadcrumb, .gcb-shop-hero.is-soft .woocommerce-breadcrumb a { color: var(--gcb-muted); }
	.gcb-shop-hero.is-soft .gcb-shop-hero__title { color: var(--gcb-ink); font-size: 25px; }
}

/* =========================================================
   Trang chi tiết sản phẩm (inc/single-product.php) — như xixa.vn
   ========================================================= */
.single-product div.product { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 0 56px; align-items: start; }
.single-product div.product > * { grid-column: 1 / -1; }
.single-product div.product > .woocommerce-product-gallery { grid-column: 1; width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product > .summary { grid-column: 2; grid-row: 1 / span 2; width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product > .onsale {
	grid-column: 1; grid-row: 1; justify-self: start; align-self: start; position: relative; z-index: 3; top: 16px; left: 16px; margin: 0;
	min-width: 0; min-height: 0; padding: 5px 12px; border-radius: 999px; background: var(--gcb-green); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3;
}
.single-product div.product .woocommerce-product-gallery__wrapper { border-radius: 0; overflow: hidden; }
.single-product div.product .flex-viewport { position: relative; border-radius: 0; }
.single-product div.product .woocommerce-product-gallery__image { cursor: zoom-in; }
.single-product div.product .woocommerce-product-gallery__image img { border-radius: 0; }
.single-product div.product .woocommerce-product-gallery__trigger { top: 16px; right: 16px; }

/* Dải ảnh nhỏ: đúng 4 ảnh một hàng, trượt ngang, nút ‹ › (assets/js/single-product.js) */
.single-product div.product .flex-control-thumbs { display: flex; gap: 10px; margin: 12px 0 0 !important; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.single-product div.product .flex-control-thumbs::-webkit-scrollbar { display: none; }
.single-product div.product .flex-control-thumbs li { flex: 0 0 calc((100% - 30px) / 4); width: auto !important; float: none !important; margin: 0 !important; scroll-snap-align: start; }
.single-product div.product .flex-control-thumbs li img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; opacity: .6; border: 2px solid transparent; transition: opacity .2s, border-color .2s; }
.single-product div.product .flex-control-thumbs li img:hover, .single-product div.product .flex-control-thumbs li img.flex-active { opacity: 1; }
.single-product div.product .flex-control-thumbs li img.flex-active { border-color: transparent; } /* ảnh đang chọn: chỉ rõ nét hơn, không viền xanh */
.gcb-gthumbs { position: relative; }
.gcb-gthumbs__nav {
	position: absolute; top: calc(50% + 6px); z-index: 2; width: 36px; height: 36px; transform: translateY(-50%);
	display: grid; place-items: center; padding: 0; border: 1px solid var(--gcb-line); border-radius: 50%; background: #fff; color: var(--gcb-ink);
 cursor: pointer; transition: background .15s, color .15s, opacity .15s;
}
.gcb-gthumbs__nav svg { width: 18px; height: 18px; }
.gcb-gthumbs__nav--prev { left: -12px; }
.gcb-gthumbs__nav--next { right: -12px; }
.gcb-gthumbs__nav:hover:not(:disabled) { background: var(--gcb-green); border-color: var(--gcb-green); color: #fff; }
.gcb-gthumbs__nav:disabled { opacity: 0; pointer-events: none; }

/* Cột phải */
.single-product .summary .product_title { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 500; color: var(--gcb-ink); }
.gcb-pd-rating-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 14px; }
.gcb-pd-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gcb-ink); }
.gcb-pd-rating:hover { color: var(--gcb-ink); }
.gcb-pd-rating:hover .gcb-pd-rating__count { text-decoration: underline; }
.gcb-pd-stars { display: inline-flex; gap: 2px; }
.gcb-pd-stars span { display: inline-flex; color: #d9d9d9; }
.gcb-pd-stars span.on { color: var(--gcb-green-2); }
.gcb-pd-stars svg { width: 18px; height: 18px; }
.gcb-pd-share { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--gcb-green-2); cursor: pointer; }
.gcb-pd-share:hover span { text-decoration: underline; }
.gcb-pd-share img { width: 19px; height: auto; }

.gcb-pd-price { margin: 0 0 16px; }
.gcb-pd-price__was { display: block; margin-bottom: 3px; font-size: 16px; color: var(--gcb-muted); }
.gcb-pd-price__row { display: flex; align-items: center; gap: 12px; margin: 0; }
.gcb-pd-price__now { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.5px; color: var(--gcb-ink); }
.gcb-pd-price__off { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--gcb-green-2); color: #fff; font-size: 12.5px; line-height: 1; }
.gcb-pd-freeship { display: flex; align-items: center; gap: 6px; margin: 0 0 20px; font-size: 15px; color: var(--gcb-muted); }
.gcb-pd-freeship img { width: 21px; height: auto; transform: translateY(-2px); }
/* Ô quà tặng kèm (inc/gifts.php, như xixa.vn) */
.gcb-pd-gift { margin: 0 0 22px; border: 1px solid #e6e8e3; border-radius: 14px; background: #fff; }
.gcb-pd-gift__head { display: inline-block; margin: 0; padding: 11px 22px 11px 18px; border-radius: 13px 0 14px; background: #f2f3f0; font-size: 15px; color: var(--gcb-ink); }
.gcb-pd-gift__head .amount, .gcb-pd-gift__head b { font-weight: 700; }
.gcb-pd-gift__body { display: grid; grid-template-columns: 88px auto 1fr; grid-template-areas: "img badge name" "img info info"; align-items: center; gap: 9px 13px; padding: 12px 18px 18px; }
.gcb-pd-gift__img { grid-area: img; width: 88px; height: 88px; border-radius: 10px; background: #f4f6f3; overflow: hidden; }
.gcb-pd-gift__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gcb-pd-gift__badge { grid-area: badge; display: flex; align-items: center; padding: 6px 11px; border-radius: 7px; background: #e6f4d2; font-size: 13px; font-weight: 700; color: #006600; white-space: nowrap; }
.gcb-pd-gift__name { grid-area: name; min-width: 0; font-size: 15px; font-weight: 700; color: var(--gcb-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcb-pd-gift__info { grid-area: info; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; }
.gcb-pd-gift__color { padding: 9px 15px; border: 1px solid #dfe2dc; border-radius: 999px; font-size: 14px; color: #6b7280; }
.gcb-pd-gift__price { display: flex; align-items: baseline; gap: 10px; }
.gcb-pd-gift__price b { font-size: 16px; color: var(--gcb-ink); }
.gcb-pd-gift__price del { font-size: 14px; color: #9aa0a6; }
.gcb-pd-gift__color.is-pick { position: relative; padding: 0; border: 0; }
.gcb-pd-gift__trigger { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px 9px 15px; border: 1px solid #dfe2dc; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: var(--gcb-ink); cursor: pointer; transition: border-color .15s; }
.gcb-pd-gift__trigger:hover, .gcb-pd-gift__color.is-open .gcb-pd-gift__trigger { border-color: var(--gcb-green-2); }
.gcb-pd-gift__trigger svg { transition: transform .2s; }
.gcb-pd-gift__color.is-open .gcb-pd-gift__trigger svg { transform: rotate(180deg); }
.gcb-pd-gift__menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--gcb-line); border-radius: 12px; background: #fff; }
.gcb-pd-gift__menu[hidden] { display: none; }
.gcb-pd-gift__menu li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.gcb-pd-gift__menu li:hover { background: #f4f6f3; }
.gcb-pd-gift__menu li.is-active { background: #eef8e4; color: var(--gcb-green); font-weight: 600; }
.gcb-pd-gift__menu img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.gcb-ck-gift-change { margin-left: 6px; padding: 1px 9px; border: 1px solid var(--gcb-line); border-radius: 999px; background: #fff; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--gcb-green); cursor: pointer; }
.gcb-ck-gift-change:hover { border-color: var(--gcb-green-2); }
.gcb-pd-gift__rule { margin: -6px 18px 14px; font-size: 13px; color: var(--gcb-muted); }
@media (max-width: 480px) {
	.gcb-pd-gift__body { grid-template-columns: 72px auto 1fr; padding: 10px 14px 14px; }
	.gcb-pd-gift__img { width: 72px; height: 72px; }
}

.gcb-pd-field { margin: 0 0 20px; }
.gcb-pd-label { margin: 0 0 8px; font-size: 14px; color: var(--gcb-muted); }
.gcb-pd-label b { font-weight: 400; color: var(--gcb-ink); }
.gcb-pd-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.gcb-pd-swatch { position: relative; display: block; width: 96px; padding-bottom: 10px; }
.gcb-pd-swatch img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--gcb-soft); transition: transform .2s; }
.gcb-pd-swatch:hover img { transform: translateY(-2px); }
.gcb-pd-swatch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: transparent; transition: background .2s; }
.gcb-pd-swatch:hover::after { background: var(--gcb-line); }
.gcb-pd-swatch.is-active::after { background: var(--gcb-green-2); }

/* Form thêm giỏ */
.single-product .summary form.cart { margin: 0 !important; }
.single-product .summary table.variations.gcb-is-enhanced, .single-product .summary table.variations tr.gcb-is-enhanced { display: none; }
.single-product .summary table.variations { margin: 0 0 16px; border: 0; }
.single-product .summary .single_variation_wrap .woocommerce-variation-price, .single-product .summary .single_variation_wrap .woocommerce-variation-description { display: none; }
.single-product .summary .woocommerce-variation-availability p { margin: 0 0 10px; font-size: 14px; }
.single-product .summary .woocommerce-variation-availability .out-of-stock { color: #c2415d; }
.gcb-pd-size__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gcb-pd-size__guide { padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--gcb-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gcb-pd-size__guide:hover { color: var(--gcb-green); }
.gcb-pd-size__select { position: relative; }
.gcb-pd-size__trigger {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 20px;
	border: 1.5px solid var(--gcb-line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; color: var(--gcb-ink); text-align: left; cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.gcb-pd-size__trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcb-pd-size__trigger svg { flex: none; color: var(--gcb-muted); transition: transform .2s; }
.gcb-pd-size__trigger:hover { border-color: #cfe3cf; }
.gcb-pd-size__select.is-open .gcb-pd-size__trigger { border-color: var(--gcb-green-2); }
.gcb-pd-size__select.is-open .gcb-pd-size__trigger svg { transform: rotate(180deg); color: var(--gcb-green-2); }
.gcb-pd-size__select.is-need .gcb-pd-size__trigger { border-color: #d33; animation: gcb-sbuy-shake .35s; }
.gcb-pd-size__menu {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 300px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid var(--gcb-line); border-radius: 16px;
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.gcb-pd-size__select.is-open .gcb-pd-size__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.gcb-pd-size__menu li { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; cursor: pointer; }
.gcb-pd-size__menu li:hover { background: var(--gcb-soft); }
.gcb-pd-size__menu li.is-active { background: #eef6ee; color: var(--gcb-green); }
.gcb-pd-size__menu li b { min-width: 26px; }
.gcb-pd-size__menu li span { font-size: 13.5px; color: var(--gcb-muted); }
.gcb-pd-size__menu li em { margin-left: auto; font-size: 12px; font-style: normal; color: #b44; }
.gcb-pd-size__menu li.is-out { opacity: .5; cursor: not-allowed; }

.single-product .summary .woocommerce-variation-add-to-cart, .single-product .summary form.cart:not(.variations_form) { display: flex; gap: 12px; margin: 22px 0; }
.single-product .summary .quantity { display: flex; align-items: center; height: 52px; margin: 0 !important; border: 1.5px solid var(--gcb-line); border-radius: 999px; background: #fff; overflow: hidden; float: none !important; }
.single-product .summary .quantity .qty { width: 40px; height: 100%; padding: 0; border: 0; background: none; font: inherit; font-size: 16px; text-align: center; -moz-appearance: textfield; }
.single-product .summary .quantity .qty::-webkit-inner-spin-button, .single-product .summary .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.single-product .summary .quantity .qty:focus { outline: none; }
.gcb-qty-btn { width: 46px; height: 100%; padding: 0; border: 0; background: none; font-size: 20px; color: var(--gcb-ink); cursor: pointer; }
.gcb-qty-btn:hover { background: #f3f9f2; color: var(--gcb-green); }
.woocommerce.single-product .summary .single_add_to_cart_button, .single-product .summary .single_add_to_cart_button.button.alt {
	flex: 1; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; float: none;
	border-radius: 999px; background: var(--gcb-green-2); color: #fff; font-size: 16px; font-weight: 500;
}
.woocommerce.single-product .summary .single_add_to_cart_button::before {
	content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
	-webkit-mask: url("../icons/cart-plus.svg") center / contain no-repeat; mask: url("../icons/cart-plus.svg") center / contain no-repeat;
}
.woocommerce.single-product .summary .single_add_to_cart_button:hover { background: #1b651c; color: #fff; }
.woocommerce.single-product .summary .single_add_to_cart_button.disabled { opacity: .55; }
.woocommerce.single-product .summary .single_add_to_cart_button.is-busy::before { display: none; }

/* Hộp “Cách XIXA tạo ra sản phẩm này” */
.gcb-pd-how { margin: 22px 0; padding: 18px 20px 20px; border-radius: 16px; background: #e6f4d2; }
.gcb-pd-how__title { margin: 0 0 14px; font-size: 15px; font-weight: 700; text-align: center; color: var(--gcb-ink); }
.gcb-pd-how__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gcb-pd-how__list li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.gcb-pd-how__list img { width: 66px; height: 66px; }
.gcb-pd-how__list span { font-size: 13px; line-height: 1.35; color: var(--gcb-green-2); }

/* Accordion: Chứng nhận an toàn · Chi tiết sản phẩm */
.gcb-pd-acc { margin-top: 20px; border-top: 1px solid var(--gcb-line); }
.gcb-pd-acc__item + .gcb-pd-acc__item { border-top: 1px solid var(--gcb-line); }
.gcb-pd-acc__item > summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 0; list-style: none; font-size: 17px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.gcb-pd-acc__item > summary::-webkit-details-marker { display: none; }
.gcb-pd-acc__item > summary small { font-size: 13px; font-weight: 400; color: var(--gcb-muted); }
.gcb-pd-acc__item > summary i { position: relative; flex: none; width: 14px; height: 14px; margin-top: 4px; transition: transform .25s; }
.gcb-pd-acc__item > summary i::before, .gcb-pd-acc__item > summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.8px; margin-top: -.9px; border-radius: 2px; background: currentColor; }
.gcb-pd-acc__item > summary i::after { transform: rotate(90deg); }
.gcb-pd-acc__item[open] > summary i { transform: rotate(45deg); }
.gcb-pd-acc__item > div { padding: 0 0 20px; }

.gcb-pd-cert { display: flex; align-items: center; gap: 24px; }
.gcb-pd-cert__shield { flex: 0 0 85px; width: 85px; height: auto; }
.gcb-pd-cert__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gcb-pd-cert__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.gcb-pd-cert__badge { width: 50px; height: 50px; display: grid; place-items: center; padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s; }
.gcb-pd-cert__badge img { width: 44px; height: 44px; }
.gcb-pd-cert__badge:hover { opacity: 1; transform: translateY(-2px); }
.gcb-pd-cert__badge.is-active { opacity: 1; border-color: var(--gcb-green-2); }
.gcb-pd-cert__desc { min-height: 80px; padding: 14px 20px; border: 1px solid #eef0ea; border-radius: 12px; background: #fff; text-align: center; }
.gcb-pd-cert__desc .gcb-pd-cert__title { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: var(--gcb-green-2); }
.gcb-pd-cert__desc p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--gcb-muted); }

.gcb-pd-specs { margin: 0; }
.gcb-pd-specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--gcb-line); font-size: 14.5px; }
.gcb-pd-specs dt { color: var(--gcb-muted); }
.gcb-pd-specs dd { margin: 0; text-align: right; }
.gcb-pd-desc { position: relative; margin-top: 14px; }
.gcb-pd-desc.is-clipped { max-height: 420px; overflow: hidden; }
.gcb-pd-desc.is-clipped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.gcb-pd-desc__inner { font-size: 15px; line-height: 1.75; color: #3a423b; }
.gcb-pd-desc__inner h2 { font-size: 19px; margin: 18px 0 8px; }
.gcb-pd-desc__inner h3 { font-size: 16.5px; margin: 16px 0 6px; }
.gcb-pd-desc__inner img { border-radius: 12px; height: auto; }
.gcb-pd-desc__more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 11px; border: 1.5px solid var(--gcb-line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--gcb-ink); cursor: pointer; }
.gcb-pd-desc__more[hidden] { display: none; }
.gcb-pd-desc__more:hover { border-color: var(--gcb-green-2); color: var(--gcb-green-2); }
.gcb-pd-desc__more i { width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.gcb-pd-desc__more.is-open i { transform: translateY(2px) rotate(-135deg); }

.gcb-pd-policies { display: flex; flex-direction: column; gap: 26px; margin: 0; padding: 26px 0 0; border-top: 1px solid var(--gcb-line); list-style: none; }
.gcb-pd-policies li { display: flex; align-items: flex-start; gap: 20px; }
.gcb-pd-policies img { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; }
.gcb-pd-policies p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--gcb-muted); }
.gcb-pd-policies .gcb-pd-policies__title { margin-bottom: 6px; font-size: 18px; font-weight: 700; color: var(--gcb-ink); }

/* Hộp hướng dẫn tìm size */
.gcb-sg { width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0 24px 22px; border: 0; border-radius: 20px; }
.gcb-sg::backdrop { background: rgba(15, 20, 15, .5); }
.gcb-sg__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; margin: 0 -24px 12px; padding: 18px 24px 12px; background: #fff; border-bottom: 1px solid var(--gcb-line); }
.gcb-sg__title { margin: 0; font-size: 18px; font-weight: 800; }
.gcb-sg__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--gcb-soft); font-size: 24px; line-height: 1; cursor: pointer; }
.gcb-sg__lead, .gcb-sg__note { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--gcb-muted); }
.gcb-sg__note { margin: 14px 0 0; }
.gcb-sg__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.gcb-sg__table th { padding: 10px 12px; background: #eef6ee; color: var(--gcb-green); text-align: left; font-weight: 700; }
.gcb-sg__table th:first-child { border-radius: 10px 0 0 10px; }
.gcb-sg__table th:last-child { border-radius: 0 10px 10px 0; }
.gcb-sg__table td { padding: 9px 12px; border-bottom: 1px solid var(--gcb-line); }

/* Tab Đánh giá + sản phẩm liên quan: tràn hết bề ngang dưới 2 cột */
.single-product div.product .woocommerce-tabs { margin-top: 60px; }
.single-product div.product .related > h2, .single-product div.product .upsells > h2 { margin: 56px 0 24px; font-size: 26px; font-weight: 800; text-transform: uppercase; }

@media (max-width: 900px) {
	.single-product div.product { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.single-product div.product > .woocommerce-product-gallery { position: static; }
	.single-product div.product > .summary { grid-column: 1; grid-row: auto; margin-top: 24px !important; }
	.single-product .summary .product_title { font-size: 26px; }
	.gcb-pd-price__now { font-size: 27px; }
	.gcb-gthumbs__nav--prev { left: -6px; }
	.gcb-gthumbs__nav--next { right: -6px; }
}
@media (max-width: 480px) {
	.gcb-pd-swatch { width: 76px; }
	.gcb-pd-swatch img { width: 76px; height: 76px; }
	.gcb-pd-cert { flex-direction: column; gap: 14px; }
	.gcb-pd-cert__body { width: 100%; }
	.gcb-pd-cert__badges { justify-content: center; }
	.gcb-pd-policies .gcb-pd-policies__title { font-size: 16.5px; }
}

/* Bài viết SEO cuối trang danh mục (inc/category-seo.php) — như xixa.vn */
.gcb-cat-seo { margin-top: -20px; padding: 48px 0 56px; background: #f6f7f5; }
.gcb-cat-seo__title { max-width: 1000px; margin: 0 auto 16px; font-size: 24px; font-weight: 800; text-align: center; }
.gcb-cat-seo__body { position: relative; max-width: 1000px; max-height: 220px; margin: 0 auto; overflow: hidden; font-size: 16.5px; line-height: 1.75; color: #333; }
.gcb-cat-seo__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(rgba(246, 247, 245, 0), #f6f7f5); pointer-events: none; transition: opacity .3s; }
.gcb-cat-seo__body.is-open { max-height: none; overflow: visible; }
.gcb-cat-seo__body.is-open::after { opacity: 0; }
.gcb-cat-seo__body h2, .gcb-cat-seo__body h3 { font-size: 20px; margin: 26px 0 10px; }
.gcb-cat-seo__body h4 { font-size: 17px; margin: 20px 0 8px; }
.gcb-cat-seo__body p { margin: 0 0 16px; }
.gcb-cat-seo__body img { max-width: 100%; height: auto; border-radius: 12px; }
.gcb-cat-seo__body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.gcb-cat-seo__body th, .gcb-cat-seo__body td { padding: 8px 12px; border: 1px solid var(--gcb-line); text-align: left; vertical-align: top; }
.gcb-cat-seo__body a { color: var(--gcb-green); text-decoration: underline; }
.gcb-cat-seo__toggle { display: block; position: relative; z-index: 1; margin: -40px auto 0; padding: 9px 28px; border: 1px solid var(--gcb-line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--gcb-green); cursor: pointer; }
.gcb-cat-seo__toggle:hover { background: #eef6ee; }
.gcb-cat-seo__body.is-open + .gcb-cat-seo__toggle { margin-top: 18px; }

/* Khối nút liên hệ trong bài ([gcb_lien_he]) + mục lục chèn trong bài ([gcb_muc_luc]) */
.gcb-contact-cta { margin: 28px 0; padding: 22px 24px; border-radius: 18px; background: #e6f4d2; text-align: center; }
.gcb-contact-cta__title { margin: 0 0 14px !important; font-weight: 700; color: var(--gcb-ink); }
.gcb-contact-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gcb-contact-cta__btns a { text-decoration: none !important; }
.gcb-contact-cta__btns .gcb-btn:not(.gcb-btn--ghost) { color: #fff !important; }
.gcb-toc--content { margin: 24px 0; }
.gcb-toc--content .gcb-toc__list { max-height: none; }

/* =========================================================
   Trang “Giỏ hàng & Thanh toán” (inc/checkout.php) — như xixa.vn
   ========================================================= */
.woocommerce-checkout .gcb-page { padding-bottom: 130px; }
.woocommerce-checkout .gcb-page-head { margin: 0; }
.gcb-ck__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: start; }
.gcb-ck__box { padding: 24px; border: 1px solid var(--gcb-line); border-radius: 16px; background: #fff; }
.gcb-ck__title { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 18px; font-weight: 700; color: var(--gcb-green); }
.gcb-ck__title--pay { margin-top: 28px; }

/* Trường nhập */
.gcb-ck .woocommerce-billing-fields__field-wrapper, .gcb-ck .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gcb-ck .woocommerce-additional-fields { margin-top: 16px; }
.gcb-ck .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr; }
.gcb-ck .form-row { width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; grid-column: span 2; }
.gcb-ck .form-row-first { grid-column: 1; }
.gcb-ck .form-row-last { grid-column: 2; }
.gcb-ck .gcb-hidden-field { display: none !important; }
.gcb-ck .form-row .woocommerce-input-wrapper { display: block; }
.gcb-ck .form-row input.input-text, .gcb-ck .form-row textarea, .gcb-ck .form-row select {
	width: 100%; height: 48px; padding: 0 16px; border: 1.5px solid var(--gcb-line); border-radius: 14px; background: #fdfdfd;
	font: inherit; font-size: 15px; color: var(--gcb-ink); transition: border-color .15s, box-shadow .15s, background .15s;
}
.gcb-ck .form-row textarea { height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.gcb-ck .form-row input.input-text:focus, .gcb-ck .form-row textarea:focus { outline: none; border-color: var(--gcb-green-2); background: #fff; }
.gcb-ck .form-row.woocommerce-invalid input.input-text { border-color: #e5484d; }
.gcb-ck .form-row.woocommerce-validated input.input-text { border-color: var(--gcb-line); }
.gcb-ck .form-row input::placeholder, .gcb-ck .form-row textarea::placeholder { color: #8a8f8b; }
.gcb-ck .form-row .required { display: none; }

/* Ô chọn tỉnh / phường */
.gcb-addr { position: relative; }
.gcb-addr input.input-text { padding-right: 40px; cursor: pointer; }
.gcb-addr__arrow { position: absolute; right: 14px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--gcb-muted); pointer-events: none; transition: transform .2s; }
.gcb-addr__arrow svg { display: block; width: 100%; height: 100%; }
.gcb-addr.is-open .gcb-addr__arrow { transform: translateY(-50%) rotate(180deg); }
.gcb-addr.is-disabled input.input-text { background: #f4f5f3; cursor: not-allowed; }
.gcb-addr__list {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid var(--gcb-line); border-radius: 14px; display: none;
}
.gcb-addr.is-open .gcb-addr__list { display: block; }
.gcb-addr__list li { padding: 9px 12px; border-radius: 9px; font-size: 14.5px; cursor: pointer; }
.gcb-addr__list li:hover, .gcb-addr__list li.is-act { background: var(--gcb-soft); }
.gcb-addr__list li.is-sel { background: #eef6ee; color: var(--gcb-green); font-weight: 600; }
.gcb-addr__list li.is-empty { color: var(--gcb-muted); cursor: default; }

/* Lưu thông tin */
.gcb-ck-save { margin-top: 16px; padding: 13px 15px; border: 1px solid #e0ead4; border-radius: 12px; background: #f6f9f2; }
.gcb-ck-save__row { display: flex; align-items: flex-start; gap: 11px; margin: 0; cursor: pointer; }
.gcb-ck-save__row input { width: 19px; height: 19px; margin: 1px 0 0; flex: none; accent-color: var(--gcb-green-2); }
.gcb-ck-save__row b { display: block; font-size: 14px; color: var(--gcb-ink); }
.gcb-ck-save__row i { display: block; margin-top: 2px; font-size: 12.5px; font-style: normal; color: var(--gcb-muted); line-height: 1.45; }
.gcb-ck-save__clear { margin: 8px 0 0 30px; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: #c2415d; text-decoration: underline; cursor: pointer; }

/* Hình thức thanh toán */
.gcb-ck #payment { background: none; border-radius: 0; }
.gcb-ck #payment ul.payment_methods { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; list-style: none; }
.gcb-ck #payment ul.payment_methods li { margin: 0; padding: 0; line-height: 1.4; }
.gcb-pay__card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1.5px solid var(--gcb-line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.gcb-pay__card:hover { border-color: #cfe3cf; }
.gcb-pay.is-active .gcb-pay__card { border-color: var(--gcb-green-2); background: #f7fbf3; }
.gcb-pay__left { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--gcb-ink); }
.gcb-pay__left input { width: 18px; height: 18px; margin: 0; accent-color: var(--gcb-green-2); }
.gcb-pay__icon { display: flex; color: #444; }
.gcb-pay__icon img, .gcb-pay__icon svg { height: 24px; width: auto; }
.gcb-ck #payment div.payment_box { margin: 8px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--gcb-soft); color: var(--gcb-muted); font-size: 13.5px; }
.gcb-ck #payment div.payment_box::before { display: none; }
.gcb-ck #payment div.payment_box p:last-child { margin: 0; }
.gcb-ck #payment .place-order { margin: 18px 0 0 !important; padding: 0 !important; }
.gcb-ck #payment #place_order { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.gcb-ck .woocommerce-terms-and-conditions-wrapper .form-row { margin: 0 !important; }
.gcb-ck .woocommerce-terms-and-conditions-wrapper label { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #555; cursor: pointer; }
.gcb-ck .woocommerce-terms-and-conditions-wrapper input { width: 17px; height: 17px; margin: 1px 0 0; flex: none; accent-color: var(--gcb-green-2); }
.gcb-ck .woocommerce-terms-and-conditions-wrapper a { color: var(--gcb-green); text-decoration: underline; }
.gcb-ck .woocommerce-terms-and-conditions-wrapper abbr { display: none; }

/* Cột phải: giỏ hàng */
.gcb-ck__right { position: sticky; top: calc(var(--gcb-top-h, 0px) + 16px); }
.gcb-ck-cart.is-busy, .woocommerce-checkout .blockUI.blockOverlay + .gcb-ck-cart { opacity: .6; pointer-events: none; }
.gcb-ck-cart__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.gcb-ck-cart__title { margin: 0; font-size: 18px; font-weight: 700; color: var(--gcb-ink); }
.gcb-ck-cart__clear { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: #ff3b30; cursor: pointer; }
.gcb-ck-cart__clear:hover { text-decoration: underline; }
.gcb-ck-items { max-height: 420px; overflow-y: auto; margin: 0; padding: 0; list-style: none; scrollbar-width: thin; }
.gcb-ck-item { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f3f3f3; transition: opacity .2s; }
.gcb-ck-item.is-removing { opacity: .35; }
.gcb-ck-item__pic { display: block; width: 70px; height: 70px; border-radius: 10px; overflow: hidden; background: var(--gcb-soft); border: 1px solid #f0f0f0; }
.gcb-ck-item__pic img { width: 100%; height: 100%; object-fit: cover; }
.gcb-ck-item__name { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.gcb-ck-item__name a { color: var(--gcb-ink); }
.gcb-ck-item__name a:hover { color: var(--gcb-green); }
.gcb-ck-item__var { margin: 3px 0 8px; font-size: 12.5px; color: var(--gcb-muted); }
.gcb-gift-tag { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 6px; background: #e6f4d2; font-size: 11.5px; font-weight: 700; color: #006600; vertical-align: 1px; }
.gcb-ck-item__giftqty { margin: 0; font-size: 13px; color: var(--gcb-muted); }
.gcb-ck-qty { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--gcb-line); border-radius: 999px; }
.gcb-ck-qty button { width: 32px; height: 100%; padding: 0; border: 0; background: none; font-size: 16px; color: var(--gcb-ink); cursor: pointer; border-radius: 999px; }
.gcb-ck-qty button:hover { background: #f3f9f2; color: var(--gcb-green); }
.gcb-ck-qty input { width: 34px; height: 100%; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; text-align: center; -moz-appearance: textfield; }
.gcb-ck-qty input::-webkit-inner-spin-button, .gcb-ck-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.gcb-ck-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.gcb-ck-item__price { font-size: 14.5px; font-weight: 700; color: var(--gcb-green); }
.gcb-ck-item__was { font-size: 12px; color: #9aa39b; }
.gcb-ck-item__remove { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: #555; cursor: pointer; }
.gcb-ck-item__remove svg { width: 15px; height: 15px; }
.gcb-ck-item__remove:hover { color: #e5484d; }

.gcb-ck-coupon { display: flex; gap: 12px; margin: 20px 0 10px; }
.gcb-ck-coupon input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 1.5px solid var(--gcb-line); border-radius: 999px; font: inherit; font-size: 14.5px; }
.gcb-ck-coupon input:focus { outline: none; border-color: var(--gcb-green-2); }
.gcb-ck-coupon button { flex: none; min-width: 120px; height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: #6f7570; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s; }
.gcb-ck-coupon button:hover { background: var(--gcb-green-2); }
.gcb-ck-coupon__msg { margin: 0 0 12px; font-size: 13px; }
.gcb-ck-coupon__msg .is-ok { color: var(--gcb-green); }
.gcb-ck-coupon__msg .is-err { color: #e5484d; }

.gcb-ck-totals { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.gcb-ck-totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: #555; }
.gcb-ck-totals dt, .gcb-ck-totals dd { margin: 0; }
.gcb-ck-totals dd { text-align: right; color: var(--gcb-ink); }
.gcb-ck-totals del { color: #9aa39b; margin-right: 4px; }
.gcb-ck-free { color: var(--gcb-green); font-weight: 700; }
.gcb-ck-muted { color: var(--gcb-muted); font-size: 13.5px; }
.gcb-ck-totals__coupon dd { color: #e5484d; font-weight: 600; }
.gcb-ck-totals__coupon button { padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: #c2415d; text-decoration: underline; cursor: pointer; }
.gcb-ck-totals .gcb-ck-totals__grand { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--gcb-line); font-size: 20px; font-weight: 800; color: var(--gcb-ink); }
.gcb-ck-totals__grand dd { color: var(--gcb-green); }
.gcb-ck-totals__grand dd .woocommerce-Price-amount { font-weight: 800; }

.gcb-ck-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid #f0f0f0; list-style: none; }
.gcb-ck-trust li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--gcb-ink); }
.gcb-ck-trust li span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e6f4d2; color: var(--gcb-green); }
.gcb-ck-trust li span svg { width: 20px; height: 20px; }
.gcb-ck-trust li span img { width: 24px; height: auto; }

.gcb-ck-suggest { margin-top: 24px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.gcb-ck-suggest__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.gcb-ck-suggest__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gcb-ck-suggest__card { display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; color: var(--gcb-ink); }
.gcb-ck-suggest__pic { display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--gcb-soft); }
.gcb-ck-suggest__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gcb-ck-suggest__card:hover img { transform: scale(1.04); }
.gcb-ck-suggest__name { font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.gcb-ck-suggest__card .gcb-price__now { font-size: 14px; }
.gcb-ck-suggest__card .gcb-price__was, .gcb-ck-suggest__card .gcb-price__off { display: none; }

/* Thanh đặt hàng dính đáy */
.gcb-ck-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 890; display: flex; align-items: stretch; min-height: 64px; background: #fff; border-top: 1px solid var(--gcb-line); }
.gcb-ck-bar__meta { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-evenly; gap: 20px; padding: 0 28px; background: #eaf5dc; }
.gcb-ck-bar__pay { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gcb-ck-bar__pay img { flex: none; width: 32px; height: auto; }
.gcb-ck-bar__pay b { display: block; font-size: 14px; color: var(--gcb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcb-ck-bar__pay small { display: block; font-size: 12px; font-weight: 600; color: var(--gcb-green); }
.gcb-ck-bar__div { width: 1px; height: 30px; background: #cfe0bd; }
.gcb-ck-bar__voucher { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--gcb-ink); cursor: pointer; }
.gcb-ck-bar__vic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gcb-green-2); color: #fff; }
.gcb-ck-bar__vic svg { width: 14px; height: 14px; }
.gcb-ck-bar__checkout { flex: none; display: flex; align-items: stretch; }
.gcb-ck-bar__total { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 0 24px; }
.gcb-ck-bar__lbl { display: none; }
.gcb-ck-bar__val { font-size: 23px; font-weight: 800; line-height: 1.1; letter-spacing: -.3px; color: var(--gcb-green); }
.gcb-ck-bar__save { font-size: 12px; font-weight: 600; color: #e5484d; }
.gcb-ck-bar__btn { min-width: 200px; padding: 0 44px; border: 0; background: var(--gcb-green-2); color: #fff; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .4px; cursor: pointer; transition: background .2s; }
.gcb-ck-bar__btn:hover { background: #1b651c; }
.gcb-ck-bar.is-busy .gcb-ck-bar__btn { opacity: .6; pointer-events: none; }

/* Thông báo lỗi của WooCommerce ở đầu form */
.gcb-ck .woocommerce-NoticeGroup-checkout, .woocommerce-checkout .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-checkout .woocommerce-error { margin: 0 0 20px; padding: 14px 18px 14px 44px; border: 1px solid #f5c2c4; border-top-width: 1px; border-radius: 12px; background: #fff5f5; color: #9b1c1f; font-size: 14px; list-style: none; }
.woocommerce-checkout .woocommerce-error::before { top: 14px; left: 16px; color: #e5484d; }

@media (max-width: 1024px) {
	.gcb-ck__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.gcb-ck__right { position: static; }
}
@media (max-width: 768px) {
	.gcb-ck__box { padding: 18px 16px; }
	.gcb-ck .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; gap: 12px; }
	.gcb-ck .form-row, .gcb-ck .form-row-first, .gcb-ck .form-row-last { grid-column: 1; }
	.gcb-ck-trust { grid-template-columns: repeat(2, 1fr); }
	.gcb-ck-suggest__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gcb-ck-bar { flex-direction: column; }
	.gcb-ck-bar__meta { justify-content: space-between; padding: 8px 16px; }
	.gcb-ck-bar__checkout { justify-content: space-between; }
	.gcb-ck-bar__total { flex-direction: row; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 10px 16px; }
	.gcb-ck-bar__lbl { display: inline; font-size: 13px; color: var(--gcb-muted); }
	.gcb-ck-bar__val { font-size: 20px; }
	.gcb-ck-bar__btn { min-width: 150px; padding: 0 24px; }
	.woocommerce-checkout .gcb-page { padding-bottom: 170px; }
}

/* Trang thanh toán không hiện chân trang (như xixa.vn), trang cảm ơn thì có */
.woocommerce-checkout:not(.woocommerce-order-received) .gcb-footer, .woocommerce-checkout:not(.woocommerce-order-received) .gcb-news { display: none; }

/* Trang “Đặt hàng thành công” */
.gcb-ty { max-width: 560px; margin: 10px auto 40px; padding: 36px 32px 32px; border: 1px solid var(--gcb-line); border-radius: 22px; background: #fff; text-align: center; }
.gcb-ty__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: #e6f4d2; color: var(--gcb-green); }
.gcb-ty__icon svg { width: 34px; height: 34px; }
.gcb-ty__title { margin: 0 0 10px; font-size: 24px; font-weight: 800; color: var(--gcb-ink); }
.gcb-ty__msg { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--gcb-muted); }
.woocommerce .gcb-ty ul.order_details.gcb-ty__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.woocommerce .gcb-ty ul.order_details.gcb-ty__facts::before, .woocommerce .gcb-ty ul.order_details.gcb-ty__facts::after { display: none; }
.woocommerce .gcb-ty ul.order_details.gcb-ty__facts li { float: none; margin: 0; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--gcb-soft); text-align: left; font-size: 12.5px; text-transform: none; color: var(--gcb-muted); }
.woocommerce .gcb-ty ul.order_details.gcb-ty__facts li strong { display: block; margin-top: 3px; font-size: 15px; color: var(--gcb-ink); }
.gcb-ty__btn { width: 100%; }
/* Giỏ hàng trống (inc/checkout.php) */
.gcb-cart-empty__box { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 0 56px; }
.gcb-cart-empty__icon { width: 64px; height: 64px; color: var(--gcb-green); }
.gcb-cart-empty__title { margin: 16px 0 6px; font-size: 22px; font-weight: 700; color: var(--gcb-ink); }
.gcb-cart-empty__msg { margin: 0 0 22px; color: var(--gcb-muted); }
.gcb-cart-empty__more { padding-top: 40px; border-top: 1px solid var(--gcb-line); }
.gcb-cart-empty__more .gcb-sec__title { margin: 0 0 32px; text-align: center; }
.woocommerce-order-received .woocommerce-order-details, .woocommerce-order-received .woocommerce-customer-details { max-width: 860px; margin-left: auto; margin-right: auto; }
@media (max-width: 480px) { .woocommerce .gcb-ty ul.order_details.gcb-ty__facts { grid-template-columns: 1fr; } .gcb-ty { padding: 28px 18px 22px; } }

/* Popup giỏ hàng khi rê chuột vào icon giỏ (header) — như xixa.vn */
.gcb-cart-wrap { position: relative; display: inline-flex; }
.gcb-minicart { display: none; }
@media (hover: hover) and (min-width: 1025px) {
	.gcb-minicart {
		display: block; position: absolute; top: calc(100% + 12px); right: -8px; z-index: 950; width: 360px; padding: 16px;
		background: #fff; border: 1px solid var(--gcb-line); border-radius: 14px;
		opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility 0s .2s; cursor: default;
	}
	.gcb-minicart::before { content: ""; position: absolute; bottom: 100%; right: 20px; border: 8px solid transparent; border-bottom-color: #fff; filter: drop-shadow(0 -1px 0 var(--gcb-line)); }
	.gcb-minicart::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; } /* cầu nối để rê chuột từ icon xuống không bị tắt */
	.gcb-cart-wrap:hover .gcb-minicart, .gcb-cart-wrap:focus-within .gcb-minicart { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
	.woocommerce-checkout .gcb-minicart { display: none; } /* đang ở trang thanh toán thì không cần */
}
.gcb-minicart__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; font-size: 13px; color: #555; }
.gcb-minicart__head strong { font-size: 14px; color: var(--gcb-ink); }
.gcb-minicart__head em { font-style: normal; }
.gcb-minicart__head a { font-size: 13px; font-weight: 600; color: var(--gcb-green); }
.gcb-minicart__head a:hover { text-decoration: underline; }
.gcb-minicart__items { display: flex; flex-direction: column; gap: 12px; max-height: 280px; overflow-y: auto; margin: 0 0 16px; padding: 0 4px 0 0; list-style: none; scrollbar-width: thin; }
.gcb-minicart__item { position: relative; display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #f7f7f7; transition: opacity .2s; }
.gcb-minicart__item:last-child { padding-bottom: 0; border-bottom: 0; }
.gcb-minicart__item.is-removing { opacity: .35; pointer-events: none; }
.gcb-minicart__pic { flex: none; width: 56px; height: 56px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: var(--gcb-soft); }
.gcb-minicart__pic img { width: 100%; height: 100%; object-fit: cover; }
.gcb-minicart__info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; padding-right: 20px; }
.gcb-minicart__name { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--gcb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcb-minicart__name:hover { color: var(--gcb-green); }
.gcb-minicart__meta, .gcb-minicart__qty { font-size: 11.5px; color: #777; }
.gcb-minicart__price { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.gcb-minicart__price b { color: var(--gcb-green); }
.gcb-minicart__price del { font-size: 11.5px; color: #999; }
.gcb-minicart__remove { position: absolute; top: 0; right: 0; padding: 2px; border: 0; background: none; font-size: 18px; line-height: 1; color: #bbb; cursor: pointer; transition: color .15s; }
.gcb-minicart__remove:hover { color: #ff3b30; }
.gcb-minicart__empty { margin: 18px 0; font-size: 13px; text-align: center; color: #999; }
.gcb-minicart__btn { display: block; padding: 12px; border-radius: 10px; background: var(--gcb-green-2); color: #fff !important; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-align: center; transition: background .15s; }
.gcb-minicart__btn:hover { background: #1b651c; }

/* Phân trang cửa hàng: khung <ul class="page-numbers"> không nhận kiểu nút tròn của .page-numbers */
.gcb-shop .woocommerce-pagination ul.page-numbers { min-width: 0; height: auto; border-radius: 0; background: none; }

/* =========================================================
   Trang chi tiết sản phẩm — thiết kế mới (ảnh dọc bên trái, lưới size, hộp mua,
   phần dưới ảnh: thanh mục + Đánh giá / Công năng / Thông tin / Hình ảnh)
   ========================================================= */
.single-product div.product { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 48px; }
.single-product div.product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; }
.single-product div.product > .gcb-pd-sections { grid-column: 1; grid-row: 2; min-width: 0; }
.single-product div.product > .summary { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.single-product div.product > .summary.is-sticky { position: sticky; top: calc(var(--gcb-top-h, 0px) + 16px); }

/* Ảnh: dải ảnh nhỏ dọc bên trái */
@media (min-width: 901px) {
	.single-product div.product .woocommerce-product-gallery { display: grid !important; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; }
	.single-product div.product .woocommerce-product-gallery > .flex-viewport, .single-product div.product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { grid-column: 2; grid-row: 1; }
	.single-product div.product .woocommerce-product-gallery > .gcb-gthumbs, .single-product div.product .woocommerce-product-gallery > .flex-control-thumbs { grid-column: 1; grid-row: 1; align-self: stretch; }
	.single-product div.product .woocommerce-product-gallery__trigger { right: 16px; left: auto; }
	.single-product div.product .gcb-gthumbs .flex-control-thumbs { position: absolute; inset: 0; flex-direction: column; gap: 12px; margin: 0 !important; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; }
	.single-product div.product .gcb-gthumbs .flex-control-thumbs li { flex: none; width: 100% !important; }
	.single-product div.product .gcb-gthumbs .flex-control-thumbs li img { border-radius: 0; }
	/* Dải ảnh dọc: không dùng nút lên/xuống — cuộn chuột trong dải, bấm ảnh thì dải tự cuộn tới ảnh đó */
	.gcb-gthumbs .gcb-gthumbs__nav { display: none; }
	.single-product div.product .gcb-gthumbs .flex-control-thumbs { scrollbar-width: none; }
	.single-product div.product .gcb-gthumbs .flex-control-thumbs::-webkit-scrollbar { display: none; }
}
.gcb-gthumbs__nav--next svg { transform: rotate(180deg); }
.gcb-gthumbs:not(.is-overflow) .gcb-gthumbs__nav { display: none; }

/* Cột phải */
.single-product .summary .product_title { font-size: 28px; }
.gcb-pd-size__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gcb-pd-size__grid button {
	padding: 10px 12px; border: 1px solid var(--gcb-line); border-radius: 8px; background: #fff;
	font: inherit; font-size: 12.5px; line-height: 1.35; color: #444; text-align: center; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.gcb-pd-size__grid button b { font-weight: 600; color: var(--gcb-ink); }
.gcb-pd-size__grid button:hover:not(:disabled) { border-color: var(--gcb-green-2); }
.gcb-pd-size__grid button.is-active { border-color: var(--gcb-green-2); background: #f3f9ee; box-shadow: inset 0 0 0 1px var(--gcb-green-2); color: var(--gcb-green); }
.gcb-pd-size__grid button:disabled { background: #fafafa; color: #bbb; cursor: not-allowed; }
.gcb-pd-size__grid button:disabled b { color: #bbb; }
.gcb-pd-size__grid.is-need button:not(:disabled) { border-color: #e5484d; animation: gcb-sbuy-shake .35s; }
.gcb-pd-size__head { margin-bottom: 10px; }
.gcb-pd-size__guide { font-size: 13px; }

/* Hộp mua: số lượng · Thêm vào giỏ · Thích */
.single-product .summary .woocommerce-variation-add-to-cart, .single-product .summary form.cart:not(.variations_form) {
	align-items: center; gap: 12px; margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--gcb-line); border-radius: 16px; background: #fff;
}
.single-product .summary .quantity { height: 46px; }
.woocommerce.single-product .summary .single_add_to_cart_button, .single-product .summary .single_add_to_cart_button.button.alt { height: 46px; }
.gcb-like { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 2px; border: 0; background: none; font: inherit; font-size: 11.5px; color: #555; cursor: pointer; }
.gcb-like svg { width: 22px; height: 22px; transition: transform .2s, color .2s, fill .2s; }
.gcb-like:hover svg { transform: scale(1.1); }
.gcb-like.is-on { color: #e5484d; }
.gcb-like.is-on svg { fill: currentColor; }

/* Phần dưới ảnh */
.gcb-pd-sections { margin-top: 36px; }
.gcb-pd-nav { position: sticky; top: var(--gcb-top-h, 0px); z-index: 20; display: flex; gap: 28px; margin: 0 0 8px; padding: 14px 0 0; background: #fff; border-bottom: 1px solid var(--gcb-line); overflow-x: auto; scrollbar-width: none; }
.gcb-pd-nav::-webkit-scrollbar { display: none; }
.gcb-pd-nav a { flex: none; padding: 0 0 12px; border-bottom: 2px solid transparent; font-size: 14.5px; font-weight: 500; color: #333; white-space: nowrap; transition: color .15s, border-color .15s; }
.gcb-pd-nav a:hover { color: var(--gcb-green); }
.gcb-pd-nav a.is-active { border-bottom-color: var(--gcb-green-2); color: var(--gcb-green); font-weight: 600; }
.gcb-pd-sec { padding: 28px 0 32px; border-bottom: 1px solid var(--gcb-line); scroll-margin-top: calc(var(--gcb-top-h, 0px) + 56px); }
.gcb-pd-sec:last-child { border-bottom: 0; }
.gcb-pd-sec__title { margin: 0 0 18px; font-size: 21px; font-weight: 700; color: var(--gcb-ink); }
.gcb-pd-sec__sub { margin: 24px 0 12px; font-size: 16px; font-weight: 700; }
.gcb-pd-sec__sub small { font-size: 12.5px; font-weight: 400; color: var(--gcb-muted); }
.gcb-pd-sec .gcb-pd-how { margin-top: 0; }
.gcb-pd-short ul { margin: 0; padding-left: 20px; }
.gcb-pd-short li { margin: 4px 0; font-size: 14.5px; color: #444; }
.gcb-pd-certbox { margin-bottom: 8px; }
.gcb-pd-sec .gcb-pd-policies { margin-top: 26px; }
.gcb-pd-photos { display: flex; flex-direction: column; gap: 12px; }
.gcb-pd-photos figure { margin: 0; }
.gcb-pd-photos img { display: block; width: 100%; height: auto; border-radius: 16px; }
/* Video trong khung ảnh sản phẩm (inc/product-videos.php): slide đầu tiên (trước ảnh chính), bấm ảnh bìa mới tải video (initVideos).
   Ảnh bìa đặt giữa khung (không cắt), nền là chính ảnh bìa làm mờ; video / YouTube / TikTok phủ kín khung, nền đen */
.single-product div.product .woocommerce-product-gallery__image.gcb-gvideo { cursor: default; }
.gcb-pd-video__frame { position: relative; overflow: hidden; background: #000; }
.gcb-pd-video__frame > video, .gcb-pd-video__frame > iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: #000; }
.gcb-pd-video__play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #111; cursor: pointer; }
.single-product div.product .gcb-gvideo .gcb-pd-video__play img, .single-product div.product .gcb-gvideo .gcb-pd-video__play video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; }
.single-product div.product .gcb-gvideo .gcb-pd-video__play .gcb-pd-video__bg { object-fit: cover; filter: blur(24px) brightness(.75); transform: scale(1.15); }
.single-product div.product .gcb-gvideo .gcb-pd-video__play .gcb-pd-video__poster { object-fit: contain; }
.gcb-pd-video__brand { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #1f1f1f, #000 60%); color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.gcb-pd-video__icon { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(0, 0, 0, .45); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); transition: background .2s, transform .2s; }
.gcb-pd-video__icon::before { content: ""; width: 0; height: 0; margin-left: 6px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.gcb-pd-video__play:hover .gcb-pd-video__icon, .gcb-pd-video__play:focus-visible .gcb-pd-video__icon { background: var(--gcb-green); transform: scale(1.06); }
/* Ô video trong dải ảnh nhỏ */
.single-product div.product .flex-control-thumbs li.gcb-gthumb-video { position: relative; }
.single-product div.product .flex-control-thumbs li.gcb-gthumb-video::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); pointer-events: none; }

/* Đánh giá */
.gcb-rv__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; }
.gcb-rv__title { margin: 0; font-size: 18px; font-weight: 700; }
.gcb-rv__title b { font-size: 28px; font-weight: 800; }
.gcb-rv__title small { font-size: 14px; font-weight: 500; color: #444; }
.gcb-rv__dot { font-weight: 800; }
.gcb-rv__stat { margin: 0; font-size: 14px; }
.gcb-rv__stat b { font-size: 22px; font-weight: 800; margin-right: 2px; }
.gcb-rv__stat small { display: inline-block; margin-left: 6px; font-size: 12px; color: var(--gcb-muted); }
.gcb-rv__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gcb-rv__filters button { padding: 7px 16px; border: 1px solid #d6ecc6; border-radius: 999px; background: #f3faec; font: inherit; font-size: 12.5px; color: #555; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.gcb-rv__filters button:hover:not(:disabled) { border-color: var(--gcb-green-2); }
.gcb-rv__filters button.is-active { border-color: #b9e090; background: #d8f0bf; color: var(--gcb-green); font-weight: 600; }
.gcb-rv__filters button:disabled { opacity: .5; cursor: default; }
.gcb-rv__list { margin: 0; padding: 0; list-style: none; }
.gcb-rv__item { display: flex; gap: 12px; padding: 18px 0; border-top: 1px solid #f1f1f1; }
.gcb-rv__item:first-child { border-top: 0; padding-top: 4px; }
.gcb-rv__item[hidden], .gcb-rv__more[hidden], .gcb-rv__none[hidden] { display: none; }
.gcb-rv__item:not([hidden]) ~ .gcb-rv__item:not([hidden]) { border-top: 1px solid #f1f1f1; padding-top: 18px; }
.gcb-rv__avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e6f4d2; color: var(--gcb-green); font-weight: 700; }
.gcb-rv__body { min-width: 0; flex: 1; }
.gcb-rv__who { margin: 0; font-size: 13.5px; }
.gcb-rv__who time { margin-left: 6px; font-size: 12px; color: var(--gcb-muted); }
.gcb-rv__stars svg { width: 14px; height: 14px; }
.gcb-rv__var, .gcb-rv__fit { margin: 4px 0 0; font-size: 12.5px; color: var(--gcb-muted); }
.gcb-rv__fit b { color: var(--gcb-ink); }
.gcb-rv__text { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: #333; }
.gcb-rv__media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gcb-rv__thumb { position: relative; width: 96px; height: 96px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--gcb-soft); cursor: zoom-in; }
.gcb-rv__thumb img, .gcb-rv__thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gcb-rv__thumb:hover img { transform: scale(1.05); }
.gcb-rv__thumb.is-video { cursor: pointer; }
.gcb-rv__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .25); }
.gcb-rv__play::before { content: ""; width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.gcb-rv__more { display: block; margin: 16px auto 0; padding: 9px 28px; border: 1px solid var(--gcb-line); border-radius: 999px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.gcb-rv__more:hover { border-color: var(--gcb-green-2); color: var(--gcb-green); }
.gcb-rv__empty, .gcb-rv__none { margin: 0; padding: 18px; border-radius: 12px; background: var(--gcb-soft); font-size: 14px; color: var(--gcb-muted); }
/* Hộp xem ảnh / video đánh giá (<dialog>, lớp trên cùng) */
.gcb-rv-lb { position: fixed; inset: 0; z-index: 12000; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 14, 10, .92); opacity: 1; overflow: hidden; }
.gcb-rv-lb:not([open]) { display: none; }
.gcb-rv-lb::backdrop { background: transparent; }
.gcb-rv-lb__stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 56px 16px 32px; box-sizing: border-box; }
.gcb-rv-lb__stage img, .gcb-rv-lb__stage video { display: block; max-width: min(92vw, 900px); max-height: calc(100vh - 100px); width: auto; height: auto; border-radius: 12px; background: #000; opacity: 1; filter: none; }
.gcb-rv-lb__close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

@media (max-width: 900px) {
	.single-product div.product { grid-template-columns: minmax(0, 1fr); }
	.single-product div.product > .woocommerce-product-gallery, .single-product div.product > .summary, .single-product div.product > .gcb-pd-sections { grid-column: 1; grid-row: auto; }
	.single-product div.product > .summary.is-sticky { position: static; }
	.gcb-pd-nav { gap: 20px; }
	.gcb-rv__thumb { width: 80px; height: 80px; }
	.gcb-pd-video__icon { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
}
/* Điện thoại: 1 hàng [ 1 ▾ ] [ Thêm vào giỏ hàng ] [ ♡ Thích ] — số lượng là ô xổ danh sách tự vẽ (initQtySelect),
   nút − + và ô nhập gốc ẩn đi (ô nhập vẫn gửi theo form) */
.gcb-qty-pick { display: none; }
@media (max-width: 480px) {
	.single-product .summary .woocommerce-variation-add-to-cart, .single-product .summary form.cart:not(.variations_form) { gap: 8px; padding: 10px 12px; }
	.single-product .summary .quantity { position: relative; flex: 0 0 auto; width: 68px; height: 46px; overflow: visible; border-color: var(--gcb-green-2); }
	.single-product .summary .quantity .gcb-qty-btn, .single-product .summary .quantity input.qty { display: none; }
	.gcb-qty-pick { display: block; width: 100%; height: 100%; }
	.gcb-qty-pick__btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; padding: 0 4px 0 8px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 16px; font-weight: 700; color: var(--gcb-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
	.gcb-qty-pick__btn svg { color: var(--gcb-green-2); transition: transform .2s; }
	.gcb-qty-pick.is-open .gcb-qty-pick__btn svg { transform: rotate(180deg); }
	.gcb-qty-pick__menu { position: absolute; left: -2px; bottom: calc(100% + 10px); z-index: 30; width: 150px; padding: 6px; border: 1px solid var(--gcb-line); border-radius: 16px; background: #fff; animation: gcb-qty-pop .16s ease-out; }
	.gcb-qty-pick__menu[hidden] { display: none; }
	.gcb-qty-pick.is-down .gcb-qty-pick__menu { top: calc(100% + 10px); bottom: auto; }
	.gcb-qty-pick__title { margin: 4px 10px 6px; font-size: 12px; font-weight: 600; color: var(--gcb-muted); text-transform: uppercase; letter-spacing: .04em; }
	.gcb-qty-pick__menu ul { max-height: 264px; margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
	.gcb-qty-pick__menu li { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--gcb-ink); cursor: pointer; }
	.gcb-qty-pick__menu li + li { margin-top: 2px; }
	.gcb-qty-pick__menu li svg { opacity: 0; color: var(--gcb-green); }
	.gcb-qty-pick__menu li:active { background: #f3f5f1; }
	.gcb-qty-pick__menu li.is-on { background: #eef8e4; color: var(--gcb-green); }
	.gcb-qty-pick__menu li.is-on svg { opacity: 1; }
	.woocommerce.single-product .summary .single_add_to_cart_button, .single-product .summary .single_add_to_cart_button.button.alt { flex: 1 1 auto; min-width: 0; padding: 0 12px; font-size: 14.5px; white-space: nowrap; gap: 6px; }
}
@keyframes gcb-qty-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }

/* Sản phẩm tương tự nằm ngoài khung sản phẩm (inc/single-product.php) */
.single-product .gcb-shop > .related, .single-product .gcb-shop > .upsells { margin-top: 20px; }
.single-product .gcb-shop > .related > h2, .single-product .gcb-shop > .upsells > h2 { margin: 48px 0 24px; font-size: 26px; font-weight: 800; text-transform: uppercase; }

/* =========================================================
   Ảnh sản phẩm: nút ‹ › trên ảnh lớn + trình xem toàn màn hình (assets/js/gallery-lightbox.js, như xixa.vn)
   ========================================================= */
.gcb-gnav { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; pointer-events: none; }
.gcb-gnav__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(0, 0, 0, .06); border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--gcb-green); cursor: pointer; pointer-events: auto; opacity: 0; transition: opacity .2s, background .15s, color .15s; }
.woocommerce-product-gallery:hover .gcb-gnav__btn, .gcb-gnav__btn:focus-visible { opacity: 1; }
.gcb-gnav__btn:hover { background: var(--gcb-green); color: #fff; }
@media (hover: none) { .gcb-gnav__btn { opacity: 1; width: 38px; height: 38px; } }
@media (max-width: 700px) { .gcb-gnav { display: none; } } /* điện thoại: vuốt ảnh, không cần nút ‹ › */
/* Điện thoại: ảnh lớn + dải ảnh nhỏ tràn hết chiều rộng màn hình (bù lề 20px của .gcb-container) */
@media (max-width: 700px) {
	.single-product div.product > .woocommerce-product-gallery { width: calc(100% + 40px) !important; margin-left: -20px !important; margin-right: -20px !important; }
	.single-product div.product .flex-control-thumbs { gap: 4px; margin-top: 4px !important; }
	.single-product div.product .flex-control-thumbs li { flex-basis: calc((100% - 12px) / 4); }
	.single-product div.product .flex-control-thumbs li img { border-width: 2px; }
	.gcb-gthumbs__nav--prev { left: 4px; }
	.gcb-gthumbs__nav--next { right: 4px; }
}

.gcb-lb { position: fixed; inset: 0; z-index: 1005; display: flex; flex-direction: column; background: var(--gcb-lb-bg, #f3f4f2); transition: background-color .35s ease; } /* --gcb-lb-bg: màu nền ảnh (gallery-lightbox.js) */
.gcb-lb[hidden] { display: none; }
.admin-bar .gcb-lb { top: 32px; } /* thanh quản trị WordPress (chỉ khi đăng nhập) */
@media (max-width: 782px) { .admin-bar .gcb-lb { top: 46px; } }
.gcb-lb__stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.gcb-lb__wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 104px; /* ảnh cao kín trên – dưới */ touch-action: none; user-select: none; -webkit-user-select: none; }
.gcb-lb__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform-origin: center center; will-change: transform; }
.gcb-lb.is-zoomed .gcb-lb__wrap { cursor: grab; }
.gcb-lb.is-zoomed.is-dragging .gcb-lb__wrap { cursor: grabbing; }
.gcb-lb:not(.is-zoomed) .gcb-lb__wrap { cursor: zoom-in; }
.gcb-lb__logo { position: absolute; top: 22px; left: 28px; z-index: 3; }
.gcb-lb__logo .gcb-logo { display: inline-flex; }
.gcb-lb__close, .gcb-lb__nav { position: absolute; z-index: 3; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--gcb-green); cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.gcb-lb__close:hover, .gcb-lb__nav:hover { background: var(--gcb-green); color: #fff; }
.gcb-lb__close { top: 22px; right: 24px; }
.gcb-lb__nav { top: 50%; transform: translateY(-50%); }
.gcb-lb__nav--prev { left: 24px; }
.gcb-lb__nav--next { right: 24px; }
.gcb-lb.is-single .gcb-lb__nav, .gcb-lb.is-single .gcb-lb__dots { display: none; }
.gcb-lb__hint { position: absolute; top: 90px; left: 50%; z-index: 3; padding: 9px 18px; border-radius: 999px; background: rgba(31, 36, 33, .82); color: #fff; font-size: 13px; white-space: nowrap; transform: translate(-50%, -6px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.gcb-lb__hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.gcb-lb__zoom { position: absolute; left: 24px; bottom: 22px; z-index: 3; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .94); }
.gcb-lb__zoom button { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border: 0; border-radius: 999px; background: none; color: var(--gcb-green); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.gcb-lb__zoom button svg { width: 18px; height: 18px; }
.gcb-lb__zoom button:hover:not(:disabled) { background: #eef8e4; }
.gcb-lb__zoom button:disabled { color: #b9c2b6; cursor: default; }
.gcb-lb__pct { min-width: 58px !important; color: #006600 !important; }
.gcb-lb__sep { width: 1px; height: 22px; margin: 0 3px; background: #e7ebe4; }
.gcb-lb__dots { display: none; }
/* Thanh mua hàng ở đáy trình xem */
.gcb-lb__foot { flex: 0 0 auto; background: #fff; border-top: 1px solid var(--gcb-line); }
.gcb-lb__foot .gcb-sbuy, .gcb-lb__foot .gcb-sbot { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none; border: 0; transition: none; }
.gcb-lb__foot .gcb-sbuy__menu { top: auto; bottom: calc(100% + 6px); }
@media (max-width: 1024px) {
	.gcb-lb__wrap { padding: 0; } /* điện thoại: ảnh rộng kín 2 mép */
	.gcb-lb__nav, .gcb-lb__hint, .gcb-lb__zoom { display: none; }
	.gcb-lb__logo { top: 16px; left: 16px; }
	.gcb-lb__logo .gcb-logo__img, .gcb-lb__logo svg { max-height: 34px; width: auto; }
	.gcb-lb__logo .gcb-logo__svg { height: 34px; }
	.gcb-lb__close { top: 12px; right: 12px; width: 44px; height: 44px; }
	.gcb-lb__dots { position: absolute; left: 50%; bottom: 12px; z-index: 3; display: flex; gap: 6px; padding: 6px 10px; border: 1px solid #e7ebe4; border-radius: 999px; background: #f2f5ef; transform: translateX(-50%); }
	.gcb-lb__dots span { width: 7px; height: 7px; border-radius: 999px; background: #cfd6cd; transition: width .2s, background .2s; }
	.gcb-lb__dots span.on { width: 18px; background: var(--gcb-green); }
}
