/* Nghikigai - custom CSS layer (chỉ tinh chỉnh nhỏ; card sản phẩm để Kadence tự lo, tránh đè) */

:root {
  --ngki-primary: #406247;      /* màu logo (chủ đạo) */
  --ngki-primary-dark: #2f4a35;
  --ngki-pink: #406247;         /* alias cũ → trỏ về xanh logo để khỏi sót chỗ tham chiếu */
  --ngki-dark: #1e1e1e;
}

/* Logo đã chứa tên brand → ẩn site title text cạnh logo, tránh lặp */
.site-header .site-title-wrap { display: none; }

/* Giá sản phẩm đậm, dễ thấy (không đụng tới card - Kadence quản lý card) */
.woocommerce ul.products li.product .price { font-weight: 700; }

/* Hero trang chủ: tiêu đề lớn, ấn tượng hơn (mặc định Kadence H1 hơi nhỏ) */
.ngki-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 10px;
}
.ngki-hero p { font-size: 1.08rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.ngki-hero.wp-block-cover .wp-block-cover__inner-container { max-width: 760px; }

/* Hero cover: overlay đậm + đổ bóng chữ → chữ nổi, dễ đọc trên ảnh */
.wp-block-cover.is-dark .wp-block-cover__background { opacity: .72 !important; }
.wp-block-cover__inner-container h1,
.wp-block-cover__inner-container h2,
.wp-block-cover__inner-container p { text-shadow: 0 2px 16px rgba(0,0,0,.5); }

/* Hero TRANG CHỦ: mờ mạnh + làm nhoè ảnh nền (ảnh có chữ → thành nền mềm, hết phân tâm) */
.wp-block-cover.ngki-hero.is-dark .wp-block-cover__background { opacity: .84 !important; }
.wp-block-cover.ngki-hero .wp-block-cover__image-background {
  filter: blur(6px) saturate(1.05);
  transform: scale(1.1);
}

/* Value card "Vì sao chọn": số xanh tròn + card sạch */
.ngki-value-card { border: 1px solid #e6ece7; box-shadow: 0 4px 16px rgba(64,98,71,.06); height: 100%; }
.ngki-value-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #406247; color: #fff; font-weight: 700; font-size: 1rem;
  margin: 0 0 12px; font-family: var(--ngki-body, inherit);
}
.ngki-value-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.ngki-value-card p  { margin: 0; color: #4a5568; line-height: 1.6; }

/* Độ giãn dòng dễ đọc cho nội dung trang */
.entry-content p { line-height: 1.7; }
.wp-block-heading { letter-spacing: -0.005em; }

/* Feedback khách hàng: lưới gọn (3 cột desktop, 2 tablet, 1 mobile).
   WP có thể bọc card trong .wp-block-group__inner-container → áp grid ĐÚNG lớp chứa card. */
.ngki-testi-grid > .wp-block-group__inner-container,
.ngki-testi-grid:not(:has(> .wp-block-group__inner-container)) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
  align-items: stretch;
}
.ngki-testi-card {
  border: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  display: flex; flex-direction: column; height: 100%;
}
.ngki-testi-title { font-size: 1rem; margin: 0 0 8px; line-height: 1.35; }
.ngki-testi-body  { font-size: .92rem; line-height: 1.6; color: #4a5568; margin: 0 0 14px; }
.ngki-testi-name  { font-size: .9rem; margin: auto 0 0; }
@media (max-width: 1024px) {
  .ngki-testi-grid > .wp-block-group__inner-container,
  .ngki-testi-grid:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ngki-testi-grid > .wp-block-group__inner-container,
  .ngki-testi-grid:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 1fr; }
}

/* Accordion FAQ: gọn, dễ bấm */
.wp-block-details { border:1px solid #f0f0f0; border-radius:10px; padding:6px 18px; margin-bottom:10px; background:#fff; }
.wp-block-details summary { padding:12px 0; font-weight:600; cursor:pointer; }
.wp-block-details[open] summary { color: var(--ngki-pink); }

/* Top bar free-ship: nền hồng brand, chữ trắng, căn giữa, nhỏ gọn */
.site-top-header-wrap { background-color: #406247 !important; }
.site-top-header-wrap,
.site-top-header-wrap a,
.site-top-header-wrap .header-html,
.site-top-header-wrap .header-html-inner { color: #ffffff !important; }
.site-top-header-wrap .header-html-inner {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: .02em;
  padding: 7px 0;
}
.site-top-header-wrap a { text-decoration: underline; }

/* ===== Hiệu ứng tinh tế (đỡ boring) ===== */
@media (prefers-reduced-motion: no-preference) {
  .ngki-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .ngki-reveal.is-visible { opacity: 1; transform: none; }
}
/* Nút: nâng nhẹ + đổ bóng xanh khi hover */
.wp-block-button__link, .woocommerce a.button, .woocommerce button.button {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wp-block-button__link:hover, .woocommerce a.button:hover, .woocommerce button.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(64,98,71,.28);
}
/* Ảnh sản phẩm: zoom nhẹ khi hover (mượt, sang) */
.woocommerce ul.products li.product .product-image,
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .product-details + a,
.woocommerce ul.products li.product .wp-post-image { overflow: hidden; }
.woocommerce ul.products li.product img { transition: transform .5s ease; }
.woocommerce ul.products li.product:hover img { transform: scale(1.05); }
/* Card sản phẩm + danh mục: nâng nhẹ khi hover */
.woocommerce ul.products li.product { transition: transform .25s ease, box-shadow .25s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); }
/* Card feedback: nâng nhẹ */
.ngki-testi-card { transition: transform .25s ease, box-shadow .25s ease; }
.ngki-testi-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.07); }
/* Logo: đổi mượt khi hover */
.site-header .custom-logo-link img { transition: opacity .2s ease; }
.site-header .custom-logo-link:hover img { opacity: .85; }

/* ===== Tối ưu mobile ===== */
@media (max-width: 768px) {
  /* Logo gọn, cân đối trên header trắng */
  .site-header .custom-logo-link img { max-height: 40px; width: auto; }
  /* Thanh ship: chữ nhỏ gọn hơn */
  .site-top-header-wrap .header-html-inner { font-size: 0.78rem; padding: 6px 10px; line-height: 1.35; }
  /* Giảm padding các section cho đỡ trống trải */
  .entry-content > .wp-block-group { padding-top: 40px !important; padding-bottom: 40px !important; }
  .ngki-hero { padding-top: 48px !important; padding-bottom: 48px !important; }
  /* Tiêu đề section vừa mắt */
  .wp-block-heading.has-text-align-center { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  /* Nút bấm đủ rộng, dễ chạm */
  .wp-block-button__link { padding-left: 22px; padding-right: 22px; }
  /* "Vì sao chọn" 3 cột → xếp dọc gọn */
  .entry-content .wp-block-columns { gap: 18px; }
}
