﻿
:root{
  --bg:#fff7ed;
  --card:#ffffff;
  --text:#2f1a12;
  --muted:#6b7280;
  --primary:#dc2626;
  --primary-2:#ea580c;
  --accent:#f59e0b;
  --line:#fed7aa;
  --shadow:0 12px 30px rgba(15,35,80,.08);
  --radius:20px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
  background:linear-gradient(180deg,#fff7ed 0%,#ffedd5 100%);
  color:var(--text);
}
a{color:var(--primary);text-decoration:none}
img{max-width:100%;display:block}
.site-shell{max-width:1280px;margin:0 auto;padding:0 20px}
.topbar{
  background:rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(220,38,38,.12)
}
.topbar .site-shell{
  display:flex;justify-content:space-between;align-items:center;padding:10px 20px;font-size:13px;color:var(--muted)
}
.brand-row{
  display:flex;justify-content:space-between;align-items:center;padding:20px 0;gap:24px
}
.brand-meta h1{margin:0;font-size:32px;line-height:1.1;color:var(--primary)}
.brand-meta p{margin:6px 0 0 0;color:var(--muted)}
.brand-row img{max-height:78px;filter:drop-shadow(0 8px 18px rgba(15,61,145,.12))}
.main-menu-wrap{
  position:sticky;top:0;z-index:50;
  background:linear-gradient(90deg,#991b1b 0%,#dc2626 45%,#f97316 78%,#f59e0b 100%);
  box-shadow:0 12px 30px rgba(15,35,80,.12)
}
.main-menu-wrap ul{list-style:none;margin:0;padding:0}
.main-menu-wrap > .site-shell > ul{display:flex;gap:4px;flex-wrap:wrap}
.main-menu-wrap li{position:relative}
.main-menu-wrap a{
  display:block;color:#fff;padding:16px 18px;font-weight:700;
  letter-spacing:.2px;border-radius:14px;transition:.25s
}
.main-menu-wrap li:hover>a{background:rgba(255,255,255,.12);transform:translateY(-1px)}
.main-menu-wrap li ul{
  display:none;position:absolute;left:0;top:100%;
  min-width:260px;background:#7f1d1d;padding:10px;border-radius:16px;box-shadow:var(--shadow)
}
.main-menu-wrap li:hover>ul{display:block}
.main-menu-wrap li ul a{padding:12px 14px;font-weight:600}
.hero{
  margin:24px 0 16px 0;border-radius:28px;overflow:hidden;position:relative;
  background:radial-gradient(circle at top right,#facc15 0,#ea580c 38%,#7f1d1d 100%);
  color:#fff;box-shadow:var(--shadow)
}
.hero-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:center;padding:34px}
.hero h1{font-size:44px;line-height:1.05;margin:0 0 10px}
.hero p{font-size:16px;line-height:1.7;color:rgba(255,255,255,.88)}
.hero-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.badge-soft{
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);
  color:#fff;padding:10px 14px;border-radius:999px;font-size:13px
}
.slider-shell{position:relative}
.slider-track{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.slider-card,.post-card,.admin-stat,.video-card{
  background:var(--card);border:1px solid rgba(15,61,145,.08);border-radius:24px;
  overflow:hidden;box-shadow:var(--shadow)
}
.slider-card img,.post-card img,.video-card img{width:100%;height:240px;object-fit:cover}
.card-body{padding:18px}
.section-head{
  display:flex;justify-content:space-between;align-items:end;margin:28px 0 18px 0
}
.section-head h2{margin:0;font-size:28px;color:var(--primary)}
.section-head p{margin:0;color:var(--muted)}
.content-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.post-card h3,.video-card h3{margin:0 0 8px 0;font-size:20px;line-height:1.3}
.post-card p,.video-card p{margin:0;color:var(--muted);line-height:1.65}
.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.btn-modern{
  display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border-radius:14px;
  background:linear-gradient(90deg,var(--primary-2),var(--accent));color:#fff;font-weight:700;
  box-shadow:0 12px 24px rgba(37,99,235,.22)
}
.btn-ghost{
  display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border-radius:14px;
  background:#fff;color:var(--primary);font-weight:700;border:1px solid var(--line)
}
.page-hero{
  margin:22px 0;padding:24px 26px;border-radius:24px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)
}
.page-hero h1{margin:0 0 8px 0;font-size:32px;color:var(--primary)}
.page-hero-kicker{display:inline-flex;align-items:flex-start;gap:8px;min-height:28px;padding:6px 12px;border-radius:999px;background:#fff7ed;color:#c2410c;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:10px;line-height:1.5;white-space:normal;max-width:min(100%,900px);text-align:left;vertical-align:top}
.page-hero-kicker i{margin-top:3px;flex:0 0 auto;line-height:1}
.page-hero-kicker > span{display:block;min-width:0;flex:1 1 auto}
.page-hero-subtitle{color:#475569;font-size:15px;font-weight:700;margin-bottom:8px}
.page-hero-description{max-width:900px;margin:12px auto 0;color:#475569;line-height:1.75}
.page-hero-description p{margin:0}
.page-hero-description p + p{margin-top:10px}
.list-item-modern{
  display:grid;grid-template-columns:320px 1fr;gap:20px;align-items:start;
  background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:24px;
  overflow:hidden;margin-bottom:20px
}
.list-item-modern .thumb img{width:100%;height:240px;object-fit:cover}
.list-item-modern .body{padding:20px}
.article-content{
  background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);
  border-radius:24px;padding:28px
}
.article-content h1{margin-top:0;color:var(--primary)}
.article-content .meta{color:var(--muted);margin-bottom:14px}
.footer-main{
  margin-top:40px;
  background:linear-gradient(180deg,#7f1d1d 0%,#431407 100%);
  color:#fff
}
.footer-cols{
  display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:24px;padding:34px 0
}
.footer-box{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;padding:20px
}
.footer-main a{color:#fff}
.footer-copy{padding:0 0 24px 0;color:rgba(255,255,255,.7)}
/* Admin */
.admin-grid{display:grid;grid-template-columns:290px 1fr;min-height:100vh}
.admin-side{
  background:linear-gradient(180deg,#7f1d1d 0%,#431407 100%);
  color:#fff;padding:26px;position:sticky;top:0;height:100vh;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable
}
.admin-side h2{margin-top:0;line-height:1.35}
.admin-side a{
  color:#fff;display:block;padding:12px 14px;border-radius:14px;margin-bottom:8px;
  transition:.2s;background:rgba(255,255,255,.04);white-space:normal;word-break:break-word;overflow-wrap:anywhere;line-height:1.45
}
.admin-side a:hover{background:rgba(255,255,255,.12)}

.admin-side::-webkit-scrollbar{width:10px}
.admin-side::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:999px}
.admin-side::-webkit-scrollbar-track{background:rgba(255,255,255,.06)}
.admin-main{padding:28px;background:var(--bg)}
.admin-card{
  background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:22px
}
.admin-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;margin-bottom:20px}
.admin-stat{padding:20px}
.admin-stat .label{color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.08em}
.admin-stat .value{font-size:30px;font-weight:800;color:var(--primary);margin-top:8px}
.modern-table{width:100%;border-collapse:separate;border-spacing:0 10px}
.modern-table th{color:var(--muted);font-size:13px;text-align:left;padding:0 10px 6px}
.modern-table td{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 10px}
.modern-table td:first-child{border-left:1px solid var(--line);border-radius:14px 0 0 14px}
.modern-table td:last-child{border-right:1px solid var(--line);border-radius:0 14px 14px 0}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.form-group{display:flex;flex-direction:column;gap:8px}
.form-group.full{grid-column:1 / -1}
input,select,textarea{
  border:1px solid var(--line);border-radius:14px;padding:12px 14px;
  font:inherit;background:#fff;outline:none
}
input:focus,select:focus,textarea:focus{border-color:#fdba74;box-shadow:0 0 0 4px rgba(249,115,22,.12)}
textarea{min-height:140px;resize:vertical}
.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;background:#fff7ed;color:var(--primary);font-size:13px;font-weight:700}
.grid-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.grid-gallery img{width:100%;height:180px;object-fit:cover;border-radius:18px;border:1px solid var(--line);box-shadow:var(--shadow)}
@media (max-width:1100px){
  .hero-inner,.content-grid,.admin-stats,.footer-cols,.form-grid,.grid-gallery{grid-template-columns:1fr 1fr}
  .slider-track{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .hero-inner,.content-grid,.admin-stats,.footer-cols,.form-grid,.grid-gallery,.slider-track{grid-template-columns:1fr}
  .list-item-modern{grid-template-columns:1fr}
  .admin-grid{grid-template-columns:1fr}
  .admin-side{position:relative;height:auto}
}

.slice-slider-large{
  padding:20px 0 24px 0;
  border-radius:28px;
}
.slice-track-large{
  display:flex;
  gap:22px;
  width:max-content;
  animation:sliceScrollLarge 34s linear infinite;
}
.slice-item-large{
  min-width:380px;
  width:380px;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  position:relative;
  background:#fff;
}
.slice-item-large img{
  width:100%;
  height:280px;
  object-fit:cover;
}
.slice-caption{
  position:absolute;
  left:14px;
  bottom:14px;
  background:rgba(8,22,43,.65);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  backdrop-filter:blur(8px);
}
@keyframes sliceScrollLarge{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
.video-grid-six{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-bottom:24px;
}
.video-six-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.video-six-media img{
  width:100%;
  height:220px;
  object-fit:cover;
}
.video-six-body{
  padding:18px;
}
.video-six-body h3{
  margin-top:0;
  min-height:58px;
  color:var(--primary);
  font-size:19px;
  line-height:1.4;
}
@media (max-width:1100px){
  .video-grid-six{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:860px){
  .video-grid-six{grid-template-columns:1fr}
  .slice-item-large{min-width:280px;width:280px}
  .slice-item-large img{height:220px}
}


/* Bố cục menu vị trí ngoài site */
.page-with-sidebars{
  display:grid;
  grid-template-columns:260px minmax(0,1fr) 260px;
  gap:20px;
  align-items:start;
}
.sidebar-left,.sidebar-right{
  background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:14px;
}
.content-center{min-width:0}
.menu-bottom-wrap{
  margin-top:28px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:16px;
}
.menu-bottom-wrap h3{margin-top:0;color:var(--primary)}
.sidebar-left .menu-root,
.sidebar-right .menu-root,
.menu-bottom-wrap .menu-root{
  display:block;
}
.sidebar-left .menu-root li,
.sidebar-right .menu-root li,
.menu-bottom-wrap .menu-root li{
  margin:6px 0;
}
.sidebar-left a,.sidebar-right a,.menu-bottom-wrap a{
  display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:12px;background:#f8fafc;
}
.sidebar-left .menu-sub,.sidebar-right .menu-sub,.menu-bottom-wrap .menu-sub{
  position:static;display:block;background:transparent;box-shadow:none;padding:6px 0 0 14px;margin-top:6px;
}


/* Fix black bullets in vertical home menus */
.sidebar-left .menu-root,
.sidebar-right .menu-root,
.menu-bottom-wrap .menu-root,
.home-sidebar .menu-root,
.sidebar-left .menu-sub,
.sidebar-right .menu-sub,
.menu-bottom-wrap .menu-sub,
.home-sidebar .menu-sub{
  list-style:none !important;
  margin:0;
}
.sidebar-left .menu-root li,
.sidebar-right .menu-root li,
.menu-bottom-wrap .menu-root li,
.home-sidebar .menu-root li,
.sidebar-left .menu-sub li,
.sidebar-right .menu-sub li,
.menu-bottom-wrap .menu-sub li,
.home-sidebar .menu-sub li{
  list-style:none !important;
}
@media (max-width:1100px){
  .page-with-sidebars{grid-template-columns:1fr}
  .sidebar-left,.sidebar-right{order:2}
  .content-center{order:1}
}


/* Trang chủ có menu dọc 2 bên theo PosLeft / PosRight */
.home-page-sidebars{
  display:grid;
  grid-template-columns:260px minmax(0,1fr) 260px;
  gap:20px;
  align-items:start;
  margin-top:20px;
}
.home-sidebar{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.home-side-card,
.home-side-news-card{
  background:linear-gradient(180deg,#ecfbf8 0%,#f8fffe 100%);
  border:1px solid #c9ebe4;
  border-radius:22px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.home-side-title{
  padding:14px 16px;
  background:linear-gradient(90deg,#c8f1e7 0%,#dff8f2 100%);
  color:#146c60;
  font-weight:800;
  border-bottom:1px solid #c9ebe4;
}
.home-sidebar .menu-root{
  display:block;
  padding:8px 10px 12px 10px;
}
.home-sidebar .menu-root li{
  margin:6px 0;
  position:relative;
}
.home-sidebar .menu-root > li > a,
.home-sidebar .menu-sub > li > a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:11px 12px;
  background:#ffffff;
  color:#0f6f67;
  border:1px solid #dff3ef;
  border-radius:14px;
  font-weight:700;
  transition:.2s;
}
.home-sidebar .menu-root > li > a:hover,
.home-sidebar .menu-sub > li > a:hover{
  background:#dff8f2;
  transform:translateX(2px);
}
.home-sidebar .menu-sub{
  display:block;
  position:static;
  min-width:auto;
  box-shadow:none;
  background:transparent;
  padding:6px 0 0 14px;
  margin:0;
}
.home-sidebar .menu-arrow{
  font-size:12px;
  color:#2b8f82;
}
.side-thumb-item{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:10px;
  padding:12px 14px;
  border-top:1px dashed #d8efe9;
  color:inherit;
}
.side-thumb-item:first-of-type{
  border-top:none;
}
.side-thumb-item img{
  width:72px;
  height:54px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #d9ece7;
  background:#fff;
}
.side-thumb-meta{
  min-width:0;
}
.side-thumb-title{
  color:#134e4a;
  font-weight:700;
  line-height:1.35;
  font-size:13px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.side-thumb-date{
  margin-top:6px;
  font-size:12px;
  color:#6b7280;
}
@media (max-width:1100px){
  .home-page-sidebars{
    grid-template-columns:1fr;
  }
}


/* Ẩn hoàn toàn sidebar nếu không có PosLeft / PosRight và cho content full hơn */
.page-with-sidebars{
  display:grid;
  gap:20px;
  align-items:start;
}
.page-with-sidebars.has-left.has-right{
  grid-template-columns:260px minmax(0,1fr) 260px;
}
.page-with-sidebars.has-left.no-right,
.page-with-sidebars.no-left.has-right{
  grid-template-columns:260px minmax(0,1fr);
}
.page-with-sidebars.no-left.no-right{
  grid-template-columns:minmax(0,1fr);
}
.content-center.full-width{
  width:100%;
  max-width:100%;
}
.content-center.with-one-sidebar{
  width:100%;
  max-width:100%;
}
.content-center.with-left-right{
  width:100%;
  max-width:100%;
}
.home-sidebar{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:14px;
}
.home-sidebar .menu-root{
  display:block;
}
.home-sidebar .menu-root li{
  margin:6px 0;
}
.home-sidebar .menu-root > li > a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:12px;
  background:#e8f5f2;
  color:#0f766e;
  font-weight:700;
}
.home-sidebar .menu-sub{
  position:static;
  display:block;
  background:transparent;
  box-shadow:none;
  padding:6px 0 0 16px;
  margin-top:6px;
}
.home-sidebar .menu-sub li a{
  background:#f8fafc;
  color:#0f172a;
  font-weight:500;
}
@media (max-width:1100px){
  .page-with-sidebars,
  .page-with-sidebars.has-left.has-right,
  .page-with-sidebars.has-left.no-right,
  .page-with-sidebars.no-left.has-right,
  .page-with-sidebars.no-left.no-right{
    grid-template-columns:1fr;
  }
}


/* Fix ẩn hoàn toàn aside rỗng */
.page-with-sidebars.no-left .sidebar-left,
.page-with-sidebars.no-right .sidebar-right{
  display:none !important;
}
.page-with-sidebars.no-left.no-right{
  grid-template-columns:minmax(0,1fr) !important;
}
.page-with-sidebars.has-left.no-right{
  grid-template-columns:260px minmax(0,1fr) !important;
}
.page-with-sidebars.no-left.has-right{
  grid-template-columns:minmax(0,1fr) 260px !important;
}
.content-center.full-width{
  grid-column:1 / -1;
}


/* 5 thumb bài mới nhất dưới menu trái/phải */
.side-latest-box{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.side-latest-title{
  font-weight:800;
  color:#0f766e;
  background:#e8f5f2;
  border-radius:12px;
  padding:10px 12px;
  margin-bottom:10px;
}
.side-latest-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:8px 0;
  border-bottom:1px dashed #d7e5ea;
  text-decoration:none;
}
.side-latest-item:last-child{
  border-bottom:none;
}
.side-latest-item img{
  width:68px;
  height:52px;
  object-fit:cover;
  border-radius:8px;
  flex:none;
  background:#f1f5f9;
}
.side-latest-meta{
  min-width:0;
}
.side-latest-name{
  color:#0f172a;
  font-weight:700;
  font-size:13px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.side-latest-date{
  color:#64748b;
  font-size:12px;
  margin-top:4px;
}


/* Module ảnh trượt lớn từ tblLogo cho Trang chủ */
.home-banner-stage{
  margin:22px 0 26px 0;
}
.home-banner-frame{
  position:relative;
  overflow:hidden;
  border-radius:30px;
  border:1px solid rgba(15,61,145,.08);
  box-shadow:0 18px 42px rgba(15,35,80,.12);
  background:#fff;
}
.home-banner-track{
  display:flex;
  gap:0;
  width:max-content;
  animation:homeBannerScroll 40s linear infinite;
}
.home-banner-frame:hover .home-banner-track{
  animation-play-state:paused;
}
.home-banner-slide{
  width:min(100vw - 40px, 1280px);
  flex:none;
  position:relative;
}
.home-banner-slide a{
  display:block;
  position:relative;
}
.home-banner-slide img{
  width:100%;
  height:440px;
  object-fit:cover;
}
.home-banner-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(3,15,40,.08) 0%, rgba(3,15,40,.56) 100%);
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
}
.home-banner-caption{
  padding:28px;
  color:#fff;
  max-width:65%;
}
.home-banner-caption h2{
  margin:10px 0 0 0;
  font-size:30px;
  line-height:1.2;
  color:#fff;
}
.home-banner-badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(8px);
  font-size:13px;
  font-weight:700;
}
@keyframes homeBannerScroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
.hero-highlight{
  display:flex;
  justify-content:center;
}
.hero-highlight-card{
  background:#fff;
  color:var(--text);
  border-radius:24px;
  border:1px solid rgba(15,61,145,.08);
  box-shadow:var(--shadow);
  padding:18px;
}
.hero-highlight-title{
  font-size:20px;
  font-weight:800;
  color:var(--primary);
  margin-bottom:8px;
}
.hero-highlight-desc{
  color:var(--muted);
  line-height:1.65;
  margin-bottom:14px;
}
.hero-highlight-thumb{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius:18px;
}
@media (max-width:1100px){
  .home-banner-slide img{height:340px}
  .home-banner-caption{max-width:85%}
}
@media (max-width:768px){
  .home-banner-slide img{height:240px}
  .home-banner-caption{padding:16px;max-width:92%}
  .home-banner-caption h2{font-size:22px}
  .hero-highlight-thumb{height:180px}
}


/* Slider lớn dùng nút trái phải */
.home-banner-frame{
  position:relative;
  overflow:hidden;
  border-radius:30px;
  border:1px solid rgba(15,61,145,.08);
  box-shadow:0 18px 42px rgba(15,35,80,.12);
  background:#fff;
}
.home-banner-track-js{
  display:flex;
  gap:0;
  width:100%;
  transition:transform .08s linear;
  will-change:transform;
}
.home-banner-slide{
  min-width:100%;
  width:100%;
  flex:none;
  position:relative;
}
.home-banner-slide img{
  width:100%;
  height:440px;
  object-fit:cover;
}
.banner-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;
  width:48px;
  height:48px;
  border:none;
  border-radius:999px;
  background:rgba(8,22,43,.52);
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(15,35,80,.18);
  transition:all .2s ease;
}
.banner-btn:hover{
  background:rgba(15,61,145,.92);
  transform:translateY(-50%) scale(1.06);
}
.banner-btn.prev{ left:16px; }
.banner-btn.next{ right:16px; }

.home-banner-dots{
  position:absolute;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  z-index:5;
}
.home-banner-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  border:none;
  background:rgba(255,255,255,.55);
  cursor:pointer;
  transition:all .2s ease;
}
.home-banner-dot.active{
  width:28px;
  background:#fff;
}

@media (max-width:1100px){
  .home-banner-slide img{height:340px}
}
@media (max-width:768px){
  .home-banner-slide img{height:240px}
  .banner-btn{
    width:40px;
    height:40px;
    font-size:20px;
  }
  .banner-btn.prev{ left:10px; }
  .banner-btn.next{ right:10px; }
}


/* Menu icon upgrade */
.menu-link-inner{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.menu-label{
  display:inline-block;
  min-width:0;
}
.menu-icon-badge{
  width:22px;
  height:22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 22px;
  font-size:11px;
  box-shadow:0 6px 14px rgba(15,35,80,.12);
}
.main-menu-wrap .menu-icon-badge{
  background:rgba(255,255,255,.18);
  color:#fff;
  border:1px solid rgba(255,255,255,.20);
}
.sidebar-left .menu-icon-badge,
.sidebar-right .menu-icon-badge,
.menu-bottom-wrap .menu-icon-badge,
.home-sidebar .menu-icon-badge{
  background:linear-gradient(135deg,#e0f2fe 0%,#dbeafe 100%);
  color:#1d4ed8;
  border:1px solid rgba(59,130,246,.18);
}
.main-menu-wrap a,
.sidebar-left a,
.sidebar-right a,
.menu-bottom-wrap a,
.home-sidebar .menu-root > li > a,
.home-sidebar .menu-sub > li > a{
  gap:10px;
}
.main-menu-wrap .menu-arrow,
.sidebar-left .menu-arrow,
.sidebar-right .menu-arrow,
.menu-bottom-wrap .menu-arrow,
.home-sidebar .menu-arrow{
  margin-left:auto;
  flex:0 0 auto;
}


/* Home zone title with special icon */
.home-zone-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
    line-height:1.2;
}
.home-zone-title-badge{
    width:34px;
    height:34px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#ff7a18,#ffb347);
    color:#fff;
    box-shadow:0 8px 18px rgba(255,122,24,.28);
    flex:0 0 34px;
}
.home-zone-title-badge i{
    font-size:14px;
}
.home-zone-title-text{
    display:inline-block;
}
.home-zone-meta{
    margin-top:8px;
}


/* upgraded top hotline + zalo */
.topbar-upgraded {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 35%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
}

.topbar-upgraded-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.topbar-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 1 1 720px;
    min-width: 280px;
    padding: 6px 0;
}

.topbar-contact-company {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 18px;
    flex: 0 0 42px;
}

.topbar-contact-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topbar-contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .82;
}

.topbar-contact-name {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.topbar-contact-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 9px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.topbar-action:hover {
    transform: translateY(-1px);
}

.topbar-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex: 0 0 34px;
}

.topbar-action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.topbar-action-text small {
    font-size: 11px;
    opacity: .82;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.topbar-action-text strong {
    font-size: 16px;
    font-weight: 800;
}

.hotline-action {
    background: rgba(255,255,255,0.14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.hotline-action:hover {
    background: rgba(255,255,255,0.2);
}

.hotline-action .topbar-action-icon {
    background: rgba(255,255,255,0.22);
}

.zalo-action {
    background: #fff;
    color: #0f4fd6;
    box-shadow: 0 12px 26px rgba(15, 79, 214, 0.22);
}

.zalo-action:hover {
    background: #eff6ff;
}

.zalo-action .topbar-action-icon {
    background: #0f4fd6;
    color: #fff;
}

.topbar-right-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-mini-link {
    color: rgba(255,255,255,.96);
    text-decoration: none;
    font-size: 13px;
    margin-right: 4px;
}

.topbar-mini-link i {
    margin-right: 5px;
}

@media (max-width: 991px) {
    .topbar-upgraded-inner,
    .topbar-contact-card {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-contact-card {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
        gap: 10px;
        padding: 4px 0;
    }

    .topbar-contact-company,
    .topbar-contact-actions,
    .topbar-right-tools {
        width: 100%;
    }

    .topbar-right-tools {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .topbar-contact-name {
        font-size: 16px;
    }

    .topbar-action {
        width: 100%;
        justify-content: flex-start;
        border-radius: 16px;
    }
}


.modern-pagination{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:28px 0 12px}
.page-numbers{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center}
.page-number,.page-nav{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--primary);font-weight:700;text-decoration:none;box-shadow:var(--shadow)}
.page-number.active{background:linear-gradient(135deg,var(--primary),#3b82f6);color:#fff;border-color:transparent}
.page-nav.disabled{opacity:.45;pointer-events:none}
.empty-state{padding:22px;border:1px dashed var(--line);border-radius:20px;background:#fff;color:var(--muted);text-align:center;margin-top:18px}


.admin-section-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;margin-top:16px}
.admin-card-lite{border:1px solid #e5e7eb;border-radius:16px;padding:16px;background:#fff;box-shadow:0 6px 20px rgba(15,23,42,.04)}
.admin-card-lite-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.admin-title-row{font-weight:700;font-size:18px;line-height:1.35}
.admin-badges{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.admin-muted{color:#6b7280;font-size:13px}
.config-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.empty-state{padding:28px 18px;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc;text-align:center;margin-top:16px}
.empty-state-title{font-weight:700;margin-bottom:6px}
.details-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;margin-top:16px}
.detail-item{border:1px solid #e5e7eb;border-radius:14px;padding:14px;background:#fff}
.detail-item.full{grid-column:1 / -1}
.detail-label{font-size:13px;color:#6b7280;margin-bottom:6px}
.detail-value{font-size:15px;line-height:1.6;word-break:break-word}
.detail-value pre{white-space:pre-wrap;margin:0;font-family:inherit}
.html-preview{padding:10px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa}
@media (max-width: 767px){.config-summary-grid{grid-template-columns:1fr}.admin-card-lite-head{flex-direction:column}}


/* Header brand logo/company block from tblConfig */
.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.brand-logo-wrap {
    flex: 0 0 auto;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-logo-link img {
    max-height: 84px;
    max-width: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.brand-meta {
    flex: 1 1 auto;
}

.brand-meta h1 {
    margin: 0;
    color: #0a2e73;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-meta p {
    margin: 8px 0 0;
    color: #4b5a70;
    font-size: 15px;
}

@media (max-width: 768px) {
    .brand-row {
        flex-direction: column;
        text-align: center;
        padding: 12px 0;
    }

    .brand-meta,
    .brand-meta[style] {
        text-align: center !important;
    }

    .brand-meta h1 {
        font-size: 22px;
    }

    .brand-logo-link img {
        max-height: 70px;
        max-width: 220px;
    }
}

.config-image-picker {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
}

.config-image-picker-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.config-image-preview-box {
    margin-top: 10px;
    padding: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.config-image-preview-box img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    border-radius: 10px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .config-image-picker {
        grid-template-columns: 1fr;
    }
}

.brand-row-search {
    display: grid;
    grid-template-columns: auto minmax(320px, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.brand-search-wrap {
    width: 100%;
}

.brand-search-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-search-input-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    background: #fff;
    border: 2px solid #dbe4f0;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.brand-search-icon {
    position: absolute;
    left: 16px;
    color: #64748b;
}

.brand-search-input-wrap input {
    border: 0;
    outline: none;
    padding: 14px 16px 14px 44px;
    font-size: 15px;
    width: 100%;
    background: transparent;
}

.brand-search-input-wrap button {
    border: 0;
    background: linear-gradient(135deg, #0f4c81, #f97316);
    color: #fff;
    font-weight: 700;
    padding: 14px 22px;
    cursor: pointer;
}

.brand-search-note {
    font-size: 12px;
    color: #64748b;
    padding-left: 6px;
}

.search-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.search-alert,
.search-summary,
.search-empty {
    padding: 14px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.search-alert.blocked {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.search-alert.warning {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}

.search-result-list {
    display: grid;
    gap: 16px;
}

.search-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
}

.search-card-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
}

.search-card-body h3 {
    margin: 0 0 8px;
}

.search-card-body h3 a {
    color: #0f172a;
    text-decoration: none;
}

.search-card-meta {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.search-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-pagination a {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
}

.search-pagination a.active {
    background: #0f4c81;
    color: #fff;
}

@media (max-width: 992px) {
    .brand-row-search {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand-meta,
    .brand-meta[style] {
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .search-card {
        grid-template-columns: 1fr;
    }
}



/* Home zone redesign */
.home-zones-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 28px;
}

.home-zone-rich {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.home-zone-rich-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.home-zone-rich-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.home-zone-rich-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #0f4c81);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 12px 28px rgba(15, 76, 129, 0.18);
    flex: 0 0 54px;
}

.home-zone-rich-copy h2 {
    margin: 0 0 4px;
    font-size: 28px;
    line-height: 1.15;
    color: #0f172a;
}

.home-zone-rich-copy p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.home-zone-rich-link {
    white-space: nowrap;
}

.home-zone-rich-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-zone-rich-featured {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.1fr);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
}

.home-zone-rich-featured-thumb img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.home-zone-rich-featured-content {
    padding: 22px 24px;
}

.home-zone-rich-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.home-zone-rich-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: #eff6ff;
    border-radius: 999px;
    color: #0f4c81;
    font-size: 13px;
    font-weight: 600;
}

.home-zone-rich-featured-content h3 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

.home-zone-rich-featured-content h3 a,
.home-zone-rich-card-body h4 a {
    color: #0f172a;
    text-decoration: none;
}

.home-zone-rich-featured-content h3 a:hover,
.home-zone-rich-card-body h4 a:hover {
    color: #ea580c;
}

.home-zone-rich-featured-content p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.home-zone-rich-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.home-zone-rich-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.home-zone-rich-card-thumb img {
    width: 140px;
    height: 105px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.home-zone-rich-card-body h4 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.home-zone-rich-card-body p {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.home-zone-rich-date {
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .home-zone-rich-featured {
        grid-template-columns: 1fr;
    }

    .home-zone-rich-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-zone-rich-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-zone-rich-link {
        width: 100%;
        text-align: center;
    }

    .home-zone-rich-copy h2 {
        font-size: 24px;
    }
}

@media (max-width: 560px) {
    .home-zone-rich {
        padding: 16px;
        border-radius: 22px;
    }

    .home-zone-rich-card {
        grid-template-columns: 1fr;
    }

    .home-zone-rich-card-thumb img {
        width: 100%;
        height: 180px;
    }

    .home-zone-rich-featured-content h3 {
        font-size: 24px;
    }
}


/* Hero zTop logos / ad banners */
.hero-top-logos{
    margin-top: 26px;
}
.hero-top-logos-inner{
    display:grid;
    grid-template-columns:minmax(320px, 1.05fr) minmax(420px, 1.35fr);
    gap:24px;
    align-items:stretch;
}
.hero-top-logos-copy{
    padding:28px;
    border-radius:28px;
    background:linear-gradient(135deg,#fff7ed 0%, #ffffff 58%, #eff6ff 100%);
    border:1px solid #e2e8f0;
    box-shadow:0 22px 48px rgba(15,23,42,.08);
}
.hero-top-logos-kicker{
    display:inline-flex;
    padding:7px 14px;
    border-radius:999px;
    background:rgba(249,115,22,.12);
    color:#c2410c;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    margin-bottom:14px;
}
.hero-top-logos-copy h1{
    margin:0 0 12px;
    font-size:34px;
    line-height:1.08;
    color:#0f172a;
}
.hero-top-logos-copy p{
    margin:0;
    color:#475569;
    line-height:1.75;
    font-size:15px;
}
.hero-top-logos-showcase{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(250px,.9fr);
    gap:18px;
}
.hero-top-logos-featured,
.hero-top-logo-card,
.hero-top-logos-empty{
    border-radius:26px;
    overflow:hidden;
    border:1px solid #e2e8f0;
    background:#fff;
    box-shadow:0 18px 42px rgba(15,23,42,.08);
}
.hero-top-logos-featured a,
.hero-top-logo-card a{
    display:block;
}
.hero-top-logos-featured img{
    width:100%;
    height:100%;
    min-height:340px;
    object-fit:cover;
    display:block;
}
.hero-top-logos-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}
.hero-top-logo-card img{
    width:100%;
    height:160px;
    object-fit:cover;
    display:block;
}
.hero-top-logos-empty{
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:24px;
    color:#64748b;
}
@media (max-width: 1150px){
    .hero-top-logos-inner,
    .hero-top-logos-showcase{
        grid-template-columns:1fr;
    }
    .hero-top-logos-featured img{
        min-height:260px;
    }
}
@media (max-width: 640px){
    .hero-top-logos-copy{
        padding:20px;
    }
    .hero-top-logos-copy h1{
        font-size:26px;
    }
    .hero-top-logos-grid{
        grid-template-columns:1fr;
    }
}


.footer-logo-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}
.footer-logo-item{
    display:block;
    border:1px solid rgba(255,255,255,.12);
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    padding:6px;
}
.footer-logo-item img{
    display:block;
    width:100%;
    height:92px;
    object-fit:cover;
}
@media (max-width:640px){
    .footer-logo-grid{
        grid-template-columns:1fr;
    }
}



/* ===== Desktop horizontal menu layout fix ===== */
.main-menu-wrap > .site-shell,
.main-menu-shell{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.primary-menu-host > .menu-root,
.main-menu-wrap > .site-shell > .primary-menu-host > .menu-root{
  display:flex;
  align-items:stretch;
  gap:4px;
  flex-wrap:wrap;
}
.main-menu-wrap .menu-root > li{
  flex:0 0 auto;
}
.main-menu-wrap .menu-root > li > a{
  min-height:52px;
}
@media (min-width:861px){
  .primary-menu-host{
    display:block !important;
  }
  .main-menu-wrap .menu-root > li > a{
    white-space:nowrap;
  }
  .main-menu-wrap .menu-root > li:hover > ul,
  .main-menu-wrap .menu-sub > li:hover > ul{
    display:block;
  }
}

/* ===== Responsive & cross-browser compatibility upgrade ===== */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden}
img,video,iframe,table{max-width:100%}
iframe{border:0}
input,select,textarea,button{max-width:100%}
button{cursor:pointer}
.main-menu-shell{display:flex;align-items:center;justify-content:space-between;gap:16px}
.primary-menu-host{flex:1;min-width:0}
.mobile-menu-toggle{display:none;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:46px;height:46px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);border-radius:14px;color:#fff;box-shadow:none}
.mobile-menu-toggle-bar{display:block;width:20px;height:2px;background:currentColor;border-radius:999px}
.menu-root,.menu-sub{margin:0;padding:0;list-style:none}
.menu-link-inner{display:inline-flex;align-items:center;gap:10px;min-width:0}
.menu-label{display:inline-block;min-width:0;word-break:break-word}
.main-menu-wrap .menu-root>li>a{display:flex;align-items:center;justify-content:space-between;gap:10px}
.main-menu-wrap .menu-sub li>a{display:flex;align-items:center;justify-content:space-between;gap:10px}
.main-menu-wrap .menu-sub .menu-arrow{transform:rotate(-90deg)}
.main-menu-wrap .menu-sub li.open>.menu-arrow{transform:rotate(0deg)}
.main-menu-wrap .menu-sub li ul{left:100%;top:0;margin-left:10px}
.home-banner-frame,.hero,.home-zone-rich,.article-content,.page-hero,.side-latest-box,.menu-bottom-wrap{min-width:0}
.brand-logo-wrap,.brand-search-wrap,.brand-meta,.content-center,.home-zone-rich-featured-content,.home-zone-rich-card-body{min-width:0}
.brand-meta h1,.brand-meta p,.home-zone-rich-featured-content h3,.home-zone-rich-card-body h4,.side-latest-name,.footer-box h3{overflow-wrap:anywhere;word-break:break-word}
.home-banner-slide img,.hero-top-logos-featured img,.hero-top-logo-card img,.footer-logo-item img{height:auto}
.hero-top-logos-featured img,.hero-top-logo-card img{object-fit:contain;background:#fff}
.article-content img,.article-content table,.article-content iframe,.article-content video,.article-content embed,.article-content object,.article-content .table{max-width:100%!important}
.article-content table{display:block;overflow-x:auto;border-collapse:collapse;-webkit-overflow-scrolling:touch}
.article-content td,.article-content th{white-space:normal}
.brand-search-input-wrap input{min-width:0}
.footer-logo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:12px}
.footer-logo-item{display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.08);border-radius:16px;padding:10px;min-height:82px}
.footer-logo-item img{max-height:62px;object-fit:contain}
.modern-table-wrap,.table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.modern-table{min-width:760px}
@supports not (backdrop-filter: blur(10px)){
  .topbar{background:rgba(255,255,255,.98)}
  .slice-caption{background:rgba(8,22,43,.82)}
}
@media (hover:none){
  .main-menu-wrap li:hover>ul{display:none}
}
@media (max-width:1200px){
  .site-shell{padding-left:16px;padding-right:16px}
  .brand-row{gap:18px}
  .brand-meta h1{font-size:28px}
}
@media (max-width:991px){
  .brand-row{flex-wrap:wrap;align-items:flex-start}
  .brand-logo-wrap{order:1;flex:0 0 auto}
  .brand-search-wrap{order:3;flex:1 1 100%}
  .brand-meta{order:2;flex:1 1 320px;text-align:left!important}
  .brand-search-note{display:none}
  .home-banner-slide img{max-height:360px;object-fit:cover}
  .page-with-sidebars,.page-with-sidebars.has-left.has-right,.page-with-sidebars.has-left.no-right,.page-with-sidebars.no-left.has-right,.page-with-sidebars.no-left.no-right{grid-template-columns:1fr!important}
  .sidebar-left,.sidebar-right{order:2}
  .content-center{order:1}
}
@media (max-width:860px){
  .topbar .site-shell,.topbar-upgraded-inner{flex-direction:column;align-items:stretch;gap:12px}
  .topbar-contact-actions,.topbar-right-tools{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .main-menu-wrap{position:relative;top:auto}
  .mobile-menu-toggle{display:inline-flex}
  .primary-menu-host{display:none;width:100%}
  .main-menu-wrap.menu-open .primary-menu-host{display:block}
  .main-menu-wrap > .site-shell > .primary-menu-host > ul,
  .primary-menu-host > .menu-root{display:flex;flex-direction:column;gap:8px;padding:10px 0 14px 0}
  .main-menu-wrap .menu-root li{width:100%}
  .main-menu-wrap .menu-root>li>a,
  .main-menu-wrap .menu-sub li>a{padding:14px 16px;border-radius:14px}
  .main-menu-wrap li ul,
  .main-menu-wrap .menu-sub li ul{display:none;position:static;min-width:0;width:100%;margin:8px 0 0 0;border-radius:14px;box-shadow:none;background:rgba(6,18,38,.55)}
  .main-menu-wrap li.open>ul{display:block}
  .main-menu-wrap .menu-sub{padding:8px}
  .main-menu-wrap .menu-sub .menu-arrow{transform:none}
  .brand-row img{max-height:62px}
  .hero-inner,.hero-top-logos-inner,.home-zone-rich-body,.home-zone-rich-featured,.footer-cols{grid-template-columns:1fr!important}
  .hero{border-radius:22px}
  .hero-inner{padding:22px}
  .hero h1,.hero-top-logos-copy h1{font-size:30px!important}
  .home-banner-caption{left:16px;right:16px;bottom:16px;max-width:none}
  .home-banner-slide img{height:240px!important}
  .banner-btn{width:42px;height:42px}
}
@media (max-width:640px){
  .site-shell{padding-left:12px;padding-right:12px}
  .brand-row{padding:14px 0}
  .brand-row-search{grid-template-columns:1fr;gap:12px}
  .brand-logo-wrap,.brand-search-wrap,.brand-meta{width:100%}
  .brand-logo-wrap{text-align:center}
  .brand-logo-link{display:inline-flex}
  .brand-meta{order:2;flex:1 1 auto;text-align:center!important}
  .brand-meta h1,.brand-meta p{text-align:center!important}
  .brand-search-wrap{order:3}
  .brand-search-form{gap:6px}
  .brand-search-input-wrap{display:block;position:relative;border-radius:28px;overflow:hidden}
  .brand-search-icon{position:absolute;left:16px;top:17px;z-index:2;line-height:1;pointer-events:none}
  .brand-search-input-wrap input{display:block;width:100%;min-height:54px;padding:14px 16px 14px 46px;box-sizing:border-box}
  .brand-search-input-wrap button{display:block;width:100%;margin-top:0;padding:14px 18px;border-radius:0}
  .hero-top-logos{margin-top:18px}
  .hero-top-logos-inner{gap:16px}
  .hero-top-logos-showcase{gap:12px}
  .hero-top-logos-featured,
  .hero-top-logo-card{min-height:0;border-radius:20px}
  .hero-top-logos-featured a,
  .hero-top-logo-card a{display:flex;align-items:center;justify-content:center;aspect-ratio:16 / 9;background:#fff}
  .hero-top-logos-featured img,
  .hero-top-logo-card img{width:100%;height:100%!important;object-fit:contain!important;object-position:center center;padding:8px 10px;background:#fff}
  .hero-top-logos-grid{grid-template-columns:1fr 1fr;gap:12px}
  .hero-inner{padding:18px}
  .hero h1,.hero-top-logos-copy h1{font-size:24px!important;line-height:1.2}
  .section-head{flex-direction:column;align-items:flex-start;gap:8px}
  .topbar-action{width:100%;justify-content:flex-start}
  .side-latest-item{grid-template-columns:88px 1fr!important}
  .side-latest-item img{height:72px!important}
  .slice-item-large{min-width:240px;width:240px}
  .slice-item-large img{height:180px}
  .video-six-media img{height:180px}
  .footer-box{padding:16px}
}


/* ===== Fix hero tblLogo images fill full tile ===== */
.hero-top-logos-featured,
.hero-top-logo-card{
  position:relative;
}
.hero-top-logos-featured a,
.hero-top-logo-card a{
  display:block;
  width:100%;
  height:100%;
}
.hero-top-logos-featured{
  min-height:340px;
}
.hero-top-logo-card{
  min-height:160px;
}
.hero-top-logos-featured img,
.hero-top-logo-card img{
  display:block;
  width:100%;
  height:100% !important;
  min-height:0;
  object-fit:cover !important;
  object-position:center center;
  background:transparent;
}
@media (max-width:1150px){
  .hero-top-logos-featured{
    min-height:260px;
  }
}

/* ===== Fix home banner slider: đồng bộ chiều cao ảnh, tránh khoảng trắng chân banner khi ảnh upload lệch kích thước ===== */
.home-banner-frame,
.home-banner-track-js,
.home-banner-slide{
  align-items:stretch;
}
.home-banner-slide a{
  display:block;
  position:relative;
  width:100%;
  aspect-ratio:16 / 6;
  overflow:hidden;
}
.home-banner-slide img{
  display:block;
  width:100%;
  height:100% !important;
  min-height:0;
  object-fit:cover !important;
  object-position:center center;
}
.home-banner-overlay{
  position:absolute;
  inset:0;
}
@media (max-width:1100px){
  .home-banner-slide a{aspect-ratio:16 / 7}
}
@media (max-width:768px){
  .home-banner-slide a{aspect-ratio:16 / 9}
}


/* ===== Home button at start of horizontal menu ===== */
.menu-home-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:0 0 auto;
  min-height:44px;
  padding:0 14px;
  border-radius:14px;
  color:var(--top-menu-text,#fff);
  text-decoration:none;
  font-weight:700;
  white-space:nowrap;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  transition:background .2s ease, transform .2s ease, border-color .2s ease;
}
.menu-home-link:hover{
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.24);
  transform:translateY(-1px);
}
.menu-home-link-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  font-size:13px;
}
.menu-home-link-text{line-height:1}
@media (min-width:861px){
  .main-menu-shell{gap:12px}
  .menu-home-link{margin-right:2px}
}
@media (max-width:860px){
  .main-menu-shell{gap:10px;flex-wrap:wrap}
  .menu-home-link{order:2;min-height:42px;padding:0 12px;border-radius:12px}
  .primary-menu-host{order:3;flex-basis:100%}
}
@media (max-width:520px){
  .menu-home-link-text{font-size:13px}
  .menu-home-link{padding:0 10px;gap:6px}
  .menu-home-link-icon{width:24px;height:24px;font-size:12px}
}


/* ===== Compact one-line desktop horizontal menu hotfix ===== */
@media (min-width:861px){
  .main-menu-wrap,
  .main-menu-wrap > .site-shell,
  .main-menu-shell,
  .primary-menu-host,
  .main-menu-wrap .menu-root,
  .main-menu-wrap .menu-root > li{
    overflow:visible;
  }
  .main-menu-shell{
    gap:8px;
    flex-wrap:nowrap;
  }
  .menu-home-link{
    min-height:38px;
    padding:0 10px;
    gap:6px;
    border-radius:10px;
    font-size:13px;
    flex:0 0 auto;
  }
  .menu-home-link-icon{
    width:22px;
    height:22px;
    font-size:11px;
  }
  .primary-menu-host{
    flex:1 1 auto;
    min-width:0;
    position:relative;
  }
  .primary-menu-host > .menu-root,
  .main-menu-wrap > .site-shell > .primary-menu-host > .menu-root{
    flex-wrap:nowrap;
    gap:2px;
    min-width:0;
  }
  .main-menu-wrap .menu-root > li{
    flex:0 1 auto;
    min-width:0;
  }
  .main-menu-wrap .menu-root > li > a{
    min-height:38px;
    padding:9px 9px;
    font-size:12px;
    border-radius:10px;
    gap:5px;
    line-height:1.1;
    white-space:nowrap;
  }
  .main-menu-wrap .menu-root > li > a .menu-label{
    white-space:nowrap;
    max-width:100%;
  }
  .main-menu-wrap .menu-icon-badge{
    width:17px;
    height:17px;
    font-size:9px;
    flex:0 0 auto;
  }
  .main-menu-wrap .menu-arrow{
    margin-left:3px;
    transform:scale(.85);
    flex:0 0 auto;
  }
  .main-menu-wrap li ul{
    z-index:200;
  }
}


/* ===== Back to top button ===== */
.back-to-top{
  position:fixed;
  right:18px;
  bottom:20px;
  width:46px;
  height:46px;
  border:none;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#0f766e,#0ea5e9);
  color:#fff;
  box-shadow:0 10px 24px rgba(2,8,23,.22);
  cursor:pointer;
  z-index:999;
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  transition:opacity .22s ease, transform .22s ease, visibility .22s ease, box-shadow .22s ease;
}
.back-to-top.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.back-to-top:hover{
  box-shadow:0 14px 28px rgba(2,8,23,.28);
  transform:translateY(-2px);
}
.back-to-top:focus-visible{
  outline:2px solid rgba(255,255,255,.9);
  outline-offset:2px;
}
.back-to-top-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  line-height:1;
}
@media (max-width:860px){
  .back-to-top{
    right:14px;
    bottom:16px;
    width:42px;
    height:42px;
  }
}

.home-media-section{margin-top:28px;padding:18px 18px 22px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.05)}
.home-media-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.home-media-head h2{margin:4px 0 6px;font-size:1.5rem;line-height:1.2}
.home-media-head p{margin:0;color:#64748b}
.home-media-kicker{display:inline-block;padding:4px 10px;border-radius:999px;background:#fff7ed;color:#c2410c;font-weight:700;font-size:.82rem}
.home-media-video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.home-media-video-card,.home-media-album-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;box-shadow:0 8px 20px rgba(15,23,42,.04)}
.home-media-video-thumb,.home-media-album-thumb{position:relative;display:block;aspect-ratio:16/9;background:#f8fafc}
.home-media-video-thumb img,.home-media-album-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.home-media-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:52px;height:52px;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.1rem}
.home-media-video-body,.home-media-album-body{padding:12px 14px 14px}
.home-media-video-body h3,.home-media-album-body h3{margin:0 0 6px;font-size:1rem;line-height:1.4}
.home-media-album-body p{margin:0 0 8px;color:#64748b;font-size:.93rem;line-height:1.5}
.home-media-date{display:inline-block;color:#6b7280;font-size:.83rem}
.home-media-album-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
.home-media-pagination{margin-top:16px;display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
@media (max-width: 767.98px){.home-media-head{flex-direction:column}.home-media-section{padding:14px}.home-media-head h2{font-size:1.24rem}}


/* Security Admin */
.security-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:16px 0 20px}
.security-stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.security-stat-value{font-size:28px;font-weight:800;line-height:1.1}
.security-stat-label{font-size:13px;color:#64748b;margin-top:6px}
.security-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.security-panel{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;margin-bottom:16px}
.security-panel h3{margin:0 0 12px}
.security-chart{display:flex;flex-direction:column;gap:10px}
.security-bar-row{display:grid;grid-template-columns:150px 1fr 52px;gap:10px;align-items:center}
.security-bar-label,.security-bar-value{font-size:13px}
.security-bar-track{height:12px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.security-bar-fill{height:100%;background:linear-gradient(90deg,#2563eb,#0ea5e9);border-radius:999px}
.security-bar-fill--alt{background:linear-gradient(90deg,#10b981,#22c55e)}
.security-bar-fill--warn{background:linear-gradient(90deg,#f59e0b,#ef4444)}
.security-form,.security-filter-grid{display:grid;gap:10px}
.security-form input[type=text],.security-filter-grid input[type=text],.security-filter-grid input[type=date]{width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px}
.security-checks,.security-actions-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.security-inline{display:flex;gap:8px;align-items:center}
.table-wrap{overflow:auto}
.security-cell-path{max-width:260px;word-break:break-word}
.alert{padding:12px 14px;border-radius:10px;margin:12px 0}
.alert-success{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}
.alert-danger{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.btn-danger{display:inline-block;padding:10px 14px;border-radius:10px;background:#b91c1c;color:#fff;text-decoration:none;border:none;cursor:pointer}
@media (max-width: 991px){.security-grid-2{grid-template-columns:1fr}.security-bar-row{grid-template-columns:100px 1fr 42px}}

/* ===== Ecommerce Module ===== */
.home-ecommerce-section{margin:32px 0 28px}
.home-ecommerce-stack{display:grid;gap:24px}
.home-ecommerce-category-block{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:24px;padding:22px;box-shadow:0 20px 40px rgba(15,23,42,.05)}
.home-ecommerce-category-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}
.home-ecommerce-category-kicker,.ecommerce-product-category{display:inline-flex;align-items:center;gap:8px;background:#eef6ff;color:#0f4c81;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.home-ecommerce-grid,.ecommerce-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.home-ecommerce-card,.ecommerce-product-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:22px;overflow:hidden;box-shadow:0 15px 30px rgba(15,23,42,.05);display:flex;flex-direction:column}
.home-ecommerce-thumb-wrap,.ecommerce-product-thumb-wrap{position:relative;display:block}
.home-ecommerce-thumb,.ecommerce-product-thumb{width:100%;height:220px;object-fit:cover;display:block;background:#f8fafc}
.home-ecommerce-sale-badge,.ecommerce-sale-badge{position:absolute;top:12px;left:12px;background:#dc2626;color:#fff;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700}
.home-ecommerce-body,.ecommerce-product-body{padding:16px;display:flex;flex-direction:column;gap:10px;flex:1}
.home-ecommerce-body h4,.ecommerce-product-body h3{margin:0;font-size:17px;line-height:1.45}
.home-ecommerce-body p{margin:0;color:#475569;font-size:14px;line-height:1.6;min-height:44px}
.home-ecommerce-price-line,.ecommerce-price-box{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.home-ecommerce-price-line strong,.ecommerce-price-box strong{font-size:22px;color:#0f172a}
.home-ecommerce-price-line span,.ecommerce-price-box span{text-decoration:line-through;color:#94a3b8;font-size:14px}
.home-ecommerce-actions,.ecommerce-product-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto}
.home-ecommerce-actions form,.ecommerce-product-actions form{margin:0}
.home-ecommerce-btn,.ecommerce-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;border:none;border-radius:14px;padding:11px 14px;font-weight:700;text-decoration:none;cursor:pointer}
.home-ecommerce-btn--primary,.ecommerce-btn--primary{background:#0f766e;color:#fff}
.home-ecommerce-btn--danger,.ecommerce-btn--danger{background:#dc2626;color:#fff}
.ecommerce-btn--light{background:#eef2ff;color:#0f172a}
.ecommerce-page{display:grid;gap:24px}
.ecommerce-page-head,.ecommerce-filter-bar,.ecommerce-cart-summary,.ecommerce-order-status-form{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.ecommerce-filter-bar input,.ecommerce-filter-bar select,.ecommerce-order-status-form select,.ecommerce-qty-input{padding:10px 12px;border:1px solid rgba(15,23,42,.14);border-radius:12px;min-height:44px}
.ecommerce-detail-grid,.ecommerce-checkout-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:24px}
.ecommerce-detail-main-image img{width:100%;max-height:560px;object-fit:cover;border-radius:24px;border:1px solid rgba(15,23,42,.08)}
.ecommerce-detail-thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px}
.ecommerce-detail-thumbs button{padding:0;border:none;background:transparent;cursor:pointer}
.ecommerce-detail-thumbs img,.ecommerce-existing-images img{width:100%;height:88px;object-fit:cover;border-radius:14px;border:1px solid rgba(15,23,42,.08)}
.ecommerce-detail-info{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:24px;padding:24px;display:grid;gap:16px}
.ecommerce-price-box--detail strong{font-size:30px}
.ecommerce-stock-line,.muted{color:#64748b}
.ecommerce-detail-summary,.ecommerce-detail-content{color:#334155;line-height:1.8}
.ecommerce-product-actions--detail{grid-template-columns:1.2fr 1fr}
.ecommerce-cart-list{display:grid;gap:14px}
.ecommerce-cart-row{display:grid;grid-template-columns:90px 1fr auto auto auto;gap:14px;align-items:center;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:14px}
.ecommerce-cart-row img{width:90px;height:90px;object-fit:cover;border-radius:16px}
.ecommerce-cart-update{display:flex;gap:8px;align-items:center}
.ecommerce-cart-update input{width:80px;padding:8px 10px;border:1px solid rgba(15,23,42,.12);border-radius:12px}
.ecommerce-cart-total{font-weight:700;color:#0f172a}
.ecommerce-order-mini-row{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px dashed rgba(15,23,42,.12)}
.ecommerce-existing-images{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:12px 0}
.admin-filter-panel{margin-bottom:18px}.admin-checkbox-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.admin-checkbox-grid label{display:flex;gap:8px;align-items:center}
@media (max-width: 1200px){.home-ecommerce-grid,.ecommerce-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ecommerce-existing-images{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width: 992px){.ecommerce-detail-grid,.ecommerce-checkout-grid,.home-ecommerce-grid,.ecommerce-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ecommerce-detail-grid,.ecommerce-checkout-grid{grid-template-columns:1fr}.admin-checkbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 768px){.home-ecommerce-grid,.ecommerce-product-grid,.ecommerce-detail-thumbs,.ecommerce-existing-images{grid-template-columns:1fr 1fr}.ecommerce-cart-row{grid-template-columns:72px 1fr;align-items:flex-start}.ecommerce-cart-update,.ecommerce-cart-total,.ecommerce-cart-row .ecommerce-btn{grid-column:2}.home-ecommerce-actions,.ecommerce-product-actions,.ecommerce-product-actions--detail{grid-template-columns:1fr}.home-ecommerce-category-head,.ecommerce-page-head,.ecommerce-filter-bar,.ecommerce-cart-summary{align-items:flex-start;flex-direction:column}}


.site-cart-link{margin-top:12px;display:inline-flex;align-items:center;gap:12px;padding:12px 16px;border-radius:18px;background:rgba(255,255,255,.92);border:1px solid rgba(15,23,42,.08);box-shadow:0 14px 32px rgba(15,23,42,.08);text-decoration:none;color:#0f172a;max-width:100%;position:relative}
.site-cart-link__icon{width:44px;height:44px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f4c81,#0ea5e9);color:#fff;font-size:18px;flex:0 0 44px}
.site-cart-link__text{display:flex;flex-direction:column;gap:2px;min-width:0}
.site-cart-link__text strong{font-size:15px;line-height:1.2}
.site-cart-link__text small{font-size:12px;color:#475569;line-height:1.35}
.site-cart-link__badge{min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#dc2626;color:#fff;font-size:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(220,38,38,.3)}
.home-ecommerce-toast{position:fixed;right:20px;bottom:24px;z-index:2000;padding:14px 18px;border-radius:16px;background:#0f172a;color:#fff;box-shadow:0 18px 40px rgba(15,23,42,.24);opacity:0;transform:translateY(16px);pointer-events:none;transition:all .22s ease;max-width:min(420px,calc(100vw - 32px));font-weight:600}
.home-ecommerce-toast.is-visible{opacity:1;transform:translateY(0)}
.home-ecommerce-toast.is-error{background:#991b1b}
@media (max-width: 768px){.site-cart-link{width:100%;justify-content:flex-start}.brand-meta{width:100%}.home-ecommerce-toast{left:16px;right:16px;bottom:16px}}


.site-cart-link--topbar{margin-top:0;min-width:250px;justify-content:flex-start;padding:10px 14px;border-radius:16px;background:#fff;box-shadow:none;align-self:stretch}
.site-cart-link--topbar .site-cart-link__icon{width:40px;height:40px;border-radius:12px;flex-basis:40px}
.site-cart-link--topbar .site-cart-link__text{gap:1px}
.site-cart-link--topbar .site-cart-link__text small{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#64748b}
.site-cart-link--topbar .site-cart-link__text strong{font-size:14px;line-height:1.35;font-weight:800;color:#0f172a}
.topbar-contact-actions{align-items:stretch}
.topbar-contact-actions .site-cart-link--topbar{position:relative}
.ecommerce-checkout-form,.ecommerce-order-panel{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:24px;padding:24px;display:grid;gap:18px}
.ecommerce-checkout-form__head{display:grid;gap:6px;padding-bottom:4px}
.ecommerce-checkout-form__head h3{margin:0;font-size:24px;line-height:1.25;color:#0f172a}
.ecommerce-checkout-form__head p{margin:0;color:#64748b;line-height:1.6}
.ecommerce-form-row{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:center}
.ecommerce-form-row--top{align-items:start}
.ecommerce-form-row>label{margin:0;font-weight:700;color:#0f172a;line-height:1.45}
.ecommerce-form-field{display:grid;gap:8px}
.ecommerce-checkout-form .form-control{width:100%;min-height:46px;padding:11px 14px;border:1px solid rgba(15,23,42,.14);border-radius:14px;box-sizing:border-box;background:#fff}
.ecommerce-checkout-form textarea.form-control{min-height:110px;resize:vertical}
.ecommerce-checkout-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:6px}
.ecommerce-order-total-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:6px;padding-top:16px;border-top:2px solid rgba(15,23,42,.08);font-size:18px}
.ecommerce-order-total-row strong{font-size:26px;color:#b91c1c}
@media (max-width: 992px){.ecommerce-form-row{grid-template-columns:1fr;gap:8px}.ecommerce-checkout-actions{grid-template-columns:1fr}}
@media (max-width: 768px){.site-cart-link--topbar{width:100%;min-width:0}.site-cart-link--topbar .site-cart-link__text strong{font-size:13px}}


/* Checkout modern rounded + mobile */
.ecommerce-page--checkout{padding-top:18px;padding-bottom:28px}
.ecommerce-page--checkout .home-media-head{margin-bottom:18px}
.ecommerce-checkout-grid{align-items:start;grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr);gap:20px}
.ecommerce-checkout-form,.ecommerce-order-panel{border-radius:28px;padding:26px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);box-shadow:0 20px 48px rgba(15,23,42,.08);min-width:0;overflow:hidden}
.ecommerce-order-panel{position:sticky;top:18px;gap:14px;max-width:100%}
.ecommerce-order-panel__badge{display:inline-flex;align-items:center;justify-content:center;width:max-content;padding:8px 14px;border-radius:999px;background:linear-gradient(135deg,#dbeafe,#eff6ff);color:#0f4c81;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;border:1px solid rgba(14,165,233,.18)}
.ecommerce-checkout-form__head{padding-bottom:10px;border-bottom:1px solid rgba(15,23,42,.06)}
.ecommerce-form-row{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start;padding:14px 0;border-bottom:1px dashed rgba(15,23,42,.08)}
.ecommerce-form-row:last-of-type{border-bottom:none;padding-bottom:2px}
.ecommerce-form-row label{display:flex;align-items:center;min-height:50px;margin:0;font-weight:700;color:#0f172a;font-size:15px;line-height:1.45;padding-top:0}
.ecommerce-form-field{display:grid;gap:8px}
.ecommerce-checkout-form .form-control{width:100%;min-height:52px;padding:14px 16px;border:1px solid rgba(148,163,184,.35);border-radius:16px;box-sizing:border-box;background:#fff;box-shadow:inset 0 1px 2px rgba(15,23,42,.03),0 8px 22px rgba(15,23,42,.03);font-size:15px;transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;outline:none}
.ecommerce-checkout-form .form-control::placeholder{color:#94a3b8}
.ecommerce-checkout-form .form-control:focus{border-color:#38bdf8;box-shadow:0 0 0 4px rgba(56,189,248,.14),0 12px 28px rgba(14,165,233,.08);transform:translateY(-1px)}
.ecommerce-checkout-form textarea.form-control{min-height:120px;padding-top:14px;line-height:1.6}
.ecommerce-checkout-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding-top:14px;margin-top:4px}
.ecommerce-checkout-actions .ecommerce-btn{min-height:52px;border-radius:16px;font-weight:800;letter-spacing:.01em;box-shadow:0 12px 28px rgba(15,23,42,.08)}
.ecommerce-order-mini-row,.ecommerce-order-total-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;align-items:flex-start;padding:12px 0;border-bottom:1px dashed rgba(15,23,42,.08);min-width:0}
.ecommerce-order-mini-row span,.ecommerce-order-total-row span,.ecommerce-checkout-form__head p{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.ecommerce-order-mini-row strong,.ecommerce-order-total-row strong{max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:right}
.ecommerce-order-total-row{padding-top:16px;border-bottom:none;font-size:18px}
@media (max-width: 1200px){.ecommerce-checkout-grid{grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr)}}
@media (max-width: 992px){.ecommerce-order-panel{position:static}.ecommerce-form-row{grid-template-columns:1fr;gap:8px;padding:12px 0}.ecommerce-form-row label{min-height:auto;padding-top:0}}
@media (max-width: 768px){.ecommerce-page--checkout{padding-top:10px}.ecommerce-checkout-form,.ecommerce-order-panel{padding:18px;border-radius:22px}.ecommerce-checkout-form__head h3{font-size:21px}.ecommerce-checkout-form__head p{font-size:14px;line-height:1.55}.ecommerce-form-row{gap:7px;padding:10px 0}.ecommerce-form-row label{font-size:14px}.ecommerce-checkout-form .form-control{min-height:48px;padding:12px 14px;border-radius:14px;font-size:14px}.ecommerce-checkout-form textarea.form-control{min-height:108px}.ecommerce-checkout-actions{grid-template-columns:1fr;gap:10px;padding-top:10px}.ecommerce-checkout-actions .ecommerce-btn{min-height:48px}.ecommerce-order-mini-row,.ecommerce-order-total-row{grid-template-columns:minmax(0,1fr);padding:10px 0;font-size:14px}.ecommerce-order-mini-row strong,.ecommerce-order-total-row strong{text-align:left}.ecommerce-order-total-row{font-size:17px}}


/* Header compact mini commerce */
.site-header-sticky{position:sticky;top:0;z-index:1200;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);box-shadow:0 10px 28px rgba(15,23,42,.08)}
.topbar-upgraded{background:linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#0f4c81 100%);position:relative;z-index:1301;overflow:visible}
.topbar-upgraded-inner{padding:6px 0}
.topbar-contact-card--mini{flex:1 1 auto;min-width:0;padding:0;justify-content:flex-end}
.topbar-mini-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:nowrap;width:100%}
.topbar-icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;text-decoration:none;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.12);transition:transform .18s ease, background .18s ease, box-shadow .18s ease;flex:0 0 40px}
.topbar-icon-btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.2)}
.topbar-icon-btn i{font-size:15px}
.topbar-icon-btn span{font-size:12px;font-weight:800;letter-spacing:.04em}
.topbar-icon-btn--lang{background:rgba(255,255,255,.16)}
.topbar-icon-btn--hotline{background:rgba(34,197,94,.18)}
.topbar-icon-btn--zalo{background:rgba(14,165,233,.18)}
.topbar-icon-btn--cart{background:#fff;color:#0f172a;border-color:rgba(15,23,42,.08);box-shadow:0 10px 24px rgba(15,23,42,.16)}
.topbar-icon-btn--cart:hover{background:#f8fafc}
.topbar-icon-badge{position:absolute;top:-5px;right:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 10px 18px rgba(220,38,38,.35)}
.topbar-icon-btn[data-tooltip]::after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%) translateY(4px);background:#0f172a;color:#fff;padding:7px 10px;border-radius:10px;font-size:12px;font-weight:700;white-space:nowrap;opacity:0;pointer-events:none;box-shadow:0 10px 24px rgba(15,23,42,.22);transition:opacity .16s ease, transform .16s ease}
.topbar-icon-btn[data-tooltip]:hover::after{opacity:1;transform:translateX(-50%) translateY(0)}
.topbar-cart-mini{position:relative;z-index:1305}
.topbar-cart-dropdown{position:absolute;right:0;top:calc(100% + 12px);width:min(360px,calc(100vw - 24px));background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:20px;box-shadow:0 24px 60px rgba(15,23,42,.18);padding:14px;display:none;color:#0f172a;z-index:1400}
.topbar-cart-mini:hover .topbar-cart-dropdown,.topbar-cart-mini.is-open .topbar-cart-dropdown{display:block}
.topbar-cart-dropdown__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid rgba(15,23,42,.08)}
.topbar-cart-dropdown__head strong{font-size:16px}
.topbar-cart-dropdown__head span{font-size:13px;color:#64748b;line-height:1.45;text-align:right}
.topbar-cart-dropdown__body{display:grid;gap:10px;padding:12px 0;max-height:300px;overflow:auto}
.topbar-cart-mini-item{display:grid;grid-template-columns:54px 1fr;gap:10px;align-items:center;text-decoration:none;color:#0f172a;padding:8px;border-radius:14px}
.topbar-cart-mini-item:hover{background:#f8fafc}
.topbar-cart-mini-item img{width:54px;height:54px;object-fit:cover;border-radius:12px;border:1px solid rgba(15,23,42,.08)}
.topbar-cart-mini-item__meta{display:grid;gap:2px;min-width:0}
.topbar-cart-mini-item__meta strong{font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.topbar-cart-mini-item__meta span{font-size:12px;color:#64748b}
.topbar-cart-empty{padding:10px 2px;color:#64748b;font-size:13px}
.topbar-cart-dropdown__foot{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:10px;border-top:1px solid rgba(15,23,42,.08)}
.topbar-cart-mini-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:14px;text-decoration:none;font-weight:800}
.topbar-cart-mini-btn--light{background:#eef2ff;color:#0f172a}
.topbar-cart-mini-btn--primary{background:linear-gradient(135deg,#f97316,#ef4444);color:#fff;box-shadow:0 14px 28px rgba(239,68,68,.24)}
.header-top-strip{padding:10px 0 8px 0;align-items:center;gap:16px;position:relative;z-index:1200}
.brand-logo-wrap img,.brand-logo-link img{max-height:68px}
.brand-search-input-wrap{min-height:50px}
.brand-meta h1{font-size:26px;line-height:1.2;margin:0 0 6px 0}
.brand-meta p{margin:0;font-size:14px;line-height:1.45;color:#475569}
.main-menu-wrap{position:relative;z-index:2;box-shadow:0 10px 24px rgba(15,23,42,.06)}
.ecommerce-btn--danger{background:linear-gradient(135deg,#f97316 0%,#ef4444 48%,#dc2626 100%) !important;color:#fff;box-shadow:0 18px 32px rgba(239,68,68,.26)}
.ecommerce-btn--danger:hover{filter:brightness(1.04);transform:translateY(-1px)}
@media (max-width:1100px){.brand-meta h1{font-size:22px}.brand-meta p{font-size:13px}}
@media (max-width:860px){.site-header-sticky{position:sticky;top:0}.topbar-upgraded-inner{padding:6px 0}.topbar-contact-card--mini{justify-content:center}.topbar-mini-actions{justify-content:center;gap:7px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.topbar-mini-actions::-webkit-scrollbar{display:none}.topbar-icon-btn{width:36px;height:36px;flex-basis:36px}.topbar-icon-btn i{font-size:14px}.topbar-icon-btn span{font-size:11px}.topbar-cart-dropdown{right:-6px;width:min(340px,calc(100vw - 18px))}.header-top-strip{padding:8px 0 6px 0;gap:10px}.brand-logo-wrap img,.brand-logo-link img{max-height:52px}.brand-meta{display:none}.brand-search-note{display:none}.brand-search-input-wrap{min-height:44px}.main-menu-wrap{box-shadow:none}}
@media (max-width:520px){.topbar-mini-actions{justify-content:flex-start}.topbar-cart-dropdown{position:fixed;top:56px;right:10px;left:10px;width:auto;max-width:none}.topbar-cart-dropdown__foot{grid-template-columns:1fr}.header-top-strip{grid-template-columns:1fr}}


/* Header compact clock + sticky menu only */
.site-header-sticky{position:relative;top:auto;z-index:auto;background:transparent;backdrop-filter:none;box-shadow:none}
.topbar-upgraded-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;overflow:visible}
.topbar-live-datetime{display:flex;align-items:center;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:rgba(255,255,255,.96);font-size:13px;font-weight:700;letter-spacing:.02em;flex:1 1 auto;justify-content:flex-start}
.topbar-contact-card--mini{flex:0 0 auto;min-width:auto;justify-content:flex-end}
.topbar-mini-actions{justify-content:flex-end}
.main-menu-wrap{position:sticky;top:0;z-index:1150;box-shadow:0 10px 24px rgba(15,23,42,.10)}
@media (max-width:860px){
  .topbar-upgraded-inner{gap:10px}
  .topbar-live-datetime{font-size:11px;max-width:44vw}
  .topbar-contact-card--mini{min-width:0}
  .main-menu-wrap{top:0}
}
@media (max-width:520px){
  .topbar-live-datetime{font-size:10px;max-width:38vw}
}


.topbar-promo-banner-wrap {
    background: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 35;
}

.topbar-promo-banner-wrap .site-shell {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.topbar-promo-banner {
    display: block;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    background: transparent;
    line-height: 0;
}

.topbar-promo-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
    margin: 0;
}

@media (max-width: 991.98px) {
    .topbar-promo-banner-wrap {
        padding: 0;
        margin: 0;
    }

    .topbar-promo-banner {
        border-radius: 0;
    }

    .topbar-promo-banner img {
        max-height: none;
        border-radius: 0;
    }
}


/* Compact search moved to topbar */
.topbar-upgraded-inner{gap:10px;flex-wrap:nowrap}
.topbar-live-datetime{flex:0 1 auto;max-width:32vw}
.topbar-search-mini{flex:0 1 auto;min-width:0}
.topbar-search-mini form{display:flex;align-items:center;height:34px;border:1px solid rgba(255,255,255,.22);border-radius:999px;overflow:hidden;background:rgba(255,255,255,.96);box-shadow:none;width:100%}
.topbar-search-mini input{flex:1 1 auto;width:160px;max-width:20vw;height:34px;padding:0 10px;border:0;outline:none;background:transparent;color:#0f172a;font-size:12px;line-height:34px;min-width:0}
.topbar-search-mini input::placeholder{color:#64748b;opacity:1}
.topbar-search-mini button{flex:0 0 36px;width:36px;height:34px;border:0;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f4c81,#1d4ed8);color:#fff;cursor:pointer;padding:0;-webkit-appearance:none;appearance:none;touch-action:manipulation}
.topbar-search-mini button:hover{filter:brightness(1.05)}
.topbar-contact-card--mini{flex:0 0 auto;min-width:0}
.topbar-mini-actions{gap:6px}
.topbar-icon-btn{width:36px;height:36px;flex-basis:36px}
.topbar-icon-btn i{font-size:14px}
.topbar-icon-btn span{font-size:11px}
.topbar-upgraded{z-index:1301}
.topbar-promo-banner-wrap{padding-top:0!important;margin-top:0!important;padding-bottom:0!important;margin-bottom:0!important}
.topbar-promo-banner-wrap .site-shell{margin-top:0!important;margin-bottom:0!important}
.main-menu-wrap{margin-top:0!important}
@media (max-width: 1200px){.topbar-live-datetime{max-width:28vw}.topbar-search-mini input{width:128px;max-width:16vw}}
@media (max-width: 860px){.topbar-upgraded-inner{gap:6px;justify-content:flex-start;flex-wrap:wrap}.topbar-live-datetime{order:1;flex:1 1 100%;max-width:none;font-size:10px;justify-content:center;text-align:center}.topbar-search-mini{order:2;flex:1 1 140px;min-width:110px}.topbar-search-mini form{height:34px;width:100%}.topbar-search-mini input{width:auto;max-width:none;height:34px;padding:0 10px;font-size:11px}.topbar-search-mini button{flex:0 0 34px;width:34px;height:34px}.topbar-contact-card--mini{order:3;flex:0 1 auto;min-width:0}.topbar-mini-actions{gap:5px;overflow-x:auto;flex-wrap:nowrap}.topbar-icon-btn{width:32px;height:32px;flex-basis:32px}.topbar-icon-badge{min-width:18px;height:18px;font-size:10px;padding:0 4px;top:-4px;right:-3px}}
@media (max-width: 520px){.topbar-upgraded{padding-bottom:0!important}.topbar-upgraded-inner{gap:4px;align-items:center}.topbar-live-datetime{max-width:none;margin:0}.topbar-search-mini{flex:1 1 100%;min-width:0;margin:0}.topbar-search-mini form{margin:0}.topbar-search-mini input{width:auto;padding:0 9px}.topbar-search-mini button{flex:0 0 34px;width:34px}.topbar-contact-card--mini{flex:0 0 auto;width:auto;min-width:0;margin:0;padding:0;align-self:center}.topbar-mini-actions{gap:4px;justify-content:flex-start;width:auto;overflow:visible;padding:0;margin:0}.topbar-icon-btn{width:30px;height:30px;flex-basis:30px}}

/* HOTFIX 19042026 v3: remove mobile gap between search and hotline/zalo */
@media (max-width: 860px){
  .topbar-upgraded{padding-top:0!important;padding-bottom:0!important}
  .topbar-upgraded .site-shell.topbar-upgraded-inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:
      'datetime datetime'
      'search actions'!important;
    align-items:center!important;
    column-gap:6px!important;
    row-gap:3px!important;
    padding-top:4px!important;
    padding-bottom:4px!important;
  }
  .topbar-live-datetime{
    grid-area:datetime!important;
    order:0!important;
    flex:none!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    min-height:0!important;
    line-height:1.2!important;
    justify-content:center!important;
    text-align:center!important;
  }
  .topbar-search-mini{
    grid-area:search!important;
    order:0!important;
    flex:none!important;
    min-width:0!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    align-self:center!important;
  }
  .topbar-search-mini form{
    margin:0!important;
    min-height:34px!important;
  }
  .topbar-search-mini input,
  .topbar-search-mini button{
    margin:0!important;
  }
  .topbar-contact-card--mini{
    grid-area:actions!important;
    order:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex:none!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    gap:0!important;
    align-self:center!important;
  }
  .topbar-mini-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex-wrap:nowrap!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    gap:4px!important;
    overflow:visible!important;
  }
}

@media (max-width: 520px){
  .topbar-upgraded .site-shell.topbar-upgraded-inner{
    grid-template-columns:minmax(0,1fr) auto!important;
    row-gap:2px!important;
    column-gap:5px!important;
    padding-top:3px!important;
    padding-bottom:3px!important;
  }
  .topbar-live-datetime{
    font-size:10px!important;
    line-height:1.15!important;
  }
  .topbar-search-mini{
    margin-bottom:0!important;
  }
  .topbar-search-mini form{
    height:32px!important;
    min-height:32px!important;
  }
  .topbar-search-mini input{
    height:32px!important;
    padding:0 8px!important;
    line-height:32px!important;
    font-size:11px!important;
  }
  .topbar-search-mini button{
    width:32px!important;
    height:32px!important;
    flex-basis:32px!important;
  }
  .topbar-contact-card--mini,
  .topbar-mini-actions,
  .topbar-mini-actions a,
  .topbar-mini-actions .topbar-cart-mini{
    margin-top:0!important;
    margin-bottom:0!important;
  }
  .topbar-icon-btn{
    width:30px!important;
    height:30px!important;
    flex-basis:30px!important;
  }
}


/* HOTFIX 20042026: Messenger + Telegram buttons on topbar */
.topbar-icon-btn--messenger{background:rgba(0,132,255,.18)}
.topbar-icon-btn--telegram{background:rgba(34,158,217,.18)}
.topbar-icon-btn.is-disabled{opacity:.55;cursor:not-allowed;pointer-events:none}
.topbar-icon-btn--messenger i,.topbar-icon-btn--telegram i{font-size:15px}
@media (max-width:860px){
  .topbar-mini-actions{align-items:center}
  .topbar-icon-btn--messenger,.topbar-icon-btn--telegram{flex-shrink:0}
}

/* Admin Ecommerce Product Form alignment */
.ecommerce-product-form-admin{display:flex;flex-direction:column;gap:18px}
.admin-edit-sections{display:flex;flex-direction:column;gap:18px}
.admin-edit-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:18px 20px;box-shadow:0 10px 28px rgba(15,23,42,.05)}
.admin-edit-card__head{margin-bottom:14px}
.admin-edit-card__head h2{margin:0 0 4px;font-size:18px;line-height:1.3}
.admin-edit-card__head p{margin:0;color:#64748b;font-size:14px}
.admin-form-grid-2col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
.admin-form-grid-1col{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.admin-form-grid-2col--wide-label .admin-field--full{grid-column:1 / -1}
.admin-field{display:grid;grid-template-columns:170px minmax(0,1fr);gap:12px;align-items:start}
.admin-field--stack{grid-template-columns:minmax(0,1fr)}
.admin-field>label{margin:0;padding-top:9px;font-weight:700;color:#0f172a;line-height:1.4}
.admin-field--stack>label{padding-top:0}
.admin-field__control{min-width:0}
.admin-inline-picker{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.admin-inline-picker .form-control{flex:1 1 420px;min-width:260px}
.admin-image-preview-wrap{margin-top:10px}
.admin-image-preview-wrap img{max-width:220px;max-height:140px;border-radius:10px;border:1px solid #e5e7eb;display:block}
.admin-checkbox-grid--product-form{margin:0;grid-template-columns:repeat(4,minmax(0,1fr))}
.admin-checkbox-grid--product-form label{min-height:44px;padding:10px 12px;border:1px solid rgba(15,23,42,.08);border-radius:12px;background:#f8fafc}
.admin-form-actions-sticky{display:flex;justify-content:flex-end;gap:12px;position:sticky;bottom:10px;padding-top:6px}
.admin-form-actions-sticky .btn-primary{min-width:180px}
@media (max-width: 1200px){.admin-checkbox-grid--product-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 992px){.admin-form-grid-2col{grid-template-columns:minmax(0,1fr)}.admin-field{grid-template-columns:150px minmax(0,1fr)}}
@media (max-width: 768px){.admin-edit-card{padding:16px}.admin-field{grid-template-columns:minmax(0,1fr);gap:8px}.admin-field>label{padding-top:0}.admin-inline-picker{flex-direction:column;align-items:stretch}.admin-inline-picker .form-control{min-width:0}.admin-form-actions-sticky{position:static;justify-content:stretch}.admin-form-actions-sticky .btn-primary{width:100%}.admin-checkbox-grid--product-form{grid-template-columns:minmax(0,1fr)}}


.ecommerce-order-total-row--success,
.ecommerce-order-mini-row--success {
    align-items: flex-start;
    gap: 12px;
}

.ecommerce-order-total-row--success span,
.ecommerce-order-mini-row--success span {
    flex: 0 0 180px;
}

.ecommerce-order-total-row--success strong,
.ecommerce-order-mini-row--success strong {
    flex: 1 1 auto;
    white-space: normal;
    word-break: break-word;
    line-height: 1.65;
}

@media (max-width: 767.98px) {
    .ecommerce-order-total-row--success,
    .ecommerce-order-mini-row--success {
        flex-direction: column;
    }

    .ecommerce-order-total-row--success span,
    .ecommerce-order-mini-row--success span {
        flex: 0 0 auto;
    }
}


/* ===== Home banner fade + zoom chậm, ảnh fill kín khung ===== */
.home-banner-frame.home-banner-frame-js{
  position:relative;
  overflow:hidden;
  background:#0f172a;
}
.home-banner-frame.home-banner-frame-js .home-banner-stack-js{
  position:relative;
  width:100%;
  min-height:440px;
}
.home-banner-frame.home-banner-frame-js .home-banner-slide{
  position:absolute;
  inset:0;
  width:100%;
  min-width:100%;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:scale(1.06);
  transition:opacity .7s ease, transform 1.6s ease, visibility 0s linear .7s;
  z-index:1;
}
.home-banner-frame.home-banner-frame-js .home-banner-slide.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:scale(1);
  transition:opacity .7s ease, transform 3.2s ease, visibility 0s linear 0s;
  z-index:2;
}
.home-banner-frame.home-banner-frame-js .home-banner-slide a{
  display:block;
  position:relative;
  width:100%;
  min-height:440px;
  height:440px;
  aspect-ratio:auto;
  overflow:hidden;
}
.home-banner-frame.home-banner-frame-js .home-banner-slide img{
  display:block;
  width:100%;
  height:100% !important;
  min-height:100%;
  object-fit:cover !important;
  object-position:center center;
}
.home-banner-frame.home-banner-frame-js .home-banner-overlay{
  position:absolute;
  inset:0;
}
@media (max-width:1100px){
  .home-banner-frame.home-banner-frame-js .home-banner-stack-js{min-height:340px;}
  .home-banner-frame.home-banner-frame-js .home-banner-slide a{min-height:340px;height:340px;}
}
@media (max-width:768px){
  .home-banner-frame.home-banner-frame-js .home-banner-stack-js{min-height:240px;}
  .home-banner-frame.home-banner-frame-js .home-banner-slide a{min-height:240px;height:240px;}
}


/* ===== Section title icons ===== */
.section-title-with-icon{display:flex;align-items:flex-start;gap:12px;flex-wrap:nowrap}
.section-title-with-icon--center{justify-content:center}
.section-title-with-icon > :last-child{min-width:0;flex:0 1 auto}
.section-title-text{display:block;min-width:0;flex:1 1 auto}
.section-title-icon{width:42px;height:42px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 10px 24px rgba(15,23,42,.10);font-size:18px;flex:0 0 42px;line-height:1}
.section-title-icon--commerce{background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#1d4ed8}
.section-title-icon--video{background:linear-gradient(135deg,#fee2e2,#fecaca);color:#dc2626}
.section-title-icon--album{background:linear-gradient(135deg,#fae8ff,#f5d0fe);color:#a21caf}
.section-title-icon--document{background:linear-gradient(135deg,#dcfce7,#bbf7d0);color:#15803d}
.home-media-kicker i{margin-right:6px}
@media (max-width: 767.98px){
  .section-title-with-icon{gap:10px}
  .section-title-icon{width:36px;height:36px;border-radius:12px;font-size:16px;flex-basis:36px}
  .page-hero-kicker{max-width:100%}
}

.page-hero--document-library .section-title-with-icon{max-width:min(100%,900px);margin-left:auto;margin-right:auto;text-align:left}
.page-hero--document-library .section-title-text{display:block}
.page-hero--document-detail .page-hero-kicker,.page-hero--document-library .page-hero-kicker{justify-content:flex-start}


/* ===== Document library icon/text alignment hard-fix ===== */
.page-hero--document-library .page-hero-kicker{display:inline-grid;grid-template-columns:auto minmax(0,1fr);align-items:start;column-gap:8px;justify-content:flex-start}
.page-hero--document-library .page-hero-kicker i{margin-top:2px;align-self:start}
.page-hero--document-library .page-hero-kicker > span{display:block;min-width:0}
.page-hero--document-library .section-title-with-icon{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;column-gap:12px;justify-content:stretch}
.page-hero--document-library .section-title-icon{align-self:start}
.page-hero--document-library .section-title-text{display:block;min-width:0;align-self:start}
#home-document-library .home-media-kicker{display:inline-grid;grid-template-columns:auto minmax(0,1fr);align-items:start;column-gap:6px;white-space:normal;max-width:min(100%,900px);text-align:left}
#home-document-library .home-media-kicker i{margin-right:0;margin-top:2px;align-self:start}
#home-document-library .home-media-kicker > span{display:block;min-width:0}
#home-document-library .section-title-with-icon{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;column-gap:12px}
#home-document-library .section-title-icon{align-self:start}
#home-document-library .section-title-text{display:block;min-width:0;align-self:start}
@media (max-width: 767.98px){
  .page-hero--document-library .section-title-with-icon{grid-template-columns:36px minmax(0,1fr);column-gap:10px}
  #home-document-library .section-title-with-icon{grid-template-columns:36px minmax(0,1fr);column-gap:10px}
}


/* ===== Document library title hard hard-fix ===== */
.section-title-with-icon--document-library-hard{display:block !important;text-align:left !important}
.section-title-with-icon--document-library-hard .section-title-inline{display:grid !important;grid-template-columns:42px minmax(0,1fr);align-items:start;column-gap:12px;max-width:min(100%,900px)}
.section-title-with-icon--document-library-hard .section-title-icon{align-self:start;justify-self:start;margin:0 !important}
.section-title-with-icon--document-library-hard .section-title-text{display:block;min-width:0;align-self:start}
.page-hero--document-library .section-title-with-icon--document-library-hard{max-width:min(100%,900px);margin-left:auto;margin-right:auto}
#home-document-library .section-title-with-icon--document-library-hard{max-width:min(100%,900px);margin:0}
@media (max-width: 767.98px){
  .section-title-with-icon--document-library-hard .section-title-inline{grid-template-columns:36px minmax(0,1fr);column-gap:10px}
}


.btn-modern--sm,.btn-ghost--sm,.btn-danger--sm{padding:8px 12px;border-radius:10px;font-size:12px;line-height:1.2}
.btn-danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:14px;background:linear-gradient(90deg,#dc2626,#ef4444);color:#fff;font-weight:700;border:0;box-shadow:0 12px 24px rgba(220,38,38,.18);cursor:pointer}
.admin-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.admin-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}
.admin-table th,.admin-table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.admin-table thead th{font-size:13px;color:var(--muted);background:#f8fafc;position:sticky;top:0;z-index:1}
.admin-table tbody tr:hover{background:#fafcff}

.admin-doc-filter-form{margin:14px 0;display:grid;grid-template-columns:minmax(220px,2fr) repeat(5,minmax(120px,1fr));gap:8px;align-items:end;overflow:hidden}.admin-doc-filter-form>div{min-width:0}.admin-doc-filter-keyword{grid-column:span 2}.admin-doc-filter-form input,.admin-doc-filter-form select{width:100%;max-width:100%;min-width:0}.admin-doc-filter-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.admin-doc-filter-actions .btn-ghost{white-space:nowrap}@media (max-width:1280px){.admin-doc-filter-form{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-doc-filter-keyword{grid-column:span 3}}@media (max-width:860px){.admin-doc-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-doc-filter-keyword{grid-column:span 2}}@media (max-width:640px){.admin-doc-filter-form{grid-template-columns:1fr}.admin-doc-filter-keyword,.admin-doc-filter-actions{grid-column:auto}}
.admin-table--documents{table-layout:fixed;width:100%}
.admin-table--documents th,.admin-table--documents td{vertical-align:top;padding:10px 8px;min-width:0}
.admin-table--documents th:nth-child(1),.admin-table--documents td:nth-child(1){width:42px}
.admin-table--documents th:nth-child(2),.admin-table--documents td:nth-child(2){width:58px}
.admin-table--documents th:nth-child(3),.admin-table--documents td:nth-child(3){width:26%}
.admin-table--documents th:nth-child(4),.admin-table--documents td:nth-child(4){width:18%}
.admin-table--documents th:nth-child(5),.admin-table--documents td:nth-child(5){width:18%}
.admin-table--documents th:nth-child(6),.admin-table--documents td:nth-child(6){width:48px;text-align:center}
.admin-table--documents th:nth-child(7),.admin-table--documents td:nth-child(7){width:88px}
.admin-table--documents th:nth-child(8),.admin-table--documents td:nth-child(8){width:78px}
.admin-table--doc-cats th:nth-child(2),.admin-table--doc-cats td:nth-child(2){width:auto}
.admin-table--doc-cats th:nth-child(3),.admin-table--doc-cats td:nth-child(3){width:80px}
.admin-table--doc-cats th:nth-child(4),.admin-table--doc-cats td:nth-child(4){width:90px}
.admin-table--doc-cats th:nth-child(5),.admin-table--doc-cats td:nth-child(5){width:90px}
.admin-table--doc-cats th:nth-child(6),.admin-table--doc-cats td:nth-child(6){width:130px}
.admin-doc-title{font-weight:700;line-height:1.45;word-break:break-word;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.admin-doc-zone-line{font-weight:700;line-height:1.35;word-break:break-word}
.admin-doc-meta{color:#64748b;font-size:12px;line-height:1.45;margin-top:4px;word-break:break-word}
.admin-doc-meta--clamp,.admin-doc-file-fullpath{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.admin-doc-file-path{display:flex;gap:6px;align-items:flex-start;line-height:1.35;word-break:break-word;overflow-wrap:anywhere;font-weight:700}
.admin-doc-file-path i{margin-top:3px;flex:0 0 auto}
.admin-doc-file-path span{min-width:0;overflow-wrap:anywhere;word-break:break-all;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px}
.admin-doc-actions-cell{padding-right:0;text-align:center}
.admin-table-actions{display:flex;gap:8px;flex-wrap:wrap}
.admin-table-actions--stack{flex-direction:column;align-items:stretch;min-width:0}
.admin-table-actions--stack a,.admin-table-actions--stack button{width:100%;justify-content:center;white-space:nowrap}
.admin-table-actions--stack form{margin:0}
.btn-modern--xs,.btn-ghost--xs,.btn-danger--xs{padding:6px 8px;border-radius:8px;font-size:11px;line-height:1.1;gap:5px;display:inline-flex;align-items:center;justify-content:center}
.admin-doc-title{font-size:13px;line-height:1.35;-webkit-line-clamp:2}
.admin-doc-meta{font-size:11px;line-height:1.35;margin-top:3px}
.admin-doc-meta--clamp{-webkit-line-clamp:2}
.admin-doc-zone-cell,.admin-doc-file-cell,.admin-doc-title-cell{min-width:0}
.admin-doc-date{font-weight:700;font-size:12px;line-height:1.25}
.admin-table-wrap--documents{overflow-x:auto !important;-webkit-overflow-scrolling:touch}
.admin-table--documents{min-width:980px}
.admin-table--documents th:nth-child(8),.admin-table--documents td:nth-child(8){width:110px}

/* FIX 06/05/2026: Sản phẩm giá 0 chuyển sang trạng thái liên hệ, không cho thêm giỏ hàng. */
.home-ecommerce-btn--disabled,.ecommerce-btn--disabled,
.home-ecommerce-btn:disabled,.ecommerce-btn:disabled{
    opacity:.42!important;filter:grayscale(1);cursor:not-allowed!important;box-shadow:none!important;transform:none!important;pointer-events:none;
}
.home-ecommerce-btn--zalo,.ecommerce-btn--zalo{
    background:linear-gradient(135deg,#0088ff 0%,#00b7ff 100%)!important;color:#fff!important;box-shadow:0 14px 28px rgba(0,136,255,.22);
}
.home-ecommerce-btn--zalo:hover,.ecommerce-btn--zalo:hover{filter:brightness(1.04);transform:translateY(-1px)}
.home-ecommerce-price-line--contact strong,.ecommerce-price-box--contact strong{color:#dc2626;font-weight:900}
.home-ecommerce-card--contact-only,.ecommerce-product-card--contact-only{position:relative}

/* FIX 06/05/2026: Tách riêng ô Tổng tiền bằng chữ để không bị ép dọc từng ký tự. */
.ecommerce-order-amount-words{
    margin-top:14px;padding:14px 16px;border:1px solid rgba(220,38,38,.16);border-radius:16px;background:rgba(254,242,242,.72);
    display:block;width:100%;min-width:0;clear:both;box-sizing:border-box;
}
.ecommerce-order-amount-words span{
    display:block;margin-bottom:6px;font-size:13px;line-height:1.35;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#991b1b;white-space:normal;word-break:normal;overflow-wrap:normal;
}
.ecommerce-order-amount-words strong{
    display:block;width:100%;max-width:100%;font-size:15px;line-height:1.65;font-weight:800;color:#0f172a;text-align:left;white-space:normal;word-break:normal;overflow-wrap:break-word;
}
.ecommerce-order-amount-words--success{background:rgba(236,253,245,.86);border-color:rgba(16,185,129,.22)}
.ecommerce-order-amount-words--success span{color:#047857}
@media (max-width:768px){
    .ecommerce-order-amount-words{padding:13px 14px;border-radius:14px}
    .ecommerce-order-amount-words strong{font-size:14px;line-height:1.65}
}

/* Interactive Media home block - tblMediaAlbum/tblMediaItem */
.interactive-video-shell{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:18px;align-items:stretch;margin-top:16px;}
.interactive-video-player{background:#020617;border-radius:18px;overflow:hidden;min-height:340px;box-shadow:0 18px 40px rgba(15,23,42,.18);}
.interactive-video-player iframe{width:100%;height:100%;min-height:340px;border:0;display:block;}
.interactive-video-info{background:linear-gradient(135deg,#f8fafc,#eef2ff);border:1px solid #e5e7eb;border-radius:18px;padding:18px;}
.interactive-video-info h3{margin:0 0 10px;font-size:22px;color:#0f172a;}
.interactive-video-info p{color:#475569;}
.interactive-video-thumbs{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:14px;}
.interactive-video-thumb{border:1px solid #e5e7eb;background:#fff;border-radius:14px;padding:8px;text-align:left;cursor:pointer;display:grid;grid-template-columns:72px 1fr;gap:10px;align-items:center;box-shadow:0 8px 20px rgba(15,23,42,.06);}
.interactive-video-thumb:hover,.interactive-video-thumb.active{border-color:#2563eb;box-shadow:0 12px 28px rgba(37,99,235,.16);}
.interactive-video-thumb img{width:72px;height:48px;object-fit:cover;border-radius:10px;background:#e5e7eb;}
.interactive-video-thumb span{font-weight:700;color:#0f172a;font-size:13px;line-height:1.35;}
@media(max-width:900px){.interactive-video-shell{grid-template-columns:1fr}.interactive-video-player,.interactive-video-player iframe{min-height:240px}}

/* FIX 07/05/2026: Khối VIDEO TƯƠNG TÁC - Video chính bên trái, danh sách thumb bên phải */
.interactive-video-shell--side-list{
    display:grid;
    grid-template-columns:minmax(0,2.35fr) minmax(280px,380px);
    gap:18px;
    align-items:stretch;
    margin-top:16px;
}
.interactive-video-main{min-width:0;display:flex;flex-direction:column;gap:12px;}
.interactive-video-shell--side-list .interactive-video-player{min-height:420px;}
.interactive-video-shell--side-list .interactive-video-player iframe{min-height:420px;}
.interactive-video-sidebar{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:12px;
    box-shadow:0 14px 34px rgba(15,23,42,.08);
    min-width:0;
}
.interactive-video-sidebar-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:4px 4px 12px;
    border-bottom:1px solid #eef2f7;
    margin-bottom:10px;
    color:#0f172a;
}
.interactive-video-sidebar-head strong{font-size:15px;display:flex;align-items:center;gap:8px;}
.interactive-video-sidebar-head span{font-size:12px;color:#64748b;white-space:nowrap;}
.interactive-video-thumbs--side{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:0;
    max-height:548px;
    overflow-y:auto;
    padding-right:4px;
}
.interactive-video-thumbs--side .interactive-video-thumb{
    width:100%;
    grid-template-columns:112px minmax(0,1fr);
    padding:8px;
}
.interactive-video-thumbs--side .interactive-video-thumb img{width:112px;height:70px;}
.interactive-video-thumbs--side .interactive-video-thumb span{font-size:14px;}
@media(max-width:980px){
    .interactive-video-shell--side-list{grid-template-columns:1fr;}
    .interactive-video-shell--side-list .interactive-video-player,
    .interactive-video-shell--side-list .interactive-video-player iframe{min-height:260px;}
    .interactive-video-thumbs--side{max-height:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
    .interactive-video-thumbs--side .interactive-video-thumb{grid-template-columns:84px minmax(0,1fr);}
    .interactive-video-thumbs--side .interactive-video-thumb img{width:84px;height:56px;}
}
@media(max-width:560px){
    .interactive-video-thumbs--side{grid-template-columns:1fr;}
    .interactive-video-sidebar-head{align-items:flex-start;flex-direction:column;}
}

/* FIX 07/05/2026: List thumb Video dạng tin tức gọn bên phải
   - Ảnh thumb nhỏ bên trái, tiêu đề + thời lượng + ngày cập nhật bên phải
   - Giữ nguyên Video chính to bên trái và JS click đổi iframe */
.interactive-video-thumbs--side .interactive-video-thumb--cg{
    display:grid !important;
    grid-template-columns:76px minmax(0,1fr) !important;
    gap:10px;
    width:100%;
    padding:9px 8px;
    border:1px solid transparent;
    border-radius:12px;
    background:#fff;
    box-shadow:none;
    overflow:hidden;
    cursor:pointer;
    text-align:left;
    align-items:flex-start;
}
.interactive-video-thumbs--side .interactive-video-thumb--cg + .interactive-video-thumb--cg{
    margin-top:6px;
    border-top:1px solid #eef2f7;
}
.interactive-video-thumbs--side .interactive-video-thumb--cg:hover,
.interactive-video-thumbs--side .interactive-video-thumb--cg.active{
    border-color:#2563eb;
    background:#f8fbff;
    box-shadow:0 8px 20px rgba(37,99,235,.10);
}
.interactive-video-thumb--cg .interactive-video-thumb-image{
    position:relative;
    display:block;
    width:76px;
    height:50px;
    min-width:76px;
    background:#e5e7eb;
    overflow:hidden;
    border-radius:8px;
}
.interactive-video-thumbs--side .interactive-video-thumb--cg .interactive-video-thumb-image img,
.interactive-video-thumb--cg .interactive-video-thumb-image img{
    width:76px !important;
    height:50px !important;
    object-fit:cover;
    display:block;
    border-radius:8px;
    transition:transform .18s ease, filter .18s ease;
}
.interactive-video-thumb--cg:hover .interactive-video-thumb-image img,
.interactive-video-thumb--cg.active .interactive-video-thumb-image img{
    transform:scale(1.04);
    filter:brightness(.88);
}
.interactive-video-play{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:24px;
    height:24px;
    border-radius:999px;
    background:rgba(15,23,42,.72);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:9px;
    box-shadow:0 6px 14px rgba(15,23,42,.22);
}
.interactive-video-thumb--cg.active .interactive-video-play{background:#dc2626;}
.interactive-video-thumb--cg .interactive-video-thumb-body{
    display:block;
    min-width:0;
    padding:0;
}
.interactive-video-thumbs--side .interactive-video-thumb--cg .interactive-video-thumb-title,
.interactive-video-thumb--cg .interactive-video-thumb-title{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    font-size:13px !important;
    line-height:1.35;
    font-weight:700;
    color:#111827;
}
.interactive-video-thumb--cg:hover .interactive-video-thumb-title,
.interactive-video-thumb--cg.active .interactive-video-thumb-title{color:#2563eb;}
.interactive-video-thumb-meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:5px 10px;
    margin-top:6px;
}
.interactive-video-thumb-duration,
.interactive-video-thumb-date{
    display:inline-flex;
    align-items:center;
    gap:4px;
    font-size:11.5px;
    line-height:1.1;
    color:#64748b;
    font-weight:600;
    white-space:nowrap;
}
.interactive-video-thumb-date i{font-size:11px;}
.interactive-video-thumbs--side{
    gap:0;
}
@media(max-width:980px){
    .interactive-video-thumbs--side .interactive-video-thumb--cg{
        grid-template-columns:72px minmax(0,1fr) !important;
    }
    .interactive-video-thumb--cg .interactive-video-thumb-image,
    .interactive-video-thumbs--side .interactive-video-thumb--cg .interactive-video-thumb-image img,
    .interactive-video-thumb--cg .interactive-video-thumb-image img{
        width:72px !important;
        height:48px !important;
    }
}



/* FIX Interactive Video Thumb Mini Style 40x30 */
.interactive-video-thumb-image{
    width:40px !important;
    min-width:40px !important;
    max-width:40px !important;
    height:30px !important;
    overflow:hidden !important;
    border-radius:4px !important;
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-shrink:0 !important;
}

.interactive-video-thumb-image img{
    width:40px !important;
    height:30px !important;
    object-fit:cover !important;
    display:block !important;
}

.interactive-video-play{
    width:14px !important;
    height:14px !important;
    font-size:7px !important;
    position:absolute !important;
    inset:auto !important;
    right:2px !important;
    bottom:2px !important;
    border-radius:50% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

.interactive-video-item{
    gap:8px !important;
    align-items:center !important;
}

.interactive-video-item-title{
    font-size:13px !important;
    line-height:1.35 !important;
}

/* Interactive Media pagination + compact video thumb list */
.interactive-video-thumbs--side{gap:2px!important;padding:4px!important;}
.interactive-video-thumb{padding:4px 6px!important;margin:0!important;border-radius:6px!important;min-height:34px!important;}
.interactive-video-thumb-image{width:40px!important;min-width:40px!important;max-width:40px!important;height:30px!important;border-radius:4px!important;}
.interactive-video-thumb-image img{width:40px!important;height:30px!important;object-fit:cover!important;}
.interactive-video-thumb-body{gap:1px!important;}
.interactive-video-thumb-title{font-size:12px!important;line-height:1.25!important;}
.interactive-video-thumb-meta{font-size:10px!important;gap:5px!important;line-height:1.1!important;}
.interactive-video-play{width:12px!important;height:12px!important;font-size:6px!important;right:2px!important;bottom:2px!important;}
.interactive-media-pager{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin:16px 0 4px;}
.interactive-media-pager a{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 10px;border:1px solid #dbeafe;border-radius:999px;background:#fff;color:#1d4ed8;text-decoration:none;font-weight:700;font-size:13px;}
.interactive-media-pager a.active,.interactive-media-pager a:hover{background:#1d4ed8;color:#fff;}
.interactive-album-subhead{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:18px 0 0;}
.interactive-album-subhead h3{margin:0;font-size:20px;}
.interactive-album-subhead p{margin:4px 0 0;color:#64748b;}
.interactive-list-page{padding:24px 0 40px;}

/* ===== FIX 12052026: Search box topbar hiện đại + dãn đều PC/Mobile =====
   Chỉ chỉnh giao diện thanh tìm kiếm ngoài Trang chủ/header, không động vào module Admin/CKEditor. */
.site-header-sticky .topbar-upgraded .site-shell.topbar-upgraded-inner{
  width:100% !important;
  max-width:1280px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:20px !important;
  padding-right:20px !important;
  display:grid !important;
  grid-template-columns:minmax(210px,1fr) minmax(320px,560px) minmax(210px,1fr) !important;
  align-items:center !important;
  justify-content:center !important;
  column-gap:18px !important;
  row-gap:8px !important;
}
.site-header-sticky .topbar-live-datetime{
  justify-self:start !important;
  max-width:100% !important;
  min-width:0 !important;
}
.site-header-sticky .topbar-search-mini{
  justify-self:center !important;
  width:100% !important;
  min-width:0 !important;
  max-width:560px !important;
}
.site-header-sticky .topbar-search-mini form{
  width:100% !important;
  height:38px !important;
  min-height:38px !important;
  display:flex !important;
  align-items:center !important;
  overflow:hidden !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.45) !important;
  background:#fff !important;
  box-shadow:0 8px 22px rgba(15,23,42,.16) !important;
  transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease !important;
}
.site-header-sticky .topbar-search-mini form:focus-within{
  border-color:rgba(14,165,233,.75) !important;
  box-shadow:0 10px 26px rgba(14,165,233,.24) !important;
  transform:translateY(-1px) !important;
}
.site-header-sticky .topbar-search-mini input{
  flex:1 1 auto !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  height:38px !important;
  line-height:38px !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:#0f172a !important;
  font-size:13px !important;
  font-weight:600 !important;
  padding:0 14px 0 16px !important;
}
.site-header-sticky .topbar-search-mini input::placeholder{
  color:#64748b !important;
  font-weight:500 !important;
  opacity:1 !important;
}
.site-header-sticky .topbar-search-mini button{
  flex:0 0 44px !important;
  width:44px !important;
  height:38px !important;
  border:0 !important;
  padding:0 !important;
  margin:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:linear-gradient(135deg,#0f4c81,#2563eb) !important;
  color:#fff !important;
  border-radius:0 999px 999px 0 !important;
}
.site-header-sticky .topbar-search-mini button i{
  font-size:14px !important;
  line-height:1 !important;
}
.site-header-sticky .topbar-contact-card--mini{
  justify-self:end !important;
  min-width:0 !important;
}

@media (max-width: 991.98px){
  .site-header-sticky .topbar-upgraded .site-shell.topbar-upgraded-inner{
    max-width:100% !important;
    padding-left:12px !important;
    padding-right:12px !important;
    grid-template-columns:1fr auto !important;
    grid-template-areas:
      "datetime datetime"
      "search actions" !important;
    column-gap:8px !important;
    row-gap:5px !important;
  }
  .site-header-sticky .topbar-live-datetime{
    grid-area:datetime !important;
    justify-self:center !important;
    width:100% !important;
    text-align:center !important;
    justify-content:center !important;
    font-size:11px !important;
    line-height:1.25 !important;
  }
  .site-header-sticky .topbar-search-mini{
    grid-area:search !important;
    justify-self:stretch !important;
    width:100% !important;
    max-width:none !important;
  }
  .site-header-sticky .topbar-contact-card--mini{
    grid-area:actions !important;
    justify-self:end !important;
    width:auto !important;
  }
  .site-header-sticky .topbar-search-mini form{
    height:36px !important;
    min-height:36px !important;
  }
  .site-header-sticky .topbar-search-mini input{
    height:36px !important;
    line-height:36px !important;
    font-size:12px !important;
    padding-left:14px !important;
  }
  .site-header-sticky .topbar-search-mini button{
    height:36px !important;
    width:40px !important;
    flex-basis:40px !important;
  }
}

@media (max-width: 520px){
  .site-header-sticky .topbar-upgraded .site-shell.topbar-upgraded-inner{
    padding-left:10px !important;
    padding-right:10px !important;
    column-gap:6px !important;
  }
  .site-header-sticky .topbar-search-mini form{
    height:34px !important;
    min-height:34px !important;
    box-shadow:0 6px 16px rgba(15,23,42,.14) !important;
  }
  .site-header-sticky .topbar-search-mini input{
    height:34px !important;
    line-height:34px !important;
    font-size:11px !important;
    padding-left:12px !important;
    padding-right:8px !important;
  }
  .site-header-sticky .topbar-search-mini button{
    height:34px !important;
    width:36px !important;
    flex-basis:36px !important;
  }
  .site-header-sticky .topbar-search-mini button i{
    font-size:13px !important;
  }
}


/* ===== FIX 17052026: Co header/menu/footer bằng đúng khung body trang chủ =====
   - Giữ nguyên cấu trúc Razor và chức năng cũ.
   - Chỉ ép bề rộng vùng topbar tìm kiếm/hotline/zalo/ngày giờ, menu ngang và footer
     về cùng max-width với .site-shell/body nội dung để giao diện thẳng hàng. */
:root{
  --tpt-site-shell-width:1280px;
}

.site-header-sticky,
.site-header-sticky .topbar.topbar-upgraded,
.site-header-sticky .main-menu-wrap,
.footer-main{
  width:100% !important;
  max-width:var(--tpt-site-shell-width) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.site-header-sticky{
  left:auto !important;
  right:auto !important;
  background:transparent !important;
}

.site-header-sticky .topbar.topbar-upgraded,
.site-header-sticky .main-menu-wrap{
  overflow:visible !important;
}

.site-header-sticky .topbar.topbar-upgraded{
  border-left:1px solid rgba(255,255,255,.14) !important;
  border-right:1px solid rgba(255,255,255,.14) !important;
}

.site-header-sticky .main-menu-wrap{
  border-left:1px solid rgba(255,255,255,.12) !important;
  border-right:1px solid rgba(255,255,255,.12) !important;
}

.site-header-sticky .topbar-upgraded .site-shell.topbar-upgraded-inner,
.site-header-sticky .main-menu-wrap > .site-shell,
.footer-main > .site-shell{
  width:100% !important;
  max-width:var(--tpt-site-shell-width) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:20px !important;
  padding-right:20px !important;
}

/* Thu gọn menu ngang để cân đối với khung body, tránh cảm giác quá cao/rộng. */
.site-header-sticky .main-menu-wrap > .site-shell{
  min-height:46px !important;
  align-items:center !important;
}
.site-header-sticky .main-menu-wrap .menu-root > li > a,
.site-header-sticky .main-menu-wrap a.menu-home-link,
.site-header-sticky .main-menu-wrap .primary-menu-host a{
  padding-top:12px !important;
  padding-bottom:12px !important;
  line-height:1.2 !important;
}

/* Footer chỉ còn rộng bằng body, không loang full màn hình hai bên. */
.footer-main{
  box-shadow:0 -10px 28px rgba(67,20,7,.10) !important;
}
.footer-main .footer-cols{
  align-items:flex-start !important;
}

/* Admin CMS: sau khi bỏ tiêu đề cũ, căn lại tên người đăng nhập cho gọn. */
.admin-side .admin-user-name{
  margin:0 0 14px 0 !important;
  color:rgba(255,255,255,.82) !important;
  font-size:13px !important;
  font-weight:700 !important;
}

@media (max-width: 1320px){
  .site-header-sticky,
  .site-header-sticky .topbar.topbar-upgraded,
  .site-header-sticky .main-menu-wrap,
  .footer-main{
    max-width:calc(100% - 24px) !important;
  }
}

@media (max-width: 768px){
  .site-header-sticky,
  .site-header-sticky .topbar.topbar-upgraded,
  .site-header-sticky .main-menu-wrap,
  .footer-main{
    max-width:100% !important;
  }
  .site-header-sticky .topbar-upgraded .site-shell.topbar-upgraded-inner,
  .site-header-sticky .main-menu-wrap > .site-shell,
  .footer-main > .site-shell{
    padding-left:12px !important;
    padding-right:12px !important;
  }
}
