/* Hallmark · shape: product shelf on native Flatsome elements (search-led hero, logo slider, product rows, lineup tiles, blog feature) · genre: modern-minimal · theme: custom · job: buy · idea: "Every AI skill, MCP and document sits on a quiet Apple-grey shelf like a product, priced in black and bought with one blue pill." · vibe: "quiet shelf, precise type, one blue action"
 * paper: #ffffff / #f5f5f7 (user: apple.com/iphone) · accent: #be9b7b light brown (user) · display: Montserrat (user) · body: Montserrat (user) · hero: centred search-first head after mcpmarket.com (user), live count pill, typed noun Skill/MCP/tài liệu, category pills · nav: Flatsome header builder, glass bar · footer: Flatsome block, fine-print columns on grey · imagery: product covers (user uploads; typographic stand-ins until then) · signature: the typed noun in the search-first head over a live count of resources
 * axes: light/geometric-sans/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S3 R5 V4 · weakest: S, an Apple-grey store could sell anything; the hero leads with the live count and typed Skill/MCP noun, covers are set by category */
/* waive 7b: pure black bands and tiles are the user-specified apple.com/iphone palette */
/* waive 24b: off-scale paddings (6, 10, 14, 18, 22px) reproduce the first design the user approved */
/* waive 44c: user asked for a centred hero after mcpmarket.com */
/* waive 40: white text on light-brown buttons is the user's explicit choice; weight 500 per the user */
/* Bố cục dựng bằng element gốc của Flatsome (UX Builder); file này chỉ chỉnh giao diện cho giống bản thiết kế đầu. */
@import url("./tokens.css");
@import url("./base.css");

/* 1. Nền chung + chữ */
html, body { overflow-x: clip; }
body { background: var(--color-paper); color: var(--color-ink); line-height: 1.55; letter-spacing: -0.005em; }
/* Font chữ, cỡ chữ menu: chỉnh trong Giao diện > Tuỳ biến > Style > Typography (Flatsome) */
h1, h2, h3, h4, h5, h6 { color: var(--color-ink); letter-spacing: -0.025em; }
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5 { color: var(--color-dark-ink); }
a { color: var(--color-link); }
#wrapper, #main { background: var(--color-paper); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.button, button, input[type="submit"], .section-title, .section-title-main, .widget-title, .uppercase, h5.uppercase, h6, th, .breadcrumbs, .product-category, .badge-inner, .cat-label, .tag-label, #logo a, .product-section-title, .page-title, .shop-page-title h1 {
  text-transform: none !important; letter-spacing: 0 !important;
}
.section .col .section-title-container { padding-inline: 0; }
.st-sec { padding-block: var(--section-gap-s) !important; }
.st-sec--grey { background: var(--color-paper-2) !important; }
.st-sec .row > .col:not(.post-item) { padding-bottom: 0; }
.st-sec .row-small { margin-inline: calc(-1 * var(--gap-columns) / 2) !important; }
.st-sec .row-small > .col { padding: 0 calc(var(--gap-columns) / 2) var(--gap-columns) !important; }

/* 2. Nút */
.button, input[type="submit"], button[type="submit"] {
  min-height: 44px; margin-bottom: 0; padding: 0 22px; border-radius: var(--radius-pill) !important;
  font-size: var(--text-sm); font-weight: 600; line-height: 44px; box-shadow: none !important;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), box-shadow var(--dur-short), transform var(--dur-micro) var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.button.primary:not(.is-outline), .button.alt, #place_order { background-color: var(--color-accent) !important; color: var(--color-accent-ink) !important; border: 0; }
.button.primary:not(.is-outline):hover, .button.alt:hover, #place_order:hover { background-color: var(--color-accent-hover) !important; }
.button.is-small { min-height: 36px; line-height: 36px; padding: 0 18px; font-size: var(--text-sm); }
.button.is-outline { border-width: 1px; }
.button.is-outline.is-small { line-height: 34px; }
.button[disabled], .button.disabled { background: var(--color-paper-3) !important; color: var(--color-muted) !important; cursor: not-allowed; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 44px; margin: 0; padding: 0 22px; border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--text-sm); font-weight: 600; line-height: 1; text-transform: none; letter-spacing: 0; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.st-btn:hover { background: var(--color-accent-hover); color: var(--color-accent-ink); }
.st-btn:active { transform: scale(0.97); }
.st-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.st-btn[aria-disabled="true"] { background: var(--color-paper-3); color: var(--color-muted); cursor: not-allowed; pointer-events: none; }
.st-btn.is-loading { cursor: progress; }
.st-btn--sm { min-height: 36px; padding: 0 18px; }
.st-btn--ghost { background: transparent; color: var(--color-link); box-shadow: inset 0 0 0 1px currentColor; }
.st-btn--ghost:hover { background: var(--color-link); color: var(--color-paper); }
.st-link { color: var(--color-link); font-weight: 500; text-decoration: none; }
.st-link:hover { text-decoration: underline; }

/* 3. Header — thanh kính 52px */
.header-wrapper, #masthead, .header-main, .header-bg-color { background-color: var(--color-glass) !important; }
.header-bg-image, .header-bg-color { background: transparent !important; }
.header-wrapper { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--color-hairline); box-shadow: none !important; }
.header-shadow .header-wrapper, .header-wrapper.stuck { box-shadow: none !important; }
#logo { width: auto !important; margin-right: var(--space-xl); }
#logo a { color: var(--color-ink); font-size: 1.125rem; font-weight: 700; }
.header-nav .nav-dropdown { border-radius: var(--radius-card); border: 1px solid var(--color-rule); box-shadow: var(--shadow-card); }
.nav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; border-radius: 8px; }
.header-search-form { min-width: 240px; }
.header-search-form input.search-field, .header-search-form input[type="search"] {
  height: 34px; padding: 0 14px 0 34px; border: 0; border-radius: var(--radius-pill);
  background: var(--color-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px 50%;
  box-shadow: none; color: var(--color-ink); font-size: 0.8125rem;
}
.header-search-form input.search-field:focus { box-shadow: 0 0 0 2px var(--color-focus); }
.header-search-form .ux-search-submit { display: none; }
.header-nav .cart-item > a, .header-nav .account-item > a { color: var(--color-ink); font-size: 0.8125rem; font-weight: 500; }
.header-nav .cart-icon strong { border-color: var(--color-ink); color: var(--color-ink); border-radius: 6px; }
.header-nav .cart-icon strong::after { border-color: var(--color-ink); }
.cart-item:hover .cart-icon strong { background: var(--color-ink); color: var(--color-paper); }
.header-divider { display: none; }

/* 4. Tiêu đề mục: chữ lớn trái, "Xem tất cả" phải */
.section-title-container { margin-bottom: var(--space-xl) !important; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-lg); margin: 0; border: 0 !important; }
.section-title b { display: none !important; }
.section-title .section-title-main { padding: 0 !important; margin: 0 !important; border: 0 !important; color: var(--color-ink); font-size: var(--text-section); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em !important; }
.section-title a { margin: 0; padding: 0; color: var(--color-link); font-size: var(--text-md); font-weight: 500; white-space: nowrap; }
.section-title a:hover { text-decoration: underline; }
.section-title a .icon-angle-right { display: none; }

