/* ==========================================================================
   THIẾT BỊ CHĂN NUÔI GIÁ TỐT - VIỆT TRUNG
   Hệ Thống CSS Hiện Đại - Chuẩn SEO & Siêu Mượt Đa Thiết Bị
   ========================================================================== */

:root {
  --primary: #0d6938;          /* Xanh lá đậm nông nghiệp */
  --primary-light: #15803d;    /* Xanh lá tươi */
  --primary-dark: #064e2b;     /* Xanh đậm viền */
  --accent: #f59e0b;           /* Cam vàng nổi bật */
  --accent-hover: #d97706;     
  --secondary: #0284c7;        /* Xanh dương Zalo */
  --red-call: #dc2626;         /* Đỏ gọi hotline */
  --bg-main: #f8fafc;          /* Nền sáng dịu */
  --surface: #ffffff;          /* Nền thẻ trắng */
  --text-main: #1e293b;        /* Màu chữ chính */
  --text-muted: #64748b;       /* Màu chữ phụ */
  --border: #e2e8f0;          /* Đường viền */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset cơ bản */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Ngăn chặn tuyệt đối trình duyệt Safari Mobile (iOS) tự động phóng to khi nhấp vào ô nhập liệu */
input, select, textarea {
  font-size: 16px;
  font-family: inherit;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px; /* Chừa khoảng trống cho mobile bottom bar */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ================= TOPBAR ================= */
.topbar {
  background: #064e2b;
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-left i {
  color: var(--accent);
  margin-right: 4px;
}

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

.topbar-social {
  color: #cbd5e1;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
}

.topbar-social:hover {
  color: #fff;
  background: var(--primary-light);
}

.topbar-highlight {
  background: var(--accent);
  color: #78350f;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
}

.topbar-highlight i {
  color: #78350f;
}

.topbar-highlight:hover {
  background: #fcd34d;
}

/* ================= SITE HEADER ================= */
.site-header {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 990;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(13, 105, 56, 0.3);
}

.logo-icon-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(13, 105, 56, 0.3);
  object-fit: cover;
  display: block;
}

.logo-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-hover);
  letter-spacing: 0.05em;
}

.header-search {
  flex: 1;
  max-width: 480px;
}

.search-form {
  display: flex;
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 10px 48px 10px 16px;
  border: 2px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  background: #f1f5f9;
  -webkit-text-size-adjust: 100%;
}

.search-form input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 105, 56, 0.15);
}

.search-form button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 38px;
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.search-form button:hover {
  background: var(--primary-light);
}

.header-hotline {
  display: none;
}

@media (min-width: 992px) {
  .header-hotline {
    display: block;
  }
}

.hotline-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 8px 14px;
  border-radius: var(--radius-md);
}

.hotline-icon {
  width: 38px;
  height: 38px;
  background: var(--red-call);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
}

.hotline-info {
  display: flex;
  flex-direction: column;
}

.hotline-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #991b1b;
}

.hotline-number {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--red-call);
  line-height: 1.2;
}

.hotline-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ================= NAVIGATION ================= */
.site-nav {
  background: var(--primary);
  color: #fff;
  display: none;
}

@media (min-width: 992px) {
  .site-nav {
    display: block;
  }
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.nav-menu > li:hover > a,
.nav-menu > li.active > a {
  background: var(--primary-dark);
  color: #fef08a;
}

/* Dropdown */
.has-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--surface);
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-top: 3px solid var(--accent);
  z-index: 1000;
  padding: 8px 0;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: #f0fdf4;
  color: var(--primary);
  padding-left: 24px;
}

.dropdown-menu li a i {
  color: var(--primary);
  width: 18px;
}

.dropdown-menu-cooling {
  min-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
  gap: 2px;
}

.click-dropdown-menu li:first-child,
.dropdown-menu-cooling li:first-child {
  grid-column: 1 / -1;
  background: #f0fdf4;
  border-radius: 6px;
  margin-bottom: 4px;
}

.click-dropdown-menu li a,
.dropdown-menu-cooling li a {
  padding: 8px 12px;
  font-size: 0.8125rem;
  border-bottom: none;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.click-dropdown-menu li a:hover,
.dropdown-menu-cooling li a:hover {
  background: #f0fdf4;
  color: var(--primary);
  padding-left: 16px;
}

/* ================= CLICK-ONLY DROPDOWN FOR LÀM MÁT CHUỒNG TRẠI ================= */
.has-click-dropdown {
  position: relative;
}

.has-click-dropdown .click-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 520px;
  background: var(--surface);
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-top: 3px solid var(--accent);
  z-index: 1000;
  padding: 8px;
}

