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

/* ── TOKENS ──
   Bảng màu tối giản, đơn sắc xanh dương — nhận diện thương hiệu tập đoàn.
   Chỉ còn 1 họ màu chính (xanh) + trung tính xám; đỏ/vàng trang trí đã bỏ.
   success/danger giữ nguyên vì là màu chức năng (còn hàng / lỗi), không phải màu thương hiệu. */
:root {
  --primary:       #0055a5;
  --primary-dark:  #003d7a;
  --primary-light: #e8f1fb;
  --accent:        #0077cc;
  --accent2:          #64748b;   /* xám xanh — thay cho vàng, dùng làm điểm nhấn phụ trung tính */
  --accent2-dark:     #475569;
  --accent2-light:    #eef1f5;
  --accent-deep:        #003d7a;  /* thay cho đỏ — xanh navy đậm, dùng cho điểm nhấn mạnh */
  --accent-deep-dark:   #00295a;
  --highlight:     #7dc4f2;       /* xanh sáng — thay #ffd700, dùng làm điểm nhấn trên nền tối */
  --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;
  --gradient-neutral: linear-gradient(135deg,#94a3b8,var(--accent2) 55%,var(--accent2-dark));
  --gradient-brand:   linear-gradient(120deg,var(--primary-dark),var(--accent) 60%,var(--accent2));
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; max-width: 100%; overflow-x: hidden; }
body  { font-family: var(--font); line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; max-width: 100%; overflow-x: hidden; }
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; }
ins { text-decoration: none; } /* WooCommerce dùng <ins> bọc giá — bỏ gạch chân mặc định của trình duyệt */

/* ── 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: 36px 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-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 8px;
}
.section-kicker::before { content:''; width: 16px; height: 2px; background: var(--accent2); border-radius: 2px; }
.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(--gradient-brand); border-radius: 2px; margin: 10px 0 0; }
.divider-line.center { margin: 10px auto 0; }
.section-more { text-align: center; margin-top: 36px; }

/* ── 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(--accent2); color: #fff !important; border-color: var(--accent2); }
.btn-gold:hover     { background: var(--accent2-dark); border-color: var(--accent2-dark); }
.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:16px; right:12px; z-index:9000; display:flex; flex-direction:column; gap:10px; align-items:flex-end; }
@media (min-width:768px) { .float-cta { bottom:26px; right:22px; gap:12px; } }

/* Nút liên hệ dạng viên thuốc (pill) — icon + số điện thoại luôn hiển thị, không cần hover */
.float-btn {
  display:flex; align-items:center; gap:0;
  text-decoration:none; border-radius:100px;
  border:2px solid rgba(255,255,255,.9);
  box-shadow:0 8px 22px rgba(0,0,0,.28);
  transition:transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color:transparent;
}
.float-btn:hover { transform:translateY(-2px) scale(1.03); box-shadow:0 12px 28px rgba(0,0,0,.34); }
.float-icon {
  width:46px; height:46px; min-width:46px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff; flex-shrink:0; position:relative; z-index:1;
}
@media (min-width:768px) { .float-icon { width:52px; height:52px; min-width:52px; } }
.float-label {
  color:#fff; font-size:.78rem; font-weight:800; letter-spacing:.01em;
  padding:0 16px 0 10px; white-space:nowrap;
}
@media (min-width:768px) { .float-label { font-size:.84rem; padding:0 18px 0 12px; } }

.float-zalo  { background:linear-gradient(135deg,#2196ff,#0068ff); } /* xanh thương hiệu Zalo, làm sáng hơn để nổi bật */
.float-phone { background:linear-gradient(135deg,#0d8bff,var(--primary)); }
.float-zalo  .float-icon,
.float-phone .float-icon { background:rgba(255,255,255,.3); box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.5); }


/* Màn hình rất nhỏ: thu gọn còn icon tròn để không choán chỗ, số điện thoại xem trong topbar/header */
@media (max-width:359px) {
  .float-label { display:none; }
  .float-icon  { width:48px; height:48px; min-width:48px; }
}

/* ================================================================
   TOPBAR
   ================================================================ */
.topbar { background:var(--primary); color:rgba(255,255,255,.9); font-size:.76rem; padding:6px 0; display:none; border-bottom:2px solid var(--accent2); }
@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
   ───────────────────────────────────────── */
.header-menu-row { display: none; border-top: 1px solid var(--border); background: var(--bg-alt); }
@media (min-width:1024px) { .header-menu-row { display: block; } }

.main-nav { display: none; align-items: center; gap: 4px; height: 46px; }
@media (min-width:1024px) { .main-nav { display: flex; } }

.nav-home-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius);
  color: var(--primary); background: var(--primary-light);
  flex-shrink: 0; margin-right: 6px; transition: background var(--transition), color var(--transition);
}
.nav-home-btn:hover { background: var(--primary); color: #fff; }

/* 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; } }
.header-cta-zalo { display: none; }
@media (min-width:768px) { .header-cta-zalo { display: inline-flex; } }

/* Giỏ hàng trên header */
.header-cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--bg-dark); background: var(--bg-alt);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.header-cart-btn:hover { background: var(--primary-light); color: var(--primary); }
.header-cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 100px;
  background: var(--accent-deep); color: #fff; font-size: .65rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; box-shadow: 0 0 0 2px var(--bg);
}
.header-cart-count.is-empty { display: none; }

/* ── SEARCH TOGGLE + DROPDOWN ── */
.header-search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-alt); color: var(--bg-dark); border: none; cursor: pointer;
  transition: background var(--transition), color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.header-search-toggle:hover,
.header-search-toggle.active { background: var(--primary-light); color: var(--primary); }

/* Ô tìm kiếm ngang hàng với logo — chỉ hiện từ desktop trở lên, đủ chỗ.
   Trên màn nhỏ vẫn dùng nút toggle + ô sổ xuống như cũ để không bị chật. */