/* 5. Hero trang chủ */
.st-hero-native { position: relative; padding-block: clamp(56px, 9vh, 104px) clamp(48px, 7vh, 88px) !important; text-align: center; background: radial-gradient(var(--color-paper-3) 1px, transparent 1.5px) 0 0 / 14px 14px, var(--color-paper) !important; }
.st-hero-native::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 60% at 50% 45%, var(--color-paper) 30%, transparent 75%); }
.st-hero-native .section-content { position: relative; z-index: var(--z-raised); }
.st-hero-native .col { padding-bottom: 0; }
.st-hero-native .col-inner { display: flex; flex-flow: row wrap; justify-content: center; align-items: center; }
.st-hero-native .col-inner > * { flex: 0 0 100%; }
.st-hero-native .col-inner > .st-hero-status, .st-hero-native .col-inner > .button { flex: 0 0 auto; }
.st-hero-status { display: inline-flex; align-items: center; gap: var(--space-sm); margin: 0 0 var(--space-lg) !important; padding: 7px var(--space-md); border-radius: var(--radius-pill); background: var(--color-paper); box-shadow: 0 0 0 1px var(--color-rule), 0 4px 14px var(--color-shadow); color: var(--color-muted); font-size: var(--text-xs); font-weight: 500; }
.st-hero-status strong { color: var(--color-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.st-hero-sep { width: 1px; height: 12px; background: var(--color-rule); }
.st-hero-title { max-width: 14ch; margin: 0 auto !important; color: var(--color-ink); font-size: var(--text-display) !important; font-weight: 700; line-height: 1.04; letter-spacing: var(--tracking-display) !important; text-wrap: balance; }
.st-hero-line { display: block; }
.st-rotator { display: inline-flex; align-items: baseline; }
.st-rotator__word { display: inline-block; }
.st-rotator__caret { display: inline-block; width: 3px; height: 0.82em; margin-left: 6px; background: var(--color-accent); align-self: center; animation: st-blink 1s steps(1) infinite; }
@keyframes st-blink { 50% { opacity: 0; } }
.st-hero-lead { max-width: 42ch; margin: var(--space-lg) auto 0 !important; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; }
.st-hero-native .searchform-wrapper { width: min(100%, 640px); margin: var(--space-xl) auto 0; }
.st-hero-native .searchform .flex-row { position: relative; align-items: center; padding: 6px; border-radius: 16px; background: var(--color-paper); box-shadow: 0 0 0 1px var(--color-rule), 0 10px 30px var(--color-shadow); transition: box-shadow var(--dur-short) var(--ease-out); }
.st-hero-native .searchform .flex-row:focus-within { box-shadow: 0 0 0 2px var(--color-focus), 0 10px 30px var(--color-shadow); }
.st-hero-native .searchform .search-field { height: 48px !important; margin: 0 !important; padding: 0 var(--space-sm) 0 42px !important; border: 0 !important; box-shadow: none !important; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px 50% !important; color: var(--color-ink); font-size: var(--text-md) !important; }
.st-hero-native .searchform .search-field::placeholder { color: var(--color-muted); opacity: 1; }
.st-hero-native .searchform .ux-search-submit { min-width: 0; min-height: 44px; margin: 0 !important; padding: 0 22px !important; border-radius: var(--radius-pill) !important; background: var(--color-accent) !important; color: var(--color-accent-ink) !important; line-height: 44px; }
.st-hero-native .searchform .ux-search-submit:hover { background: var(--color-accent-hover) !important; }
.st-hero-native .searchform .ux-search-submit i { display: none; }
.st-hero-native .searchform .ux-search-submit::after { content: "Tìm"; font-size: var(--text-sm); font-weight: 600; }
.st-hero-native .button.st-chip { min-height: 34px; margin: var(--space-xl) var(--space-2xs) 0; padding: 0 var(--space-md); line-height: 32px; border: 1px solid var(--color-rule); background: var(--color-paper) !important; color: var(--color-ink-2) !important; font-size: var(--text-sm); font-weight: 500; }
.st-hero-native .button.st-chip:hover { border-color: var(--color-ink); color: var(--color-ink) !important; }
.st-hero-native .button.st-chip.is-active { border-color: var(--color-ink); background: var(--color-ink) !important; color: var(--color-paper) !important; }

/* 6. Dải logo AI — slider gốc, 5 logo một lúc */
.st-logos-native { padding-block: var(--space-xl) !important; border-block: 1px solid var(--color-paper-3); }
.st-logos-native .row > .col { padding-bottom: 0; }
.st-logos-title { margin: 0 0 var(--space-lg) !important; color: var(--color-ink); font-size: var(--text-md); font-weight: 600; text-align: center; }
.st-logo-slider .flickity-page-dots, .st-logo-slider .flickity-prev-next-button { display: none !important; }
.st-ai-logo.icon-box { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; padding: var(--space-xs) 0; opacity: 0.85; transition: opacity var(--dur-short) var(--ease-out); }
.st-ai-logo:hover { opacity: 1; }
.st-ai-logo .icon-box-img { flex: none; margin: 0 !important; }
.st-ai-logo .icon-box-img svg, .st-ai-logo .icon-box-img img { width: 28px; height: 28px; }
.st-ai-logo .icon-box-img svg path { fill: var(--color-ink); }
.st-ai-logo .icon-box-text { flex: none; padding-left: var(--space-sm); }
.st-ai-logo__name { margin: 0 !important; color: var(--color-ink); font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }

/* 7. Thẻ sản phẩm */
.product-small.col > .col-inner { height: 100%; }
.product-small.box { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius-card); background: var(--color-paper); box-shadow: 0 0 0 1px var(--color-paper-3); transition: box-shadow var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.st-sec--grey .product-small.box { box-shadow: none; }
.product-small.box:hover { box-shadow: 0 0 0 1px var(--color-paper-3), 0 14px 34px var(--color-shadow); transform: translateY(-2px); }
.product-small.box:focus-within { box-shadow: 0 0 0 2px var(--color-focus); }
.product-small .box-image { width: 100% !important; border-radius: 0 !important; }
.product-small .box-image > div, .product-small .box-image > div > a { display: block; width: 100%; }
.product-small .box-text { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-content: start; column-gap: var(--space-sm); flex: 1; padding: var(--space-md) !important; text-align: left; }
.product-small .box-text > * { grid-column: 1 / -1; }
.product-small .box-text .title-wrapper { margin: var(--space-sm) 0 var(--space-md); }
.product-small .box-text .product-title { margin: 0; font-size: var(--text-title); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
.product-small .box-text .product-title a { color: var(--color-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-small .box-text .product-title a:hover { color: var(--color-link); }
.product-small .box-text > .price-wrapper { grid-column: 1; align-self: end; margin: 0; }
.product-small .box-text > .add-to-cart-button { grid-column: 2; align-self: end; margin: 0; }
.product-small .price { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 0; margin: 0; }
.product-small .price ins, .product-small .price > .amount { color: var(--color-ink); font-size: 1.125rem; font-weight: 700; text-decoration: none; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.product-small .price del { color: var(--color-muted); font-size: var(--text-sm); opacity: 1; font-variant-numeric: tabular-nums; }
.product-small .price del .amount { color: inherit; font-weight: 400; }
.product-small .add-to-cart-button .button { margin: 0; min-height: 36px; line-height: 36px; padding: 0 18px; font-size: var(--text-sm); }
.product-small .box-text .category, .product-small .badge-container, .product-small .image-tools { display: none !important; }
.st-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; padding: 0; list-style: none; }
.st-tags li { margin: 0 !important; }
.st-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 7px; background: var(--color-tag-bg); color: var(--color-tag-ink); font-size: var(--text-xs); font-weight: 600; line-height: 1; }
.st-tag--sale { background: var(--color-sale-bg); color: var(--color-sale); }
.st-tags--dark .st-tag { background: var(--color-dark-3); color: var(--color-dark-ink); }
.st-cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; width: 100%; aspect-ratio: 16 / 9; padding: clamp(14px, 4%, 22px); overflow: hidden; background: var(--cover-doc-bg); color: var(--cover-doc-ink); text-align: left; }
.st-cover__img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.st-cover__kind { color: var(--cover-doc-kind); font-size: var(--text-xs); font-weight: 600; }
.st-cover__title { max-width: 16ch; font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-cover__brand { position: absolute; top: clamp(14px, 4%, 22px); left: clamp(14px, 4%, 22px); font-size: var(--text-xs); font-weight: 700; opacity: 0.7; }
.product-small .st-cover__title { -webkit-line-clamp: 2; }
.st-cover--skill { background: var(--cover-skill-bg); color: var(--cover-skill-ink); }
.st-cover--skill .st-cover__kind { color: var(--cover-skill-kind); }
.st-cover--mcp { background: var(--cover-mcp-bg); color: var(--cover-mcp-ink); }
.st-cover--mcp .st-cover__kind { color: var(--cover-mcp-kind); }

/* 8. Chọn theo loại */
.st-lineup-native { margin-inline: calc(-1 * var(--gap-columns) / 2) !important; }
.st-lineup-native > .col { padding: 0 calc(var(--gap-columns) / 2) var(--gap-columns) !important; }
.st-lineup-native .col-inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); height: 100%; min-height: 460px; border-radius: var(--radius-tile) !important; }
.st-tile-name { margin: 0 !important; font-size: clamp(2.5rem, 3vw + 1rem, 3.5rem) !important; font-weight: 700; line-height: 1 !important; letter-spacing: -0.045em !important; }
.st-tile-desc { margin: 0 !important; opacity: 0.8; font-size: var(--text-md); line-height: 1.45; }
.st-tile-count { margin: 0 !important; color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.dark .st-tile-count { color: var(--color-dark-muted); }
.st-lineup-native .ux-products-list { width: 100%; margin: auto 0 var(--space-xs) !important; padding: 0; list-style: none; }
.st-lineup-native .ux-products-list li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); min-height: 0 !important; margin: 0 !important; padding: var(--space-sm) 0 !important; border-top: 1px solid var(--color-paper-3); }
.st-lineup-native .dark .ux-products-list li { border-color: var(--color-dark-rule); }
.st-lineup-native .ux-products-list li a { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; font-size: var(--text-sm); font-weight: 500; }
.st-lineup-native .ux-products-list li a:hover { text-decoration: underline; }
.st-lineup-native .ux-products-list .st-cover, .st-lineup-native .ux-products-list img, .st-lineup-native .ux-products-list del, .st-lineup-native .ux-products-list .screen-reader-text { display: none !important; }
.st-lineup-native .ux-products-list ins, .st-lineup-native .ux-products-list li > .amount { flex: none; color: inherit; font-size: var(--text-sm); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.st-lineup-native .ux-products-list .amount { color: inherit; }
.st-lineup-native .button.st-tile-btn { margin: 0; border-color: var(--color-link); background: transparent; color: var(--color-link); }
.st-lineup-native .button.st-tile-btn:hover { background: var(--color-link); color: var(--color-paper); }
.st-lineup-native .dark .button.st-tile-btn { border-color: var(--color-dark-link); color: var(--color-dark-link); }
.st-lineup-native .dark .button.st-tile-btn:hover { background: var(--color-dark-link); color: var(--color-dark); }

/* 9. Blog */
.archive-page-header { padding-block: var(--space-2xl) var(--space-xl); text-align: left; }
.archive-page-header .page-title { font-size: var(--text-display-s) !important; font-weight: 700; line-height: 1.05; letter-spacing: var(--tracking-display) !important; }
.archive-page-header .taxonomy-description { color: var(--color-muted); font-size: var(--text-lead); }
.blog-single .entry-header-text { padding-top: var(--space-2xl); }
.blog-single .entry-title { font-size: var(--text-display-s) !important; font-weight: 700; line-height: 1.08; letter-spacing: var(--tracking-display) !important; }
.blog-single .entry-content { font-size: 1.125rem; line-height: 1.65; }
.blog-single .entry-content h2 { margin-top: 1.8em; font-size: var(--text-xl); font-weight: 700; }
.blog-single .entry-category a { color: var(--color-muted); font-weight: 600; }
.blog-single .article-inner { max-width: 760px; margin-inline: auto; }
/* Bài trước / bài sau */
.navigation-post { margin-block: var(--space-xl) var(--space-lg); }
.navigation-post .next-prev-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); border: 0; }
.navigation-post .flex-col { min-width: 0; padding: 0; border: 0 !important; }
.navigation-post .flex-col:not(:has(a)) { display: none; }
.navigation-post .nav-prev:not(:has(a)) + .nav-next { grid-column: 2; }
.navigation-post .nav-previous, .navigation-post .nav-next > div { height: 100%; }
.navigation-post a {
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-2xs); height: 100%; padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper);
  color: var(--color-ink); font-size: var(--text-md); font-weight: 600; line-height: 1.4; text-decoration: none; overflow-wrap: break-word;
  transition: border-color var(--dur-short), background-color var(--dur-short);
}
.navigation-post a::before { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.navigation-post .nav-previous a::before { content: "Bài trước"; }
.navigation-post .nav-next a::before { content: "Bài sau"; }
.navigation-post .nav-next a { align-items: flex-end; text-align: right; }
.navigation-post a .hide-for-small { display: none; }
.navigation-post a:hover { border-color: var(--color-ink); background: var(--color-paper-2); }
.navigation-post a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 549px) {
  .navigation-post .next-prev-nav { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .navigation-post .nav-prev:not(:has(a)) + .nav-next { grid-column: auto; }
  .navigation-post a { padding: var(--space-sm) var(--space-md); font-size: var(--text-sm); }
}
.entry-divider { display: none; }

/* 10. Trang sản phẩm */
.st-phero-native { padding-block: var(--space-2xl) var(--space-3xl) !important; }
.st-phero-native .col { padding-bottom: 0; }
.st-phero-native .breadcrumbs { margin-bottom: var(--space-lg); }
.st-phero-native .breadcrumbs, .st-phero-native .breadcrumbs a { color: var(--color-dark-muted) !important; font-size: var(--text-sm); font-weight: 400; }
.st-phero-native .breadcrumbs a:hover { color: var(--color-dark-ink) !important; text-decoration: underline; }
.st-phero-native .st-tags--dark { margin-bottom: var(--space-md) !important; }
.st-phero-native .product-title { margin: 0; color: var(--color-dark-ink); font-size: var(--text-display-s) !important; font-weight: 700; line-height: 1.06; letter-spacing: var(--tracking-display) !important; }
.st-phero-native .is-divider { display: none; }
.st-phero-native .product-short-description { max-width: 40ch; margin-top: var(--space-md); color: var(--color-dark-muted); font-size: var(--text-lead); line-height: 1.45; }
.st-phero-native .product-short-description p { color: inherit; }
.st-facts { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: var(--space-lg) 0 0 !important; padding: 0; list-style: none; }
.st-facts li { margin: 0 !important; padding: 6px 14px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--color-dark-rule); color: var(--color-dark-ink); font-size: var(--text-sm); font-weight: 500; }
.st-pbody-native { padding-block: 0 var(--section-gap-s) !important; }
.st-buy-col .col-inner { overflow: hidden; padding: 0 !important; border-radius: var(--radius-card); background: var(--color-paper); box-shadow: 0 0 0 1px var(--color-paper-3), 0 20px 50px var(--color-shadow-lg); }
@media (min-width: 850px) { .st-buy-col { margin-top: -260px; position: relative; z-index: var(--z-raised); } }
.st-buy-col .product-images { margin: 0 !important; }
.st-buy-col .product-images .st-cover { aspect-ratio: 16 / 10; }
.st-buy-col .product-images .st-cover__title { font-size: var(--text-2xl); }
.st-buy-col .image-tools, .st-buy-col .badge-container, .st-buy-col .product-thumbnails { display: none !important; }
.st-buy-col .product-price-container, .st-buy-col .st-buy-save, .st-buy-col .st-checks, .st-buy-col form.cart { margin-inline: var(--space-lg) !important; }
.st-buy-col .product-price-container { margin-top: var(--space-lg); }
.st-buy-col .price { display: flex; flex-wrap: wrap; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: var(--space-2xs) 10px; margin: 0; }
.st-buy-col .price ins, .st-buy-col .price > .amount { color: var(--color-ink); font-size: var(--text-3xl); font-weight: 700; text-decoration: none; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.st-buy-col .price del { color: var(--color-muted); font-size: var(--text-md); opacity: 1; }
.st-buy-col .price del .amount { color: inherit; font-weight: 400; }
.st-buy-save { margin-top: var(--space-sm) !important; }
.st-buy-col form.cart { display: block; margin-top: var(--space-md) !important; margin-bottom: var(--space-lg) !important; }
.st-buy-col .single_add_to_cart_button { display: flex; width: 100%; min-height: 52px; margin: 0; justify-content: center; font-size: var(--text-md); line-height: 52px; }
.st-buy-col .quantity { display: none !important; }
.st-buy-col .st-checks { margin-top: var(--space-md) !important; }
.st-subnav { position: sticky; top: var(--header-h); z-index: var(--z-sticky); display: flex; gap: var(--space-lg); margin: 0 0 var(--space-xl); padding-top: var(--space-lg); background: var(--color-paper); border-bottom: 1px solid var(--color-rule); overflow-x: auto; scrollbar-width: none; }
.st-subnav a { flex: none; margin-bottom: -1px; padding: var(--space-sm) 0 14px; border-bottom: 2px solid transparent; color: var(--color-muted); font-size: var(--text-sm); font-weight: 600; text-decoration: none; transition: color var(--dur-short), border-color var(--dur-short); }
.st-subnav a:hover { color: var(--color-ink); }
.st-subnav a.is-active { color: var(--color-ink); border-color: var(--color-ink); }
.st-subnav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
.st-pmain-col .product-section { padding-block: var(--space-xl); border-top: 1px solid var(--color-paper-3) !important; scroll-margin-top: calc(var(--header-h) + 70px); }
.st-pmain-col .product-section:first-of-type { border-top: 0 !important; }
.st-pmain-col .product-section > .row > .col { flex-basis: 100%; max-width: 100%; padding-bottom: 0; }
.st-pmain-col .product-section h5 { margin: 0 0 var(--space-lg); color: var(--color-ink); font-size: var(--text-2xl) !important; font-weight: 700; letter-spacing: -0.03em !important; }
.st-pmain-col .panel { padding: 0; }
.st-learn { margin-bottom: var(--space-xl); padding: var(--space-lg) var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.st-learn__title { margin: 0 0 var(--space-md) !important; font-size: var(--text-lg) !important; font-weight: 700; letter-spacing: -0.02em; }
.st-checks { display: grid; gap: 10px; margin: 0 !important; padding: 0; list-style: none; }
.st-learn .st-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm) var(--space-xl); }
.st-checks li { position: relative; margin: 0 !important; padding-left: 28px; color: var(--color-ink); font-size: var(--text-md); line-height: 1.45; }
.st-checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 50%; background: var(--color-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") no-repeat center; }
.st-checks--sm li { font-size: var(--text-sm); color: var(--color-ink-2); }
.st-bullets { margin: 0 !important; padding-left: 1.2em; }
.st-bullets li { margin-bottom: var(--space-xs); color: var(--color-ink-2); line-height: 1.5; }
.st-acc { border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-rule); overflow: hidden; }
.st-acc__item + .st-acc__item { border-top: 1px solid var(--color-rule); }
.st-acc__sum { display: flex; align-items: center; gap: var(--space-md); padding: 18px var(--space-lg); cursor: pointer; list-style: none; background: var(--color-paper); transition: background-color var(--dur-short); }
.st-acc__sum::-webkit-details-marker { display: none; }
.st-acc__sum:hover { background: var(--color-paper-2); }
.st-acc__sum:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.st-acc__name { flex: 1; font-size: var(--text-md); font-weight: 600; }
.st-acc__count { color: var(--color-muted); font-size: var(--text-sm); }
.st-acc__chev { color: var(--color-muted); transition: transform var(--dur-short) var(--ease-out); }
.st-acc__item[open] .st-acc__chev { transform: rotate(180deg); }
.st-acc__list { margin: 0 !important; padding: 0 var(--space-lg) var(--space-md) calc(var(--space-lg) + 1.4em); }
.st-acc__list li { margin: 0 !important; padding: 10px 0; border-top: 1px solid var(--color-paper-3); color: var(--color-ink-2); font-size: var(--text-sm); }
.st-acc__list li:first-child { border-top: 0; }
.st-related-native { padding-block: var(--section-gap-s) !important; }
.related .product-section-title, .related h3 { margin-bottom: var(--space-xl); border: 0; font-size: var(--text-section) !important; font-weight: 700; letter-spacing: -0.03em !important; }

