/* ============================================================
   VIETADV THEME — main.css  v3.0
   Mobile-first · SEO-friendly · WCAG 2.1 AA
   ============================================================ */

/* ── TOKENS ── */
:root {
  --primary:       #0055a5;
  --primary-dark:  #003d7a;
  --primary-light: #e8f1fb;
  --accent:        #0077cc;
  --gold:          #f39c12;
  --success:       #16a34a;
  --danger:        #dc2626;
  --text:          #1f2937;
  --text-light:    #4b5563;
  --muted:         #6b7280;
  --border:        #e5e7eb;
  --bg:            #ffffff;
  --bg-alt:        #f5f9ff;
  --bg-dark:       #0a1628;
  --radius:        8px;
  --radius-lg:     14px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.14);
  --transition:    .22s ease;
  --container:     1200px;
  --font:          'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body  { font-family: var(--font); line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a    { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--bg-dark); letter-spacing: -.02em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 4vw, 2rem);   }
h3 { font-size: clamp(1.05rem,3vw, 1.35rem); }
h4 { font-size: 1rem; }
p  { margin-bottom: 1rem; }
strong { font-weight: 700; }

/* ── CONTAINER ── */
.container    { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 16px; }
@media (min-width:640px)  { .container,.container-sm { padding: 0 24px; } }
@media (min-width:1280px) { .container { padding: 0 40px; } }

/* ── SKIP LINK (accessibility) ── */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; padding: 8px 16px; background: var(--primary); color: #fff; border-radius: var(--radius); z-index: 9999; }

