/* =========================================================================
   Theme Inox TH&A: dựng lại giao diện inoxtha.com (WordPress Woodmart cũ).
   base.css (theme default) lo phần nền: biểu mẫu, popup, phân trang, prose.
   ========================================================================= */
:root {
  --primary: #1e73be;          /* tiêu đề, liên kết (xanh) */
  --accent: #dd9933;           /* vàng: menu, nhãn, nút */
  --dark: #2a2a2a;             /* nền tối trang chủ */
  --bg-alt: #f5f7fa;           /* nền phụ: hộp, mục lục, trích dẫn */
  --tha-block: #1c3d59;        /* nền khối danh mục trang chủ */
  --text: #777;
  --gold: #e9b246;
  --sky: #169dcc;
  --title-blue: #3077c9;
  --radius: 0px;
  --container: 1222px;
  --heading-color: var(--title-blue);
  --font-nav: 'Open Sans', 'Roboto', Arial, sans-serif;
}
body { font-size: 14px; line-height: 1.7; color: var(--text); background: #fff; }
h1, h2, h3, h4 { font-weight: 600; }
.container { max-width: calc(var(--container) + 40px); }

/* --------------------------------------------------------------- header */
.tha-header { position: relative; z-index: 120; }
.tha-head-main { background: #111 url('../img/bghd2.jpg') repeat; border-bottom: 3px solid #000; }
.tha-head-inner { display: flex; align-items: center; gap: 24px; min-height: 75px; }
.tha-logo img { height: 60px; width: auto; }
.tha-head-title { flex: 1; text-align: center; color: var(--gold); font-weight: 700; font-size: 17px; letter-spacing: .2px; font-family: 'Roboto', sans-serif; text-transform: uppercase; }
.tha-hotlines { display: flex; gap: 20px; }
.tha-hotlines img { height: 57px; width: auto; }
.tha-hotline-txt { display: flex; align-items: center; gap: 8px; color: var(--gold); border: 2px solid var(--gold); border-radius: 30px; padding: 4px 16px; }
.tha-hotline-txt small { display: block; font-size: 11px; color: #ddd; }
.tha-hotline-txt b { font-size: 18px; }
.tha-burger, .tha-search-m { display: none; background: none; border: 0; color: #fff; cursor: pointer; align-items: center; gap: 6px; font-weight: 700; text-transform: uppercase; font-size: 13px; }

.tha-nav-bar { background: #1890cf url('../img/bgmn-1.jpg') repeat-x; border-bottom: 3px solid #000; }
.tha-nav-inner { display: flex; align-items: center; min-height: 50px; }
.tha-nav { flex: 1; }
.tha-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.tha-nav > ul > li { position: relative; }
.tha-nav > ul > li + li::before { content: ''; position: absolute; left: 0; top: 50%; height: 16px; margin-top: -8px; border-left: 1px solid rgba(255,255,255,.35); }
.tha-nav > ul > li > a {
  display: flex; align-items: center; gap: 3px; padding: 0 15px; line-height: 50px; color: var(--gold); font-family: var(--font-nav);
  font-size: 14px; font-weight: 800; text-transform: uppercase; text-shadow: 0 1px 1px rgba(0,0,0,.6);
}
.tha-nav > ul > li:first-child > a { padding-left: 0; }
.tha-nav > ul > li > a:hover, .tha-nav > ul > li.active > a { color: #fff; }
.tha-nav .sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 300px; background: #fff; list-style: none; margin: 0; padding: 10px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; z-index: 50;
}
.tha-nav li:hover > .sub-menu, .tha-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tha-nav .sub-menu a { display: block; padding: 8px 20px; color: #555; font-size: 13px; }
.tha-nav .sub-menu a:hover, .tha-nav .sub-menu li.active a { color: var(--accent); background: #f7f7f7; }
.tha-nav-close { display: none; }
.tha-search-btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.tha-header .search-panel { top: 100%; }

/* --------------------------------------------------------------- home */
.tha-home { background: var(--dark); color: #ddd; padding-bottom: 50px; }
.tha-slider { position: relative; margin: 0 10px; overflow: hidden; }
.tha-slide { display: none; }
.tha-slide.active { display: block; animation: tha-fade .6s; }
.tha-slide img { width: 100%; height: auto; }
@keyframes tha-fade { from { opacity: .3; } to { opacity: 1; } }
.tha-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; cursor: pointer; padding: 10px; z-index: 2; }
.tha-arrow.prev { left: 10px; } .tha-arrow.next { right: 10px; }
.tha-dots { position: absolute; left: 0; right: 0; bottom: -26px; display: flex; justify-content: center; gap: 10px; }
.tha-slider { padding-bottom: 30px; }
.tha-dots { bottom: 8px; }
.tha-dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; background: #555; cursor: pointer; padding: 0; }
.tha-dots button.active { background: #ccc; }

.tha-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 40px; padding-top: 30px; padding-bottom: 30px; max-width: 1180px; }
.tha-tile { text-align: center; display: block; }
.tha-tile .img { display: block; aspect-ratio: 1; border: 4px solid var(--sky); border-radius: 18px; overflow: hidden; margin: 0 auto 12px; max-width: 154px; }
.tha-tile .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tha-tile:hover .img img { transform: scale(1.08); }
.tha-tile .ttl { color: var(--gold); font-weight: 600; font-size: 14px; text-transform: uppercase; line-height: 1.6; display: block; }

.tha-features { border-top: 1px solid #12a2c7; border-bottom: 1px solid #12a2c7; padding: 14px 0; }
.tha-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.tha-feature { display: flex; gap: 14px; padding: 0 14px; border-right: 2px dotted #bbb; }
.tha-feature .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--sky); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.tha-feature h3 { color: var(--sky); font-size: 14px; text-transform: uppercase; margin: 0 0 4px; font-family: 'Roboto', sans-serif; font-weight: 500; }
.tha-feature p { font-size: 14px; margin: 0; color: #ccc; line-height: 1.6; }

.tha-intro { padding: 26px 0 30px; }
.tha-intro-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; }
.tha-intro-title { font-size: 14px; color: #fff; font-family: 'Roboto', sans-serif; font-weight: 700; margin-bottom: 20px; }
.tha-intro-title span { color: var(--gold); }
.tha-intro-text p { color: #fff; font-size: 14px; line-height: 1.65; }
.tha-intro-btns { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.tha-btn-hot, .tha-btn-zalo, .tha-btn-quote {
  display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; font-size: 15px; padding: 12px 22px; border-radius: 30px; min-width: 200px; justify-content: center;
}
.tha-btn-hot { background: #f05a0e; }
.tha-btn-zalo { background: #0068ff; }
.tha-btn-quote { background: var(--accent); }
.tha-btn-hot:hover, .tha-btn-zalo:hover, .tha-btn-quote:hover { color: #fff; filter: brightness(1.08); }
.tha-btn-zalo .z { width: 28px; height: 28px; border-radius: 6px; background: #fff; color: #0068ff; font-weight: 800; display: grid; place-items: center; font-size: 17px; }

.tha-blocks { background: var(--tha-block); }
.tha-block { padding: 10px 0; border-bottom: 1px solid #0e283e; }
.tha-block-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: start; max-width: 1180px; }
.tha-block.is-right .tha-block-big { order: 2; }
.tha-block-big img { width: 100%; height: auto; }
.tha-block-body { text-align: center; padding-top: 6px; }
.tha-block-body h2 { color: #f2b707; font-family: 'Times New Roman', Georgia, serif; font-size: 28px; font-weight: 700; margin-bottom: 26px; }
.tha-block-body p { color: #cfe8f7; font-size: 14px; }
.tha-block-items { display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 22px 0; }
.tha-block-items a { border: 3px solid #e2e2e2; border-radius: 6px; overflow: hidden; width: 169px; }
.tha-block-items img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.tha-btn-more { display: inline-block; background: #fff; color: #4cb2e0; font-size: 13px; padding: 8px 20px; width: 232px; border: 1px solid #ddd; }
.tha-btn-more:hover { color: var(--accent); }

.tha-banners { background: var(--tha-block); padding: 10px 0 25px; }
.tha-banners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tha-banners-grid img { width: 100%; height: auto; transition: transform .3s; }
.tha-banners-grid a:hover img { transform: translateX(4px); }

.tha-sec { padding-top: 26px; }
.tha-sec-title { font-family: 'Times New Roman', Georgia, serif; color: #fff; font-size: 22px; text-transform: uppercase; font-weight: 400; margin-bottom: 22px; }
.tha-projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.tha-proj { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: linear-gradient(180deg, #fff 0, #888 50%, #222 100%); }
.tha-home .tha-proj { background: linear-gradient(180deg, #2a2a2a 0, #1a1a1a 100%); }
.tha-proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tha-proj:hover img { transform: scale(1.06); }
.tha-proj::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.tha-proj .ttl { position: absolute; left: 10px; right: 10px; bottom: 26px; z-index: 1; color: #fff; text-align: center; font-family: 'Poppins', sans-serif; font-size: 20px; line-height: 1.4; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.tha-center { text-align: center; margin-top: 26px; }
.tha-btn-all { display: inline-block; background: #fff; color: #333; font-size: 12px; font-weight: 600; padding: 9px 18px; }

.tha-news-row { position: relative; }
.tha-news-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 90px) / 4); gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tha-news-track::-webkit-scrollbar { display: none; }
.tha-news-track > * { scroll-snap-align: start; }
.tha-car-btn { position: absolute; top: 120px; width: 40px; height: 40px; background: rgba(0,0,0,.5); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; }
.tha-car-btn.prev { left: -10px; } .tha-car-btn.next { right: -10px; }

.tha-post { text-align: center; }
.tha-post .img { display: block; aspect-ratio: 1; overflow: hidden; }
.tha-post .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tha-post:hover .img img { transform: scale(1.05); }
.tha-cat-label { display: inline-block; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 10px; margin-top: -10px; position: relative; }
.tha-cat-label:hover { color: #fff; }
.tha-post h3 { font-size: 16px; font-weight: 400; margin: 8px 0 6px; line-height: 1.4; }
.tha-post h3 a { color: var(--primary); }
.tha-post h3 a:hover { color: var(--accent); }
.tha-post .meta { font-size: 12px; color: #999; display: flex; gap: 4px; align-items: center; justify-content: center; }
.tha-post p { font-size: 13px; color: #888; margin-top: 8px; }
.tha-home .tha-post p { color: #aaa; }

.tha-testis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tha-testi { margin: 0; border: 1px solid #bbb; border-radius: 10px; padding: 14px 10px; display: flex; flex-direction: column; justify-content: space-between; }
.tha-testi blockquote { margin: 0 0 14px; text-align: center; font-size: 13px; color: #aaa; line-height: 1.6; }
.tha-testi figcaption { display: flex; align-items: center; gap: 10px; }
.tha-testi img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tha-testi b { display: block; color: #e9b246; font-size: 14px; }
.tha-testi small { color: #777; font-size: 12px; }

.tha-partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tha-partner { background: #fff; border-radius: 4px; display: grid; place-items: center; padding: 4px; }
.tha-partner img { width: 100%; height: 72px; object-fit: contain; }

/* --------------------------------------------------------------- inner pages */
.tha-page { padding-top: 30px; padding-bottom: 60px; }
.tha-crumbs { font-size: 12px; color: #999; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tha-crumbs a { color: #888; }
.tha-crumbs b { color: #333; font-weight: 500; }
.tha-page-title { color: var(--title-blue); font-size: 22px; text-transform: uppercase; margin-bottom: 18px; }
.tha-cat-desc { font-size: 13px; margin-bottom: 14px; }
.tha-cat-desc p { margin-bottom: .6em; }
.tha-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tha-cat-chips a { border: 1px solid #ddd; padding: 4px 12px; font-size: 12px; color: #555; }
.tha-cat-chips a:hover, .tha-cat-chips a.on { border-color: var(--accent); color: var(--accent); }
.tha-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 20px; font-size: 13px; color: #333; margin-bottom: 18px; }
.tha-sort select { border: 0; border-bottom: 2px solid #eee; padding: 4px 22px 4px 6px; font-size: 13px; background: #fff; }
.tha-prod-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.tha-prod { text-align: center; }
.tha-prod .img { display: block; aspect-ratio: 1; overflow: hidden; background: #f3f3f3; }
.tha-prod .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tha-prod:hover .img img { transform: scale(1.06); }
.tha-prod h3 { font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 400; line-height: 1.5; margin: 10px 4px 0; }
.tha-prod h3 a { color: var(--primary); }
.tha-prod h3 a:hover { color: var(--accent); }
.tha-empty { padding: 40px 0; text-align: center; }
.pagination { justify-content: center; margin-top: 30px; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

.tha-product { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.tha-gallery .main { display: block; }
.tha-gallery .main img { width: 100%; height: auto; }
.tha-gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tha-gallery .thumbs button { border: 2px solid transparent; padding: 0; width: 80px; cursor: pointer; background: none; }
.tha-gallery .thumbs button.active { border-color: var(--accent); }
.tha-product-info h1 { font-size: 34px; font-weight: 400; color: var(--primary); font-family: 'Poppins', sans-serif; margin-bottom: 14px; line-height: 1.3; }
.tha-sku { font-size: 13px; margin-bottom: 10px; }
.tha-specs { list-style: none; padding: 0; margin: 0 0 20px; font-size: 13px; color: #777; }
.tha-specs li { margin-bottom: 2px; }
.tha-product-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tha-product-btns > a { min-width: 0; font-size: 14px; padding: 9px 18px; }
.tha-product-desc { margin-top: 40px; border-top: 1px solid #eee; padding-top: 30px; }
.tha-related-title { color: var(--title-blue); font-size: 20px; text-transform: uppercase; margin: 50px 0 20px; padding-bottom: 10px; position: relative; }
.tha-related-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--accent); }

.tha-post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 20px; }
.tha-post-grid.is-3 { grid-template-columns: repeat(3, 1fr); }
.tha-article { max-width: 1222px; margin: 0 auto; }
.tha-article-head { text-align: center; margin-bottom: 20px; }
.tha-article-head .tha-cat-label { margin-top: 0; }
.tha-article-head h1 { font-size: 30px; font-weight: 400; color: var(--primary); margin: 12px 0 6px; font-family: 'Poppins', sans-serif; }
.tha-article-head .meta { font-size: 12px; color: #999; display: inline-flex; gap: 4px; align-items: center; }
.tha-prose { color: #555; font-size: 14px; }
.tha-prose img { border-radius: 0; margin: 1em auto; }
.tha-prose h2 { color: var(--title-blue); font-size: 20px; text-transform: uppercase; }
.tha-prose h3 { color: var(--sky); font-size: 17px; border-bottom: 1px solid #ddd; padding: 8px 0; margin-top: 1em; }
.wp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 20px 0; }
.wp-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; }
.tha-about h2 { color: var(--title-blue); font-size: 20px; text-transform: uppercase; }
.tha-about-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 10px 0 20px; }
.tha-projects.is-light .tha-proj .ttl { font-size: 18px; }

.tha-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tha-contact-title { color: var(--title-blue); font-size: 22px; font-weight: 500; }
.tha-map iframe { width: 100%; height: 300px; border: 0; display: block; }
.tha-contact-info { font-size: 13px; padding-left: 18px; margin-top: 16px; }
.tha-contact-info li { margin-bottom: 8px; }
.tha-contact-info .co { color: var(--primary); font-weight: 600; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .tha-head-title { display: none; }
  .tha-hotlines { margin-left: auto; }
  .tha-tiles { grid-template-columns: repeat(4, 1fr); gap: 10px 20px; }
  .tha-features-grid { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .tha-testis, .tha-partners { grid-template-columns: repeat(3, 1fr); }
  .tha-prod-grid { grid-template-columns: repeat(4, 1fr); }
  .tha-news-track { grid-auto-columns: calc((100% - 60px) / 3); }
}
@media (max-width: 1024px) {
  .tha-hotlines { display: none; }
  .tha-head-inner { justify-content: space-between; min-height: 60px; gap: 10px; }
  .tha-logo img { height: 44px; }
  .tha-burger, .tha-search-m { display: inline-flex; }
  .tha-nav-bar { min-height: 0; border: 0; background: none; }
  .tha-nav-inner { min-height: 0; }
  .tha-search-btn { display: none; }
  .tha-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 200; padding: 56px 0 24px; overflow-y: auto;
    transform: translateX(-100%); transition: transform .3s;
  }
  .nav-open .tha-nav { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 150; opacity: 0; visibility: hidden; transition: all .3s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .tha-nav-close { display: grid; position: absolute; top: 12px; right: 12px; background: none; border: 0; cursor: pointer; color: #333; }
  .tha-nav > ul { flex-direction: column; align-items: stretch; }
  .tha-nav > ul > li + li::before { display: none; }
  .tha-nav > ul > li > a, .tha-nav > ul > li:first-child > a { color: #333; text-shadow: none; line-height: 1.4; padding: 13px 20px; border-bottom: 1px solid #eee; justify-content: space-between; }
  .tha-nav > ul > li.active > a { color: var(--accent); }
  .tha-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 0 0 0 14px; min-width: 0; }
  .tha-nav li.open > .sub-menu { display: block; }
  .tha-product { grid-template-columns: 1fr; }
  .tha-post-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .tha-slider { margin: 0; }
  .tha-arrow { display: none; }
  .tha-tiles { grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
  .tha-tile .ttl { font-size: 12px; }
  .tha-features-grid { grid-template-columns: 1fr; }
  .tha-feature { border-right: 0; }
  .tha-intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .tha-block-grid { grid-template-columns: 1fr; gap: 10px; }
  .tha-block.is-right .tha-block-big { order: 0; }
  .tha-block-items { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .tha-block-items a { width: calc(33.33% - 8px); }
  .tha-banners-grid, .tha-contact { grid-template-columns: 1fr; }
  .tha-projects { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tha-proj .ttl { font-size: 15px; bottom: 12px; }
  .tha-news-track { grid-auto-columns: 80%; gap: 16px; }
  .tha-car-btn { display: none; }
  .tha-testis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tha-testi figcaption { flex-direction: column; text-align: center; }
  .tha-partners { grid-template-columns: repeat(2, 1fr); }
  .tha-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tha-post-grid, .tha-post-grid.is-3 { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .tha-product-info h1 { font-size: 24px; }
  .tha-article-head h1 { font-size: 22px; }
  .wp-gallery { grid-template-columns: 1fr 1fr; }
}

/* mục lục bài viết: nền sáng như nội dung */
.tha-page .toc { background: #f7f7f7; border: 1px solid #e5e5e5; color: #555; }
.tha-page .toc a { color: var(--primary); }

/* =====================================================================
   Bố cục có thanh bên (trang chi tiết)
   ===================================================================== */
.tha-with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.tha-main { min-width: 0; }
.tha-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 16px; }
.tha-wg { border: 1px solid #e6e6e6; background: #fff; padding: 18px; }
.tha-wg-title { font-size: 14px; text-transform: uppercase; color: #222; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #eee; position: relative; font-family: var(--font-heading); }
.tha-wg-title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 36px; height: 2px; background: var(--accent); }
.tha-wg-cats { list-style: none; margin: 0; padding: 0; }
.tha-wg-cats a { display: flex; align-items: center; gap: 6px; padding: 7px 0; color: #555; font-size: 13.5px; border-bottom: 1px dashed #eee; }
.tha-wg-cats li:last-child a { border-bottom: 0; }
.tha-wg-cats a span { flex: 1; }
.tha-wg-cats small { color: #999; font-size: 12px; background: #f3f3f3; border-radius: 10px; padding: 0 8px; }
.tha-wg-cats a:hover, .tha-wg-cats li.on a { color: var(--accent); }
.tha-wg-cats svg { color: var(--accent); }
.tha-wg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tha-wg-list a { display: flex; gap: 12px; align-items: center; color: #333; font-size: 13.5px; line-height: 1.45; }
.tha-wg-list img { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; background: #f3f3f3; }
.tha-wg-list small { display: block; color: #999; font-size: 12px; margin-top: 3px; }
.tha-wg-list a:hover { color: var(--primary); }
.tha-wg-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--primary); }
.tha-wg-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tha-wg-projects a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.tha-wg-projects img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tha-wg-projects a:hover img { transform: scale(1.06); }
.tha-wg-projects span { position: absolute; inset: auto 0 0; padding: 18px 6px 6px; font-size: 11.5px; line-height: 1.3; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.tha-wg-quote { background: #111 url('../img/bghd2.jpg'); border: 0; color: #ddd; }
.tha-wg-quote-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; color: var(--gold); }
.tha-wg-quote-head b { display: block; color: var(--gold); font-size: 16px; text-transform: uppercase; line-height: 1.3; }
.tha-wg-quote-head span { display: block; color: #bbb; font-size: 13px; margin-top: 4px; line-height: 1.5; }
.tha-wg-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; margin-top: 10px; font-weight: 600; font-size: 14px; border-radius: 3px; transition: filter .2s, background .2s; }
.tha-wg-btn.is-gold { background: linear-gradient(180deg, #f3c35a, #d39a2d); color: #1a1a1a; }
.tha-wg-btn.is-gold:hover { color: #000; }
.tha-wg-btn.is-line { border: 1px solid rgba(233,178,70,.6); color: var(--gold); }
.tha-wg-btn.is-line:hover { background: rgba(233,178,70,.12); color: var(--gold); }
.tha-wg-btn.is-zalo { background: #0068ff; color: #fff; }
.tha-wg-btn.is-zalo:hover { color: #fff; }
.tha-wg-btn:hover { filter: brightness(1.06); }
.tha-wg-btn .z, .tha-btn-zalo .z { width: 22px; height: 22px; border-radius: 5px; background: #fff; color: #0068ff; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.tha-wg-contact ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.tha-wg-contact li { display: flex; gap: 8px; margin-bottom: 8px; }
.tha-wg-contact svg { color: var(--accent); margin-top: 3px; }

/* trang sản phẩm khi có thanh bên */
.tha-with-side .tha-product { grid-template-columns: 1fr 1fr; gap: 26px; }
.tha-with-side .tha-product-info h1 { font-size: 26px; }
.tha-sku { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #888; }
.tha-price-contact { margin: 4px 0 14px; padding: 10px 14px; background: #fbf6ec; border-left: 3px solid var(--accent); font-size: 13.5px; color: #555; }
.tha-price-contact b { color: #c2410c; }
.tha-specs li { padding: 6px 0; border-bottom: 1px dashed #eee; }
.tha-specs b { color: #333; font-weight: 600; margin-right: 4px; }
.tha-prod-grid.is-4 { grid-template-columns: repeat(4, 1fr); }
.tha-projects.is-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tha-with-side .tha-article-head { text-align: left; }
.tha-with-side .tha-article-head h1 { font-size: 28px; }
.tha-article-head .meta span { margin: 0 4px; }

/* hộp kêu gọi cuối bài */
.tha-article-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 30px 0 10px; padding: 20px 24px; background: #111 url('../img/bghd2.jpg'); color: #ccc; }
.tha-article-cta b { display: block; color: var(--gold); font-size: 17px; }
.tha-article-cta span { font-size: 13.5px; }

/* trích dẫn + mục lục trong bài: nền sáng, chữ rõ */
.tha-prose blockquote { margin: 1.4em 0; padding: 14px 20px; background: #fbf6ec; border-left: 4px solid var(--accent); border-radius: 0; color: #444; font-style: normal; font-size: 15px; }
.tha-prose blockquote p:last-child { margin-bottom: 0; }
.tha-prose figure { margin: 1.2em 0; }
.tha-prose h2 { margin-top: 1.6em; padding-left: 12px; border-left: 4px solid var(--accent); }
.tha-page .toc { background: #f8f9fb; border: 1px solid #e6e8ec; border-left: 4px solid var(--primary); border-radius: 0; color: #444; padding: 16px 20px; margin: 0 0 24px; }
.tha-page .toc summary, .tha-page .toc .toc-title { color: #222; font-weight: 700; }
.tha-page .toc a { color: var(--primary); }
.tha-page .toc a:hover { color: var(--accent); }

/* =====================================================================
   Chân trang
   ===================================================================== */
.tha-footer { background: #1d1d1d; color: #b5b5b5; font-size: 13.5px; line-height: 1.65; }
.tha-foot-cta { background: #111 url('../img/bghd2.jpg'); border-top: 3px solid var(--accent); border-bottom: 1px solid #333; }
.tha-foot-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.tha-foot-cta b { display: block; color: var(--gold); font-size: 19px; text-transform: uppercase; font-family: var(--font-heading); }
.tha-foot-cta span { color: #bbb; }
.tha-foot-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.tha-btn-outline { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gold); color: var(--gold); padding: 10px 20px; border-radius: 30px; font-weight: 600; }
.tha-btn-outline:hover { background: var(--gold); color: #111; }
.tha-foot-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1.3fr; gap: 40px; padding-top: 46px; padding-bottom: 36px; }
.tha-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .3px; margin: 6px 0 18px; padding-bottom: 12px; position: relative; font-family: var(--font-heading); }
.tha-footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--accent); }
.tha-foot-logo img { height: 52px; width: auto; margin-bottom: 14px; }
.tha-foot-brand p { margin: 0 0 16px; }
.tha-foot-social { display: flex; gap: 10px; }
.tha-foot-social a { width: 36px; height: 36px; border-radius: 50%; background: #2c2c2c; color: #ddd; display: grid; place-items: center; transition: background .2s, color .2s; }
.tha-foot-social a:hover { background: var(--accent); color: #111; }
.tha-footer ul { list-style: none; margin: 0; padding: 0; }
.tha-foot-links li { margin-bottom: 9px; }
.tha-foot-links a { color: #b5b5b5; position: relative; padding-left: 14px; }
.tha-foot-links a::before { content: ''; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: rotate(45deg); }
.tha-footer a:hover { color: var(--gold); }
.tha-foot-contact li { display: flex; gap: 10px; margin-bottom: 12px; }
.tha-foot-contact svg { color: var(--accent); margin-top: 3px; }
.tha-foot-contact b { color: #fff; font-weight: 600; }
.tha-foot-contact a { color: #ddd; }
.tha-foot-bottom { border-top: 1px solid #2e2e2e; background: #161616; padding: 16px 0; font-size: 12.5px; color: #888; }
.tha-foot-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tha-foot-bottom-links { display: flex; gap: 18px; }
.tha-foot-bottom a { color: #999; }

/* =====================================================================
   Cụm nút liên hệ nổi (bên phải) + nút lên đầu trang
   ===================================================================== */
.tha-fab { position: fixed; right: 18px; bottom: 84px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.tha-fab-btn { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px -4px rgba(0,0,0,.35); transition: transform .2s; }
.tha-fab-btn:hover { transform: scale(1.08); color: #fff; }
.tha-fab-btn.is-msg { background: linear-gradient(45deg, #0866ff, #a033ff 70%, #ff5c87); }
.tha-fab-btn.is-zalo { background: #0068ff; }
.tha-fab-btn.is-zalo .zl { font-weight: 800; font-size: 13px; letter-spacing: -.2px; }
.tha-fab-btn.is-call { background: #f05a0e; }
.tha-fab-btn.is-call::before, .tha-fab-btn.is-call::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #f05a0e; animation: tha-pulse 1.8s infinite; }
.tha-fab-btn.is-call::after { animation-delay: .9s; }
.tha-fab-btn.is-call svg { animation: tha-shake 1.8s infinite; }
.tha-fab-btn .tip { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #fff; color: #222; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.15); opacity: 0; pointer-events: none; transition: opacity .2s; }
.tha-fab-btn:hover .tip { opacity: 1; }
@keyframes tha-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
@keyframes tha-shake { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
.back-to-top { right: 21px; bottom: 22px; width: 46px; height: 46px; background: #333; border: 1px solid #555; }
.back-to-top:hover { background: var(--accent); }

@media (max-width: 1100px) {
  .tha-with-side { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
  .tha-foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 900px) {
  .tha-with-side { grid-template-columns: 1fr; }
  .tha-side { position: static; }
  .tha-with-side .tha-product { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .tha-foot-grid { grid-template-columns: 1.3fr 1fr; gap: 22px 18px; padding-top: 30px; }
  .tha-foot-brand, .tha-foot-grid > div:last-child { grid-column: 1 / -1; }
  .tha-foot-links a { font-size: 13px; }
  .tha-foot-cta-inner { flex-direction: column; align-items: flex-start; }
  .tha-prod-grid.is-4, .tha-projects.is-3 { grid-template-columns: 1fr 1fr; }
  .tha-fab { right: 12px; bottom: 74px; gap: 10px; }
  .tha-fab-btn { width: 46px; height: 46px; }
  .tha-fab-btn .tip { display: none; }
  .back-to-top { right: 15px; bottom: 16px; width: 40px; height: 40px; }
}

.tha-foot-bottom .tha-credit { color: var(--gold); }
.tha-foot-bottom .tha-credit:hover { color: #fff; }
