/**
 * KAYA - CSS dùng chung toàn site: Header, Footer, Nút liên hệ nổi
 * Tách từ <style> nhúng trong header-kaya.php, footer-kaya.php, hotlines.php
 * để trình duyệt lưu cache (trước đây ~41 KB CSS bị tải lại ở MỌI trang).
 * Nạp bởi inc/css-js.php (kaya_enqueue_global_assets).
 */

/* =====================================================================
   1. HEADER (template-parts/header-kaya.php)
   ===================================================================== */
/* 0. ẨN HEADER MẶC ĐỊNH CỦA ASTRA & RESET CONTAINER */
.site-header,
#ast-desktop-header,
#ast-mobile-header,
.main-header-bar-wrap {
  display: none !important;
}

.ast-custom-header,
.astra-advanced-hook-25 {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  width: 100% !important;
  line-height: normal !important;
}

/* 0.1. ẨN TRIỆT ĐỂ THẺ P RỖNG HOẶC BLOCK THỪA TRONG HEADER HOOK */
.ast-custom-header p,
.ast-custom-header .wp-block-paragraph,
.astra-advanced-hook-25 p,
.astra-advanced-hook-25 .wp-block-paragraph {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
}

/* 0.2. LOẠI BỎ KHOẢNG TRỐNG TRẮNG GIỮA HEADER VÀ NỘI DUNG TRÊN TOÀN WEBSITE */
#content,
#content.site-content,
.site-content,
.ast-plain-container.ast-no-sidebar #primary,
.ast-plain-container #primary,
.ast-page-builder-template #primary,
.ast-separate-container #primary,
#primary,
.site-main,
.ast-container,
.entry-content,
article.page,
article.post,
article.ast-article-single {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home #content,
body.home .site-content,
body.home #primary,
body.home .site-main,
body.home .ast-container,
body.home .entry-content,
body:has(.kaya-home) #content,
body:has(.kaya-home) .site-content,
body:has(.kaya-home) #primary,
body:has(.kaya-home) .site-main,
body:has(.kaya-home) .ast-container,
body:has(.kaya-home) .entry-content,
body:has(.kaya-home) article {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

/* 1. BIẾN MÀU SẮC & TYPOGRAPHY KAYA */
:root {
  --kh-orange: #FF9E22;
  --kh-orange-hover: #e58711;
  --kh-bg: #000000;
  --kh-bg-topbar: #0d0d0d;
  --kh-bg-nav: #141414;
  --kh-card-bg: #1f1f1f;
  --kh-border: rgba(255, 255, 255, 0.12);
  --kh-text: #ffffff;
  --kh-text-muted: #b0aba3;
  --kh-max-w: 1440px;
}

/* TRANG TĨNH (Giới thiệu, Liên hệ, chính sách, giỏ hàng, thanh toán...): khung 1400px như header & footer.
   Đoạn chữ giới hạn ~900px (canh trái, thẳng mép) cho dễ đọc. Trang bố cục toàn màn hình giữ nguyên. */
@media (min-width: 922px) {
  body.page:not(.home):not(.ast-page-builder-template) .site-content > .ast-container {
    max-width: 1440px;
    padding-left: 20px;
    padding-right: 20px;
  }
}
body.page:not(.home):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .entry-content > :is(p, ul, ol, h2, h3, h4, h5, h6, blockquote) {
  max-width: 900px;
}

/* Khung header Astra mặc định z-index 99 => nâng lên để hàng dính & bảng Danh mục luôn nằm trên nội dung trang */
.ast-custom-header {
  z-index: 9999;
}

/* 2. KHỐI BAO TOÀN BỘ HEADER */
.kaya-site-header {
  width: 100%;
  position: relative;
  color: var(--kh-text);
  box-sizing: border-box;
}

.kaya-site-header * {
  box-sizing: border-box;
}

/* 3. THANH TIỆN ÍCH TRÊN CÙNG (TOPBAR NOITHATKAYA) */
.kaya-topbar {
  background-color: var(--kh-bg-topbar);
  color: #cfcac2;
  font-size: 12.5px;
  border-bottom: 1px solid var(--kh-border);
  line-height: 1.4;
}
.kaya-topbar-inner {
  max-width: var(--kh-max-w);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.kaya-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #e5e0d8;
  letter-spacing: 0.2px;
}
.kaya-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.kaya-topbar-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kaya-topbar-link {
  color: #cfcac2;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.kaya-topbar-link:hover,
.kaya-topbar-link.active {
  color: var(--kh-orange) !important;
}
.kaya-topbar-sep {
  color: #4a4844;
  font-size: 11px;
}
.kaya-topbar-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid #33312c;
}
.kaya-topbar-social-link {
  color: #cfcac2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
}
.kaya-topbar-social-link:hover {
  color: var(--kh-orange);
  transform: translateY(-1px);
}
.kaya-topbar-social-link svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* 4. KHUNG NAVBAR CHÍNH */
.kaya-navbar-wrap {
  width: 100%;
  background-color: var(--kh-bg-nav);
  position: relative;
  z-index: 999;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

/* Spacer giữ chỗ khi hàng chính dính trên cùng */
.kaya-nav-spacer {
  display: none;
  width: 100%;
}
.kaya-nav-spacer.is-active {
  display: block;
}

/* Hàng chính dính trên cùng khi cuộn (kiểu Thế Giới Di Động) */
.kaya-navbar-wrap.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  animation: kayaNavSlideDown 0.25s ease;
}
body.admin-bar .kaya-navbar-wrap.is-sticky {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .kaya-navbar-wrap.is-sticky {
    top: 46px;
  }
}
@keyframes kayaNavSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* ==========================================================================
   4.6. THANH TÌM KIẾM (NẰM TRONG HÀNG CHÍNH, GIỮA NÚT DANH MỤC VÀ GIỎ HÀNG)
   ========================================================================== */
.kaya-search-form {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: 0;
  background: #1f1f1d !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  padding: 0 4px 0 16px;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  box-sizing: border-box;
}

.kaya-search-form:hover {
  border-color: rgba(255, 158, 34, 0.65);
}

.kaya-search-form:focus-within {
  background: #232321 !important;
  border-color: var(--kh-orange);
  box-shadow: 0 0 0 3.5px rgba(255, 158, 34, 0.25), 0 12px 36px rgba(0, 0, 0, 0.6);
}

/* Icon Kính Lúp Bên Trái */
.kaya-search-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--kh-orange);
  flex-shrink: 0;
  margin-right: 10px;
}
.kaya-search-icon-box svg {
  width: 18px;
  height: 18px;
  stroke: var(--kh-orange);
  stroke-width: 2.2;
}

