/*
Theme Name:   josam
Theme URI:    https://web3b.com
Description:  Child theme Flatsome cho JOSAM Việt Nam — dựng lại design HTML 261106_josam bằng element Flatsome native.
Author:       web3b
Author URI:   https://web3b.com
Template:     flatsome
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  josam
*/

/* ==========================================================================
   JOSAM — port design 261106_josam sang DOM Flatsome.
   Layout = element native (section/row/col/ux_banner/ux_image/ux_text/button/
   featured_box/ux_gallery/ux_stack/ux_hotspot); CSS chỉ port typography,
   giá trị option không biểu diễn được (clamp padding, gradient overlay,
   aspect-ratio, scroll panel, vị trí hotspot lẻ) và neutralizer default.

   Hệ width: nội dung = 1184px (design 1240 − 2×28).
   Row có gutter g: max-width = 1184 + g, col padding ngang = g/2,
   section padding ngang = 13px  →  content edge = 28px như design.
   Flatsome mặc định g = 30 → row 1214.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --tt-red: #ce0e2d;
  --tt-red-dark: #a50b24;
  --tt-ink: #1a1a1a;
  --tt-steel: #6b6e70;
  --tt-muted: #5b5e60;
  --tt-gray: #e6e7e8;
  --tt-alt: #f2f2f3;
  --tt-line: #dcddde;
  --tt-head: "Oswald", Arial, sans-serif;
  --tt-body: "Barlow", Arial, sans-serif;
  --tt-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --tt-shadow-md: 0 6px 18px rgba(0, 0, 0, 0.1);
  --tt-shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.14);
}

/* ------------------------------------------------------------------ base */
body,
body.light {
  background: #fff;
  color: var(--tt-ink);
  font-family: var(--tt-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.heading-font {
  margin: 0;
  color: var(--tt-ink);
  font-family: var(--tt-head);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(36px, 4.6vw, 56px); }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: clamp(18px, 1.5vw, 22px); }
h4 { font-size: 16px; }
h5 { font-size: 13px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
a:hover { color: var(--tt-red); }

strong { font-weight: 600; }

::selection { background: var(--tt-red); color: #fff; }

img { display: block; }

.tt-uppercase { text-transform: uppercase; }

/* ------------------------------------------------------------ containers */
#content .section,
#footer .section {
  padding-left: 13px;
  padding-right: 13px;
}

.section-content > .row {
  max-width: 1214px;
}

/* Flatsome .col mặc định padding 0 15px 30px — bỏ 30px dưới, giữ 15px ngang.
   Rule theo section (specificity class) sẽ override tiếp khi cần gutter khác. */
.section-content .col {
  padding-bottom: 0;
}

/* full-bleed (hero, cat strip, footer) */
#content .tt-flush,
#footer .tt-flush { padding-left: 0; padding-right: 0; }

#content .tt-row-full,
#footer .tt-row-full { max-width: 100%; }

/* section padding theo design (clamp — [section padding] chỉ 1 giá trị) */
.tt-pad-sec { padding-top: clamp(52px, 6vw, 84px); padding-bottom: clamp(52px, 6vw, 84px); }
.tt-pad-first { padding-top: 34px; padding-bottom: clamp(52px, 6vw, 84px); }
.tt-pad-calc { padding-top: clamp(42px, 5vw, 68px); padding-bottom: clamp(42px, 5vw, 68px); }
.tt-pad-quote { padding-top: clamp(40px, 4.5vw, 64px); padding-bottom: clamp(40px, 4.5vw, 64px); }
.tt-pad-features { padding-top: clamp(44px, 5vw, 70px); padding-bottom: clamp(44px, 5vw, 70px); }
.tt-sec-alt { background: var(--tt-alt); }

/* Flatsome .row::before/::after (clearfix) trở thành grid item khi row là grid
   → sinh track 0px + gap thừa. Tắt pseudo trong các grid row của design. */
.tt-pintro-row::before, .tt-pintro-row::after,
.tt-accintro-row::before, .tt-accintro-row::after,
.tt-gallery::before, .tt-gallery::after,
.tt-hero-row::before, .tt-hero-row::after,
.tt-cat-row::before, .tt-cat-row::after,
.tt-seg-row::before, .tt-seg-row::after,
.tt-catalog-row::before, .tt-catalog-row::after,
.tt-feature-row::before, .tt-feature-row::after,
.tt-related-row::before, .tt-related-row::after,
.tt-acc-row::before, .tt-acc-row::after,
.tt-footer__top::before, .tt-footer__top::after,
.tt-footer__links::before, .tt-footer__links::after,
.tt-quote .row::before, .tt-quote .row::after { display: none !important; }

/* --------------------------------------------------------------- buttons */
.button.tt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin: 0;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--tt-ink);
  font-family: var(--tt-head);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.68;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.button.tt-btn svg { flex: 0 0 auto; }
.button.tt-btn span { display: inline-flex; align-items: center; }

.button.tt-btn--sm { min-height: 44px; padding: 0 18px; font-size: 12px; }
.button.tt-btn--block { width: 100%; }

.button.tt-btn--red { background: var(--tt-red); border-color: transparent; color: #fff; }
.button.tt-btn--red:hover { background: var(--tt-red-dark); border-color: transparent; color: #fff; }

.button.tt-btn--gray { background: var(--tt-gray); border-color: var(--tt-gray); color: var(--tt-ink); }
.button.tt-btn--gray:hover { background: #d8d9da; border-color: #d8d9da; color: var(--tt-ink); }

.button.tt-btn--line { background: transparent; border-color: var(--tt-ink); color: var(--tt-ink); }
.button.tt-btn--line:hover { background: var(--tt-ink); border-color: var(--tt-ink); color: #fff; }

.button.tt-btn--line-light { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.button.tt-btn--line-light:hover { background: #fff; border-color: #fff; color: var(--tt-ink); }

.tt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tt-actions .button.tt-btn { margin: 0; }

/* ================================================================ HEADER */
#header,
#header .header-wrapper { background: #fff; }

#header .header-main {
  height: 89px;
  border-bottom: 1px solid var(--tt-line);
  box-shadow: none;
  transition: box-shadow 0.25s, height 0.25s;
}

#header .header-wrapper.stuck { box-shadow: var(--tt-shadow-md); }
#header .header-wrapper.stuck .header-main { height: 71px; }
#header .header-wrapper.stuck #logo img { height: 28px; }

#header .header-inner {
  max-width: 1214px;
  padding-left: 15px;
  padding-right: 15px;
  gap: 0;
  justify-content: flex-start;
}

/* logo: khối 175×34, cách nav 34px (design .sh-in gap:34px) */
#header #logo {
  width: auto;
  margin: 0 34px 0 0;
  flex: 0 0 auto;
}
#header #logo a { display: flex; align-items: center; }
#header #logo img {
  width: auto;
  height: 34px;
  max-height: none;
  transition: height 0.25s;
}

#header .flex-right { margin-left: auto; }

/* nav chính: gap 30px như .sh-nav của design */
#header .header-nav,
#header .header-nav-main {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}
#header .nav-right { gap: 18px; }

#header .header-nav-main > li { margin: 0; position: relative; }

#header .header-nav-main > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  color: var(--tt-ink);
  font-family: var(--tt-head);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.68;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* design: hover chỉ gạch chân, chỉ mục active mới đổi màu chữ */
#header .header-nav-main > li > a:hover { color: var(--tt-ink); }
#header .header-nav-main > li.current-menu-item > a,
#header .header-nav-main > li.current_page_item > a,
#header .header-nav-main > li.active > a { color: var(--tt-red); }

#header .header-nav-main > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--tt-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s;
}

#header .header-nav-main > li > a:hover::after,
#header .header-nav-main > li.active > a::after,
#header .header-nav-main > li.current-menu-item > a::after,
#header .header-nav-main > li.current-menu-parent > a::after,
#header .header-nav-main > li:hover > a::after { transform: scaleX(1); }

/* mũi tên: dùng icon native Flatsome (i.icon-angle-down), 14px như svg design */
#header .header-nav-main > li.has-dropdown > a > i,
#header .header-nav-main > li.menu-item-has-children > a > i {
  position: static;
  display: inline-block;
  margin: 0;
  color: var(--tt-steel);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
}
#header .header-nav-main > li.has-dropdown:hover > a > i { transform: rotate(180deg); }

/* dropdown: 300px, lệch trái -22px, cách item 16px, viền đỏ trên */
#header .header-nav-main > li > .nav-dropdown {
  display: block;
  min-width: 300px;
  padding: 12px 0 14px;
  border: 1px solid var(--tt-line);
  border-top: 2px solid var(--tt-red);
  background: #fff;
  box-shadow: var(--tt-shadow-lg);
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

/* trạng thái mở: Flatsome thêm .current-dropdown (JS) — giữ no-js fallback */
#header .header-nav-main > li.current-dropdown > .nav-dropdown,
#header .header-nav-main > li.has-dropdown:hover > .nav-dropdown {
  left: -22px;
  top: calc(100% + 16px);
  max-height: inherit;
  opacity: 1;
  visibility: visible;
  transform: none;
}

