/* ==========================================================================
   RESET & BIẾN MÀU SẮC CHUNG
   ========================================================================== */
:root {
  --primary-green: #008848;       /* Màu xanh lá của menu active & slogan */
  --primary-green-hover: #00703c;
  --text-dark: #222222;           /* Màu chữ các mục menu */
  --text-muted: #555555;
  --border-light: #eaeaea;
  --header-height: 86px;
  --dropdown-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, button, input, select, textarea, a, p, span, h1, h2, h3, h4, h5, h6 {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  color: var(--text-dark);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

/* ==========================================================================
   HEADER & THANH ĐIỀU HƯỚNG (NAVIGATION)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  will-change: transform;
}

/* Khi cuộn xuống: Ẩn thanh header trượt mượt lên trên */
.header.header-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

/* Khi cuộn lên: Hiện thanh header với bóng mờ nhẹ */
.header.header-scrolled {
  transform: translateY(0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

/* 1. LOGO */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 62px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* 2. MENU ĐIỀU HƯỚNG */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1e293b;
  text-decoration: none;
  padding: 14px 2px;
  position: relative;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

/* Hiệu ứng gạch chân tinh tế khi hover hoặc active */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--primary-green);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Menu Trang chủ đang Active */
.nav-link.active {
  color: var(--primary-green);
  font-weight: 700;
}

.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--primary-green);
}

.nav-item:hover > .nav-link::after {
  width: 100%;
}

/* Icon mũi tên trỏ xuống */
.icon-arrow {
  width: 11px;
  height: 7px;
  color: #64748b;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.nav-item:hover > .nav-link .icon-arrow,
.nav-link.active .icon-arrow {
  color: var(--primary-green);
  transform: rotate(180deg);
}

/* 3. MENU CON (DROPDOWN CUỘN XUỐNG SIÊU MƯỢT) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: #ffffff;
  border-radius: 0px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  border-top: none;
  list-style: none;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.28s ease;
  z-index: 100;
  will-change: opacity, transform;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu li {
  border-bottom: 1px solid #f2f2f2;
}

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

.dropdown-link {
  display: block;
  padding: 14px 22px;
  font-size: 15.5px;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  background-color: #ffffff;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              padding-left 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-link:hover {
  color: var(--primary-green);
  background-color: #f8fafc;
  padding-left: 26px;
}

/* 4. CÁC BIỂU TƯỢNG BÊN PHẢI (ICONS) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #1e293b;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.action-btn:hover {
  color: var(--primary-green);
  background-color: #f1f5f9;
}

.action-btn svg {
  width: 23px;
  height: 23px;
}

/* Số lượng giỏ hàng */
.cart-btn .cart-count {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: #222222;
  pointer-events: none;
}

/* ==========================================================================
   POPUP FORM ĐĂNG NHẬP TÀI KHOẢN (AUTH LOGIN DROPDOWN POPUP) - CHUẨN MẪU ẢNH
   ========================================================================== */
.header-user-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* ==================== DROPDOWN POPUP TÌM KIẾM TRÊN HEADER ==================== */
.header-search-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.search-dropdown-popup {
  position: absolute;
  top: calc(100% + 14px);
  right: -90px;
  width: 330px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 16px 20px 20px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s ease;
}

.search-dropdown-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Tam giác chỉ mũi tên hướng lên icon tìm kiếm */
.search-dropdown-popup::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 100px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
  filter: drop-shadow(0 -2px 1px rgba(0, 0, 0, 0.05));
}

.search-popup-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.search-popup-divider {
  height: 1px;
  background: #f1f5f9;
  margin-bottom: 16px;
}

.search-popup-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-popup-input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 14px;
  font-size: 13.5px;
  color: #1f2937;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.search-popup-input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.search-popup-input:focus {
  background-color: #ffffff;
  border-color: #008848;
  box-shadow: 0 0 0 3px rgba(0, 136, 72, 0.1);
}

.search-popup-submit {
  position: absolute;
  right: 12px;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.search-popup-submit:hover {
  color: #008848;
}

.auth-dropdown-popup {
  position: absolute;
  top: calc(100% + 14px);
  right: -16px;
  width: 360px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
  padding: 28px 24px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s ease;
}

.auth-dropdown-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Tam giác chỉ mũi tên hướng lên icon tài khoản */
.auth-dropdown-popup::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 25px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
  filter: drop-shadow(0 -2px 1px rgba(0, 0, 0, 0.05));
}

.auth-popup-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.auth-popup-subtitle {
  font-size: 13.5px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 400;
}

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

.auth-form-input {
  width: 100%;
  height: 42px;
  padding: 10px 14px;
  font-size: 14px;
  color: #1f2937;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form-input::placeholder {
  color: #6b7280;
  font-size: 13.5px;
}

.auth-form-input:focus {
  border-color: #008848;
  box-shadow: 0 0 0 3px rgba(0, 136, 72, 0.1);
}

.auth-recaptcha-text {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin: 14px 0 16px;
  text-align: left;
}

.auth-recaptcha-text a {
  color: #2563eb;
  text-decoration: none;
}

.auth-recaptcha-text a:hover {
  text-decoration: underline;
}

.btn-auth-submit {
  width: 100%;
  height: 44px;
  background-color: #008848;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-auth-submit:hover {
  background-color: #00703c;
}

.btn-auth-submit:active {
  transform: scale(0.99);
}

.auth-popup-links {
  margin-top: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-popup-links p {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
}

.auth-link-highlight {
  color: #008848;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-link-highlight:hover {
  color: #005a30;
  text-decoration: underline;
}

/* AJAX Alert Message */
.auth-ajax-alert {
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  text-align: left;
}

.auth-ajax-alert.auth-ajax-error {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-ajax-alert.auth-ajax-success {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Trạng thái đã đăng nhập (Logged-in User Menu) */
.user-logged-initials {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #008848;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logged-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
}

.logged-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #008848;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #a7f3d0;
  flex-shrink: 0;
}

.logged-user-details {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.logged-user-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logged-user-email {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 1px 0 4px;
}

.logged-user-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.logged-user-badge.role-admin {
  background: #fee2e2;
  color: #dc2626;
}

.logged-user-badge.role-editor {
  background: #e0f2fe;
  color: #0284c7;
}

.logged-user-badge.role-customer {
  background: #dcfce7;
  color: #15803d;
}

.logged-user-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-logged-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-logged-action.admin-direct-link {
  background: #008848;
  color: #ffffff;
}

.btn-logged-action.admin-direct-link:hover {
  background: #00703c;
}

.btn-logged-action.logout-link {
  background: #f8fafc;
  color: #ef4444;
  border: 1px solid #fee2e2;
}

.btn-logged-action.logout-link:hover {
  background: #fef2f2;
}

/* Responsive trên mobile */
@media (max-width: 480px) {
  .auth-dropdown-popup {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: calc(100vw - 32px);
    border-radius: 12px;
    padding: 24px 18px;
  }

  .auth-dropdown-popup::before {
    right: 48px;
  }
}

/* ==========================================================================
   5. BANNER SLIDER CHUYỂN ĐỘNG TRANG CHỦ (KHÔNG BỊ CẮT / MẤT GÓC)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #ffffff;
}

.slider-container {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 100%;
  margin: 0;
  padding: 0;
}

.slide-item {
  grid-area: 1 / 1 / 2 / 2;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.slide-item a {
  display: block;
  width: 100%;
}

.slide-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* NÚT CHUYỂN SLIDE (TRÁI & PHẢI) */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #222222;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.slider-arrow:hover {
  background: #ffffff;
  color: var(--primary-green);
  transform: translateY(-50%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

.slider-arrow svg {
  width: 22px;
  height: 22px;
}

/* CHẤM CHUYỂN TRANG (DOTS) */
.slider-dots {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  border-radius: 999px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid #ffffff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot.active {
  background: var(--primary-green);
  width: 28px;
  border-radius: 999px;
}

/* ==========================================================================
   6. 3 KHỐI CAM KẾT VÀNG NỔI DƯỚI BANNER (TO RỘNG & SANG TRỌNG)
   ========================================================================== */
.banner-features-section {
  position: relative;
  z-index: 20;
  margin-top: -50px;
  padding: 0 28px 48px;
}

.features-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 2px solid #a7f3d0;
  border-radius: 20px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 36px -8px rgba(0, 136, 72, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  background: #f8fdfa;
  border-color: var(--primary-green);
  box-shadow: 0 16px 36px -8px rgba(0, 136, 72, 0.16);
}

.feature-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 136, 72, 0.12);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary-green);
  color: #ffffff;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-text {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

@media (max-width: 1100px) {
  .features-container {
    gap: 16px;
  }
  .feature-card {
    padding: 20px 22px;
    gap: 14px;
  }
  .feature-text {
    font-size: 13.5px;
  }
}

@media (max-width: 991px) {
  .slider-dots {
    bottom: 20px;
  }
  .banner-features-section {
    margin-top: 20px;
    padding: 0 16px 28px;
  }
  .features-container {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature-card {
    padding: 20px 24px;
  }
}

/* ==========================================================================
   7. PHÂN HỆ DANH MỤC SẢN PHẨM TRANG CHỦ (BÁT GẠO TRÒN NỔI BẬT)
   ========================================================================== */
.home-categories-section {
  padding: 30px 24px 65px;
  background-color: #ffffff;
}

.home-categories-container {
  max-width: 1360px;
  margin: 0 auto;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 45px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-green);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section-title-divider {
  width: 50px;
  height: 3px;
  background: var(--primary-green);
  border-radius: 2px;
  margin: 10px auto 0;
}

.categories-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1360px;
  margin: 0 auto;
}

.category-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 215px;
  padding: 24px 18px 28px;
  border-radius: 28px;
  background-color: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.category-item-card:hover {
  background-color: #16a34a;
  box-shadow: 0 14px 34px rgba(22, 163, 74, 0.28);
}

.category-img-box {
  width: 175px;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: transparent;
}

.category-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.category-item-name {
  font-size: 17.5px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.category-item-card:hover .category-item-name {
  color: #000000;
}

@media (max-width: 991px) {
  .home-categories-section {
    padding: 24px 16px 45px;
  }
  
  .section-title {
    font-size: 22px;
  }

  .section-title-wrap {
    margin-bottom: 24px;
  }

  /* Hiển thị đầy đủ tất cả các danh mục trên Mobile */
  .categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px 14px;
    padding: 0;
    overflow: visible;
  }

  .category-item-card {
    flex: 0 0 calc(33.333% - 10px);
    max-width: 120px;
    width: auto;
  }

  .category-img-box {
    width: 100px;
    height: 100px;
    margin-bottom: 8px;
  }

  .category-item-name {
    font-size: 13.5px;
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .category-item-card {
    flex: 0 0 calc(33.333% - 10px);
    max-width: 105px;
  }

  .category-img-box {
    width: 90px;
    height: 90px;
  }

  .category-item-name {
    font-size: 12.5px;
  }
}

@media (max-width: 340px) {
  .category-item-card {
    flex: 0 0 calc(50% - 10px);
    max-width: 120px;
  }

  .category-img-box {
    width: 95px;
    height: 95px;
  }
}

/* ==========================================================================
   8. BANNER GIỚI THIỆU SẢN PHẨM MỚI (ST25 HARMONY)
   ========================================================================== */
.promo-banner-section {
  padding: 40px 24px 80px;
  background-color: #ffffff;
}

.promo-banner-container {
  max-width: 1360px;
  margin: 0 auto;
}

.promo-banner-card {
  background: #ddf7eb;
  background: linear-gradient(135deg, #e4fcf0 0%, #d4f7e5 100%);
  border-radius: 36px;
  padding: 50px 30px 50px 60px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: visible;
  box-shadow: 0 12px 36px -8px rgba(22, 163, 74, 0.12);
}

.promo-content-col {
  z-index: 2;
}

.promo-badge {
  display: inline-block;
  padding: 6px 20px;
  background: #ffffff;
  border: 1.5px solid #86efac;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.promo-title {
  font-size: 40px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.promo-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 30px;
  max-width: 530px;
  font-weight: 500;
}

.btn-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  background: #16a34a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.32);
}

.btn-promo-cta:hover {
  background: #15803d;
  box-shadow: 0 10px 26px rgba(22, 163, 74, 0.4);
}

.promo-image-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.promo-image-col img {
  width: 120%;
  max-width: 700px;
  height: auto;
  margin-top: -65px;
  margin-bottom: -60px;
  margin-right: -35px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
  display: block;
}

@media (max-width: 991px) {
  .promo-banner-section {
    padding: 20px 16px 50px;
  }
  
  .promo-banner-card {
    grid-template-columns: 1fr;
    padding: 32px 22px 0px 22px;
    gap: 20px;
    border-radius: 28px;
    text-align: left;
    overflow: visible;
  }

  .promo-content-col {
    text-align: left;
  }

  .promo-badge {
    margin-bottom: 14px;
  }

  .promo-title {
    font-size: 26px;
    text-align: left;
    margin-bottom: 14px;
    line-height: 1.25;
  }

  .promo-desc {
    margin: 0 0 22px 0;
    font-size: 14.5px;
    text-align: left;
    line-height: 1.6;
  }

  .btn-promo-cta {
    display: inline-flex;
    padding: 13px 30px;
    font-size: 14.5px;
  }

  .promo-image-col {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 6px;
  }

  .promo-image-col img {
    width: 106%;
    max-width: 420px;
    margin: 0 auto -24px auto;
  }
}

/* ==========================================================================
   9. PHÂN HỆ SẢN PHẨM BÁN CHẠY NHẤT (BESTSELLER CAROUSEL & GRID)
   ========================================================================== */
.home-bestseller-section {
  padding: 30px 24px 75px;
  background-color: #ffffff;
}

.home-bestseller-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.bestseller-header {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}

.bestseller-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bestseller-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hot-badge {
  background: #ffe4e6;
  color: #e11d48;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.bestseller-nav-btns {
  display: flex;
  gap: 8px;
  margin-left: 6px;
}

.bestseller-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all 0.2s ease;
}

.bestseller-arrow:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.bestseller-arrow svg {
  width: 16px;
  height: 16px;
}

.bestseller-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding: 6px 2px 14px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bestseller-grid::-webkit-scrollbar {
  display: none;
}

.bestseller-card {
  flex: 0 0 calc((100% - 60px) / 4);
  width: calc((100% - 60px) / 4);
  min-width: calc((100% - 60px) / 4);
  max-width: calc((100% - 60px) / 4);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 28px;
  padding: 12px 14px 16px;
  background-color: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.bestseller-card:hover {
  background-color: #16a34a;
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.32);
}

/* Con dấu / Badge Bestseller tùy chỉnh tải từ Admin */
.custom-bestseller-stamp {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 44px;
  height: 44px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.custom-bestseller-stamp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.16));
}

