/*
Theme Name: Ông Chú Game
Theme URI: https://ongchumegame.com/
Description: Genesis child theme cho Ông Chú Game: game tương tác cho TikTok LIVE. Song ngữ (Polylang), bán hàng bằng WooCommerce, trang trí Noel theo mùa.
Author: Ông Chú Game
Template: genesis
Version: 1.3.4
Requires at least: 6.5
Requires PHP: 8.0
WC requires at least: 9.0
License: GPL-2.0-or-later
Text Domain: ongchugame
*/

/* ==========================================================================
   Tokens
   Dark is the default look (as on ongchummo.vn); [data-theme="light"] is the
   light scheme picked with the header switch. Brand red #e5484d / #c8282e,
   call-to-action gold #f5b83d, Christmas pine #1f7a4d. White text sits on
   #c8282e or darker: on #e5484d it is below 4.5:1. Check text contrast with
   tools/contrast-audit.js after colour changes.
   ========================================================================== */

:root {
	--bg: #120a0b;
	--bg-soft: #180e10;
	--surface: #1d1214;
	--surface-2: #28181b;
	--line: rgba(255, 247, 245, 0.12);
	--line-strong: rgba(255, 247, 245, 0.22);
	--text: #fff7f5;
	--muted: #c9b6b3;
	--red: #e5484d;
	--red-deep: #c8282e;
	--red-dark: #8f1c21;
	--red-ink: #ff8a8d;
	--gold: #f5b83d;
	--gold-hover: #ffc95e;
	--gold-ink: #241500;
	--price: #f5b83d;
	--pine: #1f7a4d;
	--pine-bright: #45c288;
	/* Green for text (support-hours status); the bright pine fails contrast on light backgrounds. */
	--pine-ink: #45c288;
	--shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	/* Phone bezel and the dark band between game screens, the same in both schemes. */
	--bezel: #0d0b10;
	--radius: 14px;
	--radius-s: 8px;
	--wrap: 1200px;
	--gutter: 16px;
	--header-h: 68px;
	/* Width of the buy card on game pages and of the order summary at checkout. */
	--buy-w: 360px;
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color-scheme: dark;
}

/* Light tokens: the light scheme, and the light islands below. */
:root[data-theme="light"],
.woocommerce-sepay-bank-details {
	--bg: #fff7f5;
	--bg-soft: #fdeeea;
	--surface: #ffffff;
	--surface-2: #fbe9e6;
	--line: rgba(28, 18, 19, 0.12);
	--line-strong: rgba(28, 18, 19, 0.22);
	--text: #1c1213;
	--muted: #6a5451;
	--red-ink: #b3222a;
	--price: #8a5200;
	--pine-ink: #1a6a43;
	--shadow: 0 16px 36px rgba(110, 30, 34, 0.14);
	color-scheme: light;
}

/* Light islands: plugin boxes that paint their own white card but take the
   text colour from the page (SePay's bank-transfer box). With the light tokens
   above their text stays dark in both schemes. When tools/contrast-audit.js
   flags another plugin box, add its class to both selector lists. */
.woocommerce-sepay-bank-details {
	color: var(--text);
}

@media (min-width: 960px) {
	:root {
		--gutter: 24px;
	}
}

@media (min-width: 1200px) {
	:root {
		--buy-w: 380px;
	}
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--red-ink);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--text);
}

:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

h1 {
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem);
}

h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
}

h3 {
	font-size: 1.15rem;
}

p {
	margin: 0 0 1em;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.wrap--narrow {
	max-width: 860px;
}

.screen-reader-text,
.screen-reader-shortcut {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.screen-reader-shortcut:focus {
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: var(--gold);
	color: var(--gold-ink);
}

.genesis-skip-link {
	margin: 0;
	padding: 0;
	list-style: none;
}

.icon {
	flex: none;
	width: 1.15em;
	height: 1.15em;
	vertical-align: -0.2em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button,
button.button,
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--red-deep);
	color: #fff;
	font: 700 1rem/1.2 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, transform 0.15s, border-color 0.15s;
}

.button:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce #place_order:hover {
	background: var(--red-dark);
	color: #fff;
	transform: translateY(-1px);
}

.button--gold,
.woocommerce .single_add_to_cart_button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce #place_order,
.woocommerce .checkout-button {
	background: var(--gold) !important;
	color: var(--gold-ink) !important;
}

.button--gold:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce #place_order:hover,
.woocommerce .checkout-button:hover {
	background: var(--gold-hover) !important;
	color: var(--gold-ink) !important;
}

.button--ghost {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--text);
}

.button--ghost:hover {
	background: var(--surface-2);
	color: var(--text);
}

.button--small {
	min-height: 40px;
	padding: 8px 16px;
	font-size: 0.92rem;
}

.woocommerce .button:disabled,
.woocommerce .button.disabled,
.woocommerce button.button:disabled[disabled] {
	color: #fff;
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	text-decoration: none;
}

.icon-button:hover {
	background: var(--surface-2);
	color: var(--text);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header > .wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--header-h);
}

.title-area {
	flex: 0 1 auto;
	min-width: 0;
	margin-right: auto;
}

.site-title {
	margin: 0;
	line-height: 1;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	text-decoration: none;
}

.brand:hover {
	color: var(--text);
}

.brand__mark {
	position: relative;
	display: inline-flex;
	flex: none;
}

.brand__logo {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	object-fit: cover;
}

.brand__badge {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--red) 0 50%, var(--red-deep) 50%);
	color: #fff;
	font-weight: 800;
	font-size: 1rem;
	letter-spacing: 0.02em;
}