/* 11. Cửa hàng, thanh toán, form */
.shop-page-title .page-title-inner { padding-top: var(--space-2xl); }
.shop-page-title h1 { font-size: var(--text-display-s) !important; font-weight: 700; letter-spacing: var(--tracking-display) !important; }
.shop-page-title.featured-title .title-bg, .shop-page-title.featured-title .title-overlay { background: var(--color-paper-2) !important; }
.shop-page-title.featured-title, .shop-page-title.featured-title a { color: var(--color-ink) !important; }
.woocommerce-ordering select { border-radius: var(--radius-pill); border-color: var(--color-rule); font-size: var(--text-sm); }
.products.row > .product-small.col { padding-bottom: var(--gap-columns); }
.woocommerce-checkout input.input-text, .woocommerce-checkout select, .woocommerce-checkout textarea { min-height: 46px; border-radius: var(--radius-field); border-color: var(--color-rule); box-shadow: none; }
.woocommerce-checkout .col-inner.has-border, .checkout-sidebar.has-border { border: 0 !important; border-radius: var(--radius-card); background: var(--color-paper-2); }
.woocommerce-checkout h3, .woocommerce-checkout th, .woocommerce-checkout label { text-transform: none; letter-spacing: 0; }
.st-form { display: grid; gap: var(--space-md); }
.st-field { display: grid; gap: 6px; }
.st-field label { margin: 0; color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; }
.st-field input, .st-field select, .st-field textarea { width: 100%; min-height: 48px; margin: 0; padding: var(--space-sm) 14px; border: 1px solid var(--color-rule); border-radius: var(--radius-field); background: var(--color-paper); box-shadow: none; color: var(--color-ink); font-size: var(--text-md); }
.st-field input:focus, .st-field select:focus, .st-field textarea:focus { border-color: var(--color-focus); box-shadow: 0 0 0 3px var(--color-focus-ring); outline: none; }
.st-field input:disabled, .st-field textarea:disabled { background: var(--color-paper-2); color: var(--color-muted); border-style: dashed; cursor: not-allowed; }
.st-form__note { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-field); background: var(--color-paper); font-size: var(--text-sm); font-weight: 500; }
.st-form__note--ok { color: var(--color-success); box-shadow: inset 0 0 0 1px var(--color-success); }
.st-form__note--err { color: var(--color-error); box-shadow: inset 0 0 0 1px var(--color-error); }
.st-hp { position: absolute; left: -9999px; }

/* 12. Footer */
.st-footer-native { padding-block: var(--space-xl) var(--space-lg) !important; color: var(--color-muted); font-size: var(--text-xs); line-height: 1.45; }
.st-footer-native .col { padding-bottom: var(--space-lg); }
.st-footer-native p { margin: 0; font-size: var(--text-xs); }
.st-footer-native h4 { margin: 0 0 var(--space-sm); color: var(--color-ink); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0; }
.st-footer-brand { margin-bottom: var(--space-xs) !important; color: var(--color-ink); font-size: 1rem !important; font-weight: 700; letter-spacing: -0.03em; }
.st-footer-native .ux-menu-link, .st-footer-native .ux-menu-link__link { min-height: 0 !important; padding: 0 !important; border: 0 !important; }
.st-footer-native .ux-menu-link { margin-bottom: var(--space-xs); }
.st-footer-native .ux-menu-link__link { color: var(--color-ink-2); font-size: var(--text-xs); }
.st-footer-native .ux-menu-link__link:hover { color: var(--color-ink); text-decoration: underline; }
.absolute-footer { padding-block: var(--space-md) !important; border-top: 1px solid var(--color-rule); background: var(--color-paper-2) !important; font-size: var(--text-xs); }
.absolute-footer, .absolute-footer .copyright-footer, .absolute-footer a { color: var(--color-muted) !important; }
.back-to-top { border-radius: var(--radius-pill) !important; }

/* 13. Trang thanh toán QR (khung chờ + link tải sau khi tiền về qua SePay) */
.woocommerce-order-pay .order_details { display: none; }
.stp { margin: var(--space-xl) 0 var(--space-3xl); }
.stp__card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; padding: var(--space-xl); border-radius: var(--radius-tile); background: var(--color-paper-2); }
.stp__qrcol { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: 0 10px 30px var(--color-shadow); }
.stp__qr { display: grid; place-items: center; width: 240px; height: 240px; max-width: 100%; }
.stp__qr img, .stp__qr canvas { width: 100% !important; height: auto !important; }
.stp__amount { color: var(--color-ink); font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stp__test { color: var(--color-sale); font-size: var(--text-xs); font-weight: 600; text-align: center; }
.stp__title { font-size: var(--text-3xl); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; }
.stp__lead { max-width: 46ch; margin-top: var(--space-sm) !important; color: var(--color-ink-2); }
.stp__rows { margin: var(--space-lg) 0 0; }
.stp__row { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr); gap: var(--space-md); align-items: center; padding: var(--space-sm) 0; border-top: 1px solid var(--color-rule); }
.stp__row dt, .stp__row dd { text-transform: none; letter-spacing: 0; }
.stp__row dt { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.stp__row dd { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin: 0; color: var(--color-ink); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stp__copy { flex: none; min-height: 30px; margin: 0; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-pill); background: var(--color-paper); box-shadow: inset 0 0 0 1px var(--color-rule); color: var(--color-link); font-size: var(--text-xs); font-weight: 600; line-height: 1; text-transform: none; letter-spacing: 0; cursor: pointer; transition: background-color var(--dur-short), color var(--dur-short); }
.stp__copy:hover { background: var(--color-paper-3); }
.stp__copy:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.stp__copy.is-done { color: var(--color-success); }
.stp__status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: var(--space-lg) !important; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-field); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; }
.stp__spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--color-paper-3); border-top-color: var(--color-accent); animation: stp-spin 0.9s linear infinite; }
@keyframes stp-spin { to { transform: rotate(360deg); } }
.stp__timer { margin-left: auto; color: var(--color-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.stp[data-state="paid"] .stp__status { color: var(--color-success); box-shadow: inset 0 0 0 1px var(--color-success); }
.stp[data-state="paid"] .stp__spinner { animation: none; border-color: var(--color-success); background: var(--color-success); }
.stp[data-state="expired"] .stp__status { color: var(--color-error); }
.stp[data-state="expired"] .stp__spinner { display: none; }
.stp[data-state="expired"] .stp__qr { opacity: 0.25; }
.stp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-md); }
.stp__order { margin-top: var(--space-md) !important; color: var(--color-muted); font-size: var(--text-xs); }
.stp-dl, .stp-wait { margin: var(--space-lg) 0 var(--space-2xl); padding: var(--space-xl); border-radius: var(--radius-tile); background: var(--color-paper-2); }
.stp-wait p { margin: var(--space-xs) 0 var(--space-lg); color: var(--color-ink-2); }
.stp-dl__ok { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-success); font-size: var(--text-sm); font-weight: 600; }
.stp-dl__ok::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--color-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") no-repeat center; }
.stp-dl__title { margin-top: var(--space-xs) !important; font-size: var(--text-3xl); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.stp-dl__lead { margin-top: var(--space-sm) !important; color: var(--color-ink-2); }
.stp-dl__item { margin-top: var(--space-lg); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper); }
.stp-dl__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
.stp-dl__name { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.02em; }
.stp-dl__pending { color: var(--color-muted); font-size: var(--text-sm); }
.stp-dl__guide { margin-top: var(--space-md); border-top: 1px solid var(--color-paper-3); }
.stp-dl__guide summary { padding: var(--space-md) 0 var(--space-sm); color: var(--color-link); font-weight: 600; cursor: pointer; }
.stp-dl__guide summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* 14. Responsive + giảm chuyển động */
@media (max-width: 1100px) {
  .header-search-form { min-width: 180px; }
  .st-ai-logo__name { font-size: var(--text-md); }
}
@media (max-width: 849px) {
  .st-lineup-native .col-inner { min-height: 0; }
  .st-buy-col { order: -1; margin-top: calc(-1 * var(--space-xl)); position: relative; z-index: var(--z-raised); }
  .st-buy-col .product-images { display: none; }
  .st-learn .st-checks { grid-template-columns: minmax(0, 1fr); }
  .stp__card { grid-template-columns: minmax(0, 1fr); padding: var(--space-lg); gap: var(--space-lg); }
  .stp__qrcol { justify-self: center; width: 100%; max-width: 320px; }
  .stp__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .stp-dl, .stp-wait { padding: var(--space-lg); }
}
@media (max-width: 549px) {
  .section-title { flex-wrap: wrap; align-items: baseline; }
  .st-tile-col .col-inner { padding: var(--space-lg) !important; }
  .st-learn { padding: var(--space-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .st-rotator__caret { animation: none; }
  .stp__spinner { animation: none; border-color: var(--color-accent); }
}

/* Căn mép: các hàng nằm trực tiếp trong section giữ khoảng đệm cột gốc 15px của Flatsome */
.st-lineup-native { margin-inline: auto !important; }
.st-lineup-native > .col { padding: 0 15px var(--gap-columns) !important; }
.st-footer-native .ux-menu-link { margin-bottom: var(--space-xs) !important; }
.st-footer-native .ux-menu-link__text { line-height: 1.45; }

/* =====================================================================
   15. Trang danh sách sản phẩm (như course.kingnnt.org/courses)
   ===================================================================== */
.woocommerce-shop #main, .tax-product_cat #main, .tax-product_tag #main, .post-type-archive-product #main { background: var(--color-paper-2); }
.woocommerce-shop .shop-page-title, .tax-product_cat .shop-page-title, .tax-product_tag .shop-page-title { background: var(--color-paper-2); }
.category-page-title .page-title-inner { padding-block: var(--space-xl) var(--space-lg) !important; min-height: 0; }
.category-page-title .page-title-inner > .flex-col:last-child { display: none; }
.category-page-title .flex-col.flex-grow { text-align: left !important; }
.category-page-title .breadcrumbs { margin: 0; color: var(--color-muted); font-size: var(--text-sm); font-weight: 400; }
.category-page-title .breadcrumbs a { color: var(--color-muted); }
.category-page-title .breadcrumbs a:hover { color: var(--color-ink); text-decoration: underline; }
.category-page-title .breadcrumbs .divider { margin: 0 var(--space-2xs); opacity: 0.7; }
.st-shop-title { margin: var(--space-md) 0 0 !important; color: var(--color-ink); font-size: var(--text-display-s) !important; font-weight: 700; line-height: 1.05; letter-spacing: var(--tracking-display) !important; }
.st-shop-desc { margin: var(--space-sm) 0 0 !important; color: var(--color-ink-2); font-size: var(--text-md); }
.category-filtering { margin-top: var(--space-md); text-align: left; }
.category-filtering .filter-button { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 36px; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-paper); box-shadow: inset 0 0 0 1px var(--color-rule); color: var(--color-ink); font-size: var(--text-sm); }
.category-filtering .filter-button strong { font-weight: 600; }

.category-page-row { padding-top: 0 !important; padding-bottom: var(--section-gap-s); }
.category-page-row > .col.large-3 { padding-right: var(--space-lg); }
#shop-sidebar { padding: var(--space-lg) !important; border-radius: var(--radius-card); background: var(--color-paper); box-shadow: 0 0 0 1px var(--color-paper-3); }
#shop-sidebar .widget { margin: 0; }
.st-filter + .st-filter { margin-top: var(--space-lg); }
.st-filter__title { margin: 0 0 var(--space-sm) !important; color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; }
.st-filter__pills { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.st-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--color-paper); box-shadow: inset 0 0 0 1px var(--color-rule); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; transition: box-shadow var(--dur-short), color var(--dur-short), background-color var(--dur-short); }
.st-pill:hover { color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-ink); }
.st-pill.is-active { background: var(--color-ink); color: var(--color-paper); box-shadow: none; }
.st-pill:focus-visible, .st-radio:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.st-filter__radios { margin: 0 !important; padding: 0; list-style: none; }
.st-filter__radios li { margin: 0 !important; }
.st-radio { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) 0; color: var(--color-ink-2); font-size: var(--text-sm); border-radius: 6px; }
.st-radio:hover { color: var(--color-ink); }
.st-radio__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--color-rule); background: var(--color-paper); transition: box-shadow var(--dur-short); }
.st-radio:hover .st-radio__dot { box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.st-radio.is-active { color: var(--color-ink); font-weight: 600; }
.st-radio.is-active .st-radio__dot { box-shadow: inset 0 0 0 5px var(--color-ink); }
.button.st-filters__clear { display: flex; width: 100%; justify-content: center; min-height: 40px; margin: var(--space-lg) 0 0; line-height: 38px; border: 1px solid var(--color-rule); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); }
.button.st-filters__clear:hover { border-color: var(--color-ink); background: var(--color-paper); color: var(--color-ink); }