.bestseller-card:hover .custom-bestseller-stamp {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
}

/* Badge Bán chạy góc trên */
.card-hot-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  /* transform removed */
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.card-hot-badge span {
  background: #ffe4e6;
  color: #e11d48;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.bestseller-card:hover .card-hot-badge {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bestseller-card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Khối hiển thị ảnh sản phẩm - Cố định chiều cao và khoảng cách để không bị giật */
.bestseller-img-wrap {
  position: relative;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 28px 0 10px 0;
  border-radius: 18px;
  background-color: transparent;
  transition: background-color 0.25s ease;
  box-sizing: border-box;
}

.bestseller-card:hover .bestseller-img-wrap {
  background-color: #ffffff;
}

.bestseller-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
  display: block;
}

/* Khối thông tin - Cố định padding để chữ không bị xô lệch */
.bestseller-info-wrap {
  background: #f8fafc;
  border-radius: 20px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #f1f5f9;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  box-sizing: border-box;
}

.bestseller-card:hover .bestseller-info-wrap {
  background: transparent;
  border-color: transparent;
}

.bestseller-prod-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.bestseller-card:hover .bestseller-prod-name {
  color: #ffffff;
  text-align: center;
}

.bestseller-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  transition: all 0.25s ease;
}

.bestseller-card:hover .bestseller-price-row {
  justify-content: center;
}

.sale-price {
  font-size: 16.5px;
  font-weight: 900;
  color: #16a34a;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.bestseller-card:hover .sale-price {
  color: #ffffff;
}

.regular-price {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
  transition: color 0.25s ease;
}

.bestseller-card:hover .regular-price {
  color: rgba(255, 255, 255, 0.65);
}

.bestseller-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  transition: all 0.25s ease;
}

.bestseller-card:hover .bestseller-rating-row {
  justify-content: center;
}

.stars-gold {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 1px;
  transition: color 0.25s ease;
}

.bestseller-card:hover .stars-gold {
  color: #facc15;
}

.sold-count {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  transition: color 0.25s ease;
}

.bestseller-card:hover .sold-count {
  color: rgba(255, 255, 255, 0.75);
}

/* Nút Mua hàng ở chân thẻ - Luôn giữ không gian để không gây giật */
.btn-card-buy {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #dcfce7;
  color: #15803d;
  font-size: 14.5px;
  font-weight: 800;
  border-radius: 14px;
  text-decoration: none;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease, visibility 0.25s ease;
  box-sizing: border-box;
}

.bestseller-card:hover .btn-card-buy {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-card-buy:hover {
  background: #ffffff;
  color: #16a34a;
}

@media (max-width: 1024px) {
  .bestseller-card {
    flex: 0 0 calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
    min-width: calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
  }
}

@media (max-width: 768px) {
  .home-bestseller-section {
    padding: 20px 16px 50px;
  }

  .bestseller-title {
    font-size: 22px;
  }

  .bestseller-grid {
    gap: 12px;
  }

  .bestseller-card {
    flex: 0 0 calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
    min-width: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }

  .bestseller-img-wrap {
    height: 180px;
  }

  .bestseller-info-wrap {
    padding: 12px 10px;
    border-radius: 16px;
  }

  .bestseller-prod-name {
    font-size: 13.5px;
    min-height: 38px;
  }

  .sale-price {
    font-size: 15px;
  }

  .sold-count {
    font-size: 11px;
  }
}

/* ==========================================================================
   10. GIAO DIỆN HEADER MOBILE & DRAWER SLIDE MENU
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
}

.mobile-search-row {
  display: none;
}

.mobile-drawer-overlay {
  display: none;
}

.mobile-drawer {
  display: none;
}

@media (max-width: 991px) {
  .header {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }

  .header-container {
    padding: 10px 16px;
    display: grid;
    grid-template-columns: 44px 1fr 88px;
    align-items: center;
    width: 100%;
  }

  /* Nút Hamburger 3 gạch */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    justify-self: start;
    z-index: 10;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: #1e293b;
    border-radius: 2px;
  }

  /* Logo căn giữa */
  .logo {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo img {
    height: 48px;
  }

  /* Ẩn thanh menu desktop ngang */
  .nav {
    display: none !important;
  }

  /* Icons bên phải */
  .header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .desktop-search-btn {
    display: none !important;
  }

  .action-btn {
    width: 38px;
    height: 38px;
  }

  /* Hàng tìm kiếm riêng bên dưới */
  .mobile-search-row {
    display: block;
    width: 100%;
    padding: 4px 16px 14px 16px;
    background: #ffffff;
  }

  .mobile-search-form {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
  }

  .mobile-search-form input {
    width: 100%;
    height: 44px;
    padding: 8px 46px 8px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14.5px;
    font-family: inherit;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
  }

  .mobile-search-form input:focus {
    border-color: var(--primary-green);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 136, 72, 0.1);
  }

  .mobile-search-form button {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .mobile-search-form button svg {
    width: 20px;
    height: 20px;
  }

  /* DRAWER MENU TRƯỢT TỪ TRÁI SANG (KHÔNG BỊ CHE KHUẤT) */
  .mobile-drawer-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-drawer {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 999999;
    transform: translateX(-110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    flex-direction: column;
    box-shadow: none;
  }

  .mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.25);
  }

  .drawer-header {
    padding: 16px 20px;
    min-height: 64px;
    border-bottom: 1.5px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
  }

  .drawer-logo img {
    height: 44px;
    width: auto;
    display: block;
  }

  .drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #475569;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
  }

  .drawer-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
  }

  .drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    scrollbar-width: thin;
  }

  .drawer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
  }

  .drawer-nav-item {
    border-bottom: 1px solid #f1f5f9;
  }

  .drawer-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .drawer-nav-link {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    padding: 13px 0;
    display: block;
    flex: 1;
    transition: color 0.2s ease;
  }

  .drawer-nav-link:hover,
  .drawer-nav-link.active {
    color: var(--primary-green);
  }

  .drawer-arrow-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-left: 8px;
    flex-shrink: 0;
  }

  .drawer-submenu {
    list-style: none;
    padding: 6px 0 10px 14px;
    display: none;
    flex-direction: column;
    gap: 6px;
    border-left: 2.5px solid #86efac;
    margin-left: 8px;
    margin-bottom: 6px;
    background: #f8fdfa;
    border-radius: 0 8px 8px 0;
  }

  .has-drawer-dropdown.open .drawer-submenu {
    display: flex;
  }

  .drawer-submenu a {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 6px 10px;
    display: block;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .drawer-submenu a:hover {
    color: var(--primary-green);
    background: rgba(0, 136, 72, 0.08);
  }

  .drawer-footer {
    padding: 16px 20px;
    border-top: 1.5px solid #f1f5f9;
    background: #f8fafc;
  }
}