.brand__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.brand__name {
	overflow: hidden;
	font-size: 1.12rem;
	font-weight: 800;
	/* Room above the capitals: with line-height 1 the hidden overflow cut the hat off "Ô". */
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.brand__text {
	min-width: 0;
}

.brand__tag {
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 600;
}

.nav-primary .menu {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-primary .menu a {
	display: block;
	padding: 12px 14px;
	border-radius: 10px;
	color: var(--text);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}

.nav-primary .menu a:hover,
.nav-primary .current-menu-item > a {
	background: var(--surface-2);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lang-switch {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 999px;
}

.lang-switch__item {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	min-height: 38px;
	padding: 0 10px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 800;
	text-decoration: none;
}

.lang-switch__item.is-current {
	background: var(--red-deep);
	color: #fff;
}

[data-theme-switch] .icon--sun {
	display: none;
}

:root[data-theme="light"] [data-theme-switch] .icon--sun {
	display: block;
}

:root[data-theme="light"] [data-theme-switch] .icon--moon {
	display: none;
}

.nav-theme-switch {
	display: none;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin-top: 8px;
	padding: 14px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: transparent;
	color: var(--text);
	font: 600 1rem/1.2 var(--font);
	cursor: pointer;
}

.header-cart__count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--gold);
	color: var(--gold-ink);
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
}

.header-cart__count.is-empty {
	display: none;
}

.menu-toggle {
	display: none;
}

.menu-toggle .icon--close {
	display: none;
}

.menu-open .menu-toggle .icon--menu {
	display: none;
}

.menu-open .menu-toggle .icon--close {
	display: block;
}

@media (max-width: 959px) {
	.menu-toggle {
		display: inline-flex;
	}

	.brand__tag {
		display: none;
	}

	.nav-primary {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		display: none;
		padding: 12px var(--gutter) 20px;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
	}

	.admin-bar .nav-primary {
		top: calc(var(--header-h) + 46px);
	}

	.menu-open .nav-primary {
		display: block;
	}

	.nav-primary .menu {
		flex-direction: column;
	}

	.nav-primary .menu a {
		padding: 14px 12px;
		font-size: 1.05rem;
	}

	.header-actions {
		gap: 6px;
	}
}

@media (max-width: 420px) {
	.site-header > .wrap {
		gap: 10px;
	}

	.brand {
		gap: 8px;
	}

	.brand__name {
		font-size: 1rem;
	}

	.header-actions {
		gap: 4px;
	}

	.icon-button {
		width: 40px;
		height: 40px;
	}

	.theme-switch {
		display: none;
	}

	.nav-theme-switch {
		display: flex;
	}

	.lang-switch__item {
		min-width: 36px;
		padding: 0 6px;
	}
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-inner {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 32px var(--gutter) 64px;
}

.ocg-home .site-inner {
	max-width: none;
	padding: 0;
}

.content {
	width: 100%;
}

.entry {
	margin-bottom: 40px;
}

.entry-title {
	font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
	text-wrap: balance;
}

.entry-content {
	max-width: 780px;
}

.is-shop .entry-content,
.woocommerce-page .entry-content {
	max-width: none;
}

.entry-content > * + h2 {
	margin-top: 1.8em;
}

.entry-content h2 {
	font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem);
}

.entry-content h3 {
	margin-top: 1.4em;
	font-size: 1.12rem;
}

/* Reading pages (guide, contact, policies; ocg_is_article()): breadcrumb,
   title and text share one centred column, so no edge juts out and the right
   half of a wide screen is not left empty. */
.ocg-article .entry {
	max-width: 760px;
	margin-inline: auto;
}

.ocg-article .entry-content {
	max-width: none;
}

.ocg-article .entry-header {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
}

.ocg-article .entry-title {
	margin-bottom: 0;
}

.page-crumbs {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 0.88rem;
}

.page-crumbs a,
.woocommerce .woocommerce-breadcrumb a {
	display: inline-block;
	margin-block: -10px;
	padding-block: 10px;
	color: var(--muted);
}

.page-crumbs .sep {
	margin: 0 8px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li + li {
	margin-top: 0.35em;
}

.entry-meta {
	color: var(--muted);
	font-size: 0.9rem;
}

.entry-content table,
.gift-table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td,
.gift-table th,
.gift-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.gift-table th {
	color: var(--muted);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Video embeds keep 16:9 at any width (oEmbed prints a fixed 500×281). */
.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="vimeo"],
.woocommerce-Tabs-panel iframe[src*="youtube"] {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--radius-s);
}

blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 18px;
	border-left: 4px solid var(--red);
	color: var(--muted);
}

/* ==========================================================================
   Home
   ========================================================================== */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-size: 0.85rem;
	font-weight: 700;
}

.eyebrow .icon {
	color: var(--red);
}

.hero {
	position: relative;
	overflow: hidden;
	padding: 48px 0 56px;
	isolation: isolate;
}

/* Stage light behind the phones: a red spot with a warm glow on the floor. */
.hero__glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 70% 38% at 50% 100%, color-mix(in srgb, var(--red) 42%, transparent), transparent 72%),
		radial-gradient(ellipse 40% 22% at 50% 92%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%);
}

.hero__inner {
	display: grid;
	gap: 36px;
	align-items: center;
}

/* Grid items default to their content's width; the phone row must not widen the copy. */
.hero__inner > * {
	min-width: 0;
}

.hero__title {
	max-width: 15ch;
}

.hero__title span {
	color: var(--red-ink);
}

.hero__lead {
	max-width: 56ch;
	color: var(--muted);
	font-size: 1.08rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 26px 0 22px;
}

.hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.92rem;
	font-weight: 600;
}

.hero__facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hero__facts .icon {
	color: var(--gold);
}

/* Game screens are 9:16, so the hero shows them whole, as phones on a stage:
   the front one plays a short clip, the others lean in behind it. */
.hero__stage {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 4px 0 8px;
}

.hero-phone {
	position: relative;
	z-index: 1;
	flex: none;
	width: clamp(96px, 27vw, 180px);
	color: var(--text);
	text-decoration: none;
}

.hero-phone--main {
	z-index: 2;
	order: 2;
	width: clamp(140px, 42vw, 250px);
}

.hero-phone:nth-child(2) {
	order: 1;
	margin-right: -5%;
	transform: rotate(-6deg) translateY(16px);
}

.hero-phone:nth-child(3) {
	order: 3;
	margin-left: -5%;
	transform: rotate(6deg) translateY(16px);
}

.hero-phone__screen {
	position: relative;
	display: block;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border: 5px solid var(--bezel);
	border-radius: 24px;
	background: var(--bezel);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 22px 44px rgba(0, 0, 0, 0.45);
	transition: border-color 0.2s;
}

.hero-phone--main .hero-phone__screen {
	border-width: 6px;
	border-radius: 30px;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.18),
		0 28px 56px rgba(0, 0, 0, 0.5),
		0 0 72px color-mix(in srgb, var(--red) 38%, transparent);
}

.hero-phone:hover .hero-phone__screen,
.hero-phone:focus-visible .hero-phone__screen {
	border-color: var(--gold);
}

.hero-phone__img,
.hero-phone__clip {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The clip shows once it plays, so a clip that cannot play leaves the still. */
.hero-phone__clip {
	opacity: 0;
	transition: opacity 0.4s;
}

.hero-phone__clip.is-playing {
	opacity: 1;
}

.hero-phone__live {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--red-deep);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.hero-phone__live::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	animation: ocg-blink 1.6s ease-in-out infinite;
}

@keyframes ocg-blink {
	50% {
		opacity: 0.25;
	}
}

/* The game's name sits on the screen, so overlapping phones never hide it. */
.hero-phone__name {
	position: absolute;
	bottom: 14px;
	left: 50%;
	max-width: calc(100% - 20px);
	overflow: hidden;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(13, 11, 16, 0.78);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
	transform: translateX(-50%);
}

@media (max-width: 599px) {
	.hero-phone__name {
		bottom: 10px;
		padding: 3px 8px;
		font-size: 0.8rem;
	}

	.hero-phone__screen {
		border-width: 4px;
		border-radius: 18px;
	}

	.hero-phone--main .hero-phone__screen {
		border-width: 5px;
		border-radius: 22px;
	}
}

@media (min-width: 960px) {
	.hero {
		padding: 72px 0 88px;
	}

	.hero__inner {
		grid-template-columns: 1.05fr 1fr;
		gap: 48px;
	}

	.hero__glow {
		background:
			radial-gradient(ellipse 34% 58% at 76% 56%, color-mix(in srgb, var(--red) 40%, transparent), transparent 72%),
			radial-gradient(ellipse 24% 16% at 76% 92%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%);
	}
}

.home-section {
	padding: 64px 0;
}

/* Phones: 128px between sections read as a break in the page, not a pause. */
@media (max-width: 599px) {
	.home-section {
		padding: 44px 0;
	}

	.section-head {
		margin-bottom: 24px;
	}
}

.home-section + .home-section {
	border-top: 1px solid var(--line);
}

.section-head {
	max-width: 720px;
	margin-bottom: 32px;
}

.section-head p {
	color: var(--muted);
	font-size: 1.05rem;
}

.home-intro {
	padding-top: 32px;
}

.notice-soft {
	padding: 18px 20px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	color: var(--muted);
}

