/* =========================================================
   TayHoStar — Main Stylesheet v1.0.0
   ========================================================= */
:root {
  --red:       #00aeeb;
  --red-dark:  #008fc2;
  --red-deep:  #007ca8;
  --black:     #0e0e10;
  --ink:       #1a1a1c;
  --gray-900:  #2a2a2e;
  --gray-700:  #4a4a52;
  --gray-500:  #8a8a90;
  --gray-300:  #d8d8de;
  --gray-200:  #ececf0;
  --gray-100:  #f4f4f7;
  --white:     #ffffff;
  --shadow-sm: 0 2px 8px rgba(14,14,16,.06);
  --shadow-md: 0 8px 24px rgba(14,14,16,.08);
  --shadow-lg: 0 20px 50px rgba(14,14,16,.12);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink);
  background: var(--gray-100);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.aligncenter,
img.aligncenter,
figure.aligncenter,
.wp-caption.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
figure.aligncenter,
.wp-caption.aligncenter { text-align: center; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Layout ── */
.th-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Highlighted text in titles ── */
.th-hl { color: #ff7a3d; }

/* ═══════════════════════════════════
   TOP BAR
═══════════════════════════════════ */
.th-topbar {
  background: var(--red);
  color: var(--white);
  font-size: 12.5px;
  padding: 8px 0;
}
.th-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.th-topbar__right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.th-topbar__right i { font-size: 11px; margin-right: 4px; }
.th-topbar__right a { color: #fff; opacity: .9; transition: opacity .2s; }
.th-topbar__right a:hover { opacity: 1; }
.th-lang-switch a {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  color: rgba(255,255,255,.7);
  transition: all .2s;
}
.th-lang-switch a.active,
.th-lang-switch a:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* ═══════════════════════════════════
   HEADER
═══════════════════════════════════ */
.th-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.th-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}

/* Logo */
.th-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .5px;
}
.th-logo__mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  clip-path: polygon(50% 0,100% 38%,82% 100%,18% 100%,0 38%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
}
.th-logo__mark::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: white;
  clip-path: polygon(50% 0,100% 38%,82% 100%,18% 100%,0 38%);
}
.th-logo span { color: var(--red); }
.th-logo__img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}
.th-header .th-logo__img { height: 72px; max-width: 170px; }
.th-footer .th-logo__img--footer { height: 64px; max-width: 150px; object-fit: contain; }

/* Nav */
.th-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
/* Direct <a> children */
.th-nav > a {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 8px 0;
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}
.th-nav > a:hover,
.th-nav > a.active { color: var(--red); }
.th-nav > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .3s;
}
.th-nav > a:hover::after,
.th-nav > a.active::after { width: 100%; }

/* ── Dropdown wrapper — flex item like sibling <a> tags ── */
.th-nav__item--has-dropdown {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 8px 0;
  white-space: nowrap;
  cursor: pointer;
}
.th-nav__item--has-dropdown:hover { color: var(--red); }
.th-nav__item--has-dropdown::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .3s;
}
.th-nav__item--has-dropdown:hover::after { width: 100%; }
/* Toggle link inherits wrapper styles */
.th-nav__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

/* ── Dropdown panel ── */
.th-nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  min-width: 220px;
  padding: 8px 0;
  z-index: 300;
  animation: th-dd-in .18s ease forwards;
}
/* Bridge: lấp kín khoảng trống 8px giữa toggle và panel */
.th-nav__dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
@keyframes th-dd-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.th-nav__item--has-dropdown:hover .th-nav__dropdown,
.th-nav__dropdown:hover {
  display: block;
}
.th-nav__dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.th-nav__dropdown a::after { display: none; }
.th-nav__dropdown a:hover { background: var(--gray-100); color: var(--red); }
.th-nav__dropdown a i { font-size: 11px; color: var(--red); width: 16px; flex-shrink: 0; }
.th-nav__dropdown-all {
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 4px;
  font-weight: 700 !important;
}

/* ── Mega menu ── */
.th-nav__item--mega { position: static !important; }
.th-nav__mega {
  display: none;
  position: fixed;
  top: var(--header-h, 80px);
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 2px solid var(--red);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  z-index: 300;
  padding: 28px 0;
}
.th-nav__item--mega:hover .th-nav__mega,
.th-nav__mega:hover { display: flex; justify-content: center; gap: 0; }
.th-nav__mega-col {
  flex: 1;
  max-width: 230px;
  padding: 0 20px;
  border-right: 1px solid var(--gray-100);
}
.th-nav__mega-col:last-child { border-right: none; }
.th-nav__mega-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red) !important;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}
.th-nav__mega-head i { font-size: 13px; color: var(--red); }
.th-nav__mega-head::after { display: none !important; }
.th-nav__mega-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: color .15s;
  border-radius: 4px;
}
.th-nav__mega-item::after { display: none !important; }
.th-nav__mega-item:hover { color: var(--red) !important; }
.th-nav__mega-item i { font-size: 10px; color: var(--red); flex-shrink: 0; }

/* Product tabs */
.th-product-tabs__nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.th-product-tab {
  padding: 8px 20px;
  border: 1.5px solid var(--gray-300);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.th-product-tab:hover { border-color: var(--red); color: var(--red); }
.th-product-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Hotline button */
.th-hotline {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  color: white !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  transition: background .2s;
  white-space: nowrap;
}
.th-hotline:hover { background: var(--red-dark); }
.th-hotline i { font-size: 18px; }
.th-hotline__text { display: flex; flex-direction: column; line-height: 1.2; }
.th-hotline__label { font-size: 11px; font-weight: 500; opacity: .9; }
.th-hotline__num { font-size: 15px; }

/* Mobile hamburger */
.th-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.th-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s;
}

/* ═══════════════════════════════════
   HERO SLIDER
═══════════════════════════════════ */
.th-hero {
  position: relative;
  background: var(--black);
  color: white;
  overflow: hidden;
  min-height: clamp(480px, 68vh, 720px);
}
.th-hero__track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.th-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
  will-change: opacity;
}
.th-hero__slide.active {
  opacity: 1;
  pointer-events: auto;
}
.th-hero__slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ── Full-bleed background image ── */
.th-hero__slide-bgimg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.th-hero__slide-bgimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}

/* ── Dark gradient overlay (for image slides) ── */
.th-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(6,6,10,.80) 0%, rgba(6,6,10,.52) 42%, rgba(6,6,10,.18) 72%, rgba(6,6,10,.08) 100%),
    linear-gradient(to top, rgba(6,6,10,.60) 0%, transparent 50%);
}

/* ── Fallback gradient bg (no-image slides) ── */
.th-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 16% 16%, rgba(255,255,255,.26), transparent 26%),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.18), transparent 22%),
    radial-gradient(circle at 72% 52%, rgba(255,140,40,.40) 0%, transparent 42%),
    linear-gradient(120deg, #2a3240 0%, #3b4860 48%, #4f607c 100%);
}
.th-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,6,10,.45) 0%, rgba(6,6,10,.18) 55%, transparent 100%);
}
.th-hero__sparks {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  background:
    radial-gradient(circle at 35% 50%, rgba(255,180,80,.30) 0%, transparent 42%),
    radial-gradient(circle at 62% 32%, rgba(255,255,255,.16) 0%, transparent 20%);
  filter: blur(28px);
  z-index: 1;
}

/* ── Content ── */
.th-hero__content {
  position: relative;
  z-index: 2;
  min-height: clamp(480px, 68vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.th-hero__copy {
  max-width: 660px;
}
.th-hero__copy-box {
  position: relative;
  padding-left: 28px;
}
.th-hero__copy-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red) 0%, rgba(200,16,46,.4) 100%);
  box-shadow: 0 0 16px rgba(200,16,46,.35);
}

/* ── Eyebrow label ── */
.th-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
  opacity: 0;
}
.th-hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
  border-radius: 999px;
}
.th-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(38px, 5.8vw, 72px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.5px;
  margin-bottom: 20px;
  max-width: 640px;
  text-transform: uppercase;
  opacity: 0;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.th-hero__sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  margin-bottom: 36px;
  max-width: 520px;
  opacity: 0;
}
.th-hero .th-btn { opacity: 0; align-self: flex-start; }
.th-hero__cta {
  position: relative;
  z-index: 3;
  box-shadow: 0 10px 28px rgba(200,16,46,.32);
}

/* ── Slide-in animation ── */
.th-hero__slide.active .th-hero__eyebrow,
.th-hero__slide.active h1,
.th-hero__slide.active .th-hero__sub,
.th-hero__slide.active .th-btn {
  animation: th-slide-in .55s ease forwards;
}
.th-hero__slide.active .th-hero__eyebrow { animation-delay: 0s; }
.th-hero__slide.active h1 { animation-delay: .08s; }
.th-hero__slide.active .th-hero__sub { animation-delay: .16s; }
.th-hero__slide.active .th-btn { animation-delay: .24s; }
@keyframes th-slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Navigation arrows ── */
.th-hero__arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 10;
  pointer-events: none;
}
.th-hero__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.20);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: all .2s;
  backdrop-filter: blur(8px);
}
.th-hero__arrow:hover { background: var(--red); border-color: var(--red); }
.th-hero__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.th-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.32);
  cursor: pointer;
  transition: all .3s;
  border: none;
  padding: 0;
}
.th-hero__dot.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}
.th-hero__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--red);
  width: 0%;
  z-index: 10;
  transition: width linear;
}

/* ═══════════════════════════════════
   FEATURE STRIP
═══════════════════════════════════ */
.th-features {
  background: #18181b;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.th-features__grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
.th-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
}
.th-feature__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(169,42,62,.15);
  border: 1px solid rgba(169,42,62,.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 20px;
}
.th-feature h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.th-feature p { font-size: 12.5px; color: rgba(255,255,255,.6); }