/* ==========================================================================
   PHÂN HỆ GIẢI PHÁP DOANH NGHIỆP (B2B SOLUTIONS)
   ========================================================================== */
.b2b-solution-section {
  padding: 70px 20px 80px;
  background-color: #F2FFF7;
  position: relative;
  overflow: hidden;
}

.b2b-solution-container {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* 1. Pill Badge */
.b2b-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.b2b-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eaf8ee;
  border: 1.5px solid #9ce3b3;
  color: var(--primary-green);
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.b2b-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary-green);
}

/* 2. Tiêu đề & Phụ đề */
.b2b-title {
  font-size: 38px;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.b2b-highlight {
  color: var(--primary-green);
  font-style: italic;
}

.b2b-subtitle {
  font-size: 15.5px;
  color: #4b5563;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 44px;
}

/* 3. Lưới 3 Thẻ Thông Số (Stats Grid) */
.b2b-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto 44px;
}

.b2b-stat-card {
  background: #ffffff;
  border: 1px solid #eef4ef;
  border-radius: 20px;
  padding: 34px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.035);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.b2b-stat-number {
  font-size: 46px;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.b2b-stat-label {
  display: flex;
  flex-direction: column;
  font-size: 14.5px;
  font-weight: 600;
  color: #475569;
  line-height: 1.35;
}

/* 4. Khối CTA Zalo */
.b2b-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-zalo-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #0068ff;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 9999px;
  box-shadow: 0 10px 24px rgba(0, 104, 255, 0.38);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-zalo-quote svg,
.btn-zalo-quote .zalo-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.btn-zalo-quote:hover {
  background-color: #0056d6;
  box-shadow: 0 10px 24px rgba(0, 104, 255, 0.38);
}

.b2b-cta-note {
  font-size: 13.5px;
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================================================
   BANNER CÂU CHUYỆN THƯƠNG HIỆU (FULL VIỀN 100%)
   ========================================================================== */
.brand-story-banner-section {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: block;
}

.brand-story-banner-wrap {
  width: 100%;
  position: relative;
  display: block;
  line-height: 0;
}

.brand-story-banner-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.btn-story-explore {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #d6f6e5;
  color: #0b6736;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 40px;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  white-space: nowrap;
  line-height: 1.2;
  z-index: 5;
  cursor: pointer;
}

.btn-story-explore:hover {
  background-color: #c1f0d5;
  color: #044b25;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
  .btn-story-explore {
    bottom: 8%;
    font-size: 14px;
    padding: 10px 30px;
  }
}

@media (max-width: 600px) {
  .btn-story-explore {
    bottom: 7%;
    font-size: 12px;
    padding: 7px 20px;
    border-radius: 9999px;
  }
}

@media (max-width: 400px) {
  .btn-story-explore {
    bottom: 6%;
    font-size: 11px;
    padding: 5px 15px;
  }
}

/* ==========================================================================
   CÁC NÚT LIÊN HỆ NỔI BÊN PHẢI (FLOATING WIDGETS)
   ========================================================================== */
.floating-contact-widget {
  position: fixed;
  right: 24px;
  bottom: 28px;
  transform: translateX(80px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.floating-contact-widget.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.floating-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.floating-btn svg {
  width: 22px;
  height: 22px;
}

.floating-btn:hover {
  /* scale removed */
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

/* 1. Nút gọi điện thoại đỏ */
.floating-btn.btn-call {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  animation: floatPulse 2s infinite;
}

/* 2. Nút Zalo xanh dương */
.floating-btn.btn-zalo {
  background: #ffffff;
  padding: 0;
}

.floating-zalo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3. Nút Mail xanh lam */
.floating-btn.btn-mail {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* 4. Nút Bản đồ cam vàng */
.floating-btn.btn-map {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

@keyframes floatPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Responsive cho màn hình máy tính bảng và điện thoại */
@media (max-width: 900px) {
  .b2b-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  
  .b2b-stat-number {
    font-size: 36px;
  }
  
  .b2b-stat-card {
    padding: 24px 12px;
  }

  .b2b-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .b2b-solution-section {
    padding: 50px 16px 60px;
  }

  .b2b-title {
    font-size: 24px;
  }

  .b2b-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .b2b-stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 340px;
  }

  .b2b-stat-card {
    padding: 22px 16px;
  }

  .b2b-stat-number {
    font-size: 40px;
  }

  .floating-contact-widget {
    right: 14px;
    bottom: 20px;
    gap: 10px;
  }

  .floating-btn {
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   PHÂN HỆ ĐỐI TÁC KHÁCH HÀNG & BÁO CHÍ TRUYỀN THÔNG (SLIDER CHẠY NGANG)
   ========================================================================== */
.home-partners-main-section {
  padding: 60px 0 80px;
  background-color: #ffffff;
  overflow: hidden;
}

.partners-main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.partners-block {
  margin-bottom: 52px;
}

.partners-block:last-child {
  margin-bottom: 0;
}

.partners-heading {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* Khung bọc Slider có hiệu ứng mờ 2 mép biên (Fade Edge Mask) */
.partners-slider-track-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

/* Dải Slider chuyển động mượt mà liên tục (Marquee Track) */
.partners-slider-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* Tốc độ trượt ngang (28s một vòng tuần hoàn) */
.customer-track {
  animation: partnersMarqueeScroll 28s linear infinite;
}

.press-track {
  animation: partnersMarqueeScroll 32s linear infinite;
}

/* Rê chuột vào sẽ tạm dừng trượt */
.partners-slider-track:hover {
  animation-play-state: paused;
}

.partners-slider-group,
.press-slider-group {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
}

/* Thẻ Card Đối tác Khách hàng */
.partner-card-item {
  width: 195px;
  height: 88px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1.5px solid #f1f5f9;
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.025);
  transition: all 0.25s ease;
  user-select: none;
}

.partner-card-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.partner-card-item img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Thẻ Logo Báo Chí */
.press-logo-item {
  width: 180px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  transition: opacity 0.25s ease;
  user-select: none;
}

.press-logo-item img {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.press-logo-item:hover img {
  opacity: 0.85;
}

.partner-empty-hint {
  text-align: center;
  padding: 30px;
  background: #f8fafc;
  border-radius: 12px;
  color: #64748b;
  font-size: 14px;
  border: 1px dashed #cbd5e1;
}

/* Animation trượt ngang vô tận */
@keyframes partnersMarqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .home-partners-main-section {
    padding: 40px 0 60px;
  }

  .partners-heading {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .partner-card-item {
    width: 160px;
    height: 76px;
    padding: 10px 14px;
    border-radius: 12px;
  }

  .partner-card-item img {
    max-height: 40px;
  }

  .press-logo-item {
    width: 145px;
    height: 60px;
    padding: 8px 12px;
  }

  .press-logo-item img {
    max-height: 36px;
  }

  .customer-track {
    animation-duration: 20s;
  }

  .press-track {
    animation-duration: 22s;
  }
}

/* ==========================================================================
   PHÂN HỆ TIN TỨC & BÀI VIẾT (NEWS & BLOG CAROUSEL - KHÔNG NHẢY HOVER)
   ========================================================================== */
.home-news-section {
  padding: 68px 24px 76px;
  background-color: #f1f3f5;
}

.home-news-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  align-items: center;
}

/* Cột trái: Tiêu đề & Giới thiệu */
.news-intro-col {
  display: flex;
  flex-direction: column;
}

.news-main-title {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.18;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.news-more-link {
  display: inline-block;
  color: #008848;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  margin-bottom: 14px;
}

.news-more-link:hover {
  text-decoration: underline;
}

.news-intro-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  max-width: 250px;
}

/* Cột phải: Slider bài viết */
.news-slider-col {
  position: relative;
  min-width: 0;
}

.news-carousel-wrapper {
  position: relative;
  width: 100%;
}

.news-carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 4px 10px 4px;
}

.news-carousel-track::-webkit-scrollbar {
  display: none;
}

/* Thẻ Card Bài Viết (Đứng yên cố định, KHÔNG NHẢY khi hover) */
.news-card-item {
  width: calc(33.333% - 15px);
  min-width: 265px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  /* Giữ thẻ cố định, không transform/nhảy */
  transform: none !important;
  transition: none !important;
}

.news-card-item:hover {
  transform: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.news-card-thumb {
  height: 185px;
  width: 100%;
  overflow: hidden;
  background: #e2e8f0;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Giữ hình ảnh cố định không zoom */
  transform: none !important;
}

.news-card-body {
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 10px;
  font-weight: 500;
}

.news-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-card-meta svg {
  color: #64748b;
  flex-shrink: 0;
}

.news-card-excerpt {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-text {
  color: #008848;
  font-weight: 700;
  margin-left: 2px;
}

/* Nút Mũi tên Prev & Next điều hướng tin tức */
.news-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #008848;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.news-arrow-btn:hover {
  background: #008848;
  color: #ffffff;
  border-color: #008848;
}

.news-arrow-btn.prev {
  left: -14px;
}

.news-arrow-btn.next {
  right: -14px;
}

.news-arrow-btn svg {
  width: 18px;
  height: 18px;
}

/* Dots chuyển trang */
.news-dots-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.news-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.news-dot.active {
  background: #008848;
}

/* Responsive */
@media (max-width: 992px) {
  .home-news-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .news-intro-col {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .news-intro-desc {
    max-width: 500px;
  }

  .news-arrow-btn.prev {
    left: 4px;
  }

  .news-arrow-btn.next {
    right: 4px;
  }
}

@media (max-width: 640px) {
  .home-news-section {
    padding: 36px 16px 44px;
  }

  .news-main-title {
    font-size: 24px;
  }

  .news-card-item {
    min-width: 240px;
  }

  .news-card-thumb {
    height: 150px;
  }

  .news-card-body {
    padding: 14px;
  }

  .news-arrow-btn {
    display: flex !important;
    width: 36px;
    height: 36px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 20;
    color: #008848;
  }

  .news-arrow-btn.prev {
    left: 2px;
  }

  .news-arrow-btn.next {
    right: 2px;
  }
}

/* ==========================================================================
   FOOTER CHUYÊN NGHIỆP (PREMIUM BRAND FOOTER)
   ========================================================================== */
.site-footer {
  background-color: #004826;
  color: #d1fae5;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 1. Thanh Đăng Ký Bản Tin (Newsletter Bar) - Card Nổi Bật Tương Phản */
.footer-newsletter-wrap {
  padding: 40px 0 20px;
}

.newsletter-flex {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.newsletter-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.newsletter-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #008848;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.newsletter-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.newsletter-desc {
  font-size: 13.5px;
  color: #64748b;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 440px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13.5px;
  outline: none;
  transition: all 0.25s ease;
}

.newsletter-input:focus {
  border-color: #008848;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 136, 72, 0.15);
}

.newsletter-input::placeholder {
  color: #94a3b8;
}

.newsletter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  background: #008848;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.newsletter-btn:hover {
  background: #006837;
  /* transform removed */
  box-shadow: 0 4px 14px rgba(0, 136, 72, 0.3);
}

/* 2. Thân Footer Chính (4 Cột) */
.footer-main-wrap {
  padding: 36px 0 54px;
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.95fr 1fr;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Cột 1: Logo & Pháp nhân */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 14px;
  max-width: 170px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 10px;
}

.footer-logo-link img {
  max-height: 40px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.footer-about-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: #e2f7ec;
  margin-bottom: 18px;
}

.footer-company-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}

.company-name {
  font-weight: 800;
  color: #ffffff;
  font-size: 13.5px;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.company-item {
  display: flex;
  gap: 6px;
  line-height: 1.5;
}

.item-label {
  color: #a7f3d0;
  flex-shrink: 0;
  font-weight: 500;
}

.item-val {
  color: #ffffff;
}

/* Cột 2 & 3: Tiêu đề & Danh sách link */
.footer-heading {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 22px;
  position: relative;
  letter-spacing: -0.01em;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 28px;
  height: 2.5px;
  background: #4ade80;
  border-radius: 2px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-link {
  color: #d1fae5;
  text-decoration: none;
  font-size: 13.5px;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-nav-link:hover {
  color: #ffffff;
  font-weight: 600;
  transform: translateX(4px);
}

/* Cột 4: Hotline & Mạng xã hội */
.footer-hotline-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hotline-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  color: #008848;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hotline-label {
  font-size: 12px;
  color: #d1fae5;
  margin-bottom: 2px;
  font-weight: 500;
}

.hotline-number {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.footer-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #e2f7ec;
  margin-bottom: 20px;
}

.footer-email-row svg {
  color: #4ade80;
}

.footer-email-row a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-email-row a:hover {
  color: #4ade80;
}

.footer-social-wrap {
  margin-bottom: 20px;
}

.social-label {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.social-icons-flex {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-btn:hover {
  /* transform removed */
  background: #ffffff;
  color: #008848;
}

.social-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.social-btn.zalo:hover {
  background: #0068ff;
  border-color: #0068ff;
  color: #ffffff;
}

.social-btn.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #ffffff;
}

.social-btn.tiktok:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.footer-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-item-pill {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* 3. Footer Bottom (Bản quyền & Liên kết) */
.footer-bottom-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  font-size: 13px;
  background-color: #00371d;
}

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

.footer-copyright {
  color: #a7f3d0;
}

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

.footer-bottom-links a {
  color: #a7f3d0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

.footer-bottom-links .sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .newsletter-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 20px;
  }

  .newsletter-form {
    max-width: 100%;
  }

  .footer-grid-4 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-main-wrap {
    padding: 28px 0 36px;
  }

  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ==========================================================================
   GIAO DIỆN DÀNH RIÊNG CHO MOBILE (DEDICATED MOBILE APP UI/UX)
   ========================================================================== */

/* 1. Thanh Bottom Navigation Bar (Cố định dưới cùng màn hình Mobile) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #e2e8f0;
  z-index: 998;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 0 8px;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  flex: 1;
}

.mobile-nav-tab svg {
  width: 22px;
  height: 22px;
  stroke: #64748b;
  transition: all 0.2s ease;
}

.mobile-nav-tab.active,
.mobile-nav-tab:hover {
  color: #008848;
}

.mobile-nav-tab.active svg,
.mobile-nav-tab:hover svg {
  stroke: #008848;
}

.mobile-nav-zalo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Nút Gọi ngay nổi bật ở trung tâm (Elevated Call Button) */
.mobile-nav-tab.center-call-tab {
  position: relative;
  top: -12px;
  flex: 1;
}

.center-call-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a656 0%, #008848 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 136, 72, 0.45);
  position: relative;
  transition: transform 0.2s ease;
}

.center-call-btn svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  stroke: none;
}

.center-call-btn::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid #00a656;
  opacity: 0.8;
  animation: pulseCallRing 2s infinite cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

@keyframes pulseCallRing {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.mobile-nav-tab.center-call-tab .call-text {
  font-weight: 700;
  color: #008848;
  margin-top: 2px;
}

/* 2. Áp dụng quy tắc hiển thị trên Mobile (<= 768px) */
@media (max-width: 768px) {
  
  /* Tạo khoảng trống dưới cùng để không bị thanh Bottom Bar che mất nội dung */
  body {
    padding-bottom: 68px;
  }

  /* Hiển thị thanh Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
  }

  /* Ẩn thanh liên hệ nổi góc phải (vì đã chuyển vào thanh Bottom Bar) */
  .floating-contact-widget {
    display: none !important;
  }

  /* Tối ưu Header Mobile */
  .header-container {
    padding: 10px 16px;
    height: 60px;
  }

  .logo img {
    height: 38px;
  }

  .mobile-search-row {
    padding: 8px 16px 10px;
  }

  .mobile-search-form input {
    height: 38px;
    font-size: 13px;
    padding: 0 38px 0 14px;
    border-radius: 9999px;
  }

  .mobile-search-form button {
    right: 12px;
  }

  /* Tối ưu Hero Banner Slider trên Mobile */
  .hero-slider-section {
    padding: 0;
  }

  .hero-slider-container {
    aspect-ratio: 16 / 9;
    min-height: 200px;
    border-radius: 0;
  }

  .slider-arrow {
    display: none !important; /* Vuốt chạm bằng tay, ẩn nút mũi tên */
  }

  .slider-dots {
    bottom: 8px;
  }

  .slider-dot {
    width: 6px;
    height: 6px;
  }

  .slider-dot.active {
    width: 18px;
  }

  /* 3 Khối cam kết vàng trên Mobile */
  .banner-features-section {
    padding: 20px 16px;
  }

  .features-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 12px 16px;
    border-radius: 12px;
  }

  .feature-text {
    font-size: 12.5px;
  }

  /* Danh mục sản phẩm (Vòng tròn) trên Mobile: Chia 3 cột hoặc vuốt ngang */
  .home-categories-section {
    padding: 32px 16px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .category-img-box {
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
  }

  .category-title {
    font-size: 12px;
    line-height: 1.3;
  }

  /* ==========================================================================
     PHÂN HỆ GIẢI PHÁP DOANH NGHIỆP (B2B) TRÊN MOBILE - CHUẨN 100% THEO MẪU ẢNH
     ========================================================================== */
  .b2b-solution-section {
    padding: 44px 16px 52px;
    background-color: #F2FFF7;
  }

  .b2b-solution-container {
    max-width: 100%;
    padding: 0;
  }

  .b2b-badge-wrap {
    margin-bottom: 16px;
  }

  .b2b-badge {
    background: #ffffff;
    border: 1px solid #86efac;
    color: #008848;
    padding: 6px 16px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(0, 136, 72, 0.04);
  }

  .b2b-badge svg {
    width: 14px;
    height: 14px;
    stroke: #008848;
  }

  .b2b-title {
    font-size: 23px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
  }

  .b2b-highlight {
    color: #00a656;
    font-style: italic;
  }

  .b2b-subtitle {
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto 28px;
    padding: 0 4px;
  }

  /* 3 Thẻ thống kê dàn 1 hàng 3 cột trên mobile */
  .b2b-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 auto 32px;
  }

  .b2b-stat-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 22px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  }

  .b2b-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #00a656;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
  }

  .b2b-stat-label {
    font-size: 11.5px;
    color: #475569;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
  }

  /* Nút CTA Nhắn Zalo nhận báo giá ngay */
  .b2b-cta-wrap {
    width: 100%;
    align-items: center;
  }

  .btn-zalo-quote {
    width: 100%;
    max-width: 330px;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 16px;
    background-color: #0068ff;
    box-shadow: 0 8px 24px rgba(0, 104, 255, 0.35);
  }

  .btn-zalo-quote .zalo-icon-img,
  .btn-zalo-quote svg {
    width: 22px;
    height: 22px;
  }

  .b2b-cta-note {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 8px;
    font-weight: 400;
  }

  /* Slider Đối tác & Logo báo chí */
  .partners-marquee-section {
    padding: 32px 0 36px;
  }

  .marquee-item-card {
    width: 125px;
    height: 52px;
    padding: 6px 12px;
  }

  .marquee-item-press {
    width: 110px;
    height: 48px;
  }

  /* Phân hệ Tin tức trên Mobile */
  .home-news-section {
    padding: 36px 16px 44px;
  }

  .news-main-title {
    font-size: 22px;
  }

  .news-intro-desc {
    font-size: 13px;
  }

  .news-card-item {
    min-width: 230px;
    max-width: 230px;
  }

  .news-card-thumb {
    height: 140px;
  }

  .news-card-title {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .news-card-excerpt {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
}

/* Tối ưu cho màn hình nhỏ (<= 480px) */
@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .category-img-box {
    width: 64px;
    height: 64px;
  }

  .section-title {
    font-size: 20px;
  }
}

/* ==========================================================================
   13. TRANG TẠO TÀI KHOẢN (REGISTER PAGE) - CHUẨN 100% THEO MẪU ẢNH
   ========================================================================== */
.auth-page-section {
  padding: 80px 24px 120px;
  background-color: #ffffff;
  min-height: calc(100vh - 420px);
}

.auth-page-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 80px;
  align-items: start;
}

.auth-page-left {
  padding-top: 12px;
}

.auth-page-heading {
  font-size: 40px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.auth-heading-line {
  width: 52px;
  height: 3px;
  background-color: #000000;
}

.auth-page-right {
  max-width: 480px;
}

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

.reg-input {
  width: 100%;
  height: 48px;
  background-color: #f0f0f0;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 12px 16px;
  font-size: 14px;
  color: #1f2937;
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.reg-input::placeholder {
  color: #757575;
  font-size: 13.5px;
}

.reg-input:focus {
  background-color: #ffffff;
  border-color: #008848;
  box-shadow: 0 0 0 3px rgba(0, 136, 72, 0.12);
}

.reg-gender-row {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 14px 0 16px 2px;
}

.reg-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  user-select: none;
}

.reg-radio-label input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: #008848;
  cursor: pointer;
}

.reg-recaptcha-text {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin: 16px 0 20px;
  text-align: left;
}

.reg-recaptcha-text a {
  color: #2563eb;
  text-decoration: none;
}

.reg-recaptcha-text a:hover {
  text-decoration: underline;
}

.btn-register-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #008848;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 13px 44px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-register-submit:hover {
  background-color: #00703c;
}

.btn-register-submit:active {
  transform: scale(0.98);
}

.reg-footer-link {
  margin-top: 24px;
  font-size: 13.5px;
  color: #6b7280;
}

.reg-footer-link a {
  color: #008848;
  font-weight: 600;
  text-decoration: none;
}

.reg-footer-link a:hover {
  text-decoration: underline;
}

.auth-alert {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.auth-alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.auth-alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Responsive Register Page */
@media (max-width: 860px) {
  .auth-page-section {
    padding: 36px 16px 60px;
  }

  .auth-page-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .auth-page-heading {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .btn-register-submit {
    width: 100%;
  }
}

/* ==========================================================================
   14. TRANG HỒ SƠ CÁ NHÂN & CÀI ĐẶT (PROFILE.PHP)
   ========================================================================== */
.profile-page-section {
  padding: 40px 20px 90px;
  background-color: #f8fafc;
  min-height: calc(100vh - 380px);
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
}

.profile-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 24px;
}

.profile-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.profile-breadcrumb a:hover {
  color: #008848;
}

.profile-alert {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-alert.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.profile-alert.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.profile-layout-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

/* SIDEBAR THÀNH VIÊN */
.profile-sidebar-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 28px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.profile-user-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 18px;
}

.profile-avatar-wrap {
  position: relative;
  margin-bottom: 14px;
}

.profile-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.profile-display-name {
  font-size: 16.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.profile-display-email {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 12px;
}

.profile-role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.profile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  color: #475569;
  transition: all 0.15s ease;
}

.profile-nav-item:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

.profile-nav-item.active {
  background-color: #f1f5f9;
  color: #008848;
  font-weight: 700;
}

.profile-nav-item.nav-admin-link {
  color: #0284c7;
  background-color: #f8fafc;
  margin-top: 8px;
}

.profile-nav-item.nav-admin-link:hover {
  background-color: #f0f9ff;
}

.profile-nav-item.nav-logout-link {
  color: #ef4444;
  margin-top: 4px;
}

.profile-nav-item.nav-logout-link:hover {
  background-color: #fef2f2;
}

/* NỘI DUNG CHÍNH PROFILE */
.profile-content-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 32px 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.tab-header {
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 24px;
}

.tab-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.tab-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 3px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.p-input,
.p-select,
.p-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.p-input:focus,
.p-select:focus,
.p-textarea:focus {
  border-color: #008848;
  box-shadow: 0 0 0 3px rgba(0, 136, 72, 0.1);
}

.gender-radio-group {
  display: flex;
  gap: 20px;
  height: 42px;
  align-items: center;
}

.gender-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.gender-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #008848;
}

.btn-p-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #008848;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-p-primary:hover {
  background-color: #00703c;
}

.btn-p-primary:active {
  transform: scale(0.99);
}

/* TAB 2: ACCOUNT INFO BOXES */
.account-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.info-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.info-value {
  font-size: 14.5px;
  font-weight: 600;
  color: #0f172a;
}

.info-tag {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

.info-tag.tag-verified {
  color: #008848;
  font-weight: 600;
}

.info-tag.tag-active {
  color: #22c55e;
  font-weight: 600;
}

.security-section-title {
  padding-top: 8px;
  margin-bottom: 18px;
}

.security-section-title h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
}

.security-section-title p {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

/* TAB 3: TIMELINE HOẠT ĐỘNG */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 10px;
}

.activity-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 15px;
  bottom: 15px;
  width: 1px;
  background-color: #e2e8f0;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.activity-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  flex-shrink: 0;
}

.activity-body {
  flex: 1;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 16px;
}

.activity-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

.activity-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.activity-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 5px;
}

.activity-badge.badge-active {
  background-color: #f1f5f9;
  color: #008848;
  border: 1px solid #e2e8f0;
}

/* TAB 4: SETTINGS SWITCH TOGGLES */
.settings-group-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
}

.settings-group-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.setting-toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.setting-toggle-item:not(:last-child) {
  border-bottom: 1px dashed #e2e8f0;
}

.toggle-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.toggle-desc {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

/* Switch Toggle Component */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.switch-toggle input:checked + .slider {
  background-color: #008848;
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(20px);
}

/* Danger Zone */
.danger-zone-box {
  background-color: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 22px 24px;
}

.danger-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.danger-icon {
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 2px;
}

.danger-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #991b1b;
}

.danger-desc {
  font-size: 13px;
  color: #7f1d1d;
  margin-top: 2px;
}

.btn-danger-submit {
  background-color: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-danger-submit:hover {
  background-color: #b91c1c;
}

/* Dark mode theme */
body.dark-mode {
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
}

body.dark-mode .profile-sidebar-card,
body.dark-mode .profile-content-card,
body.dark-mode .info-box,
body.dark-mode .settings-group-box,
body.dark-mode .activity-body {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

body.dark-mode .p-input,
body.dark-mode .p-select,
body.dark-mode .p-textarea {
  background-color: #0f172a !important;
  border-color: #475569 !important;
  color: #f1f5f9 !important;
}

body.dark-mode .tab-title,
body.dark-mode .profile-display-name,
body.dark-mode .toggle-title,
body.dark-mode .info-value,
body.dark-mode .activity-title {
  color: #f8fafc !important;
}

/* Responsive Profile */
@media (max-width: 900px) {
  .profile-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile-content-card {
    padding: 24px 18px;
  }

  .form-row-2,
  .account-info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ==========================================================================
   15. TRANG CHI TIẾT SẢN PHẨM (PRODUCT-DETAIL.PHP) - MOBILE & DESKTOP OPTIMIZED
   ========================================================================== */
.product-detail-section {
  padding: 24px 0 90px;
  background-color: #f8fafc;
  min-height: calc(100vh - 380px);
  width: 100%;
  overflow-x: hidden;
}

.product-detail-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.pdetail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  flex-wrap: wrap;
  line-height: 1.5;
}

.pdetail-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.pdetail-breadcrumb a:hover {
  color: #008848;
}

.bc-sep {
  color: #cbd5e1;
}

.bc-current {
  color: #0f172a;
  font-weight: 700;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* MAIN PRODUCT CARD WRAPPER */
.pdetail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  margin-bottom: 36px;
  width: 100%;
  box-sizing: border-box;
}

/* CỘT GALLERY HÌNH ẢNH */
.pdetail-gallery-col {
  width: 100%;
  min-width: 0;
}

.pdetail-main-img-card {
  position: relative;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #eaedf1;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.pdetail-main-img {
  max-width: 100%;
  max-height: 340px;
  height: auto;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.08));
}

.pdetail-main-img-card:hover .pdetail-main-img {
  /* scale removed */
}

.pdetail-badge-sale {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
  z-index: 2;
  letter-spacing: 0.5px;
}

.pdetail-badge-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: #008848;
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 136, 72, 0.25);
  z-index: 2;
}