/* Ô Nhập Tìm Kiếm */
.kaya-search-input {
  flex: 1;
  width: 100%;
  height: 100%;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 500;
  padding: 0;
  font-family: inherit;
  box-sizing: border-box;
}

.kaya-search-input::-webkit-search-cancel-button,
.kaya-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.kaya-search-input::placeholder {
  color: #8c877f;
  font-size: 13.5px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.kaya-search-form:focus-within .kaya-search-input::placeholder {
  color: #a8a298;
}

/* Nút Xóa Nhanh (✕) */
.kaya-search-clear-btn {
  background: none;
  border: none;
  color: #77726a;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 6px;
  transition: color 0.2s, background-color 0.2s;
  line-height: 1;
}
.kaya-search-clear-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}
.kaya-search-clear-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Nút Submit Tìm Kiếm (Màu Cam Độc Quyền KAYA) */
.kaya-search-submit-btn {
  height: 38px;
  padding: 0 20px;
  background: linear-gradient(135deg, #FF9E22 0%, #f0890b 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255, 158, 34, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kaya-search-submit-btn:hover {
  background: #e58711;
  box-shadow: 0 5px 16px rgba(255, 158, 34, 0.6);
  transform: translateY(-1px);
}

.kaya-search-submit-btn:active {
  transform: translateY(0);
}

.kaya-search-submit-btn .kaya-btn-icon svg {
  width: 15px;
  height: 15px;
  stroke: #ffffff;
  stroke-width: 2.3;
}

/* Danh Sách Gợi Ý Từ Khóa Hot (Tags) */
/* HỘP KẾT QUẢ GỢI Ý TRỰC TIẾP (LIVE AUTOCOMPLETE DROPDOWN) */
.kaya-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(22, 22, 20, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 158, 34, 0.35);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  z-index: 100000;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}

.kaya-search-results.is-visible {
  display: block;
  animation: kayaSearchDropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.kaya-search-result-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.kaya-search-result-item a:hover {
  background-color: rgba(255, 158, 34, 0.12);
}

.kaya-result-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background-color: #2b2b28;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.kaya-result-info {
  flex: 1;
  min-width: 0;
}

.kaya-result-title {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kaya-result-title mark {
  background: transparent;
  color: var(--kh-orange);
  font-weight: 700;
}

.kaya-result-price {
  color: var(--kh-orange);
  font-size: 12.5px;
  font-weight: 700;
}

.kaya-search-results-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 6px;
  padding-top: 6px;
}

.kaya-search-results-footer a {
  display: block;
  padding: 8px 16px;
  text-align: center;
  color: var(--kh-orange);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s;
}

.kaya-search-results-footer a:hover {
  background-color: rgba(255, 158, 34, 0.15);
}

/* RESPONSIVE MOBILE CHO THANH TÌM KIẾM */
@media (max-width: 768px) {
  .kaya-search-form {
    height: 42px;
    padding: 0 4px 0 12px;
  }
  .kaya-search-icon-box svg {
    width: 16px;
    height: 16px;
  }
  .kaya-search-input {
    font-size: 15px !important; /* Tránh zoom tự động trên Safari iOS */
  }
  .kaya-search-input::placeholder {
    font-size: 12.5px;
  }
  .kaya-search-submit-btn {
    height: 34px;
    padding: 0 12px;
    gap: 0;
  }
  .kaya-search-submit-btn .kaya-btn-text {
    display: none; /* Ẩn chữ 'Tìm kiếm' trên mobile để dành đất cho ô nhập */
  }
  .kaya-search-submit-btn .kaya-btn-icon svg {
    width: 14px;
    height: 14px;
  }
}

.kaya-navbar {
  max-width: var(--kh-max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* LOGO NỘI THẤT KAYA */
.kaya-brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}
.kaya-brand-logo-img {
  max-height: 50px;
  width: auto;
  display: block;
}
.kaya-brand-logo-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kaya-brand-roof {
  color: var(--kh-orange);
}
.kaya-brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
}

/* 4.2. NÚT "DANH MỤC" + BẢNG MENU main (kiểu Thế Giới Di Động)
   Cấp 1: cột dọc bên trái. Rê chuột vào mục => menu con hiện bên phải.
   Cấp 2 có con = tiêu đề nhóm (cam), cấp 3 = link trong nhóm. */