.has-click-dropdown.open .click-dropdown-menu {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  animation: clickDropdownFade 0.2s ease forwards;
}

.has-click-dropdown .dropdown-arrow {
  transition: transform 0.25s ease;
  margin-left: 4px;
}

.has-click-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

@keyframes clickDropdownFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile subcategory accordion */
.mobile-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-cat-row .mobile-cat-link {
  flex: 1;
}

.mobile-subcat-toggle-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  margin-left: 8px;
}

.mobile-subcat-toggle-btn:hover,
.mobile-subcat-toggle-btn.active {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.mobile-subcat-list {
  list-style: none;
  padding-left: 14px;
  margin: 4px 0 8px;
  border-left: 2px solid #86efac;
}

.mobile-subcat-list li {
  margin: 3px 0;
}

.mobile-subcat-list li a {
  font-size: 0.825rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

.btn-nav-zalo {
  background: var(--accent);
  color: #78350f;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-nav-zalo:hover {
  background: #fcd34d;
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

/* ================= MOBILE SIDEBAR ================= */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: var(--surface);
  z-index: 10000;
  box-shadow: 4px 0 15px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-sidebar.open {
  left: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
}

.sidebar-overlay.open {
  display: block;
}

.mobile-sidebar-header {
  background: var(--primary);
  color: #fff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-sidebar {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-sidebar-body {
  padding: 16px;
}

.mobile-search-form {
  display: flex;
  margin-bottom: 16px;
}

.mobile-search-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  outline: none;
}

.mobile-search-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.mobile-nav-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 500;
}

.mobile-cat-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 14px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.mobile-sidebar-contact {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 0.8125rem;
}

.mobile-sidebar-contact .contact-item {
  margin-bottom: 8px;
}

.mobile-sidebar-contact i {
  color: var(--primary);
  width: 18px;
}

/* ================= HERO BANNER ================= */
.hero-section {
  background: linear-gradient(135deg, #064e2b 0%, #0d6938 60%, #15803d 100%);
  color: #fff;
  padding: 40px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--accent);
  color: #fef08a;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-highlight {
  color: #fcd34d;
}

.hero-desc {
  font-size: 1rem;
  color: #e2e8f0;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-primary {
  background: var(--accent);
  color: #78350f;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #fcd34d;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.hero-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  font-size: 0.8125rem;
}

.hero-badges-list span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f1f5f9;
}

.hero-badges-list i {
  color: var(--accent);
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fef08a;
  margin-bottom: 16px;
  text-align: center;
}

.hero-form .form-group {
  margin-bottom: 12px;
}

.hero-form input,
.hero-form select,
.hero-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.95);
  color: var(--text-main);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  -webkit-text-size-adjust: 100%;
}

.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4);
}

.hero-form .btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #78350f;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.hero-form .btn-submit:hover {
  background: #fcd34d;
}

/* ================= SECTION HEADINGS ================= */
.section {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  background: #dcfce7;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ================= CATEGORIES GRID ================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .categories-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.category-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.cat-icon-box {
  width: 60px;
  height: 60px;
  background: #ecfdf5;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.category-card:hover .cat-icon-box {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

.cat-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

/* ================= PRODUCT CARDS ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #86efac;
}

.product-thumb {
  position: relative;
  background: #f1f5f9;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.product-card:hover .product-title {
  color: var(--primary);
}

.product-specs-summary {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex: 1;
}

.product-price {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--red-call);
  margin-bottom: 12px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-detail {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.btn-detail:hover {
  background: #e2e8f0;
}

.btn-zalo-card {
  background: var(--accent);
  color: #78350f;
  padding: 6px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.btn-zalo-card:hover {
  background: #fcd34d;
}

/* ================= FEATURES / COMMITMENTS ================= */
.commitments-section {
  background: #f0fdf4;
  border-top: 1px solid #dcfce7;
  border-bottom: 1px solid #dcfce7;
}

.commit-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 600px) {
  .commit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .commit-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.commit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.commit-icon {
  width: 48px;
  height: 48px;
  background: #dcfce7;
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.commit-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.commit-text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ================= ARTICLES / GUIDES ================= */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-thumb {
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  overflow: hidden;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.article-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-title a:hover {
  color: var(--primary);
}

.article-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.article-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-link:hover {
  color: var(--primary-light);
  gap: 8px;
}

/* ================= PRODUCT DETAIL PAGE ================= */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 12px 0;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: #cbd5e1;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (min-width: 992px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.detail-gallery {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.detail-main-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
}

.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 12px;
}

.detail-meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.detail-price-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-price-label {
  font-size: 0.875rem;
  color: #991b1b;
  font-weight: 600;
}

.detail-price-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--red-call);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.specs-table tr:nth-child(even) {
  background: #f8fafc;
}