.steps,
.reasons {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

@media (min-width: 760px) {
	.steps {
		grid-template-columns: repeat(3, 1fr);
	}

	.reasons {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.reasons {
		grid-template-columns: repeat(4, 1fr);
	}
}

.step,
.reason {
	position: relative;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.step {
	counter-increment: step;
}

.step::after {
	content: counter(step);
	position: absolute;
	top: 18px;
	right: 22px;
	color: var(--line-strong);
	font-size: 2.6rem;
	font-weight: 800;
	line-height: 1;
}

.step p,
.reason p {
	margin: 0;
	color: var(--muted);
}

.step__icon,
.reason__icon {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 14px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--red) 18%, transparent);
	color: var(--red-ink);
}

/* Phones: the icon sits beside the heading instead of on a row of its own. */
@media (max-width: 759px) {
	.step,
	.reason {
		display: grid;
		grid-template-columns: 46px minmax(0, 1fr);
		column-gap: 14px;
		align-items: start;
		padding: 20px;
	}

	.step__icon,
	.reason__icon {
		grid-row: span 2;
		margin-bottom: 0;
	}

	.step h3,
	.reason h3 {
		margin-bottom: 6px;
		padding-right: 36px;
	}

	.reason h3 {
		padding-right: 0;
	}

	.step::after {
		top: 16px;
		right: 18px;
		font-size: 2rem;
	}
}

.home-faq .section-head .button {
	margin-top: 4px;
}

@media (min-width: 960px) {
	.home-faq .wrap {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
		gap: 56px;
		align-items: start;
	}

	.home-faq .section-head {
		margin-bottom: 0;
	}
}

.faq {
	display: grid;
	gap: 10px;
}

.faq__item {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.faq__item summary {
	position: relative;
	padding: 18px 52px 18px 20px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.faq__item summary::-webkit-details-marker {
	display: none;
}

.faq__item summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 20px;
	color: var(--red);
	font-size: 1.5rem;
	line-height: 1;
	transform: translateY(-50%);
}

.faq__item[open] summary::after {
	content: "–";
}

.faq__item p {
	margin: 0;
	padding: 0 20px 20px;
	color: var(--muted);
}

.contact-band {
	padding: 48px 0;
	background: linear-gradient(115deg, var(--red-deep), var(--red-dark));
	color: #fff;
}

.contact-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.contact-band h2 {
	margin-bottom: 6px;
}

.contact-band p {
	margin: 0;
	opacity: 0.9;
}

/* ==========================================================================
   Product cards and lists
   ========================================================================== */

/* Rows of up to three cards on the same left edge as the headings above them. */
.product-grid,
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

/* No row ends with an empty slot. Wide screens use six tracks, three cards to
   a row; with 5, 8… cards the first two share a row, with 4, 7… the first four
   go two to a row. Tablets: two to a row, an odd first card across both. */
@media (min-width: 640px) and (max-width: 979px) {
	.product-grid,
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.product-grid > li:first-child:nth-last-child(odd) {
		grid-column: 1 / -1;
	}

	.product-grid > li:first-child:nth-last-child(odd) .product-card__media {
		aspect-ratio: 21 / 9;
	}
}

@media (min-width: 980px) {
	.product-grid,
	.woocommerce ul.products {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.product-grid > li,
	.woocommerce ul.products li.product {
		grid-column: span 2;
	}

	.product-grid > li:first-child:nth-last-child(3n + 2),
	.product-grid > li:first-child:nth-last-child(3n + 2) + li,
	.product-grid > li:first-child:nth-last-child(3n + 1),
	.product-grid > li:first-child:nth-last-child(3n + 1) ~ li:nth-child(-n + 4) {
		grid-column: span 3;
	}
}

.product-grid > li,
.woocommerce ul.products li.product {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: transform 0.2s, border-color 0.2s;
}

.product-card:hover {
	border-color: var(--line-strong);
	transform: translateY(-3px);
}

.product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--surface-2);
}

.product-card__media {
	overflow: hidden;
}

/* Card pictures (ocg_card_media): tall game screens side by side and whole,
   near-square ones two to a card, wide ones filling it, a lone tall one on a
   blurred copy of itself. */
.card-media {
	position: absolute;
	inset: 0;
	display: flex;
	gap: 2px;
	background: var(--bezel);
	isolation: isolate;
}

.card-media__img {
	display: block;
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s;
}

.product-card:hover .card-media__img {
	transform: scale(1.03);
}

.card-media--fit {
	justify-content: center;
}

.card-media--fit .card-media__img {
	flex: none;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

/* Blurred copy of the picture behind a picture shown whole (--ocg-bg is set
   inline by ocg_backdrop_attr()). */
.card-media--fit::before,
.ocg-gallery--tall .woocommerce-product-gallery__image::before {
	content: "";
	position: absolute;
	inset: -24px;
	z-index: -1;
	background: var(--ocg-bg) center / cover;
	filter: blur(20px) brightness(0.42) saturate(1.2);
}

.product-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--red);
}

.product-card__placeholder .icon {
	width: 48px;
	height: 48px;
}

.badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--gold);
	color: var(--gold-ink);
	font-size: 0.82rem;
	font-weight: 800;
}

.product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 18px 20px;
}

.product-card__title {
	margin-bottom: 6px;
	font-size: 1.12rem;
}

.product-card__title a {
	color: var(--text);
	text-decoration: none;
}

.product-card__tagline {
	flex: 1;
	color: var(--muted);
	font-size: 0.94rem;
}

.product-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.price,
.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
	color: var(--price);
	font-weight: 800;
}

.price del,
.woocommerce .price del {
	color: var(--muted);
	font-weight: 600;
	opacity: 0.8;
}

.price ins {
	text-decoration: none;
}

.price-from {
	color: var(--muted);
	font-size: 0.85em;
	font-weight: 600;
}

.archive-lead {
	max-width: 60ch;
	color: var(--muted);
}

.woocommerce-products-header {
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}

.woocommerce-products-header .page-title {
	margin-bottom: 6px;
}

.woocommerce-products-header .archive-lead,
.woocommerce-products-header .term-description p {
	margin: 0;
}

.woocommerce .woocommerce-breadcrumb {
	margin: 0 0 20px;
	color: var(--muted);
	font-size: 0.88rem;
}

.woocommerce .woocommerce-breadcrumb a {
	color: var(--muted);
}

.woocommerce-breadcrumb .sep {
	margin: 0 8px;
}

/* ==========================================================================
   Single game page
   Two columns from 960px, like ongchummo.vn's product pages: the title block,
   gallery, details and description run down the left column on one edge; the
   summary on the right is the buy card (price, packages, buy button, what you
   get) and stays in view while the left column scrolls. Phones get one column
   in source order: title, gallery, buy card, details, description.
   ========================================================================== */

.woocommerce div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

/* Grid items default to their content's width; the scrolling thumbnail strip
   would otherwise widen the page on phones. */
.woocommerce div.product > * {
	min-width: 0;
}

@media (min-width: 960px) {
	.woocommerce div.product {
		grid-template-columns: minmax(0, 1fr) var(--buy-w);
		gap: 40px;
		align-items: start;
	}

	.woocommerce div.product > * {
		grid-column: 1;
	}

	/* The buy card spans the rows of the left column. */
	.woocommerce div.product > .summary {
		grid-column: 2;
		grid-row: 1 / span 4;
	}

	.woocommerce div.product > .related,
	.woocommerce div.product > .upsells {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1200px) {
	.woocommerce div.product {
		column-gap: 56px;
	}
}

/* It sticks while the left column scrolls only where the screen is tall
   enough to show it whole; on a short laptop screen the buy button would sit
   below the fold for good. */
@media (min-width: 960px) and (min-height: 760px) {
	.woocommerce div.product > .summary {
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}

	.admin-bar .woocommerce div.product > .summary {
		top: calc(var(--header-h) + 56px);
	}
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	float: none;
	width: auto;
	margin: 0;
}

/* Title block */
.product-head__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.4;
}

