/* ============================================================
   SaoVietDoor / Flatsome clone theme for HungThinhDoor.Web
   Primary: #125aa5 | Accent: #dd3333 / #bd141a | Font: Roboto
   ============================================================ */
:root {
  --fs-color-primary: #125aa5;
  --fs-color-secondary: #bd141a;
  --fs-color-success: #7a9c59;
  --fs-color-alert: #b20000;
  --fs-color-base: #777;
  --fs-color-text: #333;
  --fs-color-link: #125aa5;
  --fs-color-muted: #666;
  --fs-bg: #fff;
  --fs-bg-alt: #f6f6f6;
  --fs-border: #ececec;
  --fs-container: 1270px;
  --fs-header-h: 90px;
  --fs-font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.flatsome-theme,
body.home,
.flatsome {
  margin: 0;
  padding: 0;
  font-family: var(--fs-font) !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fs-color-text);
  background: var(--fs-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fs-color-link); text-decoration: none; transition: color .2s, background .2s; }
a:hover { color: var(--fs-color-secondary); }
img { max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .6em; font-weight: 700; line-height: 1.3; color: var(--fs-color-primary); }

.screen-reader-text, .visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; left: 0; top: 0; z-index: 99999;
  padding: 10px 16px; background: var(--fs-color-primary); color: #fff;
}

.container {
  width: 100%;
  max-width: var(--fs-container);
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}
.col {
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}
.col-inner { width: 100%; }
.medium-3, .large-3 { flex: 0 0 25%; max-width: 25%; }
.small-6 { flex: 0 0 50%; max-width: 50%; }
.small-12 { flex: 0 0 100%; max-width: 100%; }
.show-for-small { display: none !important; }
.medium-4, .large-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.medium-5, .large-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.medium-6, .large-6 { flex: 0 0 50%; max-width: 50%; }
.medium-7, .large-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.large-9 { flex: 0 0 75%; max-width: 75%; }
.align-middle { align-items: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.clearfix::after { content: ""; display: table; clear: both; }
.pull-left { float: left; }
.pull-right { float: right; }
.inline-block { display: inline-block; }

/* ---------- Buttons (Flatsome) ---------- */
.button, .button.primary, a.button {
  display: inline-block;
  margin: 0 4px 8px 0;
  padding: 0 1.2em;
  min-height: 2.5em;
  line-height: 2.4em;
  border: 2px solid transparent;
  border-radius: 99px;
  font-size: .9em;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  background: var(--fs-color-primary);
  color: #fff !important;
  transition: .25s;
}
.button:hover, a.button:hover { background: #0d4a88; color: #fff !important; }
.button.is-outline, a.button.is-outline {
  background: transparent;
  border-color: var(--fs-color-primary);
  color: var(--fs-color-primary) !important;
}
.button.is-outline:hover {
  background: var(--fs-color-primary);
  color: #fff !important;
}
.button.is-outline.invert, .button.invert {
  border-color: #fff;
  color: #fff !important;
  background: transparent;
}
.button.is-outline.invert:hover { background: #fff; color: var(--fs-color-primary) !important; }
.button.is-small { min-height: 2.1em; line-height: 2em; font-size: .8em; padding: 0 1em; }
.button.lowercase, a.nut-xem-them {
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 15.5px;
}

/* ---------- Header (Flatsome sticky) ---------- */
#header.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  box-shadow: 1px 1px 10px rgba(0,0,0,.05);
  height: auto !important;
  border: 0 !important;
  overflow: visible !important;
}
.header-wrapper { background: #fff; }
.header-main { min-height: var(--fs-header-h); }
.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--fs-header-h);
  gap: 10px;
}
.flex-row { display: flex; align-items: center; }
.flex-col { display: flex; align-items: center; }
.flex-grow { flex: 1 1 auto; min-width: 0; }
.flex-left { justify-content: flex-start; }
.flex-right { justify-content: flex-end; margin-left: auto; }
#logo { flex: 0 0 auto; max-width: 220px; }
#logo img.header-logo {
  display: block;
  max-height: 65px;
  width: auto;
  height: auto;
}
.show-for-medium { display: none !important; }
.hide-for-medium { display: flex !important; }

.header-nav, .list-main-menu {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  float: none !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  gap: 0;
}
.header-nav > li, .list-main-menu > li {
  float: none !important;
  position: relative;
  height: auto !important;
  margin: 0;
}
.header-nav > li > a,
.list-main-menu > li > a,
.nav-top-link {
  display: block !important;
  height: auto !important;
  line-height: 1.2 !important;
  padding: 10px 11px !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: rgba(102,102,102,.9) !important;
  text-transform: none !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  white-space: nowrap;
}
.header-nav > li > a:hover,
.list-main-menu > li > a:hover,
.header-nav > li.active > a,
.list-main-menu > li.active > a,
.nav-top-link.selected,
.nav-line-bottom > li > a:hover,
.nav-line-bottom > li.active > a {
  color: #dd3333 !important;
  background: transparent !important;
  border-bottom-color: #dd3333 !important;
}
.icon-angle-down {
  display: inline-block;
  width: 0; height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.nav-dropdown, .ht-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0 !important;
  background: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 100;
}
.header-nav > li:hover > .nav-dropdown,
.list-main-menu > li:hover > .ht-submenu { display: block; }
.nav-dropdown li a, .ht-submenu a {
  display: block;
  padding: 10px 14px !important;
  margin: 0 !important;
  color: #3e3d3d !important;
  font-size: 14px;
  text-transform: none;
  border: 0 !important;
}
.nav-dropdown li a:hover, .ht-submenu a:hover {
  background: #125aa5 !important;
  color: #fff !important;
}
.nav-dropdown-nested, .ht-submenu-nested { top: 0; left: 100%; }

.header-nav.nav-icon { gap: 4px; }
.header-nav.nav-icon > li > a,
.header-nav.nav-icon > li > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px !important;
  border: 0 !important;
  background: transparent;
  color: var(--fs-color-primary) !important;
  cursor: pointer;
  font-size: 14px;
}
.header-nav .ht-ico-search {
  display: block;
  flex-shrink: 0;
}
.icon-menu {
  display: block;
  width: 22px; height: 2px;
  background: var(--fs-color-primary);
  box-shadow: 0 7px 0 var(--fs-color-primary), 0 14px 0 var(--fs-color-primary);
  margin-bottom: 14px;
}
#menu-mobile {
  border: 0; background: transparent; padding: 10px; cursor: pointer;
}