/* ── SECTION ── */
.section    { padding: 48px 0; }
.section-sm { padding: 32px 0; }
@media (min-width:768px)  { .section { padding: 64px 0; } .section-sm { padding: 40px 0; } }
@media (min-width:1024px) { .section { padding: 80px 0; } }
.section-alt     { background: var(--bg-alt); }
.section-dark    { background: var(--bg-dark); }
.section-primary { background: linear-gradient(135deg,#002d6b,var(--primary)); }
.section-header  { text-align: center; margin-bottom: 40px; }
.section-header h2 { margin-bottom: 8px; }
.section-dark .section-header h2,
.section-primary .section-header h2 { color: #fff; }
.section-header p { color: var(--muted); max-width: 540px; margin: 12px auto 0; font-size: .93rem; }
@media (min-width:768px) { .section-header { margin-bottom: 52px; } }
.divider-line { width: 48px; height: 3px; background: var(--primary); border-radius: 2px; margin: 10px 0 0; }
.divider-line.center { margin: 10px auto 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px; min-height: 44px;
  font-size: .88rem; font-weight: 700; font-family: inherit;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; white-space: nowrap; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff !important; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 4px 14px rgba(0,85,165,.3); }
.btn-outline  { background: transparent; color: var(--primary) !important; border-color: var(--primary); }
.btn-outline:hover  { background: var(--primary); color: #fff !important; }
.btn-gold     { background: var(--gold); color: #fff !important; border-color: var(--gold); }
.btn-gold:hover     { background: #e08e0b; }
.btn-sm  { padding: 8px 16px; font-size: .8rem; min-height: 36px; }
.btn-lg  { padding: 13px 28px; font-size: .95rem; }
@media (min-width:768px) { .btn-lg { padding: 15px 34px; font-size: 1rem; } }
@media (hover:none) { .btn:hover { transform: none !important; box-shadow: none !important; } }

/* ── BADGE ── */
.badge { display:inline-block; padding:2px 10px; font-size:.7rem; font-weight:700; border-radius:100px; }
.badge-primary { background:var(--primary-light); color:var(--primary); }
.badge-hot     { background:#fee2e2; color:var(--danger); }
.badge-new     { background:#dcfce7; color:var(--success); }

/* ================================================================
   FLOATING CTA
   ================================================================ */
.float-cta { position:fixed; bottom:20px; right:16px; z-index:9000; display:flex; flex-direction:column; gap:10px; align-items:flex-end; }
@media (min-width:768px) { .float-cta { bottom:28px; right:24px; } }
.float-btn { display:flex; align-items:center; gap:10px; text-decoration:none; transition:transform var(--transition); -webkit-tap-highlight-color:transparent; }
.float-btn:hover { transform:scale(1.07); }
.float-btn:hover .float-label { opacity:1; transform:translateX(0); pointer-events:auto; }
.float-icon { width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 16px rgba(0,0,0,.22); flex-shrink:0; }
@media (min-width:768px) { .float-icon { width:56px; height:56px; } }
.float-zalo  .float-icon { background:#0068ff; }
.float-phone .float-icon { background:#00b14f; }
.float-label { background:var(--bg-dark); color:#fff; font-size:.74rem; font-weight:600; padding:6px 12px; border-radius:100px; white-space:nowrap; opacity:0; transform:translateX(8px); transition:all var(--transition); pointer-events:none; }
@keyframes pb { 0%,100%{box-shadow:0 0 0 0 rgba(0,104,255,.45);}70%{box-shadow:0 0 0 10px rgba(0,104,255,0);} }
@keyframes pg { 0%,100%{box-shadow:0 0 0 0 rgba(0,177,79,.45);} 70%{box-shadow:0 0 0 10px rgba(0,177,79,0);} }
.float-zalo  .float-icon { animation:pb 2.2s infinite; }
.float-phone .float-icon { animation:pg 2.2s infinite .7s; }

/* ================================================================
   TOPBAR
   ================================================================ */
.topbar { background:var(--primary); color:rgba(255,255,255,.9); font-size:.76rem; padding:6px 0; display:none; }
@media (min-width:768px) { .topbar { display:block; } }
.topbar-inner { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px; }
.topbar a { color:rgba(255,255,255,.9); }
.topbar a:hover { color:#fff; }
.topbar-left,.topbar-right { display:flex; gap:16px; align-items:center; }

/* ================================================================
   HEADER
   ================================================================ */
#site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 800;
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.13); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
@media (min-width:768px) { .header-inner { height: 70px; } }

/* Logo */
.site-logo { flex-shrink: 0; }
.site-logo a { display: flex; align-items: center; }
.site-logo img { height: 36px; width: auto; max-width: 160px; object-fit: contain; }
@media (min-width:480px) { .site-logo img { height: 44px; } }
@media (min-width:768px) { .site-logo img { height: 50px; max-width: 200px; } }

/* ─────────────────────────────────────────
   DESKTOP NAV — WordPress ul > li > a
   ───────────────────────────────────────── */
.main-nav { display: none; }
@media (min-width:1024px) { .main-nav { display: block; } }

/* Reset ul/li */
.main-nav .nav-menu,
.main-nav .nav-menu ul {
  list-style: none; margin: 0; padding: 0;
}

/* Top-level list */
.main-nav .nav-menu {
  display: flex; align-items: center; gap: 2px; flex-wrap: nowrap;
}

/* Top-level item */
.main-nav .nav-menu > li {
  position: relative;
}

/* Top-level link */
.main-nav .nav-menu > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 13px; min-height: 44px;
  font-size: .87rem; font-weight: 600;
  color: var(--text); white-space: nowrap;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  position: relative;
}

/* Hover & active states */
.main-nav .nav-menu > li > a:hover,
.main-nav .nav-menu > li.current-menu-item > a,
.main-nav .nav-menu > li.current-menu-ancestor > a,
.main-nav .nav-menu > li.current_page_item > a,
.main-nav .nav-menu > li.current_page_ancestor > a {
  background: var(--primary-light);
  color: var(--primary);
}

/* Active underline indicator */
.main-nav .nav-menu > li.current-menu-item > a::after,
.main-nav .nav-menu > li.current-menu-ancestor > a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 20px); height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

/* Caret icon for dropdown parent */
.main-nav .nav-menu > li.menu-item-has-children > a::after {
  content: '▾';
  font-size: .65rem; margin-left: 2px;
  transition: transform var(--transition);
  position: static; background: none; width: auto; height: auto;
  transform: none;
}
.main-nav .nav-menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* ── DROPDOWN ── */
.main-nav .sub-menu {
  position: absolute;
  /* Kéo sát lên sát menu item — không có gap */
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  /* Padding-top tạo vùng hover an toàn thay vì gap */
  padding: 8px 0 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  /* Ẩn nhanh, hiện nhanh */
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  visibility: hidden;
  z-index: 500;
}

/* Pseudo-element lấp khoảng trống giữa menu item và dropdown */
.main-nav .nav-menu > li.menu-item-has-children::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 8px; /* vùng đệm an toàn */
  background: transparent;
}

/* Hiện dropdown khi hover hoặc focus */
.main-nav .nav-menu > li:hover > .sub-menu,
.main-nav .nav-menu > li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

/* Giữ dropdown khi đang hover bên trong nó */
.main-nav .sub-menu:hover { opacity: 1; pointer-events: auto; visibility: visible; transform: translateY(0); }

/* Dropdown items */
.main-nav .sub-menu li { position: relative; }
.main-nav .sub-menu li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; min-height: 44px;
  font-size: .84rem; font-weight: 500; color: var(--text);
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
  border-bottom: 1px solid var(--border);
}
.main-nav .sub-menu li:last-child a { border-bottom: none; }
.main-nav .sub-menu li a:hover {
  background: var(--bg-alt);
  color: var(--primary);
  padding-left: 24px;
}
.main-nav .sub-menu li.current-menu-item a {
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-light);
}

/* Level 3 (nested sub-menu) */
.main-nav .sub-menu .sub-menu {
  top: 0; left: 100%;
  border-top: 3px solid var(--primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  margin-left: 4px;
}
.main-nav .sub-menu li:hover > .sub-menu,
.main-nav .sub-menu li:focus-within > .sub-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.main-nav .sub-menu li.menu-item-has-children > a::after { content: '›'; margin-left: auto; }

/* ── HEADER RIGHT ── */
.header-right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.header-cta { display: none; }
@media (min-width:480px) { .header-cta { display: inline-flex; } }

/* ── HAMBURGER ── */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; border-radius: var(--radius);
  align-items: center; justify-content: center;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.hamburger:hover { background: var(--bg-alt); }
.hamburger span {
  display: block; height: 2px; width: 22px;
  background: var(--bg-dark); border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width:1024px) { .hamburger { display: none; } }

/* ── MOBILE NAV ── */
.mobile-nav {
  background: var(--bg);
  border-top: 1px solid var(--border);
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.open { max-height: 80vh; overflow-y: auto; }

/* WordPress ul > li > a in mobile */
.mobile-nav .mobile-menu-list { list-style: none; margin: 0; padding: 0; }
.mobile-nav .mobile-menu-list li { border-bottom: 1px solid var(--border); }
.mobile-nav .mobile-menu-list li:last-child { border-bottom: none; }
.mobile-nav .mobile-menu-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px; min-height: 50px;
  font-size: .93rem; font-weight: 500; color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav .mobile-menu-list li a:hover,
.mobile-nav .mobile-menu-list li a:active { color: var(--primary); background: var(--bg-alt); }
.mobile-nav .mobile-menu-list li.current-menu-item > a { color: var(--primary); font-weight: 700; }
/* Mobile sub-menu */
.mobile-nav .mobile-menu-list .sub-menu { display: none; background: var(--bg-alt); }
.mobile-nav .mobile-menu-list .sub-menu.open { display: block; }
.mobile-nav .mobile-menu-list .sub-menu li a { padding-left: 36px; font-size: .87rem; }
/* Mobile dropdown arrow */
.mobile-nav .menu-item-has-children > a .menu-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; transition: transform var(--transition); flex-shrink: 0;
}
.mobile-nav .menu-item-has-children.open > a .menu-arrow { transform: rotate(180deg); }

/* Mobile fallback links (simple a tags) */
.mobile-nav > a {
  display: flex; align-items: center;
  padding: 13px 20px; min-height: 50px;
  font-size: .93rem; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav > a:hover { color: var(--primary); background: var(--bg-alt); }
.mobile-cta { padding: 12px 16px 16px; display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); }
.mobile-cta .btn { flex: 1; min-width: 120px; }
@media (min-width:1024px) { .mobile-nav { display: none !important; } }

/* ================================================================
   PAGE HEADER (breadcrumb bar)
   ================================================================ */
.page-header { background:linear-gradient(135deg,#002d6b,var(--primary)); padding:36px 0; }
@media (min-width:768px) { .page-header { padding:52px 0; } }
.page-header h1 { color:#fff; margin-bottom:10px; }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 4px 8px;
  align-items: center; font-size: .8rem;
  margin-top: 10px;
  background: rgba(0,0,0,.25);
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.breadcrumb a {
  color: rgba(255,255,255,.9);
  font-weight: 500;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: #ffd700; text-decoration: underline; }
.breadcrumb .sep { color: rgba(255,255,255,.4); font-size: .7rem; }
.breadcrumb [aria-current] {
  color: #ffd700;
  font-weight: 700;
}

/* ================================================================
   HERO
   ================================================================ */
.hero { background:linear-gradient(135deg,#002d6b 0%,var(--primary) 55%,#0077cc 100%); color:#fff; padding:52px 0; position:relative; overflow:hidden; }
.hero::before { content:''; position:absolute; right:-100px; top:-100px; width:460px; height:460px; border-radius:50%; background:rgba(255,255,255,.04); pointer-events:none; }
@media (min-width:1024px) { .hero { padding:88px 0; } }
.hero-grid { display:flex; flex-direction:column; gap:36px; position:relative; z-index:1; }
@media (min-width:1024px) { .hero-grid { display:grid; grid-template-columns:1fr 400px; gap:56px; align-items:center; } }
.hero-badge { display:inline-flex; align-items:center; gap:6px; padding:5px 14px; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.3); border-radius:100px; font-size:.74rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; margin-bottom:16px; }
.hero h1 { color:#fff; margin-bottom:14px; }
.hero h1 em { font-style:normal; color:#ffd700; }
.hero p { color:rgba(255,255,255,.88); font-size:.97rem; margin-bottom:28px; }
@media (min-width:768px) { .hero p { font-size:1.05rem; max-width:500px; } }
.hero-btns { display:flex; gap:10px; flex-wrap:wrap; }
.btn-hw { background:#fff; color:var(--primary)!important; border-color:#fff; }
.btn-hw:hover { background:#e8f1fb; }
.btn-hg { background:rgba(255,255,255,.15); color:#fff!important; border:2px solid rgba(255,255,255,.4); }
.btn-hg:hover { background:rgba(255,255,255,.25); }
.hero-stats { display:flex; gap:24px; margin-top:36px; flex-wrap:wrap; }
.hstat-num   { font-size:1.6rem; font-weight:800; color:#ffd700; line-height:1; }
.hstat-label { font-size:.73rem; color:rgba(255,255,255,.75); margin-top:4px; }
@media (min-width:480px) { .hstat-num { font-size:1.8rem; } .hero-stats { gap:32px; } }
.hero-card { background:rgba(255,255,255,.97); border-radius:var(--radius-lg); padding:22px; box-shadow:0 20px 60px rgba(0,0,0,.22); color:var(--text); }
@media (min-width:768px) { .hero-card { padding:28px; } }
.hero-card h3 { font-size:.95rem; font-weight:700; color:var(--bg-dark); margin-bottom:16px; padding-bottom:12px; border-bottom:2px solid var(--primary); }
.price-row { display:flex; justify-content:space-between; align-items:center; padding:9px 0; border-bottom:1px solid var(--border); font-size:.85rem; }
.price-row:last-of-type { border-bottom:none; }
.price-val { font-weight:700; color:var(--primary); }
.hero-card .note { font-size:.72rem; color:var(--muted); margin-top:12px; padding-top:10px; border-top:1px dashed var(--border); }
.hero-card .btn { width:100%; justify-content:center; margin-top:14px; }

/* ================================================================
   USP BAR
   ================================================================ */
.usp-bar { background:var(--bg-dark); }
.usp-grid { display:grid; grid-template-columns:repeat(2,1fr); }
@media (min-width:768px) { .usp-grid { grid-template-columns:repeat(4,1fr); } }
.usp-item { padding:18px 14px; text-align:center; border-right:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); }
.usp-item:nth-child(2n)  { border-right:none; }
.usp-item:nth-child(n+3) { border-bottom:none; }
@media (min-width:768px) {
  .usp-item { padding:22px 18px; border-bottom:none; }
  .usp-item:nth-child(2n) { border-right:1px solid rgba(255,255,255,.08); }
  .usp-item:last-child    { border-right:none; }
}
.usp-icon  { font-size:1.5rem; margin-bottom:6px; }
.usp-title { font-size:.84rem; font-weight:700; color:#fff; }
.usp-desc  { font-size:.72rem; color:#94a3b8; margin-top:3px; }

/* ================================================================
   BLOG LAYOUT (main + sidebar)
   ================================================================ */
/* ── Blog layout (archive / index) ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  width: 100%;
}
@media (min-width:900px)  { .blog-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 40px; } }
@media (min-width:1100px) { .blog-layout { grid-template-columns: minmax(0,1fr) 300px; } }

/* Fix overflow cho cả 2 cột */
.blog-layout > * { min-width: 0; }

/* ── POST CARD (grid) ── */
.post-card { background:var(--bg); border:1px solid var(--border); border-radius:12px; overflow:hidden; transition:box-shadow var(--transition), transform var(--transition); display:flex; flex-direction:column; }
.post-card:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); }
.post-card-thumb { aspect-ratio:16/9; overflow:hidden; background:var(--bg-alt); flex-shrink:0; }
.post-card-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.post-card:hover .post-card-thumb img { transform:scale(1.04); }
.post-card-thumb .thumb-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:2.5rem; background:var(--bg-alt); }
.post-card-body { padding:18px; flex:1; display:flex; flex-direction:column; }
@media (min-width:768px) { .post-card-body { padding:22px; } }
.post-cat-badge { display:inline-block; padding:2px 10px; border-radius:100px; background:var(--primary-light); color:var(--primary); font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin-bottom:8px; }
.post-card-body h2, .post-card-body h3 { font-size:.98rem; font-weight:700; color:var(--bg-dark); margin-bottom:8px; line-height:1.4; }
.post-card-body h2 a, .post-card-body h3 a { color:inherit; }
.post-card-body h2 a:hover, .post-card-body h3 a:hover { color:var(--primary); }
.post-meta { display:flex; flex-wrap:wrap; gap:10px; font-size:.73rem; color:var(--muted); margin-bottom:8px; }
.post-meta a { color:var(--muted); }
.post-meta a:hover { color:var(--primary); }
.post-excerpt { font-size:.84rem; color:var(--text-light); line-height:1.65; margin-bottom:14px; flex:1; }
.read-more { font-size:.82rem; font-weight:700; color:var(--primary); display:inline-flex; align-items:center; gap:4px; margin-top:auto; transition:gap var(--transition); }
.read-more:hover { gap:8px; }

/* ── POST LIST ITEM (archive) ── */
.post-list-item { background:var(--bg); border:1px solid var(--border); border-radius:12px; overflow:hidden; display:grid; grid-template-columns:1fr; transition:box-shadow var(--transition), transform var(--transition); margin-bottom:16px; }
@media (min-width:540px) { .post-list-item { grid-template-columns:200px 1fr; } }
@media (min-width:768px) { .post-list-item { grid-template-columns:260px 1fr; } }
.post-list-item:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.post-list-thumb { overflow:hidden; background:var(--bg-alt); min-height:160px; }
@media (min-width:540px) { .post-list-thumb { min-height:0; } }
.post-list-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.post-list-item:hover .post-list-thumb img { transform:scale(1.04); }
.post-list-thumb .thumb-placeholder { width:100%; height:100%; min-height:160px; display:flex; align-items:center; justify-content:center; font-size:2.5rem; }
.post-list-body { padding:18px; display:flex; flex-direction:column; }
@media (min-width:768px) { .post-list-body { padding:22px 24px; } }
.post-list-body h2 { font-size:1rem; font-weight:700; color:var(--bg-dark); margin-bottom:7px; line-height:1.4; }
.post-list-body h2 a { color:inherit; }
.post-list-body h2 a:hover { color:var(--primary); }

/* ── NEWS GRID (3 col on desktop) ── */
.news-grid { display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width:580px)  { .news-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:1024px) { .news-grid { grid-template-columns:repeat(3,1fr); gap:20px; } }

/* ── PAGINATION ── */
.pagination { display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-top:36px; }
.pagination a, .pagination span { display:flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 6px; border-radius:var(--radius); font-size:.85rem; font-weight:600; border:1px solid var(--border); color:var(--text); transition:all var(--transition); }
.pagination a:hover, .pagination .current { background:var(--primary); border-color:var(--primary); color:#fff; }
.pagination .dots { border:none; }

/* ================================================================
   PRODUCT GRID
   ================================================================ */
.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  width: 100%;
}
@media (min-width:900px)  { .product-layout { grid-template-columns: 240px minmax(0,1fr); gap: 32px; } }
@media (min-width:1100px) { .product-layout { grid-template-columns: 260px minmax(0,1fr); } }
.product-layout > * { min-width: 0; }

/* Product grid — 3 cột cân đối */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  width: 100%;
}
@media (min-width:640px)  { .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; } }
@media (min-width:1100px) { .product-grid { gap: 20px; } }
.product-grid > * { min-width: 0; }

/* Product card */
.product-card { background:var(--bg); border:1px solid var(--border); border-radius:12px; overflow:hidden; transition:box-shadow var(--transition), transform var(--transition); display:flex; flex-direction:column; position:relative; }
.product-card:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); }
.product-thumb { aspect-ratio:1; overflow:hidden; background:var(--bg-alt); flex-shrink:0; }
.product-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.product-card:hover .product-thumb img { transform:scale(1.06); }
.product-thumb .thumb-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:2.8rem; background:linear-gradient(135deg,#dbeafe,#e0f2fe); }
.product-body { padding:12px 14px; flex:1; display:flex; flex-direction:column; }
@media (min-width:768px) { .product-body { padding:16px 18px; } }
.product-body h3 { font-size:.88rem; font-weight:700; color:var(--bg-dark); margin-bottom:4px; line-height:1.35; }
@media (min-width:768px) { .product-body h3 { font-size:.93rem; } }
.product-body h3 a { color:inherit; }
.product-body h3 a:hover { color:var(--primary); }
.product-cat-label { font-size:.68rem; color:var(--muted); margin-bottom:8px; }
.product-price { font-size:.85rem; font-weight:700; color:var(--primary); margin-top:auto; padding-top:8px; }
.product-price .original { text-decoration:line-through; color:var(--muted); font-weight:400; font-size:.78rem; margin-left:6px; }
.product-badge { position:absolute; top:10px; left:10px; }
.product-actions { padding:10px 14px; border-top:1px solid var(--border); }
.product-actions .btn { width:100%; font-size:.8rem; }

/* Product categories sidebar (shop page) */
.shop-cats { background:var(--bg); border:1px solid var(--border); border-radius:12px; padding:20px; }
.shop-cats h3 { font-size:.84rem; font-weight:700; color:var(--bg-dark); text-transform:uppercase; letter-spacing:.06em; margin-bottom:14px; padding-bottom:10px; border-bottom:2px solid var(--primary); }
.shop-cats ul li { padding:8px 0; border-bottom:1px solid var(--border); font-size:.85rem; }
.shop-cats ul li:last-child { border-bottom:none; }
.shop-cats ul li a { color:var(--text); display:flex; justify-content:space-between; align-items:center; min-height:36px; }
.shop-cats ul li a:hover { color:var(--primary); }
.shop-cats ul li a.active { color:var(--primary); font-weight:700; }
.cat-count { font-size:.72rem; color:var(--muted); background:var(--bg-alt); padding:1px 8px; border-radius:100px; }

/* ================================================================
   SINGLE POST
   ================================================================ */
.single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  width: 100%;
}
@media (min-width:900px)  { .single-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 40px; } }
@media (min-width:1100px) { .single-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 44px; } }

/* Fix overflow cho cả 2 cột */
.single-layout > * { min-width: 0; }

.entry-hero-thumb { width:100%; aspect-ratio:16/7; overflow:hidden; border-radius:12px; margin-bottom:28px; background:var(--bg-alt); }
.entry-hero-thumb img { width:100%; height:100%; object-fit:cover; }
.entry-header { margin-bottom:22px; }
.entry-header h1 { font-size:clamp(1.35rem,4vw,2.2rem); margin-bottom:14px; }
.entry-meta { display:flex; flex-wrap:wrap; gap:12px; font-size:.76rem; color:var(--muted); }
.entry-meta a { color:var(--muted); }
.entry-meta a:hover { color:var(--primary); }
.entry-meta .sep { opacity:.4; }

/* Article content */
.entry-content {
  font-size: .95rem;
  line-height: 1.85;
  color: var(--text);
  /* Clip tràn ngay tại đây */
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.entry-content img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto !important;
  margin: 1.4rem auto;
  border-radius: var(--radius);
  box-sizing: border-box;
}
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 { font-size:clamp(1.1rem,3vw,1.4rem); margin-top:2rem; padding-top:.5rem; border-top:1px solid var(--border); }
.entry-content h3 { font-size:1.05rem; margin-top:1.5rem; }
.entry-content ul, .entry-content ol { padding-left:1.4rem; }
.entry-content ul li { list-style:disc; margin-bottom:.3rem; }
.entry-content ol li { list-style:decimal; margin-bottom:.3rem; }
.entry-content img { border-radius:var(--radius); margin:1.4rem auto; max-width:100%; }
.entry-content a { color:var(--primary); text-decoration:underline; text-underline-offset:2px; }
.entry-content blockquote { border-left:4px solid var(--primary); padding:14px 18px; background:var(--primary-light); border-radius:0 var(--radius) var(--radius) 0; font-style:italic; color:var(--primary-dark); }
.entry-content table { width:100%; border-collapse:collapse; display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
@media (min-width:640px) { .entry-content table { display:table; } }
.entry-content th { background:var(--primary); color:#fff; padding:10px 14px; text-align:left; white-space:nowrap; }
.entry-content td { padding:9px 14px; border-bottom:1px solid var(--border); }
.entry-content tr:nth-child(even) td { background:var(--bg-alt); }
.entry-content code { background:var(--bg-alt); padding:2px 6px; border-radius:4px; font-size:.88em; }
.entry-content pre { background:#1e1e2e; color:#cdd6f4; padding:16px 18px; border-radius:var(--radius); overflow-x:auto; font-size:.85em; }

/* Tags & share */
.entry-footer { margin-top:28px; padding-top:20px; border-top:1px solid var(--border); display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; }
.entry-tags { display:flex; flex-wrap:wrap; gap:7px; }
.entry-tag { padding:4px 12px; border-radius:100px; border:1px solid var(--border); font-size:.75rem; color:var(--muted); transition:all var(--transition); }
.entry-tag:hover { border-color:var(--primary); color:var(--primary); }

/* Author box */
.author-box { display:flex; gap:16px; background:var(--bg-alt); border:1px solid var(--border); border-radius:12px; padding:20px; margin-top:28px; }
.author-avatar { width:56px; height:56px; border-radius:50%; background:var(--primary); flex-shrink:0; object-fit:cover; }
.author-name { font-weight:700; font-size:.93rem; color:var(--bg-dark); margin-bottom:4px; }
.author-bio  { font-size:.82rem; color:var(--muted); margin:0; }

/* Post nav */
.post-nav { display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }
.post-nav a { flex:1; min-width:140px; padding:14px 16px; background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius); font-size:.82rem; color:var(--text); transition:all var(--transition); }
.post-nav a:hover { border-color:var(--primary); color:var(--primary); }
.post-nav .prev { text-align:left; }
.post-nav .next { text-align:right; }
.post-nav .nav-label { font-size:.7rem; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.05em; display:block; margin-bottom:4px; }
.post-nav .nav-title { font-weight:700; display:block; line-height:1.3; }

/* Related posts */
.related-posts-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
@media (min-width:768px) { .related-posts-grid { grid-template-columns:repeat(3,1fr); gap:18px; } }

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar { display:flex; flex-direction:column; gap:20px; }
.widget { background:var(--bg); border:1px solid var(--border); border-radius:12px; padding:18px; }
@media (min-width:768px) { .widget { padding:22px; } }
.widget-title { font-size:.82rem; font-weight:700; color:var(--bg-dark); text-transform:uppercase; letter-spacing:.06em; margin-bottom:14px; padding-bottom:10px; border-bottom:2px solid var(--primary); }
.widget ul li { padding:8px 0; border-bottom:1px solid var(--border); font-size:.84rem; }
.widget ul li:last-child { border-bottom:none; }
.widget ul li a { color:var(--text); display:flex; justify-content:space-between; align-items:center; min-height:36px; }
.widget ul li a:hover { color:var(--primary); }
.widget ul li .count { font-size:.72rem; color:var(--muted); background:var(--bg-alt); padding:1px 7px; border-radius:100px; }

/* Search widget */
.search-form { display:flex; }
.search-form input[type="search"] { flex:1; height:44px; padding:0 14px; border:1.5px solid var(--border); border-right:none; border-radius:var(--radius) 0 0 var(--radius); font-size:1rem; /* 16px prevents iOS zoom */ outline:none; font-family:inherit; }
.search-form input:focus { border-color:var(--primary); }
.search-form button { width:44px; height:44px; background:var(--primary); color:#fff; border:1.5px solid var(--primary); border-radius:0 var(--radius) var(--radius) 0; font-size:1rem; transition:background var(--transition); }
.search-form button:hover { background:var(--primary-dark); }

/* Contact widget */
.contact-w-item { display:flex; gap:10px; margin-bottom:11px; font-size:.83rem; align-items:flex-start; }
.contact-w-item:last-child { margin-bottom:0; }

/* ================================================================
   FORMS (contact, comments)
   ================================================================ */
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:.83rem; font-weight:600; color:var(--bg-dark); margin-bottom:5px; }
.form-control {
  width:100%; padding:11px 14px; height:44px;
  border:1.5px solid var(--border); border-radius:var(--radius);
  font-size:1rem; /* iOS zoom prevention */ color:var(--text);
  font-family:inherit; outline:none;
  transition:border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(0,85,165,.1); }
textarea.form-control { height:auto; min-height:130px; resize:vertical; }

/* ================================================================
   STATS BAR
   ================================================================ */
.stats-bar { background:linear-gradient(135deg,#002d6b,var(--primary)); padding:40px 0; }
@media (min-width:768px) { .stats-bar { padding:56px 0; } }
.stats-grid { display:grid; grid-template-columns:repeat(2,1fr); }
@media (min-width:768px) { .stats-grid { grid-template-columns:repeat(4,1fr); } }
.stats-grid > div { padding:20px; text-align:center; border-right:1px solid rgba(255,255,255,.12); border-bottom:1px solid rgba(255,255,255,.12); }
.stats-grid > div:nth-child(2n) { border-right:none; }
.stats-grid > div:nth-child(n+3) { border-bottom:none; }
@media (min-width:768px) {
  .stats-grid > div { border-bottom:none; }
  .stats-grid > div:nth-child(2n) { border-right:1px solid rgba(255,255,255,.12); }
  .stats-grid > div:last-child    { border-right:none; }
}
.stat-num   { font-size:clamp(1.8rem,4vw,2.6rem); font-weight:800; color:#ffd700; letter-spacing:-.02em; }
.stat-label { font-size:.78rem; color:rgba(255,255,255,.75); margin-top:4px; }

/* ================================================================
   PROCESS STEPS
   ================================================================ */
.process-steps { display:flex; flex-direction:column; gap:0; position:relative; }
.process-steps::before { content:''; position:absolute; left:34px; top:34px; bottom:0; width:2px; background:linear-gradient(180deg,var(--primary),var(--gold)); }
.step { display:flex; gap:20px; align-items:flex-start; padding:0 0 26px; position:relative; z-index:1; }
.step:last-child { padding-bottom:0; }
.step-num { width:68px; height:68px; min-width:68px; border-radius:50%; background:var(--primary); color:#fff; font-size:1.2rem; font-weight:800; display:flex; align-items:center; justify-content:center; border:4px solid var(--bg); box-shadow:0 0 0 2px var(--primary); flex-shrink:0; }
.step-text { padding-top:14px; }
.step h4 { font-size:.9rem; font-weight:700; color:var(--bg-dark); margin-bottom:4px; }
.step p   { font-size:.78rem; color:var(--muted); line-height:1.55; margin:0; }
@media (min-width:900px) {
  .process-steps { flex-direction:row; }
  .process-steps::before { left:10%; right:10%; top:34px; bottom:auto; width:auto; height:2px; background:linear-gradient(90deg,var(--primary),var(--gold)); }
  .step { flex-direction:column; align-items:center; text-align:center; gap:0; padding:0 8px; }
  .step-num { margin-bottom:14px; }
  .step-text { padding-top:0; }
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section { background:var(--bg-dark); padding:64px 0; text-align:center; }
@media (min-width:768px) { .cta-section { padding:80px 0; } }
.cta-section h2 { color:#fff; margin-bottom:10px; }
.cta-section p  { color:#94a3b8; margin-bottom:28px; font-size:.95rem; }
.cta-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.cta-boxes { display:grid; grid-template-columns:1fr; gap:14px; margin-top:36px; }
@media (min-width:640px)  { .cta-boxes { grid-template-columns:1fr 1fr; } }
@media (min-width:900px)  { .cta-boxes { grid-template-columns:repeat(3,1fr); max-width:900px; margin-inline:auto; } }
.cta-box { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:22px 20px; text-align:left; }
.cta-box h4 { color:#fff; font-size:.9rem; font-weight:700; margin-bottom:8px; }
.cta-box p  { color:#94a3b8; font-size:.82rem; margin-bottom:12px; line-height:1.6; }
.cta-box a  { color:var(--gold); font-weight:600; font-size:.85rem; }
.cta-box a:hover { color:#fff; }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.t-grid { display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width:640px)  { .t-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:1024px) { .t-grid { grid-template-columns:repeat(3,1fr); gap:20px; } }
.t-card { background:var(--bg); border:1px solid var(--border); border-radius:12px; padding:22px; transition:box-shadow var(--transition); }
.t-card:hover { box-shadow:var(--shadow-md); }
.stars { display:flex; align-items:center; gap:2px; color:#f59e0b; margin-bottom:12px; }
.stars svg, .star-icon { display:inline-block !important; }
.t-card blockquote { font-size:.86rem; color:var(--text); line-height:1.7; font-style:italic; margin:0 0 16px; padding:0; border:none; }
.reviewer { display:flex; align-items:center; gap:12px; }
.r-avatar { width:40px; height:40px; border-radius:50%; background:var(--primary); color:#fff; font-size:.85rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.r-name  { font-weight:700; font-size:.84rem; color:var(--bg-dark); }
.r-title { font-size:.73rem; color:var(--muted); }

/* ================================================================
   WHY US
   ================================================================ */
.why-grid { display:grid; grid-template-columns:1fr; gap:32px; }
@media (min-width:900px) { .why-grid { grid-template-columns:1fr 1fr; gap:52px; align-items:center; } }
.why-img-box { border-radius:var(--radius-lg); background:linear-gradient(135deg,#002d6b,#0077cc); min-height:220px; display:flex; align-items:center; justify-content:center; font-size:4.5rem; overflow:hidden; }
@media (min-width:900px) { .why-img-box { min-height:380px; } }
.why-img-box img { width:100%; height:100%; object-fit:cover; }
.why-list { display:flex; flex-direction:column; gap:18px; }
.why-item { display:flex; gap:14px; align-items:flex-start; }
.why-icon { width:44px; height:44px; min-width:44px; border-radius:10px; background:var(--primary-light); display:flex; align-items:center; justify-content:center; font-size:1.1rem; }
.why-item h4 { font-size:.92rem; font-weight:700; color:var(--bg-dark); margin-bottom:3px; }
.why-item p  { font-size:.82rem; color:var(--muted); margin:0; }

/* ================================================================
   SERVICE CARDS
   ================================================================ */
.service-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
@media (min-width:640px)  { .service-grid { gap:16px; } }
@media (min-width:1024px) { .service-grid { grid-template-columns:repeat(4,1fr); gap:18px; } }
.service-card { background:var(--bg); border:1px solid var(--border); border-radius:12px; overflow:hidden; transition:box-shadow var(--transition), transform var(--transition); display:flex; flex-direction:column; }
.service-card:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); }
.service-card-link { text-decoration:none; color:inherit; cursor:pointer; }
.service-card-link:hover .service-body h3 { color:var(--primary); }

/* Thumbnail ảnh thật từ product */
.service-thumb { display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--bg-alt); flex-shrink:0; }
.service-thumb-img { height:180px; }
@media (min-width:768px) { .service-thumb-img { height:200px; } }
.service-thumb-img .service-product-img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; display:block; }
.service-card:hover .service-thumb-img .service-product-img { transform:scale(1.05); }

/* Fallback khi chưa có ảnh */
.service-no-thumb { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:var(--bg-alt); }

/* Icon fallback (không có WC) */
.service-thumb-icon { height:120px; font-size:2.6rem; }
@media (min-width:768px) { .service-thumb-icon { height:140px; } }

/* Body */
.service-body { padding:14px 16px; flex:1; display:flex; flex-direction:column; gap:5px; }
@media (min-width:768px) { .service-body { padding:16px 18px; } }
.service-cat-label { font-size:.68rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.service-body h3 { font-size:.9rem; font-weight:700; color:var(--bg-dark); line-height:1.3; margin:0; transition:color var(--transition); }
@media (min-width:768px) { .service-body h3 { font-size:.95rem; } }
.service-body p  { font-size:.78rem; color:var(--muted); line-height:1.55; margin:0; }
.service-price { font-size:.85rem; font-weight:700; color:var(--primary); margin-top:auto; padding-top:4px; }
.service-price del { color:var(--muted); font-weight:400; font-size:.76rem; margin-left:4px; }
.service-tag { display:inline-block; padding:3px 10px; background:var(--primary-light); color:var(--primary); font-size:.7rem; font-weight:600; border-radius:100px; margin-top:auto; align-self:flex-start; }
.service-body { padding:14px 16px; }
.service-body h3 { font-size:.86rem; font-weight:700; color:var(--bg-dark); margin-bottom:4px; line-height:1.3; }
@media (min-width:768px) { .service-body h3 { font-size:.92rem; } }
.service-body p  { font-size:.76rem; color:var(--muted); line-height:1.55; margin:0; display:none; }
@media (min-width:640px) { .service-body p { display:block; } }
.service-tag { display:inline-block; margin-top:8px; padding:2px 10px; background:var(--primary-light); color:var(--primary); font-size:.68rem; font-weight:600; border-radius:100px; }
.s1{background:linear-gradient(135deg,#dbeafe,#bfdbfe);}
.s2{background:linear-gradient(135deg,#e0f2fe,#bae6fd);}
.s3{background:linear-gradient(135deg,#d1fae5,#a7f3d0);}
.s4{background:linear-gradient(135deg,#fef9c3,#fde68a);}
.s5{background:linear-gradient(135deg,#fce7f3,#fbcfe8);}
.s6{background:linear-gradient(135deg,#fef3c7,#fde68a);}
.s7{background:linear-gradient(135deg,#ede9fe,#ddd6fe);}
.s8{background:linear-gradient(135deg,#cffafe,#a5f3fc);}

/* ================================================================
   404 / SEARCH
   ================================================================ */
.notfound-section { padding:72px 0; text-align:center; }
.notfound-code { font-size:clamp(5rem,15vw,9rem); font-weight:900; color:var(--primary); line-height:1; opacity:.1; }
.notfound-section h1 { font-size:clamp(1.3rem,3vw,2rem); margin-bottom:12px; }
.search-header { background:var(--bg-alt); padding:28px 0; border-bottom:1px solid var(--border); }
.search-header h1 { font-size:1.2rem; }
.search-header h1 span { color:var(--primary); }

/* ================================================================
   FOOTER
   ================================================================ */
#site-footer { background:#0a1628; color:#9ca3af; padding:52px 0 0; }
.footer-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding-bottom:40px; }
@media (min-width:640px)  { .footer-grid { grid-template-columns:repeat(3,1fr); } }
@media (min-width:1024px) { .footer-grid { grid-template-columns:2fr 1fr 1fr 1.3fr; gap:40px; padding-bottom:52px; } }
.footer-brand { grid-column:1/-1; }
@media (min-width:1024px) { .footer-brand { grid-column:auto; } }
.footer-brand p { font-size:.83rem; line-height:1.75; margin-top:14px; }
.footer-logo img { height:38px; width:auto; }
@media (min-width:768px) { .footer-logo img { height:42px; } }
.footer-col h4 { color:#fff; font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.09em; margin-bottom:14px; }
.footer-col ul li { margin-bottom:9px; }
.footer-col ul li a { color:#9ca3af; font-size:.82rem; transition:color var(--transition); display:flex; min-height:30px; align-items:center; }
.footer-col ul li a:hover { color:#fff; }
.social-links { display:flex; gap:9px; margin-top:14px; }
.social-btn { width:36px; height:36px; border-radius:8px; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; color:#9ca3af; transition:background var(--transition),color var(--transition); }
.social-btn:hover { background:var(--primary); color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); padding:18px 0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.footer-bottom p { font-size:.77rem; color:#6b7280; margin:0; }
.hotline-badge { background:var(--primary); color:#fff; padding:4px 14px; border-radius:100px; font-size:.75rem; font-weight:700; }

/* ================================================================
   UTILITIES
   ================================================================ */
.text-center { text-align:center; }
.text-primary { color:var(--primary); }
.text-muted   { color:var(--muted); }
.fw-700 { font-weight:700; }
.mt-1{margin-top:8px;} .mt-2{margin-top:16px;} .mt-3{margin-top:24px;}
.mb-1{margin-bottom:8px;} .mb-2{margin-bottom:16px;} .mb-3{margin-bottom:24px;}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border-width:0; }

/* Scrollbar */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:#f0f0f0; }
::-webkit-scrollbar-thumb { background:var(--primary); border-radius:3px; }

/* Reduced motion */
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:.01ms!important; transition-duration:.01ms!important; }
}

/* Hover only on real pointer devices */
@media (hover:none) {
  .product-card:hover, .post-card:hover, .post-list-item:hover,
  .service-card:hover, .t-card:hover { box-shadow:none; transform:none; }
}

/* ================================================================
   SINGLE PRODUCT — full layout
   ================================================================ */

/* Page header */
.sp-page-header { padding: 24px 0 20px; }
.sp-page-title  { color: #fff; font-size: clamp(1.2rem,3vw,1.8rem); margin-top: 10px; }

/* ── Hero grid ── */
.sp-hero { background: var(--bg); }
.sp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
}
@media (min-width:768px)  { .sp-hero-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: start; } }
@media (min-width:1024px) { .sp-hero-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 52px; } }
.sp-hero-grid > * { min-width: 0; }

/* Gallery — hiển thị ảnh đúng chiều cao, không crop */
.sp-gallery-main {
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  /* Giới hạn chiều cao tối đa để không quá dài trên desktop */
  max-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-main-photo {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;   /* contain = hiển thị đầy đủ, không crop */
  object-position: center;
  display: block;
  transition: transform .4s ease;
  cursor: zoom-in;
}
.sp-main-placeholder { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.sp-sale-badge { position: absolute; top: 12px; left: 12px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 100px; z-index: 1; }
.sp-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sp-thumb {
  width: 70px; height: 70px; border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--border); background: none; padding: 0; cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumb:hover { border-color: var(--primary); transform: translateY(-2px); }
.sp-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
@media (min-width:768px) { .sp-thumb { width: 80px; height: 80px; } }

/* Info panel */
.sp-cats { margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.sp-title { font-size: clamp(1.2rem,3vw,1.7rem); line-height: 1.3; margin-bottom: 14px; }
.sp-price { font-size: 1.6rem; font-weight: 800; color: var(--danger); margin-bottom: 16px; }
.sp-price del { font-size: 1rem; color: var(--muted); font-weight: 400; margin-left: 8px; }
.sp-price-contact { font-size: 1.1rem; color: var(--primary); }
.sp-short-desc { font-size: .9rem; color: var(--text-light); line-height: 1.7; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.sp-specs { margin-bottom: 20px; }
.sp-spec-row { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.sp-spec-row:last-child { border-bottom: none; }
.sp-spec-label { color: var(--muted); min-width: 80px; flex-shrink: 0; }
.sp-spec-val { color: var(--text); font-weight: 500; }
.in-stock  { color: var(--success); font-weight: 700; }
.out-stock { color: var(--danger);  font-weight: 700; }

/* CTAs */
.sp-cta-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
@media (min-width:480px) { .sp-cta-group { flex-direction: row; flex-wrap: wrap; } }
.sp-cta-main { flex: 1; min-width: 200px; font-size: .95rem; }
.sp-cta-zalo {
  flex: 1; min-width: 140px;
  background: #0068ff; color: #fff !important; border-color: #0068ff;
  font-weight: 700; border-radius: var(--radius); border: 2px solid #0068ff;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; min-height: 44px; cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.sp-cta-zalo:hover { background: #0053cc; border-color: #0053cc; }
.sp-cta-email { flex: 1; min-width: 180px; }

/* Quick promise */
.sp-quick-promise { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-promise-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--text-light);
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 8px 10px;
}
.sp-promise-item span:first-child { font-size: 1rem; flex-shrink: 0; }

/* ── Cam kết bar ── */
.sp-promise-bar { background: var(--bg-dark); padding: 28px 0; }
@media (min-width:768px) { .sp-promise-bar { padding: 36px 0; } }
.sp-promise-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; }
@media (min-width:640px)  { .sp-promise-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width:900px)  { .sp-promise-grid { grid-template-columns: repeat(5,1fr); } }
.sp-promise-big {
  text-align: center; padding: 20px 14px;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sp-promise-big:nth-child(2n) { border-right: none; }
@media (min-width:640px) { .sp-promise-big { border-right: 1px solid rgba(255,255,255,.08) !important; } .sp-promise-big:nth-child(3n) { border-right: none !important; } }
@media (min-width:900px) { .sp-promise-big { border-bottom: none !important; border-right: 1px solid rgba(255,255,255,.08) !important; } .sp-promise-big:last-child { border-right: none !important; } }
.sp-pb-icon  { font-size: 1.8rem; margin-bottom: 8px; }
.sp-pb-title { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.sp-pb-desc  { font-size: .72rem; color: #94a3b8; }

/* ── Gallery grid ── */
.sp-gallery-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
@media (min-width:480px) { .sp-gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width:768px) { .sp-gallery-grid { grid-template-columns: repeat(4,1fr); gap: 12px; } }
.sp-gallery-item {
  aspect-ratio: 1; overflow: hidden; border-radius: var(--radius);
  position: relative; display: block; background: var(--bg-alt);
  transition: transform var(--transition);
}
.sp-gallery-item:hover { transform: scale(1.02); }
.sp-gallery-item:hover .sp-gallery-overlay { opacity: 1; }
.sp-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sp-gallery-item:hover img { transform: scale(1.08); }
.sp-gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,85,165,.5); opacity: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; transition: opacity var(--transition);
}

/* ── Process steps (product) ── */
.sp-steps { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
@media (min-width:768px) { .sp-steps { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: start; } }
.sp-step {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 18px; text-align: center;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.sp-step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.sp-step-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--bg);
}
.sp-step-icon { font-size: 2rem; margin: 8px 0 10px; }
.sp-step h3 { font-size: .92rem; font-weight: 700; color: var(--bg-dark); margin-bottom: 6px; }
.sp-step p  { font-size: .78rem; color: var(--muted); line-height: 1.55; margin: 0; }
.sp-step-arrow { color: var(--primary); font-size: 1.4rem; text-align: center; padding-top: 16px; display: none; }
@media (min-width:768px) { .sp-step-arrow { display: block; } }

/* ── Content + sidebar ── */
.sp-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  width: 100%;
}
@media (min-width:900px)  { .sp-content-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 40px; } }
@media (min-width:1100px) { .sp-content-layout { grid-template-columns: minmax(0,1fr) 300px; } }
.sp-content-layout > * { min-width: 0; }
.sp-content-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }

/* ── FAQ ── */
.sp-faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.sp-faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 14px 18px; min-height: 52px;
  background: var(--bg); border: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--bg-dark);
  transition: background var(--transition);
}
.sp-faq-q:hover { background: var(--bg-alt); }
.sp-faq-q[aria-expanded="true"] { background: var(--primary-light); color: var(--primary); }
.faq-icon { font-size: 1.2rem; font-weight: 400; flex-shrink: 0; transition: transform var(--transition); color: var(--primary); }
.sp-faq-a { padding: 14px 18px; background: var(--bg-alt); border-top: 1px solid var(--border); }
.sp-faq-a p { font-size: .88rem; color: var(--text-light); line-height: 1.7; margin: 0; }

/* ── Consultant card ── */
.sp-consultant-card { background: var(--bg); border: 2px solid var(--primary); border-radius: 14px; padding: 22px; }
.sp-consultant-header { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sp-consultant-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),#0077cc);
  color: #fff; font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sp-consultant-name { font-weight: 700; font-size: .95rem; color: var(--bg-dark); }
.sp-consultant-role { font-size: .76rem; color: var(--muted); }
.sp-consultant-status { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--success); font-weight: 600; margin-top: 3px; }
.sp-online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.sp-consultant-msg { font-size: .82rem; color: var(--text-light); font-style: italic; background: var(--bg-alt); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; line-height: 1.6; }
.sp-consultant-actions { display: flex; flex-direction: column; gap: 8px; }
.sp-consultant-info { font-size: .76rem; color: var(--muted); margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }

/* ── Quote form section ── */
.sp-quote-section { background: linear-gradient(135deg,#002d6b,var(--primary)); }
.sp-quote-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width:768px) { .sp-quote-grid { grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; } }
.sp-quote-left h2 { color: #fff; margin-bottom: 14px; }
.sp-quote-left p  { color: rgba(255,255,255,.85); font-size: .95rem; margin-bottom: 20px; }
.sp-quote-promise { display: flex; flex-direction: column; gap: 8px; }
.sp-quote-promise li { color: rgba(255,255,255,.9); font-size: .88rem; }
.sp-quote-form { background: var(--bg); border-radius: 14px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }

/* ── Related products ── */
.sp-related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (min-width:640px)  { .sp-related-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width:1024px) { .sp-related-grid { grid-template-columns: repeat(6,1fr); gap: 16px; } }
.sp-related-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow var(--transition), transform var(--transition); display: flex; flex-direction: column; }
.sp-related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.sp-related-thumb { aspect-ratio: 1; overflow: hidden; background: var(--bg-alt); }
.sp-related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sp-related-card:hover .sp-related-thumb img { transform: scale(1.06); }
.sp-related-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.sp-related-body h3 { font-size: .82rem; font-weight: 700; color: var(--bg-dark); margin-bottom: 5px; line-height: 1.3; }
.sp-related-price { font-size: .8rem; font-weight: 700; color: var(--danger); }

/* Print */
@media print {
  .topbar,.float-cta,#site-header,.mobile-nav,.sidebar,#site-footer,.cta-section { display:none!important; }
  body { font-size:12pt; color:#000; }
  a { color:#000; }
  .entry-content a::after { content:" (" attr(href) ")"; font-size:.8em; color:#555; }
}


/* ================================================================
   SVG ICON SYSTEM
   ================================================================ */

/* Base icon */
.icon {
  display: inline-flex;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Icon in topbar */
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item .icon { opacity: .8; }

/* USP icons */
.usp-svg {
  color: #fff;
  opacity: .9;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Service card icons */
.service-thumb { position: relative; }
.service-svg {
  color: var(--primary);
  opacity: .75;
}
.s1 .service-svg { color: #1d4ed8; }
.s2 .service-svg { color: #0369a1; }
.s3 .service-svg { color: #15803d; }
.s4 .service-svg { color: #b45309; }
.s5 .service-svg { color: #be185d; }
.s6 .service-svg { color: #92400e; }
.s7 .service-svg { color: #6d28d9; }
.s8 .service-svg { color: #0e7490; }

/* Why us icon background */
.why-icon-bg { color: rgba(255,255,255,.15); }

/* Why us icon in circle */
.why-icon svg { color: var(--primary); }

/* Step icons */
.step-num svg { color: #fff; }

/* Star rating icons */
.star-icon { color: #f59e0b; display:inline-block !important; vertical-align:middle; }

/* Footer icon */
.icon-muted { color: #6b7280; }
.footer-col ul li a { align-items: flex-start; gap: 8px; }
.footer-col ul li a .icon { margin-top: 2px; flex-shrink: 0; }

/* CTA box icons */
.cta-box h4 { display: flex; align-items: center; gap: 8px; }
.cta-box h4 svg { opacity: .8; }

/* Hotline badge */
.hotline-badge { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* Consultant card icons */
.sp-consultant-actions svg { flex-shrink: 0; }

/* Button icons */
.btn svg { flex-shrink: 0; }

/* Contact widget icons */
.contact-w-item .icon { color: rgba(255,255,255,.7); margin-top: 2px; }

/* Read more arrow */
.read-more svg { transition: transform var(--transition); }
.read-more:hover svg { transform: translateX(4px); }

/* Search button */
.search-form button svg { color: #fff; }

/* Mobile CTA icons */
.mobile-cta .btn svg { flex-shrink: 0; }

/* ================================================================
   RELATED PRODUCTS — 5 cards, professional UI
   ================================================================ */
.rp-section { background: var(--bg-alt); }

/* Header row */
.rp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.rp-title { font-size: clamp(1.2rem,3vw,1.6rem); font-weight: 800; color: var(--bg-dark); margin-bottom: 8px; }
.rp-view-all { white-space: nowrap; }

/* 5-column grid */
.rp-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width:580px)  { .rp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width:900px)  { .rp-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width:1100px) { .rp-grid { grid-template-columns: repeat(5, 1fr); } }

/* Card */
.rp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  position: relative;
}
.rp-card:hover {
  box-shadow: 0 8px 32px rgba(0,85,165,.14);
  transform: translateY(-5px);
  border-color: var(--primary);
}

/* Thumbnail */
.rp-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.rp-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.rp-card:hover .rp-img { transform: scale(1.07); }

/* No image fallback */
.rp-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-alt), var(--primary-light));
  color: var(--primary);
}

/* Hover overlay */
.rp-overlay {
  position: absolute; inset: 0;
  background: rgba(0,85,165,.72);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .28s ease;
}
.rp-card:hover .rp-overlay { opacity: 1; }
.rp-view-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff;
  color: var(--primary);
  font-size: .78rem; font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transform: translateY(6px);
  transition: transform .28s ease;
  white-space: nowrap;
}
.rp-card:hover .rp-view-btn { transform: translateY(0); }

/* Badges */
.rp-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.rp-badge { font-size: .62rem; font-weight: 800; padding: 2px 8px; border-radius: 100px; letter-spacing: .04em; }
.rp-badge-sale { background: #ef4444; color: #fff; }
.rp-badge-out  { background: #6b7280; color: #fff; }

/* Body */
.rp-body {
  padding: 12px 14px 16px;
  flex: 1; display: flex; flex-direction: column; gap: 4px;
}
@media (min-width:768px) { .rp-body { padding: 14px 16px 18px; } }

.rp-cat {
  font-size: .65rem; font-weight: 700;
  color: var(--primary); text-transform: uppercase;
  letter-spacing: .05em;
}
.rp-name {
  font-size: .85rem; font-weight: 700;
  color: var(--bg-dark); line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .22s ease;
}
@media (min-width:768px) { .rp-name { font-size: .9rem; } }
.rp-card:hover .rp-name { color: var(--primary); }

.rp-price {
  font-size: .88rem; font-weight: 800;
  color: var(--danger);
  margin-top: auto; padding-top: 6px;
}
.rp-price del { font-size: .76rem; color: var(--muted); font-weight: 400; margin-left: 4px; }
.rp-price-contact { color: var(--primary); font-size: .83rem; }

/* Touch devices */
@media (hover: none) {
  .rp-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .rp-overlay { display: none; }
}