.kaya-cat-menu {
  position: relative;
  flex-shrink: 0;
}
.kaya-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  background: #262522;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.kaya-cat-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.kaya-cat-btn:hover,
.kaya-cat-btn:focus,
.kaya-cat-menu.is-open .kaya-cat-btn {
  background: #262522;
  border-color: var(--kh-orange);
  color: var(--kh-orange);
}
.kaya-cat-panel {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
/* Cầu nối vô hình để rê chuột từ nút xuống bảng không bị đóng */
.kaya-cat-panel::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.kaya-cat-menu.is-open .kaya-cat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (hover: hover) and (min-width: 1041px) {
  .kaya-cat-menu:hover .kaya-cat-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.kaya-cat-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  width: 260px;
  min-height: 380px;
  background: #1a1a18;
  border: 1px solid #2e2b26;
  border-top: 3px solid var(--kh-orange);
  border-radius: 0 0 0 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  text-align: left;
}
.kaya-cat-list li {
  list-style: none;
  margin: 0;
}
.kaya-cat-list > li > a,
.kaya-cat-list > li > .kaya-menu-label-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 18px;
  color: #e8e3da;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.kaya-cat-list > li.menu-item-has-children > a::after,
.kaya-cat-list > li.menu-item-has-children > .kaya-menu-label-text::after {
  content: "\203A";
  font-size: 20px;
  line-height: 1;
  color: #77726a;
}
.kaya-cat-list > li:hover > a,
.kaya-cat-list > li:hover > .kaya-menu-label-text,
.kaya-cat-list > li.current-menu-item > a,
.kaya-cat-list > li.current-menu-ancestor > a {
  background: #272520;
  color: var(--kh-orange);
}
.kaya-cat-list > li:hover > a::after,
.kaya-cat-list > li:hover > .kaya-menu-label-text::after {
  color: var(--kh-orange);
}
/* Bảng menu con bên phải */
.kaya-cat-list > li > .sub-menu {
  display: none;
  position: absolute;
  top: -3px;
  left: 100%;
  width: 660px;
  max-width: calc(100vw - 460px);
  min-height: calc(100% + 3px);
  margin: 0;
  padding: 18px 24px;
  list-style: none;
  background: #1a1a18;
  border: 1px solid #2e2b26;
  border-top: 3px solid var(--kh-orange);
  border-left: none;
  border-radius: 0 0 10px 0;
  box-shadow: 18px 18px 40px rgba(0, 0, 0, 0.45);
  columns: 3 180px;
  column-gap: 28px;
}
.kaya-cat-list > li:hover > .sub-menu {
  display: block;
}
.kaya-cat-list > li > .sub-menu > li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.kaya-cat-list > li > .sub-menu > li > a,
.kaya-cat-list > li > .sub-menu > li > .kaya-menu-label-text {
  display: block;
  padding: 7px 8px;
  border-radius: 4px;
  color: #d6d1c7;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.kaya-cat-list > li > .sub-menu > li > a:hover,
.kaya-cat-list > li > .sub-menu > li.current-menu-item > a {
  background: #272520;
  color: var(--kh-orange);
}
/* Cấp 2 có con => tiêu đề nhóm */
.kaya-cat-list > li > .sub-menu > li.menu-item-has-children {
  margin-bottom: 12px;
}
.kaya-cat-list > li > .sub-menu > li.menu-item-has-children > a,
.kaya-cat-list > li > .sub-menu > li.menu-item-has-children > .kaya-menu-label-text {
  padding: 4px 0 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid #33302a;
  border-radius: 0;
  color: var(--kh-orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: none;
}
.kaya-cat-list .sub-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kaya-cat-list .sub-menu .sub-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  color: #cfcac2;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, padding 0.15s ease;
}
.kaya-cat-list .sub-menu .sub-menu a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--kh-orange);
  flex-shrink: 0;
}
.kaya-cat-list .sub-menu .sub-menu a:hover,
.kaya-cat-list .sub-menu .sub-menu li.current-menu-item > a {
  background: #272520;
  color: var(--kh-orange);
  padding-left: 12px;
}

/* Mục "Xem tất cả ..." trong bảng Danh mục: chữ cam đậm + mũi tên ➔ (như site cũ) */
.kaya-cat-list .kaya-menu-view-all {
  margin-top: 6px;
}
.kaya-cat-list .sub-menu .kaya-menu-view-all > a {
  color: var(--kh-orange) !important;
  font-weight: 700 !important;
}
.kaya-cat-list .sub-menu .kaya-menu-view-all > a::before {
  content: "\2794";
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  margin-right: 6px;
  font-size: 13px;
  line-height: 1;
}
.kaya-cat-list .sub-menu .sub-menu .kaya-menu-view-all > a::before {
  margin-right: 0; /* cấp 3 đã có khoảng cách (gap) */
}

/* Astra tự chèn icon mũi tên vào mọi menu WordPress => ẩn trong menu KAYA (đã có mũi tên riêng) */
.kaya-site-header .ast-icon,
.kaya-site-header .dropdown-menu-toggle,
.kaya-site-header .ast-menu-toggle,
.kaya-mobile-drawer .ast-icon,
.kaya-mobile-drawer .dropdown-menu-toggle,
.kaya-mobile-drawer .ast-menu-toggle,
.kaya-site-footer .ast-icon,
.kaya-site-footer .dropdown-menu-toggle {
  display: none !important;
}
/* Footer cột 4: khoảng cách giữa danh sách link và form báo giá */
.kaya-ftr-col-about .kaya-ftr-links {
  margin-bottom: 16px;
}

