/* =========================================================
   Trịnh Xưa Coffee – giao diện (theme con Kadence)
   Màu lấy từ logo và bao bì 2026: nâu rang, cam "Since 2004",
   xanh rừng Khe Sanh, đỏ quả chín, nền kem giấy kraft.
   ========================================================= */
:root {
  --tx-bg: #FBF1E0;
  --tx-paper: #FFF8EA;
  --tx-ink: #3A1A0B;
  --tx-muted: #7A5A47;
  --tx-brown: #6B2C12;
  --tx-hero: #5E250F;
  --tx-hero-ink: #FBE9CC;
  --tx-orange: #D9660F;
  --tx-orange-ink: #FFFFFF;
  --tx-red: #9E2A2B;
  --tx-leaf: #2C4A3E;
  --tx-line: rgba(107, 44, 18, .18);
  --tx-radius: 16px;
  --tx-wrap: 1180px;
  --tx-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tx-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Ghi đè biến của Kadence để mọi thành phần mặc định cũng theo tông thương hiệu */
  --global-palette1: var(--tx-orange);
  --global-palette2: var(--tx-red);
  --global-palette3: var(--tx-ink);
  --global-palette4: #4A2A18;
  --global-palette5: var(--tx-muted);
  --global-palette6: #A08572;
  --global-palette7: #EADBC4;
  --global-palette8: var(--tx-bg);
  --global-palette9: var(--tx-paper);
  --global-palette-btn-bg: var(--tx-orange);
  --global-palette-btn-bg-hover: #C2560A;
  --global-palette-btn: #fff;
  --global-palette-btn-hover: #fff;
  --global-body-font-family: var(--tx-serif);
  --global-heading-font-family: var(--tx-sans);
  --global-content-width: var(--tx-wrap);
  --wp--style--global--content-size: var(--tx-wrap);
  --wp--style--global--wide-size: var(--tx-wrap);
}