.st-shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-lg); }
.st-shop-toolbar .woocommerce-result-count { margin: 0 !important; color: var(--color-muted); font-size: var(--text-sm); }
.st-shop-sort { display: flex; align-items: center; gap: var(--space-xs); }
.st-shop-sort__label { color: var(--color-muted); font-size: var(--text-sm); }
.st-shop-sort .woocommerce-ordering { margin: 0 !important; }
.st-shop-sort select { height: 38px; margin: 0; padding: 0 36px 0 14px; border: 1px solid var(--color-rule); border-radius: var(--radius-field); background-color: var(--color-paper); box-shadow: none; color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; }
.st-shop-sort select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.category-page-row .products.row { margin-inline: calc(-1 * var(--gap-columns) / 2) !important; }
.category-page-row .products.row > .product-small.col { padding: 0 calc(var(--gap-columns) / 2) var(--gap-columns) !important; }
.category-page-row .product-small.box { box-shadow: 0 0 0 1px var(--color-paper-3); }
.woocommerce-pagination .page-numbers li > * { border-radius: var(--radius-pill) !important; }
@media (max-width: 849px) {
  .category-page-row > .col.large-3 { padding-right: 15px; }
  .st-shop-toolbar { flex-wrap: wrap; }
}

/* =====================================================================
   16. Chọn theo loại — thẻ kiểu bảng giá (khung trắng, bảng màu phía trên, danh sách có dấu tích)
   ===================================================================== */
.st-plans { margin-inline: auto !important; }
.st-plans > .col { padding: 0 15px var(--gap-columns) !important; }
.st-plan > .col-inner { display: flex; flex-direction: column; height: 100%; padding: var(--space-xs) var(--space-xs) var(--space-md); border-radius: var(--radius-tile); background: var(--color-paper); box-shadow: 0 1px 2px var(--color-shadow), 0 18px 40px var(--color-shadow); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.st-plan > .col-inner:hover { transform: translateY(-3px); box-shadow: 0 1px 2px var(--color-shadow), 0 24px 52px var(--color-shadow-lg); }
.st-plan .row { margin: 0 !important; max-width: none; }
.st-plan .st-plan__top { padding: 0 !important; }
.st-plan__top > .col-inner { position: relative; overflow: hidden; padding: var(--space-lg) !important; border-radius: 22px; background: var(--color-paper-2); }
.st-plan--skill .st-plan__top > .col-inner { background: var(--color-dark-2); color: var(--color-dark-ink); }
.st-plan--mcp .st-plan__top > .col-inner { background: radial-gradient(120% 90% at 100% 0%, var(--plan-mcp-glow) 0%, transparent 60%), var(--plan-mcp-bg); }
.st-plan--doc .st-plan__top > .col-inner { background: radial-gradient(120% 90% at 100% 0%, var(--plan-doc-glow) 0%, transparent 60%), var(--plan-doc-bg); }
.st-plan--skill .st-plan__top > .col-inner { background: radial-gradient(120% 90% at 100% 0%, var(--plan-skill-glow) 0%, transparent 60%), var(--color-dark-2); }
.st-plan__name { margin: 0 !important; font-size: var(--text-md); font-weight: 600; }
.st-plan__price { display: flex; align-items: baseline; gap: var(--space-xs); margin: var(--space-lg) 0 0 !important; font-size: var(--text-3xl); font-weight: 700; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.st-plan__from { font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; opacity: 0.7; }
.st-plan__desc { min-height: calc(2 * 1.45em); margin: var(--space-sm) 0 0 !important; font-size: var(--text-sm); line-height: 1.45; opacity: 0.8; }
.st-plan .button.st-plan__btn { min-height: 48px; margin: var(--space-lg) 0 0 !important; line-height: 48px; background: var(--color-ink) !important; color: var(--color-paper) !important; font-size: var(--text-md); }
.st-plan .button.st-plan__btn:hover { background: var(--color-dark) !important; }
.st-plan--skill .button.st-plan__btn { background: var(--color-paper) !important; color: var(--color-ink) !important; }
.st-plan--skill .button.st-plan__btn:hover { background: var(--color-paper-3) !important; }
.st-plan--skill .st-plan__name, .st-plan--skill .st-plan__price { color: var(--color-dark-ink); }
.st-plan__count { margin: var(--space-lg) var(--space-md) var(--space-xs) !important; color: var(--color-muted); font-size: var(--text-xs); font-weight: 600; }
.st-plan .ux-products-list { margin: 0 !important; padding: 0 var(--space-md); list-style: none; }
.st-plan .ux-products-list li { position: relative; display: flex; align-items: baseline; gap: var(--space-sm); min-height: 0 !important; margin: 0 !important; padding: 10px 0 10px 30px !important; border: 0 !important; }
.st-plan .ux-products-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--color-ink-2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23424245' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") no-repeat center; }
.st-plan .ux-products-list li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; }
.st-plan .ux-products-list li a:hover { color: var(--color-link); }
.st-plan .ux-products-list .st-cover, .st-plan .ux-products-list img, .st-plan .ux-products-list del, .st-plan .ux-products-list .screen-reader-text { display: none !important; }
.st-plan .ux-products-list ins, .st-plan .ux-products-list li > .amount { flex: none; color: var(--color-ink); font-size: var(--text-sm); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.st-plan .ux-products-list .amount { color: inherit; }

/* =====================================================================
   17. Hỏi đáp (Accordion gốc)
   ===================================================================== */
.st-faq { padding-bottom: var(--section-gap) !important; }
.st-faq__title { margin: 0 !important; font-size: var(--text-section) !important; font-weight: 700; line-height: 1.08; letter-spacing: -0.03em !important; }
.st-faq__lead { margin-top: var(--space-sm) !important; color: var(--color-muted); font-size: var(--text-md); }
.st-faq__list { border-top: 1px solid var(--color-rule); }
.st-faq__list .accordion-item { border-bottom: 1px solid var(--color-rule); }
.st-faq__list .accordion-title { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-lg) 0 !important; border: 0 !important; color: var(--color-ink); font-size: var(--text-lg); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
.st-faq__list .accordion-title span { order: 1; flex: 1; }
.st-faq__list .accordion-title .toggle { position: static; order: 2; flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: 0; border-radius: 50%; background: var(--color-paper-2); color: var(--color-ink); line-height: 1; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short); }
.st-faq__list .accordion-title:hover .toggle { background: var(--color-paper-3); }
.st-faq__list .accordion-title.active { background: transparent; color: var(--color-ink); }
.st-faq__list .accordion-title.active .toggle { transform: rotate(180deg); }
.st-faq__list .accordion-title:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 6px; }
.st-faq__list .accordion-inner { padding: 0 var(--space-3xl) var(--space-lg) 0 !important; color: var(--color-ink-2); font-size: var(--text-md); line-height: 1.6; }

/* Footer tách khỏi nội dung phía trên */
.st-footer-native { border-top: 1px solid var(--color-rule); }
.st-footer-native .row:first-of-type { padding-top: var(--space-md); }
@media (max-width: 849px) {
  .st-faq__title { margin-bottom: var(--space-lg) !important; }
  .st-faq__list .accordion-inner { padding-right: 0 !important; }
}

/* =====================================================================
   18. Trang chi tiết sản phẩm — tinh chỉnh
   ===================================================================== */