/* 4.3. THANH LINK NHANH (MENU header) - hàng thứ 2 */
.kaya-quickbar {
  position: relative;
  z-index: 997;
  background: #1b1b19;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.kaya-quickbar-inner {
  max-width: var(--kh-max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.kaya-quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
}
.kaya-quick-links li {
  list-style: none;
  margin: 0;
}
.kaya-quick-links > li {
  position: relative;
}
.kaya-quick-links > li > a,
.kaya-quick-links > li > .kaya-menu-label-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  color: #d6d1c7;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.kaya-quick-links > li.menu-item-has-children > a::after,
.kaya-quick-links > li.menu-item-has-children > .kaya-menu-label-text::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 4px;
}
.kaya-quick-links > li:hover > a,
.kaya-quick-links > li:hover > .kaya-menu-label-text,
.kaya-quick-links > li.current-menu-item > a,
.kaya-quick-links > li.current-menu-ancestor > a {
  color: var(--kh-orange);
}
.kaya-quick-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #1a1a18;
  border: 1px solid #2e2b26;
  border-top: 3px solid var(--kh-orange);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.kaya-quick-links > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.kaya-quick-links .sub-menu a {
  display: block;
  padding: 8px 18px;
  color: #d6d1c7;
  font-size: 13.5px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.kaya-quick-links .sub-menu a:hover {
  background: #272520;
  color: var(--kh-orange);
}

/* 4.5. KHỐI HÀNH ĐỘNG BÊN PHẢI (CART - SEARCH - HOTLINE PILL) */
.kaya-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Nút Giỏ hàng màu cam nổi bật (Desktop) */
.kaya-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background-color: var(--kh-orange);
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(255, 158, 34, 0.35);
}
.kaya-cart-btn:hover {
  background-color: var(--kh-orange-hover);
  transform: translateY(-1px);
}
.kaya-cart-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.kaya-cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background-color: #ffffff;
  color: var(--kh-orange);
  font-size: 9px;
  font-weight: 800;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.2px solid var(--kh-orange);
  box-sizing: border-box;
  line-height: 1;
}

/* Nút Hotline Pill viền bo tròn phát sáng (Desktop: nhỏ gọn, tinh tế) */
.kaya-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px 0 7px;
  border-radius: 9999px;
  background-color: #000000;
  color: #ffffff !important;
  border: 1.3px solid #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35), inset 0 0 2px rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
}
.kaya-phone-pill:hover {
  border-color: var(--kh-orange);
  color: var(--kh-orange) !important;
  box-shadow: 0 0 14px rgba(255, 158, 34, 0.5);
  transform: translateY(-1px);
}
.kaya-phone-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background-color: #ffffff;
  color: #000000;
  flex-shrink: 0;
}
.kaya-phone-icon-box svg {
  width: 10.5px;
  height: 10.5px;
  fill: #000000;
}
.kaya-phone-text {
  display: inline-block;
  color: #ffffff !important;
}

/* NÚT HAMBURGER MOBILE */
.kaya-hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #ffffff;
  border-radius: 4px;
}
.kaya-hamburger-btn svg {
  width: 25px;
  height: 25px;
}

/* 5. MENU TRƯỢT MOBILE (OFF-CANVAS DRAWER) */
.kaya-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99998;
}
.kaya-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.kaya-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background-color: #171714;
  color: #ffffff;
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 26px rgba(0, 0, 0, 0.5);
}
.kaya-mobile-drawer.is-active {
  transform: translateX(0);
}
.kaya-drawer-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--kh-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kaya-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
  padding: 4px;
  line-height: 1;
}
.kaya-drawer-body {
  padding: 14px 20px;
  overflow-y: auto;
  flex: 1;
}
.kaya-drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kaya-drawer-links li {
  position: relative;
  list-style: none;
  margin: 0;
}
.kaya-drawer-links > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.kaya-drawer-links > li > a,
.kaya-drawer-links > li > .kaya-menu-label-text {
  display: block;
  padding: 12px 44px 12px 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}