.chip .icon {
	width: 1em;
	height: 1em;
	color: var(--red-ink);
}

.chip--proof {
	position: relative;
	border-color: color-mix(in srgb, var(--red) 55%, transparent);
	background: color-mix(in srgb, var(--red) 16%, transparent);
	color: var(--text);
	text-decoration: none;
}

/* The chip keeps its size beside the others; its tap area reaches past the border. */
.chip--proof::after {
	content: "";
	position: absolute;
	inset: -8px -4px;
}

.chip--proof:hover {
	background: color-mix(in srgb, var(--red) 26%, transparent);
}

.chip--gold {
	border-color: color-mix(in srgb, var(--gold) 45%, transparent);
	background: color-mix(in srgb, var(--gold) 14%, transparent);
	color: var(--price);
}

.woocommerce div.product .product_title {
	margin-bottom: 12px;
	font-size: clamp(1.9rem, 1.35rem + 1.9vw, 3rem);
	line-height: 1.12;
	text-wrap: pretty;
}

.single-tagline {
	margin-bottom: 10px;
	color: var(--text);
	font-size: 1.12rem;
	font-weight: 600;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--muted);
	font-size: 1.05rem;
}

.woocommerce div.product .woocommerce-product-details__short-description > :last-child {
	margin-bottom: 0;
}

/* On phones the summary stays three lines so the screenshots show on the first
   screen; the full description sits in the details below. */
@media (max-width: 959px) {
	.woocommerce div.product .product-head .woocommerce-product-details__short-description {
		display: -webkit-box;
		overflow: hidden;
		font-size: 1rem;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
	}
}

/* Gallery: each slide is a stage with a blurred copy of the picture behind it.
   Tall game screens get a fixed-height stage, so a 9:16 picture never runs past
   the screen and the buy card stays close on phones. */
.woocommerce div.product div.images .woocommerce-product-gallery__image {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--bezel);
	isolation: isolate;
}

/* WooCommerce sets "div.images a" to block, so this needs the longer selector. */
.woocommerce div.product div.images.ocg-gallery--tall .woocommerce-product-gallery__image > a {
	display: flex;
	justify-content: center;
	height: min(62vh, 520px);
}

@media (min-width: 960px) {
	.woocommerce div.product div.images.ocg-gallery--tall .woocommerce-product-gallery__image > a {
		height: min(70vh, 600px);
	}
}

.woocommerce div.product div.images.ocg-gallery--tall .woocommerce-product-gallery__image img {
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	padding: 0 0 6px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	flex: 0 0 72px;
	width: auto;
	float: none;
}

.woocommerce div.product div.images .flex-control-thumbs img {
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius-s);
	transition: opacity 0.2s;
}

.ocg-gallery--tall .flex-control-thumbs li {
	flex-basis: 60px;
}

.woocommerce div.product div.images.ocg-gallery--tall .flex-control-thumbs img {
	aspect-ratio: 3 / 4;
}

.woocommerce div.product div.images .flex-control-thumbs img.flex-active {
	outline: 2px solid var(--gold);
	outline-offset: -2px;
}