/* Thẻ mua: khung trắng có viền trong như thẻ bảng giá, bìa bo góc bên trong */
.st-buy-col .col-inner { padding: var(--space-xs) !important; border-radius: var(--radius-tile) !important; }
.st-buy-col .product-images, .st-buy-col .woocommerce-product-gallery__wrapper, .st-buy-col .flickity-viewport { border-radius: 20px; overflow: hidden; }
.st-buy-col .product-images .st-cover { aspect-ratio: 16 / 10; padding: var(--space-lg) !important; border-radius: 20px; }
.st-buy-col .product-images .st-cover__brand { top: var(--space-lg); left: var(--space-lg); }
.st-buy-col .product-images .st-cover__title { max-width: 14ch; font-size: var(--text-2xl); -webkit-line-clamp: 3; }
.st-buy-col .product-price-container, .st-buy-col .st-buy-save, .st-buy-col .st-checks, .st-buy-col form.cart { margin-inline: var(--space-md) !important; }
.st-buy-col .product-price-container { margin-top: var(--space-lg) !important; }
.st-buy-col form.cart { margin-bottom: var(--space-md) !important; }
.st-buy-col .st-checks { margin-top: var(--space-lg) !important; padding-top: var(--space-md) !important; border-top: 1px solid var(--color-paper-3); }

/* Dấu tích: vòng tròn viền mảnh (cùng kiểu thẻ "Chọn theo loại") */
.st-checks li { padding-left: 32px; }
.st-checks li::before { top: 0.05em; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") no-repeat center; box-shadow: inset 0 0 0 1.5px var(--color-ink-2); }
.st-checks--sm li { padding-left: 30px; }

/* "Bạn nhận được": thẻ viền, cùng lề với tiêu đề mục */
.st-learn { margin: 0 0 var(--space-xl); padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); }
.st-learn__title { margin: 0 0 var(--space-lg) !important; padding-bottom: var(--space-md); border-bottom: 1px solid var(--color-paper-3); font-size: var(--text-lg) !important; }
.st-learn .st-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-xl); }
.st-learn .st-checks li { font-size: var(--text-md); line-height: 1.45; }

/* Yêu cầu */
.st-checks--req { display: grid; gap: var(--space-sm); }
.st-checks--req li { color: var(--color-ink-2); }
.st-checks--req li::before { box-shadow: inset 0 0 0 1.5px var(--color-rule); }

/* Mô tả, mục lục, khoảng cách các phần */
.st-pmain-col .panel > p, .st-pmain-col .panel .entry-content > p { max-width: 65ch; color: var(--color-ink-2); font-size: var(--text-md); line-height: 1.65; }
.st-pmain-col .product-section { padding-block: var(--space-2xl) var(--space-xl); }
.st-pmain-col .product-section:first-of-type { padding-top: var(--space-md); }
.st-acc__sum { padding: var(--space-md) var(--space-lg); }
.st-acc__list li { padding-block: var(--space-sm); }

/* Dải tiêu đề: thẻ loại to hơn, mô tả rộng hơn */
.st-phero-native .st-tags--dark .st-tag { min-height: 28px; padding: 0 var(--space-sm); font-size: var(--text-xs); }
.st-phero-native .product-short-description { max-width: 46ch; }
.st-phero-native .product-title { max-width: 18ch; }

/* Sản phẩm liên quan */
.st-related-native .related > h3, .st-related-native .product-section-title { margin: 0 0 var(--space-xl) !important; padding: 0 !important; }
.st-related-native .row-small, .st-related-native .products { margin-inline: calc(-1 * var(--gap-columns) / 2) !important; }
.st-related-native .product-small.col { padding: 0 calc(var(--gap-columns) / 2) var(--gap-columns) !important; }
@media (max-width: 849px) {
  .st-learn .st-checks { grid-template-columns: minmax(0, 1fr); }
  .st-pmain-col .product-section { padding-block: var(--space-xl); }
}

/* =====================================================================
   19. Trang chủ: nền chấm liền từ header qua hero tới dải logo, mờ dần xuống dưới
   ===================================================================== */
.home #wrapper { position: relative; isolation: isolate; }
.home #wrapper::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--st-dots-h, 900px); z-index: 0; pointer-events: none;
  background: radial-gradient(var(--color-dots) 1px, transparent 1.6px) 0 0 / 16px 16px;
  -webkit-mask-image: linear-gradient(to bottom, var(--mask-solid) 0%, var(--mask-solid) 35%, transparent 100%);
  mask-image: linear-gradient(to bottom, var(--mask-solid) 0%, var(--mask-solid) 35%, transparent 100%);
}
.home #main, .home #wrapper > #header { position: relative; z-index: 1; background: transparent; }
.home #main { background: transparent !important; }
/* Header trên trang chủ: trong suốt ở đầu trang, kính mờ khi cuộn */
.home .header-wrapper:not(.stuck), .home .header-wrapper:not(.stuck) #masthead, .home .header-wrapper:not(.stuck) .header-main { background-color: transparent !important; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Hero + dải logo: bỏ nền riêng và đường kẻ */
.st-hero-native, .home .st-logos-native { background: transparent !important; border: 0 !important; }
.st-hero-native::after { background: radial-gradient(ellipse 50% 55% at 50% 48%, var(--color-paper) 25%, transparent 72%); }
.home .st-logos-native { padding-top: var(--space-md) !important; padding-bottom: var(--space-2xl) !important; }
/* Các mục sau dải logo có nền riêng để chấm không lấn xuống */
.home .st-sec:not(.st-sec--grey) { background: var(--color-paper); }

/* Ô tìm kiếm ở hero: gọn hơn */
.st-hero-native .searchform-wrapper { width: min(100%, 520px); margin-top: var(--space-lg); }
.st-hero-native .searchform .flex-row { padding: var(--space-2xs); border-radius: 14px; box-shadow: 0 0 0 1px var(--color-rule), 0 6px 18px var(--color-shadow); }
.st-hero-native .searchform .search-field { height: 40px !important; padding-left: 38px !important; background-position: 12px 50% !important; background-size: 16px 16px !important; font-size: var(--text-sm) !important; }
.st-hero-native .searchform .ux-search-submit { min-height: 36px; padding: 0 var(--space-md) !important; line-height: 36px; }
.st-hero-native .button.st-chip { margin-top: var(--space-lg); }
.st-hero-native .col-inner > .searchform-wrapper { flex: 0 1 520px; width: 100%; max-width: 520px; }
.st-hero-native .col-inner > .searchform-wrapper { flex: 0 0 100%; width: 100%; max-width: none; }
.st-hero-native .searchform-wrapper .searchform { max-width: 624px; margin-inline: auto; }

/* Dải logo: chữ bên trái (4 cột), slider 4 logo bên phải (8 cột) */
.st-logos-native .row { align-items: center; }
.st-logos-text { padding-bottom: 0 !important; }
.st-logos-native .st-logos-title { max-width: 18ch; margin: 0 !important; color: var(--color-ink); font-size: var(--text-lg); font-weight: 600; line-height: 1.35; text-align: left; letter-spacing: -0.015em; }
.st-logos-track { padding-bottom: 0 !important; -webkit-mask-image: linear-gradient(to right, transparent 0, var(--mask-solid) 6%, var(--mask-solid) 94%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, var(--mask-solid) 6%, var(--mask-solid) 94%, transparent 100%); }
@media (max-width: 849px) {
  .st-logos-native .st-logos-title { max-width: none; margin-bottom: var(--space-md) !important; text-align: center; font-size: var(--text-md); }
}
.st-logos-track .loading-spin, .st-logo-slider .loading-spin { display: none !important; }
/* Nút nền nâu chữ trắng: tăng độ đậm cho dễ đọc */
.button.primary:not(.is-outline), .button.alt, #place_order, .st-btn:not(.st-btn--ghost), .st-hero-native .searchform .ux-search-submit { font-weight: 500; }
/* Chữ trên mọi nút: weight 500 */
.button, input[type="submit"], button[type="submit"], .st-btn, .single_add_to_cart_button, .st-hero-native .searchform .ux-search-submit::after, .st-plan .button.st-plan__btn { font-weight: 500 !important; }
/* Ô tìm kiếm trên header: nền trắng, viền mảnh */
.header-search-form input.search-field, .header-search-form input[type="search"] { background-color: var(--color-paper) !important; box-shadow: inset 0 0 0 1px var(--color-rule); }
.header-search-form input.search-field:focus, .header-search-form input[type="search"]:focus { box-shadow: inset 0 0 0 1px var(--color-focus), 0 0 0 3px var(--color-focus-ring); }
.home #wrapper::before { opacity: 0.8; } /* nền chấm mờ đi 20% */

/* Footer nền đen, dòng bản quyền nền trắng căn giữa */
.st-footer-native { border-top: 0 !important; background-color: var(--color-dark) !important; color: var(--color-dark-muted); }
.st-footer-native .section-bg { background-color: var(--color-dark) !important; }
.st-footer-native h4, .st-footer-native .st-footer-brand { color: var(--color-dark-ink) !important; }
.st-footer-native p { color: var(--color-dark-muted); }
.st-footer-native .ux-menu-link__link, .st-footer-native .ux-menu-link__text { color: var(--color-dark-muted) !important; }
.st-footer-native .ux-menu-link__link:hover, .st-footer-native .ux-menu-link__link:hover .ux-menu-link__text { color: var(--color-dark-ink) !important; }
.absolute-footer { border-top: 0 !important; background: var(--color-paper) !important; text-align: center; }
.absolute-footer .container { display: flex; justify-content: center; }
.absolute-footer .footer-primary, .absolute-footer .footer-secondary { float: none !important; width: 100%; text-align: center; }
.absolute-footer, .absolute-footer .copyright-footer, .absolute-footer a { color: var(--color-muted) !important; }

/* =====================================================================
   20. Footer: chữ to hơn, cột Hỗ trợ, icon Zalo / Telegram / Fanpage, nút sáng tối
   ===================================================================== */
.st-footer-native, .st-footer-native p { font-size: var(--text-sm) !important; line-height: 1.55; }
.st-footer-native h4 { margin-bottom: var(--space-md); font-size: var(--text-md) !important; }
.st-footer-brand { font-size: var(--text-xl) !important; }
.st-footer-native .ux-menu-link { margin-bottom: var(--space-sm) !important; }
.st-footer-native .ux-menu-link__link, .st-footer-native .ux-menu-link__text { font-size: var(--text-sm) !important; }
.absolute-footer, .absolute-footer .copyright-footer { font-size: var(--text-sm) !important; }
.st-footer-social { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-lg); }
.st-footer-social .social-icons { margin: 0; }
.st-footer-social .social-icons a, .st-zalo {
  display: inline-grid !important; place-items: center; width: 36px; height: 36px; min-width: 36px; margin: 0 var(--space-xs) 0 0 !important; padding: 0;
  border: 1px solid var(--color-dark-rule) !important; border-radius: 50% !important; background: transparent !important; color: var(--color-dark-ink) !important;
  font-size: 15px; line-height: 1; transition: background-color var(--dur-short), color var(--dur-short), border-color var(--dur-short);
}
.st-zalo { font-size: 10px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.st-footer-social .social-icons a:hover, .st-zalo:hover { border-color: var(--color-accent) !important; background: var(--color-accent) !important; color: var(--color-accent-ink) !important; }
.st-footer-social a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.st-theme-switch { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 0; margin: var(--space-lg) 0 0; padding: 0; border: 0; background: none; color: var(--color-dark-muted); font-size: var(--text-sm); font-weight: 500; line-height: 1.2; text-transform: none; letter-spacing: 0; cursor: pointer; }
.st-theme-switch:hover { color: var(--color-dark-ink); }
.st-theme-switch__track { position: relative; flex: none; width: 44px; height: 26px; border-radius: var(--radius-pill); background: var(--color-dark-3); box-shadow: inset 0 0 0 1px var(--color-dark-rule); transition: background-color var(--dur-short) var(--ease-out); }
.st-theme-switch__thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-dark-ink); box-shadow: 0 1px 3px var(--color-shadow-lg); transition: transform var(--dur-short) var(--ease-out); }
.st-theme-switch[aria-checked="true"] .st-theme-switch__track { background: var(--color-accent); box-shadow: none; }
.st-theme-switch[aria-checked="true"] .st-theme-switch__thumb { transform: translateX(18px); }
.st-theme-switch:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: var(--radius-pill); }

/* =====================================================================
   21. Giao diện tối: phủ lên nền/chữ do Flatsome và Tuỳ biến đặt sẵn
   ===================================================================== */