.kaya-drawer-links .sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 8px 12px;
}
.kaya-drawer-links li.is-open > .sub-menu {
  display: block;
}
.kaya-drawer-links .sub-menu a,
.kaya-drawer-links .sub-menu .kaya-menu-label-text {
  display: block;
  padding: 8px 40px 8px 0;
  color: #bdb8af;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.kaya-drawer-links .sub-menu li.menu-item-has-children > a,
.kaya-drawer-links .sub-menu li.menu-item-has-children > .kaya-menu-label-text {
  color: var(--kh-orange);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.kaya-drawer-links a:hover,
.kaya-drawer-links li.active > a,
.kaya-drawer-links li.current-menu-item > a,
.kaya-drawer-links > li.current-menu-ancestor > a {
  color: var(--kh-orange) !important;
}
.kaya-drawer-links .kaya-menu-label-text {
  cursor: pointer;
}
/* Nút +/− mở menu con (thêm bằng JS) */
.kaya-drawer-toggle {
  position: absolute;
  top: 3px;
  right: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  color: #cfcac2;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.kaya-drawer-links .sub-menu .kaya-drawer-toggle {
  top: 0;
  height: 34px;
}
.kaya-drawer-links li.is-open > .kaya-drawer-toggle {
  color: var(--kh-orange);
}
/* Các trang phụ: Giới thiệu, Tin tức... */
.kaya-drawer-pages {
  margin-top: 12px;
}
.kaya-drawer-pages > li > a {
  font-weight: 600;
  text-transform: none;
  color: #cfcac2;
}
.kaya-drawer-foot {
  padding: 18px 20px;
  background-color: #11110f;
  border-top: 1px solid var(--kh-border);
}
.kaya-drawer-hotline {
  display: block;
  text-align: center;
  background-color: var(--kh-orange);
  color: #ffffff !important;
  padding: 12px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 10px;
}

/* 6. RESPONSIVE BREAKPOINTS */
.kaya-nav-break,
.kaya-hamburger-text {
  display: none;
}
/* MÁY TÍNH: thoáng hơn, ô tìm kiếm gọn ở giữa, hotline lớn & sáng như noithatkaya.com */
@media (min-width: 1041px) {
  .kaya-navbar {
    height: 80px;
    padding: 0 20px; /* = thanh trên cùng & footer: logo và số điện thoại thẳng mép với chúng */
    gap: 28px;
  }
  .kaya-cat-menu {
    margin-left: 4px;
  }
  .kaya-navbar .kaya-search-form {
    flex: 0 1 768px;
    margin: 0 auto;
  }
  .kaya-header-actions {
    gap: 20px;
  }
  .kaya-cart-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .kaya-cart-btn svg {
    width: 18px;
    height: 18px;
  }
  .kaya-phone-pill {
    height: 38px;
    padding: 0 16px 0 10px;
    gap: 8px;
    background-color: transparent;
    border: 1.5px solid #ffffff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.85), inset 0 0 4px rgba(255, 255, 255, 0.2);
  }
  .kaya-phone-icon-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
  }
  .kaya-phone-icon-box svg {
    width: 12px;
    height: 12px;
  }
  .kaya-quick-links {
    gap: 0 10px;
  }
  .kaya-quick-links > li > a,
  .kaya-quick-links > li > .kaya-menu-label-text {
    padding: 11px 14px;
  }
}
/* Màn hình laptop nhỏ: thu hẹp khoảng cách, ô tìm kiếm nhường chỗ cho hotline */
@media (min-width: 1041px) and (max-width: 1280px) {
  .kaya-navbar {
    padding: 0 20px;
    gap: 18px;
  }
  .kaya-header-actions {
    gap: 14px;
  }
  .kaya-phone-pill {
    font-size: 15px;
    padding: 0 12px 0 8px;
  }
}

/* ==========================================================================
   MÁY TÍNH BẢNG & ĐIỆN THOẠI (KIỂU THẾ GIỚI DI ĐỘNG)
   Hàng 1: logo ......... [📞 hotline]
   Hàng 2: [☰ MENU | 🔍 tìm kiếm | 🛒]   (2 hàng này dính trên cùng khi cuộn)
   Hàng 3: link nhanh vuốt ngang (cuộn đi bình thường)
   ========================================================================== */
@media (max-width: 1040px) {
  .kaya-topbar,
  .kaya-cat-menu {
    display: none;
  }
  .kaya-navbar {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 12px 10px;
    gap: 8px 0;
  }
  /* Cho giỏ hàng, hotline, nút menu tham gia trực tiếp vào bố cục hàng */
  .kaya-header-actions {
    display: contents;
  }
  .kaya-brand-logo {
    order: 1;
    margin-right: auto;
  }
  .kaya-brand-logo-img {
    max-height: 38px;
  }
  .kaya-phone-pill {
    order: 2;
  }
  .kaya-nav-break {
    display: block;
    order: 3;
    flex-basis: 100%;
    height: 0;
  }
  .kaya-hamburger-btn {
    order: 4;
  }
  .kaya-navbar .kaya-search-form {
    order: 5;
  }
  .kaya-cart-btn {
    order: 6;
  }

  /* Hotline dạng viên thuốc có số điện thoại */
  .kaya-phone-pill {
    height: 34px;
    padding: 0 12px 0 6px;
    gap: 7px;
    background: #262522;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
    font-size: 13px;
  }
  .kaya-phone-pill .kaya-phone-text {
    display: inline-block;
  }
  .kaya-phone-icon-box {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--kh-orange);
  }
  .kaya-phone-icon-box svg {
    width: 12px;
    height: 12px;
    fill: #ffffff;
    animation: kayaHeaderPhoneShake 2.8s infinite ease-in-out;
  }

  /* Thanh liền khối: [☰ MENU | tìm kiếm | giỏ hàng] */
  .kaya-hamburger-btn,
  .kaya-cart-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 52px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    background: #262522;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
    transform: none;
  }
  .kaya-hamburger-btn {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px 0 0 10px;
  }
  .kaya-hamburger-btn svg {
    width: 20px;
    height: 20px;
  }
  .kaya-hamburger-text {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1;
  }
  .kaya-cart-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 10px 10px 0;
    color: var(--kh-orange) !important;
  }
  .kaya-cart-btn:hover {
    background: #262522;
    transform: none;
  }
  .kaya-cart-btn svg {
    width: 22px;
    height: 22px;
  }
  .kaya-cart-badge {
    top: 4px;
    right: 8px;
    background: var(--kh-orange);
    color: #ffffff;
    border-color: #262522;
  }
  .kaya-navbar .kaya-search-form {
    flex: 1 1 0;
    height: 44px;
    padding: 0 6px 0 12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    background: #262522 !important;
  }
  .kaya-navbar .kaya-search-form:focus-within {
    box-shadow: inset 0 0 0 1.5px var(--kh-orange);
  }
  /* Bấm Enter / nút "Tìm" trên bàn phím để tìm => ẩn nút cam cho rộng chỗ */
  .kaya-search-submit-btn {
    display: none;
  }

  /* Hàng 3: link nhanh dạng nút tròn, vuốt ngang */
  .kaya-quickbar-inner {
    padding: 0;
  }
  .kaya-quick-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .kaya-quick-links::-webkit-scrollbar {
    display: none;
  }
  .kaya-quick-links > li > a,
  .kaya-quick-links > li > .kaya-menu-label-text {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    background: #232320;
  }
  .kaya-quick-links > li.current-menu-item > a {
    border-color: var(--kh-orange);
  }
  .kaya-quick-links .sub-menu,
  .kaya-quick-links > li.menu-item-has-children > a::after,
  .kaya-quick-links > li.menu-item-has-children > .kaya-menu-label-text::after {
    display: none;
  }
}