/* Buy card */
.woocommerce div.product div.summary {
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.woocommerce div.product div.summary > p.price {
	margin: 0 0 18px;
	font-size: 2rem;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.woocommerce div.product div.summary > p.price del {
	margin-right: 6px;
	font-size: 0.55em;
}

.woocommerce div.product form.cart {
	margin: 0;
}

.woocommerce div.product form.cart .variations {
	width: 100%;
	margin: 0 0 16px;
	border: 0;
}

.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}

.woocommerce div.product form.cart .variations th label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.woocommerce div.product form.cart .reset_variations {
	display: inline-block;
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.85rem;
}

/* Package cards (ocg_package_cards()) replace the dropdown once scripts run;
   without scripts the dropdown stays and the cards stay hidden. */
.pkg-list {
	display: none;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.js .pkg-list {
	display: grid;
	gap: 10px;
}

.js .pkg-select,
.js .woocommerce div.product form.cart .variations tr:has(.pkg-list) th,
.js .woocommerce div.product form.cart .variations td:has(.pkg-list) .reset_variations {
	display: none !important;
}

.pkg-list__legend {
	margin-bottom: 10px;
	padding: 0;
	color: var(--muted);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pkg {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "radio name price" ". note note";
	gap: 2px 12px;
	align-items: start;
	padding: 14px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: var(--bg-soft);
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}

.pkg:hover {
	border-color: color-mix(in srgb, var(--red) 60%, var(--line-strong));
}

.pkg:has(.pkg__input:checked) {
	border-color: var(--red-deep);
	background: color-mix(in srgb, var(--red) 12%, var(--surface));
	box-shadow: inset 0 0 0 1px var(--red-deep);
}

.pkg:has(.pkg__input:focus-visible) {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
}

.pkg__input {
	grid-area: radio;
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	border: 2px solid var(--line-strong);
	border-radius: 50%;
	background: transparent;
	appearance: none;
	cursor: pointer;
}

.pkg__input:checked {
	border-color: var(--red-deep);
	background: var(--red-deep);
	box-shadow: inset 0 0 0 4px var(--surface);
}

.pkg__input:focus {
	outline: none;
}

.pkg__body {
	display: contents;
}

.pkg__name {
	grid-area: name;
	min-width: 0;
	font-weight: 700;
	line-height: 1.4;
}

/* Up to three lines for each package; the picked one shows its whole note. */
.pkg__note {
	display: -webkit-box;
	grid-area: note;
	overflow: hidden;
	color: var(--muted);
	font-size: 0.86rem;
	font-weight: 400;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.pkg:has(.pkg__input:checked) .pkg__note {
	display: block;
}

.pkg__price {
	grid-area: price;
	color: var(--price);
	font-weight: 800;
	line-height: 1.35;
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.pkg__price del {
	display: block;
	color: var(--muted);
	font-size: 0.8em;
	font-weight: 600;
}

.pkg__price ins {
	text-decoration: none;
}

/* The picked card already shows its price and note. */
.has-pkg .woocommerce-variation-price,
.has-pkg .woocommerce-variation-description,
.has-pkg .woocommerce-variation-availability {
	display: none;
}

.woocommerce div.product .woocommerce-variation-description {
	color: var(--muted);
	font-size: 0.95rem;
}

.woocommerce div.product .woocommerce-variation-price .price {
	display: block;
	margin: 6px 0 12px;
	font-size: 1.4rem;
}

/* The variation script shows the quantity box inline; one key per purchase here. */
.woocommerce div.product form.cart .quantity {
	display: none !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product .contact-price-button {
	width: 100%;
	min-height: 54px;
	font-size: 1.08rem;
}

.contact-price-note {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.5;
}

.button__total {
	font-variant-numeric: tabular-nums;
}

.button__total::before {
	content: "·";
	margin: 0 8px;
	opacity: 0.6;
}

.trust-list,
.check-list,
.dot-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.trust-list {
	display: grid;
	gap: 10px;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.summary .trust-list {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.trust-list li,
.check-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.trust-list .icon {
	margin-top: 1px;
	color: var(--gold);
}

:root[data-theme="light"] .trust-list .icon {
	color: var(--price);
}

/* Phone buy bar (ocg_buy_bar()): appears once the buy card scrolls away. */
.buy-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 46;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
	background: color-mix(in srgb, var(--bg) 94%, transparent);
	box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.buy-bar[hidden] {
	display: none;
}

.buy-bar__info {
	display: grid;
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

.buy-bar__name {
	overflow: hidden;
	color: var(--muted);
	font-size: 0.82rem;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.buy-bar__price {
	font-size: 1.1rem;
}

.buy-bar__price del {
	display: none;
}

.buy-bar__price ins {
	text-decoration: none;
}

.buy-bar__button.button {
	flex: none;
	min-height: 46px;
	padding: 10px 22px;
}

@media (min-width: 960px) {
	.buy-bar {
		display: none !important;
	}
}

/* Details under the gallery: open sections on the column's edge, no boxes,
   so every heading and line starts where the description below starts. */
.game-details {
	container-type: inline-size;
}

.game-details__grid {
	display: grid;
	gap: 40px;
}

.game-block h2,
.woocommerce div.product .woocommerce-tabs .panel h2,
.related > h2,
.upsells > h2 {
	margin-bottom: 16px;
	font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem);
}

.check-list {
	display: grid;
	gap: 10px;
}

@container (min-width: 560px) {
	.check-list {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 24px;
	}

	.dot-list {
		columns: 2;
		column-gap: 24px;
	}

	.dot-list li {
		break-inside: avoid;
	}
}

.check-list .icon {
	margin-top: 4px;
	color: var(--pine-bright);
}

/* Same 28px indent as the check icons above, so both lists line up. */
.dot-list li {
	position: relative;
	padding-left: 28px;
}

.dot-list li + li {
	margin-top: 8px;
}

.dot-list li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 5px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--red);
}

.gift-table td:first-child {
	font-weight: 700;
}

/* Gameplay clip: a 9:16 phone frame for a tall file, 16:9 for a wide one or an embed. */
.game-video__frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-s);
	background: #000;
}

.game-video__frame--tall {
	width: min(100%, 320px, calc(78vh * 9 / 16));
	margin-inline: auto;
	aspect-ratio: 9 / 16;
	border: 5px solid var(--bezel);
	border-radius: 24px;
	box-shadow: 0 0 0 1px var(--line-strong), 0 20px 40px rgba(0, 0, 0, 0.35);
}

.game-video__frame--wide {
	aspect-ratio: 16 / 9;
}

.game-video__player,
.game-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
}

/* Wherever the column has room (tablet and up), a tall clip stands beside the
   highlights instead of centred above them with empty space on both sides.
   The gift table and the requirements then run the full width below. */
@container (min-width: 600px) {
	.game-details--side .game-details__grid {
		grid-template-columns: clamp(230px, 40cqi, 300px) minmax(0, 1fr);
		column-gap: clamp(24px, 5cqi, 40px);
		align-items: start;
	}

	.game-details--side .game-block:not(.game-video, .game-block--highlights) {
		grid-column: 1 / -1;
	}

	.game-details--side .game-video h2 {
		font-size: 1.2rem;
	}

	.game-details--side .game-video__frame--tall {
		margin-inline: 0;
	}

	.game-details--side .game-block--highlights .check-list {
		grid-template-columns: 1fr;
	}

	/* A long highlight list stops level with the bottom of the clip (theme.js
	   adds is-collapsed only when it is longer): size containment keeps the
	   list out of the row height, and stretch fills the row the clip sets. */
	.game-details--side .has-more.is-collapsed {
		max-height: none;
		align-self: stretch;
		contain: size;
	}
}

/* "Xem thêm": theme.js shows the start of a long block with a fade and a button
   that opens the rest. Without scripts the whole block shows. */
.has-more {
	position: relative;
}

.game-block--highlights {
	--more-h: 26rem;
}

.woocommerce div.product .woocommerce-tabs .panel.has-more {
	--more-h: 44rem;
}

.has-more.is-collapsed {
	max-height: var(--more-h, 30rem);
	overflow: hidden;
}

.has-more.is-collapsed::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 140px;
	background: linear-gradient(to bottom, transparent, var(--bg) 72%);
	pointer-events: none;
}

.more-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-top: 20px;
	padding: 0 20px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
}

.more-toggle[hidden] {
	display: none;
}

.more-toggle:hover {
	border-color: var(--gold);
}

.more-toggle .icon {
	width: 16px;
	height: 16px;
	transform: rotate(90deg);
	transition: transform 0.2s ease;
}

.more-toggle[aria-expanded="true"] .icon {
	transform: rotate(-90deg);
}

.has-more.is-collapsed > .more-toggle {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 1;
	margin: 0;
}

/* Description: the one tab left reads as a label over the description, which
   uses the full left column (no narrower measure that would leave a gap). */
.woocommerce div.product .woocommerce-tabs {
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	margin: 0 0 16px;
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a::before {
	content: "";
	width: 24px;
	height: 3px;
	border-radius: 2px;
	background: var(--red);
}

.woocommerce div.product .woocommerce-tabs .panel {
	max-width: none;
	margin: 0;
}

.woocommerce div.product .woocommerce-tabs .panel > * + h2 {
	margin-top: 1.8em;
}

.woocommerce div.product .woocommerce-tabs .panel h3 {
	margin: 1.4em 0 0.4em;
	font-size: 1.08rem;
}

.woocommerce div.product .woocommerce-tabs .panel ul,
.woocommerce div.product .woocommerce-tabs .panel ol {
	padding-left: 1.3em;
}

.woocommerce div.product .woocommerce-tabs .panel li + li {
	margin-top: 0.4em;
}

/* Tall pictures anywhere in a description stay phone-sized (ocg_mark_tall_image()). */
.woocommerce-Tabs-panel img.is-tall,
.entry-content img.is-tall {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: min(75vh, 640px);
	margin-inline: auto;
	border-radius: var(--radius-s);
}

/* Screenshots and clips inside a game's description: game frames are tall, so they stay narrow. */
.game-figure {
	max-width: 420px;
	margin: 24px auto;
}

.game-figure--portrait {
	max-width: 340px;
}

.game-figure img,
.game-figure video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 75vh;
	object-fit: contain;
	border-radius: var(--radius-s);
	background: #000;
}

.game-figure__caption {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 0.875rem;
	text-align: center;
}

.game-media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
	margin: 24px 0;
}

.game-media-grid .game-figure {
	max-width: none;
	margin: 0;
}

.woocommerce div.product > .related {
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

/* "Kết quả LIVE thực tế" (inc/proof.php): a tinted red band of real LIVE
   screenshots right after the buy card on phones and under the gallery on wide
   screens. Shots share one 3:4 frame, shown whole on a blurred copy of
   themselves, in a row that scrolls sideways when it runs out of room. With
   one or two shots the heading stands beside them instead of above. */
@media (min-width: 960px) {
	.woocommerce div.product.has-live-proof > .summary {
		grid-row: 1 / span 5;
	}
}

.live-proof {
	display: grid;
	gap: 18px;
	padding: 20px;
	border: 1px solid color-mix(in srgb, var(--red) 34%, transparent);
	border-radius: var(--radius);
	background: color-mix(in srgb, var(--red) 7%, var(--surface));
	/* html already keeps the header's height clear (scroll-padding-top). */
	scroll-margin-top: 8px;
}

.live-proof__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	color: var(--red-ink);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.live-dot {
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 60%, transparent);
	animation: ocg-live-pulse 1.8s ease-out infinite;
}

@keyframes ocg-live-pulse {
	70% {
		box-shadow: 0 0 0 8px transparent;
	}
}

.live-proof h2 {
	margin: 0 0 8px;
	font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
}

.live-proof__note {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.live-proof__list {
	display: grid;
	grid-auto-columns: minmax(150px, 1fr);
	grid-auto-flow: column;
	gap: 12px;
	margin: 0 -20px;
	padding: 0 20px 4px;
	overflow-x: auto;
	scroll-padding-inline: 20px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.live-proof__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	margin: 0;
	scroll-snap-align: start;
}

.live-proof__shot {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-s);
	background: var(--bezel);
	isolation: isolate;
}

.live-proof__shot::before {
	content: "";
	position: absolute;
	inset: -24px;
	z-index: -1;
	background: var(--ocg-bg) center / cover;
	filter: blur(18px) brightness(0.45);
}

.live-proof__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s;
}