/* ═══════════════════════════════════
   SECTION — generic
═══════════════════════════════════ */
.th-section { padding: 64px 0; background: var(--white); }
.th-section--alt { background: var(--gray-100); }
.th-section__head { text-align: center; margin-bottom: 40px; }
.th-section__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(24px,3vw,32px);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
}
.th-section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 12px auto 0;
}
.th-section__sub { margin-top: 12px; color: var(--gray-700); font-size: 15px; }
.th-section__head--left .th-section__title::after { margin-left: 0; }

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.th-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .25s;
  cursor: pointer;
}
.th-btn--red {
  background: var(--red);
  color: white;
  box-shadow: 0 6px 20px rgba(169,42,62,.4);
}
.th-btn--red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(169,42,62,.5);
}
.th-btn--outline {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
}
.th-btn--outline:hover { background: var(--red); color: white; }
.th-btn--sm { padding: 10px 20px; font-size: 12px; }
.th-btn i { font-size: 11px; }

/* ═══════════════════════════════════
   PRODUCTS
═══════════════════════════════════ */
.th-products-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 20px;
}
.th-product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.th-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}
.th-product-card__img {
  aspect-ratio: 1 / 1;
  background: var(--gray-50, #f8f8f8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
  box-sizing: border-box;
}
.th-product-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.th-product-card__body {
  padding: 16px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.th-product-card h3 {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 10px;
  color: var(--ink);
  flex: 1;
}
.th-product-card .th-link {
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.th-product-card:hover .th-link { gap: 10px; }

/* Products archive (full) */
.th-products-grid--full { grid-template-columns: repeat(4,1fr); }

/* Product categories on homepage */
.th-products-grid--cats .th-product-card--cat .th-product-card__body {
  justify-content: center;
}
.th-product-card__img--cat {
  background: var(--gray-900);
}
.th-product-card__img--cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.th-product-card--cat:hover .th-product-card__img--cat img {
  transform: scale(1.02);
}
.th-product-card__img--cat img {
  transition: transform .3s ease;
}

/* ═══════════════════════════════════
   NEWS
═══════════════════════════════════ */
.th-news__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.th-news__head .th-section__title { display: inline-block; }
.th-news__head .th-section__title::after { margin-left: 0; }
.th-news-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  align-items: stretch;
}
.th-news-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.th-news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.th-news-card__img {
  aspect-ratio: 16/9;
  background: var(--black);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.th-news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.th-news-card:hover .th-news-card__img img { transform: scale(1.05); }
.th-news-card__img-placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%,rgba(255,160,60,.6) 0%,transparent 45%),
    linear-gradient(135deg,#1a1a1c 0%,#3a1818 100%);
}
.th-news-card__img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%,rgba(255,200,100,.5),transparent 30%);
  filter: blur(20px);
}
.th-news-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.th-news-card__date {
  display: inline-block;
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 8px;
}
.th-news-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.th-news-card__excerpt {
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 14px;
  flex: 1;
}
.th-news-card .th-link {
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: auto;
}

/* ═══════════════════════════════════
   CERTIFICATES
═══════════════════════════════════ */
.th-certs {
  background: linear-gradient(135deg,var(--red-deep) 0%,var(--red-dark) 100%);
  padding: 50px 0;
  color: white;
  position: relative;
  overflow: hidden;
}
.th-certs::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg,transparent,transparent 20px,rgba(255,255,255,.02) 20px,rgba(255,255,255,.02) 22px);
}
.th-certs__head {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}
.th-certs__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.th-certs__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,.6);
  margin: 12px auto 0;
}
.th-certs-slider {
  position: relative;
  z-index: 2;
  padding: 0 50px;
}
.th-certs-slider__viewport {
  overflow: hidden;
}
.th-certs-slider__track {
  display: flex;
  align-items: stretch;
  transition: transform .5s ease;
  will-change: transform;
}
.th-certs-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 16px;
}
.th-cert-card {
  background: white;
  padding: 12px;
  border-radius: 4px;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.th-cert-card img { width: 100%; height: 100%; object-fit: contain; }
.th-certs-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.th-certs-slider__arrow:hover {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.55);
}
.th-certs-slider__arrow--prev { left: 0; }
.th-certs-slider__arrow--next { right: 0; }
.th-certs-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.th-certs-slider__dot {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.th-certs-slider__dot.active {
  background: white;
  transform: scale(1.2);
}
.th-certs-slider:not(.is-ready) .th-certs-slider__arrow,
.th-certs-slider:not(.is-ready) .th-certs-slider__dots,
.th-certs-slider.is-static .th-certs-slider__arrow,
.th-certs-slider.is-static .th-certs-slider__dots {
  display: none;
}

/* ═══════════════════════════════════
   PARTNERS
═══════════════════════════════════ */
.th-partners { background: var(--gray-50, #f8f8f8); padding: 60px 0; border-top: 1px solid var(--gray-200); }
/* Industry-grouped client layout */
.th-clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.th-clients-industry {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--gray-200);
}
.th-clients-industry__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.th-clients-industry__head i { font-size: 14px; }
.th-clients-industry__head img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 42px;
}
.th-clients-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.th-client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 44px;
  padding: 4px 8px;
  filter: grayscale(100%);
  opacity: .7;
  transition: all .2s;
}
.th-client-logo:hover { filter: none; opacity: 1; }
.th-client-logo img { max-height: 36px; max-width: 90px; object-fit: contain; }
.th-client-logo__text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--gray-700);
  letter-spacing: .5px;
  white-space: nowrap;
}
/* keep old classes for backward compat */
.th-partners-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.th-partner-logo { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 20px; color: var(--gray-700); padding: 8px; transition: opacity .2s; }
.th-partner-logo:hover { opacity: .7; }
.th-partner-logo img { max-height: 44px; margin: 0 auto; filter: grayscale(100%); transition: filter .3s; }
.th-partner-logo:hover img { filter: none; }

/* ═══════════════════════════════════
   FLOAT BUTTONS
═══════════════════════════════════ */
.th-float-btns {
  position: fixed;
  right: 18px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}
.th-float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 20px rgba(169,42,62,.4);
  text-decoration: none;
  position: relative;
  transition: transform .2s;
}
.th-float-btn:hover { transform: scale(1.08); color: #fff; }
.th-float-btn--phone::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--red);
  opacity: .5;
  animation: thPulse 1.6s infinite;
}
@keyframes thPulse {
  0%   { transform: scale(.9); opacity: .6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.th-float-btn--zalo {
  background: #0068ff;
  box-shadow: 0 6px 20px rgba(0,104,255,.4);
  font-size: 11px;
  font-weight: 700;
}

/* ═══════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════ */
.th-about__hero { padding: 80px 0 60px; background: var(--black); color: white; }
.th-about__hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px,5vw,56px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.th-about__hero p { font-size: 16px; color: rgba(255,255,255,.75); max-width: 600px; }
.th-stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  padding: 48px 0;
}
.th-stat {
  text-align: center;
  padding: 32px 16px;
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow-sm);
}
.th-stat__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.th-stat__label { font-size: 13px; font-weight: 600; color: var(--gray-700); margin-top: 8px; text-transform: uppercase; letter-spacing: .5px; }
.th-mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 48px 0;
}
.th-mv-card { background: white; border-radius: 10px; padding: 36px; border-top: 4px solid var(--red); }
.th-mv-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.th-mv-card p { color: var(--gray-700); line-height: 1.7; }

/* ═══════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════ */
.th-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 64px 0;
}
.th-contact-info h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.th-contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.th-contact-item__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(169,42,62,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.th-contact-item__text strong { display: block; font-weight: 700; margin-bottom: 2px; }
.th-contact-item__text span { color: var(--gray-700); font-size: 14px; }
.th-contact-form { background: white; border-radius: 12px; padding: 36px; box-shadow: var(--shadow-md); }
.th-contact-form h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.th-form-group { margin-bottom: 18px; }
.th-form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.th-form-group input,
.th-form-group select,
.th-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .2s;
  background: var(--gray-100);
}
.th-form-group input:focus,
.th-form-group select:focus,
.th-form-group textarea:focus { outline: none; border-color: var(--red); background: white; }
.th-form-group textarea { resize: vertical; min-height: 120px; }

/* ═══════════════════════════════════
   SINGLE PRODUCT
═══════════════════════════════════ */
/* ═══════════════════════════════════
   PRODUCT DETAIL — HERO
═══════════════════════════════════ */
.th-pd-hero {
  background: var(--white);
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--gray-200);
}
.th-pd-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
/* Image panel */
.th-pd-hero__img-panel { position: relative; }
.th-pd-hero__img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100) 0%, #e8e8ee 100%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.th-pd-hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.th-pd-hero__img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a1c 0%, #2a2230 100%);
  color: rgba(255,255,255,.6);
}
.th-pd-hero__img-placeholder i {
  font-size: 80px;
  color: var(--red);
  opacity: .7;
}
.th-pd-hero__img-placeholder span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding: 0 24px;
  color: rgba(255,255,255,.5);
}
.th-pd-hero__cat-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Info panel */
.th-pd-hero__series {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 10px;
}
.th-pd-hero__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 18px;
}
.th-pd-hero__desc {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 28px;
  border-left: 3px solid var(--red);
  padding-left: 16px;
}
/* Key stats */
.th-pd-keystats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.th-pd-keystat {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.th-pd-keystat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--red);
}
.th-pd-keystat:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(169,42,62,.12);
}
.th-pd-keystat__val {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.th-pd-keystat__label {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
}
/* CTAs */
.th-pd-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════
   PRODUCT DETAIL — STICKY TABS
═══════════════════════════════════ */
.th-pd-tabs {
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 70px;
  z-index: 90;
  transition: box-shadow .2s;
}
.th-pd-tabs.is-sticky {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.th-pd-tabs__inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.th-pd-tabs__inner::-webkit-scrollbar { display: none; }
.th-pd-tabs__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.th-pd-tabs__link i { font-size: 12px; }
.th-pd-tabs__link:hover { color: var(--red); }
.th-pd-tabs__link.is-active { color: var(--red); border-bottom-color: var(--red); }
.th-pd-tabs__title {
  margin-left: auto;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-500);
  white-space: nowrap;
  padding-left: 24px;
  display: none;
}
.th-pd-tabs.is-sticky .th-pd-tabs__title { display: block; }

/* ═══════════════════════════════════
   PRODUCT DETAIL — SECTIONS
═══════════════════════════════════ */
.th-pd-section { padding: 72px 0; background: var(--white); }
.th-pd-section--alt { background: var(--gray-100); }
.th-pd-section__head {
  text-align: center;
  margin-bottom: 48px;
}
.th-pd-section__head h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}
.th-pd-section__head h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 10px auto 0;
  border-radius: 2px;
}
.th-pd-section__head p { color: var(--gray-500); font-size: 14px; margin-top: 8px; }