#header .nav-dropdown::before {
  content: "Sản phẩm";
  display: block;
  padding: 8px 22px 10px;
  color: var(--tt-steel);
  font-family: var(--tt-head);
  font-size: 11px;
  line-height: 1.68;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#header .nav-dropdown > li { margin: 0; }

#header .nav-dropdown > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 22px;
  border-left: 2px solid transparent;
  color: var(--tt-ink);
  font-family: var(--tt-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: normal;
  text-transform: none;
}

#header .nav-dropdown > li > a::after { display: none; }

#header .nav-dropdown > li:nth-child(1) > a::before { content: "01"; }
#header .nav-dropdown > li:nth-child(2) > a::before { content: "02"; }
#header .nav-dropdown > li:nth-child(3) > a::before { content: "03"; }
#header .nav-dropdown > li:nth-child(4) > a::before { content: "04"; }
#header .nav-dropdown > li:nth-child(5) > a::before { content: "05"; }

#header .nav-dropdown > li > a::before {
  color: var(--tt-steel);
  font-family: var(--tt-head);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
}

#header .nav-dropdown > li > a:hover {
  background: var(--tt-alt);
  border-left-color: var(--tt-red);
  color: var(--tt-red);
}
#header .nav-dropdown > li > a:hover::before { color: var(--tt-steel); }

/* phone trong header (design .sh-tel) */
#header .header-contact > li > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  color: var(--tt-ink);
  font-family: var(--tt-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.68;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
}

#header .header-contact > li > a i { color: var(--tt-red); font-size: 17px; line-height: 1; }
#header .header-contact > li > a:hover { color: var(--tt-red); }
#header .header-contact > li > a::after { display: none; }

/* CTA header (design .sh-cta .btn.btn-red.btn-sm) */
#header .header-button .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--tt-red);
  border-radius: 2px;
  background: var(--tt-red);
  color: #fff;
  font-family: var(--tt-head);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.68;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: none;
}

#header .header-button .button:hover { background: var(--tt-red-dark); border-color: var(--tt-red-dark); color: #fff; }

/* icon burger/phone mobile */
#header .nav-icon > a,
#header .mobile-nav .header-contact-wrapper .header-button > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--tt-line);
  border-radius: 2px;
  color: var(--tt-ink);
}