.pdetail-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}

.trust-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  transition: all 0.2s ease;
}

.trust-pill:hover {
  border-color: #86efac;
  background: #f0fdf4;
}

.trust-pill svg {
  color: #008848;
}

/* CỘT THÔNG TIN MUA HÀNG */
.pdetail-info-col {
  width: 100%;
  min-width: 0;
}

.pdetail-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pdetail-brand {
  color: #008848;
}

.pdetail-stock-status.in-stock {
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
}

.stock-dot {
  width: 7px;
  height: 7px;
  background-color: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.pdetail-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 10px 0 12px;
  letter-spacing: -0.3px;
}

.pdetail-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.rating-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 1px;
}

.rating-score {
  font-weight: 800;
  color: #0f172a;
}

.sold-count {
  color: #059669;
  font-weight: 600;
}

/* KHỐI GIÁ BÁN */
.pdetail-price-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
  border: 1.5px solid #dcfce7;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.current-price {
  font-size: 32px;
  font-weight: 900;
  color: #008848;
  letter-spacing: -0.5px;
}

.original-price {
  font-size: 18px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.save-tag {
  background-color: #fee2e2;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.price-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

.pdetail-excerpt {
  background: #f8fafc;
  border-left: 3px solid #008848;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 22px;
}

/* VARIANT OPTIONS (QUY CÁCH ĐÓNG GÓI) */
.pdetail-variant-section {
  margin-bottom: 22px;
}

.variant-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.variant-options-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.variant-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 18px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.variant-btn span {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.variant-btn small {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.variant-btn.active {
  border-color: #008848;
  background-color: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(0, 136, 72, 0.2);
}

.variant-btn.active span {
  color: #008848;
}

.variant-btn:hover:not(.active) {
  border-color: #94a3b8;
  background-color: #f8fafc;
}

/* QUANTITY & BUTTONS */
.pdetail-action-group {
  margin-bottom: 10px;
}

.qty-selector-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.qty-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: #f8fafc;
  color: #0f172a;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

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

.qty-input {
  width: 50px;
  height: 38px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  outline: none;
  background: #ffffff;
}

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

.btn-add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #008848;
  border: 2px solid #008848;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-to-cart:hover {
  background: #f0fdf4;
  /* transform removed */
  box-shadow: 0 4px 12px rgba(0, 136, 72, 0.15);
}

.btn-buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #008848 0%, #006837 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 136, 72, 0.3);
}

.btn-buy-now:hover {
  /* transform removed */
  box-shadow: 0 6px 18px rgba(0, 136, 72, 0.4);
}

.btn-zalo-b2b {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0284c7;
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-zalo-b2b:hover {
  background: #0369a1;
  /* transform removed */
}

/* =========================================================================
   TABS SECTION (SPECIFICATIONS, COOKING & REVIEWS)
   ========================================================================= */
.pdetail-tabs-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  margin-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}

.pdetail-tabs-nav {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pdetail-tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-nav-btn {
  background: none;
  border: none;
  padding: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-nav-btn:hover {
  color: #0f172a;
}

.tab-nav-btn.active {
  color: #008848;
}

.tab-nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #008848;
  border-radius: 3px 3px 0 0;
}

.detail-tab-pane {
  display: none;
  width: 100%;
}

.detail-tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

/* SPECS TABLE */
.specs-table-wrap {
  margin-bottom: 24px;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

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

.specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  line-height: 1.5;
}

.specs-table .spec-name {
  width: 220px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
}

.specs-table .spec-val {
  color: #1e293b;
}

.meter-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* COOKING STEPS */
.cooking-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.cooking-step-card {
  background: #f8fafc;
  border: 1px solid #eaedf1;
  border-radius: 14px;
  padding: 24px 20px;
  transition: all 0.2s ease;
}

.cooking-step-card:hover {
  border-color: #86efac;
  /* transform removed */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.step-num {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #008848 0%, #006837 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(0, 136, 72, 0.25);
}

.cooking-step-card h4 {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.cooking-step-card p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

/* REVIEWS TAB */
.reviews-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 32px;
  width: 100%;
}

.reviews-col-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}

.review-item-card {
  background: #f8fafc;
  border: 1px solid #eaedf1;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.review-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #008848 0%, #0f172a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.review-user-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.verified-buyer-tag {
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
}

.review-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-top: 2px;
}

.review-date {
  color: #94a3b8;
  font-size: 12px;
  margin-left: 8px;
}

.review-content {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.65;
  margin: 0;
}

.review-form-card {
  background: #f8fafc;
  border: 1px solid #eaedf1;
  border-radius: 14px;
  padding: 24px 20px;
}

.form-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.form-card-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 4px 0 16px;
}

/* =========================================================================
   RELATED PRODUCTS
   ========================================================================= */
.related-products-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
}