/* Features grid */
.th-pd-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.th-pd-feature {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.th-pd-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}
.th-pd-feature__icon {
  width: 52px; height: 52px;
  background: rgba(169,42,62,.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
  color: var(--red);
  transition: background .2s;
}
.th-pd-feature:hover .th-pd-feature__icon { background: var(--red); color: white; }
.th-pd-feature h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.th-pd-feature p { font-size: 13.5px; color: var(--gray-700); line-height: 1.6; }

/* Overview description */
.th-pd-overview-desc {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 32px 36px;
  border-left: 4px solid var(--red);
}
.th-pd-overview-desc h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--ink);
}
.th-pd-overview-desc p { color: var(--gray-700); line-height: 1.8; font-size: 15px; }

/* Specs table */
.th-pd-specs-wrap {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.th-pd-specs-table { width: 100%; border-collapse: collapse; }
.th-pd-specs-table tr.even { background: var(--white); }
.th-pd-specs-table tr.odd { background: var(--gray-100); }
.th-pd-specs-table tr:hover { background: rgba(169,42,62,.04); }
.th-pd-specs-table__key {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  width: 45%;
  border-right: 1px solid var(--gray-200);
}
.th-pd-specs-table__key i {
  color: var(--red);
  font-size: 11px;
  margin-right: 10px;
  opacity: .7;
}
.th-pd-specs-table__val {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}

/* Applications */
.th-pd-apps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.th-pd-app {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: all .25s;
  cursor: default;
}
.th-pd-app:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(169,42,62,.12);
}
.th-pd-app i {
  font-size: 28px;
  color: var(--red);
}
.th-pd-app span {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  line-height: 1.4;
}

/* CTA Section */
.th-pd-cta {
  background: linear-gradient(135deg, var(--red-deep) 0%, var(--red) 60%, #c03050 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.th-pd-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.th-pd-cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.th-pd-cta__text { flex: 1; }
.th-pd-cta__text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  color: white;
  margin-bottom: 12px;
}
.th-pd-cta__text p { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.th-pd-cta__contacts { display: flex; gap: 24px; flex-wrap: wrap; }
.th-pd-cta__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 600;
  transition: color .2s;
}
.th-pd-cta__contact-item:hover { color: white; }
.th-pd-cta__contact-item i {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.th-pd-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.th-pd-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  transition: all .25s;
  white-space: nowrap;
}
.th-pd-cta__btn--primary {
  background: white;
  color: var(--red);
}
.th-pd-cta__btn--primary:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-2px);
}
.th-pd-cta__btn--ghost {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 2px solid rgba(255,255,255,.4);
}
.th-pd-cta__btn--ghost:hover {
  background: rgba(255,255,255,.1);
  color: white;
  border-color: rgba(255,255,255,.7);
}

/* Related products */
.th-pd-related {
  padding: 72px 0;
  background: var(--gray-100);
}
.th-pd-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.th-pd-related-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex;
  flex-direction: column;
}
.th-pd-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}
.th-pd-related-card__img {
  display: block;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--gray-100), #e0e0e6);
  overflow: hidden;
}
.th-pd-related-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.th-pd-related-card:hover .th-pd-related-card__img img { transform: scale(1.05); }
.th-pd-related-card__noimg {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#1a1a1c,#2a2230);
}
.th-pd-related-card__noimg i { font-size: 48px; color: var(--red); opacity: .5; }
.th-pd-related-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.th-pd-related-card__body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.4;
}
.th-pd-related-card__body h3 a { color: inherit; transition: color .2s; }
.th-pd-related-card__body h3 a:hover { color: var(--red); }
.th-pd-related-card__specs {
  list-style: none;
  margin-bottom: 16px;
  flex: 1;
}
.th-pd-related-card__specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray-700);
  padding: 5px 0;
  border-bottom: 1px dashed var(--gray-200);
}
.th-pd-related-card__specs li:last-child { border-bottom: none; }
.th-pd-related-card__specs span { color: var(--gray-500); }
.th-pd-related-card__specs strong { color: var(--ink); font-weight: 600; }

/* Old product detail — kept for backward compat */
.th-product-detail { padding: 60px 0; }
.th-product-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.th-specs-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.th-specs-table th { background: var(--gray-100); text-align: left; padding: 10px 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--gray-700); }
.th-specs-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.th-specs-table tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════
   BREADCRUMB
═══════════════════════════════════ */
.th-breadcrumb {
  background: var(--gray-100);
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}
.th-breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-700);
  flex-wrap: wrap;
  min-width: 0;
}
.th-breadcrumb a,
.th-breadcrumb span {
  min-width: 0;
}
.th-breadcrumb__inner > span:last-child {
  flex: 1 1 220px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.th-breadcrumb a { color: var(--gray-700); transition: color .2s; }
.th-breadcrumb a:hover { color: var(--red); }
.th-breadcrumb i { font-size: 10px; flex: 0 0 auto; }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.th-footer { background: var(--red); color: rgba(255,255,255,.88); padding: 56px 0 0; font-size: 13.5px; }
.th-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 40px;
  align-items: start;
}
.th-footer__company { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.th-footer__mst { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.th-footer__contact-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.th-footer__contact-list li i { margin-top: 2px; flex-shrink: 0; width: 16px; text-align: center; }
.th-footer__contact-list span { line-height: 1.5; }
.th-footer .th-logo { margin-bottom: 16px; color: initial; }
.th-logo__img--footer { filter: none !important; mix-blend-mode: normal !important; }
.th-footer__col p { line-height: 1.7; color: rgba(255,255,255,.82); }
.th-footer__col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  position: relative;
}
.th-footer__col h4::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 36px;
  height: 2px;
  background: rgba(255,255,255,.7);
}
.th-footer__col ul { list-style: none; }
.th-footer__col li { margin-bottom: 10px; }
.th-footer__col a { color: rgba(255,255,255,.82); transition: all .2s; }
.th-footer__col a:hover { color: white; opacity: 1; text-decoration: underline; }
.th-footer__col li i { width: 18px; color: rgba(255,255,255,.7); margin-right: 8px; font-size: 13px; }
.th-socials { display: flex; gap: 8px; margin-top: 18px; }
.th-socials a {
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all .2s;
  color: rgba(255,255,255,.85);
}
.th-socials a:hover { background: rgba(0,0,0,.3); color: white; }
.th-footer__bottom {
  display: none;
}

/* ═══════════════════════════════════
   PAGINATION
═══════════════════════════════════ */
.th-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.th-pagination a,
.th-pagination span {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  transition: all .2s;
}
.th-pagination a:hover { border-color: var(--red); color: var(--red); }
.th-pagination .current { background: var(--red); color: white; border-color: var(--red); }

/* ═══════════════════════════════════
   PAGE HERO BANNER (inner pages)
═══════════════════════════════════ */
.th-page-hero {
  background-color: var(--black);
  background-image: var(--th-page-banner-bg, none);
  background-size: cover;
  background-position: center;
  color: white;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.th-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,14,16,.88) 0%, rgba(14,14,16,.68) 55%, rgba(14,14,16,.42) 100%),
    radial-gradient(ellipse at 70% 50%,rgba(169,42,62,.18),transparent 60%);
}
.th-page-hero__content { position: relative; z-index: 1; }
.th-page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px,4vw,48px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.th-page-hero p { color: rgba(255,255,255,.7); max-width: 500px; }

/* ═══════════════════════════════════
   404
═══════════════════════════════════ */
.th-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.th-404__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 160px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  opacity: .15;
}
.th-404 h2 { font-size: 28px; font-weight: 700; margin-top: -40px; margin-bottom: 16px; }

/* ═══════════════════════════════════
   MOBILE NAV OVERLAY
═══════════════════════════════════ */
.th-mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(10,10,12,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 84px 18px 24px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px) scale(.985);
  transition: opacity .32s ease, transform .38s cubic-bezier(.22,1,.36,1), visibility 0s linear .38s;
}
.th-mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity .32s ease, transform .38s cubic-bezier(.22,1,.36,1);
}
.th-mobile-nav__group,
.th-mobile-nav__link,
.th-mobile-nav__cta {
  opacity: 0;
  transform: translateX(-10px);
}
.th-mobile-nav__group {
  margin: 0;
}
.th-mobile-nav.open .th-mobile-nav__group,
.th-mobile-nav.open .th-mobile-nav__link,
.th-mobile-nav.open .th-mobile-nav__cta {
  opacity: 1;
  transform: translateX(0);
}
.th-mobile-nav__group,
.th-mobile-nav__link,
.th-mobile-nav__cta {
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .34s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
.th-mobile-nav.open > .th-mobile-nav__group:nth-of-type(1),
.th-mobile-nav.open > .th-mobile-nav__link:nth-of-type(1) { transition-delay: .02s; }
.th-mobile-nav.open > .th-mobile-nav__group:nth-of-type(2),
.th-mobile-nav.open > .th-mobile-nav__link:nth-of-type(2) { transition-delay: .04s; }
.th-mobile-nav.open > .th-mobile-nav__group:nth-of-type(3),
.th-mobile-nav.open > .th-mobile-nav__link:nth-of-type(3) { transition-delay: .06s; }
.th-mobile-nav.open > .th-mobile-nav__group:nth-of-type(4),
.th-mobile-nav.open > .th-mobile-nav__link:nth-of-type(4) { transition-delay: .08s; }
.th-mobile-nav.open > .th-mobile-nav__group:nth-of-type(5),
.th-mobile-nav.open > .th-mobile-nav__link:nth-of-type(5) { transition-delay: .10s; }
.th-mobile-nav.open > .th-mobile-nav__group:nth-of-type(6),
.th-mobile-nav.open > .th-mobile-nav__link:nth-of-type(6) { transition-delay: .12s; }
.th-mobile-nav.open > .th-mobile-nav__cta { transition-delay: .14s; }
.th-mobile-nav__toggle,
.th-mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: white;
  font-size: 19px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-align: left;
  line-height: 1.2;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: transparent;
  text-decoration: none;
}
.th-mobile-nav__toggle {
  cursor: pointer;
  border: none;
}
.th-mobile-nav__toggle-label {
  display: block;
  flex: 1;
}
.th-mobile-nav__toggle i {
  font-size: 12px;
  opacity: .72;
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .22s ease;
}
.th-mobile-nav__group.is-open > .th-mobile-nav__toggle i {
  transform: rotate(180deg);
  opacity: 1;
}
.th-mobile-nav__submenu {
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .34s cubic-bezier(.22,1,.36,1), opacity .24s ease;
}
.th-mobile-nav__submenu > * {
  min-height: 0;
  margin: 0;
}
.th-mobile-nav__group.is-open > .th-mobile-nav__submenu {
  max-height: 900px;
  opacity: 1;
}
.th-mobile-nav__group.is-open > .th-mobile-nav__toggle {
  border-bottom-color: rgba(169,42,62,.32);
}
.th-mobile-nav__link:hover,
.th-mobile-nav__toggle:hover {
  color: var(--red);
  border-bottom-color: rgba(169,42,62,.45);
}
.th-mobile-nav__link:hover {
  transform: translateX(4px);
}
.th-mobile-nav__link--child,
.th-mobile-nav__group--child > .th-mobile-nav__toggle {
  padding-top: 9px;
  padding-bottom: 9px;
  padding-left: 14px;
  font-size: 14px;
  letter-spacing: .5px;
  opacity: .88;
}
.th-mobile-nav__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%) !important;
  color: white !important;
  padding: 12px 18px !important;
  border-radius: 6px;
  font-size: 15px !important;
  margin-top: 14px;
  letter-spacing: .4px;
  text-align: center;
  border-bottom: 0 !important;
  box-shadow: 0 10px 26px rgba(169,42,62,.28);
}
.th-mobile-nav__close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 26px;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform .26s cubic-bezier(.22,1,.36,1), opacity .22s ease;
}
.th-mobile-nav__close:hover {
  opacity: .85;
  transform: rotate(90deg) scale(1.04);
}

