/* ==========================================================
   Nano Ceramic Window Films – bản dựng lại giao diện trang chủ
   Màu, font, khoảng cách lấy theo theme Flatsome của trang gốc
   ========================================================== */

@font-face { font-family: "fl-icons"; font-display: block;
  src: url(../fonts/fl-icons.woff2) format("woff2"), url(../fonts/fl-icons.woff) format("woff"), url(../fonts/fl-icons.ttf) format("truetype"); }
@font-face { font-family: "NaceraExtraBoldItalic"; font-display: swap; src: url(../fonts/NaceraExtraBoldItalic.woff2) format("woff2"); }
@font-face { font-family: "NaceraBoldItalic"; font-display: swap; src: url(../fonts/NaceraBoldItalic.woff2) format("woff2"); }
@font-face { font-family: "NaceraBold"; font-display: swap; src: url(../fonts/NaceraBold.woff2) format("woff2"); }
@font-face { font-family: "NaceraMedium"; font-display: swap; src: url(../fonts/NaceraMedium.woff2) format("woff2"); }

:root {
  --primary: #844e9f;
  --secondary: #a8509f;
  --base: #4a4a4a;
  --link: #9a02b4;
  --header-bg: #a8509f;
  --container: 1080px;
  --gutter: 15px;
  --ease: cubic-bezier(.25,.8,.25,1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: #f9f9f9; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Roboto, sans-serif; font-size: 100%; line-height: 1.6; color: var(--base); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: #111; }
p { margin: 0 0 1.3em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: "Roboto Condensed", sans-serif; font-weight: 700; color: #555; margin: 0 0 .5em; line-height: 1.3; text-rendering: optimizeSpeed; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.125em; }
h5 { font-size: 1em; }
h6 { font-size: .85em; opacity: .8; }
.uppercase, h6 { text-transform: uppercase; letter-spacing: .05em; }
.dark, .dark p { color: #f1f1f1; }
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6, .dark a:not(.button) { color: #fff; }
h2.title-page { font-family: "NaceraExtraBoldItalic", "Roboto Condensed", sans-serif; }
h3.title-page, h4.title-page { font-family: "NaceraBoldItalic", "Roboto Condensed", sans-serif; }
.text-center { text-align: center; }
.relative { position: relative; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 100000; background: #fff; padding: 8px 12px; }

/* fl-icons (font icon gốc của Flatsome) */
i[class^="icon-"], i[class*=" icon-"] { font-family: "fl-icons" !important; font-style: normal; font-weight: 400; display: inline-block; line-height: 1.2; position: relative; speak: none; }
.icon-angle-down::before { content: "\f107"; }
.icon-angle-left::before { content: "\f104"; }
.icon-angle-right::before { content: "\f105"; }
.icon-angle-up::before { content: "\f106"; }
.icon-clock::before { content: "\e01a"; }
.icon-envelop::before { content: "\e003"; }
.icon-facebook::before { content: "\e002"; }
.icon-instagram::before { content: "\e00e"; }
.icon-linkedin::before { content: "\e016"; }
.icon-map-pin-fill::before { content: "\e009"; }
.icon-menu::before { content: "\e800"; }
.icon-phone::before { content: "\e600"; }
.icon-search::before { content: "\e012"; }
.icon-tiktok::before { content: "\e90b"; }
.icon-x::before { content: "\e90d"; }
.icon-youtube::before { content: "\e018"; }

/* ---------- Grid (Flatsome-like) ---------- */
.container { width: 100%; max-width: calc(var(--container) + 30px); margin: 0 auto; padding: 0 var(--gutter); }
.flex-row { display: flex; align-items: center; justify-content: space-between; }
.row { display: flex; flex-wrap: wrap; width: 100%; max-width: calc(var(--container) + 30px); margin: 0 auto; }
.container .row { margin-left: -15px; margin-right: -15px; width: auto; }
.row .row { margin-left: -15px; margin-right: -15px; width: auto; max-width: none; }
.col { position: relative; width: 100%; padding: 0 15px 30px; }
.row-large > .col { padding: 0 30px 30px; }
.container .row-large { margin-left: -30px; margin-right: -30px; }
.row-small > .col { padding: 0 9.8px 19.6px; }
.row .row-small, .container .row-small { margin-left: -9.8px; margin-right: -9.8px; }
.row-collapse > .col { padding: 0 !important; }
.row-collapse { margin-left: 0 !important; margin-right: 0 !important; }
.row-full-width { max-width: 100% !important; }
.align-middle { align-items: center; }
.align-center { justify-content: center; }
.align-equal > .col { display: flex; flex-direction: column; }
.align-equal > .col > * { flex: 1; }

@media (max-width: 549px) {
  .small-6 { flex-basis: 50%; max-width: 50%; }
  .small-11 { flex-basis: 91.666%; max-width: 91.666%; }
  .hide-for-small { display: none !important; }
}
@media (min-width: 550px) {
  .medium-3 { flex-basis: 25%; max-width: 25%; }
  .medium-4 { flex-basis: 33.333%; max-width: 33.333%; }
  .medium-5 { flex-basis: 41.666%; max-width: 41.666%; }
  .medium-6 { flex-basis: 50%; max-width: 50%; }
  .medium-7 { flex-basis: 58.333%; max-width: 58.333%; }
  .medium-9 { flex-basis: 75%; max-width: 75%; }
  .medium-12 { flex-basis: 100%; max-width: 100%; }
}
@media (min-width: 850px) {
  .large-3 { flex-basis: 25%; max-width: 25%; }
  .large-4 { flex-basis: 33.333%; max-width: 33.333%; }
  .large-5 { flex-basis: 41.666%; max-width: 41.666%; }
  .large-6 { flex-basis: 50%; max-width: 50%; }
  .large-7 { flex-basis: 58.333%; max-width: 58.333%; }
  .large-8 { flex-basis: 66.666%; max-width: 66.666%; }
  .large-9 { flex-basis: 75%; max-width: 75%; }
  .show-for-medium { display: none !important; }
}
@media (max-width: 849px) {
  .hide-for-medium { display: none !important; }
}

/* Cột có đường phân cách dọc (row-divided) */
@media (min-width: 850px) {
  .row-divided > .col + .col { border-left: 1px solid #ececec; }
}

/* ---------- Buttons ---------- */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 2.5em; padding: 0 1.2em; margin: 0 1em 1em 0;
  font-size: .97em; font-weight: 700; letter-spacing: .03em; line-height: 1.6; text-transform: uppercase;
  color: #fff; background-color: var(--primary); border: 1px solid transparent; border-radius: 5px;
  cursor: pointer; vertical-align: middle; text-align: center; white-space: nowrap;
  transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s;
}
.button:hover { color: #fff; box-shadow: inset 0 0 0 100px rgba(0,0,0,.2); outline: none; opacity: 1; }
.text-center .button:last-child { margin-right: 0; }
.button.primary { background-color: var(--primary); }
.button.secondary { background-color: var(--secondary); }
.button.white { background-color: #fff; color: #666; }
.button.is-outline { background: transparent; border: 2px solid currentColor; line-height: 2.19em; }
.button.white.is-outline { color: #fff; border-color: #fff; }
.button.white.is-outline:hover { background: #fff; color: #666; box-shadow: none; }
.button.is-larger { font-size: 1.3em; }
.button.is-large { font-size: 1.15em; }
.button.is-small { font-size: .8em; min-height: 2.2em; }
.button.is-default { background: transparent; color: #666; border: 2px solid #ddd; }
.button.is-default:hover { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: none; }
.button.expand { display: flex; width: 100%; margin-right: 0; }
.button i { font-size: 1.15em; top: .05em; }
.is-shade { overflow: hidden; }
.is-shade::after { content: ""; position: absolute; top: 0; left: -25%; width: 150%; height: 100%;
  box-shadow: inset 1px 1px 0 0 hsl(0 0% 100% / .1), inset 0 2em 15px 0 hsl(0 0% 100% / .2); pointer-events: none; }
.box-shadow-2 { box-shadow: 0 3px 6px -4px rgb(0 0 0 / .16), 0 3px 6px rgb(0 0 0 / .23); }
.box-shadow-3 { box-shadow: 0 10px 20px rgb(0 0 0 / .19), 0 6px 6px rgb(0 0 0 / .22); }
.box-shadow-5-hover:hover { box-shadow: 0 30px 40px 0 rgb(0 0 0 / .2); }

/* ---------- Tooltip ---------- */
.tooltip { position: relative; }
.tooltip::after {
  content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 8px);
  transform: translate(-50%, 6px); white-space: nowrap; pointer-events: none;
  background: #000; color: #fff; font: 400 12px/1.4 Roboto, sans-serif; text-transform: none; letter-spacing: 0;
  padding: 5px 9px; border-radius: 3px; opacity: 0; visibility: hidden; transition: all .25s; z-index: 1000;
}
.tooltip:hover::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============================ HEADER ============================ */
.header { position: relative; z-index: 30; width: 100%; }
.header-top { background: #fff; min-height: 30px; font-size: .8em; border-bottom: 1px solid #ececec; }
.header-top .container { min-height: 30px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; }
.nav-small > li > a { font-size: .9em; }
.nav-divided > li + li { margin-left: 1em; padding-left: 1em; border-left: 1px solid rgba(0,0,0,.1); }
.header-contact a { color: #777; text-transform: uppercase; font-weight: 400; letter-spacing: .02em; display: inline-flex; align-items: center; gap: .45em; padding: 6px 0; }
.header-contact a:hover { color: var(--primary); }
.header-contact i { font-size: 14px; }
.btn-header { min-height: 0; padding: .05em 1em; margin: 0; font-size: .9em; line-height: 2em; }
.top-bar-right > li { display: flex; align-items: center; }
.social-icons { display: inline-flex; align-items: center; gap: 2px; }
.social-icons a { color: #999; padding: 4px 5px; font-size: 1.1em; line-height: 1; transition: color .25s; }
.social-icons a:hover { color: var(--primary); }
.top-bar-right .social-icons a.tooltip::after,
.footer-social a.tooltip::after { top: auto; bottom: calc(100% + 8px); }
.top-bar-right .social-icons a.tooltip::after { top: calc(100% + 8px); bottom: auto; }

/* Main bar */
.header-main { position: relative; height: 83px; background: var(--header-bg); transition: height .3s; z-index: 10; }
.header-inner { height: 100%; }
#logo { width: 176px; flex-shrink: 0; }
#logo a { display: block; }
#logo img { max-height: 83px; width: auto; transition: max-height .3s; }
.header-nav-wrap { flex: 1; display: flex; justify-content: flex-end; height: 100%; }
.header-nav { display: flex; align-items: center; height: 100%; }
.header-nav > li { position: relative; height: 100%; display: flex; align-items: center; margin: 0 13px; }
.header-nav > li:last-child { margin-right: 0; }
.header-nav > li > a {
  position: relative; display: inline-flex; align-items: center; gap: 3px;
  color: #fff; font-family: Roboto, sans-serif; font-weight: 700; font-size: .8em; line-height: 16px;
  text-transform: uppercase; letter-spacing: .02em; padding: 10px 0;
}
.header-nav > li > a i { font-size: 1.1em; opacity: .7; margin-left: 2px; }
/* nav-line-grow: vạch trắng mọc ra từ giữa */
.nav-line-grow > li > a::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  height: 3px; width: 0; background: #fff; opacity: 0; transition: all .3s;
}
.nav-line-grow > li:hover > a::before, .nav-line-grow > li.active > a::before { width: 100%; opacity: 1; }

/* Dropdown có mũi tên, bóng, viền */
.nav-dropdown {
  position: absolute; top: 100%; left: -15px; min-width: 260px; z-index: 9;
  background: #fff; color: #777; padding: 20px 0; text-align: left;
  border: 2px solid #ddd; box-shadow: 1px 1px 15px rgba(0,0,0,.15);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.nav-dropdown li { margin: 0 20px; }
.nav-dropdown li + li { border-top: 1px solid #ececec; }
.nav-dropdown a { display: block; padding: 10px 0; color: hsl(0 0% 40% / .85); font-size: .9em; line-height: 1.3; }
.nav-dropdown a:hover { color: #000; }
.has-dropdown::before, .has-dropdown::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 0; border: solid transparent;
  opacity: 0; pointer-events: none; z-index: 10; transition: opacity .25s;
}
.has-dropdown::after { border-width: 8px; margin-left: -8px; border-bottom-color: #fff; bottom: -2px; z-index: 11; }
.has-dropdown::before { border-width: 11px; margin-left: -11px; border-bottom-color: #ddd; bottom: 0; }
.has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover::before, .has-dropdown:hover::after { opacity: 1; }

/* Sticky (sticky-jump) */
.header-wrapper.stuck { position: fixed; top: 0; left: 0; right: 0; animation: stuckMoveDown .6s; box-shadow: 1px 1px 10px rgba(0,0,0,.15); }
.header-wrapper.stuck .header-top { display: none; }
.header-wrapper.stuck .header-main { height: 70px; }
.header-wrapper.stuck #logo img { max-height: 70px; }
@keyframes stuckMoveDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Mobile header */
.menu-toggle {
  width: 2.2em; height: 2.2em; border-radius: 99px; border: 0; background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1em; transition: box-shadow .3s;
}
.menu-toggle:hover { box-shadow: inset 0 0 0 100px rgba(0,0,0,.2); }
.mobile-search { position: relative; }
.search-toggle { background: none; border: 0; color: #fff; font-size: 1.15em; padding: 6px; opacity: .9; }
.search-dropdown {
  position: absolute; right: -10px; top: calc(100% + 18px); width: 290px; background: #fff; padding: 15px;
  border: 2px solid #ddd; box-shadow: 1px 1px 15px rgba(0,0,0,.15);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s;
}
.mobile-search.open .search-dropdown { opacity: 1; visibility: visible; transform: none; }
.searchform { display: flex; }
.searchform input { flex: 1; height: 2.5em; border: 1px solid #ddd; border-right: 0; padding: 0 .75em; font: inherit; font-size: .95em; border-radius: 5px 0 0 5px; box-shadow: inset 0 1px 2px rgba(0,0,0,.1); outline: none; }
.searchform input:focus { border-color: #ccc; }
.searchform .button { margin: 0; border-radius: 0 5px 5px 0; padding: 0 .9em; }
@media (max-width: 849px) {
  .header-main { height: 70px; }
  .header-inner { position: relative; }
  #logo { position: absolute; left: 50%; transform: translateX(-50%); width: 150px; }
  #logo img { max-height: 60px; }
}

/* Off-canvas menu */
.mfp-bg { position: fixed; inset: 0; background: #0b0b0b; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 1042; }
.menu-open .mfp-bg { opacity: .6; visibility: visible; }
.mobile-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 85vw; z-index: 1043;
  background: #fff; overflow-y: auto; padding: 30px 0 30px;
  transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: -2px 0 15px rgba(0,0,0,.2);
}
.menu-open .mobile-sidebar { transform: translateX(0); }
.menu-open { overflow: hidden; }
.mfp-close { position: fixed; top: 0; right: 300px; width: 46px; height: 46px; border: 0; background: none; color: #fff; font-size: 36px; line-height: 1; opacity: 0; transition: opacity .3s; z-index: 1044; pointer-events: none; }
.menu-open .mfp-close { opacity: .8; pointer-events: auto; }
@media (max-width: 352px) { .mfp-close { right: auto; left: 0; } }
.nav-sidebar > li { position: relative; border-top: 1px solid #ececec; }
.nav-sidebar > li:first-child { border-top: 0; }
.nav-sidebar > li > a { display: block; padding: 15px 20px; color: hsl(0 0% 40% / .85); font-weight: 700; font-size: .8em; text-transform: uppercase; letter-spacing: .02em; }
.nav-sidebar > li.active > a, .nav-sidebar > li > a:hover { color: #111; }
.nav-sidebar .toggle { position: absolute; top: 6px; right: 10px; width: 36px; height: 36px; background: none; border: 0; color: #999; font-size: 1.1em; transition: transform .3s; }
.nav-sidebar .open > .toggle { transform: rotate(180deg); }
.nav-sidebar .children { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding-left: 20px; }
.nav-sidebar .open > .children { max-height: 400px; }
.nav-sidebar .children a { display: block; padding: 8px 20px 8px 0; color: #777; font-size: .9em; }
.nav-sidebar .children li:last-child { padding-bottom: 12px; }
.nav-sidebar li.html { padding: 12px 20px; border-top: 0; }
.nav-sidebar li.html .button { margin: 0; width: 100%; }

/* ============================ HERO SLIDER ============================ */
.slider-wrapper { position: relative; background: #111; }
.hero-slider .banner { width: 100%; }
.banner { position: relative; width: 100%; height: 637px; overflow: hidden; background: #111; }
.banner-bg, .banner-bg img, .banner-bg .overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner-bg img { object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 6s ease-out; }
.hero-slider .is-selected .banner-bg img { transform: scale(1.06); }
.banner-layers { position: relative; height: 100%; }
.text-box { position: absolute; top: 50%; left: 5%; transform: translateY(-50%); width: 88%; }
.text-box-1 { padding: 60px 30px; max-width: 88%; }
.text-box-2 { padding: 30px; width: 71%; }
.text-box h6 { font-size: 1em; letter-spacing: .1em; margin-bottom: .3em; opacity: .9; }
.text-box h2 { font-size: 3.4em; line-height: 1.05; margin: .15em 0 .3em; text-shadow: 1px 1px 5px rgba(0,0,0,.25); }
.text-box p { font-size: 1.1em; margin-bottom: 1.4em; }
.text-box .button { margin-bottom: 0; }
/* Hiệu ứng chữ trượt lên khi slide được chọn */
.hero-slider .text-box > * { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.hero-slider .is-selected .text-box > * { opacity: 1; transform: none; }
.hero-slider .is-selected .text-box > *:nth-child(2) { transition-delay: .15s; }
.hero-slider .is-selected .text-box > *:nth-child(3) { transition-delay: .3s; }
.hero-slider .is-selected .text-box > *:nth-child(4) { transition-delay: .45s; }

@media (max-width: 849px) {
  .banner { height: 520px; }
  .text-box h2 { font-size: 2.4em; }
}
@media (max-width: 549px) {
  .banner { height: 460px; }
  .text-box { top: auto; bottom: 5%; transform: none; width: 90% !important; max-width: 90%; }
  .text-box-1 { padding: 30px 20px; }
  .text-box-2 { padding: 20px; }
  .text-box h2 { font-size: 1.9em; }
  .text-box p { font-size: 1em; }
}

/* Flickity – điều hướng kiểu Flatsome */
.flickity-viewport { transition: height .3s; }
.flickity-button { background: transparent; color: #fff; border: 0; transition: all .3s; box-shadow: none; }
.flickity-button:hover { background: transparent; }
.flickity-button:focus { box-shadow: none; }
.flickity-button-icon { fill: currentColor; }
.slider-nav-circle .flickity-prev-next-button {
  width: 46px; height: 46px; border: 2px solid currentColor; border-radius: 50%; opacity: 0;
}
.slider-nav-circle .flickity-prev-next-button .flickity-button-icon { width: 40%; height: 40%; left: 30%; top: 30%; }
.hero-slider .flickity-prev-next-button { width: 56px; height: 56px; }
.hero-slider .flickity-prev-next-button.previous { left: -10px; }
.hero-slider .flickity-prev-next-button.next { right: -10px; }
.hero-slider:hover .flickity-prev-next-button.previous { left: 20px; opacity: .8; }
.hero-slider:hover .flickity-prev-next-button.next { right: 20px; opacity: .8; }
.hero-slider .flickity-prev-next-button:hover { opacity: 1 !important; background: rgba(255,255,255,.12); }
.hero-slider .flickity-page-dots { bottom: 15px; }
.flickity-page-dots .dot { width: 10px; height: 10px; margin: 0 5px; background: #fff; opacity: .4; border: 0; transition: opacity .3s; }
.flickity-page-dots .dot.is-selected { opacity: 1; }
@media (max-width: 549px) { .hero-slider .flickity-prev-next-button { display: none; } }

/* ============================ SECTIONS ============================ */
.section { position: relative; padding: 60px 0; }

/* Icon box */
.icon-box { text-align: center; }
.icon-circle {
  position: relative; width: 60px; height: 60px; margin: 0 auto 1em; border: 2px solid currentColor; border-radius: 50%;
  color: var(--primary); transition: background-color .3s;
}
.icon-circle.thin { border-width: 1px; }
.icon-circle svg { position: absolute; top: 50%; left: 20%; width: 60%; height: 60%; transform: translateY(-50%); fill: currentColor; transition: fill .3s; }
.icon-box:hover .icon-circle { background-color: currentColor; }
.icon-box:hover .icon-circle svg { fill: #fff; }
.icon-box h5 { text-transform: uppercase; letter-spacing: .05em; margin-bottom: .6em; }
.icon-box-light .icon-circle { color: #fff; }
.icon-box-light:hover .icon-circle svg { fill: #421558; }

.section-products { padding: 30px 0; background: #fff; }
.section-products .icon-box p { font-size: 1rem; }
.section-products .icon-box h5 { font-size: 1.05em; color: #555; }

/* Ô tô / Nhà kính */
.section-car { background: rgb(193,193,193); border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; }
.section-car::before, .section-house::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.85); }
.section-house { background: #fff; }
.section-split .container { position: relative; }
.section-split h2 { font-size: 2em; color: #555; }
.section-split .col { padding-bottom: 30px; }
.img-hover { overflow: hidden; line-height: 0; }
.img-hover img { width: 100%; transition: transform .6s var(--ease), filter .6s; }
.img-hover:hover img { transform: scale(1.1); }
@media (max-width: 549px) {
  .row-reverse-mobile { flex-direction: column-reverse; }
}

/* 4 cam kết */
.section-features { overflow: hidden; }
.section-bg { position: absolute; inset: 0; }
.section-bg img { width: 100%; height: 100%; object-fit: cover; }
.section-bg-overlay { position: absolute; inset: 0; background: rgba(66,21,88,.581); }
.section-features .icon-box h5 { color: #fff; }
.section-features .icon-box p { margin-bottom: 0; }

/* Bảng giá */
.section-pricing { background: rgb(246,247,251); }
.pricing-title { font-size: 2.25rem; text-align: center; color: var(--primary); margin-bottom: 1em; }
.pricing-legend h4 { font-size: 1.8rem; line-height: 1.15; padding-top: 20px; margin-bottom: .6em; color: #555; }
.pricing-legend p { margin: 0; padding: 20px 0 1px; border-bottom: 1px solid #e4e4e4; }
.pricing-legend p span { float: right; }
.pricing-legend p.total { border: 0; padding-top: 50px; font-size: 1.85rem; line-height: .9; text-align: center; color: var(--secondary); }
.price-card {
  height: 100%; background: #fff; border: 1px solid #e4e4e4; border-radius: 10px; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgb(0 0 0 / .15), 0 10px 10px rgb(0 0 0 / .08); }
.price-head { background: var(--primary); padding: 20px 0; text-align: center; border-radius: 10px 10px 0 0; border-bottom: 10px solid rgba(0,0,0,.1); }
.price-head h6 { font-size: 1.7rem; color: #fff; opacity: 1; margin: 0; letter-spacing: .02em; }
.price-line { margin: 0 15px; padding: 20px 0 1px; border-bottom: 1px solid #e4e4e4; text-align: left; font-size: .95em; }
.price-line::after { content: ""; display: block; clear: both; }
.price-line span { display: inline-block; width: 32%; text-align: left; }
.price-line .gia-le { width: auto; float: right; text-align: right; font-weight: 700; color: #333; }
.price-foot { padding: 15px 15px 5px; text-align: center; }
.price-foot h3 { font-size: 24px; color: var(--secondary); margin: .3em 0 10px; }
.price-foot .button { padding: 10px 0; margin-bottom: 10px; }
.section-pricing .row .row { margin-bottom: 10px; }
.section-pricing .col.large-9 .row > .col { padding-bottom: 20px; }

/* Message box */
.message-box { position: relative; padding: 90px 0; overflow: hidden; }
.message-box-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.message-box-overlay { position: absolute; inset: 0; background: rgba(85,0,104,.448); }
.message-box h2 { font-size: 2.2em; margin-bottom: .3em; }
.message-box p { font-size: 1.3rem; margin: 0; }
.message-box .col { padding-bottom: 0; }
.message-box .button { margin: 0; }
@media (max-width: 549px) { .message-box .col + .col { padding-top: 30px; } .message-box-bg { background-attachment: scroll; } }
@media (hover: none) { .message-box-bg { background-attachment: scroll; } }

/* Tin tức */
.section-news { padding: 43px 0; min-height: 276px; background: rgb(241,241,241); border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; }
.section-news h2 { font-size: 1.8em; color: #555; }
.news-slider { position: relative; margin: 0 -15px; }
.news-slider .post-item { width: 50%; padding: 0 15px 30px; }
@media (max-width: 549px) { .news-slider .post-item { width: 100%; } }
.box-blog-post { position: relative; display: flex; height: 100%; background: #fff;
  box-shadow: 0 1px 3px -2px rgb(0 0 0 / .12), 0 1px 2px rgb(0 0 0 / .24); transition: box-shadow .3s; }
.box-blog-post:hover { box-shadow: 0 10px 20px rgb(0 0 0 / .12), 0 6px 6px rgb(0 0 0 / .14); }
.box-blog-post .box-image { position: relative; width: 40%; flex-shrink: 0; min-height: 223px; overflow: hidden; display: block; }
.box-blog-post .box-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.box-blog-post:hover .box-image img { transform: scale(1.1); }
.box-blog-post .box-text { padding: 1.1em 1.1em 1.3em; text-align: left; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.post-title { font-size: 1.1em; line-height: 1.3; margin: 0; }
.post-title a { color: #555; }
.post-title a:hover { color: var(--primary); }
.is-divider { height: 2px; max-width: 30px; width: 100%; background: rgb(0 0 0 / .1); margin: .5em 0; }
.excerpt { font-size: .9em; margin-bottom: 1em; }
.box-blog-post .button { margin: auto 0 0; }
.badge.post-date { position: absolute; top: 7%; left: 0; margin-left: -.4em; width: 2.8em; height: 2.8em; z-index: 2; }
.badge-inner { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; height: 100%;
  background: #fff; color: var(--primary); border: 2px solid currentColor; font-weight: 700; line-height: .85; transition: all .3s; }
.badge-inner br { display: none; }
.post-date-day { font-size: 1.1em; }
.post-date-month { font-size: .7em; font-weight: 400; margin-top: 3px; }
.has-hover:hover .badge-inner { background: var(--primary); border-color: var(--primary); color: #fff; }
.news-slider .flickity-prev-next-button { color: #111; width: 40px; height: 40px; top: calc(50% - 15px); }
.news-slider .flickity-prev-next-button.previous { left: 0; }
.news-slider .flickity-prev-next-button.next { right: 0; }
.news-slider:hover .flickity-prev-next-button { opacity: .7; }
.news-slider:hover .flickity-prev-next-button.previous { left: -30px; }
.news-slider:hover .flickity-prev-next-button.next { right: -30px; }
.news-slider .flickity-prev-next-button:hover { opacity: 1 !important; }
@media (max-width: 849px) {
  .news-slider .flickity-prev-next-button { opacity: .7; }
  .news-slider:hover .flickity-prev-next-button.previous, .news-slider .flickity-prev-next-button.previous { left: 0; }
  .news-slider:hover .flickity-prev-next-button.next, .news-slider .flickity-prev-next-button.next { right: 0; }
}

/* Đánh giá */
.section-testimonials { padding: 110px 0 80px; background: rgb(246,246,246); }
.testimonials-head { font-size: 1.3rem; color: var(--primary); max-width: 1080px; margin: 0 auto 1em; }
.testimonials-head h2 { color: var(--primary); font-size: 1.6em; }
.testimonials-head p { color: var(--primary); }
.testimonial-box { background: #fff; padding: 25px; text-align: center; transition: transform .3s, box-shadow .3s; }
.testimonial-box:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgb(0 0 0 / .08); }
.testimonial-image { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; }
.star-rating { position: relative; height: 1em; line-height: 1; width: 5.06em; margin: 0 auto .5em; font-size: 1em; overflow: hidden; }
.star-rating::before { content: "\e005\e005\e005\e005\e005"; font-family: "fl-icons"; letter-spacing: .1em; color: var(--secondary); position: absolute; left: 0; top: 0; }
.testimonial-text { padding-top: 10px; line-height: 1.6; font-size: .95em; }
.testimonial-meta { padding-top: 7.5px; font-size: .9em; }
.testimonial-meta strong { color: #333; }
.testimonial-meta .divider, .testimonial-meta .company { opacity: .7; }

/* Báo chí */
.section-press { padding: 40px 0; background: #fff; }
.press-title { color: var(--secondary); font-size: 1.85em; margin: 30px 0 0; }
.press-slider { padding: 30px 0; }
.press-slider .ux-logo { max-width: 100%; padding: 15px; text-align: center; transition: opacity .3s; }
.press-slider .ux-logo img { height: 100px; width: auto; transition: transform .3s, filter .3s; filter: grayscale(.2); }
.press-slider .ux-logo:hover img { transform: scale(1.05); filter: none; }
.press-slider .flickity-slider > :not(.is-selected) { opacity: .5; }
.press-slider .flickity-prev-next-button { color: #111; opacity: .5; width: 40px; height: 40px; }
.press-slider .flickity-prev-next-button:hover { opacity: 1; }
.press-slider .flickity-prev-next-button.previous { left: -50px; }
.press-slider .flickity-prev-next-button.next { right: -50px; }
@media (max-width: 1200px) {
  .press-slider .flickity-prev-next-button.previous { left: 0; }
  .press-slider .flickity-prev-next-button.next { right: 0; }
}
@media (max-width: 549px) { .press-slider .ux-logo { width: 80% !important; } .press-slider .ux-logo img { height: 70px; } }

/* Phục vụ */
.section-serve { padding: 0; background: #fff; }
.serve-banner { position: relative; height: 500px; overflow: hidden; }
.serve-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.serve-banner:hover img { transform: scale(1.05); }
.serve-text { padding: 70px 70px 30px !important; }
.serve-text h2 { font-size: 2.08em; color: #555; }
.serve-btn { padding: 7px 30px; margin: 0; }
@media (max-width: 849px) { .serve-text { padding: 70px 100px 50px !important; } }
@media (max-width: 549px) {
  .serve-banner { height: auto; padding-top: 75%; }
  .serve-text { padding: 50px 40px 40px !important; }
}

/* ============================ FOOTER ============================ */
.footer { background: var(--primary); padding: 60px 0 30px; }
.footer h4 { color: #fff; font-size: 1.05em; margin: 0 0 .5em; }
.footer p { margin-bottom: 1em; font-size: .95em; }
.footer p i { margin-right: 4px; opacity: .9; }
.footer-logo { width: 60%; margin-bottom: 20px; }
@media (min-width: 550px) and (max-width: 849px) { .footer-logo { width: 30%; } }
.footer .button.white.is-outline { margin: 0 0 10px; }
.zalo-link { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.zalo-icon { width: 31px; filter: invert(1); }
.zalo-link span { font-family: "Roboto Condensed", sans-serif; font-weight: 700; font-size: 1.25em; line-height: 1.6; }
.mail-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9em; padding: 4px 0; }
.mail-link:hover, .footer a:not(.button):hover { color: #fff; opacity: .75; }
.footer-links { margin-bottom: 1.2em; }
.footer-links li.bullet-arrow { position: relative; border-bottom: 1px solid hsl(0 0% 100% / .2); padding: 7px 0 7px 25px; }
.footer-links li.bullet-arrow::before { content: "\f105"; font-family: "fl-icons"; position: absolute; left: 0; color: #fff; font-size: 16px; }
.footer-links a { transition: padding .25s, opacity .25s; display: inline-block; }
.footer-links a:hover { padding-left: 5px; }
.inline-ico { width: 1em; height: 1em; fill: #fff; vertical-align: -.1em; margin-right: 4px; }
.footer .warranty { font-size: 1.15em; }
.footer .agent { font-size: 1.1rem; line-height: 2.1; }
.footer-divider { height: 2px; background: #fff; margin: 0 0 30px; }
.footer-bottom .col { padding-bottom: 10px; }
.footer-bottom p { margin: 0; font-size: .9em; }
.footer-social a { color: #fff; opacity: .7; font-size: 1.15em; }
.footer-social a:hover { color: #fff; opacity: 1; }
.footer-legal { text-align: right; }
.footer-legal a { color: #fff; text-transform: uppercase; font-size: .8em; font-weight: 700; letter-spacing: .03em; margin-left: 1.2em; }
@media (max-width: 549px) {
  .footer-bottom { text-align: center; flex-direction: column-reverse; }
  .footer-legal { text-align: center; }
  .footer-legal a { margin: 0 .6em; }
}

/* ============================ FLOATING ============================ */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: 2.4em; height: 2.4em; border-radius: 50%;
  border: 2px solid currentColor; background: transparent; color: #999; font-size: 1em; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(30%); transition: all .3s;
}
.back-to-top.active { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.back-to-top i { font-size: 1.3em; top: -.05em; }

.floating-zalo-btn {
  position: fixed; right: 22px; bottom: 60px; width: 58px; height: 58px; border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,.22); display: flex; align-items: center; justify-content: center;
  z-index: 99999; transition: all .25s ease; animation: zaloPulse 1.8s infinite;
}
.floating-zalo-btn img { width: 60px; height: 60px; display: block; }
.floating-zalo-btn:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
@keyframes zaloPulse {
  0% { box-shadow: 0 0 0 0 rgba(0,104,255,.45); }
  70% { box-shadow: 0 0 0 12px rgba(0,104,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,104,255,0); }
}
@media (max-width: 768px) {
  .floating-zalo-btn { right: 16px; bottom: 82px; width: 54px; height: 54px; }
  .floating-zalo-btn img { width: 50px; height: 50px; }
}

/* Ảnh hiện dần khi tải (giống lazy-load fade của LiteSpeed/Flatsome) */
img[loading="lazy"] { opacity: 0; transition: opacity .6s, transform .6s var(--ease); }
img[loading="lazy"].loaded { opacity: 1; }

/* Hiệu ứng xuất hiện khi cuộn */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .8s, transform .8s; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .hero-slider .text-box > *, img[loading="lazy"] { opacity: 1 !important; transform: none !important; }
}

/* Nhỏ */
@media (max-width: 549px) {
  .section { padding: 45px 0; }
  .section-products { padding: 30px 0; }
  .pricing-title { font-size: 1.8rem; }
  .price-head h6 { font-size: 1.4rem; }
  .box-blog-post .box-image { min-height: 180px; }
  .message-box { padding: 60px 0; }
  .message-box h2 { font-size: 1.8em; }
}

/* Mobile: Flatsome thu hẹp khoảng cách cột lớn để không tràn ngang */
@media (max-width: 549px) {
  .row-large > .col { padding: 0 15px 30px; }
  .container .row-large { margin-left: -15px; margin-right: -15px; }
}