#header .mobile-nav .header-contact-wrapper .header-button > a { color: var(--tt-red); }

/* nút gọi trong mobile header (html-3) */
#header .mobile-nav .html_top_right_text .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--tt-line);
  border-radius: 2px;
  background: transparent;
  color: var(--tt-red);
  font-size: 19px;
}
#header .mobile-nav .html_top_right_text .button span { display: none; }
#header .mobile-nav .html_top_right_text .button i { margin: 0; }

@media (max-width: 849px) {
  #header .header-main { height: 72px; }
  #header .header-inner { padding-left: 28px; padding-right: 28px; }
  #header.stuck .header-main { height: 70px; }
  #header .header-inner { position: relative; min-height: 72px; gap: 0; }
  #header #logo {
    position: absolute;
    left: 50%;
    margin: 0;
    order: 2;
    transform: translateX(-50%);
  }
  #header #logo a > img,
  #header #logo img,
  #header.stuck #logo a > img,
  #header.stuck #logo img { height: 26px; }
  #header .flex-left { order: 1; flex: 0 0 auto; }
  #header .flex-right { order: 3; flex: 0 0 auto; margin-left: auto; }
}

/* off-canvas drawer (Flatsome native) */
#main-menu.off-canvas .mfp-content,
.off-canvas-left .mfp-content { width: min(390px, 88vw); }

.off-canvas .sidebar-menu { background: #fff; padding: 20px 24px 26px; display: flex; flex-direction: column; }
#main-menu .nav-sidebar { border-top: 1px solid var(--tt-line); }

/* design: nút đóng nằm trong panel (drawer-top), không có X ngoài overlay */
.mfp-close { display: none !important; }

.tt-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.tt-drawer-brand { display: inline-flex; align-items: center; }
.tt-drawer-logo,
.tt-drawer-brand img { width: auto; height: 26px; max-height: 26px; max-width: 190px; object-fit: contain; }
.tt-drawer-close {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--tt-line); border-radius: 2px;
  background: none; color: var(--tt-ink); cursor: pointer;
}
.tt-drawer-close:hover { border-color: var(--tt-ink); }

/* sub-menu trong drawer: design luôn mở, thụt lề + viền đỏ */
#main-menu .nav-sidebar .sub-menu {
  display: block !important;
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  padding: 0 0 0 16px !important;
  margin: 6px 0 10px !important;
  border: 0;
  border-left: 2px solid var(--tt-red);
  background: transparent;
  box-shadow: none;
}
#main-menu .nav-sidebar .sub-menu li { margin: 0; }
#main-menu .nav-sidebar .sub-menu a {
  padding: 15px 2px !important;
  border: 0 !important;
  border-bottom: 1px solid #efefef !important;
  color: var(--tt-muted);
  font-family: var(--tt-head);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}
#main-menu .nav-sidebar .toggle { display: none !important; }
.off-canvas .nav-sidebar.nav-vertical > li > a {
  padding: 15px 2px;
  border-bottom: 1px solid var(--tt-line);
  color: var(--tt-ink);
  font-family: var(--tt-head);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.off-canvas .nav-sidebar.nav-vertical > li > a:hover { color: var(--tt-red); }
.off-canvas .nav-sidebar .sub-menu { padding-left: 16px; border-left: 2px solid var(--tt-red); margin: 6px 0 10px; }
.off-canvas .nav-sidebar .sub-menu a { color: var(--tt-muted); font-family: var(--tt-body); font-size: 13px; letter-spacing: 0.04em; }

.off-canvas .sidebar-menu .html_top_right_text { margin-top: auto; padding-top: 22px; }
.off-canvas .sidebar-menu .html_top_right_text .button,
.off-canvas .sidebar-menu .header-button-1 .button {
  width: 100%;
  min-height: 50px;
  margin: 0 0 10px;
  padding: 0 18px;
  border-radius: 2px;
  font-family: var(--tt-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.off-canvas .sidebar-menu .html_top_right_text .button { border-color: var(--tt-red); background: var(--tt-red); color: #fff; }
.off-canvas .sidebar-menu .header-button-1 .button { border: 1px solid var(--tt-ink); background: transparent; color: var(--tt-ink); }

/* ================================================================ FOOTER */
#footer .tt-footer { background: var(--tt-red); color: #fff; font-size: 14px; line-height: 1.68; }
#footer .tt-footer .col-inner { color: #fff; }

#footer .tt-footer__top {
  display: grid;
  grid-template-columns: 1.05fr 2.1fr;
  gap: clamp(30px, 5vw, 70px);
  max-width: 1184px;
  align-items: stretch;
  padding-top: clamp(38px, 4.5vw, 58px);
  padding-bottom: clamp(38px, 4.5vw, 58px);
}

#footer .tt-footer__brand p {
  max-width: 42ch;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13.5px;
  line-height: 1.72;
}

#footer .tt-footer__logo { margin-bottom: 18px; }
#footer .tt-footer__logo img { width: auto; height: 34px; }

#footer .tt-footer__contact { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: rgba(255, 255, 255, 0.92); }
#footer .tt-footer__contact li {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
}
#footer .tt-footer__contact b { font-weight: 600; }
#footer .tt-footer__contact a { color: #fff; }
#footer .tt-footer__contact a:hover { text-decoration: underline; }

#footer .tt-footer__social { display: flex; gap: 10px; margin-top: 20px; }
#footer .tt-footer__social .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}
#footer .tt-footer__social .button > span { display: none; }
#footer .tt-footer__social .button i {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
}
#footer .tt-footer__social .button:hover { background: #fff; border-color: #fff; color: var(--tt-red); }