.related-header {
  text-align: center;
  margin-bottom: 28px;
}

.related-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.related-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.product-card {
  background: #ffffff;
  border: 1px solid #eaedf1;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.product-card:hover {
  /* transform removed */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-thumb-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  padding: 20px 14px;
  height: 190px;
  text-decoration: none;
  overflow: hidden;
}

.product-thumb-img {
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb-img {
  /* scale removed */
}

.product-tag-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  z-index: 2;
}

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

.product-cat-name {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
}

.product-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.product-card-title a:hover {
  color: #008848;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.product-card-price {
  font-size: 16px;
  font-weight: 800;
  color: #008848;
}

.product-card-original {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.btn-product-detail {
  display: block;
  text-align: center;
  background-color: #f1f5f9;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: auto;
  transition: all 0.2s ease;
}

.btn-product-detail:hover {
  background-color: #008848;
  color: #ffffff;
}

/* =========================================================================
   STICKY ACTION BAR TRÊN MOBILE (PRODUCT DETAIL BOTTOM BAR)
   ========================================================================= */
.pdetail-mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sticky-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sticky-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.sticky-icon-btn:active {
  background: #e2e8f0;
}

.sticky-icon-btn svg {
  color: #008848;
}

.sticky-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.sticky-btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #008848;
  color: #008848;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  flex: 1;
  white-space: nowrap;
}