@media (max-width: 380px) {
  .kaya-phone-pill .kaya-phone-text {
    font-size: 12px;
  }
  .kaya-brand-logo-img {
    max-height: 34px;
  }
}

/* ==========================================================================
   MÀN HÌNH "DANH MỤC SẢN PHẨM" TOÀN MÀN HÌNH TRÊN ĐIỆN THOẠI
   Cột trái: danh mục lớn. Bên phải: nhóm + các ô link (JS dựng từ menu main).
   ========================================================================== */
.kaya-mobile-drawer {
  width: 100%;
  max-width: 100vw;
  z-index: 100000001; /* nằm trên thanh liên hệ dưới đáy (99999999) */
}
.kaya-drawer-overlay {
  z-index: 100000000;
}
.kaya-drawer-head {
  padding: 12px 16px;
}
.kaya-drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}
.kaya-drawer-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2b2a27;
  color: #ffffff;
  font-size: 22px;
}
.kaya-drawer-body.has-mcat {
  padding: 0;
  display: flex;
}
.kaya-mcat {
  display: flex;
  flex: 1;
  min-height: 100%;
}
.kaya-mcat-tabs {
  width: 100px;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #11110f;
}
.kaya-mcat-tabs li {
  margin: 0;
  list-style: none;
}
.kaya-mcat-tab {
  display: block;
  width: 100%;
  padding: 14px 10px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: none;
  color: #cfcac2;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.kaya-mcat-tab.is-active {
  background: #171714;
  color: var(--kh-orange);
  box-shadow: inset 3px 0 0 var(--kh-orange);
}
.kaya-mcat-pane {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 24px;
}
.kaya-mcat-panel {
  display: none;
}
.kaya-mcat-panel.is-active {
  display: block;
}
.kaya-mcat-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 10px;
  color: var(--kh-orange);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.kaya-mcat-group-title {
  margin: 14px 0 8px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
}
.kaya-mcat-group-title a {
  color: inherit;
  text-decoration: none;
}
.kaya-mcat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.kaya-mcat-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 6px;
  background: #232320;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #d6d1c7;
  font-size: 12.5px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.kaya-mcat-grid a.is-view-all {
  color: var(--kh-orange);
  font-weight: 700;
}
.kaya-mcat-grid a.is-view-all::before {
  content: "\2794";
  margin-right: 6px;
}
.kaya-mcat-grid a:active,
.kaya-mcat-grid a.is-current {
  border-color: var(--kh-orange);
  color: var(--kh-orange);
}

@keyframes kayaHeaderPhoneShake {
  0%, 80%, 100% { transform: rotate(0) scale(1); }
  85% { transform: rotate(14deg) scale(1.1); }
  90% { transform: rotate(-14deg) scale(1.1); }
  95% { transform: rotate(10deg) scale(1.1); }
}

/* =====================================================================
   2. FOOTER (template-parts/footer-kaya.php)
   ===================================================================== */
/* 0. ẨN FOOTER MẶC ĐỊNH CỦA ASTRA & RESET CONTAINER */
.site-footer:not(.ast-custom-footer),
.ast-footer-builder,
#ast-mobile-footer,
.ast-small-footer {
  display: none !important;
}

.ast-custom-footer {
  padding: 0 !important;
  margin: 0 !important;
  background: var(--kaya-ftr-bg) !important;
  border: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 1. BIẾN MÀU SẮC & TYPOGRAPHY CHO FOOTER KAYA */
:root {
  --kaya-ftr-bg: #171714;
  --kaya-ftr-card-bg: #211f1b;
  --kaya-ftr-border: #2c2924;
  --kaya-ftr-orange: #FF9E22;
  --kaya-ftr-orange-hover: #e58711;
  --kaya-ftr-text: #aba7a0;
  --kaya-ftr-text-light: #e8e4dc;
  --kaya-ftr-max-w: 1400px;
}

/* 2. KHỐI BAO TOÀN BỘ FOOTER */
.kaya-site-footer {
  background-color: var(--kaya-ftr-bg);
  color: var(--kaya-ftr-text);
  font-size: 13.5px;
  line-height: 1.65;
  border-top: 3px solid var(--kaya-ftr-orange);
  width: 100%;
  box-sizing: border-box;
}

.kaya-site-footer * {
  box-sizing: border-box;
}

/* 3. KHỐI 4 CAM KẾT TRỌNG TÂM (TRUST PROPOSITIONS) */
.kaya-ftr-trust {
  background-color: var(--kaya-ftr-card-bg);
  border-bottom: 1px solid var(--kaya-ftr-border);
  padding: 36px 20px;
}
.kaya-ftr-trust-inner {
  max-width: var(--kaya-ftr-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.kaya-ftr-trust-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--kaya-ftr-border);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.kaya-ftr-trust-card:hover {
  border-color: rgba(255, 158, 34, 0.4);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
}
.kaya-ftr-trust-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 8px;
  background: rgba(255, 158, 34, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kaya-ftr-orange);
}
.kaya-ftr-trust-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--kaya-ftr-orange);
}
.kaya-ftr-trust-copy h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--kaya-ftr-text-light);
  margin: 0 0 4px;
  line-height: 1.3;
}
.kaya-ftr-trust-copy p {
  font-size: 12.5px;
  color: var(--kaya-ftr-text);
  margin: 0;
  line-height: 1.45;
}

