/* ============================================================================
   WW GIAO DIỆN SYNC  —  Đồng bộ hình thức theo quy chuẩn thietkevanphong.pro
   ----------------------------------------------------------------------------
   Chỉ hình thức (tiêu đề section + nút + nhịp). KHÔNG đổi cấu trúc/nội dung.
   Áp toàn site (trang chủ, danh mục, SP, dự án, tin tức, liên hệ).
   Gỡ bỏ:  xoá dòng enqueue 'blv-giaodien-sync' trong functions.php
           (hoặc xoá file này) — mọi thay đổi biến mất, không ảnh hưởng khác.
   Namespace tiện ích: --ww-*  (biến), lớp phủ dùng selector theme sẵn có.
   ============================================================================ */

:root{
  --ww-accent:#bf1e2e;          /* đỏ thương hiệu */
  --ww-accent-d:#8f101b;        /* đỏ đậm */
  --ww-gold:#f2c94c;            /* vàng nhấn (trên nền đỏ) */
  --ww-bar-w:6px;               /* bề rộng thanh dọc */
  --ww-bar-h:.78em;             /* chiều cao thanh dọc theo cỡ chữ */
}

/* ===========================================================================
   1) TIÊU ĐỀ SECTION TRÁI  (Dự án tiêu biểu / các Series / Tin tức / Thông tin)
      Chuẩn: IN HOA + đậm + thanh đỏ dọc bên trái, canh trái, nhất quán.
      Scope qua .title__da và .title__page_info để KHÔNG đụng footer/menu.
   =========================================================================== */
.title__da .section-title-main,
.title__page_info .section-title .section-title-main,
.hdevvn-show-cats .title__button{
  text-transform:uppercase !important;
  font-weight:700 !important;
  letter-spacing:.015em;
  display:inline-flex !important;
  align-items:center;
  line-height:1.2;
}
.title__da .section-title-main::before,
.title__page_info .section-title .section-title-main::before,
.hdevvn-show-cats .title__button::before{
  content:"";
  display:inline-block;
  flex:0 0 auto;
  width:var(--ww-bar-w);
  height:var(--ww-bar-h);
  margin-right:16px;
  background:var(--ww-accent);
  border-radius:2px;
}

/* Khối tiêu đề có đường gạch đứt + nút "Xem tất cả": căn chỉnh thẳng hàng,
   đường gạch mảnh & nhạt hơn cho tinh tế (giống bản chuẩn). */
.section__duan_home .title__da b,
.hdevvn-show-cats b,
.section__baiviet .title__page_info b{
  border-bottom-style:solid !important;
  border-bottom-color:#e6e6e6 !important;
  opacity:1;
}

/* ===========================================================================
   2) TIÊU ĐỀ CANH GIỮA TRÊN NỀN ĐỎ  ("Sản phẩm bán chạy")
      Giữ nguyên layout canh giữa (tab bên dưới cũng giữa) → dùng gạch vàng
      ngắn canh giữa bên dưới thay vì thanh dọc (thanh đỏ sẽ chìm trên nền đỏ).
   =========================================================================== */
.title__heading__xuthe span{
  text-transform:uppercase !important;
  font-weight:700 !important;
  letter-spacing:.02em;
  position:relative;
  padding-bottom:16px;
}
.title__heading__xuthe span::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:48px;
  height:4px;
  border-radius:2px;
  background:var(--ww-gold);
}

/* ===========================================================================
   3) NÚT "XEM TẤT CẢ" / CTA PILL  — đồng bộ chữ in hoa, hover & focus rõ ràng
   =========================================================================== */
.xemtatca_button{
  text-transform:uppercase;
  letter-spacing:.03em;
  font-weight:600 !important;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.xemtatca_button:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
  box-shadow:0 6px 16px rgba(191,30,46,.28);
}
.xemtatca_button:focus-visible,
.title__da a:focus-visible,
.hdevvn-show-cats a:focus-visible{
  outline:2px solid var(--ww-accent);
  outline-offset:3px;
  border-radius:12px;
}

/* ===========================================================================
   4) TIÊU ĐỀ TRANG (H1) — Danh mục SP / Chuyên mục blog / Dự án / Trang
      Thêm thanh đỏ dọc + in hoa + đậm cho đồng bộ với section.
      (KHÔNG áp cho tên sản phẩm .product_title ở trang SP đơn — là tên SP,
       không phải tiêu đề mục, giữ nguyên thiết kế đã dựng.)
   =========================================================================== */