/* ── Post content ── */
.th-post-content h2 { font-size: 24px; font-weight: 700; margin: 28px 0 12px; }
.th-post-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; }
.th-post-content p { margin-bottom: 16px; }
.th-post-content ul, .th-post-content ol { padding-left: 24px; margin-bottom: 16px; }
.th-post-content li { margin-bottom: 6px; }
.th-post-content img { border-radius: 8px; margin: 16px 0; max-width: 100%; height: auto; display: block; object-fit: unset; }
.th-post-content img.aligncenter,
.th-post-content figure.aligncenter,
.th-post-content .wp-caption.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.th-post-content img.alignleft,
.th-post-content figure.alignleft,
.th-post-content .wp-caption.alignleft { float: left; margin: 8px 20px 8px 0; }
.th-post-content img.alignright,
.th-post-content figure.alignright,
.th-post-content .wp-caption.alignright { float: right; margin: 8px 0 8px 20px; }
.th-post-content .wp-caption { max-width: 100%; }
.th-post-content .wp-caption-text { font-size: 13px; color: var(--gray-500); text-align: center; margin-top: 6px; }
.th-post-content blockquote {
  border-left: 4px solid var(--red);
  padding: 16px 20px;
  background: var(--gray-100);
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: var(--gray-700);
}
.th-form-success {
  text-align: center;
  padding: 40px;
  color: #1a8a3a;
  font-weight: 600;
  font-size: 16px;
}

/* ═══════════════════════════════════
   CERT GALLERY (page-chung-chi + about page)
═══════════════════════════════════ */
.th-cert-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  justify-items: center;
}
.th-cert-gallery__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: white;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border: 1px solid var(--gray-200);
  aspect-ratio: 3/4;
  transition: transform .35s cubic-bezier(.25,.8,.25,1), box-shadow .35s;
  outline: none;
}
.th-cert-gallery__item:hover,
.th-cert-gallery__item:focus-visible {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,.16);
  border-color: var(--red);
}
.th-cert-gallery__item img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  display: block;
  transition: transform .4s ease;
}
.th-cert-gallery__item:hover img { transform: scale(1.04); }
.th-cert-gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(169,42,62,.8) 0%, rgba(100,8,23,.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  opacity: 0;
  transition: opacity .25s;
}
.th-cert-gallery__item:hover .th-cert-gallery__overlay,
.th-cert-gallery__item:focus-visible .th-cert-gallery__overlay { opacity: 1; }

/* ═══════════════════════════════════
   LIGHTBOX
═══════════════════════════════════ */
.th-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,5,7,.94);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.th-lightbox.active {
  display: flex;
  animation: lb-fade .22s ease forwards;
}
@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.th-lb-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80vw;
  max-width: 860px;
  max-height: 88vh;
}
#th-lb-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.th-lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  z-index: 1;
}
.th-lb-close:hover { background: var(--red); border-color: var(--red); }
.th-lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, transform .2s;
  z-index: 1;
  backdrop-filter: blur(4px);
}
.th-lb-arrow--prev { left: 20px; }
.th-lb-arrow--next { right: 20px; }
.th-lb-arrow:hover { background: var(--red); border-color: var(--red); transform: translateY(-50%) scale(1.08); }

/* ═══════════════════════════════════
   BRAND STORY + TIMELINE
═══════════════════════════════════ */
.th-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.th-story__timeline {
  position: relative;
  padding-left: 32px;
}
.th-story__timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), var(--gray-300));
  border-radius: 2px;
}
.th-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 12px;
  align-items: start;
  margin-bottom: 28px;
}
.th-timeline__item:last-child { margin-bottom: 0; }
.th-timeline__dot {
  position: absolute;
  left: -27px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}
.th-timeline__year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--red);
  line-height: 1.3;
}
.th-timeline__desc {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.65;
  padding-top: 2px;
}

/* ═══════════════════════════════════
   MISSION VISION — icon add-on
═══════════════════════════════════ */
.th-mv-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(169,42,62,.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

/* ═══════════════════════════════════
   CORE VALUES
═══════════════════════════════════ */
.th-values-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.th-value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.th-value-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width .35s;
}
.th-value-card:hover::after { width: 100%; }
.th-value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.th-value-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.th-value-card h4 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 10px;
}
.th-value-card p { font-size: 14px; color: var(--gray-700); line-height: 1.7; }

/* ═══════════════════════════════════
   WORK PROCESS
═══════════════════════════════════ */
.th-process {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 0;
  position: relative;
}
.th-process::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--red), var(--gray-300), var(--red));
}
.th-process__step { text-align: center; padding: 0 12px 32px; }
.th-process__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--red);
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.th-process__step:hover .th-process__icon {
  background: var(--red);
  color: white;
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(169,42,62,.35);
}
.th-process__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.th-process__step h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 8px;
}
.th-process__step p { font-size: 13px; color: var(--gray-700); line-height: 1.6; }

/* ═══════════════════════════════════
   LEADERSHIP TEAM
═══════════════════════════════════ */
.th-team-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
.th-team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.th-team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.th-team-card__avatar {
  height: 140px;
  background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
}
.th-team-card__avatar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(169,42,62,.25), transparent);
}
.th-team-card__body { padding: 20px 16px 24px; }
.th-team-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.th-team-card__role {
  display: block;
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.th-team-card p { font-size: 12.5px; color: var(--gray-700); line-height: 1.6; }

/* ═══════════════════════════════════
   ABOUT PAGE — CERT CARDS
═══════════════════════════════════ */
.th-about-certs-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
.th-about-cert-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.th-about-cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.th-about-cert-card__img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f0f0f3, #e0e0e6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.th-about-cert-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.th-about-cert-card__img--placeholder { font-size: 48px; color: var(--gray-300); }
.th-about-cert-card__body { padding: 18px; }
.th-about-cert-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.th-about-cert-card__issuer { font-size: 12px; color: var(--red); font-weight: 600; display: block; }
.th-about-cert-card__year { font-size: 12px; color: var(--gray-500); display: block; margin-bottom: 8px; }
.th-about-cert-card p { font-size: 12.5px; color: var(--gray-700); line-height: 1.6; margin-top: 6px; }

/* ═══════════════════════════════════
   CTA BANNER
═══════════════════════════════════ */
.th-cta-banner {
  background: linear-gradient(135deg, var(--red-deep) 0%, var(--red) 60%, var(--red-dark) 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.th-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg,transparent,transparent 20px,rgba(255,255,255,.02) 20px,rgba(255,255,255,.02) 22px);
}
.th-cta-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.th-cta-banner h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(24px,3vw,36px);
  font-weight: 800;
  text-transform: uppercase;
  color: white;
  margin-bottom: 10px;
}
.th-cta-banner p { color: rgba(255,255,255,.85); font-size: 15px; max-width: 520px; }
.th-cta-banner__btns { display: flex; gap: 14px; flex-shrink: 0; }
.th-btn--outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,.6);
  color: white;
}
.th-btn--outline-white:hover { background: white; color: var(--red); border-color: white; }

/* ═══════════════════════════════════
   TAXONOMY: th_product_cat
═══════════════════════════════════ */

/* ── Taxonomy Hero ── */
.th-txhero {
  background-color: var(--black);
  background-image: var(--th-page-banner-bg, none);
  background-size: cover;
  background-position: top;
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  color: white;
}
.th-txhero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,14,16,.90) 0%, rgba(14,14,16,.74) 48%, rgba(14,14,16,.48) 100%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(169,42,62,.22), transparent),
    radial-gradient(ellipse 40% 60% at 0% 80%, rgba(169,42,62,.10), transparent);
}
/* Large decorative icon behind content */
.th-txhero__deco-icon {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(120px, 16vw, 220px);
  color: rgba(255,255,255,.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.th-txhero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Breadcrumb inside hero */
.th-txhero__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
  flex-wrap: wrap;
  min-width: 0;
}
.th-txhero__crumb a,
.th-txhero__crumb span {
  min-width: 0;
}
.th-txhero__crumb a { color: rgba(255,255,255,.5); transition: color .2s; }
.th-txhero__crumb a:hover { color: rgba(255,255,255,.9); }
.th-txhero__crumb i { font-size: 9px; flex: 0 0 auto; }
.th-txhero__crumb span { color: rgba(255,255,255,.85); }

.th-txhero__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.05;
  margin-bottom: 16px;
  width: 100%;
  max-width: none;
}
.th-txhero__desc {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.th-txhero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.th-txhero__count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 6px 16px;
}
.th-txhero__count i { color: var(--red); }