/* 4. KHỐI NỘI DUNG CHÍNH (4 CỘT GRID) */
.kaya-ftr-main {
  max-width: calc(var(--kaya-ftr-max-w) + 40px); /* + lề 20px => nội dung 1400px */
  margin: 0 auto;
  padding: 56px 20px 44px;
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr 1.15fr;
  gap: 36px;
}
.kaya-ftr-col {
  display: flex;
  flex-direction: column;
}

/* Tiêu đề cột */
.kaya-ftr-col-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 0.3px;
}
.kaya-ftr-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2.5px;
  background-color: var(--kaya-ftr-orange);
  border-radius: 2px;
}

/* Danh sách link */
.kaya-ftr-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kaya-ftr-links li a {
  color: var(--kaya-ftr-text);
  text-decoration: none;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.kaya-ftr-links li a:hover {
  color: var(--kaya-ftr-orange);
  transform: translateX(3px);
}

/* Cột 1: Thông tin công ty & Kho xưởng KAYA */
.kaya-ftr-brand-wrap {
  margin-bottom: 14px;
}
.kaya-ftr-logo-img {
  max-height: 48px;
  width: auto;
  display: block;
  margin-bottom: 10px;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
}
.kaya-ftr-company-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.kaya-ftr-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.kaya-ftr-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--kaya-ftr-text);
  line-height: 1.5;
}
.kaya-ftr-contact-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--kaya-ftr-orange);
  margin-top: 3px;
  flex-shrink: 0;
}
.kaya-ftr-contact-item strong {
  color: var(--kaya-ftr-text-light);
}
.kaya-ftr-contact-item a {
  color: var(--kaya-ftr-orange);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}
.kaya-ftr-contact-item a:hover {
  color: var(--kaya-ftr-orange-hover);
  text-decoration: underline;
}

/* Mạng xã hội KAYA */
.kaya-ftr-social-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--kaya-ftr-text-light);
  margin: 16px 0 10px;
}
.kaya-ftr-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.kaya-ftr-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--kaya-ftr-card-bg);
  border: 1px solid var(--kaya-ftr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kaya-ftr-text-light);
  text-decoration: none;
  transition: all 0.25s ease;
}
.kaya-ftr-social-link:hover {
  background-color: var(--kaya-ftr-orange);
  border-color: var(--kaya-ftr-orange);
  color: #ffffff;
  transform: translateY(-2px);
}
.kaya-ftr-social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Cột 4: Đăng ký tư vấn & Chứng nhận */
.kaya-ftr-form-lead {
  font-size: 13px;
  color: var(--kaya-ftr-text);
  margin: 0 0 12px;
  line-height: 1.5;
}
.kaya-ftr-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.kaya-ftr-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background-color: var(--kaya-ftr-card-bg);
  border: 1px solid var(--kaya-ftr-border);
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.kaya-ftr-input:focus {
  border-color: var(--kaya-ftr-orange);
}
.kaya-ftr-btn-submit {
  height: 40px;
  background-color: var(--kaya-ftr-orange);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.25s, transform 0.2s;
}
.kaya-ftr-btn-submit:hover {
  background-color: var(--kaya-ftr-orange-hover);
  transform: translateY(-1px);
}
.kaya-ftr-btn-submit[disabled] {
  opacity: .6;
  cursor: wait;
}
.kaya-ftr-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.kaya-ftr-form-msg {
  margin: -8px 0 18px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  background: #1f6f3d;
}
.kaya-ftr-form-msg.is-error {
  background: #9b2c2c;
}