.specs-table th,
.specs-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.specs-table th {
  width: 35%;
  font-weight: 600;
  color: var(--text-muted);
}

.detail-cta-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}

@media (min-width: 576px) {
  .detail-cta-buttons {
    grid-template-columns: 1fr 1fr;
  }
}

.btn-cta-zalo {
  background: #0284c7;
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-cta-zalo:hover {
  background: #0369a1;
}

.btn-cta-call {
  background: var(--red-call);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-cta-call:hover {
  background: #b91c1c;
}

.detail-content-section {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
}

.detail-content-section h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 20px;
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
}

.detail-content-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.detail-content-section li {
  margin-bottom: 6px;
}

/* ================= KHẮC PHỤC TRIỆT ĐỂ LỖI TRÀN TRANG CHI TIẾT BÀI VIẾT ================= */
.article-detail-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

@media (max-width: 768px) {
  .article-detail-wrap {
    padding: 20px 14px !important;
    border-radius: var(--radius-md);
  }
  .article-detail-title {
    font-size: 1.35rem !important;
  }
}

.article-content-body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  line-height: 1.85;
  font-size: 1.05rem;
  color: #1e293b;
}

/* Ép toàn bộ phần tử con trong bài viết không vượt quá chiều rộng khung */
.article-content-body * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Bảng biểu: tự động cuộn ngang trơn tru nếu bảng rộng hơn màn hình */
.article-content-body table {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse !important;
  margin: 20px 0 !important;
}

.article-content-body table td,
.article-content-body table th {
  padding: 8px 12px !important;
  border: 1px solid var(--border) !important;
  word-break: normal !important;
  font-size: 0.9375rem;
  min-width: 90px;
}

.article-content-body table th {
  background-color: #f1f5f9 !important;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Toàn bộ hình ảnh và caption trong bài viết co giãn theo khung */
.article-content-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 16px auto;
  border-radius: 8px;
}

.article-content-body figure,
.article-content-body .wp-caption {
  width: 100% !important;
  max-width: 100% !important;
  margin: 16px auto !important;
  padding: 0 !important;
  text-align: center;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.article-content-body figure img,
.article-content-body .wp-caption img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto !important;
}

.article-content-body figcaption,
.article-content-body .wp-caption-text {
  font-size: 0.875rem !important;
  color: #64748b !important;
  margin-top: 8px !important;
  line-height: 1.5 !important;
  max-width: 100% !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.article-content-body iframe,
.article-content-body video,
.article-content-body embed {
  max-width: 100% !important;
  border-radius: 8px;
}

.article-content-body pre {
  max-width: 100% !important;
  overflow-x: auto !important;
  white-space: pre-wrap !important;
  word-break: break-all !important;
  background: #f8fafc;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ================= FOOTER ================= */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-top {
  padding: 56px 0 36px;
  border-bottom: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  }
}

.footer-logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.footer-logo-title img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: inline-block;
}

.footer-logo-title i {
  color: var(--primary-light);
}

.footer-logo-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-desc {
  line-height: 1.7;
  margin-bottom: 20px;
  color: #cbd5e1;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8125rem;
  color: #fff;
}

.social-btn.facebook {
  background: #1877f2;
}

.social-btn.facebook:hover {
  background: #0d65d9;
}

.social-btn.tiktok {
  background: #27272a;
  border: 1px solid #3f3f46;
}

.social-btn.tiktok:hover {
  background: #000;
}

.social-btn.youtube {
  background: #991b1b;
}

.social-btn.youtube:hover {
  background: #dc2626;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--primary-light);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #86efac;
  padding-left: 6px;
}