.sticky-btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #008848 0%, #006837 100%);
  border: none;
  color: #ffffff;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  flex: 1.2;
  box-shadow: 0 3px 10px rgba(0, 136, 72, 0.3);
  white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES FOR PRODUCT DETAIL
   ========================================================================== */
@media (max-width: 1024px) {
  .pdetail-main-grid {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .cooking-steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .pdetail-main-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px;
  }

  .reviews-layout-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .product-detail-section {
    padding: 16px 0 100px;
  }

  .product-detail-container {
    padding: 0 12px;
  }

  .pdetail-breadcrumb {
    font-size: 12px;
    margin-bottom: 14px;
    gap: 6px;
  }

  .bc-current {
    max-width: 200px;
  }

  .pdetail-main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px 14px;
    border-radius: 16px;
    margin-bottom: 24px;
  }

  .pdetail-main-img-card {
    min-height: 260px;
    padding: 18px 12px;
    border-radius: 12px;
  }

  .pdetail-main-img {
    max-height: 240px;
  }

  .pdetail-trust-row {
    gap: 6px;
    margin-top: 12px;
  }

  .trust-pill {
    padding: 8px 4px;
    font-size: 10.5px;
    border-radius: 8px;
    gap: 4px;
  }

  .trust-pill svg {
    width: 15px;
    height: 15px;
  }

  .pdetail-title {
    font-size: 20px;
    line-height: 1.35;
    margin: 8px 0 10px;
  }

  .pdetail-rating-row {
    font-size: 12.5px;
    margin-bottom: 14px;
    gap: 6px;
  }

  .rating-stars {
    font-size: 14px;
  }

  .pdetail-price-box {
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
  }

  .current-price {
    font-size: 24px;
  }

  .original-price {
    font-size: 15px;
  }

  .save-tag {
    font-size: 11px;
    padding: 3px 7px;
  }

  .pdetail-excerpt {
    font-size: 13px;
    padding: 10px 12px;
    margin-bottom: 18px;
  }

  .variant-label {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .variant-btn {
    padding: 8px 12px;
  }

  .variant-btn span {
    font-size: 13px;
  }

  .variant-btn small {
    font-size: 10.5px;
  }

  .qty-selector-box {
    margin-bottom: 14px;
  }

  .cta-buttons-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn-add-to-cart,
  .btn-buy-now {
    width: 100%;
    padding: 13px;
    font-size: 14px;
  }

  .btn-zalo-b2b {
    padding: 11px 14px;
    font-size: 12.5px;
  }

  /* TABS ON MOBILE */
  .pdetail-tabs-section {
    padding: 18px 14px;
    border-radius: 16px;
    margin-bottom: 24px;
  }

  .pdetail-tabs-nav {
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 8px;
  }

  .tab-nav-btn {
    font-size: 14px;
    padding: 0 0 8px;
  }

  .specs-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .specs-table .spec-name {
    width: 130px;
  }

  .cooking-steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cooking-step-card {
    padding: 16px 14px;
  }

  /* RELATED ON MOBILE */
  .related-products-section {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .related-header {
    margin-bottom: 18px;
  }

  .related-title {
    font-size: 18px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-thumb-wrap {
    height: 140px;
    padding: 12px 8px;
  }

  .product-thumb-img {
    max-height: 110px;
  }

  .product-info-wrap {
    padding: 10px;
  }

  .product-card-title {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card-price {
    font-size: 14.5px;
  }

  .product-card-original {
    font-size: 11.5px;
  }

  .btn-product-detail {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 6px;
  }

  /* HIỂN THỊ THANH MUA HÀNG DÍNH TRÊN MOBILE */
  .pdetail-mobile-sticky-bar {
    display: flex;
  }

  /* Ẩn thanh bottom nav chung trên trang chi tiết sản phẩm để tránh chồng chéo */
  body.has-pdetail-sticky .mobile-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .pdetail-main-img-card {
    min-height: 220px;
  }

  .pdetail-main-img {
    max-height: 200px;
  }

  .pdetail-title {
    font-size: 18.5px;
  }

  .current-price {
    font-size: 22px;
  }

  .sticky-btn-buy {
    font-size: 12.5px;
    padding: 0 10px;
  }

  .sticky-btn-cart {
    font-size: 12px;
    padding: 0 8px;
  }
}

/* =========================================================================
   16. TRANG DANH MỤC & TẤT CẢ SẢN PHẨM (CATALOG / PRODUCTS PAGE)
   ========================================================================= */
.products-catalog-section {
  padding: 24px 0 70px;
  background-color: #f8fafc;
  min-height: 80vh;
  width: 100%;
  overflow-x: hidden;
}

.products-catalog-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* BREADCRUMB */
.catalog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.catalog-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.catalog-breadcrumb a:hover {
  color: #008848;
}

.catalog-breadcrumb .bc-current,
.catalog-breadcrumb .bc-active {
  color: #008848;
  font-weight: 700;
}

/* TITLE HEADER */
.catalog-title-header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}

.catalog-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.catalog-heading {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.3px;
}

.catalog-count-pill {
  font-size: 12.5px;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.catalog-subtext {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* CATEGORY TABS NAV (MINIMALIST) */
.category-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding-bottom: 6px;
  margin-bottom: 22px;
}

.cat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cat-tab-btn:hover {
  border-color: #008848;
  color: #008848;
}

.cat-tab-btn.active {
  background: #008848;
  border-color: #008848;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 136, 72, 0.2);
}

.tab-badge {
  font-size: 11px;
  background: #f1f5f9;
  color: #475569;
  padding: 1px 6px;
  border-radius: 999px;
}

.cat-tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* FILTER & SORT BAR */
.catalog-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid #eaedf1;
  padding: 10px 16px;
  border-radius: 10px;
  flex-wrap: wrap;
}

.filter-search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 360px;
}

.filter-search-box .search-svg {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
}

.filter-search-input {
  width: 100%;
  padding: 8px 32px 8px 36px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.filter-search-input:focus {
  background: #ffffff;
  border-color: #008848;
  box-shadow: 0 0 0 2px rgba(0, 136, 72, 0.1);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  font-size: 16px;
  color: #94a3b8;
  text-decoration: none;
  line-height: 1;
}

.filter-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-text {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.filter-sort-select {
  padding: 7px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  cursor: pointer;
}

.filter-sort-select:focus {
  border-color: #008848;
}

/* PRODUCTS GRID */
.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.catalog-product-card {
  background: #ffffff;
  border: 1px solid #eaedf1;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.catalog-product-card:hover {
  /* transform removed */
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.catalog-thumb-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  padding: 24px 16px;
  height: 210px;
  text-decoration: none;
  overflow: hidden;
}

.catalog-prod-img {
  max-width: 100%;
  max-height: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.catalog-product-card:hover .catalog-prod-img {
  /* scale removed */
}

.catalog-tag-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.catalog-badge-img {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  object-fit: contain;
  z-index: 2;
}

.catalog-info-box {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-cat-pill {
  font-size: 11px;
  font-weight: 700;
  color: #008848;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.catalog-prod-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  flex: 1;
}

.catalog-prod-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.catalog-prod-title a:hover {
  color: #008848;
}

.catalog-rating-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.catalog-rating-stars .stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 1px;
}

.catalog-rating-stars .score {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
}

.catalog-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.catalog-current-price {
  font-size: 17px;
  font-weight: 800;
  color: #008848;
}

.catalog-regular-price {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.catalog-weight-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 14px;
  width: fit-content;
}

.btn-catalog-detail {
  display: block;
  text-align: center;
  background-color: #008848;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: auto;
  transition: all 0.2s ease;
}

.btn-catalog-detail:hover {
  background-color: #006e3a;
  /* transform removed */
  box-shadow: 0 4px 12px rgba(0, 136, 72, 0.25);
}

/* EMPTY CARD */
.catalog-empty-card {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 60px 24px;
  text-align: center;
  max-width: 640px;
  margin: 40px auto;
}

.empty-icon-circle {
  width: 72px;
  height: 72px;
  background: #f1f5f9;
  color: #94a3b8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.empty-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 24px;
}

.empty-action-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-empty-primary {
  display: inline-flex;
  align-items: center;
  background: #008848;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-empty-primary:hover {
  background: #006e3a;
}

.btn-empty-zalo {
  display: inline-flex;
  align-items: center;
  background: #0284c7;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* RESPONSIVE CATALOG */
@media (max-width: 1024px) {
  .catalog-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .catalog-header-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
  }

  .catalog-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .catalog-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-search-form {
    max-width: 100%;
  }

  .catalog-sort-box {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .catalog-products-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BLOG & GÓC CHIA SẺ - STYLING CHUẨN GAOVINNHIEN.VN (2 CỘT SIDEBAR + MAIN)
   ========================================================================== */

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

/* 1. Breadcrumb Bar */
.blog-breadcrumb-nav {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  font-size: 13.5px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.breadcrumb-item a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: #008848;
}

.breadcrumb-item.active {
  color: #0f172a;
  font-weight: 600;
  max-width: 550px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb-separator {
  color: #94a3b8;
  font-size: 12px;
}

/* 2. Blog Layout Grid (2 Cột) */
.blog-detail-main,
.blog-listing-main {
  padding: 36px 0 64px;
  background-color: #ffffff;
}

.blog-layout-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: start;
}

/* 3. SIDEBAR CỘT TRÁI */
.blog-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-block {
  background: #ffffff;
}

.sidebar-heading-wrap {
  border-bottom: 2px solid #1e293b;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.sidebar-main-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.sidebar-sub-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  margin: 0;
}

/* Danh sách bài viết mới nhất (Sidebar) */
.sidebar-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-post-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e2e8f0;
  transition: transform 0.2s;
}

.sidebar-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-post-item.is-active {
  background: #f0fdf4;
  padding: 8px;
  border-radius: 8px;
  border-bottom: none;
}

.sidebar-post-thumb {
  flex-shrink: 0;
  width: 76px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sidebar-post-thumb:hover img {
  /* scale removed */
}

.sidebar-post-info {
  flex: 1;
  min-width: 0;
}

.sidebar-post-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-post-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-post-title a:hover {
  color: #008848;
}

.sidebar-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

.sidebar-post-meta .meta-author {
  font-weight: 500;
  color: #475569;
}

.sidebar-post-meta .meta-date {
  color: #94a3b8;
}

/* Chuyên mục bài viết ở sidebar */
.sidebar-category-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-category-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 6px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.sidebar-category-nav li a:hover,
.sidebar-category-nav li a.active {
  background: #e8f7ee;
  color: #008848;
  padding-left: 16px;
}

/* Banner hỗ trợ B2B ở sidebar */
.b2b-sidebar-banner {
  background: linear-gradient(135deg, #059669 0%, #008848 100%);
  border-radius: 12px;
  padding: 24px 20px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 136, 72, 0.15);
}

.b2b-banner-inner {
  text-align: center;
}

.b2b-banner-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2b-banner-icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

.b2b-banner-inner h4 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}

.b2b-banner-inner p {
  font-size: 12.5px;
  color: #d1fae5;
  line-height: 1.45;
  margin: 0 0 16px;
}

.b2b-banner-hotline {
  font-size: 13px;
  margin-bottom: 14px;
}

.b2b-banner-hotline a {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #fef08a;
  text-decoration: none;
  margin-top: 2px;
}

.btn-sidebar-zalo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: #ffffff;
  color: #0068ff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.btn-sidebar-zalo img {
  width: 18px;
  height: 18px;
}

.btn-sidebar-zalo:hover {
  /* transform removed */
}

/* 4. CỘT NỘI DUNG CHI TIẾT (MAIN ARTICLE) */
.blog-article-content-col {
  min-width: 0;
}

.blog-article-card {
  background: #ffffff;
}

/* Banner ảnh bài viết chính */
.article-hero-banner {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  background: #f8fafc;
}

.article-main-image {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Tiêu đề H1 bài viết */
.article-title-heading {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

/* Thanh thông tin Meta */
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 18px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
  font-size: 13px;
  color: #64748b;
}

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

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item strong {
  color: #1e293b;
}

.meta-item.badge-category span {
  background: #e8f7ee;
  color: #008848;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
}

.meta-share-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.share-label {
  font-weight: 600;
  color: #475569;
}

.btn-share {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-share:hover {
  /* transform removed */
  opacity: 0.9;
}

.btn-share.fb {
  background: #1877f2;
}

.btn-share.zl {
  background: #0068ff;
}

.btn-share.copy {
  background: #475569;
}

/* Khung Mục lục nội dung (Table of Contents) */
.article-toc-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 30px;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.toc-title svg {
  stroke: #008848;
}

.toc-toggle-text {
  font-size: 12.5px;
  color: #008848;
  font-weight: 600;
}

.toc-content {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.toc-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-content li a {
  font-size: 13.5px;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

.toc-content li.toc-h3 {
  padding-left: 20px;
  font-size: 13px;
  color: #64748b;
}

.toc-content li a:hover {
  color: #008848;
  font-weight: 600;
}

/* Nội dung bài viết (Rich Text Body) */
.article-body-content {
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
}

.article-body-content p {
  margin-bottom: 18px;
}

.article-body-content p.article-lead {
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.75;
  color: #1e293b;
  margin-bottom: 24px;
}

.article-body-content h2 {
  font-size: 21px;
  font-weight: 800;
  color: #008848;
  margin: 32px 0 16px;
  padding-left: 12px;
  border-left: 4px solid #008848;
  line-height: 1.4;
}

.article-body-content h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 22px 0 12px;
  line-height: 1.4;
}

.article-body-content ul,
.article-body-content ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

.article-body-content li {
  margin-bottom: 10px;
}

.article-body-content blockquote {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 16px 22px;
  margin: 24px 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 16.5px;
  color: #15803d;
  line-height: 1.7;
}

/* Bảng biểu trong bài viết */
.blog-custom-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 14.5px;
}

.blog-custom-table th {
  background: #e8f7ee;
  color: #0f172a;
  font-weight: 700;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  text-align: left;
}

.blog-custom-table td {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.blog-custom-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.price-tag {
  color: #008848;
  font-weight: 700;
}

/* Khối B2B Callout trong bài viết */
.blog-b2b-cta-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 28px 24px;
  margin: 36px 0;
  box-shadow: 0 8px 24px rgba(0, 136, 72, 0.06);
}

.b2b-cta-badge {
  display: inline-block;
  background: #008848;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.b2b-cta-title {
  font-size: 20px;
  font-weight: 800;
  color: #065f46;
  margin: 0 0 10px;
}

.b2b-cta-desc {
  font-size: 14.5px;
  color: #374151;
  line-height: 1.6;
  margin: 0 0 20px;
}

.b2b-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-blog-zalo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0068ff;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.3);
  transition: transform 0.2s;
}

.btn-blog-zalo:hover {
  /* transform removed */
  color: #ffffff;
}

.btn-blog-phone {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #008848;
  border: 1.5px solid #008848;
  font-weight: 700;
  font-size: 14px;
  padding: 10.5px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-blog-phone:hover {
  background: #008848;
  color: #ffffff;
}

/* Tags cuối bài viết */
.article-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin: 32px 0;
  font-size: 13.5px;
}

.tags-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #475569;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  background: #f1f5f9;
  color: #334155;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.tag-pill:hover {
  background: #e8f7ee;
  color: #008848;
}

/* Hộp thông tin tác giả (Author Bio) */
.article-author-bio-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 40px;
}

.author-avatar {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #008848;
  padding: 4px;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.author-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.author-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Phân hệ Bài viết liên quan */
.related-posts-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e2e8f0;
}

.related-section-header {
  margin-bottom: 24px;
}

.related-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.related-title-line {
  width: 60px;
  height: 3px;
  background: #008848;
  border-radius: 2px;
}

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

.related-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.related-card-item:hover {
  /* transform removed */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.related-card-thumb {
  display: block;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #f1f5f9;
}

.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card-thumb:hover img {
  /* scale removed */
}

.related-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-card-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.related-card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}

.related-card-title a:hover {
  color: #008848;
}

.related-card-excerpt {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 12px;
  flex: 1;
}

.btn-related-readmore {
  font-size: 12.5px;
  font-weight: 700;
  color: #008848;
  text-decoration: none;
}

.btn-related-readmore:hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. TRANG DANH SÁCH BLOG (BLOG.PHP)
   ========================================================================== */
.blog-hero-header {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  padding: 44px 16px 36px;
  border-bottom: 1px solid #e2e8f0;
}

.blog-sub-badge {
  display: inline-block;
  background: #e8f7ee;
  color: #008848;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.blog-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}

.blog-hero-desc {
  font-size: 15px;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.blog-search-bar-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.blog-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-size: 14px;
}

.btn-blog-search-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #008848;
  color: #ffffff;
  border: none;
  padding: 0 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-blog-search-submit:hover {
  background: #006b38;
}

/* Tabs danh mục */
.blog-categories-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.cat-tab-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cat-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cat-tab-btn.active {
  background: #008848;
  color: #ffffff;
}

/* Lưới bài viết ở blog listing */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card-item:hover {
  /* transform removed */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.blog-card-thumb-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 180px;
  background: #f1f5f9;
  overflow: hidden;
}

.blog-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card-thumb-wrap:hover img {
  /* scale removed */
}

.blog-card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 136, 72, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.blog-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta-row {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.blog-card-meta-row .meta-author {
  font-weight: 600;
  color: #334155;
}

.blog-card-meta-row .meta-sep {
  margin: 0 4px;
  color: #cbd5e1;
}

.blog-card-title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: #008848;
}

.blog-card-excerpt {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
}

.btn-read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #008848;
  text-decoration: none;
}

.btn-read-more-link:hover {
  color: #006837;
}

.views-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
}

/* Phân trang */
.blog-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

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

.page-btn.active {
  background: #008848;
  color: #ffffff;
}

/* Empty state */
.no-posts-found {
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
}

.no-posts-found svg {
  stroke: #94a3b8;
  margin-bottom: 16px;
}

.no-posts-found h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
}