html[data-theme="dark"] body, html[data-theme="dark"] #wrapper, html[data-theme="dark"] #main { background-color: var(--color-paper) !important; color: var(--color-ink-2); }
html[data-theme="dark"] :is(h1, h2, h3, h4, h5, h6, .section-title-main, .product-title, .post-title, .st-shop-title) { color: var(--color-ink) !important; }
html[data-theme="dark"] .section:not(.st-phero-native):not(.st-footer-native) { background-color: transparent !important; }
html[data-theme="dark"] .section:not(.st-phero-native):not(.st-footer-native) > .section-bg { background-color: transparent !important; }
html[data-theme="dark"] .st-sec--grey, html[data-theme="dark"] .st-related-native { background-color: var(--color-paper-2) !important; }
html[data-theme="dark"] .st-sec:not(.st-sec--grey) { background-color: var(--color-paper) !important; }
html[data-theme="dark"] .header-wrapper, html[data-theme="dark"] .header-main { background-color: var(--color-glass) !important; }
html[data-theme="dark"] body.home .header-wrapper:not(.stuck), html[data-theme="dark"] body.home .header-wrapper:not(.stuck) .header-main { background-color: transparent !important; }
html[data-theme="dark"] .header-nav-main.nav > li > a, html[data-theme="dark"] #logo a, html[data-theme="dark"] .header .icon-menu, html[data-theme="dark"] .header .icon-search { color: var(--color-ink) !important; }
html[data-theme="dark"] .header-nav-main.nav > li > a:hover, html[data-theme="dark"] .header-nav-main.nav > li.active > a { color: var(--color-link) !important; }
html[data-theme="dark"] .nav-dropdown, html[data-theme="dark"] .off-canvas .mfp-content, html[data-theme="dark"] .off-canvas-left .mfp-content { background-color: var(--color-paper-2) !important; color: var(--color-ink); }
html[data-theme="dark"] .mobile-sidebar .nav > li > a, html[data-theme="dark"] .nav-dropdown a { color: var(--color-ink) !important; }
html[data-theme="dark"] input:not([type="submit"]):not([type="button"]), html[data-theme="dark"] select, html[data-theme="dark"] textarea { background-color: var(--color-paper-2) !important; border-color: var(--color-rule) !important; color: var(--color-ink) !important; }
html[data-theme="dark"] .st-hero-native .searchform .flex-row { background: var(--color-paper-2); }
html[data-theme="dark"] .st-hero-native .searchform .search-field { background-color: transparent !important; }
html[data-theme="dark"] .button.st-chip { background: var(--color-paper-2) !important; color: var(--color-ink-2) !important; border-color: var(--color-rule); }
html[data-theme="dark"] .button.st-chip.is-active { background: var(--color-ink) !important; color: var(--color-paper) !important; border-color: var(--color-ink); }
html[data-theme="dark"] .st-plan .button.st-plan__btn { background: var(--color-ink) !important; color: var(--color-paper) !important; }
html[data-theme="dark"] .st-plan--skill .button.st-plan__btn { background: var(--color-ink) !important; color: var(--color-paper) !important; }
html[data-theme="dark"] .st-plan .ux-products-list li::before, html[data-theme="dark"] .st-checks li::before { filter: invert(1); }
html[data-theme="dark"] .breadcrumbs, html[data-theme="dark"] .breadcrumbs a { color: var(--color-muted); }
html[data-theme="dark"] .accordion-title { color: var(--color-ink) !important; }
html[data-theme="dark"] .absolute-footer { background: var(--color-paper) !important; }
html[data-theme="dark"] .st-footer-native, html[data-theme="dark"] .st-footer-native .section-bg { background-color: var(--color-paper-2) !important; }
html[data-theme="dark"] .shop_table, html[data-theme="dark"] table { color: var(--color-ink-2); }
html[data-theme="dark"] .shop_table th, html[data-theme="dark"] .shop_table td { border-color: var(--color-rule); }
html[data-theme="dark"] .entry-content, html[data-theme="dark"] .entry-content p { color: var(--color-ink-2); }
@media (prefers-reduced-motion: reduce) { .st-theme-switch__thumb, .st-theme-switch__track { transition: none; } }
.st-footer-native .st-footer-brand { font-size: var(--text-xl) !important; font-weight: 700; }
html[data-theme="dark"] .price, html[data-theme="dark"] .price ins, html[data-theme="dark"] .price > .amount, html[data-theme="dark"] .price ins .amount, html[data-theme="dark"] .ux-products-list ins .amount { color: var(--color-ink) !important; }
html[data-theme="dark"] .price del, html[data-theme="dark"] .price del .amount { color: var(--color-muted) !important; }
/* Tối: trang chủ giữ nền chấm liền từ header xuống hero (không phủ nền đặc lên #main) */
html[data-theme="dark"] body.home #main { background-color: transparent !important; }
html[data-theme="dark"] body.home .st-hero-native, html[data-theme="dark"] body.home .st-logos-native { background-color: transparent !important; }

/* Footer: icon mạng xã hội chỉ là biểu tượng, không viền */
.st-footer-social { gap: var(--space-md); }
.st-footer-social .social-icons a, .st-zalo { width: auto; height: auto; min-width: 0; margin: 0 var(--space-sm) 0 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--color-dark-muted) !important; font-size: 18px; }
.st-zalo { font-size: var(--text-sm); font-weight: 700; }
.st-footer-social .social-icons a:hover, .st-zalo:hover { background: transparent !important; color: var(--color-accent) !important; }
/* Logo Zalo ở footer: xám như các icon khác, hiện màu gốc khi rê chuột */
.st-zalo { display: inline-flex !important; align-items: center; line-height: 0; }
.st-zalo img { display: block; width: 20px; height: auto; filter: grayscale(1) brightness(1.6) contrast(0.9); opacity: 0.85; transition: filter var(--dur-short), opacity var(--dur-short); }
.st-zalo:hover img, .st-zalo:focus-visible img { filter: none; opacity: 1; }

/* Nền chấm phản ứng theo con trỏ: chấm quanh chuột sáng màu nâu, to hơn */
.home #wrapper::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--st-dots-h, 900px); z-index: 0; pointer-events: none;
  background: radial-gradient(var(--color-accent) 1.4px, transparent 2px) 0 0 / 16px 16px;
  -webkit-mask-image: radial-gradient(100px circle at var(--st-mx, -999px) var(--st-my, -999px), var(--mask-solid) 0%, transparent 100%);
  mask-image: radial-gradient(100px circle at var(--st-mx, -999px) var(--st-my, -999px), var(--mask-solid) 0%, transparent 100%);
  opacity: 0; transition: opacity var(--dur-long) var(--ease-out);
}
.home #wrapper.st-dots-live::after { opacity: 1; }
@media (hover: none), (pointer: coarse) { .home #wrapper::after { display: none; } }

/* Danh mục AI Agent: thẻ "Chọn theo loại" và bìa sản phẩm */
.st-plan--agent .st-plan__top > .col-inner { background: radial-gradient(120% 90% at 100% 0%, var(--plan-agent-glow) 0%, transparent 60%), var(--plan-agent-bg); }
.st-plan__soon { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; opacity: 0.75; }
.st-cover--ai-agent { background: var(--cover-agent-bg); color: var(--cover-agent-ink); }
.st-cover--ai-agent .st-cover__kind { color: var(--cover-agent-kind); }

/* Danh mục n8n (workflow): tông san hô ấm, hợp bảng màu nâu-be — thẻ "Chọn theo loại" và bìa sản phẩm */
:root { --color-qr-bg: #ffffff; --plan-n8n-bg: #f7ebe7; --plan-n8n-glow: #e9b9aa; --cover-n8n-bg: #e4b5a6; --cover-n8n-ink: #1d1d1f; --cover-n8n-kind: #7a2e1f; }
:root[data-theme="dark"] { --plan-n8n-bg: #2a1b17; --plan-n8n-glow: #6e3a2d; --cover-n8n-bg: #3a231d; --cover-n8n-ink: #f5f5f7; --cover-n8n-kind: #f0b7a5; }
.st-plan--n8n .st-plan__top > .col-inner { background: radial-gradient(120% 90% at 100% 0%, var(--plan-n8n-glow) 0%, transparent 60%), var(--plan-n8n-bg); }
.st-cover--n8n { background: var(--cover-n8n-bg); color: var(--cover-n8n-ink); }
.st-cover--n8n .st-cover__kind { color: var(--cover-n8n-kind); }
/* Chọn theo loại: slide ngang, máy rộng 4 cột, máy vừa 3, máy tính bảng 2, điện thoại 1 thẻ + mép thẻ sau */
.st-plans { flex-wrap: nowrap !important; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-top: 6px; }
.st-plans::-webkit-scrollbar { display: none; }
.st-plans > .st-plan { flex: 0 0 85% !important; max-width: 85% !important; scroll-snap-align: start; }
@media (min-width: 550px) { .st-plans > .st-plan { flex-basis: 50% !important; max-width: 50% !important; } }
@media (min-width: 850px) { .st-plans > .st-plan { flex-basis: 33.333% !important; max-width: 33.333% !important; } }
@media (min-width: 1100px) { .st-plans > .st-plan { flex-basis: 25% !important; max-width: 25% !important; } }
@media (prefers-reduced-motion: reduce) { .st-plans { scroll-behavior: auto; } }
.st-plans-nav { display: flex; gap: var(--space-xs); margin-left: auto; }
.st-plans-nav[hidden] { display: none; }
.st-plans-nav__btn { display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--color-paper); color: var(--color-ink); box-shadow: 0 1px 2px var(--color-shadow), 0 6px 16px var(--color-shadow); cursor: pointer; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.st-plans-nav__btn:hover:not(:disabled) { transform: translateY(-1px); }
.st-plans-nav__btn:disabled { opacity: 0.35; cursor: default; }
.st-plans-nav__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.st-plans-nav__btn svg { width: 18px; height: 18px; }

/* =====================================================================
   22. Giỏ hàng (inc/cart.php)
   ===================================================================== */
.woocommerce-cart .page-wrapper { padding-top: var(--space-2xl); padding-bottom: var(--space-3xl); }
.st-cart-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-md); margin: 0 0 var(--space-xl); padding: 0; }
.st-cart-head__main { min-width: 0; }
.st-cart-head__title { margin: 0; font-size: var(--text-display-s) !important; font-weight: 700; line-height: 1.05; letter-spacing: var(--tracking-display); color: var(--color-ink); overflow-wrap: break-word; min-width: 0; }
.st-cart-head__count { margin: var(--space-xs) 0 0; color: var(--color-muted); font-size: var(--text-md); }
.st-steps { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: 0; padding: 0; list-style: none; }
.st-steps li { display: flex; align-items: center; gap: var(--space-xs); margin: 0 !important; color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.st-steps__n { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--color-rule); border-radius: 50%; font-size: var(--text-xs); font-weight: 600; }
.st-steps li.is-current { color: var(--color-ink); }
.st-steps li.is-current .st-steps__n { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-paper); }