.footer-links i {
  font-size: 0.6875rem;
  color: var(--primary-light);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.fc-icon {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.06);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-highlight {
  color: #fef08a;
  font-weight: 700;
}

.contact-highlight:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding: 18px 0;
  font-size: 0.8125rem;
  background: #090d16;
  border-top: 1px solid #1e293b;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-left {
  flex: 1;
  min-width: 280px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom-socials .topbar-social {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s ease;
}

.footer-bottom-socials .topbar-social:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.footer-bottom-socials .topbar-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #fff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
}

.footer-bottom-socials .topbar-highlight:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
}

.copyright a {
  color: #86efac;
}

/* ================= FLOATING CTAs ================= */
.floating-cta {
  position: fixed;
  bottom: 75px;
  right: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 992px) {
  .floating-cta {
    bottom: 24px;
  }
}

.f-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 9999px;
  color: #fff;
  font-size: 0.8125rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: all 0.3s;
}

.f-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(0,0,0,0.15);
}

.f-call {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.f-zalo {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.f-text {
  display: none;
}

@media (min-width: 768px) {
  .f-text {
    display: inline;
  }
}

.pulse-infinite {
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ================= MOBILE BOTTOM BAR ================= */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  z-index: 998;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 992px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--text-muted);
  gap: 2px;
  position: relative;
}

.mb-item i {
  font-size: 1.15rem;
}

.mb-item.active {
  color: var(--primary);
  font-weight: 700;
}

.mb-item.highlight-call {
  color: var(--red-call);
  font-weight: 700;
}

.mb-item.highlight-zalo {
  color: var(--secondary);
  font-weight: 700;
}

.mb-icon-circle {
  width: 32px;
  height: 32px;
  background: #0284c7;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ================= BACK TO TOP ================= */
.back-to-top {
  position: fixed;
  bottom: 140px;
  right: 18px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 990;
  transition: all 0.2s;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* Helper Utilities */
.d-none-mobile {
  display: none;
}

@media (min-width: 768px) {
  .d-none-mobile {
    display: inline-block;
  }
}

/* ================= KHÁCH HÀNG & ĐỐI TÁC TIÊU BIỂU (NHỎ GỌN TINH TẾ) ================= */
.clients-ribbon-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.clients-ribbon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.clients-ribbon-header {
  text-align: center;
}

.ribbon-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.ribbon-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.clients-ribbon-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 1100px;
}

.ribbon-logo-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 16px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.ribbon-logo-item:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.ribbon-logo-item img {
  max-height: 28px;
  max-width: 90px;
  object-fit: contain;
  filter: grayscale(85%);
  opacity: 0.75;
  transition: all 0.25s ease;
}

.ribbon-logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  align-items: center;
}

.partner-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.partner-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.partner-item img {
  max-width: 110px;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.25s ease;
}

.partner-item:hover img {
  filter: grayscale(0%);
}

.partner-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.25;
}

/* ================= ĐÁNH GIÁ KHÁCH HÀNG (TESTIMONIALS) ================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-rating {
  color: #eab308;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.testimonial-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #334155;
  font-style: italic;
  margin-bottom: 18px;
  flex-grow: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.3;
}

/* ================= INTERNAL BACKLINKS & THẺ TAG SEO ================= */
.seo-internal-link {
  color: #0d9488;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.seo-internal-link:hover {
  color: var(--primary);
  text-decoration-thickness: 2px;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: #334155;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tag-badge:hover,
.tag-badge.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tag-badge-sm {
  display: inline-block;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.tag-badge-sm:hover {
  background: var(--primary);
  color: #fff;
}

/* ================= PHÂN TRANG (PAGINATION) ================= */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.page-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ================= THANH TÌM KIẾM CHO DESKTOP VÀ MOBILE ================= */
.mobile-search-strip {
  display: none !important; /* MẶC ĐỊNH & DESKTOP: Luôn ẩn hoàn toàn, ngăn chặn trùng lặp trên trang chủ */
}

@media (max-width: 768px) {
  .header-search {
    display: none !important; /* Ẩn thanh tìm kiếm site-header trên thiết bị di động */
  }
  .mobile-search-strip {
    display: block !important; /* Chỉ hiển thị thanh tìm kiếm riêng biệt trên Mobile */
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
  }
}

.search-strip-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 9999px;
  padding: 2px 4px 2px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.search-strip-icon {
  color: var(--primary);
  font-size: 0.9375rem;
  margin-right: 8px;
}

.search-strip-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 6px;
  font-size: 16px; /* Chuẩn 16px chống tự động zoom trên Safari Mobile iOS */
  font-family: inherit;
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
}

.search-strip-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.search-strip-btn:hover {
  background: var(--primary-light);
}

/* ================= LIVE SEARCH SUGGESTIONS DROPDOWN ================= */
.search-form-wrapper {
  position: relative;
  width: 100%;
}

.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  max-height: 420px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1100;
  display: none;
}