/* back-to-top: design .backtop = 46x46 nền ink, icon trắng, radius 2 */
#top-link.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--tt-ink);
  color: #fff;
  box-shadow: none;
}
#top-link.back-to-top:hover { background: var(--tt-red); color: #fff; }
#top-link.back-to-top i {
  position: static;
  margin: 0;
  font-size: 20px;
  line-height: 1;
}

#footer .tt-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  max-width: none;
}
#footer .tt-footer__links > .col { padding: 0; max-width: none; flex-basis: auto; }
#footer .tt-footer__top > .col { max-width: none; flex-basis: auto; padding: 0; }

#footer .tt-footer h4 {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--tt-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#footer .tt-footer__links ul { margin: 0; padding: 0; list-style: none; }
#footer .tt-footer__links li {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
}
#footer .tt-footer__links a { color: rgba(255, 255, 255, 0.92); }
#footer .tt-footer__links a:hover { color: #fff; text-decoration: underline; }

#footer .absolute-footer {
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--tt-red);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

#footer .absolute-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 1214px;
  padding: 16px 15px 18px;
  text-align: left;
}

#footer .absolute-footer .footer-primary,
#footer .absolute-footer .footer-secondary { float: none; padding: 0; }
#footer .absolute-footer .copyright-footer { display: inline; }
#footer .absolute-footer .footer-secondary { order: 2; }
#footer .absolute-footer .footer-text { color: rgba(255, 255, 255, 0.82); }
#footer .absolute-footer .footer-text p { margin: 0; }
#footer .tt-sep { margin-left: 18px; }

/* thanh hành động cố định mobile (trong footer block) */
.tt-mbar { display: none; }
.tt-mbar svg { flex: 0 0 auto; }