.header-inline-search { display: none; }
@media (min-width:1024px) {
  .header-inline-search {
    display: flex; align-items: stretch; gap: 8px; flex: 1 1 auto;
    max-width: 380px; margin: 0 8px;
  }
  .header-inline-search input[type="search"] {
    flex: 1; height: 42px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: .85rem; font-family: inherit; color: var(--text); background: var(--bg-alt); outline: none;
    transition: border-color var(--transition), background var(--transition);
  }
  .header-inline-search input[type="search"]:focus { border-color: var(--primary); background: var(--bg); }
  .header-inline-search button {
    width: 42px; height: 42px; border-radius: var(--radius); border: none; flex-shrink: 0;
    background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background var(--transition);
  }
  .header-inline-search button:hover { background: var(--primary-dark); }
  /* Đã có ô tìm kiếm ngang hàng logo — ẩn nút toggle + ô sổ xuống trên desktop */
  .header-search-toggle, .header-search-box { display: none; }
}

.header-search-box {
  max-height: 0; overflow: hidden; background: var(--bg);
  border-bottom: 0 solid var(--border);
  transition: max-height var(--transition), border-color var(--transition);
}
.header-search-box.open { max-height: 90px; border-bottom-width: 1px; }
.header-search-box .container { padding-top: 14px; padding-bottom: 14px; }
.header-search-form { display: flex; align-items: stretch; gap: 8px; max-width: 480px; }
.header-search-form input[type="search"] {
  flex: 1; height: 44px; padding: 0 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .88rem; font-family: inherit; color: var(--text); background: var(--bg-alt); outline: none;
  transition: border-color var(--transition);
}
.header-search-form input[type="search"]:focus { border-color: var(--primary); background: var(--bg); }
.header-search-form button {
  width: 44px; height: 44px; border-radius: var(--radius); border: none; flex-shrink: 0;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition);
}
.header-search-form button:hover { background: var(--primary-dark); }

/* Ô tìm kiếm mobile — trong menu trượt */
.mobile-search-form { display: flex; align-items: stretch; gap: 8px; padding: 14px 20px 4px; }
.mobile-search-form input[type="search"] {
  flex: 1; height: 42px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .86rem; font-family: inherit; color: var(--text); background: var(--bg-alt); outline: none;
}
.mobile-search-form input[type="search"]:focus { border-color: var(--primary); }
.mobile-search-form button {
  width: 42px; height: 42px; border-radius: var(--radius); border: none; flex-shrink: 0;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ── 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:var(--bg-alt); border-bottom:1px solid var(--border); padding:12px 0; }
/* H1 vẫn còn trong mã nguồn (tốt cho SEO) nhưng ẩn khỏi màn hình — breadcrumb
   mỏng là đủ, không cần khối tiêu đề lớn phía trên mỗi trang. */
.page-header h1 {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.page-header-desc { color:var(--text-light); margin:4px 0 6px; max-width:600px; font-size:.85rem; }

.breadcrumb { margin-top: 0; }
.breadcrumb-list {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0; list-style: none; margin: 0; padding: 0;
  font-size: .8rem;
}
.breadcrumb-item { display: flex; align-items: center; }
.breadcrumb-item a {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}
.breadcrumb-home { opacity: .85; }
.breadcrumb-item a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item a:hover::after { transform: scaleX(1); }
.breadcrumb-sep {
  display: inline-flex; align-items: center;
  color: var(--border);
  margin: 0 6px;
}
.breadcrumb-item [aria-current] {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ================================================================
   HERO SLIDER
   ================================================================ */
.hero-slider { position:relative; overflow:hidden; }
.hero-slides { display:grid; }

.hero-slide {
  grid-area: 1 / 1;
  color:#fff; padding:56px 0 44px; position:relative; overflow:hidden;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .6s ease;
}
.hero-slide.is-active { opacity:1; visibility:visible; pointer-events:auto; z-index:1; }
@media (min-width:1024px) { .hero-slide { padding:96px 0 72px; } }

.hero-slide-1 { background:var(--primary); }
.hero-slide-2 { background:var(--accent2-dark); }
.hero-slide-3 { background:var(--bg-dark); }
.hero-slide-4 { background:var(--accent-deep); }

.hero-slide-inner { position:relative; z-index:1; max-width:640px; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; padding:5px 14px 5px 10px; background:rgba(255,255,255,.14); border:1px solid rgba(125,196,242,.5); border-radius:100px; font-size:.74rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; margin-bottom:16px; }
.hero-badge::before { content:''; width:8px; height:8px; border-radius:50%; background:var(--highlight); box-shadow:0 0 0 3px rgba(125,196,242,.25); flex-shrink:0; }
.hero-slide h1 { color:#fff; margin-bottom:14px; }
.hero-slide h1 em { font-style:normal; color:var(--highlight); }
.hero-slide p { color:rgba(255,255,255,.88); font-size:.97rem; margin-bottom:28px; }
@media (min-width:768px) { .hero-slide p { font-size:1.05rem; max-width:520px; } }
.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); }

/* Arrows */
.hero-arrow {
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.3);
  display:flex; align-items:center; justify-content:center;
  transition:background var(--transition), transform var(--transition);
}
.hero-arrow:hover { background:rgba(255,255,255,.28); }
.hero-arrow-prev { left:12px; }
.hero-arrow-next { right:12px; }
@media (min-width:768px) { .hero-arrow { width:46px; height:46px; } .hero-arrow-prev { left:24px; } .hero-arrow-next { right:24px; } }
@media (max-width:539px) { .hero-arrow { display:none; } }

/* Dots */
.hero-dots { position:absolute; left:0; right:0; bottom:16px; z-index:5; display:flex; justify-content:center; gap:8px; }
@media (min-width:768px) { .hero-dots { bottom:24px; } }
.hero-dot { width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.4); border:none; padding:0; transition:all var(--transition); }
.hero-dot.is-active { width:24px; border-radius:100px; background:var(--accent2); }

/* Stats bar dưới slider */
.hero-stats-bar { background:var(--bg-dark); padding:22px 0; }
.hero-stats { display:grid; grid-template-columns:repeat(2,1fr); gap:18px 16px; }
.hstat-num   { font-size:1.5rem; font-weight:800; color:var(--highlight); 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.7rem; } .hero-stats { grid-template-columns:repeat(4,1fr); gap:20px; } }

/* ================================================================
   DANH MỤC SẢN PHẨM (trang chủ)
   ================================================================ */