/* 5. KHỐI BẢN QUYỀN CHÂN TRANG (BOTTOM BAR) */
.kaya-ftr-bottom {
  background-color: #11110f;
  border-top: 1px solid var(--kaya-ftr-border);
  padding: 18px 0;
  font-size: 12.5px;
  color: #88847d;
}
.kaya-ftr-bottom-inner {
  max-width: calc(var(--kaya-ftr-max-w) + 40px); /* + lề 20px => nội dung 1400px */
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.kaya-ftr-bottom-left {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

/* 6. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1100px) {
  .kaya-ftr-trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .kaya-ftr-main {
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 680px) {
  .kaya-ftr-trust {
    padding: 24px 15px;
  }
  .kaya-ftr-trust-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .kaya-ftr-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 15px 30px;
  }
  .kaya-ftr-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =====================================================================
   3. HOTLINE / NUT LIEN HE NOI (inc/hotlines.php)
   ===================================================================== */
/* --------------------------------------------------------------------------
       1. DESKTOP: KHỐI NÚT NỔI BÊN PHẢI (CHỈ ZALO & MESSENGER - LOGO THỰC TẾ)
       -------------------------------------------------------------------------- */
    .kaya-sticky-right {
      position: fixed !important;
      right: 30px !important;
      bottom: 83px !important;
      z-index: 999999 !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      width: 41px !important;
      gap: 12px !important;
      pointer-events: none;
    }

    .kaya-sticky-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 41px !important;
      height: 41px !important;
      pointer-events: auto;
      text-decoration: none !important;
      transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .kaya-sticky-btn:hover {
      transform: scale(1.1);
    }

    /* NÚT ZALO (LOGO CHÍNH THỨC) */
    .kaya-official-img {
      width: 41px;
      height: 41px;
      display: block;
      box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
      position: relative;
      z-index: 2;
      object-fit: contain;
    }
    .kaya-logo-zalo {
      border-radius: 9px;
    }
    .kaya-logo-messenger {
      border-radius: 50%;
    }
    .kaya-btn-pulse {
      display: none !important;
    }

    /* NHÃN THÔNG TIN TRƯỢT SANG TRÁI KHI HOVER (DESKTOP) */
    .kaya-btn-label {
      position: absolute;
      right: calc(100% + 10px);
      top: 50%;
      transform: translateY(-50%) translateX(10px);
      background: #181816;
      color: #ffffff;
      border: 1.5px solid rgba(255, 255, 255, 0.15);
      border-radius: 20px;
      padding: 5px 12px;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
      opacity: 0;
      visibility: hidden;
      transition: all 0.25s ease;
      z-index: 1;
      pointer-events: none;
      line-height: 1.35;
    }
    .kaya-sticky-btn:hover .kaya-btn-label {
      opacity: 1;
      visibility: visible;
      transform: translateY(-50%) translateX(0);
      pointer-events: auto;
    }
    .kaya-btn-zalo .kaya-btn-label {
      border-color: #0068FF;
    }
    .kaya-btn-zalo .kaya-btn-label span {
      color: #4da3ff;
    }
    .kaya-btn-messenger .kaya-btn-label {
      border-color: #0866ff;
    }
    .kaya-btn-messenger .kaya-btn-label span {
      color: #5aa1ff;
    }

    /* ẨN NÚT HOTLINE TRÊN DESKTOP */
    .kaya-sticky-right .kaya-btn-hotline {
      display: none !important;
    }


    /* ĐỒNG BỘ CĂN GIỮA VỚI NÚT SCROLL TO TOP (#ast-scroll-top) */
    @media (min-width: 769px) {
      #ast-scroll-top {
        box-sizing: border-box !important;
        width: 41px !important;
        height: 41px !important;
        line-height: 41px !important;
        right: 30px !important;
        bottom: 30px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
      }
      #ast-scroll-top .ast-icon.icon-arrow svg {
        width: 16px !important;
        height: 16px !important;
        margin: 0 auto !important;
        display: inline-block !important;
      }
    }

    /* --------------------------------------------------------------------------
       2. MOBILE: STICKY BOTTOM BAR 4 NÚT (LOGO THỰC TẾ)
       -------------------------------------------------------------------------- */
    .kaya-mobile-bottom-bar {
      display: none;
    }

    @media (min-width: 769px) {
      .kaya-mobile-bottom-bar {
        display: none !important;
      }
      .kaya-sticky-right {
        display: flex !important;
      }
    }

    @media (max-width: 768px) {
      /* Ẩn cụm nút nổi bên phải trên mobile */
      .kaya-sticky-right {
        display: none !important;
      }

      /* Thanh cố định dưới đáy màn hình mobile */
      .kaya-mobile-bottom-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        border-top: 2.5px solid #FF9E22 !important;
        box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.09) !important;
        z-index: 99999999 !important;
        padding: 6px 0 !important;
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
        display: block !important;
        margin: 0 !important;
        box-sizing: border-box !important;
      }

      .kaya-mobile-bottom-bar ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }

      .kaya-mobile-bottom-bar ul li {
        flex: 1 1 25% !important;
        max-width: 25% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
      }

      .kaya-mobile-bottom-bar ul li a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-decoration: none !important;
        outline: none !important;
        background: transparent !important;
        padding: 2px 0 !important;
        box-sizing: border-box !important;
        -webkit-tap-highlight-color: transparent;
      }

      .kaya-mobile-bottom-bar ul li a img.kaya-mbar-icon {
        height: 24px !important;
        max-height: 24px !important;
        width: auto !important;
        max-width: 34px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto 3px auto !important;
      }

      .kaya-mobile-bottom-bar ul li a img.kaya-mbar-phone {
        border-radius: 6px;
      }

      .kaya-mobile-bottom-bar ul li a img.kaya-mbar-zalo {
        border-radius: 6px;
      }

      .kaya-mobile-bottom-bar ul li a img.kaya-mbar-messenger {
        border-radius: 50%;
      }

      .kaya-mobile-bottom-bar ul li a span.kaya-mbar-text {
        display: block !important;
        font-size: 12px !important; /* trước 11px: tăng cho dễ đọc */
        font-weight: 700 !important;
        color: #ff9801 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        text-align: center !important;
        letter-spacing: -0.2px !important;
      }

      .kaya-mobile-bottom-bar ul li a:active span.kaya-mbar-text {
        color: #e65100 !important;
      }

      /* Đệm khoảng trống ở chân trang tránh thanh sticky che nội dung */
      body {
        padding-bottom: 58px !important;
      }
    }

/* Nút lên đầu trang (Astra #ast-scroll-top): chỉ giữ trên máy tính, ẩn trên điện thoại */
@media (max-width: 768px) {
  #ast-scroll-top {
    display: none !important;
  }
}