/* ── Category Tabs bar ── */
.th-cattabs {
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 72px;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.th-cattabs__scroll {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.th-cattabs__scroll::-webkit-scrollbar { display: none; }
.th-cattabs__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 16px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
  flex-shrink: 0;
}
.th-cattabs__item i { font-size: 12px; }
.th-cattabs__item em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  background: var(--gray-200);
  color: var(--gray-700);
  border-radius: 10px;
  padding: 1px 7px;
  transition: background .2s, color .2s;
}
.th-cattabs__item:hover { color: var(--red); }
.th-cattabs__item.is-active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.th-cattabs__item.is-active em { background: var(--red); color: white; }

/* ── Product Grid section ── */
.th-pg {
  background: var(--gray-100);
  padding: 48px 0 80px;
}
.th-pg__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Product Card ── */
.th-pc {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
/* Red top accent line, expands on hover */
.th-pc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  z-index: 1;
}
.th-pc:hover::before { transform: scaleX(1); }
.th-pc:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(14,14,16,.13);
}

/* Image area */
.th-pc__img {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-50, #f8f8f8);
  flex-shrink: 0;
  padding: 14px;
  box-sizing: border-box;
}
.th-pc__img img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.th-pc:hover .th-pc__img img { transform: scale(1.03); }
/* No-image placeholder */
.th-pc__noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gray-900) 0%, #1e1e24 100%);
}
.th-pc__noimg i { font-size: 52px; color: rgba(169,42,62,.3); }
/* Hover overlay */
.th-pc__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,12,.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.th-pc:hover .th-pc__overlay { opacity: 1; }
.th-pc__overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 11px 22px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(169,42,62,.5);
  transform: translateY(6px);
  transition: transform .3s;
}
.th-pc:hover .th-pc__overlay-btn { transform: translateY(0); }

/* Card body */
.th-pc__body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
/* Category label */
.th-pc__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
}
.th-pc__cat i { font-size: 10px; }
/* Product name */
.th-pc__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: .3px;
}
.th-pc__name a { color: var(--ink); transition: color .2s; }
.th-pc__name a:hover { color: var(--red); }
/* Description */
.th-pc__desc {
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Specs table */
.th-pc__specs {
  border-top: 1px solid var(--gray-200);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.th-pc__spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
}
.th-pc__spec-row dt {
  color: var(--gray-500);
  flex-shrink: 0;
  max-width: 50%;
}
.th-pc__spec-row dd {
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  flex: 1;
}
/* Action row */
.th-pc__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
}
.th-pc__btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: white;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 11px 16px;
  border-radius: 6px;
  transition: background .2s, transform .2s;
}
.th-pc__btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.th-pc__btn-primary i { font-size: 11px; }
.th-pc__btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
  border-radius: 6px;
  padding: 10px 14px;
  transition: all .2s;
  white-space: nowrap;
}
.th-pc__btn-quote:hover { border-color: var(--red); color: var(--red); }
.th-pc__btn-quote i { font-size: 11px; }
/* Empty state */
.th-pg__empty {
  text-align: center;
  padding: 100px 40px;
  color: var(--gray-500);
}
.th-pg__empty i { font-size: 56px; margin-bottom: 20px; display: block; opacity: .4; }
.th-pg__empty p { margin-bottom: 28px; font-size: 16px; }

/* ═══════════════════════════════════
   NEWS PAGE GRID
═══════════════════════════════════ */
.th-news-pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.th-ncard {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.th-ncard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  z-index: 1;
}
.th-ncard:hover::before { transform: scaleX(1); }
.th-ncard:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(14,14,16,.13);
}
.th-ncard__img {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-900);
  flex-shrink: 0;
}
.th-ncard__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.th-ncard:hover .th-ncard__img img { transform: scale(1.07); }
.th-ncard__noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gray-900), #1e1e24);
}
.th-ncard__noimg i { font-size: 48px; color: rgba(169,42,62,.3); }
.th-ncard__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,12,.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.th-ncard:hover .th-ncard__overlay { opacity: 1; }
.th-ncard__overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(169,42,62,.5);
  transform: translateY(6px);
  transition: transform .3s;
}
.th-ncard:hover .th-ncard__overlay-btn { transform: translateY(0); }
.th-ncard__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.th-ncard__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.th-ncard__date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray-500);
}
.th-ncard__date i { font-size: 11px; }
.th-ncard__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(169,42,62,.08);
  border-radius: 4px;
  padding: 2px 8px;
}
.th-ncard__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.th-ncard__title a { color: var(--ink); transition: color .2s; }
.th-ncard__title a:hover { color: var(--red); }
.th-ncard__excerpt {
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.th-ncard__readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-top: auto;
  transition: gap .2s;
}
.th-ncard__readmore:hover { gap: 10px; }
.th-ncard__readmore i { font-size: 11px; }

/* ═══════════════════════════════════
   SINGLE PRODUCT DETAIL (.th-spd-*)
═══════════════════════════════════ */

/* ── Main section ── */
.th-spd { padding: 48px 0 56px; background: #fff; }
.th-spd__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Gallery ── */
.th-spd__gallery { display: flex; flex-direction: column; gap: 12px; }
.th-spd__main-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--gray-50, #f8f8f8);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-100, #eee);
}
.th-spd__main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}
.th-spd__main-img:hover img { transform: scale(1.03); }

/* No-image placeholder */
.th-spd__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gray-400, #aaa);
}
.th-spd__no-img i { font-size: 72px; opacity: .4; }
.th-spd__no-img span { font-size: 15px; font-weight: 500; text-align: center; padding: 0 20px; }

/* Category badge */
.th-spd__img-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Zoom button */
.th-spd__zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  opacity: 0;
}
.th-spd__main-img:hover .th-spd__zoom { opacity: 1; }
.th-spd__zoom:hover { background: rgba(0,0,0,.75); }