.live-proof__shot:hover .live-proof__img {
	transform: scale(1.03);
}

/* A clip keeps its own controls; zooming it on hover would move them. */
.live-proof__shot--video:hover .live-proof__img {
	transform: none;
}

/* Three lines under a shot keep the band short; the viewer shows the whole caption. */
.live-proof__item figcaption {
	display: -webkit-box;
	overflow: hidden;
	color: var(--text);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

/* "Khách hàng": a buyer's own LIVE, not a shot of this game. */
.live-proof__tag {
	display: inline-block;
	margin-right: 2px;
	padding: 1px 7px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--gold) 22%, transparent);
	color: var(--text);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	vertical-align: 1px;
}

/* Phones: two shots and the edge of a third in view, so the row reads as scrollable. */
@media (max-width: 599px) {
	.live-proof {
		padding: 18px 16px;
	}

	.live-proof__list {
		grid-auto-columns: calc((100% - 40px) / 2.25);
		margin-inline: -16px;
		padding-inline: 16px;
		scroll-padding-inline: 16px;
	}

	/* A lone shot sits beside its caption instead of leaving the row half empty. */
	.live-proof__item:only-child {
		flex-direction: row;
		align-items: center;
		gap: 14px;
	}

	.live-proof__item:only-child .live-proof__shot {
		flex: 0 0 44%;
	}

	.live-proof__list:has(> .live-proof__item:only-child) {
		grid-auto-columns: 100%;
	}

	/* Two shots share the row; nothing is left to scroll to. */
	.live-proof--few .live-proof__list {
		grid-auto-columns: calc((100% - 12px) / 2);
	}
}

@media (min-width: 600px) {
	.live-proof {
		padding: 24px;
	}

	/* Four shots fit the gallery column on a laptop; a fifth scrolls. */
	.live-proof__list {
		grid-auto-columns: minmax(140px, 200px);
		margin-inline: 0;
		padding-inline: 0;
		scroll-padding-inline: 0;
	}

	.live-proof--few {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 24px;
	}
}

/* Large view of a shot. */
.proof-viewer {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 56px 16px 20px;
	border: 0;
	background: rgba(8, 6, 8, 0.94);
	color: #fff;
}

.proof-viewer[open] {
	display: grid;
	place-items: center;
}

.proof-viewer::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

html:has(.proof-viewer[open]) {
	overflow: hidden;
}

/* Picture and caption sit together in the middle; the picture shrinks to leave the caption room. */
.proof-viewer__figure {
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 14px;
	width: 100%;
	height: 100%;
	margin: 0;
}

.proof-viewer__img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 200px);
	max-height: calc(100dvh - 200px);
	object-fit: contain;
	border-radius: var(--radius-s);
}

.proof-viewer__caption:empty {
	display: none;
}

.proof-viewer__caption {
	max-width: 640px;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
}

.proof-viewer__count {
	position: absolute;
	top: 18px;
	left: 20px;
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.9rem;
	font-weight: 700;
}

.proof-viewer .icon-button {
	position: absolute;
	border-color: rgba(255, 255, 255, 0.25);
	background: rgba(20, 14, 16, 0.75);
	color: #fff;
}

.proof-viewer__close {
	top: 10px;
	right: 12px;
}

.proof-viewer__nav {
	top: 50%;
	width: 48px;
	height: 48px;
	transform: translateY(-50%);
}

.proof-viewer__nav--prev {
	left: 12px;
}

.proof-viewer__nav--prev .icon {
	transform: rotate(180deg);
}

.proof-viewer__nav--next {
	right: 12px;
}

.proof-viewer.is-single .proof-viewer__nav {
	display: none;
}

@media (max-width: 599px) {
	.proof-viewer__nav {
		top: auto;
		bottom: 16px;
		transform: none;
	}

	.proof-viewer {
		padding-bottom: 76px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.live-dot {
		animation: none;
	}
}

/* [ocg_contact] on the contact and guide pages: channel cards. */
.contact-cards .channel-list {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 12px;
	margin: 12px 0 0;
	padding: 0;
}

.contact-cards {
	margin-bottom: 12px;
}

.contact-cards .contact-cards__title {
	margin: 24px 0 0;
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.contact-cards .channel-list li {
	margin: 0;
}

.contact-cards .channel {
	min-height: 72px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.contact-cards .channel:hover {
	border-color: var(--line-strong);
}

.contact-hours {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 0.92rem;
}

/* ==========================================================================
   WooCommerce: forms, notices, cart, checkout, account
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
select,
textarea,
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--bg-soft);
	color: var(--text);
	font: 400 1rem/1.4 var(--font);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--gold);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent);
}

.woocommerce form .form-row label {
	font-weight: 600;
}

.woocommerce form .form-row .required {
	color: var(--red-ink);
}

.woocommerce .description,
.woocommerce form .form-row .description {
	color: var(--muted);
	font-size: 0.88rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--pine-bright);
	border-radius: var(--radius-s);
	background: var(--surface);
	color: var(--text);
	list-style: none;
}

.woocommerce-info {
	border-left-color: var(--gold);
}

.woocommerce-error {
	border-left-color: var(--red);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

.woocommerce-message .button,
.woocommerce-info .button {
	float: right;
	min-height: 36px;
	padding: 6px 14px;
}

.woocommerce table.shop_table {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	border-collapse: separate;
	background: var(--surface);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-top: 1px solid var(--line);
	padding: 14px;
}

.woocommerce table.shop_table tr:first-child th,
.woocommerce table.shop_table thead + tbody tr:first-child td {
	border-top: 0;
}

.woocommerce-cart table.cart img {
	width: 96px;
	border-radius: var(--radius-s);
}

.woocommerce a.remove {
	color: var(--red) !important;
}

.woocommerce a.remove:hover {
	background: var(--red-deep);
	color: #fff !important;
}

.woocommerce-cart .cart-collaterals .cart_totals,
#add_payment_method #payment {
	border-radius: var(--radius);
	background: var(--surface);
}

/* --------------------------------------------------------------------------
   Checkout (inc/checkout.php): step 1 your details, step 2 payment and the pay
   button on the left; the order summary on the right, sticky on wide screens
   and first on phones.
   -------------------------------------------------------------------------- */

/* The account and coupon prompts as one quiet line instead of two boxes. */
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-form-coupon-toggle {
	display: inline-block;
	margin: 0 24px 16px 0;
}

.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted);
	font-size: 0.92rem;
}

.woocommerce-checkout form.woocommerce-form-login,
.woocommerce-checkout form.checkout_coupon {
	max-width: 560px;
	margin: 0 0 24px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.woocommerce-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin-top: 8px;
}

.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup,
.woocommerce-checkout form.checkout > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
	order: -2;
}

.checkout-summary {
	order: -1;
}