.cat-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
@media (min-width:560px)  { .cat-grid { grid-template-columns:repeat(3,1fr); } }
@media (min-width:900px)  { .cat-grid { grid-template-columns:repeat(5,1fr); } }
.cat-card {
  display:flex; flex-direction:column; 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);
}
.cat-card:hover { border-color:var(--primary); }
.cat-card-media { aspect-ratio:1; background:var(--bg-alt); overflow:hidden; }
.cat-card-media img { width:100%; height:100%; object-fit:cover; }
.cat-card-icon { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#fff; }
.cat-chip-1 { background:var(--primary-dark); }
.cat-chip-2 { background:var(--accent2); }
.cat-chip-3 { background:var(--accent); }
.cat-chip-4 { background:var(--accent2-dark); }
.cat-card-body { padding:12px 14px; text-align:center; }
.cat-card-body h3 { font-size:.86rem; font-weight:700; color:var(--bg-dark); line-height:1.35; margin-bottom:3px; }
.cat-card-count { font-size:.72rem; color:var(--muted); }

/* ================================================================
   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; }

/* ================================================================
   TRANG CHÍNH SÁCH (chính sách bảo mật / vận chuyển / đổi trả / bảo hành / điều khoản)
   ================================================================ */
.policy-layout { display:grid; grid-template-columns:1fr; gap:32px; align-items:start; }
@media (min-width:900px) { .policy-layout { grid-template-columns:minmax(0,1fr) 280px; gap:40px; } }
.policy-layout > * { min-width:0; }
.policy-main h2 { margin-top:1.9rem; }
.policy-main h2:first-child { margin-top:0; }
.policy-contact-box {
  display:flex; gap:14px; align-items:flex-start; margin-top:2.2rem;
  background:var(--primary-light); border-left:4px solid var(--primary);
  border-radius:0 var(--radius) var(--radius) 0; padding:16px 18px;
}
.policy-contact-box .icon { color:var(--primary); flex-shrink:0; margin-top:2px; }
.policy-contact-box strong { display:block; margin-bottom:4px; color:var(--primary-dark); }
.policy-contact-box p { margin:0; font-size:.86rem; color:var(--text); }
.policy-contact-box a { color:var(--primary); font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.policy-nav-list li { margin-bottom:2px; }
.policy-nav-list li a {
  display:flex; align-items:center; gap:9px; padding:9px 4px; font-size:.83rem;
  color:var(--text); border-bottom:1px solid var(--border); transition:color var(--transition);
}
.policy-nav-list li:last-child a { border-bottom:none; }
.policy-nav-list li a:hover { color:var(--primary); }

/* ── Placeholder icon (khi sản phẩm/bài viết chưa có ảnh) ── */
.thumb-placeholder { color: var(--primary); }
.thumb-placeholder svg { opacity: .32; }

.home-post-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; }

/* ── 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; }
.cat-desc-box { margin-top:36px; padding-top:28px; border-top:1px solid var(--border); }
.cat-found-count { color:var(--muted); font-size:.82rem; margin-bottom:20px; }
.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; }
/* Mobile: hiện lưới sản phẩm trước, bộ lọc danh mục xuống dưới */
@media (max-width:899px) {
  .product-layout > main   { order: 1; }
  .product-layout > .shop-sidebar { order: 2; margin-top: 8px; }
}
/* Danh mục không cần sidebar (vd: Standee) — main chiếm trọn chiều rộng */
.product-layout.no-sidebar { grid-template-columns: 1fr; }
@media (min-width:900px)  { .product-layout.no-sidebar { grid-template-columns: 1fr; } }
@media (min-width:1100px) { .product-layout.no-sidebar { grid-template-columns: 1fr; } }

/* 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; }
/* Lưới rộng hơn khi không có sidebar — tận dụng chiều ngang */
@media (min-width:900px)  { .product-grid.product-grid-wide { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width:1100px) { .product-grid.product-grid-wide { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* Product card */
.product-card { background:var(--bg); border:1px solid var(--border); border-radius:14px; overflow:hidden; transition:box-shadow var(--transition), transform var(--transition), border-color var(--transition); display:flex; flex-direction:column; position:relative; }
.product-card:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); border-color:var(--primary-light); }
.product-thumb { aspect-ratio:1; overflow:hidden; background:var(--bg-alt); flex-shrink:0; }
.product-thumb-portrait { aspect-ratio:3/4; }
.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:.95rem; font-weight:800; color:var(--primary-dark); margin-top:auto; padding-top:8px; display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.product-price .original { text-decoration:line-through; color:var(--muted); font-weight:400; font-size:.78rem; margin-left:6px; }
.product-price del { order:2; text-decoration:line-through; color:var(--muted); font-weight:400; font-size:.76rem; }
.product-price del .woocommerce-Price-amount { color:inherit; }
.product-price ins { order:1; text-decoration:none; color:var(--primary-dark); font-weight:800; }
.product-price-contact { color:var(--muted); font-weight:400; }
.product-stock { display:block; font-size:.7rem; font-weight:600; margin-top:3px; }
.product-badge { position:absolute; top:10px; left:10px; z-index:2; }
.product-actions { padding:10px 14px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:6px; }
.product-actions .btn { width:100%; font-size:.8rem; }
.product-actions .added_to_cart { display:block; text-align:center; font-size:.75rem; margin-top:4px; }

/* 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; }
.shop-cats-empty { font-size:.83rem; color:var(--muted); margin:0; }

/* Trang danh mục sản phẩm (taxonomy-product_cat.php) */
.tax-desc-box {
  margin-top:40px; padding-top:32px; border-top:1px solid var(--border);
}
.shop-toolbar {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
  gap:12px; margin-bottom:24px; padding:12px 16px; font-size:.85rem; color:var(--muted);
  background:var(--bg-alt); border-radius:var(--radius);
}
.shop-toolbar select {
  border:1px solid var(--border); border-radius:var(--radius); padding:6px 12px;
  font-size:.83rem; color:var(--text); background:var(--bg); cursor:pointer;
}
.shop-empty { text-align:center; padding:60px 0; }
.shop-empty-icon { color:var(--primary); opacity:.35; margin-bottom:16px; display:flex; justify-content:center; }
.shop-empty p { color:var(--muted); margin-bottom:24px; }

/* ================================================================
   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;
}
/* !important để ép qua width/style cũ mà WordPress chèn thẳng vào nội dung
   (Classic Editor, [caption]…) — nguyên nhân chính khiến ảnh tràn khung trên mobile */
.entry-content img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 1.4rem auto;
  border-radius: var(--radius);
  box-sizing: border-box !important;
}
@media (min-width:640px) { .entry-content img { max-width: 800px !important; } }
.entry-content figure,
.entry-content .wp-caption {
  max-width: 100% !important;
  width: auto !important;
  margin: 1.4rem auto !important;
}
@media (min-width:640px) {
  .entry-content figure,
  .entry-content .wp-caption { max-width: 800px !important; }
}
.entry-content .wp-caption-text { font-size:.78rem; color:var(--muted); text-align:center; padding:6px 8px; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 {
  font-size:clamp(1.15rem,3vw,1.45rem); margin-top:2.4rem; padding-left:14px;
  border-left:4px solid var(--primary); line-height:1.35;
}
.entry-content h2 + * { margin-top:.9rem; }
.entry-content h3 {
  font-size:1.05rem; margin-top:1.7rem; padding-left:14px;
  position:relative; color:var(--bg-dark);
}
.entry-content h3::before {
  content:''; position:absolute; left:0; top:.42em; width:6px; height:6px;
  border-radius:50%; background:var(--accent);
}
.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 a { color:var(--primary); text-decoration:underline; text-underline-offset:2px; }

/* ── Bảng giá / bảng thông số — đẹp trên desktop, dạng thẻ trên mobile ──
   Dùng chung cho mọi nơi có bảng trong nội dung: bài viết, trang tĩnh, mô tả sản phẩm.
   !important vì nội dung dán từ Excel/Google Sheets luôn kèm inline style
   (width, border, background cố định theo pixel/point) đè lên CSS thường. */
.entry-content table,
.sp-short-desc table,
.page-article table {
  width: 100% !important; max-width: 100% !important; height: auto !important;
  margin: 1.6rem 0 !important; border-collapse: separate !important; border-spacing: 0 !important;
  border-radius: var(--radius-lg); border: 1px solid var(--border) !important;
  overflow: hidden; box-shadow: var(--shadow-sm); table-layout: auto !important;
}
.entry-content th, .sp-short-desc th, .page-article th {
  background: var(--gradient-brand) !important; color: #fff !important;
  padding: 12px 16px !important; text-align: left !important; font-size: .84rem !important; font-weight: 700 !important;
  letter-spacing: .01em; white-space: nowrap; width: auto !important; height: auto !important;
  border: none !important; font-family: inherit !important;
}
.entry-content td, .sp-short-desc td, .page-article td {
  padding: 11px 16px !important; border: none !important; border-bottom: 1px solid var(--border) !important;
  font-size: .88rem !important; vertical-align: middle !important; color: var(--text) !important;
  background: var(--bg) !important; width: auto !important; height: auto !important; font-family: inherit !important;
}
.entry-content tr:last-child td, .sp-short-desc tr:last-child td, .page-article tr:last-child td { border-bottom: none !important; }
.entry-content tbody tr:nth-child(even) td,
.sp-short-desc tbody tr:nth-child(even) td,
.page-article tbody tr:nth-child(even) td { background: var(--bg-alt) !important; }
.entry-content tbody tr:hover td,
.sp-short-desc tbody tr:hover td,
.page-article tbody tr:hover td { background: var(--accent2-light) !important; }
/* Excel/Sheets hay bọc nội dung ô trong <p>/<span> có margin riêng — bỏ để không lệch dòng */
.entry-content td p, .sp-short-desc td p, .page-article td p { margin: 0 !important; }

/* Mobile: chuyển mỗi hàng thành 1 thẻ — dễ đọc hơn cuộn ngang.
   JS (main.js) tự gắn data-label lên từng ô dựa theo tiêu đề cột. */
@media (max-width:640px) {
  table.vietadv-table-responsive { display: block; border: none; box-shadow: none; border-radius: 0; }
  .vietadv-table-responsive thead { display: none; }
  .vietadv-table-responsive tbody { display: block; }
  .vietadv-table-responsive tr {
    display: block; margin-bottom: 12px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  }
  .vietadv-table-responsive tbody tr:nth-child(even) td { background: transparent; }
  .vietadv-table-responsive td {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    text-align: right; padding: 9px 14px; border-bottom: 1px solid var(--border);
    white-space: normal;
  }
  .vietadv-table-responsive td:last-child { border-bottom: none; }
  .vietadv-table-responsive td::before {
    content: attr(data-label);
    font-weight: 700; color: var(--bg-dark); text-align: left; margin-right: auto;
    font-size: .78rem;
  }
  /* Bảng chưa được JS xử lý (data-label rỗng) — fallback cuộn ngang an toàn */
  .entry-content table:not(.vietadv-table-responsive),
  .sp-short-desc table:not(.vietadv-table-responsive),
  .page-article table:not(.vietadv-table-responsive) {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0;
  }
}
.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 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:16px; padding-bottom:11px; position:relative; border-bottom:1px solid var(--border);
}
.widget-title::after { content:''; position:absolute; left:0; bottom:-1px; width:30px; height:2px; background:var(--primary); border-radius:2px; }
.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); }