/* Thumbnails */
.th-spd__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.th-spd__thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gray-100, #eee);
  padding: 0;
  background: var(--gray-50, #f8f8f8);
  cursor: pointer;
  transition: border-color .2s;
  flex-shrink: 0;
}
.th-spd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.th-spd__thumb:hover { border-color: var(--red-dark, #861c2d); }
.th-spd__thumb.is-active { border-color: var(--red); }

/* ── Info panel ── */
.th-spd__info { display: flex; flex-direction: column; gap: 20px; }
.th-spd__series {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0;
}
.th-spd__title { font-size: 28px; font-weight: 700; color: var(--dark, #0a0a0c); line-height: 1.3; margin: 0 0 12px; }
.th-spd__attrs { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; padding: 0; background: transparent; border: 0; }
.th-spd__attr { display: flex; align-items: baseline; gap: 6px; padding: 0; border: 0; font-size: 14px; line-height: 1.55; }
.th-spd__attr:last-child { border-bottom: 0; }
.th-spd__attr dt { font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--dark, #0a0a0c); margin: 0; }
.th-spd__attr dd { font-size: 14px; font-weight: 400; color: var(--gray-700, #333); margin: 0; }
.th-spd__desc { font-size: 15px; color: var(--gray-600, #555); line-height: 1.7; margin: 0; }
.th-spd__desc p { margin: 0 0 .6em; }
.th-spd__desc p:last-child { margin-bottom: 0; }
.th-spd-panel__text p { margin: 0 0 1em; }
.th-spd-panel__text ul, .th-spd-panel__text ol { padding-left: 1.5em; margin-bottom: 1em; }
.th-spd-panel__text li { margin-bottom: .3em; }

/* Highlights */
.th-spd__highlights { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.th-spd__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700, #333);
  line-height: 1.5;
}
.th-spd__highlights li i { color: var(--red); font-size: 16px; flex-shrink: 0; margin-top: 2px; }

/* Spec chips */
.th-spd__spec-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.th-spd__spec-chip {
  background: var(--gray-50, #f8f8f8);
  border: 1px solid var(--gray-100, #eee);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.th-spd__spec-chip-label { font-size: 11px; color: var(--gray-500, #888); text-transform: uppercase; letter-spacing: .4px; font-weight: 500; }
.th-spd__spec-chip-val { font-size: 14px; font-weight: 700; color: var(--dark, #0a0a0c); }

/* CTA buttons */
.th-spd__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.th-spd__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.th-spd__btn--red { background: var(--red); color: #fff; border-color: var(--red); }
.th-spd__btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.th-spd__btn--outline { background: transparent; color: var(--red); border-color: var(--red); }
.th-spd__btn--outline:hover { background: var(--red); color: #fff; }
.th-spd__btn--white { background: #fff; color: var(--red); border-color: #fff; }
.th-spd__btn--white:hover { background: rgba(255,255,255,.85); color: var(--red-dark); }

/* Meta footer (back link) */
.th-spd__meta-footer { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--gray-100, #eee); }
.th-spd__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500, #888);
  text-decoration: none;
  transition: color .2s;
}
.th-spd__back:hover { color: var(--red); }

/* ── Tabs bar ── */
.th-spd-tabs {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: #fff;
  border-bottom: 2px solid var(--gray-100, #eee);
  transition: box-shadow .2s;
}
.th-spd-tabs.is-stuck { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.th-spd-tabs__bar { display: flex; }
.th-spd-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500, #888);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.th-spd-tabs__btn:hover { color: var(--red); }
.th-spd-tabs__btn.is-active { color: var(--red); border-bottom-color: var(--red); }

/* ── Content panels ── */
.th-spd-panel { display: none; padding: 48px 0; }
.th-spd-panel.is-active { display: block; }
.th-spd-panel__body { width: 100%; }
.th-spd-panel__text { font-size: 15px; line-height: 1.8; color: var(--gray-700, #333); }

/* Specs table */
.th-spd-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.th-spd-specs thead th {
  background: var(--red);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
.th-spd-specs tbody tr:nth-child(even) { background: var(--gray-50, #f8f8f8); }
.th-spd-specs tbody tr:hover { background: #fef2f4; }
.th-spd-specs td { padding: 11px 16px; border-bottom: 1px solid var(--gray-100, #eee); vertical-align: middle; }
.th-spd-specs__key { width: 45%; color: var(--gray-700, #333); font-weight: 500; }
.th-spd-specs__key i { color: var(--red); font-size: 10px; margin-right: 6px; }
.th-spd-specs__val { color: var(--dark, #0a0a0c); font-weight: 600; }

/* ── Contact strip ── */
.th-spd-contact { background: var(--red-deep, #6b1524); padding: 32px 0; }
.th-spd-contact__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.th-spd-contact__text { display: flex; align-items: center; gap: 16px; color: #fff; }
.th-spd-contact__text > i { font-size: 36px; opacity: .85; flex-shrink: 0; }
.th-spd-contact__text strong { display: block; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.th-spd-contact__text span { font-size: 14px; opacity: .8; }
.th-spd-contact__actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ── Related products ── */
.th-spd-related { padding: 56px 0; background: var(--gray-50, #f8f8f8); }
.th-spd-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.th-spd-related__head h2 { font-size: 22px; font-weight: 700; color: var(--dark); margin: 0; }
.th-spd-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Related card */
.th-spd-rcard {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-100, #eee);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.th-spd-rcard:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
.th-spd-rcard__img {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-50, #f8f8f8);
  padding: 12px;
  box-sizing: border-box;
}
.th-spd-rcard__img img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.th-spd-rcard:hover .th-spd-rcard__img img { transform: scale(1.03); }
.th-spd-rcard__noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300, #ccc);
  font-size: 48px;
}
.th-spd-rcard__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.th-spd-rcard__body h3 { font-size: 14px; font-weight: 700; margin: 0; line-height: 1.4; }
.th-spd-rcard__body h3 a { color: var(--dark); text-decoration: none; transition: color .2s; }
.th-spd-rcard__body h3 a:hover { color: var(--red); }
.th-spd-rcard__specs {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--gray-100, #eee);
  flex: 1;
}
.th-spd-rcard__specs li { display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 6px; }
.th-spd-rcard__specs li span { color: var(--gray-500, #888); flex: 1; }
.th-spd-rcard__specs li strong { color: var(--dark); text-align: right; }
.th-spd-rcard__body .th-link { font-size: 12px; margin-top: auto; }

/* ── Lightbox ── */
.th-spd-lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
}
.th-spd-lb.is-open { display: flex; animation: spd-lb-in .22s ease forwards; }
@keyframes spd-lb-in { from { opacity: 0; } to { opacity: 1; } }
.th-spd-lb__wrap { max-width: min(90vw, 1200px); max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.th-spd-lb__wrap img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 6px; }
.th-spd-lb__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.th-spd-lb__close:hover { background: rgba(255,255,255,.3); }
.th-spd-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.th-spd-lb__nav:hover { background: rgba(255,255,255,.3); }
.th-spd-lb__nav--prev { left: 20px; }
.th-spd-lb__nav--next { right: 20px; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1200px) {
  .th-news-pg-grid { grid-template-columns: repeat(2,1fr); }
  .th-pg__grid { grid-template-columns: repeat(2,1fr); }
  .th-products-grid { grid-template-columns: repeat(3,1fr); }
  .th-products-grid--full { grid-template-columns: repeat(3,1fr); }
  .th-partners-grid { grid-template-columns: repeat(3,1fr); }
  .th-footer__grid { gap: 40px; }
  .th-team-grid { grid-template-columns: repeat(2,1fr); }
  .th-about-certs-grid { grid-template-columns: repeat(2,1fr); }
  /* product detail */
  .th-pd-features { grid-template-columns: repeat(2,1fr); }
  .th-pd-apps { grid-template-columns: repeat(3,1fr); }
  .th-pd-related__grid { grid-template-columns: repeat(2,1fr); }
  .th-pd-cta__inner { flex-direction: column; }
  .th-pd-cta__actions { flex-direction: row; flex-wrap: wrap; }
  /* single product */
  .th-spd-related__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .th-txhero { padding: 48px 0 40px; }
  .th-txhero__deco-icon { font-size: 100px; opacity: .6; }
  .th-pg__grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .th-features__grid { grid-template-columns: repeat(2,1fr); }
  .th-product-detail__grid { grid-template-columns: 1fr; }
  .th-contact-grid { grid-template-columns: 1fr; }
  .th-mission-vision { grid-template-columns: 1fr; }
  .th-stats-grid { grid-template-columns: repeat(2,1fr); }
  .th-story { grid-template-columns: 1fr; gap: 40px; }
  .th-values-grid { grid-template-columns: repeat(2,1fr); }
  .th-process { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .th-process::before { display: none; }
  .th-cta-banner__inner { flex-direction: column; text-align: center; }
  .th-cta-banner p { max-width: 100%; }
  .th-cta-banner__btns { justify-content: center; flex-wrap: wrap; }
  .th-hero { min-height: 560px; }
  .th-hero__content { min-height: 560px; padding-top: 60px; padding-bottom: 60px; }
  .th-hero__copy { max-width: 100%; }
  .th-hero__copy-box { padding-left: 20px; }
  .th-hero__sub { max-width: 100%; }
  /* single product */
  .th-spd__grid { grid-template-columns: 1fr; gap: 32px; }
  .th-spd-contact__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .th-topbar {
    padding: 7px 0;
    font-size: 12px;
  }
  .th-topbar__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }
  .th-topbar__inner > span:first-child {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
    max-width: 100%;
    opacity: .98;
  }
  .th-topbar__right {
    width: 100%;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .th-topbar__right a,
  .th-lang-switch {
    white-space: nowrap;
  }
  .th-breadcrumb {
    padding: 10px 0;
  }
  .th-breadcrumb__inner,
  .th-txhero__crumb {
    gap: 6px;
    font-size: 12px;
    line-height: 1.5;
  }
  .th-breadcrumb__inner span:last-child,
  .th-txhero__crumb span:last-child {
    display: block;
    width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }
  .th-news-pg-grid { grid-template-columns: 1fr; }
  .th-pg__grid { grid-template-columns: 1fr; }
  .th-txhero { padding: 40px 0 32px; }
  .th-txhero__deco-icon { display: none; }
  .th-cattabs { position: static; }
  /* product detail */
  .th-pd-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .th-pd-hero { padding: 32px 0 40px; }
  .th-pd-keystats { grid-template-columns: repeat(2,1fr); }
  .th-pd-features { grid-template-columns: 1fr; }
  .th-pd-apps { grid-template-columns: repeat(2,1fr); }
  .th-pd-related__grid { grid-template-columns: 1fr; }
  .th-pd-tabs { top: 0; }
  .th-pd-tabs__title { display: none !important; }
  .th-pd-section { padding: 48px 0; }
  .th-pd-cta__btn { width: 100%; }
  .th-nav { display: none; }
  .th-hotline { display: none; }
  .th-hamburger { display: flex; }
  .th-hero { min-height: 480px; }
  .th-hero__content { min-height: 480px; padding-top: 48px; padding-bottom: 72px; }
  .th-hero h1 { font-size: 34px; }
  .th-hero__sub { font-size: 14px; margin-bottom: 28px; }
  .th-hero__copy-box { padding-left: 16px; }
  .th-products-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .th-news-grid { grid-template-columns: 1fr; }
  .th-certs-slider { padding: 0 34px; }
  .th-certs-slide { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .th-certs-slider__arrow { width: 34px; height: 34px; }
  .th-partners-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .th-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .th-features__grid { grid-template-columns: 1fr; gap: 16px; }
  .th-contact-form { padding: 24px; }
  .th-team-grid { grid-template-columns: 1fr; }
  .th-about-certs-grid { grid-template-columns: 1fr; }
  .th-cert-gallery { grid-template-columns: repeat(3,1fr); }
  .th-lb-arrow--prev { left: 8px; }
  .th-lb-arrow--next { right: 8px; }
  .th-lb-arrow { width: 40px; height: 40px; font-size: 14px; }
  /* single product */
  .th-spd-related__grid { grid-template-columns: repeat(2,1fr); }
  .th-spd-tabs { top: 0; }
  .th-spd-tabs__btn { padding: 14px 16px; font-size: 13px; }
  .th-spd__title { font-size: 22px; }
  .th-spd-contact__actions { flex-wrap: wrap; }
  .th-spd-lb__nav--prev { left: 8px; }
  .th-spd-lb__nav--next { right: 8px; }
  .th-spd-lb__nav { width: 40px; height: 40px; font-size: 14px; }
}
@media (max-width: 480px) {
  .th-products-grid { grid-template-columns: 1fr; }
  .th-stats-grid { grid-template-columns: 1fr; }
  .th-values-grid { grid-template-columns: 1fr; }
  .th-process { grid-template-columns: 1fr; }
  .th-cta-banner__btns { flex-direction: column; align-items: center; }
  .th-certs-slider { padding: 0 26px; }
  .th-certs-slide { grid-template-columns: 1fr; }
  .th-cert-gallery { grid-template-columns: repeat(2,1fr); }
  /* single product */
  .th-spd-related__grid { grid-template-columns: 1fr; }
  .th-spd__spec-chips { grid-template-columns: 1fr; }
  .th-spd__ctas { flex-direction: column; }
  .th-spd__btn { justify-content: center; }
}


/* 2026 checklist tuning */
.th-topbar{display:none!important;}
.th-section__title{text-transform:uppercase;letter-spacing:.4px;}
.th-product-card__img--cat{height:220px;background:#fff;padding:0;}
.th-product-card__img--cat img{width:100%;height:100%;object-fit:contain;padding:18px;}
.th-footer__company{font-weight:700;}
@media (max-width:1180px){.th-nav{gap:14px}.th-hotline{padding:9px 12px}.th-header .th-logo__img{max-width:145px;height:58px}}

/* Menu product item: force same weight/color as sibling menu links */
.th-nav__item--mega,
.th-nav__item--mega > .th-nav__toggle {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink) !important;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.th-nav__item--mega:hover > .th-nav__toggle {
  color: var(--red) !important;
}

/* Fix desktop product mega-menu hover bridge + keep Product styled like other top nav items */
.th-nav__item--mega {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink) !important;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
}
.th-nav__item--mega > .th-nav__toggle {
  color: inherit !important;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  padding: 0;
}
.th-nav__item--mega:hover,
.th-nav__item--mega:hover > .th-nav__toggle {
  color: var(--red) !important;
}
.th-nav__mega::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
  background: transparent;
}

/* Fix: keep product mega menu open while cursor travels from nav label to fixed panel */
.th-nav__item--mega:hover::before {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: var(--header-h, 90px);
  background: transparent;
  z-index: 299;
  pointer-events: auto;
}
.th-nav__item--mega:hover .th-nav__mega,
.th-nav__mega:hover {
  display: flex !important;
  justify-content: center;
  gap: 0;
}

/* Robust desktop mega-menu state: JS controls visibility to avoid sticky/ghost hover bugs */
.th-nav__item--mega::before,
.th-nav__item--mega:hover::before,
.th-nav__mega::before {
  display: none !important;
  content: none !important;
  pointer-events: none !important;
}
.th-nav__item--mega:hover .th-nav__mega,
.th-nav__mega:hover {
  display: none;
}
.th-nav__item--mega.is-open .th-nav__mega {
  display: flex !important;
  justify-content: center;
  gap: 0;
}
.th-nav__item--mega.is-open,
.th-nav__item--mega.is-open > .th-nav__toggle {
  color: var(--red) !important;
}

/* Font reference from demanac.com: Roboto + Noto Sans SC */
body,
button,
input,
select,
textarea,
.th-nav,
.th-mobile-nav {
  font-family: 'Roboto', 'Noto Sans SC', Arial, sans-serif;
}
h1,h2,h3,h4,h5,h6,
.th-section__title,
.th-hero__title,
.th-stat__num,
.th-partner-logo,
.th-page-hero__title,
.th-product-detail__title,
.th-archive-hero__title {
  font-family: 'Roboto', 'Noto Sans SC', Arial, sans-serif !important;
}

/* Font size tuning: make Deman-style typography easier to read */
body {
  font-size: 16px;
  line-height: 1.62;
}
.th-nav > a,
.th-nav__item--has-dropdown,
.th-nav__item--mega,
.th-nav__item--mega > .th-nav__toggle {
  font-size: 14.5px !important;
}
.th-nav__dropdown a,
.th-nav__mega-head,
.th-nav__mega-item {
  font-size: 14.5px !important;
}
.th-section__eyebrow,
.th-product-card__cat,
.th-news-card__date,
.th-breadcrumb {
  font-size: 13.5px;
}
.th-section__lead,
.th-hero__lead,
.th-page-hero__lead,
.th-product-detail__desc,
.th-content p,
.th-footer,
.th-footer a,
.th-footer p {
  font-size: 16px;
}
.th-product-card__body h3,
.th-news-card__title,
.th-cert-card__title {
  font-size: 18px;
  line-height: 1.35;
}
.th-link,
.th-btn,
.th-hotline__label,
.th-hotline__num {
  font-size: 14.5px;
}
@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .th-nav > a,
  .th-nav__item--has-dropdown,
  .th-nav__item--mega,
  .th-nav__dropdown a,
  .th-nav__mega-head,
  .th-nav__mega-item { font-size: 14px !important; }
  .th-section__lead,
  .th-hero__lead,
  .th-page-hero__lead,
  .th-product-detail__desc,
  .th-content p { font-size: 15.5px; }
}

/* Header actions: Deman-style search + compact hotline + language switch */
.th-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.th-header-search {
  display: flex;
  align-items: center;
  width: 180px;
  height: 40px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.th-header-search:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(0,174,235,.1);
}
.th-header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 4px 0 14px;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.th-header-search button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.th-hotline {
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
}
.th-hotline__text,
.th-hotline__label { display: none !important; }
.th-hotline__num {
  font-size: 15px;
  line-height: 1;
}
.th-header-lang {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  white-space: nowrap;
}
.th-header-lang a {
  color: var(--gray-500);
  transition: color .2s;
}
.th-header-lang a.active,
.th-header-lang a:hover {
  color: var(--red);
}
@media (max-width: 1180px) {
  .th-header__inner { gap: 18px; }
  .th-header-search { width: 150px; }
  .th-header-lang { padding: 0 8px; }
}
@media (max-width: 1024px) {
  .th-header-actions { display: none; }
}

/* Search icon + centered product search popup */
.th-header-search { display: none !important; }
.th-header-search-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  color: var(--red);
  background: #fff;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.th-header-search-btn:hover {
  border-color: var(--red);
  box-shadow: 0 6px 18px rgba(0,174,235,.14);
  color: var(--red-dark);
}
.th-search-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.th-search-modal.is-open { display: flex; }
.th-search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,18,24,.58);
  backdrop-filter: blur(3px);
}
.th-search-modal__box {
  position: relative;
  width: min(620px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
  animation: th-search-pop .18s ease-out;
}
@keyframes th-search-pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.th-search-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--gray-700);
  background: var(--gray-100);
}
.th-search-modal__box h3 {
  margin: 0 36px 20px 0;
  font-size: 26px;
  color: var(--ink);
}
.th-search-modal__form {
  display: flex;
  gap: 10px;
}
.th-search-modal__form input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 0 20px;
  font-size: 16px;
  outline: none;
}
.th-search-modal__form input[type="search"]:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(0,174,235,.1);
}
.th-search-modal__form button[type="submit"] {
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.th-search-modal__form button[type="submit"]:hover { background: var(--red-dark); }
body.th-search-open { overflow: hidden; }
@media (max-width: 600px) {
  .th-search-modal__box { padding: 28px 20px 22px; }
  .th-search-modal__form { flex-direction: column; }
  .th-search-modal__form button[type="submit"] { width: 100%; }
  .th-search-modal__box h3 { font-size: 22px; }
}

/* Refine search popup: cleaner, no title, external close button */
.th-search-modal__box {
  width: min(680px, 100%);
  padding: 12px;
  border-radius: 999px;
  overflow: visible;
}
.th-search-modal__close {
  top: -52px;
  right: 0;
  width: 42px;
  height: 42px;
  background: #fff;
  color: var(--red);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.75);
}
.th-search-modal__close:hover {
  background: var(--red);
  color: #fff;
}
.th-search-modal__box h3 { display: none !important; }
.th-search-modal__form {
  align-items: center;
  gap: 8px;
  width: 100%;
}
.th-search-modal__field {
  flex: 1;
  min-width: 0;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 0 20px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #fff;
}
.th-search-modal__field > i {
  color: var(--red);
  font-size: 17px;
  flex-shrink: 0;
}
.th-search-modal__form input[type="search"] {
  height: 54px;
  border: 0;
  box-shadow: none !important;
  padding: 0;
  background: transparent;
}
.th-search-modal__form input[type="search"]:focus {
  border: 0;
  box-shadow: none !important;
}
.th-search-modal__form button[type="submit"] {
  height: 56px;
  min-width: 132px;
  padding: 0 26px;
  box-shadow: 0 8px 22px rgba(0,174,235,.18);
}
@media (max-width: 600px) {
  .th-search-modal__box {
    border-radius: 24px;
    padding: 14px;
  }
  .th-search-modal__close {
    top: -50px;
    right: 4px;
  }
  .th-search-modal__form { gap: 10px; }
  .th-search-modal__field { width: 100%; }
}

/* Search popup: submit button inside input pill + more distant close button */
.th-search-modal__close {
  top: -68px;
  right: -18px;
}
.th-search-modal__form {
  display: block;
}
.th-search-modal__field {
  width: 100%;
  padding: 0 7px 0 20px;
  gap: 12px;
}
.th-search-modal__field input[type="search"] {
  flex: 1;
  min-width: 0;
}
.th-search-modal__field button[type="submit"] {
  height: 44px;
  min-width: 118px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(0,174,235,.18);
  flex-shrink: 0;
}
.th-search-modal__field button[type="submit"]:hover {
  background: var(--red-dark);
}
.th-search-modal__form > button[type="submit"] {
  display: none !important;
}
@media (max-width: 600px) {
  .th-search-modal__close {
    top: -62px;
    right: -2px;
  }
  .th-search-modal__field {
    height: auto;
    min-height: 56px;
    flex-wrap: nowrap;
  }
  .th-search-modal__field button[type="submit"] {
    min-width: 96px;
    padding: 0 14px;
  }
}

/* Quick contact buttons: place at page bottom instead of fixed viewport */
.th-float-btns {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 18px 0 24px;
  background: var(--black);
}
.th-float-btn {
  position: relative;
  transform: none !important;
}
.th-float-btn:hover {
  transform: translateY(-2px) !important;
}
.th-float-btn--phone::after {
  animation: none !important;
  display: none !important;
}
@media (max-width: 768px) {
  .th-float-btns {
    padding: 16px 0 22px;
  }
}

/* Quick contact buttons: keep old bottom-right placement, but anchor to page bottom (not viewport) */
body { position: relative; }
.th-float-btns {
  position: absolute !important;
  right: 18px !important;
  bottom: 20px !important;
  z-index: 20 !important;
  display: flex;
  flex-direction: column !important;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 0 !important;
  background: transparent !important;
}
.th-float-btn--phone::after {
  display: block !important;
  animation: thPulse 1.6s infinite !important;
}
@media (max-width: 768px) {
  .th-float-btns {
    right: 14px !important;
    bottom: 16px !important;
  }
}

/* About page dynamic blocks: center items from the middle instead of filling left-to-right */
.th-stats-grid,
.th-values-grid,
.th-process,
.th-team-grid,
.th-cert-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.th-stats-grid { gap: 18px; }
.th-stats-grid > .th-stat { flex: 1 1 220px; max-width: 280px; }

.th-values-grid { gap: 24px; }
.th-values-grid > .th-value-card { flex: 1 1 280px; max-width: 360px; }

.th-process { gap: 24px; }
.th-process > .th-process__step { flex: 1 1 180px; max-width: 220px; }

.th-team-grid { gap: 24px; }
.th-team-grid > .th-team-card { flex: 1 1 240px; max-width: 300px; }

.th-cert-gallery { gap: 16px; }
.th-cert-gallery > .th-cert-gallery__item { flex: 0 1 180px; max-width: 220px; }

@media (max-width: 768px) {
  .th-stats-grid > .th-stat,
  .th-values-grid > .th-value-card,
  .th-process > .th-process__step,
  .th-team-grid > .th-team-card,
  .th-cert-gallery > .th-cert-gallery__item {
    flex-basis: 100%;
    max-width: 420px;
  }

  .th-cert-gallery > .th-cert-gallery__item {
    flex-basis: calc(50% - 12px);
  }
}

/* Deman-style footer refresh */

/* Footer final color/layout override: keep parent selectors from forcing black */
.th-footer.th-footer--deman,
body .th-footer.th-footer--deman {
  background: var(--red) !important;
  color: rgba(255,255,255,.9) !important;
  padding: 0 !important;
  font-size: 15px;
  overflow: hidden;
}
.th-footer--deman .th-container { background: transparent !important; }
.th-footer--deman .th-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 54px 0 30px;
  border-bottom: 1px solid rgba(255,255,255,.22);
  background: transparent !important;
}
.th-footer--deman .th-footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 34px;
  padding: 64px 0 54px;
  background: transparent !important;
}
.th-footer--deman .th-footer__col { flex: 1 1 170px; min-width: 160px; background: transparent !important; }
.th-footer--deman .th-footer__contact { flex-basis: 230px; }
.th-footer--deman .th-footer__inquiry { flex-basis: 250px; min-width: 230px; }
.th-footer--deman .th-footer__logo { margin: 0; display: inline-flex; align-items: center; background: transparent !important; }
.th-footer--deman .th-logo__img--footer { height: 76px; max-width: 180px; object-fit: contain; filter: none !important; mix-blend-mode: normal !important; opacity: 1 !important; }
.th-footer--deman .th-footer__follow { display: flex; align-items: center; gap: 20px; color: #fff !important; font-size: 24px; font-weight: 600; }
.th-footer--deman .th-socials { margin: 0; gap: 18px; }
.th-footer--deman .th-socials a { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.18) !important; color: #fff !important; font-size: 17px; }
.th-footer--deman .th-socials a:hover { background: #fff !important; color: var(--red) !important; text-decoration: none; }
.th-footer--deman .th-footer__col h4 { font-size: 23px; line-height: 1.2; text-transform: none; letter-spacing: 0; margin: 0 0 24px; padding: 0; border: 0; color: #fff !important; }
.th-footer--deman .th-footer__col h4:after { display: none; }
.th-footer--deman .th-footer__col ul { list-style: none; margin: 0; padding: 0; }
.th-footer--deman .th-footer__col li { margin: 0 0 13px; color: rgba(255,255,255,.9) !important; }
.th-footer--deman .th-footer__col a,
.th-footer--deman .th-footer__col p,
.th-footer--deman .th-footer__contact-list span { color: rgba(255,255,255,.9) !important; }
.th-footer--deman .th-footer__col a { font-size: 15px; line-height: 1.45; text-decoration: none; }
.th-footer--deman .th-footer__col a:hover { color: #fff !important; text-decoration: underline; }
.th-footer--deman .th-footer__contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.th-footer--deman .th-footer__contact-list i { width: 38px; height: 38px; min-width: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16) !important; color: #fff !important; margin: 0; font-size: 15px; }
.th-footer--deman .th-footer__inquiry p { color: rgba(255,255,255,.78) !important; line-height: 1.7; margin: 0 0 22px; }
.th-footer--deman .th-footer__cta { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border: 1px solid rgba(255,255,255,.85); border-radius: 999px; color: #fff !important; text-decoration: none; font-weight: 700; transition: all .25s; }
.th-footer--deman .th-footer__cta:hover { background: #fff !important; color: var(--red) !important; text-decoration: none; }
@media(max-width:900px){.th-footer--deman .th-footer__top{flex-direction:column;align-items:flex-start}.th-footer--deman .th-footer__follow{font-size:20px;flex-wrap:wrap}}
@media(max-width:560px){.th-footer--deman .th-footer__grid{display:grid;grid-template-columns:1fr}.th-footer--deman .th-footer__top{padding-top:36px}.th-footer--deman .th-logo__img--footer{height:66px}.th-footer--deman .th-socials a{width:40px;height:40px}}

/* Footer logo: keep original header logo colors, no dark blend/filter */
.th-footer .th-logo__img--footer,
body .th-footer .th-logo__img--footer {
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  background: transparent !important;
}

/* Partner slider — homepage featured clients */
.th-partners-image {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}
.th-partners-image img {
  display: block;
  width: 100%;
  height: auto;
}
.th-partner-slider--hidden {
  display: none !important;
}
.th-partner-slider {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 58px 38px;
}
.th-partner-slider__viewport {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}
.th-partner-slider__track {
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
}
.th-partner-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 310px 1fr;
  min-height: 255px;
  background: #fff;
}
.th-partner-slide__media {
  min-height: 255px;
  background: linear-gradient(135deg, var(--gray-100), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
.th-partner-slide__media img {
  width: 100%;
  height: 100%;
  max-height: 205px;
  object-fit: contain;
  border-radius: 12px;
}
.th-partner-slide__media i { font-size: 54px; color: var(--red); opacity: .45; }
.th-partner-slide__body {
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.th-partner-slide__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.th-partner-slide__body h3 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
  color: var(--gray-900);
}
.th-partner-slide__clients {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.th-partner-slide__clients span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 700;
}
.th-partner-slider__arrow {
  position: absolute;
  top: calc(50% - 19px);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}
.th-partner-slider__arrow--prev { left: 0; }
.th-partner-slider__arrow--next { right: 0; }
.th-partner-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.th-partner-slider__dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--gray-300);
  padding: 0;
  cursor: pointer;
  transition: all .2s ease;
}
.th-partner-slider__dot.active {
  width: 26px;
  background: var(--red);
}
@media (max-width: 760px) {
  .th-partners-image {
    border-radius: 8px;
  }
  .th-partner-slider { padding: 0 0 34px; }
  .th-partner-slide { grid-template-columns: 1fr; }
  .th-partner-slide__media { min-height: 180px; }
  .th-partner-slide__body { padding: 24px 20px; }
  .th-partner-slide__body h3 { font-size: 23px; }
  .th-partner-slider__arrow { display: none; }
}

/* PC: show 3 partner categories per slide; mobile remains 1 */
@media (min-width: 761px) {
  .th-partner-slider {
    max-width: 1180px;
  }
  .th-partner-slider__viewport {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .th-partner-slider__track {
    gap: 18px;
  }
  .th-partner-slide {
    flex: 0 0 calc((100% - 36px) / 3);
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 18px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    overflow: hidden;
  }
  .th-partner-slide__media {
    min-height: 155px;
    padding: 18px;
  }
  .th-partner-slide__media img {
    max-height: 120px;
  }
  .th-partner-slide__body {
    padding: 22px;
    justify-content: flex-start;
  }
  .th-partner-slide__body h3 {
    font-size: 22px;
    margin-bottom: 14px;
  }
  .th-partner-slide__clients {
    gap: 8px;
  }
  .th-partner-slide__clients span {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* Hide partner slider media/image block */
.th-partner-slide__media {
  display: none !important;
}

/* Highlight partner category title */
.th-partner-slide__body h3 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 0 12px;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.th-partner-slide__body h3::before {
  content: '';
  width: 8px;
  height: 28px;
  border-radius: 999px;
  background: var(--red);
  flex: 0 0 8px;
}
.th-partner-slide__body h3::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), rgba(200, 16, 46, 0));
}
@media (min-width: 761px) {
  .th-partner-slide__body h3 {
    font-size: 24px;
    line-height: 1.25;
  }
}
@media (max-width: 760px) {
  .th-partner-slide__body h3 {
    font-size: 25px;
  }
}

/* Partner category title sizing: 19px / weight 500 / fixed 2-line height */
.th-partner-slide__body h3 {
  font-size: 19px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  min-height: calc(19px * 1.35 * 2);
  max-height: calc(19px * 1.35 * 2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (min-width: 761px), (max-width: 760px) {
  .th-partner-slide__body h3 {
    font-size: 19px !important;
    font-weight: 500 !important;
    min-height: calc(19px * 1.35 * 2);
    max-height: calc(19px * 1.35 * 2);
  }
}

/* Partner category title underline spacing */
.th-partner-slide__body h3 {
  padding-bottom: 16px;
}
.th-partner-slide__body h3::after {
  left: 0;
  bottom: 3px;
}

/* Fix partner title underline gap: keep line inside fixed title box */
.th-partner-slide__body h3 {
  min-height: calc((19px * 1.35 * 2) + 12px) !important;
  max-height: calc((19px * 1.35 * 2) + 12px) !important;
  padding-bottom: 12px !important;
  margin-bottom: 18px !important;
}
.th-partner-slide__body h3::after {
  left: 0 !important;
  bottom: 0 !important;
}

/* Normalize partner slider cards on mobile + fix title decoration with line clamp */
.th-partner-slide__body h3 {
  position: relative !important;
  display: -webkit-box !important;
  padding: 0 0 12px 18px !important;
  min-height: calc((19px * 1.35 * 2) + 12px) !important;
  max-height: calc((19px * 1.35 * 2) + 12px) !important;
  font-size: 19px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: var(--red) !important;
  text-transform: uppercase;
  letter-spacing: .4px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.th-partner-slide__body h3::before {
  content: '' !important;
  position: absolute;
  left: 0;
  top: 1px;
  width: 6px;
  height: 26px;
  border-radius: 999px;
  background: var(--red);
}
.th-partner-slide__body h3::after {
  content: '' !important;
  position: absolute;
  left: 0 !important;
  right: 0;
  bottom: 0 !important;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), rgba(200, 16, 46, 0));
}
@media (max-width: 760px) {
  .th-partner-slider__viewport {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .th-partner-slide {
    flex: 0 0 100%;
    min-height: auto;
    border-radius: 18px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    overflow: hidden;
    background: #fff;
  }
  .th-partner-slide__body {
    padding: 22px;
    justify-content: flex-start;
  }
  .th-partner-slide__clients {
    gap: 8px;
  }
  .th-partner-slide__clients span {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* Hide floating contact buttons - 2026-06-15 */
.th-float-btns{display:none!important;}

/* Hero theo đúng tỉ lệ ảnh 1920x960 (2:1) - 2026-06-16 (option C) */
.th-hero {
  min-height: 0 !important;
  height: auto !important;
  max-height: none;
  aspect-ratio: 1920 / 960;
  width: 100%;
}
/* Bỏ lớp phủ tối trên banner - 2026-06-15 */
.th-hero__overlay { display: none !important; }