.header-search-dropdown { position: relative; }
/* Cầu hover: khoảng trống giữa icon và panel không làm mất :hover */
.header-search-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 72px;
  height: 14px;
}
.header-search-dropdown > .nav-dropdown {
  left: auto;
  right: -8px;
  top: calc(100% + 10px);
  min-width: 320px;
  width: 320px;
  padding: 12px !important;
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(18, 90, 165, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  z-index: 1200;
}
.header-search-dropdown > .nav-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #e8eef5;
  border-top: 1px solid #e8eef5;
  transform: rotate(45deg);
}
.header-search-dropdown.is-open > .nav-dropdown,
.header-search-dropdown:hover > .nav-dropdown { display: block; }
.header-search-dropdown .header-search-form {
  list-style: none;
  padding: 0;
  margin: 0;
}
.header-search-dropdown .header-search-form-wrapper,
.header-search-dropdown .searchform-wrapper { padding: 0; margin: 0; }
.header-search-dropdown .ux-search-row {
  display: flex;
  align-items: stretch;
  border: 1px solid #d7e2ef;
  border-radius: 8px;
  background: #f7fafc;
  min-height: 42px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.header-search-dropdown .ux-search-row:focus-within {
  border-color: #125aa5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18, 90, 165, 0.12);
}
.header-search-dropdown .ux-search-row .flex-grow { flex: 1; min-width: 0; }
.header-search-dropdown .search-field {
  width: 100%;
  height: 42px;
  line-height: 42px;
  border: 0;
  padding: 0 14px;
  margin: 0;
  font-size: 14px;
  color: #1f2937;
  background: transparent;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.header-search-dropdown .search-field::placeholder {
  color: #94a3b8;
}
.header-search-dropdown .ux-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  margin: 0;
  border: 0;
  border-left: 1px solid #d7e2ef;
  border-radius: 0;
  background: #125aa5;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease;
}
.header-search-dropdown .ux-search-submit:hover {
  background: #0d4a88;
  color: #fff;
}
.header-search-dropdown .ux-search-submit .ht-ico-search {
  display: block;
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 50px 0 40px;
  background: #fff;
}
.section-content { position: relative; z-index: 1; }
.section-bg.fill {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.section-title-container { margin-bottom: 0; text-align: center; }
.section-title {
  margin: 0 0 10px !important;
  text-align: center;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}
.section-title-main {
  display: inline-block;
  font-size: 110%;
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 700;
  color: rgb(18, 90, 165) !important;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.section-title-center span.section-title-main::after {
  content: "";
  display: block;
  width: 100%;
  height: 20px;
  margin-top: 2px;
  background: url(/images/sv/line.png) no-repeat center bottom;
}
.section-title-left { text-align: left; }
.section-title-left .section-title-main::after { background-position: left bottom; }
.section-sub {
  margin: 0 auto 28px;
  max-width: 760px;
  color: var(--fs-color-muted);
  font-size: 15px;
  text-align: center;
}

/* Banner */
.banner-section {
  padding: 0 !important;
  background: #0b3d73;
  overflow: hidden;
}
.banner-section .block-banner,
.banner-section .slider-wrapper {
  width: 100%;
  margin: 0;
}
.banner-section .nivoSlider {
  width: 100% !important;
  height: 480px !important;
  max-height: 480px !important;
  overflow: hidden;
  background: #0b3d73;
}
.banner-section .nivo-main-image {
  width: 100% !important;
  height: 480px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}
.banner-section .nivo-controlNav {
  bottom: 14px !important;
  z-index: 8;
  position: absolute !important;
}
.banner-section {
  position: relative;
  z-index: 1;
}
@media (max-width: 1024px) {
  .banner-section .nivoSlider,
  .banner-section .nivo-main-image {
    height: 280px !important;
    max-height: 280px !important;
  }
}

/* Intro — exact saovietdoor.vn layout */
.intro-section {
  padding: 30px 0 !important;
  background-color: #f6f6f6 !important;
}
.intro-section .section-content {
  max-width: var(--fs-container);
  margin: 0 auto;
  padding: 0 15px;
}
.intro-section .row-intro {
  margin: 0 -15px;
  align-items: flex-start;
}
.intro-section .intro-col-left {
  padding: 50px 30px 30px 15px !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.intro-section .intro-col-right {
  padding: 50px 0 30px 30px !important;
}
.intro-section .section-title-container {
  margin: 0 0 16px;
  padding: 0;
  max-width: 100%;
}
.intro-section .section-title {
  margin: 0 0 10px !important;
}
.intro-section .section-title-main {
  display: block;
  width: 100%;
  font-size: 98% !important;
  font-size: 1.666rem !important; /* ~26.6px */
  font-weight: 700;
  color: rgb(18, 90, 165) !important;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.3;
  text-align: center;
}
.intro-section .section-title-center span.section-title-main::after {
  content: "";
  display: block;
  width: 100%;
  height: 20px;
  margin-top: 4px;
  background: url(/images/sv/line.png) no-repeat center bottom;
}
.intro-section .intro-copy {
  margin: 0 0 18px;
}
.intro-section .intro-copy p {
  margin: 0;
  color: #282828;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}
.intro-section .intro-copy strong {
  font-weight: 700;
  color: #282828;
}
.intro-section .nut-xem-them {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 15.5px 15.5px 0;
  padding: 0 18.6px;
  min-height: 2.4em;
  line-height: 2.2em;
  border: 2px solid rgb(18, 90, 165);
  border-radius: 99px;
  background: transparent !important;
  color: rgb(18, 90, 165) !important;
  font-size: 15.5px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.intro-section .nut-xem-them:hover {
  background: rgb(18, 90, 165) !important;
  color: #fff !important;
}
.intro-section .icon-angle-right::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  vertical-align: middle;
}
.intro-section .video.video-fit {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  margin: 0 0 14px;
  background: #111;
  overflow: hidden;
}
.intro-section .video.video-fit iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.intro-section .yt-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 15.5px 15.5px 0;
  padding: 0 18.6px;
  min-height: 2.5em;
  line-height: 2.4em;
  border-radius: 99px;
  background: rgb(18, 90, 165) !important;
  border: 2px solid rgb(18, 90, 165);
  color: #fff !important;
  font-size: 15.5px;
  font-weight: 700;
  text-transform: uppercase;
  float: none;
}
.intro-section .yt-channel-btn:hover {
  background: #0d4a88 !important;
  border-color: #0d4a88;
}
.intro-section .yt-channel-btn .ht-ico-youtube {
  display: block;
  flex-shrink: 0;
}
@media (max-width: 849px) {
  .intro-section .intro-col-left,
  .intro-section .intro-col-right {
    padding: 24px 15px 16px !important;
    border-right: 0;
  }
  .intro-section .section-title-main {
    font-size: 1.25rem !important;
  }
}

/* ========== Lý do nên chọn — saovietdoor.vn tieu-chi-section ========== */
.tieu-chi-section {
  background: #fff !important;
  padding: 48px 0 40px !important;
}
.tieu-chi-section .section-title-main {
  font-size: 110% !important;
  font-size: 1.76rem !important;
  color: rgb(18, 90, 165) !important;
  text-transform: none;
  font-weight: 700;
}
.tieu-chi-section .reason-sub {
  max-width: 900px;
  margin: 0 auto 36px;
  color: #261b1b;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}
.tieu-chi-section .reason-sub a {
  color: rgb(18, 90, 165);
  font-weight: 600;
}

/* Desktop — horizontal stack như saovietdoor (hide-for-small) */
.tieu-chi-desktop {
  padding: 0 !important;
  background: transparent;
}
.tieu-chi-desktop .stack-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  margin: 0 -15px;
}
.tieu-chi-desktop .reason-desktop-row {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  min-width: min(100%, 1270px);
}
.tieu-chi-desktop .reason-desktop-row > .col {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  min-width: 280px;
  padding: 0;
}
.tieu-chi-desktop .reason-sv-card {
  display: block;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
  text-decoration: none !important;
}
.tieu-chi-desktop .reason-sv-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.tieu-chi-desktop .reason-sv-card .box-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.tieu-chi-desktop .reason-sv-card .image-overlay-add img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.tieu-chi-desktop .reason-sv-card:hover .image-overlay-add img {
  transform: scale(1.06);
}
.tieu-chi-desktop .reason-sv-overlay {
  position: absolute;
  inset: 0;
  background-color: rgb(255, 178, 0);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.tieu-chi-desktop .reason-sv-card:hover .reason-sv-overlay {
  opacity: 1;
}
.tieu-chi-desktop .box-text.show-on-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
  pointer-events: none;
}
.tieu-chi-desktop .reason-sv-card:hover .box-text.show-on-hover {
  opacity: 1;
}
.tieu-chi-desktop .box-text-inner p {
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

/* Mobile — lưới 2 cột bo tròn như saovietdoor */
.reason-mobile-row {
  margin: 0 -8px 12px;
}
.reason-mobile-row > .col {
  padding: 0 8px;
}
.reason-mobile-inner {
  border-radius: 100px;
  overflow: hidden;
}
.reason-mobile-inner .img-inner {
  aspect-ratio: 1;
  overflow: hidden;
  background: #222;
}
.reason-mobile-inner .img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.reason-mobile-inner:hover .img-inner img {
  transform: scale(1.05);
}

.tieu-chi-section .reason-row {
  margin-left: -8px;
  margin-right: -8px;
  justify-content: center;
}
.tieu-chi-section .reason-col {
  padding: 8px !important;
  margin-bottom: 0;
}
.tieu-chi-section .reason-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  text-decoration: none !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  aspect-ratio: 1 / 1;
  max-width: 100%;
}
/* Checkerboard like saovietdoor graphic tiles */
.tieu-chi-section .reason-card.is-light {
  background: #ffffff;
  border: 1px solid #e8eef5;
}
.tieu-chi-section .reason-card.is-dark {
  background: #125aa5;
  border: 1px solid #0d4a88;
}
.tieu-chi-section .reason-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}
.tieu-chi-section .reason-card .box-image {
  position: absolute;
  inset: 0;
  margin: 0;
}
.tieu-chi-section .image-overlay-add {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Ảnh tile đầy đủ như saovietdoor (graphic vuông có sẵn chữ) */
.tieu-chi-section .image-overlay-add img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  opacity: 1;
  transition: transform 0.45s ease, opacity 0.3s ease;
  z-index: 1;
}
.tieu-chi-section .reason-card.is-dark .image-overlay-add img {
  opacity: 1;
  filter: none;
}
.tieu-chi-section .reason-card:hover .image-overlay-add img {
  transform: scale(1.06);
  opacity: 0.35;
}
.tieu-chi-section .reason-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: rgb(255, 178, 0);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.tieu-chi-section .reason-card:hover .reason-overlay {
  opacity: 0.9;
}
/* Overlay CMS: tiêu đề + brand che chữ baked-in trên ảnh mẫu */
.tieu-chi-section .reason-caption {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  padding: 20px 14px 36px;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.25s ease;
  background: linear-gradient(to bottom, rgba(255,255,255,0.97) 55%, transparent 100%);
}
.tieu-chi-section .reason-card.is-dark .reason-caption {
  background: linear-gradient(to bottom, rgba(18,90,165,0.97) 55%, transparent 100%);
}
.tieu-chi-section .reason-caption-title {
  display: block;
  font-size: clamp(15px, 1.55vw, 21px);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
}
.tieu-chi-section .reason-card.is-light .reason-caption-title { color: #125aa5; }
.tieu-chi-section .reason-card.is-dark .reason-caption-title { color: #fff; }
.tieu-chi-section .reason-card:hover .reason-caption { opacity: 0; }
.tieu-chi-section .reason-card::after {
  display: block;
  content: attr(data-brand);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  text-align: center;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 28px 10px 16px;
  pointer-events: none;
  transition: opacity 0.25s ease;
  color: #125aa5;
  background: linear-gradient(to top, rgba(255,255,255,0.97) 50%, transparent 100%);
}
.tieu-chi-section .reason-card.is-dark::after {
  color: #fff;
  background: linear-gradient(to top, rgba(18,90,165,0.97) 50%, transparent 100%);
}
.tieu-chi-section .reason-card:hover::after { opacity: 0; }
.tieu-chi-section .box-text.show-on-hover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.tieu-chi-section .reason-card:hover .box-text.show-on-hover {
  opacity: 1;
}
.tieu-chi-section .box-text-inner {
  max-width: 92%;
}
.tieu-chi-section .box-text-inner p {
  margin: 0;
  color: #1a1a1a;
  font-size: 1.15rem;
  line-height: 1.55;
  font-weight: 400;
  text-align: center;
}

@media (max-width: 849px) {
  .tieu-chi-section .reason-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .tieu-chi-section .box-text-inner p { font-size: 0.95rem; }
}
@media (max-width: 549px) {
  .tieu-chi-section .reason-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Products — saovietdoor.vn san-pham-section */
.san-pham-section {
  background: #f6f6f6;
  padding-top: 50px !important;
}
.san-pham-section .section-title-main {
  font-size: 110% !important;
  font-size: 1.76rem !important;
  color: rgb(18, 90, 165) !important;
  font-weight: 700;
}
.dich-vu-section .section-title-main {
  font-size: 110% !important;
  font-size: 1.76rem !important;
  color: rgb(18, 90, 165) !important;
  font-weight: 700;
}
.phan-hoi-section .section-title-main {
  font-size: 110% !important;
  font-size: 1.76rem !important;
  color: rgb(18, 90, 165) !important;
  font-weight: 700;
}
.san-pham-section .section-title-main,
.dich-vu-section .section-title-main,
.du-an-section .section-title-main,
.phan-hoi-section .section-title-main,
.tin-tuc-section .section-title-main:not(.doi-tac-section .section-title-main) {
  text-transform: none;
  letter-spacing: 0;
}
.doi-tac-section .section-title-main {
  text-transform: uppercase;
}
.home-latest-products { margin-bottom: 0; }
.home-product-slider-wrap {
  position: relative;
  padding: 0 48px;
  overflow: visible;
}
.home-product-slider-wrap .bx-wrapper {
  position: relative;
  margin: 0 auto;
  overflow: visible;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}
.home-product-slider-wrap .bx-viewport {
  overflow: hidden !important;
}
.home-product-slider-wrap .bx-controls-direction a {
  z-index: 40;
}
.home-product-slider-wrap .js-product-slider {
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-product-slider-wrap .product-slide-item {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}
.san-pham-section .product-slide-item .col-inner {
  height: 100%;
  position: relative;
}
.san-pham-section .product-slide-item .product-small.box {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.san-pham-section .product-slide-item .box-text-products {
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* Thumbnail vuông đồng nhất — crop cover dù ảnh gốc khác tỉ lệ */
.san-pham-section .product-small .box-image .image-zoom {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}
.san-pham-section .product-small .box-image .image-zoom > a {
  display: block;
  position: absolute;
  inset: 0;
}
.san-pham-section .product-small .box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.san-pham-section .product-small:hover .box-image img {
  transform: scale(1.04);
}

/* bxSlider prev/next — circular buttons + CSS chevrons
   (theme override previously wiped icon PNGs with background shorthand) */
.bx-wrapper .bx-controls-direction a,
.home-product-slider-wrap .bx-controls-direction a,
.list-product .bx-controls-direction a,
.project-slider-wrap .bx-controls-direction a,
.news-slider-wrap .bx-controls-direction a,
.partner-slider-wrap .bx-controls-direction a {
  position: absolute;
  top: 50%;
  width: 42px !important;
  height: 42px !important;
  margin-top: -21px !important;
  border-radius: 50% !important;
  background-color: #bd141a !important;
  background-image: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  text-indent: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  opacity: 0.95;
  z-index: 30;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.bx-wrapper .bx-controls-direction a:hover,
.home-product-slider-wrap .bx-controls-direction a:hover,
.list-product .bx-controls-direction a:hover,
.project-slider-wrap .bx-controls-direction a:hover,
.news-slider-wrap .bx-controls-direction a:hover,
.partner-slider-wrap .bx-controls-direction a:hover {
  opacity: 1;
  transform: scale(1.06);
  background-color: #a01018 !important;
  background-image: none !important;
}
.bx-wrapper .bx-prev,
.home-product-slider-wrap .bx-prev,
.list-product .bx-prev,
.project-slider-wrap .bx-prev,
.news-slider-wrap .bx-prev,
.partner-slider-wrap .bx-prev {
  left: -36px !important;
  right: auto !important;
}
.bx-wrapper .bx-next,
.home-product-slider-wrap .bx-next,
.list-product .bx-next,
.project-slider-wrap .bx-next,
.news-slider-wrap .bx-next,
.partner-slider-wrap .bx-next {
  right: -36px !important;
  left: auto !important;
}
.bx-wrapper .bx-prev::before,
.bx-wrapper .bx-next::before,
.home-product-slider-wrap .bx-prev::before,
.home-product-slider-wrap .bx-next::before,
.list-product .bx-prev::before,
.list-product .bx-next::before,
.project-slider-wrap .bx-prev::before,
.project-slider-wrap .bx-next::before,
.news-slider-wrap .bx-prev::before,
.news-slider-wrap .bx-next::before,
.partner-slider-wrap .bx-prev::before,
.partner-slider-wrap .bx-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  box-sizing: border-box;
}
.bx-wrapper .bx-prev::before,
.home-product-slider-wrap .bx-prev::before,
.list-product .bx-prev::before,
.project-slider-wrap .bx-prev::before,
.news-slider-wrap .bx-prev::before,
.partner-slider-wrap .bx-prev::before {
  transform: translate(-40%, -50%) rotate(-135deg);
}
.bx-wrapper .bx-next::before,
.home-product-slider-wrap .bx-next::before,
.list-product .bx-next::before,
.project-slider-wrap .bx-next::before,
.news-slider-wrap .bx-next::before,
.partner-slider-wrap .bx-next::before {
  transform: translate(-60%, -50%) rotate(45deg);
}
.bx-wrapper .bx-controls-direction a.disabled {
  display: none !important;
}

/* Sản phẩm nổi bật — nút prev/next nằm trong vùng padding, không bị clip */
.home-product-slider-wrap .bx-prev {
  left: -44px !important;
  right: auto !important;
}
.home-product-slider-wrap .bx-next {
  right: -44px !important;
  left: auto !important;
}
@media (max-width: 849px) {
  .home-product-slider-wrap {
    padding: 0 40px;
  }
  .home-product-slider-wrap .bx-prev {
    left: -36px !important;
  }
  .home-product-slider-wrap .bx-next {
    right: -36px !important;
  }
}
@media (max-width: 549px) {
  .home-product-slider-wrap {
    padding: 0 36px;
  }
  .home-product-slider-wrap .bx-prev {
    left: -32px !important;
  }
  .home-product-slider-wrap .bx-next {
    right: -32px !important;
  }
}

.product-block { margin-bottom: 28px; }
.product-block-title, .header-cat-home {
  margin: 0 0 14px !important;
  font-size: 20px !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
.product-block-title a { color: var(--fs-color-primary) !important; }

.list-product .bx-wrapper {
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}

.product-small .col-inner { position: relative; }
.product-small .box {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .25s;
  height: 100%;
}
.product-small .box:hover { box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.product-small .box-image .image-zoom {
  aspect-ratio: 1;
  overflow: hidden;
  background: #fafafa;
}
.product-small .box-image img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform .35s;
}
.product-small:hover .box-image img { transform: scale(1.04); }
.box-text-products {
  padding: 12px 14px 16px;
  text-align: left !important;
}
.box-text-products .title-wrapper { margin-bottom: 8px; }
.product-cat.no-text-overflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-title, .product-title a, .name.product-title a {
  margin: 0 0 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #4e4e4e !important;
  line-height: 1.35;
  min-height: 2.7em;
  text-align: left;
}
.product-title a:hover { color: #bd141a !important; }
.price-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 10px;
}
.price-wrapper .price {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 4px;
}
.price del .amount { color: gray !important; font-size: 14px !important; text-decoration: line-through; }
.price .amount, .price ins .amount { color: red !important; font-size: 18px !important; font-weight: 700; text-decoration: none; }
.price ins { text-decoration: none; }

/* Star rating — WooCommerce / saovietdoor */
.star-rating {
  overflow: hidden;
  position: relative;
  height: 1em;
  line-height: 1;
  font-size: 1em;
  width: 5.4em;
  font-family: sans-serif;
  display: inline-block;
  vertical-align: middle;
}
.star-rating::before {
  content: "★★★★★";
  color: #d3ced2;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  letter-spacing: 0.1em;
}
.star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
}
.star-rating span::before {
  content: "★★★★★";
  top: 0;
  position: absolute;
  left: 0;
  color: #ffb900;
  letter-spacing: 0.1em;
}
.star-rating--inline { margin-right: 4px; }
.review-count.is-small.op-7 {
  font-size: 12px;
  color: #888;
}

.badge-container { position: absolute; left: 8px; top: 8px; z-index: 2; }
.badge-square .badge-inner,
.badge-inner.on-sale {
  min-width: 46px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #bd141a;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-circle .badge-inner {
  width: 46px;
  height: 46px;
  border-radius: 99%;
}

.product-cat, .product-cat a {
  margin: 0 0 4px;
  font-size: 12px;
  color: #888 !important;
  text-transform: uppercase;
}

/* Categories */
.dich-vu-section {
  background: #f9f9f9;
  padding-top: 50px !important;
}
.cate-row .box {
  background: #fff;
  border: 1px solid #d6e4f2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(18,90,165,.08);
  margin-bottom: 24px;
  transition: transform .25s, box-shadow .25s;
}
.cate-row .box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(18,90,165,.16);
}
.cate-row .box-image .image-zoom { aspect-ratio: 1; overflow: hidden; background: #eef4fa; }
.cate-row .box-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s;
}
.cate-row .box:hover img { transform: scale(1.05); }
.cate-row .box-text { padding: 12px 10px 14px; background: #fff; }
.cate-row h4 { margin: 0; font-size: 0.75rem; }
.cate-row h4 a { color: var(--fs-color-primary); font-weight: 700; }
/* Danh mục SP: PC 4 cột — không dùng medium-3/small-6 (bị ghi đè 50%) */
.cate-row .cate-col {
  flex: 0 0 25%;
  max-width: 25%;
}
@media (max-width: 849px) {
  .cate-row .cate-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 549px) {
  .cate-row .cate-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Khách hàng nói về chúng tôi — phan-hoi-section */
.phan-hoi-section {
  background: #fff;
  padding: 47px 0 !important;
}
.phan-hoi-section .phan-hoi-row {
  margin: 0 -15px;
}
.phan-hoi-section .phan-hoi-col {
  padding: 0 15px 20px;
}
.phan-hoi-section .video.video-fit {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  margin: 0;
  background: #111;
  overflow: hidden;
}
.phan-hoi-section .video.video-fit iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Projects — saovietdoor.vn du-an-section */
.du-an-section { background: #f6f6f6; padding: 48px 0 40px !important; }
.du-an-section .section-title-main {
  font-size: 110% !important;
  font-size: 1.76rem !important;
  color: rgb(0, 99, 155) !important;
  text-transform: none;
  font-weight: 700;
}
.du-an-section .du-an-sub {
  margin-bottom: 28px;
  color: #261b1b;
}
.project-slider-wrap {
  position: relative;
  padding: 0 44px;
}
.project-slider-wrap .bx-wrapper {
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}
.project-slider-wrap .bx-viewport {
  overflow: hidden !important;
}
.project-slider > li {
  list-style: none;
}
.project-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}
.project-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
}
.project-image-wrap {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: #ddd;
}
.project-image-wrap > a {
  position: absolute;
  inset: 0;
  display: block;
}
.project-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-image-wrap img {
  transform: scale(1.05);
}
.project-img-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(31, 150, 218, 0.26);
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}
.project-card:hover .project-img-overlay {
  opacity: 1;
}
.project-card-footer {
  background-color: rgb(14, 76, 195) !important;
  color: #fff;
  padding: 20px !important;
}
.project-card-footer .post-title {
  margin: 0 0 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  min-height: 3.1em;
}
.project-card-footer .post-title a {
  color: #fff !important;
  text-decoration: none !important;
}
.project-card-footer .post-title a:hover {
  color: #e8f0ff !important;
}
.project-card-footer .is-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  margin: 14px auto 16px;
  max-width: 80%;
}
.project-card-footer .button.white.is-outline {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid #fff;
  border-radius: 99px;
  color: #fff !important;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.25s ease, color 0.25s ease;
}
.project-card-footer .button.white.is-outline:hover {
  background: #fff;
  color: rgb(14, 76, 195) !important;
}
@media (max-width: 849px) {
  .project-slider-wrap { padding: 0 36px; }
}
@media (max-width: 549px) {
  .project-slider-wrap { padding: 0 28px; }
  .project-card-footer .post-title { min-height: 0; }
}

/* News — saovietdoor.vn tin tức hữu ích (slider) */
.tin-tuc-section {
  background: #f6f6f6;
  padding: 50px 0 40px !important;
}
.tin-tuc-section.doi-tac-section {
  background: #fff;
  padding-bottom: 48px !important;
}
.tin-tuc-section .section-title-main {
  font-size: 110% !important;
  font-size: 1.76rem !important;
  color: rgb(18, 90, 165) !important;
  text-transform: none;
  font-weight: 700;
}
.tin-tuc-section .section-sub {
  color: #555;
}
.news-slider-wrap {
  position: relative;
  padding: 0 44px;
  margin-top: 8px;
}
.news-slider-wrap .bx-wrapper {
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}
.news-slider-wrap .bx-viewport { overflow: hidden !important; }
.js-news-slider > li { list-style: none; }
.tin-tuc-section .news-card,
.news-card {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  background: #fff !important;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.news-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.news-image-wrap {
  position: relative;
  padding-top: 56%;
  overflow: hidden;
  background: #eee;
}
.news-image-wrap > a {
  position: absolute;
  inset: 0;
  display: block;
}
.news-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-image-wrap img { transform: scale(1.05); }
.news-card .box-text {
  padding: 14px 16px 18px !important;
  text-align: left !important;
  background: #fff !important;
  color: #333 !important;
}
.news-card .post-title,
.news-card .post-title a,
.news-card .title-news-home {
  color: #125aa5 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  min-height: 2.7em;
  text-decoration: none !important;
}
.news-card .post-title a:hover,
.news-card .title-news-home:hover {
  color: #bd141a !important;
}
.news-card .is-divider {
  height: 3px;
  width: 40px;
  background: #125aa5;
  margin: 12px 0 12px;
  border: 0;
}
.news-card .from_the_blog_excerpt {
  margin: 0;
  font-size: 14px;
  color: #555 !important;
  line-height: 1.55;
}
@media (max-width: 849px) {
  .news-slider-wrap { padding: 0 36px; }
}
@media (max-width: 549px) {
  .news-slider-wrap { padding: 0 28px; }
  .news-card .post-title { min-height: 0; }
}

/* Partners — saovietdoor.vn (trong tin-tuc-section) */
.doi-tac-section {
  background: #fff;
}
.doi-tac-section .section-title-main {
  font-size: 110% !important;
  font-size: 1.76rem !important;
  color: rgb(18, 90, 165) !important;
  text-transform: uppercase;
  font-weight: 700;
}
.doi-tac-section .doi-tac-sub {
  max-width: 920px;
  margin: 0 auto 28px;
  color: #261b1b;
  font-size: 16px;
  line-height: 1.6;
}
.partner-slider-wrap {
  position: relative;
  padding: 0 44px;
}
.partner-slider-wrap .bx-wrapper {
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}
.partner-slider-wrap .bx-viewport { overflow: hidden !important; }
.js-partner-slider > li { list-style: none; }
.partner-card {
  text-align: center;
  height: 100%;
}
.partner-card .box-image {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.partner-card:hover .box-image {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}
.partner-card .box-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.partner-card .box-text {
  padding: 10px 4px 0 !important;
}
.partner-card .box-text p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
@media (max-width: 849px) {
  .partner-slider-wrap { padding: 0 36px; }
}
@media (max-width: 549px) {
  .partner-slider-wrap { padding: 0 28px; }
}

/* Contact home (legacy) */
.contact-home-section { background: #f6f6f6; }
.contact-home-section address { font-style: normal; }
.contact-home-section .ht-home-map,
.contact-home-section iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 6px;
  background: #ddd;
}

/* Đăng ký tư vấn — saovietdoor.vn bao-gia-section */
.bao-gia-section {
  position: relative;
  padding: 50px 0 46px !important;
  overflow: hidden;
  color: #fff;
}
.bao-gia-section .section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bao-gia-section .section-bg img.bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 54%;
  display: block;
}
.bao-gia-section .section-bg-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(18, 90, 165, 0.767);
}
.bao-gia-section .section-content { position: relative; z-index: 1; }
.bao-gia-section .consult-title,
.bao-gia-section .h2-home {
  color: #fff !important;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: none;
}
.bao-gia-section .consult-desc {
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.6;
  font-size: 15px;
  opacity: 0.98;
}
.consult-image-wrap {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.consult-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 690 / 457;
  object-fit: cover;
}
.consult-form .consult-input {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  font-size: 15px;
  background: #fff;
  color: #222;
  box-sizing: border-box;
}
.consult-form .consult-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}
.consult-form .consult-submit {
  display: inline-block;
  margin-top: 4px;
  padding: 12px 28px;
  border: 0;
  border-radius: 4px;
  background: #bd141a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.consult-form .consult-submit:hover { background: #9e1015; }
.consult-form .consult-submit:disabled { opacity: 0.7; cursor: wait; }
.consult-msg {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
}
.consult-msg.is-ok { background: rgba(255,255,255,0.95); color: #0a7a32; }
.consult-msg.is-err { background: rgba(255,255,255,0.95); color: #bd141a; }

/* Footer — saovietdoor.vn */
#footer.footer-wrapper { background: #fff; }
.footer-section {
  padding: 30px 0 !important;
  background-color: rgb(249, 249, 249) !important;
  border-top: 0;
}
.footer-logo img {
  max-width: 300px;
  max-height: 94px;
  width: auto;
  height: auto;
  margin-bottom: 14px;
}
.footer-about {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-contact-table { width: 100%; border: 0; }
.footer-contact-table td { padding: 6px 0; vertical-align: top; font-size: 14px; font-weight: 400; }
.footer-contact-table .fc-ico { width: 30px; }
.footer-contact-table a { color: #333; }
.footer-contact-table a:hover { color: #125aa5; }
.widget-title {
  display: block;
  margin-bottom: 14px;
  font-size: 130%;
  font-weight: 700;
  color: #125aa5 !important;
  text-transform: none;
  letter-spacing: 0;
}
.footer-cat-row { margin-left: -8px; margin-right: -8px; }
.footer-cat-row > .col { padding-left: 8px; padding-right: 8px; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin: 0 0 8px; }
.footer-links a { color: #333; font-size: 14px; }
.footer-links a:hover { color: #125aa5; }

.social-icons.follow-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.social-icons.follow-icons > span {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-right: 4px;
}
.social-icons .icon.button.circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #125aa5;
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
}
.social-icons .icon.button.circle svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
.social-icons .icon.button.circle:hover {
  background: #bd141a;
  transform: translateY(-1px);
}

.absolute-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 14px 0;
  font-size: 13px;
  color: #666;
}
.absolute-footer a { color: #333; }
.absolute-footer .pull-left { float: left; }
.absolute-footer .pull-right { float: right; }
.absolute-footer .clearfix::after { content: ""; display: table; clear: both; }

@media (max-width: 849px) {
  .consult-visual { margin-bottom: 24px; }
  .bao-gia-section .consult-title { font-size: 1.6rem; }
  .hide-for-small { display: none !important; }
  .show-for-small { display: flex !important; }
  .show-for-small.reason-mobile-row { display: flex !important; }
  .sv-nav-social { display: none !important; }
  .medium-3, .large-3, .medium-4, .large-4, .medium-6, .large-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .reason-mobile-row > .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .phan-hoi-section .phan-hoi-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .absolute-footer .pull-left,
  .absolute-footer .pull-right {
    float: none;
    text-align: center;
    margin: 4px 0;
  }
}

/* Thanh hỗ trợ bên phải — clone saovietdoor.vn .nav-social */
.sv-nav-social {
  position: fixed;
  right: 13px;
  top: 180px;
  z-index: 950;
  width: auto;
  background: #fff;
  border: 1px solid #f2f2f2;
  border-radius: 5px;
  padding: 10px 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.sv-nav-social ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sv-nav-social li {
  border-bottom: 1px solid #d6d6d6;
  padding-bottom: 15px;
  margin-bottom: 0;
}
.sv-nav-social li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.sv-nav-social a {
  display: block;
  padding: 5px 12px;
  max-width: 80px;
  text-align: center;
  font-size: 11px;
  line-height: 15px;
  font-weight: 600;
  color: #333 !important;
  text-decoration: none !important;
}
.sv-nav-social a:hover {
  color: #fe660b !important;
}
.sv-nav-social .sv-icon {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.sv-nav-social .sv-icon-zalo {
  background-image: url("/images/sv/zalo-i.png");
}
.sv-nav-social .sv-icon-messenger {
  background-image: url("/images/sv/messenger-i.png");
}
.sv-nav-social .sv-icon-top {
  background-image: url("/images/sv/back-top.png");
  background-size: cover;
}

/* Video modal */
.home-video-modal {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.75); align-items: center; justify-content: center; padding: 20px;
}
.home-video-modal.is-open { display: flex; }
.home-video-modal-inner {
  position: relative; width: min(960px, 100%);
  background: #000; border-radius: 6px; overflow: hidden;
}
.home-video-modal-body { aspect-ratio: 16/9; }
.home-video-modal-body iframe { width: 100%; height: 100%; border: 0; }
.home-video-modal-close {
  position: absolute; right: 8px; top: 4px; z-index: 2;
  border: 0; background: transparent; color: #fff; font-size: 32px; cursor: pointer;
}

/* Inner pages */
.page-wrapper { padding: 30px 0 50px; }
.sv-inner .ht-cate-title,
.sv-inner .ht-article-title,
.sv-inner .ht-product-detail-heading { color: var(--fs-color-primary) !important; }
.sv-inner .ht-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.sv-inner .ht-breadcrumb a { color: var(--fs-color-primary); }
.row.page-row { margin-top: 20px; }

/* ===== Left sidebar (inner pages) — SaoVietDoor shop-sidebar style ===== */
.row.category-page-row {
  align-items: stretch;
}
.row.category-page-row .col-sidebar {
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
.row.category-page-row .col-main {
  padding-left: 8px;
}
.row.category-page-row .col-sidebar .sidebar-inner {
  position: sticky;
  top: calc(var(--fs-header-h, 90px) + 12px);
  flex: 1 1 auto;
  width: 100%;
}
.ht-sidebar {
  width: 100%;
}
.ht-sidebar .ht-side-card {
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
}
.ht-sidebar .ht-side-card:last-child {
  margin-bottom: 0;
}
.ht-sidebar .ht-side-card-title {
  display: block;
  margin: 0 !important;
  padding: 10px 12px;
  background-color: #125aa5 !important;
  color: #fff !important;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  border: 0;
  border-radius: 0;
  font-family: var(--fs-font);
}
.ht-sidebar .ht-side-list,
.ht-sidebar .ht-side-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ht-sidebar .ht-side-list > li {
  border-bottom: 1px solid #eee;
}
.ht-sidebar .ht-side-list > li:last-child {
  border-bottom: 0;
}
.ht-sidebar .ht-side-list > li > a {
  display: block;
  padding: 10px 12px;
  color: #125aa5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.ht-sidebar .ht-side-list > li > a:hover {
  color: #bd141a;
  background: #f7fbff;
}
.ht-sidebar .ht-side-sublist {
  background: #fafafa;
}
.ht-sidebar .ht-side-sublist a {
  display: block;
  padding: 8px 12px 8px 22px;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.ht-sidebar .ht-side-sublist a:hover {
  color: #125aa5;
}

/* Bài mới đăng — avatar tròn như saovietdoor */
.ht-sidebar .ht-side-posts {
  padding: 0;
}
.ht-sidebar .ht-side-post {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 14px 12px;
  border-bottom: 1px solid #eee;
}
.ht-sidebar .ht-side-post:last-child {
  border-bottom: 0;
}
.ht-sidebar .ht-side-post-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 50%;
  background: #f0f0f0;
}
.ht-sidebar .ht-side-post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ht-sidebar .ht-side-post-body {
  flex: 1 1 auto;
  min-width: 0;
}
.ht-sidebar .ht-side-post-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1e68b3;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}
.ht-sidebar .ht-side-post-title:hover {
  color: #125aa5;
  text-decoration: underline;
}
.ht-sidebar .ht-side-post-meta {
  margin: 4px 0 0;
  color: #777;
  font-size: 12px;
  line-height: 1.35;
}
.ht-sidebar .ht-side-empty {
  margin: 0;
  padding: 12px;
  color: #999;
  font-size: 13px;
}

/* Hỗ trợ trực tuyến */
.ht-sidebar .ht-side-card--support .ht-side-support {
  padding: 12px;
}
.ht-sidebar .ht-side-support-row {
  margin: 0 0 12px;
}
.ht-sidebar .ht-side-support-label {
  display: block;
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.ht-sidebar .ht-side-support-phone {
  display: inline-block;
  color: #bd141a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.ht-sidebar .ht-side-support-phone:hover {
  color: #125aa5;
}
.ht-sidebar .ht-side-support-mail {
  display: inline-block;
  color: #125aa5;
  font-size: 13px;
  font-weight: 500;
  word-break: break-all;
  text-decoration: none;
}
.ht-sidebar .ht-side-support-mail:hover {
  text-decoration: underline;
}
.ht-sidebar .ht-side-support-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}
.ht-sidebar .ht-side-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.ht-sidebar .ht-side-btn--zalo {
  background: #e8f3fc;
  color: #125aa5;
}
.ht-sidebar .ht-side-btn--zalo:hover {
  background: #125aa5;
  color: #fff;
}
.ht-sidebar .ht-side-btn--call {
  background: #bd141a;
  color: #fff;
}
.ht-sidebar .ht-side-btn--call:hover {
  background: #9f1015;
  color: #fff;
}

/* Mobile bottom bar */
.ht-mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  display: none;
  background: #125aa5;
  box-shadow: 0 -2px 12px rgba(0,0,0,.15);
}
.ht-mbar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff !important; font-size: 11px; padding: 8px 4px; border: 0; background: transparent; text-decoration: none;
}
.ht-mbar-call-btn {
  width: 48px; height: 48px; margin-top: -18px;
  border-radius: 50%; background: #bd141a;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.ht-mnav { display: none; }
.ht-mnav.is-open { display: block; }

/* Responsive */
@media (max-width: 1100px) {
  .hide-for-medium { display: none !important; }
  .show-for-medium { display: flex !important; }
  .medium-3, .large-3, .medium-4, .large-4 { flex: 0 0 50%; max-width: 50%; }
  .cate-row .cate-col { flex: 0 0 25%; max-width: 25%; }
  .sv-inner .ht-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 849px) {
  .medium-5, .large-5, .medium-6, .large-6, .medium-7, .large-7,
  .large-9, .large-3 { flex: 0 0 100%; max-width: 100%; }
  .ht-mbar { display: flex; }
  body { padding-bottom: 64px; }
  .bao-gia-section .text-right { text-align: left !important; margin-top: 16px; }
  .absolute-footer .pull-left, .absolute-footer .pull-right { float: none; text-align: center; }
}
@media (max-width: 549px) {
  .medium-3, .large-3, .medium-4, .large-4 { flex: 0 0 100%; max-width: 100%; }
  .sv-inner .ht-product-grid { grid-template-columns: 1fr 1fr; }
  #logo img.header-logo { max-height: 48px; }
  :root { --fs-header-h: 70px; }
}

/* ===== Mobile nav (from site.css) ===== */

.ht-mnav {
    display: none;
}

html.ht-mnav-lock,
html.ht-mnav-lock body {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 1200px) {
    .ht-mnav {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10100;
        pointer-events: none;
        visibility: hidden;
    }

    .ht-mnav.is-open {
        pointer-events: auto;
        visibility: visible;
    }

    .ht-mnav-overlay {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        transition: opacity .28s ease;
    }

    .ht-mnav.is-open .ht-mnav-overlay {
        opacity: 1;
    }

    .ht-mnav-drawer {
        position: absolute;
        top: 0;
        left: 0;
        width: min(86vw, 360px);
        height: 100%;
        background: #fff;
        box-shadow: 8px 0 28px rgba(0, 0, 0, 0.18);
        transform: translateX(-105%);
        transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .ht-mnav.is-open .ht-mnav-drawer {
        transform: translateX(0);
    }

    .ht-mnav-head {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 10px;
        height: 52px;
        padding: 0 12px;
        border-bottom: 1px solid #e8eef5;
        background: linear-gradient(90deg, #125aa5, #0d4a88);
        color: #fff;
    }

    .ht-mnav-brand {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: .02em;
    }

    .ht-mnav-close {
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ht-mnav-close:hover,
    .ht-mnav-close:focus {
        background: rgba(255, 255, 255, 0.28);
        outline: none;
    }

    .ht-mnav-viewport {
        flex: 1 1 auto;
        overflow: hidden;
        position: relative;
        background: #fff;
    }

    .ht-mnav-track {
        display: flex;
        height: 100%;
        width: 100%;
        transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
    }

    .ht-mnav-panel {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
    }

    .ht-mnav-backrow {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        padding: 8px 10px;
        border-bottom: 1px solid #edf2f7;
        background: #f7fafc;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .ht-mnav-back {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 0;
        background: transparent;
        color: #006bcc;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        padding: 8px 6px;
        border-radius: 6px;
        flex: 0 0 auto;
    }

    .ht-mnav-back:hover,
    .ht-mnav-back:focus {
        background: rgba(0, 107, 204, 0.08);
        outline: none;
    }

    .ht-mnav-back-ico {
        width: 10px;
        height: 10px;
        border-left: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        display: inline-block;
    }

    .ht-mnav-panel-title {
        flex: 1 1 auto;
        font-size: 15px;
        font-weight: 700;
        color: #1a202c;
        text-align: right;
        padding-right: 6px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ht-mnav-list {
        list-style: none;
        margin: 0;
        padding: 6px 0 24px;
    }

    .ht-mnav-list > li {
        border-bottom: 1px solid #f1f5f9;
    }

    .ht-mnav-link {
        display: block;
        padding: 14px 18px;
        color: #1f2937;
        font-size: 15px;
        font-weight: 650;
        text-decoration: none;
        line-height: 1.35;
    }

    .ht-mnav-link:hover,
    .ht-mnav-link:focus {
        background: #f3f8fd;
        color: #006bcc;
        outline: none;
    }

    .ht-mnav-all {
        color: #006bcc !important;
        font-weight: 700 !important;
        background: #f0f7ff;
    }

    .ht-mnav-row {
        display: flex;
        align-items: stretch;
        min-height: 48px;
    }

    .ht-mnav-row .ht-mnav-link {
        flex: 1 1 auto;
        padding-right: 8px;
    }

    .ht-mnav-go {
        flex: 0 0 48px;
        width: 48px;
        border: 0;
        border-left: 1px solid #edf2f7;
        background: #fff;
        cursor: pointer;
        position: relative;
    }

    .ht-mnav-go::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        border-right: 2px solid #64748b;
        border-top: 2px solid #64748b;
        transform: translate(-60%, -50%) rotate(45deg);
    }

    .ht-mnav-go:hover,
    .ht-mnav-go:focus {
        background: #f3f8fd;
        outline: none;
    }

    .ht-mnav-go:hover::before,
    .ht-mnav-go:focus::before {
        border-color: #006bcc;
    }

    .ht-mnav-children {
        display: none !important;
    }
}

@media (min-width: 1201px) {
    .ht-mnav {
        display: none !important;
    }
}

/* ========== Trang giới thiệu (full width, không sidebar) ========== */
.ht-page-fullwidth {
    padding: 20px 10px 40px;
    box-sizing: border-box;
}

.ht-about-page {
    max-width: 1100px;
    margin: 0 auto;
}

.ht-about-content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

/* ===== Mobile bottom bar ===== */

.ht-mbar {
    display: none;
}

@media (max-width: 767px) {
    .ht-mbar {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10050;
        align-items: end;
        height: 58px;
        padding: 0 0 env(safe-area-inset-bottom, 0);
        background: #fff;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    }

    body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    }

    .ht-float-contact {
        display: none !important;
    }

    .sv-nav-social {
        display: none !important;
    }

    .ht-mbar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        width: 100%;
        height: 58px;
        text-decoration: none;
        color: #222;
        background: transparent;
        border: 0;
        padding: 0;
        margin: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .ht-mbar-label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 11px;
        line-height: 1.1;
        font-weight: 500;
        white-space: nowrap;
        text-align: center;
    }

    .ht-mbar-ico {
        display: block;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #2f7fe8;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 22px 22px;
        box-shadow: 0 2px 6px rgba(47, 127, 232, 0.35);
    }

    .ht-mbar-ico-menu {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M4 7h16v2H4V7zm0 4h16v2H4v-2zm0 4h16v2H4v-2z'/%3E%3C/svg%3E");
    }

    .ht-mbar-ico-zalo {
        background-color: transparent;
        background-size: cover;
        background-position: center;
        background-image: url("/images/icons/zalo.png");
        box-shadow: 0 2px 6px rgba(0, 104, 255, 0.35);
    }

    .ht-mbar-ico-messenger {
        background-color: #0084ff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2C6.5 2 2 6.1 2 11.2c0 2.9 1.4 5.5 3.7 7.2V22l3.4-1.9c.9.2 1.9.4 2.9.4 5.5 0 10-4.1 10-9.3S17.5 2 12 2zm1 12.5l-2.5-2.7-4.9 2.7L11 9l2.6 2.7L18.4 9 13 14.5z'/%3E%3C/svg%3E");
    }

    .ht-mbar-ico-contact {
        background-color: #4aa3f0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14.1 4.1l1.4-1.4c.4-.4 1-.4 1.4 0l2 2c.4.4.4 1 0 1.4l-1.4 1.4-3.4-3.4zM3 17.3V21h3.7l10.9-10.9-3.7-3.7L3 17.3zM5.9 19H5v-.9l9.1-9.1.9.9L5.9 19z'/%3E%3C/svg%3E");
    }

    .ht-mbar-call {
        position: relative;
        overflow: visible;
    }

    .ht-mbar-call-btn {
        position: absolute;
        left: 50%;
        bottom: 8px;
        width: 62px;
        height: 62px;
        margin-left: -31px;
        border-radius: 50%;
        background: #e5398a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.2 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1L6.6 10.8z'/%3E%3C/svg%3E") center / 28px no-repeat;
        box-shadow: 0 6px 18px rgba(229, 57, 138, 0.45);
        animation: ht-mbar-pulse 1.8s ease-in-out infinite;
    }

    @keyframes ht-mbar-pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.06); }
    }

    .ht-mbar-call:active .ht-mbar-call-btn {
        transform: scale(0.96);
        animation: none;
    }
}

/* ========== Danh sách bài viết — SaoVietDoor blog archive (grid card) ========== */
.ht-news-list-page.blog-archive {
  padding: 0 0 8px;
}
.ht-news-list-header {
  margin: 0 0 24px;
}
.ht-news-list-page .ht-cate-title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  color: #125aa5 !important;
  text-transform: none;
}
.ht-list-intro {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.65;
  max-width: 52em;
}
.ht-news-list-page .ht-cate-empty {
  margin: 24px 0;
  padding: 28px 18px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #dbe3ee;
  border-radius: 8px;
}
.ht-news-list-page .ht-cate-content-top {
  margin-bottom: 22px;
}
.ht-news-list-page .ht-cate-content-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #eef2f7;
}

.ht-blog-archive-row.row-small {
  margin-left: -10px;
  margin-right: -10px;
}
.ht-blog-archive-row.row-small > .col {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 22px;
}
.ht-blog-archive-row .post-item .col-inner {
  height: 100%;
}
.ht-archive-card.news-card {
  border: 1px solid #ececec;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.ht-archive-card.news-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.ht-archive-card .box-image {
  flex: 0 0 auto;
}
.ht-archive-card .news-image-wrap {
  position: relative;
  padding-top: 56%;
  overflow: hidden;
  background: #eee;
}
.ht-archive-card .news-image-wrap > a {
  position: absolute;
  inset: 0;
  display: block;
}
.ht-archive-card .news-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ht-archive-card:hover .news-image-wrap img {
  transform: scale(1.05);
}
.ht-archive-card .box-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 18px !important;
  text-align: left !important;
}
.ht-archive-card .blog-post-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ht-archive-card .post-title {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  min-height: 2.8em;
}
.ht-archive-card .post-title a,
.ht-archive-card .post-title a.plain {
  color: #111 !important;
  text-decoration: none !important;
}
.ht-archive-card .post-title a:hover {
  color: #bd141a !important;
}
.ht-archive-card .is-divider {
  height: 3px;
  width: 40px;
  background: #125aa5;
  margin: 12px 0;
  border: 0;
}
.ht-archive-card .from_the_blog_excerpt {
  margin: 0;
  font-size: 14px;
  color: #777;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ht-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 4px;
}
.ht-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #d7e2ef;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
a.ht-page-link:hover {
  border-color: #125aa5;
  color: #125aa5;
  background: #f0f7fc;
}
.ht-page-link.is-active {
  border-color: #125aa5;
  background: #125aa5;
  color: #fff;
  cursor: default;
}

@media (max-width: 549px) {
  .ht-archive-card .post-title {
    min-height: 0;
    font-size: 15px !important;
  }
}

/* ===== Danh sách sản phẩm — SaoVietDoor shop archive (cua-cuon-duc) ===== */
.ht-cate-page.shop-archive {
  padding: 4px 0 24px;
}
.ht-cate-page.shop-archive .ht-cate-title {
  margin: 0 0 16px;
  font-size: 1.76rem;
  font-weight: 700;
  line-height: 1.25;
  color: #125aa5 !important;
}
.ht-cate-page.shop-archive .ht-cate-content-top {
  margin: 0 0 28px;
}
.ht-cate-page.shop-archive .ht-cate-content-bottom {
  margin-top: 36px;
}
.ht-cate-page.shop-archive .ht-cate-block {
  margin-bottom: 32px;
}
.ht-cate-page.shop-archive .ht-cate-block-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #125aa5;
}
.ht-cate-page.shop-archive .ht-cate-block-title a {
  color: inherit;
  text-decoration: none;
}
.ht-cate-page.shop-archive .ht-cate-block-title a:hover {
  color: #bd141a;
}
.ht-cate-page.shop-archive .ht-cate-empty {
  margin: 24px 0;
  color: #666;
}

.ht-shop-products.row-small {
  margin-left: -10px;
  margin-right: -10px;
}
.ht-shop-products.row-small > .col {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 28px;
  flex: 0 0 25%;
  max-width: 25%;
}
.ht-shop-products > .col > .col-inner {
  height: 100%;
  position: relative;
}
.ht-shop-products > .col .product-small.box {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f2f2f2;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 2px 1px 9px #dedede;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.ht-shop-products > .col .product-small.box:hover {
  border-color: #e0e0e0;
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}
.ht-shop-products .box-image .image-zoom {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}
.ht-shop-products .box-image .image-zoom > a {
  display: block;
  position: absolute;
  inset: 0;
}
.ht-shop-products .box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.ht-shop-products > .col:hover .box-image img {
  transform: scale(1.04);
}
.ht-shop-products .box-text-products {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 16px;
  text-align: left !important;
}
.ht-shop-products .product-title,
.ht-shop-products .product-title a {
  min-height: 2.7em;
}

@media (max-width: 1100px) {
  .ht-shop-products.row-small > .col {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}
@media (max-width: 549px) {
  .ht-shop-products.row-small > .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .ht-shop-products .product-title,
  .ht-shop-products .product-title a {
    min-height: 0;
    font-size: 14px !important;
  }
}

/* ===== TOC trong left sidebar (trang chi tiết bài viết) ===== */
.ht-sidebar .ht-side-toc[hidden] {
  display: none !important;
}

/* Fallback khi trình duyệt không hỗ trợ :has() */
html.ht-has-article-toc .row.category-page-row .col-sidebar .sidebar-inner {
  position: relative;
  top: auto;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
html.ht-has-article-toc .ht-sidebar.ht-sidebar--has-toc {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
}
html.ht-has-article-toc .ht-sidebar.ht-sidebar--has-toc > .ht-side-card:not(.ht-side-toc) {
  display: none !important;
}

/* Khi có mục lục: cột sidebar kéo full cao bài; chỉ TOC sticky */
.row.category-page-row .col-sidebar .sidebar-inner:has(.ht-side-toc:not([hidden])) {
  position: relative;
  top: auto;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.ht-sidebar:has(.ht-side-toc:not([hidden])) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
}

/* Ẩn các card khác — sidebar dành cho mục lục full cao */
.ht-sidebar:has(.ht-side-toc:not([hidden])) > .ht-side-card:not(.ht-side-toc) {
  display: none !important;
}

.ht-sidebar .ht-side-toc:not([hidden]) {
  position: sticky;
  top: calc(var(--fs-header-h, 90px) + 12px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  height: calc(100vh - var(--fs-header-h, 90px) - 24px);
  max-height: calc(100vh - var(--fs-header-h, 90px) - 24px);
  margin: 0 !important;
  overflow: hidden;
}

.ht-sidebar .ht-side-toc .ht-side-card-title {
  flex: 0 0 auto;
}

.ht-sidebar .ht-side-toc-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: auto;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.ht-sidebar .ht-side-toc-item {
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}
.ht-sidebar .ht-side-toc-item:last-child {
  border-bottom: 0;
}
.ht-sidebar .ht-side-toc-link {
  display: block;
  padding: 8px 12px;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 13.5px;
  line-height: 1.4;
  border-left: 3px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.ht-sidebar .ht-side-toc-level-2 > .ht-side-toc-link {
  font-weight: 700;
  font-size: 14px;
}
.ht-sidebar .ht-side-toc-level-3 > .ht-side-toc-link {
  padding-left: 20px;
  font-size: 13px;
  color: #555 !important;
}
.ht-sidebar .ht-side-toc-level-4 > .ht-side-toc-link {
  padding-left: 30px;
  font-size: 12.5px;
  color: #666 !important;
}
.ht-sidebar .ht-side-toc-link:hover {
  color: #125aa5 !important;
  background: #f5f9fd;
}
.ht-sidebar .ht-side-toc-link.is-active {
  color: #125aa5 !important;
  background: #eef5fb;
  border-left-color: #125aa5;
  font-weight: 700;
}
.ht-article-content .ht-ftoc-heading {
  scroll-margin-top: calc(var(--fs-header-h, 90px) + 12px);
}

@media (max-width: 849px) {
  /* Mobile ẩn sidebar — không áp sticky TOC */
  .ht-sidebar .ht-side-toc:not([hidden]) {
    position: static;
    height: auto;
    max-height: none;
  }
  .ht-sidebar:has(.ht-side-toc:not([hidden])) > .ht-side-card:not(.ht-side-toc) {
    display: block !important;
  }
}