@media (min-width: 960px) {
	.woocommerce-checkout form.checkout {
		grid-template-columns: minmax(0, 1fr) var(--buy-w);
		gap: 40px;
		align-items: start;
	}

	.checkout-summary {
		position: sticky;
		top: calc(var(--header-h) + 24px);
		order: 0;
	}

	.admin-bar .checkout-summary {
		top: calc(var(--header-h) + 56px);
	}
}

@media (min-width: 1200px) {
	.woocommerce-checkout form.checkout {
		column-gap: 56px;
	}
}

.checkout-main {
	display: grid;
	gap: 24px;
	min-width: 0;
	counter-reset: step;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #payment {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	float: none;
	width: 100%;
}

.woocommerce-checkout #customer_details::before,
.woocommerce-checkout #customer_details::after {
	display: none;
}

/* Step headings with a number in a red disc. */
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .checkout-step {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-size: 1.15rem;
}

.woocommerce-checkout .woocommerce-billing-fields > h3::before,
.woocommerce-checkout .checkout-step::before {
	content: counter(step);
	counter-increment: step;
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--red-deep);
	color: #fff;
	font-size: 0.9rem;
}

/* The payment heading is printed just outside the payment card (WooCommerce
   refreshes the card on its own), so it is drawn as the card's top edge and both
   step headings line up. The negative margin cancels the column gap. */
.woocommerce-checkout .checkout-step {
	margin: 0 0 -24px;
	padding: 24px 24px 18px;
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: var(--radius) var(--radius) 0 0;
	background: var(--surface);
}

.woocommerce-checkout .checkout-step + #payment {
	padding-top: 0;
	border-top: 0;
	border-radius: 0 0 var(--radius) var(--radius);
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
	display: grid;
	gap: 4px 16px;
}

@media (min-width: 640px) {
	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
		grid-template-columns: 1fr 1fr;
	}

	.woocommerce-checkout #billing_first_name_field {
		grid-column: 1 / -1;
	}
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row {
	width: auto;
	margin: 0 0 12px;
	padding: 0;
	float: none;
}

.woocommerce-checkout .woocommerce-account-fields {
	margin-top: 4px;
}

.woocommerce-checkout .woocommerce-account-fields .form-row {
	margin: 0;
	padding: 0;
}

/* Payment methods as cards; the picked one is outlined in red. */
.woocommerce-checkout #payment ul.payment_methods {
	display: grid;
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	border: 0;
}

.woocommerce-checkout #payment ul.payment_methods::before,
.woocommerce-checkout #payment ul.payment_methods::after {
	display: none;
}

/* Radio in its own column, so a long method name wraps under the name. */
.woocommerce-checkout #payment ul.payment_methods li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 10px;
	align-items: center;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: var(--bg-soft);
	line-height: 1.4;
	list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li:has(> input:checked) {
	border-color: var(--red-deep);
	background: color-mix(in srgb, var(--red) 10%, var(--surface));
	box-shadow: inset 0 0 0 1px var(--red-deep);
}

.woocommerce-checkout #payment ul.payment_methods li::before,
.woocommerce-checkout #payment ul.payment_methods li::after {
	display: none;
}

.woocommerce-checkout #payment ul.payment_methods li > input {
	grid-column: 1;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--red-deep);
}

.woocommerce-checkout #payment ul.payment_methods li > label {
	grid-column: 2;
}

.woocommerce-checkout #payment ul.payment_methods li > label {
	font-weight: 700;
	cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods li img {
	max-height: 24px;
	margin-left: 8px;
	vertical-align: middle;
}

.woocommerce-checkout #payment div.payment_box {
	grid-column: 2;
	margin: 10px 0 0;
	padding: 0;
	background: none;
	color: var(--muted);
	font-size: 0.9rem;
}

.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

.woocommerce-checkout #payment div.payment_box p:last-child {
	margin-bottom: 0;
}

.woocommerce-checkout #payment div.form-row,
.woocommerce-checkout #payment div.place-order {
	margin: 0;
	padding: 0;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
	margin-bottom: 16px;
	color: var(--muted);
	font-size: 0.86rem;
}

.woocommerce-checkout .woocommerce-privacy-policy-text p {
	margin-bottom: 8px;
}

/* Checkbox labels hang from the box, so a wrapped line starts under the text. */
.woocommerce-checkout form .form-row label.woocommerce-form__label-for-checkbox {
	display: block;
	padding-left: 28px;
	color: var(--text);
	font-size: 0.92rem;
	line-height: 1.5;
}

.woocommerce-checkout form .form-row label.woocommerce-form__label-for-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0 6px 0 -28px; /* plus the space after it in the markup */
	accent-color: var(--red-deep);
	vertical-align: -4px;
}

/* "Ghi nhớ mật khẩu" and other account checkboxes: the browser's 13px box is too small to tap. */
.woocommerce-account .woocommerce-form__input-checkbox {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	accent-color: var(--red-deep);
	vertical-align: -3px;
}

.woocommerce #payment #place_order,
.woocommerce-checkout #payment #place_order {
	float: none;
	width: 100%;
	min-height: 56px;
	font-size: 1.1rem;
	font-variant-numeric: tabular-nums;
}

/* Order summary card. */
.checkout-summary {
	min-width: 0;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.woocommerce-checkout #order_review_heading {
	margin: 0 0 6px;
	font-size: 1.15rem;
}

.checkout-summary table.shop_table {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.checkout-summary table.shop_table thead {
	display: none;
}

.checkout-summary table.shop_table th,
.checkout-summary table.shop_table td {
	padding: 12px 0;
}

.checkout-summary table.shop_table tbody tr:first-child td {
	border-top: 0;
}

.checkout-summary .product-quantity {
	display: none;
}

.checkout-summary td.product-name {
	padding-right: 12px;
}

.checkout-summary td.product-total,
.checkout-summary tfoot td {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.checkout-summary td.product-total {
	vertical-align: middle;
}

.review-item {
	display: flex;
	gap: 12px;
	align-items: center;
}

.review-item__img {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	object-fit: cover;
}

.review-item__name {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
}

.checkout-summary dl.variation {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 0.85rem;
}

.checkout-summary dl.variation dt,
.checkout-summary dl.variation dd,
.checkout-summary dl.variation p {
	display: inline;
	margin: 0;
}

/* Subtotal equals the total unless a coupon, fee or tax line sits between them. */
.woocommerce-checkout-review-order-table:not(:has(.cart-discount, .fee, .tax-rate, .tax-total)) .cart-subtotal {
	display: none;
}

.checkout-summary .order-total th,
.checkout-summary .order-total td {
	font-size: 1.2rem;
	font-weight: 800;
}

.checkout-summary .order-total td {
	color: var(--price);
}

.checkout-promise {
	margin: 18px 0 0;
	font-size: 0.88rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: 4px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: var(--surface-2);
}

.woocommerce .woocommerce-customer-details address {
	border-color: var(--line);
	border-radius: var(--radius-s);
}

.woocommerce span.onsale {
	display: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--text);
	line-height: 26px;
}

.select2-dropdown {
	border-color: var(--line-strong);
	background: var(--bg-soft);
	color: var(--text);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	padding: 56px 0 88px;
	border-top: 1px solid var(--line);
	background: var(--bg-soft);
	font-size: 0.94rem;
}

.footer-grid {
	display: grid;
	gap: 28px;
}

/* Phones: shop and policy links side by side, so the footer is not a long single list. */
@media (max-width: 759px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 20px;
	}

	.footer-grid > .footer-col:first-child,
	.footer-grid > .footer-col:last-child {
		grid-column: 1 / -1;
	}
}