.no-posts-found p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px;
}

.btn-clear-search {
  display: inline-block;
  background: #008848;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

/* ==========================================================================
   DANH SÁCH BÀI VIẾT DẠNG HÀNG NGANG (ROW LIST VIEW - CHUẨN MẪU ẢNH)
   ========================================================================== */
.blog-category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding-bottom: 6px;
  margin-bottom: 24px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.filter-pill.active {
  background: #008848;
  color: #ffffff;
  border-color: #008848;
  box-shadow: 0 4px 10px rgba(0, 136, 72, 0.25);
}

.blog-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}

.blog-page-main-heading {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.blog-list-subheading {
  font-size: 13.5px;
  color: #64748b;
  margin: 4px 0 0;
}

.blog-total-count {
  font-size: 12.5px;
  font-weight: 700;
  color: #008848;
  background: #e8f7ee;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.blog-posts-row-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-row-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #eaedf1;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-row-item:hover {
  /* transform removed */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.blog-row-thumb-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: #f8fafc;
  display: block;
  overflow: hidden;
}

.blog-row-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 136, 72, 0.92);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.blog-row-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.blog-row-item:hover .blog-row-thumb-wrap img {
  /* scale removed */
}

.blog-row-info {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
}

.blog-row-title {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 8px;
}