.search-suggestions-dropdown.show {
  display: block;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.suggestion-header {
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ================= TỪ KHÓA GỢI Ý (KEYWORD SUGGESTIONS) ================= */
.suggestion-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}

.suggest-keyword-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggest-keyword-tag i {
  color: var(--primary);
  font-size: 0.75rem;
}

.suggest-keyword-tag:hover {
  background: #ecfdf5;
  border-color: #86efac;
  color: var(--primary);
  transform: translateY(-1px);
}

.suggestion-keywords-list {
  display: flex;
  flex-direction: column;
}

.suggest-keyword-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.suggest-keyword-item:last-child {
  border-bottom: none;
}

.suggest-keyword-item i {
  color: #94a3b8;
  font-size: 0.8125rem;
  transition: color 0.15s;
}

.suggest-keyword-item:hover {
  background: #f0fdf4;
  color: var(--primary);
}

.suggest-keyword-item:hover i {
  color: var(--primary);
}

.suggest-keyword-item mark {
  background: transparent;
  color: var(--primary);
  font-weight: 800;
}

.suggestion-list {
  display: flex;
  flex-direction: column;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  transition: background 0.15s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f0fdf4;
}

.suggestion-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-details {
  flex: 1;
  min-width: 0;
}

.suggestion-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.suggestion-item:hover .suggestion-title {
  color: var(--primary);
}

.suggestion-meta {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

.suggestion-price-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-call);
  white-space: nowrap;
}