@media (min-width: 760px) {
	.footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	}
}

.footer-brand {
	margin-bottom: 8px;
	font-size: 1.2rem;
	font-weight: 800;
}

.footer-col p {
	color: var(--muted);
}

.footer-title {
	margin-bottom: 12px;
	color: var(--text) !important;
	font-weight: 800;
}

.footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links li + li {
	margin-top: 2px;
}

.footer-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	color: var(--muted);
	text-decoration: none;
	word-break: break-word;
}

.footer-links a:hover {
	color: var(--text);
}

.footer-hours {
	color: var(--muted);
}

.footer-bottom {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.84rem;
}

.footer-bottom p {
	margin: 0 0 6px;
}

/* Floating "Liên hệ" button (ocg_floating_contact()), as on ongchummo.vn: a
   quiet pill with a status dot, green in support hours and gold outside them. */
.float-contact {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 40;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: inset 0 1px 0 rgba(255, 247, 245, 0.06), 0 18px 40px -12px rgba(0, 0, 0, 0.7);
	transition: background-color 0.15s, transform 0.15s;
}

.float-contact:hover {
	background: var(--surface-2);
	color: var(--text);
	transform: translateY(-2px);
}

.float-contact .icon {
	color: var(--red-ink);
}

.float-contact__dot {
	position: absolute;
	top: -2px;
	right: 16px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--muted);
	box-shadow: 0 0 0 2px var(--bg);
}

.float-contact.is-open .float-contact__dot {
	background: var(--pine-bright);
}

.float-contact.is-closed .float-contact__dot {
	background: var(--gold);
}

.float-contact.is-open .float-contact__dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: inherit;
	animation: ocg-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ocg-ping {
	75%,
	100% {
		opacity: 0;
		transform: scale(2.2);
	}
}

.has-buy-bar .float-contact {
	bottom: 84px;
}

@media (max-width: 599px) {
	.float-contact {
		right: 16px;
		bottom: 16px;
		justify-content: center;
		width: 52px;
		height: 52px;
		padding: 0;
	}

	.float-contact .icon {
		width: 22px;
		height: 22px;
	}

	.float-contact__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.float-contact__dot {
		top: 4px;
		right: 6px;
	}
}

/* The sheet it opens: a native modal dialog sliding in from the right. */
.contact-sheet {
	position: fixed;
	inset: 0 0 0 auto;
	flex-direction: column;
	width: min(92vw, 400px);
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--line);
	background: var(--bg);
	color: var(--text);
	box-shadow: var(--shadow);
}

.contact-sheet[open] {
	display: flex;
	animation: ocg-sheet-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-sheet::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

@keyframes ocg-sheet-in {
	from {
		transform: translateX(100%);
	}
}

html:has(.contact-sheet[open]) {
	overflow: hidden;
}

.contact-sheet__head {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 64px;
	padding: 0 12px 0 20px;
	border-bottom: 1px solid var(--line);
}

.contact-sheet__title {
	margin: 0;
	font-size: 1.2rem;
}

.contact-sheet__body {
	display: grid;
	flex: 1;
	align-content: start;
	gap: 24px;
	padding: 20px;
	overflow-y: auto;
}

.sheet-status {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.4;
}

.sheet-status__dot {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--muted);
}

.sheet-status.is-open {
	color: var(--pine-ink);
}

.sheet-status.is-open .sheet-status__dot {
	background: var(--pine-bright);
}

.sheet-status.is-closed .sheet-status__dot {
	background: var(--gold);
}

.sheet-group__title {
	margin: 0 0 6px;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Channel rows, shared by the sheet and the contact page cards. */
.channel-list {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.channel {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 8px 12px;
	border-radius: 12px;
	color: var(--text);
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s;
}

.channel:hover {
	background: var(--surface-2);
	color: var(--text);
}

.channel > .icon:first-child {
	width: 20px;
	height: 20px;
	color: var(--red-ink);
}

.channel__text {
	display: grid;
	flex: 1;
	min-width: 0;
}

.channel__title {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
}

.channel__note {
	overflow: hidden;
	color: var(--muted);
	font-size: 0.86rem;
	line-height: 1.4;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.channel .icon--external {
	width: 16px;
	height: 16px;
	color: var(--muted);
}

/* Short items two to a row, so the long group list still fits a phone screen. */
.channel-list--grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.channel-list--grid .channel {
	align-items: start;
	padding: 10px 12px;
	border: 1px solid var(--line);
}

/* The heading already says these are Zalo groups; the room goes to the text. */
.channel-list--grid .channel > .icon:first-child {
	display: none;
}

.channel-list--grid .channel__note {
	display: -webkit-box;
	white-space: normal;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.channel-list--grid .channel:hover {
	border-color: var(--line-strong);
}

.contact-sheet__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-self: start;
	min-height: 44px;
	color: var(--red-ink);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
}

/* ==========================================================================
   Christmas (body.is-noel)
   ========================================================================== */

.noel-snow {
	position: fixed;
	inset: 0;
	z-index: 45;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

:root[data-theme="light"] .noel-snow {
	filter: drop-shadow(0 0 1px rgba(120, 140, 170, 0.9));
}

.noel-hat {
	position: absolute;
	top: -11px;
	left: -8px;
	width: 34px;
	height: 26px;
	transform: rotate(-18deg);
	pointer-events: none;
}

.noel-lights {
	position: sticky;
	top: calc(var(--header-h) + 1px);
	z-index: 49;
	display: flex;
	justify-content: space-around;
	height: 0;
	overflow: visible;
	pointer-events: none;
}

.admin-bar .noel-lights {
	top: calc(var(--header-h) + 33px);
}

.noel-lights::before {
	content: "";
	position: absolute;
	inset: -2px 0 auto;
	height: 12px;
	border-bottom: 1.5px solid rgba(46, 125, 80, 0.85);
	border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.noel-lights i {
	position: relative;
	top: 6px;
	width: 8px;
	height: 12px;
	border-radius: 50% 50% 45% 45%;
	background: var(--red);
	box-shadow: 0 0 10px 2px currentColor;
	color: var(--red);
	animation: noel-twinkle 1.8s ease-in-out infinite;
}

.noel-lights i:nth-child(4n + 2) {
	background: var(--gold);
	color: var(--gold);
	animation-delay: 0.45s;
}

.noel-lights i:nth-child(4n + 3) {
	background: var(--pine-bright);
	color: var(--pine-bright);
	animation-delay: 0.9s;
}

.noel-lights i:nth-child(4n + 4) {
	background: #e9f1ff;
	color: #cfe0ff;
	animation-delay: 1.35s;
}

.noel-lights i:nth-child(n + 13) {
	display: none;
}

@media (min-width: 760px) {
	.noel-lights i:nth-child(n + 13) {
		display: block;
	}
}

@keyframes noel-twinkle {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.35;
	}
}

.is-noel .eyebrow {
	border-color: color-mix(in srgb, var(--pine-bright) 60%, transparent);
	background: color-mix(in srgb, var(--pine) 22%, var(--surface));
}

.is-noel .eyebrow .icon {
	color: var(--pine-bright);
}

.is-noel .contact-band {
	background:
		radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px) 0 0 / 46px 46px,
		linear-gradient(115deg, var(--red-deep), var(--red-dark) 60%, #154f33);
}

.is-noel .section-head h2::after {
	content: "";
	display: block;
	width: 64px;
	height: 6px;
	margin-top: 12px;
	border-radius: 3px;
	background: repeating-linear-gradient(-45deg, var(--red) 0 8px, #fff 8px 16px);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