html { scroll-padding-top: 96px; }
body {
  background: var(--tx-bg);
  color: var(--tx-ink);
  font-family: var(--tx-serif);
  font-size: 18px;
  line-height: 1.65;
}
body.tx-noscroll { overflow: hidden; }
a { color: var(--tx-brown); }
a:hover { color: var(--tx-orange); }
h1, h2, h3, h4, h5, h6,
.entry-title, .product_title, .woocommerce-loop-product__title {
  font-family: var(--tx-sans);
  color: var(--tx-brown);
  letter-spacing: -.01em;
  line-height: 1.15;
}
:focus-visible { outline: 3px solid var(--tx-orange); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.tx-wrap { width: min(var(--tx-wrap), 100% - 40px); margin-inline: auto; }
.tx-visually-hidden, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.content-bg, body.content-style-unboxed .site { background: transparent; }
.site, #wrapper { background: var(--tx-bg); }
.tx-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Nút ---------- */
.button, button.button, .wp-block-button__link, .wp-element-button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .tx-track button, .tx-form button {
  font: 700 15px/1 var(--tx-sans) !important;
  background: var(--tx-orange);
  color: var(--tx-orange-ink);
  border: 2px solid var(--tx-orange);
  border-radius: 999px !important;
  padding: 14px 22px !important;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s, background .15s, color .15s;
}
.button:hover, .wp-block-button__link:hover, .woocommerce a.button:hover, .woocommerce button.button:hover {
  filter: brightness(1.07); color: var(--tx-orange-ink); background: var(--tx-orange);
}
.is-style-outline > .wp-block-button__link, .wp-block-button__link.is-style-outline {
  background: transparent; color: currentColor; border-color: currentColor;
}
.is-style-outline > .wp-block-button__link:hover { background: transparent; color: var(--tx-orange); border-color: var(--tx-orange); }
.button.loading { opacity: .6; pointer-events: none; }
.tx-center { justify-content: center; }

/* ---------- Thanh trên cùng & header ---------- */
.tx-topbar { background: var(--tx-hero); color: var(--tx-hero-ink); font: 500 13px/1 var(--tx-sans); }
.tx-topbar .tx-wrap { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.tx-topbar a { color: #F7B57A; text-decoration: none; font-weight: 700; }
.tx-topbar a:hover { text-decoration: underline; }
.tx-topbar__right { display: inline-flex; gap: 16px; align-items: center; }
.tx-topbar__track { display: inline-flex; align-items: center; gap: 6px; padding-left: 16px; border-left: 1px solid rgba(251, 233, 204, .3); }
.tx-topbar__track::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 7.5 12 3l9 4.5v9L12 21l-9-4.5z'/%3E%3Cpath d='m3 7.5 9 4.5 9-4.5M12 12v9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 7.5 12 3l9 4.5v9L12 21l-9-4.5z'/%3E%3Cpath d='m3 7.5 9 4.5 9-4.5M12 12v9'/%3E%3C/svg%3E") center / contain no-repeat; }
.tx-nav__mobile-only { display: none; }
.tx-pay-title { font-size: 22px; margin: 28px 0 12px; }
.tx-pay-title span { display: block; font: 500 14px/1.4 var(--tx-sans); color: var(--tx-muted); margin-top: 4px; }

.tx-header { position: sticky; top: 0; z-index: 50; background: var(--tx-bg); border-bottom: 1px solid var(--tx-line); }
.admin-bar .tx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tx-header { top: 0; } }
.tx-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.tx-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.tx-brand__logo { width: 52px; height: 52px; border-radius: 50%; }
.tx-brand b { display: block; font: 900 20px/1 var(--tx-sans); color: var(--tx-brown); }
.tx-brand small { display: block; font: 500 12px/1.2 var(--tx-sans); color: var(--tx-muted); margin-top: 4px; }
.tx-brand--light b { color: var(--tx-hero-ink); }
.tx-brand--light small { color: #E3C9A6; }

.tx-nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.tx-nav__list > li { position: relative; }
.tx-nav a { display: block; font: 600 15px/1 var(--tx-sans); color: var(--tx-ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.tx-nav a:hover, .tx-nav .current-menu-item > a, .tx-nav .current-menu-ancestor > a, .tx-nav .current_page_parent > a { border-color: var(--tx-orange); color: var(--tx-ink); }
.tx-nav .sub-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; left: -12px; top: 100%; min-width: 220px;
  background: var(--tx-paper); border: 1px solid var(--tx-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(58, 26, 11, .14);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.tx-nav li:hover > .sub-menu, .tx-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tx-nav .sub-menu a { padding: 10px 12px; border: 0; border-radius: 8px; font-weight: 500; }
.tx-nav .sub-menu a:hover { background: var(--tx-bg); color: var(--tx-orange); }

.tx-header__actions { display: flex; gap: 8px; align-items: center; }
.tx-iconbtn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--tx-line); border-radius: 12px; background: transparent; color: var(--tx-brown); cursor: pointer; text-decoration: none;
}
.tx-iconbtn:hover { border-color: var(--tx-orange); color: var(--tx-orange); background: transparent; }
.tx-cart-count {
  position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--tx-orange); color: #fff; font: 800 12px/22px var(--tx-sans); text-align: center;
}
.tx-cart-count[hidden] { display: none; }
.tx-menu-btn { display: none; }
.tx-search { border-top: 1px solid var(--tx-line); padding: 14px 0; background: var(--tx-paper); }
.tx-search form { display: flex; gap: 10px; }
.tx-search input[type=search] { flex: 1; font: 500 16px var(--tx-sans); padding: 12px 16px; border: 2px solid var(--tx-line); border-radius: 999px; background: #fff; }

@media (max-width: 1000px) {
  .tx-menu-btn { display: inline-grid; }
  .tx-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--tx-bg); border-bottom: 1px solid var(--tx-line); padding: 8px 20px 20px; max-height: calc(100vh - 120px); overflow: auto; }
  .tx-nav.is-open { display: block; }
  .tx-nav__list { flex-direction: column; gap: 0; }
  .tx-nav a { padding: 14px 0; border-bottom: 1px solid var(--tx-line); }
  .tx-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 16px; }
  .tx-brand small { display: none; }
  .tx-nav__mobile-only { display: block; }
  .tx-nav__mobile-only a { color: var(--tx-orange) !important; font-weight: 700 !important; }
}
@media (max-width: 420px) {
  .tx-brand b { font-size: 17px; }
  .tx-brand__logo { width: 44px; height: 44px; }
  .tx-header__actions { gap: 6px; }
  .tx-iconbtn { width: 40px; height: 40px; }
}

/* ---------- Bố cục trang landing (khối Gutenberg) ---------- */
.tx-landing .content-area, .tx-landing .site-main { margin: 0; padding: 0; }
.tx-landing .entry-content-wrap, .tx-landing .entry.single-entry { padding: 0; box-shadow: none; background: transparent; }
.tx-landing .entry-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.tx-landing .entry-content > * + * { margin-top: 0; }
.tx-sec, .tx-hero, .tx-usp, .tx-cta, .tx-pagehead { padding: 88px 20px; }
/* Kadence đặt padding 0 cho .entry-content .alignfull – giữ lề hai bên cho các khối */
.entry-content .alignfull:is(.tx-sec, .tx-hero, .tx-usp, .tx-cta, .tx-pagehead) { padding-left: 20px; padding-right: 20px; }
html, body { overflow-x: clip; }
.tx-sec > *, .tx-hero > *, .tx-usp > *, .tx-cta > *, .tx-pagehead > * { max-width: var(--tx-wrap); margin-left: auto !important; margin-right: auto !important; }
.tx-sec h2.wp-block-heading { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 0 0 16px; }
.tx-sec h3 { font-size: 22px; font-weight: 800; }
.tx-sec--paper { background: var(--tx-paper); border-block: 1px solid var(--tx-line); }
.tx-sec--dark, .tx-hero, .tx-pagehead, .tx-cta { background: var(--tx-hero); color: var(--tx-hero-ink); position: relative; overflow: hidden; }
.tx-sec--dark h2, .tx-sec--dark h3, .tx-hero h1, .tx-pagehead h1, .tx-cta h2 { color: var(--tx-hero-ink); }
.tx-hero::before, .tx-pagehead::before, .tx-cta::before {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image:
    linear-gradient(45deg, transparent 48%, #E3721A 49%, #E3721A 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, #E3721A 49%, #E3721A 51%, transparent 52%);
  background-size: 56px 56px;
}
.tx-hero > *, .tx-pagehead > *, .tx-cta > * { position: relative; }
.tx-eyebrow { font: 700 13px/1.3 var(--tx-sans) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-orange); margin: 0 0 12px !important; }
.tx-sec--dark .tx-eyebrow, .tx-hero .tx-eyebrow { color: #F7A55C; }
.tx-lead { font-size: 20px; max-width: 36em; }
.tx-muted { color: var(--tx-muted); }
.tx-rounded img { border-radius: var(--tx-radius); width: 100%; object-fit: cover; }

/* Hero */
.tx-hero { padding-block: 72px 80px; }
.tx-hero .wp-block-columns { align-items: center; gap: 48px; margin: 0 auto; }
.tx-hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 20px; }
.tx-hero .tx-lead { color: #F1DFC2; margin-bottom: 28px; }
.tx-hero .is-style-outline .wp-block-button__link { color: var(--tx-hero-ink); }
.tx-hero__img img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }

/* Điểm mạnh */
.tx-usp { padding-block: 0; background: var(--tx-hero); }
.tx-usp__list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--tx-paper); border: 1px solid var(--tx-line); border-radius: var(--tx-radius); transform: translateY(40px); box-shadow: 0 20px 40px rgba(58, 26, 11, .12); }
.tx-usp__list li { padding: 24px 22px; display: grid; gap: 4px; border-right: 1px solid var(--tx-line); }
.tx-usp__list li:last-child { border-right: 0; }
.tx-usp__list svg { width: 34px; height: 34px; fill: none; stroke: var(--tx-orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.tx-usp__list b { font: 800 16px/1.3 var(--tx-sans); color: var(--tx-brown); }
.tx-usp__list span { font: 400 14px/1.5 var(--tx-sans); color: var(--tx-muted); }
.tx-usp + .tx-sec { padding-top: 140px; }

/* Hai cột chữ – ảnh */
.tx-split { gap: 56px; align-items: center; margin: 0 auto; }
.tx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.tx-stats div { border-top: 3px solid var(--tx-orange); padding-top: 12px; }
.tx-stats dt { font: 900 26px/1.1 var(--tx-sans); color: var(--tx-brown); }
.tx-stats dd { margin: 6px 0 0; font: 500 14px/1.45 var(--tx-sans); color: var(--tx-muted); }

/* Hướng dẫn chọn theo gu */
.tx-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.tx-guide__card { display: block; text-decoration: none; background: var(--tx-paper); border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 28px; color: var(--tx-ink); transition: transform .15s, box-shadow .15s; }
.tx-guide__card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(58, 26, 11, .12); color: var(--tx-ink); }
.tx-guide__icon { font-size: 34px; display: block; margin-bottom: 10px; }
.tx-guide__card h3 { font-size: 21px; margin: 0 0 8px; }
.tx-guide__card p { font-size: 16px; color: var(--tx-muted); }
.tx-more { font: 700 14px var(--tx-sans); color: var(--tx-orange); }
.tx-more::after { content: " →"; }

/* Quy trình 6 bước */
.tx-steps6 { list-style: none; margin: 36px auto 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; counter-reset: s; }
.tx-steps6 li { counter-increment: s; border-top: 1px solid rgba(251, 233, 204, .25); padding-top: 18px; }
.tx-steps6 li::before { content: "0" counter(s); display: block; font: 900 34px/1 var(--tx-sans); color: #F7A55C; margin-bottom: 10px; }
.tx-steps6 h3 { font-size: 19px; margin: 0 0 6px; }
.tx-steps6 p { font-size: 16px; color: #E9D3B4; margin: 0; }
.tx-gallery3 { gap: 20px; margin: 0 auto; }
.tx-gallery3 img { aspect-ratio: 4 / 3; }

/* Đánh giá */
.tx-reviews { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 28px; }
.tx-review { margin: 0; background: #fff; border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 26px; }
.tx-review blockquote { margin: 8px 0 14px; padding: 0; border: 0; font-style: italic; }
.tx-review blockquote p { margin: 0; }
.tx-review figcaption { font: 700 15px var(--tx-sans); color: var(--tx-brown); }
.tx-stars { color: #E2A12B; letter-spacing: 2px; }
.tx-verify { background: var(--tx-leaf); color: #E8F1EC; border-radius: var(--tx-radius); padding: 26px; font-family: var(--tx-sans); }
.tx-verify b { font-size: 18px; color: #fff; }
.tx-verify p { font-size: 15px; margin: 8px 0 14px; }
.tx-verify a { color: #FFD7A8; font-weight: 700; }

/* Bài viết mới */
.tx-posts.wp-block-latest-posts { margin-top: 28px; padding: 0; gap: 28px; }
.tx-posts.wp-block-latest-posts.is-grid li { margin: 0 !important; width: auto !important; }
.wp-block-latest-posts.is-grid.columns-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.tx-posts .wp-block-latest-posts__featured-image img { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.tx-posts a { font: 700 19px/1.35 var(--tx-sans); color: var(--tx-ink); text-decoration: none; }
.tx-posts a:hover { color: var(--tx-orange); }
.tx-posts time { display: block; font: 500 13px var(--tx-sans); color: var(--tx-muted); margin-top: 6px; }

/* Lời kêu gọi */
.tx-cta { text-align: center; padding-block: 72px; }
.tx-cta h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.tx-cta p { color: #F1DFC2; max-width: 40em; margin-inline: auto; }
.tx-cta .wp-block-buttons { justify-content: center; }
.tx-cta .is-style-outline .wp-block-button__link { color: var(--tx-hero-ink); }

/* Đầu trang con */
.tx-pagehead { padding-block: 64px 60px; }
.tx-pagehead h1 { font-size: clamp(34px, 5.5vw, 60px); font-weight: 900; margin: 0; }
.tx-pagehead .tx-lead { color: #EBD3B0; margin: 14px 0 0; }

/* Về chúng tôi */
.tx-timeline { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tx-timeline li { border-top: 4px solid var(--tx-orange); padding-top: 16px; }
.tx-timeline b { font: 900 30px/1 var(--tx-sans); color: var(--tx-brown); }
.tx-timeline p { font-size: 16px; color: var(--tx-muted); margin: 10px 0 0; }
.tx-quote { margin: 20px 0; padding: 0 0 0 22px; border-left: 4px solid var(--tx-orange); font: italic 400 20px/1.6 var(--tx-serif); }
.tx-quote cite { display: block; margin-top: 10px; font: 600 14px var(--tx-sans); font-style: normal; color: var(--tx-muted); }
.tx-pledge { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: p; }
.tx-pledge li { counter-increment: p; border-top: 1px solid rgba(251, 233, 204, .25); padding-top: 18px; }
.tx-pledge b { font: 800 21px/1.3 var(--tx-sans); color: #F7A55C; display: block; }
.tx-pledge p { color: #E9D3B4; margin: 8px 0 0; }
.tx-cards3 { gap: 28px; margin: 0 auto; }
.tx-cards3 > .wp-block-column { background: var(--tx-paper); border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 26px; }
.tx-cards3 ul { padding-left: 1.1em; font-size: 16px; }

/* Cung cấp sỉ */
.tx-b2b { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.tx-b2b article { background: var(--tx-paper); border: 1px solid var(--tx-line); border-top: 4px solid var(--tx-orange); border-radius: var(--tx-radius); padding: 26px; }
.tx-b2b h3 { margin: 0 0 8px; }
.tx-b2b p { margin: 0; font-size: 16px; color: var(--tx-muted); }
.tx-narrow > * { max-width: 760px; }

/* ---------- Form ---------- */
.tx-form, .tx-track { display: grid; gap: 4px; }
.tx-form p, .tx-track p { margin: 0 0 14px; }
.tx-form label, .tx-track label, .tx-form legend { display: block; font: 700 14px var(--tx-sans); color: var(--tx-brown); margin-bottom: 6px; }
.tx-form input:not([type=checkbox]), .tx-form select, .tx-form textarea, .tx-track input,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.select2-container .select2-selection--single {
  width: 100%; font: 400 17px/1.4 var(--tx-sans); padding: 12px 14px; border: 2px solid var(--tx-line); border-radius: 10px; background: #fff; color: var(--tx-ink);
}
.select2-container .select2-selection--single { height: auto; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 10px; right: 8px; }
.tx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.tx-form__products { border: 0; padding: 0; margin: 0 0 14px; }
.tx-form__products label { display: inline-flex; align-items: center; gap: 8px; margin: 0 18px 8px 0; font-weight: 500; color: var(--tx-ink); }
.tx-hp { position: absolute; left: -9999px; }
.tx-warn { background: #FFF1E6; border-left: 4px solid var(--tx-orange); padding: 14px 16px; font: 500 15px/1.5 var(--tx-sans); border-radius: 6px; }
.tx-done { background: var(--tx-paper); border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 28px; }
.tx-clist { list-style: none; margin: 0 0 24px; padding: 0; }
.tx-clist li { padding: 14px 0; border-bottom: 1px solid var(--tx-line); font: 600 18px/1.4 var(--tx-sans); color: var(--tx-brown); }
.tx-clist small { display: block; font: 700 13px var(--tx-sans); color: var(--tx-muted); margin-bottom: 2px; }
.tx-map iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--tx-radius); margin-top: 40px; }

/* ---------- Nút Zalo / Messenger / Gọi ---------- */
.tx-sup { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--tx-sans); text-decoration: none; color: #fff !important; padding: 11px 16px; border-radius: 999px; }
.tx-sup svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tx-sup--zalo { background: #0068FF; }
.tx-sup--mess { background: #8A3FFC; }
.tx-sup--tel { background: var(--tx-leaf); }
.tx-sup:hover { filter: brightness(1.1); }
.tx-support { position: fixed; right: 0; bottom: 0; z-index: 40; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.tx-support .tx-sup { pointer-events: auto; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
.tx-support-inline { display: flex; gap: 8px; flex-wrap: wrap; }
/* Có khung chat Zalo OA ở góc dưới: đẩy cụm nút lên trên */
.tx-support.has-zalo-oa { bottom: 84px; }
.tx-support.has-zalo-oa .tx-sup--zalo { display: none; }
@media (max-width: 600px) {
  .tx-support .tx-sup span { display: none; }
  .tx-support .tx-sup { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .tx-support .tx-sup svg { width: 24px; height: 24px; }
}

/* ---------- Cửa hàng ---------- */
.tx-filters { display: grid; gap: 14px; margin: 0 0 32px; padding: 20px; background: var(--tx-paper); border: 1px solid var(--tx-line); border-radius: var(--tx-radius); }
.tx-filters__group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tx-filters__label { display: inline-flex; align-items: center; gap: 8px; font: 800 15px/1.2 var(--tx-sans); color: var(--tx-ink); min-width: 110px; margin-right: 6px; }
.tx-filters__label::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--tx-orange); flex: none; }
.tx-chip { font: 600 14px/1 var(--tx-sans); padding: 10px 14px; border: 2px solid var(--tx-line); border-radius: 999px; background: #fff; color: var(--tx-ink); text-decoration: none; }
.tx-chip:hover { border-color: var(--tx-orange); color: var(--tx-ink); }
.tx-chip[aria-current="true"] { background: var(--tx-brown); border-color: var(--tx-brown); color: var(--tx-bg); }
.tx-filters__price label { display: flex; align-items: center; gap: 8px; margin: 0; }
.tx-filters__price select { font: 500 15px var(--tx-sans); padding: 9px 14px; border: 2px solid var(--tx-line); border-radius: 999px; background: #fff; }

.woocommerce ul.products li.product, .wc-block-grid__product {
  background: var(--tx-paper); border: 1px solid var(--tx-line); border-radius: var(--tx-radius); overflow: hidden; position: relative; text-align: left;
  display: flex; flex-direction: column;
}
.woocommerce ul.products li.product .woocommerce-loop-image-link, .woocommerce ul.products li.product a img { display: block; background: #F3E4CC; margin: 0; }
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: contain; width: 100%; padding: 14px; transition: transform .3s; }
.woocommerce ul.products li.product:hover a img { transform: scale(1.03); }
.woocommerce ul.products li.product .product-details { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; background: transparent; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 17px; font-weight: 700; line-height: 1.35; padding: 0; margin: 0 0 6px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title a { color: var(--tx-ink); text-decoration: none; }
.woocommerce ul.products li.product .price { font: 800 18px var(--tx-sans); color: var(--tx-brown); margin-bottom: 12px; }
.woocommerce ul.products li.product .price del { font-weight: 500; color: var(--tx-muted); font-size: 15px; }
.woocommerce ul.products li.product .product-action-wrap, .woocommerce ul.products li.product .button { margin-top: auto; }
/* Kadence đặt nút ở vị trí absolute, bottom âm, chỉ hiện khi rê chuột → nút bị cắt ở đáy thẻ.
   Đưa nút về luồng bình thường, luôn hiện, nằm sát đáy thẻ. */
.woocommerce ul.products li.product .product-action-wrap,
.woocommerce ul.products.woo-archive-action-on-hover li.product .product-action-wrap,
.woocommerce ul.products.woo-archive-action-on-hover li.product:hover .product-action-wrap,
.woocommerce ul.products.woo-archive-action-on-hover li.product:focus-within .product-action-wrap { position: static; bottom: auto; opacity: 1; visibility: visible; transform: none; padding: 14px 0 0; margin-top: auto; }
.woocommerce ul.products li.product .product-details { display: flex; flex-direction: column; flex: 1; }
.woocommerce ul.products li.product .button { width: 100%; justify-content: center; text-align: center; }
.tx-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.tx-badge { background: var(--tx-orange); color: #fff; font: 700 12px/1 var(--tx-sans); padding: 7px 10px; border-radius: 999px; }
.tx-badge:nth-child(2) { background: var(--tx-leaf); }
.summary .tx-badges { position: static; margin-bottom: 10px; }
.woocommerce span.onsale { background: var(--tx-red); border-radius: 999px; min-height: 0; min-width: 0; padding: 6px 10px; font: 700 12px/1 var(--tx-sans); top: 12px; right: 12px; left: auto; }
.tx-contact-price { font: 700 16px var(--tx-sans); color: var(--tx-leaf); }

/* Nút trong thẻ sản phẩm: dạng nút bấm thay cho chữ gạch chân của Kadence */
.woocommerce ul.products li.product .product-action-wrap .button { display: flex; align-items: center; justify-content: center; gap: 6px; text-transform: none; letter-spacing: 0; background: transparent; color: var(--tx-brown); border: 2px solid var(--tx-brown); padding: 11px 16px !important; font-size: 14px !important; }
.woocommerce ul.products li.product .product-action-wrap .button:hover { background: var(--tx-brown); color: var(--tx-bg); }
.woocommerce ul.products li.product .product-action-wrap .button svg { display: none; }

/* Đầu trang (cửa hàng, danh mục, blog, giỏ hàng, chính sách…): nền nâu, căn trái thẳng hàng với nội dung */
.entry-hero { background: var(--tx-hero); position: relative; overflow: hidden; }
.entry-hero .hero-section-overlay, .entry-hero .entry-hero-container-inner { background: transparent !important; }
.entry-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none; background-image: linear-gradient(45deg, transparent 48%, #E3721A 49%, #E3721A 51%, transparent 52%), linear-gradient(-45deg, transparent 48%, #E3721A 49%, #E3721A 51%, transparent 52%); background-size: 56px 56px; }
.entry-hero .entry-header { text-align: left !important; align-items: flex-start; justify-content: center; position: relative; }
.entry-hero h1, .entry-hero .entry-title { color: var(--tx-hero-ink); font-size: clamp(32px, 5vw, 52px); font-weight: 900; }
.entry-hero .archive-description { margin: 12px 0 0 !important; max-width: 40em; color: #EBD3B0; text-align: left; font-size: 19px; }
.entry-hero .archive-description p { margin: 0; }
/* Kadence ép đầu trang cao tối thiểu 200px + nội dung cách 5rem: quá trống khi chỉ có 1 dòng tiêu đề */
.entry-hero .entry-header, .entry-hero .entry-hero-container-inner { min-height: 0 !important; }
.entry-hero .entry-hero-container-inner { padding: 40px 0 36px !important; }
.entry-hero + .content-area, .entry-hero ~ .content-area, .entry-hero ~ * .content-area { margin-top: 32px !important; }
@media (max-width: 781px) { .entry-hero .entry-hero-container-inner { padding: 28px 0 24px !important; } .entry-hero + .content-area, .entry-hero ~ .content-area { margin-top: 20px !important; } }

/* Trang chi tiết */
.woocommerce-product-gallery__image img { max-height: 640px; object-fit: contain; background: #F3E4CC; border-radius: var(--tx-radius); }
.single-product div.product .product_title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.single-product div.product p.price, .single-product div.product span.price { font: 800 28px var(--tx-sans); color: var(--tx-brown); }
.single-product .woocommerce-product-details__short-description { font-size: 18px; }
.woocommerce div.product form.cart .variations { margin-bottom: 12px; border: 0; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; border: 0; text-align: left; }
.woocommerce div.product form.cart .variations th label { font: 700 15px var(--tx-sans); color: var(--tx-brown); margin-bottom: 10px; display: block; }
.woocommerce div.product form.cart .variations tr { display: block; margin-bottom: 18px; }
.tx-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.tx-swatch { font: 600 14px/1 var(--tx-sans); padding: 12px 16px; border: 2px solid var(--tx-line); border-radius: 999px; background: #fff; color: var(--tx-ink); cursor: pointer; }
.tx-swatch:hover { border-color: var(--tx-orange); }
.tx-swatch.is-selected { background: var(--tx-brown); border-color: var(--tx-brown); color: var(--tx-bg); }
.tx-swatch:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.woocommerce div.product form.cart .quantity { margin: 0; }
.woocommerce .quantity .qty { border: 2px solid var(--tx-line); border-radius: 999px; height: 48px; width: 80px; font: 700 16px var(--tx-sans); }
.woocommerce div.product form.cart .button { margin: 0; }
.tx-buy-now { background: transparent !important; color: var(--tx-brown) !important; border-color: var(--tx-brown) !important; }
.tx-buy-now:hover { background: var(--tx-brown) !important; color: var(--tx-bg) !important; }
.woocommerce div.product .woocommerce-variation-price .price { font-size: 24px; }
.tx-ask { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--tx-line); display: grid; gap: 10px; }
.tx-ask > span { font: 600 14px var(--tx-sans); color: var(--tx-muted); }
.tx-spec { width: 100%; border-collapse: collapse; font: 500 16px/1.5 var(--tx-sans); }
.tx-spec th, .tx-spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--tx-line); vertical-align: top; }
.tx-spec th { width: 34%; color: var(--tx-muted); font-weight: 700; padding-right: 16px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: var(--tx-sans); }
.product_meta { font: 500 14px var(--tx-sans); color: var(--tx-muted); }

/* Giỏ hàng & thanh toán */
.tx-freeship { font: 500 14px/1.5 var(--tx-sans); background: var(--tx-paper); border: 1px dashed var(--tx-orange); border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; }
.tx-freeship.is-done { border-color: var(--tx-leaf); color: var(--tx-leaf); font-weight: 700; }
.tx-freeship__bar { display: block; height: 6px; background: #F0DFC6; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.tx-freeship__bar span { display: block; height: 100%; background: var(--tx-orange); }
.woocommerce-checkout #payment, .woocommerce-cart .cart-collaterals .cart_totals { background: var(--tx-paper); border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 22px; }
.woocommerce-cart .cart-collaterals .cart_totals h2 { font-size: 22px; margin: 0 0 12px; }
.woocommerce-cart .cart-collaterals .cart_totals table { margin: 0 0 16px; }
.woocommerce-cart .cart-collaterals .cart_totals th { white-space: nowrap; width: 34%; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 0; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button { display: block; width: 100%; margin: 0; text-align: center; }
.woocommerce-checkout #payment ul.payment_methods { padding: 0 0 16px; margin: 0; border-bottom: 1px solid var(--tx-line); }
.woocommerce-checkout #payment ul.payment_methods li { padding: 12px 14px; margin: 0 0 8px; border-radius: 10px; }
.woocommerce-checkout #payment div.payment_box { margin: 8px 0 0; border-radius: 8px; }
.woocommerce-checkout #payment .form-row.place-order { padding: 16px 0 0; margin: 0; }
.woocommerce-checkout #payment #place_order { display: block; width: 100%; margin: 14px 0 0; float: none; }
.woocommerce-checkout .woocommerce-privacy-policy-text p { font: 400 14px/1.5 var(--tx-sans); color: var(--tx-muted); margin: 0 0 10px; }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout .woocommerce-billing-fields h3 { font-size: 22px; }
.woocommerce form .form-row label { font: 700 14px var(--tx-sans); color: var(--tx-brown); }
.woocommerce-checkout #payment ul.payment_methods li { font-family: var(--tx-sans); }
.woocommerce form .form-row .description { font-size: 13px; }

/* Thanh toán VietQR */
.tx-qr { background: var(--tx-paper); border: 2px solid var(--tx-orange); border-radius: var(--tx-radius); padding: 26px; margin: 28px 0; }
.tx-qr.is-paid { border-color: var(--tx-leaf); }
.tx-qr__title { font-size: 24px; margin: 0 0 18px; }
.tx-qr__grid { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; }
.tx-qr__code { background: #fff; border-radius: 12px; padding: 10px; aspect-ratio: 1; }
.tx-qr__code svg { width: 100%; height: 100%; display: block; }
.tx-qr__info { margin: 0; font: 500 16px/1.5 var(--tx-sans); }
.tx-qr__info div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--tx-line); }
.tx-qr__info dt { color: var(--tx-muted); }
.tx-qr__info dd { margin: 0; text-align: right; }
.tx-copy { cursor: copy; border-bottom: 1px dashed currentColor; }
.tx-copy.is-copied::after { content: " ✓ đã chép"; font-size: 12px; color: var(--tx-leaf); }
.tx-qr__status { font: 700 16px var(--tx-sans); color: var(--tx-orange); margin: 18px 0 6px; }
.tx-qr.is-paid .tx-qr__status { color: var(--tx-leaf); }
.tx-qr.is-paid .tx-qr__code { opacity: .25; }
.tx-qr__note { font: 400 14px/1.5 var(--tx-sans); color: var(--tx-muted); margin: 0; }

/* Tra cứu đơn */
.tx-track { grid-template-columns: 1fr 1fr auto; align-items: end; gap: 16px; background: var(--tx-paper); border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 22px; }
.tx-track p { margin: 0; }
.tx-order { margin-top: 28px; background: #fff; border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 26px; font-family: var(--tx-sans); }
.tx-order__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tx-order__head h2 { margin: 0; font-size: 24px; }
.tx-order__status { font: 700 14px var(--tx-sans); padding: 8px 12px; border-radius: 999px; background: var(--tx-bg); }
.tx-status--processing, .tx-status--completed { background: #DDEFE5; color: var(--tx-leaf); }
.tx-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 22px 0; counter-reset: t; }
.tx-steps li { counter-increment: t; font: 600 13px/1.3 var(--tx-sans); color: var(--tx-muted); border-top: 4px solid var(--tx-line); padding-top: 10px; }
.tx-steps li.is-done { border-color: var(--tx-leaf); color: var(--tx-leaf); }
.tx-steps li.is-current { border-color: var(--tx-orange); color: var(--tx-brown); }
.tx-order__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 18px; }
.tx-order__meta dt { font-size: 13px; color: var(--tx-muted); }
.tx-order__meta dd { margin: 0; font-weight: 700; }
.tx-order__items { width: 100%; border-collapse: collapse; font-size: 15px; }
.tx-order__items th, .tx-order__items td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--tx-line); }
.tx-order__items th + th, .tx-order__items td + td { text-align: right; padding-left: 16px; white-space: nowrap; }

/* ---------- Giỏ hàng trượt ---------- */
.tx-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.tx-drawer.is-open { visibility: visible; }
.tx-drawer__overlay { position: absolute; inset: 0; background: rgba(30, 14, 6, .5); opacity: 0; transition: opacity .2s; }
.tx-drawer.is-open .tx-drawer__overlay { opacity: 1; }
.tx-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--tx-bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; outline: none; }
.tx-drawer.is-open .tx-drawer__panel { transform: none; }
.tx-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--tx-line); }
.tx-drawer__head h2 { margin: 0; font-size: 22px; }
.tx-drawer__freeship { padding: 14px 20px 0; }
.tx-drawer__freeship:empty { display: none; }
.tx-drawer .widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.tx-mini { list-style: none; margin: 0; padding: 0 20px; overflow: auto; flex: 1; }
.tx-mini__item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--tx-line); align-items: start; position: relative; }
.tx-mini__item.is-busy { opacity: .5; pointer-events: none; }
.tx-mini__img img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.tx-mini__name { font: 700 15px/1.3 var(--tx-sans); color: var(--tx-ink); text-decoration: none; display: block; }
.tx-mini .variation { font: 400 13px/1.4 var(--tx-sans); color: var(--tx-muted); margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0 6px; }
.tx-mini .variation dt, .tx-mini .variation dd { margin: 0; float: none; }
.tx-mini .variation dd p { margin: 0; }
.tx-mini__opts { display: block; font: 500 13px/1.4 var(--tx-sans); color: var(--tx-muted); margin-top: 3px; }
.tx-mini__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.tx-mini__price { font: 800 15px var(--tx-sans); color: var(--tx-brown); }
.tx-qty { display: inline-flex; align-items: center; border: 2px solid var(--tx-line); border-radius: 999px; background: #fff; }
.tx-qty button { width: 34px; height: 34px; border: 0; background: none; font: 700 18px var(--tx-sans); color: var(--tx-brown); cursor: pointer; border-radius: 999px; padding: 0; }
.tx-qty button:hover { background: var(--tx-bg); color: var(--tx-orange); }
.tx-qty span { min-width: 28px; text-align: center; font: 700 15px var(--tx-sans); }
.tx-mini__remove { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--tx-muted); cursor: pointer; padding: 2px 4px; }
.tx-mini__remove:hover { color: var(--tx-red); background: none; }
.tx-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 16px 20px 0; margin: 0; font: 600 16px var(--tx-sans); border-top: 1px solid var(--tx-line); }
.tx-drawer .woocommerce-mini-cart__total .amount { font-weight: 800; color: var(--tx-brown); font-size: 20px; }
.tx-drawer .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px 20px; margin: 0; }
.tx-drawer .woocommerce-mini-cart__buttons .button { text-align: center; margin: 0; }
.tx-drawer .woocommerce-mini-cart__buttons .button:not(.checkout) { background: transparent; color: var(--tx-brown); border-color: var(--tx-brown); }
.tx-mini__empty { padding: 40px 20px; text-align: center; font-family: var(--tx-sans); color: var(--tx-muted); }

/* ---------- Footer ---------- */
.tx-footer { background: var(--tx-hero); color: var(--tx-hero-ink); padding: 64px 0 28px; font: 400 15px/1.75 var(--tx-sans); margin-top: 0; }
.tx-footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.tx-footer__title { font: 800 16px var(--tx-sans); color: #F7A55C; margin: 0 0 12px; }
.tx-footer ul { list-style: none; margin: 0; padding: 0; }
.tx-footer a { color: var(--tx-hero-ink); text-decoration: none; opacity: .92; }
.tx-footer a:hover { color: #fff; text-decoration: underline; opacity: 1; }
.tx-footer__brand p { margin-top: 16px; }
.tx-footer__verify { font-size: 14px; }
.tx-footer__verify a { color: #FFD7A8; font-weight: 700; }
.tx-footer__copy { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(251, 233, 204, .25); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.tx-footer__copy p { margin: 0 0 4px; opacity: .85; }
.tx-footer__legal { opacity: 1 !important; }
.tx-footer__bct img { display: block; width: 150px; height: auto; }
.site-footer { display: none; } /* footer cũ của Kadence (nếu còn) */

/* ---------- Bài viết ---------- */
.single-post .entry-content { font-size: 19px; line-height: 1.75; }
.loop-entry .entry-title a { color: var(--tx-ink); }
.loop-entry .entry-title a:hover { color: var(--tx-orange); }
.entry.loop-entry, .entry.single-entry { background: var(--tx-paper); border-radius: var(--tx-radius); box-shadow: none; border: 1px solid var(--tx-line); overflow: hidden; }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1000px) {
  .tx-usp__list { grid-template-columns: 1fr 1fr; }
  .tx-usp__list li:nth-child(2) { border-right: 0; }
  .tx-usp__list li:nth-child(-n+2) { border-bottom: 1px solid var(--tx-line); }
  .tx-guide, .tx-b2b, .tx-pledge { grid-template-columns: 1fr; }
  .tx-steps6 { grid-template-columns: 1fr 1fr; }
  .tx-reviews { grid-template-columns: 1fr; }
  .tx-timeline { grid-template-columns: 1fr 1fr; }
  .wp-block-latest-posts.is-grid.columns-3 { grid-template-columns: 1fr 1fr; }
  .tx-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 781px) {
  .tx-sec, .tx-hero, .tx-cta, .tx-pagehead { padding: 56px 16px; }
  .tx-usp { padding-inline: 16px; }
  .entry-content .alignfull:is(.tx-sec, .tx-hero, .tx-usp, .tx-cta, .tx-pagehead) { padding-left: 16px; padding-right: 16px; }
  .tx-usp + .tx-sec { padding-top: 96px; }
  .tx-hero { padding-top: 40px; }
  .tx-hero__img img { aspect-ratio: 4 / 3; }
  .tx-split { gap: 28px; }
  .tx-stats { grid-template-columns: 1fr; }
  .tx-qr__grid { grid-template-columns: 1fr; }
  .tx-qr__code { max-width: 260px; margin-inline: auto; }
  .tx-track { grid-template-columns: 1fr; }
  .tx-order__meta { grid-template-columns: 1fr 1fr; }
  .tx-form__row { grid-template-columns: 1fr; }
  .tx-wrap { width: calc(100% - 32px); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .tx-usp__list { grid-template-columns: 1fr; }
  .tx-usp__list li { border-right: 0 !important; border-bottom: 1px solid var(--tx-line); }
  .tx-usp__list li:last-child { border-bottom: 0; }
  .tx-steps6, .tx-timeline { grid-template-columns: 1fr; }
  .wp-block-latest-posts.is-grid.columns-3 { grid-template-columns: 1fr; }
  .tx-footer__cols { grid-template-columns: 1fr; }
  .tx-topbar__note { display: none; }
  .tx-topbar__track { padding-left: 0; border-left: 0; }
  .tx-track-btn { display: none !important; }
  .tx-filters__label { min-width: 100%; }
  .tx-filters__price label { flex-wrap: wrap; }
  .tx-filters__price select { width: 100%; }
  .tx-steps { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Thanh "Thêm vào giỏ" dính đáy (điện thoại) ---------- */
.tx-sticky-atc { display: none; }
@media (max-width: 781px) {
  .tx-sticky-atc {
    display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--tx-paper);
    border-top: 1px solid var(--tx-line); box-shadow: 0 -8px 24px rgba(58, 26, 11, .14);
    transform: translateY(110%); transition: transform .25s ease; font-family: var(--tx-sans);
  }
  .tx-sticky-atc.is-visible { transform: none; }
  body.tx-noscroll .tx-sticky-atc { transform: translateY(110%); } /* ẩn khi giỏ trượt đang mở */
  .tx-sticky-atc__img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex: none; background: #F3E4CC; }
  .tx-sticky-atc__info { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
  .tx-sticky-atc__info b { font-size: 14px; color: var(--tx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tx-sticky-atc__price { font-weight: 800; color: var(--tx-brown); font-size: 15px; }
  .tx-sticky-atc__opts { font-size: 12px; color: var(--tx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tx-sticky-atc__btn { flex: none; padding: 12px 18px !important; }
  /* Đẩy nút Zalo/Gọi lên trên thanh */
  body.tx-has-sticky-atc .tx-support { bottom: 72px; transition: bottom .25s ease; }
}

/* ---------- Trắc nghiệm chọn cà phê ---------- */
.tx-quiz { background: var(--tx-paper); border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 28px; margin-top: 24px; font-family: var(--tx-sans); max-width: 820px; }
.tx-sec > .tx-quiz, .wp-block-shortcode > .tx-quiz { margin-left: 0; }
.tx-quiz__progress { height: 6px; background: #F0DFC6; border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.tx-quiz__progress span { display: block; height: 100%; width: 0; background: var(--tx-orange); transition: width .3s ease; }
.tx-quiz__step { font: 700 13px var(--tx-sans); color: var(--tx-orange); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.tx-quiz__q { font-size: 24px; margin: 0 0 18px; }
.tx-quiz__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tx-quiz__opt { display: flex; align-items: center; gap: 12px; text-align: left; font: 700 16px/1.3 var(--tx-sans); color: var(--tx-ink); background: #fff; border: 2px solid var(--tx-line); border-radius: 14px; padding: 16px 18px; cursor: pointer; transition: border-color .15s, transform .15s; }
.tx-quiz__opt span { font-size: 24px; }
.tx-quiz__opt:hover, .tx-quiz__opt:focus-visible { border-color: var(--tx-orange); transform: translateY(-2px); background: #fff; color: var(--tx-ink); }
.tx-quiz__back { margin-top: 18px; background: none; border: 0; padding: 0; font: 700 14px var(--tx-sans); color: var(--tx-muted); cursor: pointer; }
.tx-quiz__back:hover { color: var(--tx-orange); background: none; }
.tx-quiz__result { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.tx-quiz__result img { width: 160px; height: 160px; object-fit: contain; border-radius: 12px; background: #F3E4CC; }
.tx-quiz__notes { color: var(--tx-muted); margin: -8px 0 10px; }
.tx-quiz__tip { background: #fff; border-left: 4px solid var(--tx-orange); border-radius: 6px; padding: 10px 14px; margin: 0 0 12px; font-size: 15px; }
.tx-quiz__price { font: 800 20px var(--tx-sans); color: var(--tx-brown); margin: 0 0 14px; }
.tx-quiz__alt { margin: 18px 0 0; font-size: 15px; color: var(--tx-muted); }
.tx-quiz-hint { margin: 0 0 18px; font: 600 15px var(--tx-sans); }
.tx-quiz-hint a { color: var(--tx-orange); }
@media (max-width: 560px) {
  .tx-quiz { padding: 20px; }
  .tx-quiz__q { font-size: 20px; }
  .tx-quiz__result { grid-template-columns: 1fr; }
  .tx-quiz__result img { width: 120px; height: 120px; }
}

/* Nhãn "Đã mua hàng" trong đánh giá */
.woocommerce-review__verified { font: 700 12px/1 var(--tx-sans); font-style: normal; color: var(--tx-leaf); background: #DDEFE5; border-radius: 999px; padding: 4px 8px; }

/* Ẩn triệt để title bên trong SVG của nút để không bị lộ chữ ẩn ContinueLoadingDone */
svg title,
.kadence-svg-iconset title {
  display: none !important;
}