.suggestion-footer {
  display: block;
  text-align: center;
  padding: 10px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.suggestion-footer:hover {
  background: #f0fdf4;
}

.suggestion-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

/* ================= DYNAMIC PRODUCT BADGES ================= */
.product-badge.badge-new {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.product-badge.badge-hot {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}

.product-badge.badge-factory {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}

.product-badge.badge-rec {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
}

.product-badge.badge-eco {
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
  color: #fff;
}

.product-badge.badge-auth {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #fff;
}

.product-badge.badge-top {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
}

/* ================= CHỐNG TỰ ĐỘNG PHÓNG TO MÀN HÌNH TRÊN TRÌNH DUYỆT SAFARI MOBILE (IOS) ================= */
@media screen and (max-width: 768px) {
  input,
  select,
  textarea,
  input[type="text"],
  input[type="search"],
  input[type="tel"],
  input[type="email"],
  input[type="number"],
  .search-strip-input,
  .live-search-input,
  .search-form input,
  .mobile-search-form input,
  .hero-form input,
  .hero-form select,
  .hero-form textarea {
    font-size: 16px !important; /* Đảm bảo tối thiểu 16px - Safari iOS sẽ không tự phóng to màn hình khi ấn vào */
    -webkit-text-size-adjust: 100% !important;
  }
}

/* ================= TỐI ƯU HÓA TYPOGRAPHY & LOẠI BỎ MÃ THỪA CHO BÀI VIẾT VÀ SẢN PHẨM ================= */
.article-content-body,
.product-desc-body,
.detail-content-section {
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
  overflow-x: hidden;
  word-break: break-word;
}

/* 1. Ép toàn bộ thẻ con kế thừa phông chữ chuẩn của website, khử Times New Roman từ CMS cũ */
.article-content-body span,
.product-desc-body span,
.article-content-body p,
.product-desc-body p,
.article-content-body strong,
.product-desc-body strong,
.article-content-body em,
.product-desc-body em,
.article-content-body li,
.product-desc-body li,
.article-content-body td,
.product-desc-body td,
.article-content-body th,
.product-desc-body th {
  font-family: inherit !important;
}

/* Khử màu đen cứng #000000 và kích thước cứng nếu gây phá vỡ giao diện */
.article-content-body p span,
.product-desc-body p span {
  color: inherit !important;
}

/* 2. Chuẩn hóa tiêu đề H2, H3, H4 trong nội dung */
.article-content-body h2,
.product-desc-body h2,
.detail-content-section h2 {
  font-family: inherit !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: var(--primary, #059669) !important;
  margin-top: 28px !important;
  margin-bottom: 14px !important;
  line-height: 1.4 !important;
  border-left: 4px solid var(--primary, #059669);
  padding-left: 12px;
}

.article-content-body h3,
.product-desc-body h3,
.detail-content-section h3 {
  font-family: inherit !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-top: 22px !important;
  margin-bottom: 12px !important;
  line-height: 1.4 !important;
}

.article-content-body h2 span,
.product-desc-body h2 span,
.article-content-body h3 span,
.product-desc-body h3 span {
  font-family: inherit !important;
  color: inherit !important;
  font-size: inherit !important;
}

/* 3. Tự động ẩn hoàn toàn các khối mã thừa từ web cũ nếu có lọt vào */
.article-content-body .commentfb-pro-detail,
.article-content-body .fb-comments,
.article-content-body .title-main,
.article-content-body .product__wrap,
.article-content-body .item__product__wrap,
.article-content-body .tags-pro-detail,
.article-content-body .hidden-seoh,
.product-desc-body .commentfb-pro-detail,
.product-desc-body .fb-comments,
.product-desc-body .title-main,
.product-desc-body .product__wrap,
.product-desc-body .item__product__wrap,
.product-desc-body .tags-pro-detail,
.product-desc-body .hidden-seoh {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 4. Tối ưu ảnh trong nội dung bài viết và mô tả sản phẩm */
.article-content-body img,
.product-desc-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 18px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 5. Tối ưu bảng biểu trong nội dung */
.article-content-body table,
.product-desc-body table {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 18px 0;
}

.article-content-body table th,
.product-desc-body table th,
.article-content-body table td,
.product-desc-body table td {
  padding: 10px 14px;
  border: 1px solid var(--border, #e2e8f0);
}

/* ================= PRODUCT RATING & HASHTAGS & REVIEWS UI ================= */

/* Header Rating Badges */
.product-rating-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
  font-size: 0.875rem;
}
.product-rating-header .rating-stars {
  color: #f59e0b;
  display: inline-flex;
  gap: 2px;
}
.product-rating-header .rating-number {
  font-weight: 700;
  color: #1f2937;
}
.product-rating-header .rating-divider {
  color: #cbd5e1;
}
.product-rating-header .rating-count-link {
  color: var(--primary, #16a34a);
  text-decoration: underline;
  cursor: pointer;
}
.product-rating-header .sales-count {
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Hashtag Pills Box */
.product-hashtags-box {
  margin: 16px 0 20px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.product-hashtags-box .hashtag-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hashtag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hashtag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  color: #1e293b;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.hashtag-pill:hover {
  background: var(--primary, #16a34a);
  border-color: var(--primary, #16a34a);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.2);
}

/* Tag Hero Banner in danh-muc.php */
.tag-hero-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.tag-hero-banner h1 {
  font-size: 1.3rem;
  color: #166534;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Reviews Section */
.product-reviews-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 24px;
  margin: 36px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.reviews-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.reviews-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reviews-subtitle {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

/* Overview Card */
.reviews-overview-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .reviews-overview-card {
    grid-template-columns: 200px 1fr 220px;
    align-items: center;
  }
}
.overview-score {
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}
@media (min-width: 768px) {
  .overview-score {
    border-bottom: none;
    border-right: 1px solid #e2e8f0;
    padding-bottom: 0;
    padding-right: 20px;
  }
}
.overview-score .big-score {
  font-size: 3rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}
.overview-score .big-stars {
  color: #f59e0b;
  font-size: 1.15rem;
  margin: 6px 0;
}
.overview-score .score-count {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 600;
}

.overview-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
}
.bar-star {
  width: 45px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.bar-star i {
  color: #f59e0b;
  font-size: 0.75rem;
}
.bar-track {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 9999px;
  transition: width 0.6s ease;
}
.bar-pct {
  width: 35px;
  text-align: right;
  color: #64748b;
  font-weight: 600;
}

.overview-cta {
  text-align: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}
@media (min-width: 768px) {
  .overview-cta {
    border-top: none;
    border-left: 1px solid #e2e8f0;
    padding-top: 0;
    padding-left: 20px;
  }
}
.btn-open-review-form {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}
.btn-open-review-form:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

/* Review Form Container */
.review-form-container {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}
.review-form-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
}
.rating-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.star-pick {
  font-size: 1.5rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s ease;
}
.star-pick.active,
.star-pick:hover,
.star-pick:hover ~ .star-pick {
  color: #f59e0b;
}

/* Review Items */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.review-item:hover {
  background: #fafafa;
}
.review-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #16a34a 0%, #0d9488 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.review-content-wrap {
  flex: 1;
}
.review-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.review-author {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}
.verified-buyer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
}
.review-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  margin-bottom: 8px;
}
.review-stars {
  color: #f59e0b;
  display: inline-flex;
  gap: 2px;
  font-size: 0.85rem;
}
.review-role {
  color: #64748b;
  font-weight: 500;
}
.review-date {
  color: #94a3b8;
}
.review-text {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.55;
  margin: 0 0 10px;
}
.review-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-like-review {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.btn-like-review:hover,
.btn-like-review.liked {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

/* ================= SOCIAL PROOF NOTIFICATION TOAST ================= */
.social-proof-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 996;
  max-width: 370px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.35s;
  pointer-events: none;
}

.social-proof-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sp-thumb {
  position: relative;
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.sp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  transition: transform 0.2s ease;
}

.sp-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.sp-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: spPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes spPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.sp-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.sp-title:hover {
  color: var(--primary);
  text-decoration: underline;
}

.sp-meta {
  font-size: 0.7rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.sp-close {
  background: none;
  border: none;
  padding: 4px;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-left: 2px;
  align-self: flex-start;
  transition: all 0.15s ease;
}

.sp-close:hover {
  background: #f1f5f9;
  color: #334155;
}

@media (max-width: 991px) {
  .social-proof-toast {
    bottom: 68px;
    left: 10px;
    right: auto;
    max-width: calc(100vw - 86px);
    padding: 8px 10px;
    border-radius: 10px;
  }
  .sp-thumb {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .sp-title {
    font-size: 0.8rem;
  }
  .sp-status {
    font-size: 0.7rem;
  }
  .sp-meta {
    font-size: 0.65rem;
  }
}

/* ================= ARTICLES MENU DROPDOWN ================= */
#articlesMenuDropdown .click-dropdown-menu {
  left: auto;
  right: 0;
  min-width: 540px;
}
@media (max-width: 991px) {
  #articlesMenuDropdown .click-dropdown-menu {
    min-width: 100%;
    right: auto;
    left: 0;
  }
}

/* ================= DANH MỤC TỪ KHÓA TRỌNG TÂM CẨM NANG ================= */
.focus-keyword-hub {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.focus-keyword-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.focus-keyword-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.focus-keyword-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 10px;
}

.focus-keyword-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.focus-keyword-card:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.12);
}

.focus-keyword-card.active {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-color: #15803d;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.focus-keyword-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.focus-keyword-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  color: var(--primary);
  transition: all 0.2s ease;
}

.focus-keyword-card:hover .focus-keyword-icon {
  background: #dcfce7;
  color: #15803d;
}

.focus-keyword-card.active .focus-keyword-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.focus-keyword-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.focus-keyword-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  flex-shrink: 0;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.focus-keyword-card:hover .focus-keyword-count {
  background: #dcfce7;
  color: #15803d;
}

.focus-keyword-card.active .focus-keyword-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.card-hot-highlight {
  border-color: #fca5a5 !important;
  background: #fffafa !important;
}

.card-hot-highlight:hover {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15) !important;
}

.card-hot-highlight.active {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28) !important;
}

.badge-card-new {
  display: inline-block;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 5px;
  letter-spacing: 0.3px;
  vertical-align: middle;
  line-height: 1.25;
}

.focus-keyword-card.active .badge-card-new {
  background: #ffffff;
  color: #dc2626;
}

/* ================= BỘ LỌC BÀI VIẾT (MỚI NHẤT / CŨ NHẤT) ================= */
.articles-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.articles-toolbar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: #475569;
}

.articles-toolbar-info strong {
  color: #0f172a;
}

.articles-active-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8125rem;
}

.articles-active-tag-pill .btn-clear-tag {
  color: #94a3b8;
  transition: color 0.15s;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1;
}

.articles-active-tag-pill .btn-clear-tag:hover {
  color: #ef4444;
}

.articles-sort-group {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.articles-sort-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.articles-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.18s ease;
}

.articles-sort-btn:hover {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.7);
}

.articles-sort-btn.active {
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}