/* Thumbnail recent-post list (dùng chung cho sidebar.php & single.php) */
.widget-recent-list { display:flex; flex-direction:column; gap:0; }
.widget-recent-item { display:flex; align-items:flex-start; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.widget-recent-item:last-child { padding-bottom:0; border-bottom:none; }
.widget-recent-thumb { flex-shrink:0; width:60px; height:60px; border-radius:6px; overflow:hidden; display:block; background:var(--bg-alt); }
.widget-recent-thumb img { width:100%; height:100%; object-fit:cover; }
.widget-recent-info { display:flex; flex-direction:column; gap:4px; min-width:0; }
.widget-recent-title { font-size:.82rem; font-weight:600; color:var(--bg-dark); line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.widget-recent-title:hover { color:var(--primary); }
.widget-recent-date { font-size:.72rem; color:var(--muted); }

/* Contact widget */
.widget-contact { background:linear-gradient(135deg,var(--primary-dark),var(--primary)); border-color:var(--primary); }
.widget-contact .widget-title { color:#fff; border-bottom-color:rgba(255,255,255,.3); }
.widget-contact .widget-title::after { background:#fff; }
.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; }
.contact-w-item a { color:#fff; font-weight:700; display:block; }
.contact-w-item a.contact-w-secondary { color:rgba(255,255,255,.88); font-weight:400; }
.contact-w-item small { color:rgba(255,255,255,.75); }
.contact-w-item .contact-w-email { color:rgba(255,255,255,.85); font-size:.78rem; font-weight:400; word-break:break-all; }
.widget-contact-btn { width:100%; justify-content:center; margin-top:14px; background:#fff; color:var(--primary)!important; font-size:.8rem; min-height:40px; }

/* Tag cloud wrapper */
.tag-cloud { display:flex; flex-wrap:wrap; gap:7px; }

/* ================================================================
   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; }

/* ================================================================
   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:var(--border); }
.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); 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:var(--border); }
  .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);
  position: relative; overflow: hidden;
  padding:64px 0; text-align:center;
}
@media (min-width:768px) { .cta-section { padding:80px 0; } }
.cta-section .container { position: relative; z-index: 1; }
.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(--accent2); 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:var(--primary); 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; border-radius:var(--radius-lg); }
.why-heading { margin-bottom:28px; }
.why-list { display:flex; flex-direction:column; gap:18px; }
.why-item { display:flex; gap:14px; align-items:flex-start; }
.why-icon { width:48px; height:48px; min-width:48px; border-radius:12px; 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 { border-color:var(--primary); }
.service-card-link { display:block; text-decoration:none; color:inherit; cursor:pointer; }
.service-body h3 a { color:inherit; text-decoration:none; }
.service-card:hover .service-body h3 a { color:var(--primary); }
.service-actions { padding:0 16px 16px; display:flex; flex-direction:column; gap:6px; }
@media (min-width:768px) { .service-actions { padding:0 18px 18px; } }
.service-actions .btn { width:100%; font-size:.8rem; }
.service-actions .added_to_cart { display:block; text-align:center; font-size:.75rem; margin-top:2px; }

/* 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; display:block; }

/* 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(--danger); 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,#e2e8f0,#cbd5e1);}
.s4{background:linear-gradient(135deg,#eff6ff,#dbeafe);}
.s5{background:linear-gradient(135deg,#f1f5f9,#e2e8f0);}
.s6{background:linear-gradient(135deg,#dbeafe,#93c5fd);}
.s7{background:linear-gradient(135deg,#e0e7ff,#c7d2fe);}
.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:0; border-top:3px solid; border-image:var(--gradient-brand) 1; }

/* Thanh liên hệ nhanh trên cùng footer */
.footer-contact-bar { background:linear-gradient(135deg,#0f2440,#0a1628); border-bottom:1px solid rgba(255,255,255,.08); }
.footer-contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px 14px; padding:24px 0; }
@media (min-width:640px)  { .footer-contact-grid { grid-template-columns:repeat(4,1fr); padding:26px 0; } }
.footer-contact-item { display:flex; align-items:center; gap:12px; color:#e5e7eb; min-width:0; }
.footer-contact-item:hover { color:#fff; }
.footer-contact-item strong { display:block; color:#fff; font-size:.78rem; font-weight:700; }
.footer-contact-item span:last-child { font-size:.78rem; line-height:1.5; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.footer-contact-icon {
  width:42px; height:42px; min-width:42px; border-radius:50%;
  background:linear-gradient(135deg,var(--accent2),var(--accent2-dark));
  color:#0a1628; display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 12px rgba(0,85,165,.25);
}

.footer-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding:40px 0; }
@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:52px 0; } }
.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; color:#e5e7eb; }
.footer-tax-id { font-size:.75rem; color:#cbd5e1; margin-top:6px; }
.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:16px; padding-bottom:10px; position:relative;
}
.footer-col h4::after {
  content:''; position:absolute; left:0; bottom:0; width:28px; height:3px;
  border-radius:2px; background:var(--gradient-neutral);
}
.footer-col ul li { margin-bottom:9px; }
.footer-col ul li a { color:#e5e7eb; font-size:.82rem; transition:color var(--transition); display:flex; min-height:30px; align-items:center; }
.footer-col ul li a:hover { color:#fff; }
.footer-hours { color:#e5e7eb; font-size:.82rem; display:flex; min-height:30px; align-items:center; gap:8px; }
.social-links { display:flex; gap:9px; margin-top:16px; }
.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(--accent2); color:#0a1628; }
.footer-policy-links { border-top:1px solid rgba(255,255,255,.08); padding:16px 0; display:flex; flex-wrap:wrap; gap:8px 20px; }
.footer-policy-links a { font-size:.77rem; color:#e5e7eb; transition:color var(--transition); }
.footer-policy-links a:hover { 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:#cbd5e1; margin:0; }
.footer-bottom p a { color:#e5e7eb; font-weight:600; }
.footer-bottom p a:hover { color:#fff; }
.footer-bottom-right { display:flex; align-items:center; gap:10px; }
.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; position: relative; padding-bottom: 12px; }
.sp-page-title::after { content:''; position:absolute; left:0; bottom:0; width:44px; height:3px; border-radius:2px; background: var(--highlight); }

/* ── Hero grid ── */
.sp-hero { background: var(--bg); }
/* Rút ngắn khoảng cách giữa breadcrumb và nội dung sản phẩm */
.sp-hero.section-sm { padding-top: 20px; }
@media (min-width:768px) { .sp-hero.section-sm { padding-top: 26px; } }
.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,1fr) minmax(0,1fr); 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;
  overflow: hidden;
  /* Tỉ lệ khung ổn định — tránh ảnh nhỏ bị "lọt thỏm" giữa khoảng trắng lớn */
  aspect-ratio: 4 / 3;
  max-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Standee — khung vuông, to và cân đối với cột thông tin bên phải */
.sp-gallery-main.sp-gallery-portrait {
  aspect-ratio: 1 / 1;
  max-height: 600px;
}
.sp-main-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* hiện trọn vẹn ảnh, không bị cắt */
  object-position: center;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform .4s ease;
  cursor: zoom-in;
}
.sp-gallery-main:hover .sp-main-photo { transform: scale(1.03); }
.sp-gallery-main::after {
  content: ''; position: absolute; right: 14px; bottom: 14px; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23003d7a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; opacity: 0; transition: opacity var(--transition);
  pointer-events: none;
}
.sp-gallery-main:hover::after { opacity: 1; }
.sp-gallery-empty::after { display: none; }
.sp-gallery-empty:hover .sp-main-photo { transform: none; }
.sp-main-placeholder {
  width: 100%; height: 100%; min-height: 292px; padding: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  border: 1.5px dashed var(--border); border-radius: calc(var(--radius-lg) - 8px);
  background: var(--bg);
}
.sp-placeholder-badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-light); border: 1px solid rgba(0,85,165,.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.sp-placeholder-icon { color: var(--primary); opacity: .7; }
.sp-main-placeholder strong { font-size: .9rem; color: var(--bg-dark); font-weight: 700; }
.sp-main-placeholder span { font-size: .8rem; color: var(--muted); font-weight: 500; max-width: 260px; line-height: 1.5; }
.sp-sale-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--accent-deep);
  color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .03em;
  padding: 5px 14px; border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0,61,122,.3);
}
.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), box-shadow var(--transition);
  flex-shrink: 0;
}
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumb:hover { border-color: var(--accent2); transform: translateY(-2px); }
.sp-thumb.active { border-color: var(--accent2); box-shadow: 0 0 0 2px var(--accent2-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.25rem,3vw,1.85rem); line-height: 1.28; margin-bottom: 14px; letter-spacing: -.01em; }
.sp-price {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-size: clamp(1.5rem,3vw,1.9rem); font-weight: 800;
  color: var(--danger);
  margin-bottom: 16px; padding: 4px 0;
}
.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); }

/* Đánh giá sao — chỉ hiện khi có dữ liệu thật */
.sp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sp-rating-stars { display: inline-flex; gap: 2px; }
.sp-star-filled { color: #f59e0b; }
.sp-star-empty  { color: var(--border); }
.sp-rating-text { font-size: .82rem; color: var(--muted); font-weight: 600; }
/* Giá + chọn biến thể + thêm vào giỏ (form gốc WooCommerce) */
.sp-price-line { margin: 2px 0 14px; }
.sp-price-line .price { font-size: 1.6rem; font-weight: 800; color: var(--danger); }
.sp-price-line .price del { color: var(--muted); font-weight: 400; font-size: .62em; margin-right: 8px; }
.sp-price-line .price ins { text-decoration: none; }
.sp-add-to-cart .variations { width: 100%; border-collapse: collapse; margin-bottom: 14px; display: block; }
.sp-add-to-cart .variations tbody, .sp-add-to-cart .variations tr { display: block; }
.sp-add-to-cart .variations tr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.sp-add-to-cart .variations th.label { font-size: .84rem; font-weight: 700; color: var(--text); min-width: 100px; text-align: left; padding: 0; }
.sp-add-to-cart .variations td.value { flex: 1; min-width: 180px; padding: 0; }
.sp-add-to-cart .variations select {
  width: 100%; height: 44px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .88rem; font-family: inherit; color: var(--text); background: var(--bg); outline: none;
  transition: border-color var(--transition); appearance: auto;
}
.sp-add-to-cart .variations select:focus { border-color: var(--primary); }
.sp-add-to-cart .reset_variations { display: inline-block; margin-top: 6px; font-size: .78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.sp-add-to-cart .reset_variations:hover { color: var(--primary); }
.sp-add-to-cart .woocommerce-variation-price .price { font-size: 1.4rem; font-weight: 800; color: var(--danger); }
.sp-add-to-cart .woocommerce-variation-price { margin-bottom: 12px; }
.sp-add-to-cart .woocommerce-variation-availability { font-size: .82rem; margin-bottom: 10px; }
.sp-add-to-cart .woocommerce-variation-availability .stock { margin: 0; }
.sp-add-to-cart .woocommerce-variation-description p { font-size: .86rem; color: var(--text-light); margin: 0 0 12px; }
.sp-add-to-cart .single_variation_wrap { display: block; }
.sp-add-to-cart .woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sp-add-to-cart form.cart { margin-bottom: 8px; }

.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-short-desc p { margin: 0 0 8px; }
.sp-short-desc p:last-child { margin-bottom: 0; }
.sp-short-desc ul, .sp-short-desc ol { margin: 6px 0 4px; }
.sp-short-desc li {
  position: relative; padding-left: 24px; margin-bottom: 8px;
  list-style: none;
}
.sp-short-desc li:last-child { margin-bottom: 0; }
.sp-short-desc li::before {
  content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--gradient-brand);
}
/* --- Câu chuyện thương hiệu (13 năm giữ chữ TÂM) — hiện trên mọi sản phẩm --- */
.sp-brand-story {
  background: var(--bg-alt); border-radius: var(--radius-lg);
  padding: 18px 20px; margin-bottom: 18px;
}
.sp-brand-story-lead {
  font-weight: 800; font-size: .82rem; letter-spacing: .03em;
  color: var(--primary-dark); margin: 0 0 12px;
}
.sp-brand-story ul { margin: 0; padding: 0; list-style: none; }
.sp-brand-story li {
  position: relative; padding-left: 22px; margin-bottom: 9px;
  font-size: .86rem; line-height: 1.5; color: var(--text-light); font-weight: 600;
}
.sp-brand-story li:last-child { margin-bottom: 0; }
.sp-brand-story li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--primary);
  font-weight: 800;
}
/* Mobile: gọn khoảng cách để không bị loãng trên màn hình nhỏ */
@media (max-width:640px) {
  .sp-brand-story { padding: 14px 16px; margin-bottom: 14px; border-radius: var(--radius); }
  .sp-brand-story li { font-size: .82rem; margin-bottom: 7px; }
  .sp-price-line { margin: 0 0 10px; }
  .sp-price-line .price { font-size: 1.35rem; }
  .sp-short-desc { margin-bottom: 14px; padding-bottom: 14px; }
}

.sp-specs { margin-top: 14px; }
.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: 130px; 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; }

/* Giá tham khảo — card viền */
.sp-price-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.sp-price-card-label { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.sp-price-card .sp-price { margin-bottom: 4px; }
.sp-price-note { display: block; font-size: .76rem; color: var(--muted); margin-bottom: 4px; }

/* Đặt hàng online */
.sp-order-box {
  position: relative;
  background: linear-gradient(180deg, rgba(0,85,165,.06), var(--bg-alt) 40%);
  border: 1px solid rgba(0,85,165,.22); border-radius: var(--radius-lg);
  padding: 18px 16px 16px; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sp-order-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-brand);
}
.sp-order-label { display: flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 800; color: var(--bg-dark); margin-bottom: 12px; }
.sp-order-label .icon { color: var(--accent2); }
.sp-cta-divider { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sp-cta-divider::before, .sp-cta-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* 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; }

/* ── Yêu cầu báo giá (sidebar form) ── */
.sp-quote-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden; position: sticky; top: 88px;
}
.sp-quote-header {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; font-size: .84rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; padding: 14px 18px;
}
.sp-quote-form { padding: 16px 18px 4px; display: flex; flex-direction: column; gap: 12px; }
.sp-quote-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sp-quote-field { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--bg-dark); }
.sp-quote-field em { color: var(--danger); font-style: normal; }
.sp-quote-field input[type=text],
.sp-quote-field input[type=tel],
.sp-quote-field select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .84rem; font-family: inherit; color: var(--text); background: var(--bg);
  transition: border-color var(--transition);
}
.sp-quote-field input:focus, .sp-quote-field select:focus { outline: none; border-color: var(--primary); }
.sp-toggle-group { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-toggle-btn { position: relative; flex: 1; min-width: 78px; }
.sp-toggle-btn input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sp-toggle-btn span {
  display: block; text-align: center; padding: 8px 6px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .74rem; font-weight: 600; color: var(--text-light); transition: all var(--transition);
}
.sp-toggle-btn input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.sp-toggle-btn input:focus-visible + span { outline: 2px solid var(--accent2); outline-offset: 1px; }
.sp-quote-note { font-size: .72rem; color: var(--muted); line-height: 1.6; margin: 2px 0 4px; }
.sp-quote-submit { width: 100%; justify-content: center; margin-top: 4px; margin-bottom: 16px; }
.sp-quote-alt { text-align: center; font-size: .8rem; color: var(--muted); padding: 0 18px 18px; }
.sp-quote-alt a { color: var(--primary); font-weight: 700; }
.sp-quote-form .form-alert { margin-bottom: 4px; }
@media (max-width:1279px) { .sp-quote-card { position: static; max-width: 480px; } }

/* Form alert — dùng chung (đề phòng trang không load pages.css) */
.form-alert {
  display: flex; align-items: center; gap: 10px;
  font-size: .86rem; font-weight: 600; border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 20px;
}
.form-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form-alert-success .icon { color: var(--success); flex-shrink: 0; }
.form-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-alert-error .icon { color: var(--danger); flex-shrink: 0; }

/* Quick promise */
/* ── 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);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.sp-gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.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: linear-gradient(135deg, rgba(0,61,122,.6), rgba(0,119,204,.5));
  opacity: 0; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--transition);
}
.sp-gallery-overlay svg { width: 26px; height: 26px; }

/* ── Process steps (product) ── */
.sp-process-section { padding-top: 32px !important; }
@media (min-width:768px) { .sp-process-section { padding-top: 40px !important; } }
.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); border-color: var(--accent2-light); transform: translateY(-3px); }
.sp-step-icon-badge {
  position: relative;
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(0,85,165,.25);
}
.sp-step-badge-num {
  position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-deep); color: #fff; font-size: .68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}