.blog-row-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-row-title a:hover {
  color: #008848;
}

.blog-row-meta {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-row-meta .meta-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #334155;
}

.blog-row-meta .meta-slash {
  color: #cbd5e1;
}

.blog-row-excerpt {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.btn-blog-read-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #008848;
  text-decoration: none;
  transition: gap 0.2s;
  margin-top: auto;
}

.btn-blog-read-detail:hover {
  gap: 10px;
  color: #006837;
}

/* Thanh phân trang tùy biến cao cấp (Custom Blog Pagination) */
.custom-blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.pagi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pagi-btn:hover:not(.pagi-disabled) {
  background: #008848;
  color: #ffffff;
  border-color: #008848;
  /* transform removed */
  box-shadow: 0 4px 10px rgba(0, 136, 72, 0.2);
}

.pagi-disabled {
  background: #f8fafc;
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
  box-shadow: none;
}

.pagi-numbers-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagi-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pagi-num:hover:not(.active) {
  background: #e8f7ee;
  color: #008848;
  border-color: #86efac;
}

.pagi-num.active {
  background: #008848;
  color: #ffffff;
  border-color: #008848;
  box-shadow: 0 4px 12px rgba(0, 136, 72, 0.25);
  cursor: default;
}

.pagi-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 40px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
}

/* ==========================================================================
   CÁC NÚT LIÊN HỆ NỔI BÊN PHẢI (FLOATING CONTACT WIDGET)
   ========================================================================== */
.floating-contact-widget {
  position: fixed;
  bottom: 80px;
  right: 18px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-btn:hover {
  /* scale removed */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.floating-btn.btn-call {
  background: #16a34a;
}

.floating-btn.btn-call svg {
  width: 22px;
  height: 22px;
}

.floating-btn.btn-zalo {
  background: #0068ff;
}

.floating-zalo-img {
  width: 24px;
  height: 24px;
}

.floating-btn.btn-mail {
  background: #ea580c;
}

.floating-btn.btn-mail svg {
  width: 22px;
  height: 22px;
}

.floating-btn.btn-map {
  background: #475569;
}

.floating-btn.btn-map svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   RESPONSIVE CHO BLOG & BÀI VIẾT CHI TIẾT (BLOG-DETAIL.PHP & BLOG.PHP)
   ========================================================================== */
@media (max-width: 1024px) {
  .blog-layout-grid {
    grid-template-columns: 280px 1fr;
    gap: 28px;
  }

  .blog-row-item {
    grid-template-columns: 280px 1fr;
    gap: 18px;
  }

  .blog-row-thumb-wrap {
    height: 175px;
  }

  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .blog-detail-main,
  .blog-listing-main {
    padding: 16px 0 80px;
  }

  .blog-container {
    padding: 0 14px;
  }

  .blog-breadcrumb-nav {
    padding: 10px 0;
    font-size: 12px;
  }

  .breadcrumb-item.active {
    max-width: 200px;
  }

  .blog-layout-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Đưa nội dung bài viết lên đầu trên mobile */
  .blog-article-content-col,
  .blog-list-col {
    order: 1;
    width: 100%;
  }

  /* Đưa sidebar bài viết mới nhất xuống dưới bài đọc */
  .blog-sidebar-col {
    order: 2;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 2px solid #e2e8f0;
    width: 100%;
  }

  .article-hero-banner {
    border-radius: 10px;
    margin-bottom: 18px;
  }

  .article-main-image {
    max-height: 240px;
  }

  .article-title-heading {
    font-size: 21px;
    line-height: 1.35;
    margin: 0 0 12px;
  }

  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0 14px;
    margin-bottom: 18px;
  }

  .meta-left {
    gap: 10px;
    font-size: 12px;
  }

  .meta-share-buttons {
    width: 100%;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    justify-content: flex-start;
    gap: 10px;
  }

  .article-toc-box {
    padding: 12px 14px;
    margin-bottom: 22px;
    border-radius: 8px;
  }

  .toc-title {
    font-size: 14px;
  }

  .article-body-content {
    font-size: 15px;
    line-height: 1.8;
  }

  .article-body-content p {
    margin-bottom: 14px;
  }

  .article-body-content h2 {
    font-size: 18.5px;
    margin: 24px 0 12px;
    padding-left: 10px;
  }

  .article-body-content h3 {
    font-size: 16px;
    margin: 18px 0 10px;
  }

  .article-body-content blockquote {
    font-size: 14.5px;
    padding: 12px 16px;
    margin: 18px 0;
  }

  .blog-custom-table {
    display: block;
    overflow-x: auto;
    width: 100%;
    font-size: 13px;
  }

  .blog-b2b-cta-card {
    padding: 18px 14px;
    margin: 24px 0;
    border-radius: 10px;
  }

  .b2b-cta-title {
    font-size: 17px;
  }

  .b2b-cta-desc {
    font-size: 13.5px;
    margin-bottom: 16px;
  }

  .b2b-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-blog-zalo,
  .btn-blog-phone {
    justify-content: center;
    width: 100%;
    padding: 12px;
    font-size: 13.5px;
  }

  .article-tags-row {
    margin: 22px 0;
    padding: 14px 0;
  }

  .article-author-bio-card {
    flex-direction: column;
    text-align: center;
    padding: 16px;
    gap: 12px;
    margin-bottom: 28px;
  }

  .author-avatar {
    width: 60px;
    height: 60px;
  }

  .related-posts-section {
    margin-top: 32px;
    padding-top: 24px;
  }

  .related-title {
    font-size: 18px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .blog-row-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blog-row-thumb-wrap {
    height: 180px;
  }

  .blog-hero-title,
  .blog-page-main-heading {
    font-size: 20px;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Floating button trên mobile nằm trên thanh bottom nav */
  .floating-contact-widget {
    bottom: 68px;
    right: 12px;
    gap: 8px;
  }

  .floating-btn {
    width: 40px;
    height: 40px;
  }

  .floating-btn svg,
  .floating-zalo-img {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 420px) {
  .article-title-heading {
    font-size: 19px;
  }

  .article-main-image {
    max-height: 200px;
  }

  .floating-contact-widget {
    bottom: 66px;
    right: 10px;
  }
}