.heading-title-cate,
.shop-page-title .page-title-inner h1,
.shop-page-title h1.shop-page-title,
h1.category-page-title{
  text-transform:uppercase;
  font-weight:700;
  letter-spacing:.012em;
  display:flex;
  align-items:center;
}
.heading-title-cate::before,
.shop-page-title .page-title-inner h1::before,
h1.category-page-title::before{
  content:"";
  display:inline-block;
  flex:0 0 auto;
  width:var(--ww-bar-w);
  height:var(--ww-bar-h);
  margin-right:16px;
  background:var(--ww-accent);
  border-radius:2px;
}

/* ===========================================================================
   5) NHỊP / KHOẢNG TRẮNG  — nới nhẹ dưới tiêu đề cho thoáng (giống bản chuẩn),
      không đổi bố cục. Chỉ tăng nhẹ, tránh phá vỡ các section.
   =========================================================================== */
.title__da,
.title__page_info{
  margin-bottom:28px;
}

/* Trang chủ & các trang chính: hạ mobile giữ gọn */
@media (max-width:549px){
  .title__da .section-title-main,
  .title__page_info .section-title .section-title-main,
  .title__heading__xuthe span,
  .heading-title-cate{
    font-size:22px !important;
    line-height:1.25 !important;
  }
  .title__da .section-title-main::before,
  .title__page_info .section-title .section-title-main::before,
  .heading-title-cate::before{
    width:5px;
    margin-right:10px;
  }
}

/* ===========================================================================
   6) H1 TRANG DANH MỤC / SHOP / TAG  (BLV bổ sung — trước đây thiếu H1)
      Kế thừa kiểu thanh đỏ + in hoa từ mục 4; ép full-width trong page-title.
   =========================================================================== */
.shop-page-title .page-title-inner h1.blv-archive-h1{
  flex:0 0 100%;
  width:100%;
  margin:0 0 4px;
  font-size:clamp(20px,3vw,30px);
  line-height:1.2;
}

/* ===========================================================================
   7) MENU "DANH MỤC SẢN PHẨM" (flyout dọc, term 18)
      Đã gộp dropdown "Sản phẩm" cũ vào menu này (bỏ CSS 2 cột của .menu-item-4987).
      5 landing theo nhu cầu (mục 1-5) in đậm + gạch phân nhóm nhẹ, tách khỏi 9 series.
      Scope trong .header-vertical-menu__fly-out để không đụng nav dọc nơi khác.
   =========================================================================== */
.header-vertical-menu__fly-out .ux-nav-vertical-menu > li:nth-child(-n+5) > a.nav-top-link{
  font-weight:600;
}
.header-vertical-menu__fly-out .ux-nav-vertical-menu > li:nth-child(5){
  border-bottom:1px solid rgba(255,255,255,.22); /* nền flyout đỏ -> gạch phân nhóm dùng trắng mờ */
}

/* ===========================================================================
   8) TRANG LIÊN HỆ (#4746) — bỏ "khung" tiêu đề + làm đẹp đồng bộ brand
      Flatsome vẽ border 2px quanh .section-title-bold span -> tạo "khung".
      Bỏ khung; H2 mục dùng thanh đỏ dọc + IN HOA (đồng bộ các section khác);
      H1 canh giữa thêm gạch chân đỏ ngắn cho tinh tế. Scope .page-id-4746.
   =========================================================================== */
.page-id-4746 .section-title-bold span,
.page-id-4746 .section-title-bold-center span{
  border:0 !important;
  padding:0 !important;
}
/* H1 canh giữa: bỏ 2 gạch ngang 2 bên, thêm gạch chân đỏ ngắn canh giữa */
.page-id-4746 h1.section-title-bold-center{ justify-content:center; }
.page-id-4746 h1.section-title-bold-center b{ display:none !important; }
.page-id-4746 h1.section-title-bold-center .section-title-main{
  position:relative;
  display:inline-block;
  padding-bottom:16px;
  font-weight:800;
  letter-spacing:.01em;
  text-transform:none !important;
}
.page-id-4746 h1.section-title-bold-center .section-title-main::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:64px;
  height:4px;
  border-radius:2px;
  background:var(--ww-accent);
}
/* H2 mục ("Thông tin liên hệ" / "Gửi email liên hệ"): thanh đỏ dọc + in hoa, canh trái */
.page-id-4746 h2.section-title-bold{ justify-content:flex-start; }
.page-id-4746 h2.section-title-bold b{ display:none !important; }
.page-id-4746 h2.section-title-bold .section-title-main{
  display:inline-flex;
  align-items:center;
  text-transform:uppercase !important;
  font-weight:700;
  letter-spacing:.015em;
  line-height:1.2;
  color:#1a1a1a;
}
.page-id-4746 h2.section-title-bold .section-title-main::before{
  content:"";
  display:inline-block;
  flex:0 0 auto;
  width:var(--ww-bar-w);
  height:var(--ww-bar-h);
  margin-right:14px;
  background:var(--ww-accent);
  border-radius:2px;
}