/* Danh sách bên trái, thẻ tóm tắt bên phải */
.woocommerce-cart .row-divided > .col + .col { border-left: 0; }
.woocommerce-cart .woocommerce-cart-form .shop_table { display: block; width: 100%; min-width: 0; border: 0; margin: 0; }
.woocommerce-cart .cart-wrapper { overflow: visible; }
.woocommerce-cart .woocommerce-cart-form thead { display: none; }
.woocommerce-cart .woocommerce-cart-form tbody { display: block; border-top: 1px solid var(--color-rule); }
.woocommerce-cart .cart_item {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) auto 36px; grid-template-areas: "thumb name price remove";
  align-items: center; gap: var(--space-md); padding: var(--space-lg) 0; border-bottom: 1px solid var(--color-rule);
}
.woocommerce-cart .cart_item td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; }
.woocommerce-cart .cart_item td::before { display: none !important; }
.woocommerce-cart .cart_item .product-thumbnail { grid-area: thumb; display: block !important; }
.woocommerce-cart .cart_item .product-thumbnail img { display: block; width: 128px; max-width: none; height: 96px; object-fit: cover; border-radius: var(--radius-field); background: var(--color-paper-2); }
.woocommerce-cart .cart_item .product-name { grid-area: name; }
.woocommerce-cart .cart_item .product-name > a { display: block; color: var(--color-ink); font-size: var(--text-md); font-weight: 600; line-height: 1.35; }
.woocommerce-cart .cart_item .product-name > a:hover { color: var(--color-link); }
.woocommerce-cart .cart_item .product-name > a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }
.st-cart-cat { display: inline-block; margin-top: var(--space-xs); padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); background: var(--color-tag-bg); color: var(--color-tag-ink); font-size: var(--text-xs); font-weight: 500; }
.woocommerce-cart .cart_item .mobile-product-price, .woocommerce-cart .cart_item .product-quantity, .woocommerce-cart .cart_item .product-subtotal { display: none !important; }
.woocommerce-cart .cart_item .product-price { grid-area: price; text-align: right !important; white-space: nowrap; }
.woocommerce-cart .cart_item .product-price del { display: block; color: var(--color-muted); font-size: var(--text-sm); font-weight: 400; }
.woocommerce-cart .cart_item .product-price del .amount { color: var(--color-muted) !important; }
.woocommerce-cart .cart_item .product-price ins, .woocommerce-cart .cart_item .product-price ins .amount, .woocommerce-cart .cart_item .product-price > .amount { color: var(--color-ink) !important; font-size: var(--text-md); font-weight: 700; text-decoration: none; }
.woocommerce-cart .cart_item .product-remove { grid-area: remove; justify-self: end; }
.woocommerce-cart .cart_item a.remove {
  display: grid; place-items: center; width: 32px; height: 32px; margin: 0; border: 0 !important; border-radius: 50%;
  color: var(--color-ink-2) !important; font-size: 22px; font-weight: 400; line-height: 1;
  transition: background-color var(--dur-short), color var(--dur-short);
}
.woocommerce-cart .cart_item a.remove:hover { background: var(--color-fill) !important; color: var(--color-error) !important; }
.woocommerce-cart .cart_item a.remove:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }
.woocommerce-cart .woocommerce-cart-form tr:not(.cart_item) { display: block; }
.woocommerce-cart td.actions { display: block; padding: var(--space-lg) 0 0 !important; border: 0 !important; }
.woocommerce-cart td.actions button[name="update_cart"] { display: none !important; }
.woocommerce-cart .button-continue-shopping { margin: 0; padding: 0; min-height: 0; border: 0 !important; background: none !important; color: var(--color-link) !important; font-size: var(--text-sm); font-weight: 500; text-transform: none; letter-spacing: 0; box-shadow: none !important; }
.woocommerce-cart .button-continue-shopping:hover { text-decoration: underline; }
.woocommerce-cart .button-continue-shopping:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* Thẻ tóm tắt */
.woocommerce-cart .cart-sidebar { position: sticky; top: calc(var(--header-h) + var(--space-md)); padding: var(--space-lg) !important; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); }
.woocommerce-cart .cart_totals > table:first-child { margin: 0 0 var(--space-sm); }
.woocommerce-cart .cart_totals > table:first-child th { padding: 0; border: 0; color: var(--color-ink); font-size: var(--text-lg); font-weight: 700; text-transform: none; letter-spacing: 0; }
.woocommerce-cart .cart_totals .shop_table { margin: 0; border: 0; }
.woocommerce-cart .cart_totals .shop_table th, .woocommerce-cart .cart_totals .shop_table td { padding: var(--space-sm) 0; border: 0; border-bottom: 1px solid var(--color-rule); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 400; text-transform: none; letter-spacing: 0; }
.woocommerce-cart .cart_totals .shop_table td { text-align: right; color: var(--color-ink); }
.woocommerce-cart .cart_totals .st-cart-save td { color: var(--color-success); font-weight: 600; }
.woocommerce-cart .cart_totals .order-total th, .woocommerce-cart .cart_totals .order-total td { padding-top: var(--space-md); border-bottom: 0; color: var(--color-ink); font-size: var(--text-md); font-weight: 600; }
.woocommerce-cart .cart_totals .order-total td .amount { font-size: var(--text-xl); font-weight: 700; }
.woocommerce-cart .wc-proceed-to-checkout { padding: var(--space-md) 0 0; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button { display: block; width: 100%; margin: 0; padding: var(--space-sm) var(--space-md); min-height: 52px; border-radius: var(--radius-pill); font-size: var(--text-md); line-height: 1.6; text-transform: none; letter-spacing: 0; }
.st-cart-notes { margin: var(--space-md) 0 0; padding: 0; list-style: none; }
.st-cart-notes li { position: relative; margin: 0 0 var(--space-2xs); padding-left: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); line-height: 1.45; }
.st-cart-notes li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 12px; height: 7px; border-left: 2px solid var(--color-success); border-bottom: 2px solid var(--color-success); transform: rotate(-45deg); }
.woocommerce-cart .checkout_coupon { margin: var(--space-lg) 0 0; padding: var(--space-md) 0 0; border-top: 1px solid var(--color-rule); }
.woocommerce-cart .checkout_coupon .coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs); }
.woocommerce-cart .checkout_coupon .widget-title { grid-column: 1 / -1; margin: 0 0 var(--space-3xs); padding: 0; border: 0; color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; text-transform: none; letter-spacing: 0; }
.woocommerce-cart .checkout_coupon .widget-title::after, .woocommerce-cart .checkout_coupon .widget-title i { display: none; }
.woocommerce-cart .checkout_coupon .input-text { height: 44px; margin: 0; border-radius: var(--radius-field); background: var(--color-paper); box-shadow: none; }
.woocommerce-cart .checkout_coupon .button { width: auto; height: 44px; min-height: 0; margin: 0; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-field); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); text-transform: none; letter-spacing: 0; }
.woocommerce-cart .checkout_coupon .button:hover { border-color: var(--color-ink); }
.woocommerce-cart .checkout_coupon .button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* Giỏ trống */
.woocommerce-cart .cart-empty { margin: var(--space-xl) 0 var(--space-md); color: var(--color-ink); font-size: var(--text-xl); font-weight: 600; text-align: center; }
.woocommerce-cart .return-to-shop { text-align: center; }
.woocommerce-cart .return-to-shop .button { border-radius: var(--radius-pill); text-transform: none; letter-spacing: 0; }

@media (max-width: 849px) {
  .st-steps { margin-left: 0; width: 100%; }
  .woocommerce-cart .cart-sidebar { position: static; margin-top: var(--space-xl); }
}
@media (max-width: 549px) {
  .woocommerce-cart .cart_item { grid-template-columns: 88px minmax(0, 1fr) 32px; grid-template-areas: "thumb name remove" "thumb price remove"; row-gap: var(--space-xs); align-items: start; }
  .woocommerce-cart .cart_item .product-thumbnail img { width: 88px; height: 66px; }
  .woocommerce-cart .cart_item .product-price { text-align: left !important; }
  .woocommerce-cart .cart_item .product-price del { display: inline; margin-right: var(--space-xs); }
  .st-steps li { font-size: var(--text-xs); }
}
html[data-theme="dark"] .woocommerce-cart .checkout_coupon .input-text, html[data-theme="dark"] .woocommerce-cart .checkout_coupon .button { background: var(--color-paper) !important; color: var(--color-ink) !important; }
.woocommerce-cart .cart_item td.product-remove { position: static !important; width: 32px !important; }
.woocommerce-cart .cart_totals .amount { color: inherit !important; }
.woocommerce-cart .checkout_coupon .button { flex: none; min-width: 96px; padding: 0 var(--space-md) !important; border-radius: var(--radius-field) !important; white-space: nowrap; }
.woocommerce-cart .cart_item a.remove { position: static !important; }

/* =====================================================================
   23. Thanh toán (inc/cart.php)
   ===================================================================== */
.woocommerce-checkout:not(.woocommerce-order-received) .page-wrapper { padding-top: var(--space-2xl); padding-bottom: var(--space-3xl); }
.st-steps li.is-done, .st-steps li.is-done a { color: var(--color-ink-2); }
.st-steps li a { display: flex; align-items: center; gap: var(--space-xs); text-decoration: none; }
.st-steps li a:hover { color: var(--color-ink); text-decoration: underline; }
.st-steps li a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }
.st-steps li.is-done .st-steps__n { border-color: var(--color-ink-2); }

/* Mã ưu đãi */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { margin: 0 0 var(--space-lg); padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-field); background: var(--color-paper-2); color: var(--color-ink-2); font-size: var(--text-sm); }
.woocommerce-checkout .woocommerce-form-coupon-toggle .message-container { padding: 0; text-align: left; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon { color: var(--color-link); font-weight: 600; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.woocommerce-checkout form.checkout_coupon { margin: 0 0 var(--space-lg); padding: var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-field); }
.woocommerce-checkout form.checkout_coupon > p { margin: 0 0 var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }
.woocommerce-checkout form.checkout_coupon .input-text, .woocommerce-checkout form.checkout_coupon .button { height: 48px; margin: 0; border-radius: var(--radius-field); }
.woocommerce-checkout form.checkout_coupon .button { padding: 0 var(--space-lg); text-transform: none; letter-spacing: 0; }

/* Thông tin khách */
.woocommerce-checkout #customer_details { padding-right: var(--space-lg); }
.woocommerce-checkout .woocommerce-billing-fields h3 { margin: 0 0 var(--space-lg); padding: 0; border: 0; color: var(--color-ink); font-size: var(--text-xl); font-weight: 700; text-transform: none; letter-spacing: 0; }
.woocommerce-checkout form.checkout .form-row { margin: 0 0 var(--space-lg); padding: 0; }
.woocommerce-checkout form.checkout .form-row label { margin: 0 0 var(--space-xs); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; }
.woocommerce-checkout form.checkout .form-row label .required { color: var(--color-error); text-decoration: none; border: 0; }
.woocommerce-checkout form.checkout .form-row label .optional { color: var(--color-muted); font-weight: 400; }
.woocommerce-checkout form.checkout .form-row .input-text {
  height: 52px; margin: 0; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-field);
  background: var(--color-paper); box-shadow: none; color: var(--color-ink); font-size: var(--text-md);
  transition: border-color var(--dur-short);
}
.woocommerce-checkout form.checkout .form-row .input-text:hover { border-color: var(--color-ink-2); }
.woocommerce-checkout form.checkout .form-row .input-text:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-focus-ring); outline: 0; }
.woocommerce-checkout form.checkout .form-row .input-text:focus-visible { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-focus-ring); outline: 0; }
.woocommerce-checkout form.checkout .woocommerce-invalid .input-text { border-color: var(--color-error); }
.woocommerce-checkout form.checkout .form-row .description { display: block !important; margin-top: var(--space-xs); padding: 0; background: none; color: var(--color-muted); font-size: var(--text-sm); }
.woocommerce-checkout form.checkout .form-row .description::before { display: none; }