/* ============================================================ HOME HERO */
.tt-home-hero { background: #ececec; overflow: hidden; }

.tt-home-hero .row.tt-hero-row {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  max-width: 100%;
  height: clamp(500px, 62vh, 660px);
  margin: 0;
}

.tt-hero-row > .col { max-width: none; flex-basis: auto; min-height: 0; }

.tt-home-hero .col { display: flex; padding: 0; }
.tt-home-hero .col-inner { display: flex; flex-direction: column; min-width: 0; width: 100%; }

/* cột ảnh */
.tt-home-hero__media { position: relative; overflow: hidden; background: #ddd; }
.tt-home-hero__media .banner,
.tt-home-hero__media .banner .banner-inner,
.tt-home-hero__media .banner .banner-bg { height: 100%; }
.tt-home-hero__media .banner { padding-top: 0 !important; background: #ddd; }
.tt-home-hero__media .banner .banner-bg img { object-fit: cover; object-position: center 46%; }

/* hotspot số 1·2·3 (ux_hotspot) */
.tt-home-hero .hotspot-wrapper { z-index: 3; transform: translate(-50%, -50%); }
.tt-home-hero .hotspot-wrapper .hotspot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 7px rgba(206, 14, 45, 0.16);
  color: var(--tt-red);
  font-family: var(--tt-head);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  opacity: 1;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.tt-home-hero .hotspot-wrapper .hotspot i { display: none; }
.tt-home-hero .hotspot-wrapper .hotspot::before { font-family: var(--tt-head); }
.tt-home-hero__dot--1 .hotspot::before { content: "1"; }
.tt-home-hero__dot--2 .hotspot::before { content: "2"; }
.tt-home-hero__dot--3 .hotspot::before { content: "3"; }

.tt-home-hero .hotspot-wrapper:hover .hotspot,
.tt-home-hero .hotspot-wrapper.is-active .hotspot {
  background: var(--tt-red);
  color: #fff;
  box-shadow: 0 0 0 7px rgba(206, 14, 45, 0.28);
}

/* vị trí lẻ đo từ design (class position của Flatsome chỉ có bước 5%) */
.tt-home-hero__dot--1 { left: 72% !important; top: 62% !important; right: auto !important; bottom: auto !important; }
.tt-home-hero__dot--2 { left: 27% !important; top: 47% !important; right: auto !important; bottom: auto !important; }
.tt-home-hero__dot--3 { left: 55% !important; top: 80% !important; right: auto !important; bottom: auto !important; }

/* cột panel */
.tt-home-hero__panel { background: #1f1c1d; color: #fff; }
.tt-home-hero__panel .col-inner { display: flex; flex-direction: column; height: 100%; max-height: 100%; min-height: 0; overflow: hidden; }

.tt-home-hero__head {
  flex: 0 0 auto;
  padding: clamp(20px, 2.4vw, 30px) clamp(22px, 2.6vw, 34px) 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tt-home-hero__panel .tt-tag {
  margin: 0;
  color: var(--tt-red);
  font-family: var(--tt-head);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tt-home-hero__head .tt-tag { color: #f0b3bd; }

.tt-home-hero__hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 9px 0 0;
  color: #c9cacc;
  font-family: var(--tt-head);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.tt-home-hero__hint svg { flex: 0 0 auto; color: var(--tt-red); }

.tt-home-hero__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.tt-home-hero__scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: block;
  height: 42px;
  background: linear-gradient(180deg, #1f1c1d 42%, rgba(31, 28, 29, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.tt-home-hero__body.is-scrolled .tt-home-hero__scrim { opacity: 1; }

#content .tt-home-hero .tt-home-hero__list {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 16px clamp(22px, 2.6vw, 34px) 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 30px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 30px), transparent);
}
.tt-home-hero__list > .col { padding: 0; }
.tt-home-hero__list::-webkit-scrollbar { width: 5px; }
.tt-home-hero__list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); }

.tt-home-hero__item {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.tt-home-hero__item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.tt-home-hero__item .img { margin: 0 0 11px; }
.tt-home-hero__item .img-inner { background: #2a2627; }
.tt-home-hero__item h2 { margin-bottom: 5px; color: #fff; font-size: 24px; transition: color 0.2s; }
.tt-home-hero__item:hover h2 { color: #f0b3bd; }
.tt-home-hero__item .tt-tag { margin-bottom: 8px; color: #f0b3bd; }
.tt-home-hero__item p { margin: 0; color: #c9cacc; font-size: 13.5px; }

.tt-home-hero__cta {
  flex: 0 0 auto;
  line-height: 1.68;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: var(--tt-red);
  color: #fff;
  font-family: var(--tt-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.tt-home-hero__cta:hover { background: var(--tt-red-dark); color: #fff; }

/* ============================================================ CAT STRIP */
.tt-cat-strip { border-top: 1px solid var(--tt-line); border-bottom: 1px solid var(--tt-line); background: #fff; }
.tt-cat-strip .tt-cat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 100%; margin: 0; }
.tt-cat-strip .tt-cat-row > .col { max-width: none; flex-basis: auto; }
.tt-cat-strip .col { padding: 0; border-right: 1px solid var(--tt-line); }
.tt-cat-strip .col:last-child { border-right: 0; }
.tt-cat-strip .col > a { display: block; height: 100%; }
.tt-cat-strip .col > a:hover { background: var(--tt-alt); }

.tt-cat-strip .icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
  text-align: center;
}
.tt-cat-strip .icon-box-text { text-align: center; }

.tt-cat-strip .icon-box-img { width: 44px; margin: 0 auto; }
.tt-cat-strip .has-icon-bg .icon { height: 0; padding-top: 100%; position: relative; }
.tt-cat-strip .has-icon-bg .icon .icon-inner {
  border: 1px solid var(--tt-line);
  border-radius: 50%;
  color: var(--tt-ink);
}
.tt-cat-strip .icon-box:hover .has-icon-bg .icon .icon-inner { background: transparent; }
.tt-cat-strip .has-icon-bg .icon img,
.tt-cat-strip .has-icon-bg .icon svg {
  width: 22px;
  height: 22px;
  left: 50%;
  margin: 0 0 0 -11px;
  padding: 0;
  object-fit: contain;
  transform: translateY(-50%);
}
.tt-cat-strip .has-icon-bg .icon svg { fill: none !important; }
.tt-cat-strip .has-icon-bg .icon svg * {
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.6;
}

.tt-cat-strip .icon-box-text { display: block; width: 100%; }
.tt-cat-strip h5 {
  margin: 0 0 8px;
  color: var(--tt-ink);
  font-family: var(--tt-head);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tt-cat-strip p { margin: 0; color: var(--tt-muted); font-size: 12.5px; line-height: 1.68; }

/* ============================================================= SEGMENTS */
.tt-home-segments { background: #fff; }
.tt-home-segments .tt-seg-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1206px; margin-top: 26px; row-gap: 22px; }
.tt-home-segments .tt-seg-row > .col { max-width: none; flex-basis: auto; padding: 0 11px; }
.tt-home-segments .banner { height: 330px; min-height: 330px; }

.tt-home-segments .banner .overlay {
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(15, 15, 15, 0.05) 35%, rgba(15, 15, 15, 0.8));
}
.tt-home-segments .banner .banner-bg img { transition: transform 0.6s; }
.tt-home-segments .banner:hover .banner-bg img { transform: scale(1.04); }

.tt-home-segments .banner-layers { max-width: 100%; }
.tt-home-segments .text-box { width: 100%; }
.tt-home-segments .text-box .text-inner { padding: 0; }
.tt-home-segments .text-box .text-box-content { background: transparent; }
.tt-home-segments h3 { margin: 0 0 6px; color: #fff; font-family: var(--tt-head); font-size: 22px; font-weight: 600; line-height: 1.06; }
.tt-home-segments p { margin: 0 0 12px; color: var(--tt-gray); font-size: 13.5px; }

/* =========================================================== CALCULATOR */
.tt-home-calc { background: var(--tt-alt); }
.tt-home-calc .tt-calc {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--tt-line);
  background: #fff;
}
.tt-calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tt-calc__field { display: block; margin: 0; }
.tt-calc__field span {
  display: block;
  margin-bottom: 6px;
  color: var(--tt-steel);
  font-family: var(--tt-head);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tt-calc__field input {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c9cacc;
  border-radius: 0;
  background: #fff;
  color: var(--tt-ink);
  font-family: var(--tt-body);
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  box-shadow: none;
}
.tt-calc__echo { display: block; margin-top: 6px; color: var(--tt-muted); font-size: 12px; }
.tt-calc__out {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 44px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--tt-line);
}
.tt-calc__out b { color: var(--tt-red); font-family: var(--tt-head); font-size: 30px; font-weight: 600; line-height: 1; }
.tt-calc__out span { color: var(--tt-muted); font-size: 13px; }
.tt-calc__small b { font-size: 22px; }
.tt-calc__note { margin-top: 14px; color: var(--tt-steel); font-size: 12px; }

.tt-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--tt-red);
  color: var(--tt-red);
  font-family: var(--tt-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tt-sec-head { max-width: 820px; margin-bottom: clamp(24px, 3vw, 38px); }
.tt-sec-head h2 { margin-bottom: 12px; }

.tt-lead {
  max-width: 66ch;
  color: var(--tt-muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.72;
}
.tt-lead--h2 {
  margin: 10px 0 12px;
  color: var(--tt-ink);
  font-family: var(--tt-head);
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.32;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ============================================================ CATALOGUES */
.tt-home-catalogs .tt-catalog-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1204px; }
.tt-home-catalogs .tt-catalog-row > .col { max-width: none; flex-basis: auto; padding: 0 10px; }
.tt-home-catalogs .tt-catalog { display: flex; }
.tt-home-catalogs .tt-catalog > .col-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--tt-line);
  background: #fff;
}
.tt-home-catalogs .tt-catalog .img { margin: 0; }
.tt-home-catalogs .tt-catalog__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 18px;
}
.tt-home-catalogs .tt-catalog__body h3 { font-size: clamp(18px, 1.5vw, 22px); }
.tt-home-catalogs .tt-catalog__body .button { margin-top: auto; width: 100%; }

/* ================================================================ QUOTE */
.tt-quote { background: var(--tt-alt); }
.tt-quote .section-content { font-size: 0; }
.tt-quote .col { padding: 0; }
.tt-quote .col-inner { font-size: 16px; }
.tt-quote h2 { color: var(--tt-red); font-size: clamp(22px, 2.4vw, 28px); }
.tt-quote .tt-quote__head p { margin: 6px 0 0; color: var(--tt-muted); font-size: 14px; }
.tt-quote .wpcf7 { max-width: 900px; margin: 22px 0 0; }
.tt-quote .wpcf7 form {
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  background: #fff;
}

.tt-quote .tt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tt-quote .tt-field { display: block; width: 100%; margin: 0 0 14px; }
.tt-quote .tt-label {
  display: block;
  margin-bottom: 6px;
  color: var(--tt-steel);
  font-family: var(--tt-head);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tt-quote .tt-field .wpcf7-form-control-wrap { display: block; }
.tt-quote .tt-field input,
.tt-quote .tt-field select,
.tt-quote .tt-field textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c9cacc;
  border-radius: 0;
  background: #fff;
  color: var(--tt-ink);
  font-family: var(--tt-body);
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  box-shadow: none;
  text-shadow: none;
}
.tt-quote .tt-field textarea { min-height: 92px; resize: vertical; }
.tt-quote .tt-field input:focus,
.tt-quote .tt-field select:focus,
.tt-quote .tt-field textarea:focus { border-color: var(--tt-red); outline: 1px solid var(--tt-red); outline-offset: 0; }

.tt-quote .tt-consent { display: block; margin: 4px 0 16px; color: var(--tt-muted); font-size: 13px; }
.tt-quote .tt-consent .wpcf7-form-control-wrap { display: block; }
.tt-quote .tt-consent .wpcf7-list-item { margin: 0; }
.tt-quote .tt-consent label { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.tt-quote .tt-consent input[type="checkbox"] { width: 16px; height: 16px; margin: 3px 0 0; flex: 0 0 auto; min-height: 0; }
.tt-quote .tt-consent .wpcf7-list-item-label { font-size: 13px; color: var(--tt-muted); }

.tt-quote .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 0;
  margin: 0;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--tt-red);
  color: #fff;
  font-family: var(--tt-head);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.68;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: none;
  cursor: pointer;
}
.tt-quote .wpcf7-submit:hover { background: var(--tt-red-dark); border-color: transparent; }
.tt-quote .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 0;
  border-left: 3px solid #2e7d32;
  border-radius: 0;
  background: #eaf5ec;
  color: #1b5e20;
  font-size: 14px;
}
.tt-quote .wpcf7-spinner { display: none; }
.tt-quote .wpcf7-not-valid-tip { color: var(--tt-red); font-size: 12px; margin-top: 4px; }

/* ========================================================== PAGE HERO */
.tt-page-hero .banner { min-height: 430px; background: #ddd; }
.tt-page-hero .banner-bg img { object-fit: cover; }
.tt-page-hero .banner .overlay {
  background-color: transparent !important;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 34%, rgba(255, 255, 255, 0.3) 66%, rgba(255, 255, 255, 0) 100%);
}
.tt-page-hero .banner-layers { max-width: 1214px; margin: 0 auto; padding: 0 15px; }
.tt-page-hero .text-box { width: 100%; }
.tt-page-hero .text-box .text-inner { padding: 0; }
.tt-page-hero .text-box-content { background: transparent; }
.tt-page-hero h1 { max-width: 18ch; font-size: clamp(28px, 3.6vw, 44px); }
.tt-page-hero .tt-lead { max-width: 54ch; margin-top: 12px; }

/* ============================================================= PRODROW */
.tt-alignment-products .row { max-width: 1184px; padding: 34px 0; border-bottom: 1px solid var(--tt-line); margin: 0 auto; }
.tt-alignment-products .row:first-child { padding-top: 0; }
.tt-alignment-products .row:last-child { border-bottom: 0; }

.tt-alignment-products .col-media { flex: 0 0 300px; max-width: 300px; padding: 0; }
.tt-alignment-products .col-media .img { margin: 0; }
.tt-alignment-products .col-media .img-inner { background: #f4f4f5; }
.tt-alignment-products .col-media .img-inner img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.tt-alignment-products .col-body { flex: 1 1 0; min-width: 0; padding: 0 0 0 clamp(24px, 4vw, 56px); }
.tt-alignment-products h2 { margin-bottom: 8px; font-size: 26px; }
.tt-alignment-products .tt-tag {
  margin-bottom: 12px;
  color: var(--tt-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.tt-alignment-products p { color: var(--tt-ink); }
.tt-alignment-products .tt-actions { margin-top: 18px; }

/* ================================================================ PROSE */
.tt-prose { max-width: 880px; }
.tt-prose h2 { margin-bottom: 14px; }
.tt-prose h2:not(:first-child) { margin-top: 40px; }
.tt-prose p { color: var(--tt-muted); font-size: 16px; line-height: 1.75; }
.tt-prose strong { font-weight: 600; }

/* product intro (pintro) */
.tt-product-single-intro .tt-pintro-row { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 60px); max-width: 1184px; align-items: center; padding-top: 42px; }
.tt-product-single-intro .tt-pintro-row > .col { max-width: none; flex-basis: auto; padding: 0; }
.tt-product-single-intro h1 { font-size: clamp(30px, 3.6vw, 44px); }
.tt-product-single-intro .tt-tag { margin: 8px 0 20px; color: var(--tt-muted); }
.tt-product-single-intro .tt-thumb-img .img { margin: 0; }
.tt-product-single-intro .tt-thumb-img .img-inner { background: #f4f4f5; }
.tt-product-single-intro .tt-thumb-img .img-inner img { object-fit: contain; }

.tt-mt-m { margin-top: 26px; }
.tt-mt-s { margin-top: 14px; }

.tt-wide-photo__img .img { margin: 0; }
.tt-wide-photo__img .img-inner { padding-top: 0 !important; }
.tt-wide-photo__img img { width: 100%; height: auto; position: static; }

/* ============================================================= FEATURES */
.tt-product-single-features { background: var(--tt-alt); }
.tt-product-single-features h2 { margin-bottom: 26px; font-size: clamp(22px, 2.4vw, 30px); text-align: center; }
.tt-product-single-features .tt-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1184px;
  margin: 0 auto;
}
#content .tt-product-single-features .tt-feature-row + .tt-feature-row { margin-top: 14px; }
#content .tt-product-single-features .tt-feature-row > .col { max-width: none; flex-basis: auto; padding: 0; display: flex; }
#content .tt-product-single-features .tt-feature-row > .col > .col-inner { display: flex; flex-direction: column; width: 100%; }
#content .tt-product-single-features .tt-feature { flex: 1 1 auto; }
.tt-product-single-features .tt-feature {
  height: 100%;
  padding: 18px 18px 20px;
  border: 1px solid #b9babb;
  background: #fff;
}
.tt-product-single-features .tt-feature h3 { margin-bottom: 8px; font-size: 15px; }
.tt-product-single-features .tt-feature p { margin: 0; color: var(--tt-muted); font-size: 13.5px; }

/* ================================================================= MEDIA */
.tt-media2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.tt-media2 .tt-video,
.tt-media2 .img-inner { background: #111; }
.tt-media2 .tt-video img { opacity: 0.86; transition: opacity 0.2s; }
.tt-media2 .tt-video:hover img { opacity: 1; }
.tt-media2 .overlay-icon { padding-left: 4px; }
.tt-media2.tt-media2--one { grid-template-columns: 1fr; }
.tt-media2 > * { margin: 0 !important; }

.tt-video { position: relative; display: block; }
.tt-video .img { margin: 0; background: #111; }
.tt-video .img-inner img { opacity: 0.86; transition: opacity 0.2s; }
.tt-video:hover .img-inner img { opacity: 1; }
.tt-video .overlay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: rgba(206, 14, 45, 0.94);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  opacity: 1;
}
.tt-video .overlay-icon i { top: 0; font-size: 20px; padding-left: 4px; }
.tt-video .overlay-icon i::before { content: "\25B6"; }

#content .tt-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: none; margin: 22px 0 0; }
.tt-gallery > .col { max-width: none; flex-basis: auto; padding: 0; margin: 0; }
.tt-gallery .box { margin: 0; }
.tt-gallery .box-text { display: none; }
.tt-gallery .box-image { padding: 0; }
.tt-gallery .overlay { display: none; }
.tt-gallery .gallery-col .col-inner { overflow: hidden; }

/* ========================================================== BROCHURES */
.tt-brochures { display: grid; gap: 10px; max-width: 860px; margin-top: 20px; }
.tt-brochure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--tt-red);
  color: #fff;
  font-family: var(--tt-head);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tt-brochure:hover { background: var(--tt-red-dark); color: #fff; }

/* ============================================================ RELATED */
.tt-related { background: var(--tt-alt); }
.tt-related .tt-related-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1208px; margin-top: 24px; }
.tt-related .tt-related-row > .col { max-width: none; flex-basis: auto; padding: 0 12px; }
.tt-related .tt-pcard { display: flex; }
.tt-related .tt-pcard > .col-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--tt-line);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.tt-related .tt-pcard:hover > .col-inner { border-color: var(--tt-ink); box-shadow: var(--tt-shadow-md); }
.tt-related .tt-pcard .img { margin: 0; overflow: hidden; background: var(--tt-gray); }
.tt-related .tt-pcard .img-inner img { transition: transform 0.6s; }
.tt-related .tt-pcard:hover .img-inner img { transform: scale(1.05); }
.tt-related .tt-pcard__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px; }
.tt-related h3 { font-size: 20px; }
.tt-related h3 a:hover { color: var(--tt-red); }
.tt-related .tt-pcard__sub {
  margin: 0;
  color: var(--tt-red);
  font-family: var(--tt-head);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tt-related .tt-pcard__body .tt-actions { margin-top: auto; }

/* ======================================================== ACCESSORIES */
.tt-accessories-intro .tt-accintro-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 4vw, 60px);
  max-width: 1184px;
  align-items: center;
  padding-top: 42px;
}
.tt-accessories-intro .tt-accintro-row > .col { max-width: none; flex-basis: auto; padding: 0; }
.tt-accessories-intro .tt-pic .img { margin: 0; }
.tt-accessories-intro .tt-pic .img-inner { overflow: hidden; }

.tt-accessories-grid .tt-acc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1208px; row-gap: 26px; }
.tt-accessories-grid .tt-acc-row > .col { max-width: none; flex-basis: auto; padding: 0 12px; }
#content .tt-accessories-grid .tt-acc-row + .tt-acc-row { margin-top: 26px; }
.tt-accessories-grid .tt-acc > .col-inner { display: flex; flex-direction: column; height: 100%; }
.tt-accessories-grid .tt-acc .img { margin: 0; overflow: hidden; }
.tt-accessories-grid h3 { margin: 14px 0 8px; color: var(--tt-red); font-size: 16px; letter-spacing: 0.04em; }
.tt-accessories-grid p { margin: 0 0 14px; color: var(--tt-muted); font-size: 13.5px; }
.tt-accessories-grid .button.tt-btn { align-self: flex-start; margin-top: auto; }

/* ============================================================= HELPERS */
/* .tag của design: 12px, uppercase, đỏ, margin 0 */
.tt-tag {
  margin: 0;
  color: var(--tt-red);
  font-family: var(--tt-head);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* back to top native */
.back-to-top {
  right: 22px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 2px;
  background: var(--tt-ink);
  color: #fff;
}
.back-to-top:hover { background: var(--tt-red); }

/* =========================================================== RESPONSIVE */
@media (max-width: 1180px) {
  .tt-home-catalogs .tt-catalog-row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
  .tt-home-catalogs .tt-catalog-row > .col { padding: 0 10px 20px; }
}

@media (max-width: 1100px) {
  #header .nav > li > a { font-size: 12px; letter-spacing: 0.06em; }
  #header .header-nav-main > li { margin-right: 18px; }
  #header .header-contact > li > a span { display: none; }
}

@media (max-width: 900px) {
  .tt-home-hero .row.tt-hero-row { grid-template-columns: 1fr; height: auto; }
  .tt-home-hero__media { height: 340px; }
  .tt-home-hero__panel { height: auto; }
  .tt-home-hero__head { padding-bottom: 10px; }
  .tt-home-hero__hint { display: none; }
  .tt-home-hero__body { flex: 0 0 auto; }
  .tt-home-hero__body > .ux-html { display: none; }
  .tt-home-hero__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    flex: 0 0 auto;
    height: auto;
    padding-bottom: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .tt-home-hero__list > .col { flex: 0 0 min(300px, 74vw); width: auto; }
  .tt-home-hero__item { margin: 0; padding: 0; border-bottom: 0; }
  .tt-home-hero__item h2 { font-size: 21px; }
  .tt-home-hero__item p:not(.tt-tag) { display: none; }
  .tt-home-hero__cta { display: none; }

  .tt-home-segments .tt-seg-row { grid-template-columns: 1fr; max-width: 100%; }
  .tt-cat-strip .tt-cat-row { grid-template-columns: 1fr 1fr; }
  .tt-cat-strip .col:nth-child(2n) { border-right: 0; }
  .tt-cat-strip .col:nth-child(n + 3) { border-top: 1px solid var(--tt-line); }

  .tt-product-single-features .tt-feature-row { grid-template-columns: 1fr 1fr; }
  .tt-alignment-products .row { display: block; max-width: 100%; }
  .tt-alignment-products .col-media { max-width: 100%; margin-bottom: 20px; }
  .tt-alignment-products .col-body { padding: 0; }
  .tt-media2 { grid-template-columns: 1fr; }
  .tt-related .tt-related-row { grid-template-columns: 1fr; max-width: 100%; }
  .tt-accessories-intro .row { display: block; max-width: 100%; padding: 0 15px; }
  .tt-accessories-intro .tt-pic { margin-top: 20px; padding: 0; }
  .tt-product-single-intro .tt-pintro-row { display: block; padding: 42px 15px 0; }
  .tt-product-single-intro .tt-pintro-row > .col { padding: 0; }
  .tt-product-single-intro .tt-thumb-img { margin-top: 22px; }

  .tt-mbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--tt-line);
    background: #fff;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
  }
  .tt-mbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    font-family: var(--tt-head);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .tt-mbar a:first-child { background: var(--tt-ink); color: #fff; }
  .tt-mbar a:last-child { margin-left: 8px; background: var(--tt-red); color: #fff; }
  body { padding-bottom: 64px; }
  .back-to-top { bottom: 78px; right: 14px; }
}

@media (max-width: 760px) {
  #header .header-inner { padding-left: 16px; padding-right: 16px; }
  /* phero: design chuyển sang khối cao tự động, text chảy trong khung */
  .tt-page-hero .banner { height: auto !important; min-height: 0; padding-top: 0 !important; }
  .tt-page-hero .banner .banner-inner { position: relative; height: auto; }
  .tt-page-hero .banner .banner-bg { position: absolute; inset: 0; height: 100%; }
  .tt-page-hero .banner-layers { position: relative; height: auto; padding: 46px 15px; }
  .tt-page-hero .banner-layers > .text-box {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    margin: 0;
  }

  #content .section,
  #footer .section { padding-left: 3px; padding-right: 3px; }

  .tt-product-single-features .tt-feature-row { grid-template-columns: 1fr; }
  .tt-home-catalogs .tt-catalog-row { grid-template-columns: 1fr; }
  .tt-accessories-grid .tt-acc-row { grid-template-columns: 1fr; }
  .tt-home-calc .tt-calc__grid { grid-template-columns: 1fr; }
  .tt-quote .tt-form-row { grid-template-columns: 1fr; }
  .tt-calc__out b { font-size: 26px; }
  #footer .tt-footer__top { grid-template-columns: 1fr; gap: 30px; }
  #footer .tt-footer__links { grid-template-columns: 1fr 1fr; }
  #footer .absolute-footer .container { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tt-gallery > .col { flex: 0 0 50%; max-width: 50%; }
  .tt-pad-features { padding-top: 36px; padding-bottom: 36px; }
}

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