.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); text-align: center; padding-top: 22px; display: none; }
.sp-step-arrow svg { display: block; margin: 0 auto; }
@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-main {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 18px;
}
@media (min-width:768px) { .sp-content-main { padding: 30px 32px; } }
.sp-content-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width:899px) { .sp-content-sidebar { position: static; } }

/* ── Tabs: Mô tả / Thông số / Quy cách / Hướng dẫn / Đánh giá ── */
.sp-tabs { margin-bottom: 8px; }
.sp-tabs-nav {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--border); margin-bottom: 22px;
}
.sp-tabs-nav::-webkit-scrollbar { display: none; }
.sp-tab-btn {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  padding: 12px 16px; font-size: .84rem; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.sp-tab-btn:hover { color: var(--primary); }
.sp-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.sp-tab-panel { animation: sp-tab-fade .25s ease; }
@keyframes sp-tab-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.sp-spec-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.sp-spec-table th, .sp-spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.sp-spec-table th { width: 200px; color: var(--muted); font-weight: 600; background: var(--bg-alt); }
.sp-spec-table td { color: var(--text); }
.sp-spec-table tr:last-child th, .sp-spec-table tr:last-child td { border-bottom: none; }
@media (max-width:479px) { .sp-spec-table th { width: 120px; } }
.sp-review-empty {
  text-align: center; padding: 36px 20px; background: var(--bg-alt); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.sp-review-empty .icon { color: var(--primary); }
.sp-review-empty p { max-width: 480px; font-size: .88rem; color: var(--text-light); line-height: 1.7; margin: 0; }

/* Checklist dạng tick xanh trong nội dung tab (mô tả/quy cách/hướng dẫn) */
.sp-tab-panel .entry-content ul li {
  list-style: none; position: relative; padding-left: 28px; margin-bottom: 10px;
}
.sp-tab-panel .entry-content ul li::before {
  content: ''; position: absolute; left: 0; top: .15em; width: 18px; height: 18px;
  border-radius: 50%; background: var(--success);
}
.sp-tab-panel .entry-content ul li::after {
  content: ''; position: absolute; left: 5px; top: .5em; width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}

/* ── FAQ ── */
.sp-faq { margin-top: 48px; }
.sp-faq-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.25rem; margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.sp-faq-title .icon { color: var(--primary); flex-shrink: 0; }
.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; box-shadow: var(--shadow-md); }
.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: .8rem; color: var(--text); margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.sp-consultant-info div {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 8px 10px;
}
.sp-consultant-info .icon {
  width: 26px; height: 26px; min-width: 26px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary); opacity: 1;
  display: flex; align-items: center; justify-content: center;
}