/* Thẻ đơn hàng */
.woocommerce-checkout form.checkout .col-inner.is-well {
  position: sticky; top: calc(var(--header-h) + var(--space-md)); padding: var(--space-lg); border: 1px solid var(--color-rule);
  border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: none;
}
.woocommerce-checkout #order_review_heading { margin: 0 0 var(--space-md); padding: 0; border: 0; color: var(--color-ink); font-size: var(--text-lg); font-weight: 700; text-transform: none; letter-spacing: 0; }
.woocommerce-checkout .woocommerce-checkout-review-order-table { margin: 0; border: 0; }
.woocommerce-checkout .woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout .woocommerce-checkout-review-order-table td, .woocommerce-checkout .woocommerce-checkout-review-order-table th { padding: var(--space-sm) 0; border: 0; border-bottom: 1px solid var(--color-rule); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 400; text-transform: none; letter-spacing: 0; vertical-align: middle; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-name { display: flex; align-items: center; gap: var(--space-sm); padding-right: var(--space-sm); color: var(--color-ink); font-weight: 500; line-height: 1.35; }
.woocommerce-checkout .st-co-thumb { flex: none; width: 56px; height: 42px; margin: 0; object-fit: cover; border-radius: var(--radius-field); background: var(--color-paper-3); }
.woocommerce-checkout .st-co-name { min-width: 0; }
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total { text-align: right; white-space: nowrap; }
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total del { display: block; color: var(--color-muted); font-size: var(--text-xs); }
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total del .amount { color: var(--color-muted) !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total ins { color: var(--color-ink); font-weight: 600; text-decoration: none; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td { text-align: right; color: var(--color-ink); }
.woocommerce-checkout .woocommerce-checkout-review-order-table .amount { color: inherit !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .st-cart-save td { color: var(--color-success); font-weight: 600; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td { padding-top: var(--space-md); border-bottom: 0; color: var(--color-ink); font-size: var(--text-md); font-weight: 600; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td .amount { font-size: var(--text-xl); font-weight: 700; }

/* Phương thức thanh toán + nút */
.woocommerce-checkout #payment { margin-top: var(--space-md); background: none; }
.woocommerce-checkout #payment ul.payment_methods { margin: 0 0 var(--space-md); padding: 0; border: 0; }
.woocommerce-checkout #payment li.wc_payment_method { margin: 0; padding: var(--space-md); border: 1.5px solid var(--color-accent); border-radius: var(--radius-field); background: var(--color-paper); list-style: none; }
.woocommerce-checkout #payment li.wc_payment_method > label { display: block; margin: 0; padding: 0; color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; }
.woocommerce-checkout #payment .payment_box { margin: var(--space-xs) 0 0; padding: 0; background: none; color: var(--color-muted); font-size: var(--text-sm); line-height: 1.5; }
.woocommerce-checkout #payment .payment_box::before { display: none; }
.woocommerce-checkout #payment .payment_box p { margin: 0; }
.woocommerce-checkout #place_order { display: block; width: 100%; min-height: 52px; margin: 0; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-pill); font-size: var(--text-md); line-height: 1.6; text-transform: none; letter-spacing: 0; }
.st-co-safe { margin: var(--space-sm) 0 0; color: var(--color-muted); font-size: var(--text-sm); line-height: 1.45; text-align: center; }
.woocommerce-checkout .woocommerce-privacy-policy-text p { margin: var(--space-md) 0 0; color: var(--color-muted); font-size: var(--text-xs); line-height: 1.5; }

@media (max-width: 849px) {
  .woocommerce-checkout #customer_details { padding-right: 0; }
  .woocommerce-checkout form.checkout .col-inner.is-well { position: static; }
}
html[data-theme="dark"] .woocommerce-checkout #payment li.wc_payment_method, html[data-theme="dark"] .woocommerce-checkout form.checkout .form-row .input-text { background: var(--color-paper) !important; }
html[data-theme="dark"] .woocommerce-checkout form.checkout .col-inner.is-well { background: var(--color-paper-2) !important; }
.woocommerce-checkout .woocommerce-billing-fields { padding-top: 0; border-top: 0; }
@media (max-width: 549px) { .woocommerce-checkout form.checkout .col-inner.is-well { padding: var(--space-md); } .woocommerce-checkout .st-co-thumb { width: 44px; height: 33px; } }

/* =====================================================================
   24. Đã nhận đơn (inc/cart.php, skilltot-delivery, khung SePay)
   ===================================================================== */
.woocommerce-order-received .page-wrapper { padding-top: var(--space-2xl); padding-bottom: var(--space-3xl); }
.woocommerce-order-received .woocommerce-order > .st-cart-head { flex: 0 0 100%; max-width: 100%; padding: 0 15px !important; }
.woocommerce-order-received .woocommerce-order > .stp-wait, .woocommerce-order-received .woocommerce-order > .stp-dl { flex: 0 0 calc(100% - 30px); max-width: calc(100% - 30px); margin: 0 15px var(--space-xl); }
.woocommerce-order-received .stp-wait { padding: var(--space-lg); border-radius: var(--radius-card); }
.woocommerce-order-received .stp-wait .stp-dl__title { margin: 0 !important; font-size: var(--text-xl); }
.woocommerce-order-received .stp-wait p { margin: var(--space-xs) 0 0; }
.woocommerce-order-received .stp-wait .st-btn { margin-top: var(--space-md); }

/* Khung chuyển khoản SePay */
.woocommerce-order-received .woocommerce-sepay-bank-details { display: block; max-width: none; margin: 0 0 var(--space-xl); padding: 0; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); overflow: hidden; }
.woocommerce-order-received .sepay-box { padding: var(--space-lg); }
.woocommerce-order-received .sepay-box .box-title { margin: 0 0 var(--space-lg); padding: 0 0 var(--space-md); border-bottom: 1px solid var(--color-rule); color: var(--color-ink); font-size: var(--text-lg); font-weight: 700; text-align: left; }
.woocommerce-order-received .sepay-message:empty { display: none; }
.woocommerce-order-received .sepay-message { margin: 0 0 var(--space-md); color: var(--color-success); font-weight: 600; }
.woocommerce-order-received .sepay-pay-info { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-xl); align-items: start; margin: 0; }
.woocommerce-order-received .qr-title, .woocommerce-order-received .manual-title { margin: 0 0 var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.45; }
.woocommerce-order-received .qr-title b, .woocommerce-order-received .manual-title b { color: var(--color-ink); }
.woocommerce-order-received .qr-element { position: relative; padding: var(--space-xs); border: 1px solid var(--color-rule); border-radius: var(--radius-field); background: var(--color-qr-bg); }
.woocommerce-order-received .qr-top-border, .woocommerce-order-received .qr-bottom-border { display: none; }
.woocommerce-order-received .qr-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.woocommerce-order-received .download-qr { margin-top: var(--space-sm); text-align: center; }
.woocommerce-order-received .button-qr { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-link); font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.woocommerce-order-received .button-qr:hover { text-decoration: underline; }
.woocommerce-order-received .button-qr:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }
.woocommerce-order-received .button-qr svg { width: 16px; height: 16px; }
.woocommerce-order-received .bank-info .banner { width: auto; height: auto; min-height: 0; margin: 0 0 var(--space-xs); padding: 0; background: none; }
.woocommerce-order-received .bank-info .banner:not(:has(img[src^="http"])) { display: none; }
.woocommerce-order-received .bank-logo { display: block; width: auto; height: 32px; }
.woocommerce-order-received .bank-logo:not([src^="http"]) { display: none; }
.woocommerce-order-received .bank-info-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-rule); font-size: var(--text-sm); }
.woocommerce-order-received .bank-info-row > .bank-info-cell:first-child { flex: none; color: var(--color-muted); }
.woocommerce-order-received .bank-info-row > .bank-info-cell:last-child { min-width: 0; color: var(--color-ink); text-align: right; overflow-wrap: anywhere; }
.woocommerce-order-received .bank-info-cell .font-bold { font-weight: 600; }
.woocommerce-order-received .bank-info-value { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.woocommerce-order-received .bank-info-value .amount { color: inherit; }
.woocommerce-order-received .bank-info-value a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--color-muted); transition: background-color var(--dur-short), color var(--dur-short); }
.woocommerce-order-received .bank-info-value a:hover { background: var(--color-fill); color: var(--color-ink); }
.woocommerce-order-received .bank-info-value a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }
.woocommerce-order-received .bank-info-value svg { width: 14px; height: 14px; }
.woocommerce-order-received .sepay-box .note { display: flex; align-items: flex-start; gap: var(--space-xs); margin: var(--space-md) 0 0; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-field); background: var(--color-paper-2); color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.45; }
.woocommerce-order-received .sepay-box .note svg { flex: none; width: 16px; height: 16px; margin-top: var(--space-3xs); }
.woocommerce-order-received .sepay-pay-footer { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-sm) var(--space-lg); border-top: 1px solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 600; }
.woocommerce-order-received .sepay-pay-footer img { width: 16px; height: 16px; }

/* Chi tiết đơn + thông tin khách */
.woocommerce-order-received .woocommerce-order-details, .woocommerce-order-received .woocommerce-customer-details { margin: 0 0 var(--space-xl); }
.woocommerce-order-received .woocommerce-order-details__title, .woocommerce-order-received .woocommerce-customer-details .woocommerce-column__title { margin: 0 0 var(--space-sm); padding: 0; border: 0; color: var(--color-ink); font-size: var(--text-lg); font-weight: 700; text-transform: none; letter-spacing: 0; }
.woocommerce-order-received .order_details.shop_table { margin: 0; border: 0; }
.woocommerce-order-received .order_details.shop_table thead { display: none; }
.woocommerce-order-received .order_details.shop_table td, .woocommerce-order-received .order_details.shop_table th { padding: var(--space-sm) 0; border: 0; border-bottom: 1px solid var(--color-rule); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 400; text-transform: none; letter-spacing: 0; vertical-align: middle; }
.woocommerce-order-received .order_details .order_item .product-name { display: flex; align-items: center; gap: var(--space-sm); padding-right: var(--space-sm); line-height: 1.35; }
.woocommerce-order-received .order_details .order_item .product-name a { color: var(--color-ink); font-weight: 500; }
.woocommerce-order-received .order_details .order_item .product-name a:hover { color: var(--color-link); }
.woocommerce-order-received .order_details .st-co-thumb { flex: none; width: 56px; height: 42px; margin: 0; object-fit: cover; border-radius: var(--radius-field); background: var(--color-paper-3); }
.woocommerce-order-received .order_details .st-co-name { min-width: 0; }
.woocommerce-order-received .order_details td.product-total, .woocommerce-order-received .order_details tfoot td { color: var(--color-ink); text-align: right; white-space: nowrap; }
.woocommerce-order-received .order_details tfoot td { white-space: normal; }
.woocommerce-order-received .order_details .amount { color: inherit !important; }
.woocommerce-order-received .order_details tfoot tr:nth-last-child(2) th, .woocommerce-order-received .order_details tfoot tr:nth-last-child(2) td { color: var(--color-ink); font-weight: 600; }
.woocommerce-order-received .woocommerce-customer-details address { margin: 0; padding: var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-field); color: var(--color-ink); font-size: var(--text-sm); font-style: normal; line-height: 1.6; }
.woocommerce-order-received .woocommerce-customer-details address p { margin: 0; color: var(--color-ink-2); }

/* Thẻ tóm tắt bên phải */
.woocommerce-order-received .woocommerce-order .col-inner.is-well { position: sticky; top: calc(var(--header-h) + var(--space-md)); padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: none; }
.woocommerce-order-received .woocommerce-thankyou-order-received { margin: 0 0 var(--space-sm); color: var(--color-ink); font-size: var(--text-lg); line-height: 1.35; }
.woocommerce-order-received .woocommerce-thankyou-order-received strong { font-weight: 700; }
.woocommerce-order-received .woocommerce-order-overview { margin: 0; padding: 0; list-style: none; }
.woocommerce-order-received .woocommerce-order-overview li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs) var(--space-md); margin: 0; padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); list-style: none; }
.woocommerce-order-received .woocommerce-order-overview li:last-child { border-bottom: 0; padding-bottom: 0; }
.woocommerce-order-received .woocommerce-order-overview li strong { min-width: 0; color: var(--color-ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.woocommerce-order-received .woocommerce-order-overview .total strong { font-size: var(--text-lg); font-weight: 700; }
.woocommerce-order-received .woocommerce-order-overview .amount { color: inherit !important; }

@media (max-width: 849px) {
  .woocommerce-order-received .woocommerce-order .col-inner.is-well { position: static; }
}
@media (max-width: 549px) {
  .woocommerce-order-received .sepay-box { padding: var(--space-md); }
  .woocommerce-order-received .sepay-pay-info { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .woocommerce-order-received .qr-zone { max-width: 220px; margin-inline: auto; }
  .woocommerce-order-received .qr-title { text-align: center; }
  .woocommerce-order-received .order_details .st-co-thumb { width: 44px; height: 33px; }
}
html[data-theme="dark"] .woocommerce-order-received .woocommerce-sepay-bank-details { background: var(--color-paper) !important; }
html[data-theme="dark"] .woocommerce-order-received .woocommerce-order .col-inner.is-well { background: var(--color-paper-2) !important; }
