/* =========================================================
   Tahawa homepage clone — style.css
   Giá trị lấy từ getComputedStyle() của https://tahawa.com.vn
   ========================================================= */
:root {
  --bg-color: #eeeeee;
  --primary-color: #139bce;
  --primary-sub-color: rgba(19, 155, 206, .25);
  --sub-color: #000000;
  --line-bottom-menu-color: rgba(0, 0, 0, .44);
  --txt-color: #000000;
  --price-color: #ff0000;
  --price-sub-color: rgba(255, 0, 0, .45);
  --link-color: #000000;
  --header-txt-color-hover: #ff6600;
  --footer-bg-color: #298ae1;
  --menu-bg-color: #298ae1;
  --menu-txt-color: #ffffff;
  --rating-color: #ffc120;
  --space-between-widget: 20px;
  --space-between-widget-mobile: 13.333px;
  --font-website: 'Sans-Serif', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font-website);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--txt-color);
  background-color: var(--bg-color);
  text-align: left;
  overflow-x: hidden;
}
img { vertical-align: middle; border-style: none; max-width: 100%; }
a { color: var(--link-color); text-decoration: none; background-color: transparent; }
a:hover { color: var(--link-color); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, input { font-family: inherit; font-size: inherit; line-height: inherit; margin: 0; }
button { cursor: pointer; }
figure { margin: 0; }
blockquote { margin: 0; }
strong, b { font-weight: 700; }
.wrapper { position: relative; overflow: hidden; }

/* ---------- Grid ---------- */
.container { width: 100%; padding: 0 15px; margin: 0 auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1300px) { .container { max-width: 1270px; } }

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  background-color: var(--menu-bg-color);
  padding: 5px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  font-size: 90%;
  line-height: 1.6;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__left, .topbar__right { min-width: 0; }
.topbar__text { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fff; }
.topbar__left .topbar__text { font-weight: 600; }
.topbar__right { text-align: right; }
.topbar__slogan { font-style: italic; font-weight: 500; }
.social-header { display: inline-block; position: relative; }
.social-header a { padding-right: 10px; }
.social-header img { width: 24px; height: auto; }
.user-header { display: inline-block; margin-left: 4px; }
.user-header li { display: inline-block; position: relative; }
.user-header li::before {
  content: ""; position: absolute; top: 7px; left: -8px;
  width: 1px; height: 12px; background-color: #828686;
}
.user-header li + li { margin-left: 4px; }

/* =========================================================
   HEADER DESKTOP
   ========================================================= */
.header-mobile { display: none; }
.hd-sticky-spacer { display: none; }
.hd-bar { position: relative; background-color: #fff; color: #000; z-index: 9998; transition: .5s ease-out; }

.hd-main { border-bottom: 1px solid #f0f0f0; }
.hd-main__row { display: grid; grid-template-columns: 1fr minmax(260px, 560px) 1fr; align-items: center; gap: 28px; margin: 0; padding: 20px 0; }
.hd-main__logo { justify-self: start; }
.hd-main__logo .logo { display: inline-block; position: relative; z-index: 1; transition: transform .25s ease; }
.hd-main__logo .logo:hover { transform: scale(1.04); }
.hd-main__logo img { height: 46px; width: auto; max-width: 100%; min-height: 20px; display: block; }

.hd-main__search { width: 100%; min-width: 0; position: relative; height: 46px; }
.search-form--wide input {
  position: absolute; inset: 0; width: 100%; height: 46px;
  padding: 0 56px 0 20px; border: 1.5px solid #e7e7e7; border-radius: 26px;
  background: #f7f8f9; color: #333; font-size: 15px; line-height: 1; outline: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.search-form--wide input::placeholder { color: #999; }
.search-form--wide input:focus {
  border-color: var(--primary-color); background: #fff;
  box-shadow: 0 0 0 3px var(--primary-sub-color);
}
.search-form--wide button {
  position: absolute; top: 3px; right: 3px; width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 50%; background: var(--primary-color);
  color: #fff; line-height: 40px; text-align: center; z-index: 3;
  transition: background-color .2s ease, transform .2s ease;
}
.search-form--wide button:hover { filter: brightness(.9); }
.search-form--wide button i { font-size: 15px; }

.hd-main__right { justify-self: end; padding: 0; display: flex; align-items: center; gap: 18px; }
.hd-main__divider { width: 1px; height: 36px; background: #e8e8e8; flex: 0 0 auto; }

.hotline-header { display: flex; align-items: center; gap: 10px; color: #000; }
.hotline-header__icon {
  flex: 0 0 auto; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--primary-sub-color); color: var(--primary-color); font-size: 16px;
  transition: background-color .2s ease, color .2s ease;
}
.hotline-header:hover .hotline-header__icon { background: var(--primary-color); color: #fff; }
.hotline-header__text { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.hotline-header__label { font-size: 12.5px; color: #777; }
.hotline-header__number { font-size: 17px; font-weight: 700; color: var(--txt-color); transition: color .2s ease; }
.hotline-header:hover .hotline-header__number { color: var(--primary-color); }

.mini-cart { display: table; position: relative; padding-top: 8px; margin-left: 19px; }
.hd-main__right .mini-cart { padding-top: 0; margin-left: 0; }
.mini-cart__link { color: #000; white-space: nowrap; display: inline-block; transition: transform .2s ease; }
.mini-cart__link:hover { transform: translateY(-1px); }
.mini-cart__icon { width: 25px; height: 25px; vertical-align: top; }
.mini-cart__num {
  display: inline-block; width: 20px; height: 20px; margin: -5px 0 0 -5px;
  border-radius: 50%; background-color: var(--primary-color); color: #fff;
  font-size: 12px; line-height: 21px; text-align: center; vertical-align: top;
  box-shadow: 0 0 0 2px #fff;
}

/* Nav bar */
.hd-nav { position: relative; z-index: 2; background: var(--menu-bg-color); }
.hd-nav__row { display: flex; margin: 0 -10px; height: 50px; }
.hd-nav__cat { flex: 0 0 25%; max-width: 25%; padding: 0 10px; position: relative; }
.hd-nav__menu { flex: 0 0 75%; max-width: 75%; padding: 0 10px; display: flex; align-items: center; position: relative; }
.navleft { position: relative; height: 100%; }
.navleft__title {
  display: flex; align-items: center; height: 100%; padding: 0 24px;
  background: var(--header-txt-color-hover); text-transform: uppercase; cursor: pointer; user-select: none;
}
.navleft__title .h3 { margin: 0; font-size: 20px; line-height: 50px; font-weight: 400; color: var(--menu-txt-color); }
.navleft__title .h3 i { margin-right: 5px; }

/* Danh mục dọc */
.cat-menu {
  position: absolute; top: 50px; left: 0; right: 0;
  background: #fff; border: 1px solid #ededed; z-index: 199;
  transition: .3s ease-out; transform: translateY(0); visibility: visible;
}
.cat-menu > ul { display: flex; flex-wrap: wrap; position: relative; }
.cat-menu li { display: block; width: 100%; position: relative; z-index: 1; }
.cat-menu li > a {
  display: block; position: relative; padding: 9px 20px; color: #000;
  border-bottom: 1px solid var(--line-bottom-menu-color);
}
.cat-menu > ul > li:last-child > a { border-bottom: none !important; }
.cat-menu li:hover > a::before {
  content: ""; position: absolute; left: 0; top: 0; width: 0; height: 100%;
  border: 3px solid; border-color: currentColor; z-index: 1;
}
.cat-menu li.is-hidden { display: none; }
.cat-menu li.more { font-weight: 600; cursor: pointer; }
.cat-menu li.more a { border-bottom: none; }
.cat-menu li.has-sub > a::after {
  content: "\f105"; font-family: 'Font Awesome 5 Free'; font-weight: 900;
  position: absolute; top: 50%; right: 15px; transform: translateY(-50%);
  width: 20px; height: 20px; line-height: 20px; font-size: 12px; text-align: center;
  background: #f2f2f2; border-radius: 3px; color: #777;
}
.cat-menu .wrap-popup {
  display: none; position: absolute; top: 0; left: 110%; width: 100%; margin-top: -1px;
  z-index: 100; transition: all .3s ease-out;
}
.cat-menu li:hover > .wrap-popup { display: block; left: 100%; }
.cat-menu .popup { border: 1px solid rgba(0, 0, 0, .2); box-shadow: 0 0 3px rgba(0, 0, 0, .2); background: #fff; }
.cat-menu .popup li:last-child > a { border-bottom: none; }

/* Menu ngang */
.main-nav { position: relative; z-index: 200; }
.menu-nav { display: flex; align-items: center; height: 50px; }
.menu-nav > li { position: relative; }
.menu-nav > li > a {
  display: block; padding: 0 15px; line-height: 50px; color: #fff;
  text-transform: uppercase; white-space: nowrap; transition: background-color .2s, color .2s;
}
.menu-nav > li > a .fa-angle-down { font-size: 16px; }
.menu-nav > li.active > a,
.menu-nav > li:hover > a { color: #fff !important; }
.menu-nav .sub-menu {
  position: absolute; top: 50px; left: 0; min-width: 200px; width: 100%;
  padding: 0; background: #fff; color: #000; border-radius: 4px; min-width: 300px;
  box-shadow: 0 5px 5px 0 rgba(0, 0, 0, .1);
  opacity: 0; visibility: hidden; transition: all .5s ease-out; z-index: 1000;
}
.menu-nav > li:hover > .sub-menu { opacity: 1; visibility: visible; border-radius: unset; border: none; }
.menu-nav .sub-menu li { display: inline-block; width: 100%; }
/* Fix lỗi web gốc: chữ submenu trắng trên nền trắng -> chữ tối, hover nền xanh chủ đạo */
.menu-nav .sub-menu a {
  display: block; position: relative; width: 100%; padding: 10px 15px;
  color: #000; line-height: 1.4; text-transform: capitalize;
  border-bottom: 1px solid #eee; transition: background-color .2s, color .2s;
}
.menu-nav .sub-menu li:last-child > a { border-bottom: 0; }
.menu-nav .sub-menu li:hover > a { background-color: var(--primary-color); color: #fff; }
.hd-nav__tools { display: none; }

/* ---------- Header desktop: sticky (fixed-ontop) ---------- */
.hd-bar.is-fixed {
  position: fixed !important; top: 0; left: 0; width: 100%;
  background: #fff; box-shadow: 0 10px 10px 0 rgba(0, 0, 0, .1);
}
.hd-bar.is-fixed .hd-main { display: none; }
.hd-bar.is-fixed .hd-nav { background: transparent; }
.hd-bar.is-fixed .menu-nav > li > a { color: #000; }
/* Fix lỗi web gốc: mục đang chọn/hover chữ trắng trên nền trắng -> chữ cam chủ đạo */
.hd-bar.is-fixed .menu-nav > li.active > a,
.hd-bar.is-fixed .menu-nav > li:hover > a { color: var(--header-txt-color-hover) !important; }
.hd-bar.is-fixed .cat-menu { opacity: 0; visibility: hidden; transform: translateY(20px); }
.hd-bar.is-fixed .navleft:hover .cat-menu { opacity: 1; visibility: visible; transition: .3s ease-in; transform: translateY(0); }
.hd-bar.is-fixed .cat-menu li.is-hidden { display: block !important; }
.hd-bar.is-fixed .cat-menu li.more { display: none !important; }
.hd-bar.is-fixed .cat-menu > ul > li:nth-last-child(2) > a { border-bottom: none !important; }
.hd-bar.is-fixed .hd-nav__tools {
  display: block; position: absolute; top: 50%; right: 10px; transform: translateY(-50%); z-index: 999;
}
.hd-nav__tools li { display: inline-block; vertical-align: top; }
.hd-nav__tools .mini-cart { margin-left: 15px; }

/* Ô tìm kiếm thu gọn (sticky + mobile) */
.search-form--mini { display: table; position: relative; }
.search-form--mini input {
  position: absolute; top: 0; right: 0; height: 38px; width: 0; padding: 0; opacity: 0;
  border: 1px solid #e5e5e5; border-radius: 20px; background: #fff; color: #999;
  outline: none; transition: .5s ease-out; z-index: 1;
}
.search-form--mini:hover input,
.search-form--mini input:focus { width: 200px; padding: 0 15px; opacity: 1; }
.search-form--mini button {
  position: relative; width: 40px; height: 40px; padding: 1px 6px; border: 0;
  background: transparent; border-radius: 20px; line-height: 40px; color: #000; z-index: 3;
}

/* =========================================================
   HERO
   ========================================================= */
.hero-area__row { display: flex; margin: 0 -10px; }
.hero-area__spacer { flex: 0 0 25%; max-width: 25%; padding: 0 10px; }
.hero-area__slider { flex: 0 0 75%; max-width: 75%; padding: 0 10px; position: relative; }
.hero-item picture, .hero-item img { display: block; width: 100%; height: auto; }
.hero-item img { aspect-ratio: 1900 / 700; object-fit: cover; }

/* =========================================================
   CAROUSEL (thay thế Owl Carousel)
   ========================================================= */
.carousel { position: relative; z-index: 1; width: 100%; }
.carousel__outer { position: relative; overflow: hidden; transition: height .5s ease-in-out; }
.carousel__stage { display: flex; align-items: flex-start; will-change: transform; touch-action: pan-y; }
.carousel--equal .carousel__stage { align-items: stretch; }
.carousel__item { flex: 0 0 auto; position: relative; min-height: 1px; display: flex; }
.carousel__item > * { width: 100%; }
.carousel.is-dragging .carousel__stage { cursor: grabbing; }
.carousel.is-dragging a, .carousel.is-dragging img { pointer-events: none; user-select: none; }
.carousel img { -webkit-user-drag: none; user-select: none; }

/* Fade mode */
.carousel--fade .carousel__stage { display: grid; transform: none !important; }
.carousel--fade .carousel__item { grid-area: 1 / 1; opacity: 0; z-index: 0; visibility: hidden; }
.carousel--fade .carousel__item.is-active { opacity: 1; z-index: 2; visibility: visible; }
.carousel--fade .carousel__item.is-fade-in { animation: cFadeIn 1s both; visibility: visible; z-index: 2; }
.carousel--fade .carousel__item.is-fade-out { animation: cFadeOut 1s both; visibility: visible; z-index: 1; }
@keyframes cFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* Nav kiểu d-carousel (sản phẩm, bài viết...) */
.carousel__nav { position: static; }
.carousel__prev, .carousel__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; text-align: center;
  background-color: var(--primary-sub-color) !important; color: #000 !important;
  cursor: pointer; user-select: none; z-index: 2; border: 0; padding: 0;
}
.carousel__prev { left: -10px; }
.carousel__next { right: -10px; }
.carousel__prev i, .carousel__next i { font-size: 16px; line-height: 28px; }
.carousel__prev:hover, .carousel__next:hover { background-color: var(--primary-color) !important; color: #fff !important; opacity: .85; }

/* Nav kiểu widget-slider (hero, danh mục) */
.carousel--slider .carousel__prev, .carousel--slider .carousel__next {
  opacity: 0; transition: all .4s ease; z-index: 6; color: #fff !important;
}
.carousel--slider .carousel__prev { left: 0; }
.carousel--slider .carousel__next { right: 0; }
.carousel--slider:hover .carousel__prev { left: 30px; opacity: 1; }
.carousel--slider:hover .carousel__next { right: 30px; opacity: 1; }
.carousel--slider .carousel__prev i, .carousel--slider .carousel__next i { font-size: 20px; font-weight: 700; color: #fff; line-height: 28px; }
.carousel--hero .carousel__prev, .carousel--hero .carousel__next { width: 60px; height: 60px; }
.carousel--hero .carousel__prev i, .carousel--hero .carousel__next i { font-size: 40px; line-height: 60px; }
.carousel--slider .carousel__prev:hover, .carousel--slider .carousel__next:hover { background-color: var(--primary-color) !important; opacity: .85; }

/* Dots */
.carousel__dots { text-align: center; padding-top: 10px; }
.carousel--slider .carousel__dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 5; line-height: 0; }
.carousel--hero .carousel__dots { bottom: 20px; }
.carousel__dot {
  display: inline-block; width: 10px; height: 10px; margin: 0 3px; padding: 0; border: 0;
  border-radius: 100%; background-color: var(--primary-sub-color); cursor: pointer;
}
.carousel__dot.is-active { background-color: var(--primary-color) !important; opacity: .85; }

/* =========================================================
   WIDGETS CHUNG
   ========================================================= */
.widget > .container { position: relative; }
.widget { padding: var(--space-between-widget) 0; }
.widget--hero-wrap { padding-bottom: 0; }
.widget--flush { padding-top: 0; padding-bottom: 0; }

.box-heading { position: relative; z-index: 1; text-align: center; overflow: hidden; }
.box-heading .heading {
  display: inline-block; position: relative; margin: 0 0 25px; padding: 0 15px;
  font-size: 135%; line-height: 1.25; font-weight: 400; color: var(--sub-color);
}
.box-heading .heading::before,
.box-heading .heading::after {
  content: ""; position: absolute; bottom: 13px; width: 1000px; height: 1px; background-color: var(--sub-color);
}
.box-heading .heading::before { right: 100%; }
.box-heading .heading::after { left: 100%; }
.box-heading .line-hg { position: relative; width: 160px; margin: 0 auto; }
.box-heading .line-hg span { position: absolute; top: -17px; left: 0; right: 0; height: 2px; margin: 0 50px; background: var(--sub-color); }

/* Danh mục "Bạn đang tìm gì" */
.cat-item { text-align: center; position: relative; padding: 4px 4px 2px; }
.cat-item a { display: block; text-decoration: none; color: var(--txt-color); }
.cat-item__thumb {
  display: block; position: relative; width: 100%; aspect-ratio: 1 / 1;
  margin: 0 auto; overflow: hidden;
  background: #fff; border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08), 0 0 0 1px #eef1f3;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cat-item__thumb picture, .cat-item__thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.cat-item a:hover .cat-item__thumb {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(19, 155, 206, .25), 0 0 0 1px var(--primary-color);
}
.cat-item__label {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-top: 12px; min-height: 2.6em;
  font-size: 14px; font-weight: 600; line-height: 1.3;
  color: var(--txt-color); transition: color .25s ease;
}
.cat-item a:hover .cat-item__label { color: var(--primary-color); }
@media (max-width: 576px) {
  .cat-item__thumb { border-width: 2px; }
  .cat-item__label { margin-top: 8px; font-size: 12px; min-height: 2.4em; }
}

/* Banner */
.banner-row { display: flex; flex-wrap: wrap; margin: 0 -10px -20px; text-align: center; position: relative; z-index: 1; }
.banner-row > div { flex: 0 0 100%; max-width: 100%; padding: 0 10px; margin-bottom: 20px; }
.banner-row img { width: 100%; height: auto; }
@media (min-width: 768px) {
  .banner-row--3 > div { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .banner-row--2 > div { flex: 0 0 50%; max-width: 50%; }
}
.banner-single { text-align: center; }
.banner-single img { width: 100%; height: auto; }
.widget a:hover img { opacity: 1; }

/* =========================================================
   PRODUCT CARD
   ========================================================= */
.product-item {
  position: relative; height: 100%; width: 100%;
  background-color: #fff; border: 1px solid #e2e6e7;
}
.product-item .photoframe {
  display: inline-block; position: relative; width: 100%; height: 100%;
  padding: 10px 10px 48px; text-align: center; z-index: 1;
}
.img-product { position: relative; }
.img-product > a { display: block; position: relative; }
.img-product img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; transition: opacity .4s; }
.img-product .img-btns { display: flex; margin-top: 10px; }
/* figcaption chỉ có margin-top ở các widget trang chủ (giống web gốc) */
.infor-product { margin-top: 0; }
.widget-products .infor-product { margin-top: 10px; }
.product-title { font-size: 100%; font-weight: 400; margin: 0; }
.product-title .two-lines {
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; text-overflow: ellipsis; word-break: break-word;
  margin: 7px 0 5px; line-height: 22px; color: var(--link-color);
}
.review { margin: -6px 0 4px; font-size: 11px; line-height: 1.6; }
.review i { color: var(--rating-color); }
.price { margin: 0 0 10px; }
.price .new { color: var(--price-color); font-weight: 700; }
.price .old { display: inline-block; color: var(--price-sub-color); font-size: 90%; text-decoration: line-through; }
.label-discount {
  position: absolute; top: 10px; left: 10px; width: 35px; height: 35px;
  border-radius: 50%; background-color: var(--primary-color); color: #fff;
  font-size: 70%; font-weight: 700; line-height: 36px; text-align: center;
}
@media (min-width: 992px) { .label-discount { width: 40px; height: 40px; line-height: 42px; } }
.btn-purchased {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; width: auto;
}
.product-buttons-group { display: flex; flex-direction: row; justify-content: center; gap: 6px; padding: 0 10px; margin-top: 10px; min-width: 0; max-width: 100%; }
.btn-item {
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: 6px 15px 6px 15px; border: none; border-radius: 25px !important;
  background-color: var(--primary-color); color: #fff !important;
  font-size: 73%; line-height: 1.5; font-weight: 400; text-align: center; vertical-align: middle;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .08); cursor: pointer;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.btn-item:hover { opacity: .9; color: #fff; }
.btn-item i { font-size: 73%; margin-right: 4px; flex-shrink: 0; }
.product-buttons-group .btn-item { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.product-buttons-group .btn-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Product grid (style1) */
.product-grid { display: flex; flex-wrap: wrap; margin: 0 -10px -20px; }
.product-grid > div { padding: 0 10px; margin-bottom: 20px; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
@media (min-width: 768px) { .col-md-3 { flex: 0 0 25%; max-width: 25%; } }
@media (min-width: 992px) { .col-lg-5th { flex: 0 0 20%; max-width: 20%; } }

@media (max-width: 991px) and (min-width: 768px) {
  .btn-item { font-size: 80% !important; }
  .btn-item i { font-size: 80% !important; margin-right: 3px !important; }
}
@media (max-width: 768px) and (min-width: 576px) {
  .btn-item, .btn-item i { font-size: 55% !important; }
}
@media (max-width: 576px) {
  .product-buttons-group { flex-direction: column !important; align-items: center !important; }
  .btn-item, .btn-item i { font-size: 100% !important; }
  .btn-item { padding: 6px 12px; }
}
@media (max-width: 575px) {
  .btn-purchased { position: unset; white-space: inherit; width: auto; }
  .product-item .photoframe { padding-bottom: 10px; }
}

/* =========================================================
   PARTNER
   ========================================================= */
.partner-item { display: block; text-align: center; }
.partner-item img { display: block; width: auto; max-width: 100%; max-height: 110px; height: auto; margin: 0 auto; }

/* =========================================================
   POST CARD
   ========================================================= */
.post-item { position: relative; height: 100%; width: 100%; background: #fff; border: 1px solid #e2e6e7; }
.post-item .photoframe { display: inline-block; position: relative; width: 100%; padding: 10px; z-index: 1; }
.img-post { position: relative; }
.img-post a { display: block; text-align: center; }
.img-post img { width: 100%; height: auto; aspect-ratio: 346 / 259; object-fit: cover; transition: opacity .4s; }
.info-post { margin-top: 10px; }
.post-title .two-lines {
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; text-overflow: ellipsis; margin: 7px 0 5px; color: var(--link-color);
}
.post-view-date { font-size: 82%; margin-bottom: 5px; color: var(--txt-color); }
.post-item .description { color: var(--txt-color); }
.post-item .description p { margin: 0; }

/* =========================================================
   VIDEO (lite-youtube)
   ========================================================= */
.video-grid { display: grid; grid-template-columns: 1fr; gap: 12px 20px; padding-bottom: 15px; }
@media (min-width: 576px) { .video-grid { grid-template-columns: 1fr 1fr; } }
.lite-yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  background-color: #000; background-position: center; background-size: cover;
  cursor: pointer; overflow: hidden; contain: content;
}
.lite-yt::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 60px;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, .67) 0%, rgba(0, 0, 0, .24) 60%, transparent 100%);
  background-position: top; background-repeat: repeat-x; pointer-events: none;
}
.lite-yt .lty-playbtn {
  position: absolute; top: 50%; left: 50%; transform: translate3d(-50%, -50%, 0);
  width: 68px; height: 48px; border: none; padding: 0; z-index: 1;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'><path d='M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z' fill='red'/><path d='M45 24 27 14v20' fill='white'/></svg>") no-repeat center / 68px 48px;
  filter: grayscale(100%); transition: filter .1s cubic-bezier(0, 0, .2, 1); cursor: pointer;
}
.lite-yt:hover .lty-playbtn, .lite-yt .lty-playbtn:focus { filter: none; }
.lite-yt.is-activated { cursor: unset; }
.lite-yt.is-activated::before, .lite-yt.is-activated .lty-playbtn { opacity: 0; pointer-events: none; }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================
   TESTIMONIAL
   ========================================================= */
.client-item {
  width: 100%; padding: 10px; text-align: center;
  border: 1px solid #e2e6e7; border-radius: 12px;
}
.client-item img { display: inline-block; width: 70px; height: 70px; border-radius: 12px; object-fit: cover; }
.client-item .author-info { position: relative; z-index: 1; padding: 10px 0 6px; }
.client-item .author-info strong { font-weight: 700; }
.client-item blockquote { position: relative; padding: 0 0 0 10px; border-left: 5px solid #eee; text-align: left; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { color: #fff; }

.footer-main {
  background: linear-gradient(165deg, var(--footer-bg-color) 0%, #1b5fa8 100%);
  padding: 52px 0 36px;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; } }

.footer-heading {
  display: inline-block; margin: 0 0 20px; padding-bottom: 12px;
  font-size: 17px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: #fff; position: relative;
}
.footer-heading::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px;
  background: #fff; border-radius: 2px; opacity: .85;
}

.footer-brand { margin-bottom: 22px; }
.footer-logo { display: inline-block; max-width: 148px; padding: 8px 12px; background: #fff; border-radius: 8px; line-height: 0; }
.footer-logo img { display: block; max-width: 100%; height: auto; }
.footer-tagline { margin: 14px 0 0; max-width: 300px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .82); }

.footer-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-info li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.footer-info li span { min-width: 0; overflow-wrap: break-word; }
.footer-info li i {
  flex: 0 0 auto; width: 32px; height: 32px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .15); border-radius: 50%; font-size: 13px; color: #fff;
}
.footer-info li a { color: #fff; font-weight: 700; }
.footer-info li a:hover { text-decoration: underline; }

.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social__btn {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .15);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.footer-social__btn:hover { background: #fff; transform: translateY(-2px); }
.footer-social__btn img { width: 20px; height: 20px; }
.footer-social__btn i { color: #fff; font-size: 15px; transition: color .2s ease; }
.footer-social__btn:hover i { color: var(--footer-bg-color); }

.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  display: flex; align-items: center; gap: 9px; font-size: 14.5px; line-height: 1.4;
  color: rgba(255, 255, 255, .88); transition: color .2s ease, transform .2s ease;
}
.footer-links a i { font-size: 10px; color: rgba(255, 255, 255, .55); transition: transform .2s ease, color .2s ease; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-links a:hover i { color: #fff; transform: translateX(2px); }

.footer-map { border-radius: 10px; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.footer-map iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 12; border: 0; }

.footer-bottom { background: #154b86; padding: 16px 0; }
.footer-bottom__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.footer-copyright { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.footer-top-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .85); transition: color .2s ease; }
.footer-top-link:hover { color: #fff; }

/* =========================================================
   FLOAT BUTTONS
   ========================================================= */
.float-button {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.fb-item {
  position: relative; width: 80px; height: 80px; z-index: 999;
  cursor: pointer; background: transparent; transition: visibility .5s;
  -webkit-backface-visibility: hidden; transform: translateZ(0);
}
.fb-item a { display: block; width: 100%; height: 100%; }
.fb-circle {
  position: absolute; top: 0; left: 0; width: 80px; height: 80px;
  border: 2px solid var(--primary-color); border-radius: 100%; background: transparent;
  opacity: .1; transform-origin: 50% 50%; transition: .5s;
  animation: fbCircle 1.2s ease-in-out infinite;
}
.fb-fill {
  position: absolute; top: 10px; left: 10px; width: 60px; height: 60px;
  border: 2px solid transparent; border-radius: 100%; background-color: var(--primary-color);
  opacity: .75; transform-origin: 50% 50%; transition: .5s;
  animation: fbFill 2.3s ease-in-out infinite;
}
.fb-item--mail .fb-fill, .fb-item--zalo .fb-fill { opacity: .2; }
.fb-item:hover .fb-fill { background-color: var(--primary-color); opacity: .75 !important; }
.fb-img {
  position: absolute; top: 20px; left: 20px; width: 40px; height: 40px;
  border: 2px solid transparent; border-radius: 100%;
  background-color: var(--primary-color); background-repeat: no-repeat;
  background-position: 50%; background-size: 30px; transform-origin: 50% 50%;
  animation: fbImg 1s ease-in-out infinite;
}
.fb-item--messenger .fb-img { top: 18px; width: 42px; height: 42px; background-size: 32px; opacity: .99; }
.fb-item--messenger:hover .fb-img { background-color: #00b0ff; }
@media (max-width: 480px) {
  .float-button { right: 10px; bottom: 10px; gap: 6px; }
  .fb-item { width: 64px; height: 64px; }
  .fb-circle { width: 64px; height: 64px; }
  .fb-fill { width: 48px; height: 48px; }
  .fb-img { top: 16px; left: 16px; width: 32px; height: 32px; background-size: 24px; }
}
@keyframes fbCircle {
  0% { transform: rotate(0) scale(.5) skew(1deg); opacity: .1; }
  30% { transform: rotate(0) scale(.7) skew(1deg); opacity: .5; }
  100% { transform: rotate(0) scale(1) skew(1deg); opacity: .1; }
}
@keyframes fbFill {
  0% { transform: rotate(0) scale(.7) skew(1deg); }
  50% { transform: rotate(0) scale(1) skew(1deg); }
  100% { transform: rotate(0) scale(.7) skew(1deg); }
}
@keyframes fbImg {
  0% { transform: rotate(0) scale(1) skew(1deg); }
  10% { transform: rotate(-25deg) scale(1) skew(1deg); }
  20% { transform: rotate(25deg) scale(1) skew(1deg); }
  30% { transform: rotate(-25deg) scale(1) skew(1deg); }
  40% { transform: rotate(25deg) scale(1) skew(1deg); }
  50%, 100% { transform: rotate(0) scale(1) skew(1deg); }
}

/* Notify cart */
.notify-cart { display: none; position: fixed; inset: 0; z-index: 9999; }
.notify-cart__box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: inline-block; min-width: 21.75rem; max-width: 25rem; padding: 1.9rem 1rem;
  border-radius: 2px; overflow: hidden; background-color: rgba(0, 0, 0, .7);
  color: #fff; font-size: 1.0625rem; text-align: center; cursor: default;
}
.notify-cart__close { position: absolute; top: 10px; right: 15px; background: none; border: 0; color: #fff; padding: 0; }
.notify-cart__icon i { font-size: 350%; color: #00bfa5; }
.notify-cart__text { padding-top: 15px; }
.notify-cart__view { display: inline-block; margin: 25px 0 10px; padding: 10px 25px; background: #00bfa5; color: #fff !important; font-weight: 700; }
@media (max-width: 480px) { .notify-cart__box { min-width: 18.75rem; } }

/* =========================================================
   RESPONSIVE (<992px): header mobile, font 90%
   ========================================================= */
@media (max-width: 991px) {
  .topbar { display: none; }

  .header-desktop { display: none; }
  .header-mobile { display: block; }
  .hm-bar { position: relative; z-index: 9998; background: var(--menu-bg-color); color: #fff; padding: 8px 0; transition: .5s ease-out; }
  .hm-bar .container { max-width: 100%; }
  .hm-row { position: relative; display: flex; align-items: center; min-height: 50px; }
  .hm-logo { flex: 0 0 50%; max-width: 50%; margin: 0 auto; padding: 0 15px; text-align: center; }
  .hm-logo img { height: 34px; width: auto; max-width: 100%; }
  .hm-tools { position: absolute; top: 50%; right: 0; transform: translateY(-50%); z-index: 999; white-space: nowrap; }
  .hm-tools li { display: inline-block; vertical-align: top; }
  .hm-tools .mini-cart { margin-left: 5px; padding-top: 10px; }
  .hm-tools .mini-cart__icon { width: 18px; height: 18px; }
  .hm-tools .mini-cart__link, .hm-bar .search-form--mini button { color: #fff; }
  .hm-bar .search-form--mini input { color: #333; }

  .m-nav { position: absolute; top: 50%; left: 0; transform: translateY(-10px); z-index: 999; }
  .m-nav__toggle { display: flex; align-items: center; padding: 0; border: 0; background: none; color: #fff; }
  .hamburger { position: relative; display: block; width: 18px; height: 20px; padding-top: 1px; }
  .hamburger::before, .hamburger span, .hamburger::after {
    content: ""; display: block; width: 18px; height: 3px; margin: 3px 0; background-color: #fff;
    transition: .2s ease-in-out;
  }
  .m-nav__title { display: block; padding-left: 5px; line-height: 22px; font-size: 90%; }
  .m-nav.is-open .hamburger span { transform: scale(0); }
  .m-nav.is-open .hamburger::before { transform: translateY(7px) rotate(135deg); }
  .m-nav.is-open .hamburger::after { transform: translateY(-5px) rotate(-135deg); }

  .m-nav__panel {
    position: absolute; top: 30px; left: 0; width: 290px; padding: 0 0 100px;
    background: var(--menu-bg-color); border: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, .1); overflow-y: auto; z-index: 9999;
    transform: translateX(-500px); transition: .5s ease-out;
  }
  .m-nav.is-open .m-nav__panel { transform: translateX(0); }
  .m-menu li { position: relative; }
  .m-menu a {
    display: block; position: relative; margin: 0 15px; padding: 8px 0; color: #fff;
    border-bottom: .5px solid var(--line-bottom-menu-color);
  }
  .m-menu .m-toggle {
    position: absolute; top: 1px; right: 5px; padding: 10px; color: #fff; cursor: pointer; z-index: 2;
    font-size: 90%; line-height: 1;
  }
  .m-menu .m-sub { display: none; overflow: hidden; padding-left: 15px; }
  .m-cat__title {
    margin: 0 15px; font-size: 18px; line-height: 35px; color: #fff; text-transform: uppercase;
    border-bottom: .5px solid var(--line-bottom-menu-color);
  }
  .m-menu--cat { padding-left: 15px; }
  .m-nav__extra { padding-top: 10px; text-align: right; }
  .m-nav__extra .social-header a { padding-right: 10px; }
  .m-nav__extra .user-header { display: block; }
  .m-nav__extra .user-header a { color: #000; padding-right: 10px; }

  .hm-bar.is-fixed {
    position: fixed !important; top: -1px; left: 0; width: 100%;
    padding-top: 8px !important; padding-bottom: 8px !important;
    box-shadow: 0 10px 10px 0 rgba(0, 0, 0, .1);
  }

  .hero-area { max-width: 100%; padding: 0; }
  .hero-area__row { margin: 0; }
  .hero-area__spacer { display: none; }
  .hero-area__slider { flex: 0 0 100%; max-width: 100%; padding: 0; }
  .carousel--hero .carousel__prev, .carousel--hero .carousel__next { width: 40px; height: 40px; }
  .carousel--hero .carousel__prev i, .carousel--hero .carousel__next i { line-height: 40px; font-size: 30px; }
}

/* Web gốc: chữ giảm còn 90% chỉ khi màn hình <= 576px */
@media (max-width: 576px) { body { font-size: 90%; } }

@media (max-width: 576px) {
  .widget { padding: var(--space-between-widget-mobile) 0; }
  .widget--hero-wrap { padding-bottom: 0; }
  .widget--flush { padding-top: 0; padding-bottom: 0; }
  .footer-main { padding: 40px 0 28px; }
  .footer-bottom__row { justify-content: center; text-align: center; }
}