/* ── Cam kết sidebar ── */
.sp-commit-list { display: flex; flex-direction: column; gap: 8px; }
.sp-commit-item {
  border: none; display: flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 500; color: var(--text);
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 9px 12px; transition: background var(--transition);
}
.sp-commit-item:hover { background: var(--primary-light); }
.sp-commit-icon {
  width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
  background: var(--bg); color: var(--primary); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* ── 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;
  display: block;
}
.usp-chip {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.12);
}
.usp-chip-red  { background: var(--primary-dark); }
.usp-chip-gold { background: var(--accent2); }
.usp-chip-blue { background: var(--accent); }
.usp-chip-green{ background: var(--accent2-dark); }

/* 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: #475569; }
.s4 .service-svg { color: #1e40af; }
.s5 .service-svg { color: #334155; }
.s6 .service-svg { color: #075985; }
.s7 .service-svg { color: #4338ca; }
.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: var(--accent-deep); 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; }
.rp-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .76rem; font-weight: 700; color: var(--primary); margin-top: 6px;
  transition: gap var(--transition);
}
.rp-card:hover .rp-link { gap: 7px; }

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

/* ── Dải feature tối trước footer (trang chi tiết sản phẩm) ── */
.sp-feature-bar { background: var(--bg-dark); padding: 26px 0; }
.sp-feature-bar-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px 16px; }
@media (min-width:768px) { .sp-feature-bar-grid { grid-template-columns: repeat(4,1fr); gap: 24px; } }
.sp-feature-bar-item { display: flex; align-items: center; gap: 12px; }
.sp-feature-bar-icon {
  width: 44px; height: 44px; min-width: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  color: var(--highlight); display: flex; align-items: center; justify-content: center;
}
.sp-feature-bar-title { font-size: .84rem; font-weight: 700; color: #fff; }
.sp-feature-bar-desc { font-size: .72rem; color: rgba(255,255,255,.65); }

/* ================================================================
   HOMEPAGE REDESIGN — hero visual, feature strip, projects, process dark
   ================================================================ */

/* --- Hero split (text + decorative visual) — chỉ slide 1 --- */
.hero-container-split { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-container-split { grid-template-columns: 1.15fr .85fr; gap: 40px; } }
.hero-visual { position: relative; display: none; align-items: center; justify-content: center; min-height: 260px; }
@media (min-width: 900px) { .hero-visual { display: flex; } }
.hero-visual-ring {
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-visual-core {
  width: 148px; height: 148px; border-radius: 50%;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.hero-visual-badge {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--bg-dark); font-size: .72rem; font-weight: 700;
  padding: 8px 13px; border-radius: 100px; border: 1px solid var(--border);
  white-space: nowrap;
}
.hero-visual-badge svg { color: var(--primary); flex-shrink: 0; }
.hero-visual-badge-1 { top: 6%; right: -4%; }
.hero-visual-badge-2 { bottom: 10%; left: -8%; }

/* --- Feature strip — thẻ trắng nổi trên mép dưới hero --- */
.feature-strip-wrap { position: relative; z-index: 5; margin-top: -22px; }
@media (min-width: 768px) { .feature-strip-wrap { margin-top: -38px; } }
.feature-strip {
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(2,1fr); gap: 0;
  overflow: hidden;
}
@media (min-width: 640px)  { .feature-strip { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 992px)  { .feature-strip { grid-template-columns: repeat(5,1fr); } }
.feature-strip-item {
  padding: 20px 14px; text-align: center;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.feature-strip-item:nth-child(2n) { border-right: none; }
@media (min-width: 640px) { .feature-strip-item:nth-child(2n) { border-right: 1px solid var(--border); } .feature-strip-item:nth-child(3n) { border-right: none; } }
@media (min-width: 992px) { .feature-strip-item:nth-child(3n) { border-right: 1px solid var(--border); } .feature-strip-item:nth-child(5n) { border-right: none; } .feature-strip-item { border-bottom: none; } }
.feature-strip-icon {
  width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.feature-strip-title { font-size: .82rem; font-weight: 700; color: var(--bg-dark); margin-bottom: 2px; }
.feature-strip-desc { font-size: .72rem; color: var(--muted); }

/* --- Dự án tiêu biểu (carousel) --- */
.proj-carousel { position: relative; }
.proj-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 6px; scrollbar-width: none;
}
.proj-track::-webkit-scrollbar { display: none; }
.proj-card {
  scroll-snap-align: start; flex: 0 0 220px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  text-decoration: none; color: inherit; transition: border-color var(--transition);
}
@media (min-width: 768px) { .proj-card { flex-basis: 260px; } }
.proj-card:hover { border-color: var(--primary); }
.proj-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-cap { padding: 12px 14px; }
.proj-title { display: block; font-size: .85rem; font-weight: 700; color: var(--bg-dark); line-height: 1.35; }
.proj-cat { display: block; font-size: .72rem; color: var(--primary); margin-top: 3px; font-weight: 600; }
.proj-arrow {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.proj-arrow-prev { left: -10px; }
.proj-arrow-next { right: -10px; }
@media (max-width: 639px) { .proj-arrow { display: none; } }

/* --- Quy trình (dark full-width) --- */
.process-dark { background: var(--bg-dark); }
.process-dark .section-kicker-dark { color: var(--highlight); }
.process-dark .process-heading { color: #fff; }
.process-dark .process-sub { color: rgba(255,255,255,.72); }
.process-dark .divider-line.center { background: var(--primary); }
.process-dark .step-text h4 { color: #fff; }
.process-dark .step-text p { color: rgba(255,255,255,.65); }
.process-dark .process-steps::before { background: rgba(255,255,255,.18); }
@media (min-width: 768px) { .process-dark .process-steps::before { background: rgba(255,255,255,.18); } }
.step-num { position: relative; }
.step-badge {
  position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-deep); color: #fff; font-size: .68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg-dark);
}

/* --- Testimonial dots (decorative) --- */
.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.t-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.t-dot.is-active { width: 22px; border-radius: 100px; background: var(--primary); }

