/*
Theme Name: Flatsome Child
Description: Shop Hoa Thiên Bình — header/footer thiết kế riêng, phần còn lại clone flowercorner.vn (xem CLAUDE.md)
Author: UX Themes
Template: flatsome
Version: 3.13.1
*/

/* =================================================================
   BIẾN & NỀN TẢNG — số đo lấy trực tiếp từ flowercorner.vn
   ================================================================= */
:root{
  --tb-pink:#e91e63;
  --tb-pink-dark:#c2185b;
  --tb-red:#f50101;
  --tb-notice:#ff3b3d;
  --tb-text:#3d3d3d;
  --tb-head:#444;
  --tb-menu:#4a4a4a;
  --tb-muted:#696969;
  --tb-line:#ddd;
  --tb-footer-bg:#fcfcfc;
  --tb-container:1180px;
}

body{
  background:#fff;
  color:var(--tb-text);
  font-family:'Montserrat',sans-serif;
  font-size:14px;
}
h1,h2,h3,h4,h5,h6{ font-family:'Montserrat',sans-serif; }
a{ color:var(--tb-text); text-decoration:none; }
a:hover{ color:var(--tb-pink); }

.tb-container{
  max-width:var(--tb-container);
  margin:0 auto;
  padding:0 12px;
  width:100%;
}

/* Flatsome bọc nội dung trong .row/.container của nó — đồng bộ về 1180px */
#main .container,
#main .row:not(.tb-no-width){ max-width:var(--tb-container); }

/* =================================================================
   1. HEADER — 1 thanh duy nhất, sticky (logo · menu · tiện ích)
   ================================================================= */
#header.tb-bar{
  position:sticky; top:0; z-index:999;
  background:#fff;
  border-bottom:1px solid #ededed;
  transition:box-shadow .2s ease;
}
#header.tb-bar.is-scrolled{ box-shadow:0 2px 12px rgba(0,0,0,.07); }
/* chừa chỗ cho thanh admin của WP khi đang đăng nhập */
body.admin-bar #header.tb-bar{ top:32px; }
@media (max-width:782px){ body.admin-bar #header.tb-bar{ top:46px; } }
@media (max-width:600px){ body.admin-bar #header.tb-bar{ top:0; } }

.tb-bar-inner{ display:flex; align-items:center; gap:18px; height:55px; }
.tb-bar-logo{ flex:0 0 auto; }
.tb-bar-logo a{ display:inline-block; }
/* trong header chỉ cần tên shop, bỏ slogan cho gọn 1 tầng */
.tb-bar-logo .tb-logo-name{ font-size:20px; }
.tb-bar-logo .tb-logo-name small{ display:none; }
.tb-bar-logo .tb-logo-mark svg{ width:32px; height:32px; }

.tb-bar .tb-nav{ flex:1 1 auto; min-width:0; display:flex; justify-content:center; }
.tb-bar-tools{ flex:0 0 auto; display:flex; align-items:center; gap:10px; margin-left:auto; }

.tb-hotline{
  display:inline-flex; align-items:center; gap:7px;
  font-size:14px; font-weight:700; color:var(--tb-pink); white-space:nowrap;
}
.tb-hotline i{ font-size:12px; }
.tb-hotline:hover{ color:var(--tb-pink-dark); }

.tb-search-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; margin:0; padding:0;   /* Flatsome đặt margin-bottom cho button */
  border:1px solid #e3e3e3; border-radius:4px;
  background:#fff; color:var(--tb-text); font-size:15px; cursor:pointer;
}
.tb-search-toggle:hover,
.tb-search-toggle[aria-expanded="true"]{ border-color:var(--tb-pink); color:var(--tb-pink); }

.tb-cart-btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:38px; border-radius:4px;
  background:var(--tb-pink); color:#fff; font-size:16px;
}
.tb-cart-btn:hover{ background:var(--tb-pink-dark); color:#fff; }
.tb-cart-count{
  position:absolute; top:-6px; right:-6px;
  min-width:18px; height:18px; padding:0 5px;
  border-radius:9px; background:#333; color:#fff;
  font-size:11px; font-weight:600; line-height:18px; text-align:center;
}

/* ô tìm kiếm: mở khi bấm nút kính lúp */
.tb-searchbar{ display:none; padding:12px 0; border-top:1px solid #f1f1f1; background:#fff; }
.tb-searchbar.is-open{ display:block; }
.tb-search{ display:flex; align-items:center; border:1px solid #ccc; border-radius:4px; overflow:hidden; }
.tb-search input[type="search"]{
  flex:1 1 auto; min-width:0;
  height:42px; margin:0; padding:0 14px;
  border:0; outline:0; box-shadow:none;
  font-family:inherit; font-size:14px; background:transparent;
}
.tb-search button{
  flex:0 0 auto; width:50px; height:42px; padding:0;
  border:0; background:var(--tb-pink); color:#fff; font-size:15px; cursor:pointer;
}
.tb-search button:hover{ background:var(--tb-pink-dark); }

/* =================================================================
   2. MENU CHÍNH — nằm trong thanh header
   ================================================================= */
.tb-nav-list{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:nowrap; }
.tb-nav-list > li{ position:relative; margin:0; }
.tb-nav-list > li > a{
  position:relative; display:block;
  height:55px; padding:0 11px; line-height:55px;
  font-size:13px; font-weight:600;
  color:var(--tb-menu); text-transform:uppercase; white-space:nowrap;
}
.tb-nav-list > li > a::after{
  content:""; position:absolute; left:11px; right:11px; bottom:0;
  height:2px; background:var(--tb-pink); transform:scaleX(0); transition:transform .18s ease;
}
.tb-nav-list > li:hover > a,
.tb-nav-list > li.current-menu-item > a,
.tb-nav-list > li.current-menu-parent > a{ color:var(--tb-pink); }
.tb-nav-list > li:hover > a::after,
.tb-nav-list > li.current-menu-item > a::after,
.tb-nav-list > li.current-menu-parent > a::after{ transform:scaleX(1); }

/* dropdown cấp 2 */
.tb-nav-list .sub-menu{
  position:absolute; top:100%; left:0; z-index:1000;
  min-width:230px; margin:0; padding:8px 0;
  list-style:none; background:#fff;
  border:1px solid #eee; border-top:2px solid var(--tb-pink);
  box-shadow:0 8px 24px rgba(0,0,0,.1);
  opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .15s ease, transform .15s ease, visibility .15s;
}
.tb-nav-list > li:hover > .sub-menu{ opacity:1; visibility:visible; transform:none; }
.tb-nav-list .sub-menu li{ margin:0; }
.tb-nav-list .sub-menu a{
  display:block; padding:8px 16px;
  font-size:13.5px; font-weight:500; color:var(--tb-text); text-transform:none;
}
.tb-nav-list .sub-menu a:hover{ color:var(--tb-pink); background:#fff6f9; }

.tb-burger{ display:none; font-size:22px; color:var(--tb-pink); padding:6px 10px 6px 0; }

/* =================================================================
   3. HERO CAROUSEL — tỉ lệ 1355:432 (~3.14:1), radius 4px, mb 50px
   ================================================================= */
.tb-hero{
  position:relative;
  margin:0 0 50px;
  border-radius:4px;
  overflow:hidden;
}
.tb-hero-track{ position:relative; aspect-ratio:1355/432; }
.tb-hero-slide{
  position:absolute; inset:0;
  opacity:0; transition:opacity .5s ease; pointer-events:none;
}
.tb-hero-slide.is-active{ opacity:1; pointer-events:auto; }
.tb-hero-slide a,
.tb-hero-slide img{ display:block; width:100%; height:100%; object-fit:cover; }

.tb-hero-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:38px; height:38px; border:0; border-radius:50%;
  background:rgba(255,255,255,.75); color:#444;
  font-size:24px; line-height:1; cursor:pointer;
  opacity:0; transition:opacity .2s ease;
}
.tb-hero:hover .tb-hero-nav{ opacity:1; }
.tb-hero-prev{ left:12px; }
.tb-hero-next{ right:12px; }
.tb-hero-dots{ position:absolute; left:0; right:0; bottom:10px; display:flex; justify-content:center; gap:7px; }
.tb-hero-dots button{
  width:9px; height:9px; padding:0; border:0; border-radius:50%;
  background:rgba(255,255,255,.65); cursor:pointer;
}
.tb-hero-dots button.is-active{ background:var(--tb-pink); }

/* =================================================================
   4. SECTION SẢN PHẨM — h2 23/500 + lưới 5 cột
   ================================================================= */
.tb-section-title{
  margin:24px 0;
  font-size:23px;
  font-weight:500;
  line-height:1.2;
  color:var(--tb-head);
  text-align:center;
  text-transform:none;
}
.tb-section-title a{ color:inherit; }
.tb-section-title a:hover{ color:var(--tb-pink); }

.tb-product-loop{
  display:flex;
  flex-wrap:wrap;
  margin:0 -12px;
}
.tb-col{
  width:20%;            /* 5 cột desktop */
  padding:0 12px;
  margin-bottom:24px;
  display:flex;         /* card cao đều nhau trong 1 hàng */
}

/* --- card: viền + bóng nhẹ cho dễ phân biệt (user quyết 2026-12-04) --- */
.product-thumb{
  display:flex;
  flex-direction:column;
  width:100%;
  background:#fff;
  border:1px solid #ececec;
  border-radius:6px;
  padding:0;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
  transition:box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.product-thumb:hover{
  border-color:#e5c3d1;
  box-shadow:0 6px 18px rgba(0,0,0,.10);
  transform:translateY(-2px);
}
.tb-card-image{ position:relative; }
.tb-card-image a{ display:block; }
.tb-card-img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/5;       /* 212×265 */
  object-fit:cover;
}
.tb-card-noimg{ background:#f4f4f4; }
.tb-badge{
  position:absolute; top:5px; right:5px;
  width:48px; height:48px;
  border-radius:50%;
  background:var(--tb-red);
  color:#fff;
  font-size:11px; font-weight:600; line-height:18px;
  text-align:center;
  padding-top:6px;
}
.tb-card-content{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  padding:12px 10px 14px;
  text-align:center;
}
.tb-card-content .tb-card-buy{ margin-top:auto; }
/* Khoá 2 dòng cho tên sản phẩm: tên dài/ngắn khác nhau vẫn giữ giá + nút thẳng hàng
   giữa các card trong cùng 1 hàng (tên >2 dòng bị cắt bằng ellipsis). */
.tb-card-content h3{
  margin:0 0 8px;
  font-size:15px;
  line-height:18px;
  min-height:36px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.tb-card-title{ font-size:15px; font-weight:700; color:var(--tb-head); }
.tb-card-title:hover{ color:var(--tb-pink); }
.tb-card-price{ margin:0 0 8px; line-height:18px; }
.tb-card-price .tb-price-new,
.tb-card-price .tb-price-new .amount{ font-size:14px; font-weight:500; color:var(--tb-pink); }
.tb-card-price .tb-price-old,
.tb-card-price .tb-price-old .amount{ font-size:14px; font-weight:500; color:var(--tb-muted); text-decoration:line-through; }
.tb-card-buy a{
  display:inline-block;
  padding:6px 20px;
  border-radius:4px;
  background:var(--tb-pink);
  color:#fff;
  font-size:12px; font-weight:500; line-height:1.25;
}
.tb-card-buy a:hover{ background:var(--tb-pink-dark); color:#fff; }

/* =================================================================
   4b. DẢI LOGO ĐỐI TÁC — h3 giữa + hàng logo xám (site cũ: swiper 5 ảnh)
   ================================================================= */
.tb-partners{ margin:30px 0 10px; }
.tb-partners-title{
  margin:24px 0;
  text-align:center;
  font-size:23px; font-weight:500; color:var(--tb-head);
}
.tb-partners-track{
  display:flex; align-items:center; justify-content:space-around;
  gap:30px;
  min-height:138px;
  padding:0 12px;
  overflow-x:auto;
  scrollbar-width:none;
}
.tb-partners-track::-webkit-scrollbar{ display:none; }
.tb-partner{ flex:0 0 auto; display:flex; align-items:center; justify-content:center; }
.tb-partner-logo{
  display:block;
  width:auto; height:56px;
  max-width:none;
  opacity:.75;
  transition:opacity .2s ease;
}
.tb-partner-logo:hover{ opacity:1; }

@media (max-width:849px){
  .tb-partners-title{ font-size:20px; margin:18px 0; }
  .tb-partners-track{ min-height:96px; gap:16px; justify-content:space-between; }
  .tb-partner-logo{ height:40px; }
}

/* =================================================================
   4c. SECTION BÀI VIẾT — card (lưới 5 cột, ảnh 4:3) + khối link toàn quốc
   ================================================================= */
.tb-post-card{
  display:flex;
  flex-direction:column;
  width:100%;
  background:#fff;
  border:1px solid #ededed;
  border-radius:4px;
  overflow:hidden;
  transition:box-shadow .18s ease, border-color .18s ease;
}
.tb-post-card:hover{
  border-color:#e6c5d2;
  box-shadow:0 3px 12px rgba(0,0,0,.08);
}
.tb-post-thumb{
  display:block;
  background:#f6f6f6;
}
.tb-post-thumb .tb-post-img,
.tb-post-noimg{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}
.tb-post-noimg{ background:#f1f1f1; }
.tb-post-title{
  margin:10px 12px 6px;
  font-size:14px;
  font-weight:700;
  line-height:1.35;
  text-align:center;
}
.tb-post-title a{ color:var(--tb-head); }
.tb-post-title a:hover{ color:var(--tb-pink); }
.tb-post-excerpt{
  margin:0 12px 10px;
  font-size:12.5px;
  line-height:1.5;
  color:#6f6f6f;
  text-align:center;
}
.tb-post-more{
  margin:auto 12px 12px;
  padding:6px 0;
  font-size:12px;
  font-weight:500;
  text-align:center;
  color:#fff;
  background:var(--tb-pink);
  border-radius:4px;
}
.tb-post-more:hover{ color:#fff; opacity:.9; }
.tb-posts-all{
  margin:4px 0 10px;
  text-align:center;
}
.tb-posts-all a{
  display:inline-block;
  padding:8px 22px;
  font-size:13px;
  font-weight:600;
  color:var(--tb-pink);
  border:1px solid var(--tb-pink);
  border-radius:4px;
}
.tb-posts-all a:hover{ color:#fff; background:var(--tb-pink); }

/* --- khối link toàn quốc --- */
.tb-post-links{ margin:30px 0 10px; }
.tb-post-links-list{
  columns:4;
  column-gap:30px;
  margin:0;
  padding:0;
  list-style:none;
}
.tb-post-links-list li{
  break-inside:avoid;
  margin:0 0 5px;
  font-size:13px;
  line-height:1.5;
}
.tb-post-links-list a{ color:var(--tb-text); }
.tb-post-links-list a:hover{ color:var(--tb-pink); }
.tb-post-links .tb-posts-all{ margin-top:18px; }

/* =================================================================
   5. KHỐI NỘI DUNG SEO (2 cột)
   ================================================================= */
.tb-seo{ margin:40px 0 10px; }
.tb-seo h1{ font-size:26px; font-weight:600; color:var(--tb-head); }
.tb-seo h2{ font-size:21px; font-weight:500; color:var(--tb-head); margin:22px 0 10px; }
.tb-seo h3{ font-size:18px; font-weight:500; color:var(--tb-head); margin:20px 0 10px; }
.tb-seo p,
.tb-seo li{ font-size:14px; line-height:1.7; color:var(--tb-text); }
.tb-seo-cols{ columns:2; column-gap:40px; }
.tb-seo-cols > *{ break-inside:avoid; }
/* danh sách dài được phép tách ngang 2 cột, nếu không cột trái bị hụt cả khoảng lớn */
.tb-seo-cols > ul,
.tb-seo-cols > ol{ break-inside:auto; }
.tb-seo-cols h2,
.tb-seo-cols h3{ break-after:avoid; }

/* =================================================================
   6. FOOTER — 3 cột gọn + dòng bản quyền
   ================================================================= */
.tb-footer{
  margin-top:50px;
  background:var(--tb-footer-bg);
  border-top:1px solid var(--tb-line);
  color:var(--tb-text);
}
/* dải 3 ý đầu footer */
.tb-footer-top{ border-bottom:1px solid #ececec; }
.tb-footer-top .tb-container{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px 30px;
  padding-top:22px; padding-bottom:22px;
}
.tb-ftop-item{ display:flex; align-items:center; gap:12px; color:var(--tb-text); }
.tb-ftop-item i{
  flex:0 0 auto;
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  background:#fde8ef; color:var(--tb-pink); font-size:15px;
}
.tb-ftop-item > span{ font-size:13px; line-height:18px; color:var(--tb-muted); }
.tb-ftop-item strong{ display:block; font-size:14px; font-weight:600; color:var(--tb-head); }
a.tb-ftop-item:hover strong{ color:var(--tb-pink); }

.tb-footer-grid{
  display:grid;
  grid-template-columns:minmax(240px,1fr) 1.35fr 1fr;
  gap:30px 40px;
  padding-top:40px;
  padding-bottom:34px;
}
.tb-footer-col h5{
  margin:0 0 14px;
  font-size:13px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:var(--tb-head);
}
.tb-footer-col ul{ list-style:none; margin:0; padding:0; }
.tb-footer-col li{ margin:0 0 9px; }
.tb-footer-col a{ color:var(--tb-text); font-size:14px; line-height:20px; }
.tb-footer-col a:hover{ color:var(--tb-pink); }
.tb-footer-links-2col{ columns:2; column-gap:24px; }
.tb-footer-links-2col li{ break-inside:avoid; }

.tb-footer-logo{ display:inline-block; margin-bottom:14px; }
.tb-footer-contact{ margin:0 0 8px; font-size:14px; font-weight:600; }
.tb-footer-contact i{ width:16px; text-align:center; color:var(--tb-pink); }
.tb-footer-about{ margin:0 0 14px; font-size:13px; line-height:20px; color:var(--tb-muted); }
.tb-footer-meta{ margin:0 0 6px; font-size:13px; line-height:19px; color:var(--tb-muted); }
.tb-footer-meta i{ width:16px; text-align:center; color:var(--tb-pink); }
.tb-footer-social{ display:flex; gap:10px; margin-top:14px; }
.tb-footer-social a{
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:50%;
  border:1px solid var(--tb-line); background:#fff; color:var(--tb-pink); font-size:14px;
}
.tb-footer-social a:hover{ background:var(--tb-pink); border-color:var(--tb-pink); color:#fff; }

.tb-footer-bottom{ border-top:1px solid #ececec; padding:14px 0; }
.tb-footer-bottom p{ margin:0; font-size:13px; color:var(--tb-muted); text-align:center; }

/* =================================================================
   8. TRANG DANH MỤC / SHOP
   ================================================================= */
.tb-archive-title{
  margin:24px 0;
  text-align:center;
  font-size:26px;
  font-weight:500;
  color:var(--tb-head);
}
.tb-archive-title span{ display:inline-block; padding-bottom:6px; border-bottom:2px solid var(--tb-pink); }

.woocommerce-products-header,
.shop-page-title .page-title-inner{ display:none; }

/* Lưới Woo mặc định → dùng card clone */
ul.products{ display:flex; flex-wrap:wrap; margin:0 -12px; padding:0; list-style:none; }
ul.products::before, ul.products::after{ display:none; }

/* =================================================================
   8b. TRANG CHI TIẾT BÀI VIẾT — bỏ sidebar, chữ 1 cột dễ đọc
   ================================================================= */
.tb-single-post{ padding-bottom:10px; }

.tb-crumbs{
  margin:18px 0 0;
  font-size:13px;
  color:#8a8a8a;
}
.tb-crumbs a{ color:#6f6f6f; }
.tb-crumbs a:hover{ color:var(--tb-pink); }
.tb-crumbs-sep{ margin:0 6px; color:#c9c9c9; }
.tb-crumbs-current{ color:var(--tb-head); }

.tb-single-post .tb-archive-title{
  margin:16px 0 26px;
  font-size:24px;
  line-height:1.35;
}

.tb-post-body{
  max-width:900px;
  margin:0 auto;
  font-size:14px;
  line-height:1.75;
  color:var(--tb-text);
}
.tb-post-body h2{
  margin:26px 0 10px;
  font-size:21px;
  font-weight:500;
  line-height:1.35;
  color:var(--tb-head);
}
.tb-post-body h3{
  margin:22px 0 8px;
  font-size:17px;
  font-weight:500;
  color:var(--tb-head);
}
.tb-post-body h2 strong,
.tb-post-body h3 strong{ font-weight:600; }
.tb-post-body p{ margin:0 0 14px; }
.tb-post-body ul,
.tb-post-body ol{ margin:0 0 14px 20px; }
.tb-post-body li{ margin-bottom:6px; }
.tb-post-body a{ color:var(--tb-pink); }
.tb-post-body a:hover{ text-decoration:underline; }

/* ảnh trong bài: site cũ bọc bằng <table> (ảnh + dòng chú thích) */
.tb-post-body img{
  display:block;
  max-width:100%;
  height:auto;
  margin:0 auto;
  border-radius:4px;
}
.tb-post-body table{
  margin:18px auto;
  border:0;
  border-collapse:collapse;
}
.tb-post-body table td{
  padding:4px 0;
  border:0;
  background:none;
}
.tb-post-body table tr:last-child td{
  font-size:13px;
  font-style:italic;
  color:#8a8a8a;
  text-align:center;
}
.tb-post-body iframe{ max-width:100%; }

/* địa phương khác */
.tb-post-near{ max-width:900px; margin:34px auto 0; }
.tb-post-near .tb-section-title{ margin:0 0 14px; font-size:19px; }
.tb-post-near-list{ columns:3; column-gap:24px; }

/* =================================================================
   9. RESPONSIVE
   ================================================================= */
@media (max-width:1180px){
  .tb-nav-list > li > a{ padding:0 8px; }
  .tb-nav-list > li > a::after{ left:8px; right:8px; }
}

@media (max-width:1120px){
  .tb-hotline span{ display:none; }   /* chỉ còn icon điện thoại */
  .tb-hotline i{ font-size:16px; }
}

@media (max-width:1060px){
  /* menu ngang không còn đủ chỗ → hamburger trái, logo giữa, tiện ích phải */
  .tb-bar .tb-nav{ display:none; }
  .tb-burger{ display:inline-flex; }
  .tb-bar-inner{ position:relative; gap:10px; }
  /* căn giữa tuyệt đối: burger và nhóm tiện ích rộng khác nhau */
  .tb-bar-logo{ position:absolute; left:50%; transform:translateX(-50%); }
}

@media (max-width:849px){
  /* 2 cột sản phẩm */
  .tb-col{ width:50%; margin-bottom:16px; }
  .product-thumb:hover{ transform:none; box-shadow:0 1px 3px rgba(0,0,0,.05); }

  .tb-bar-inner{ height:55px; }
  .tb-bar-logo .tb-logo-name{ font-size:17px; }
  .tb-bar-logo .tb-logo-mark svg{ width:28px; height:28px; }
  .tb-hotline{ display:none; }        /* đã có thanh hồng cố định đáy */
  .tb-hide-sm{ display:none; }

  .tb-hero{ margin-bottom:30px; }
  .tb-section-title{ font-size:20px; }

  /* footer xếp dọc */
  .tb-footer{ margin-top:30px; }
  .tb-footer-top .tb-container{ grid-template-columns:1fr; gap:14px; }
  .tb-footer-grid{ grid-template-columns:1fr; gap:24px; padding-top:30px; }

  .tb-seo-cols{ columns:1; }
  .tb-post-links-list{ columns:2; column-gap:20px; }
  .tb-post-near-list{ columns:2; }
  .tb-single-post .tb-archive-title{ font-size:20px; }
  .tb-post-excerpt{ display:none; }
}

/* =================================================================
   10. LOGO
   ================================================================= */
.tb-logo{ display:inline-flex; align-items:center; gap:10px; }
.tb-logo-mark{ display:flex; line-height:1; color:var(--tb-pink); }
.tb-logo-mark svg{ width:40px; height:40px; }
.tb-logo-name{
  font-size:24px; font-weight:800; line-height:1.05;
  color:var(--tb-pink); text-align:left; text-transform:uppercase;
  letter-spacing:.01em;
}
.tb-logo-name small{
  display:block; margin-top:2px;
  font-size:11px; font-weight:400; font-style:italic;
  color:var(--tb-muted); text-transform:none; letter-spacing:.02em;
}
.tb-header-logo a{ display:inline-block; }
.tb-footer-logo .tb-logo-mark svg{ width:32px; height:32px; }
.tb-footer-logo .tb-logo-name{ font-size:19px; }

/* =================================================================
   11. TRANG DANH MỤC / SHOP — thanh công cụ + phân trang
   ================================================================= */
.tb-archive{ padding-bottom:40px; }
.tb-archive-desc{ margin:0 0 20px; font-size:14px; line-height:1.7; }
.tb-archive-bar{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin:0 0 24px; padding:14px 16px;
  border:1px solid #eee; border-radius:4px;
}
.tb-archive-bar-left{ font-size:13px; color:var(--tb-muted); }
.tb-archive-bar .woocommerce-result-count{ margin:0; font-size:13px; color:var(--tb-muted); }
.tb-archive-bar-right{ display:flex; align-items:center; gap:10px; }
.tb-archive-label{
  padding:8px 14px; border:1px solid #eee; border-radius:4px;
  font-size:14px; font-weight:500; color:var(--tb-text); white-space:nowrap;
}
.tb-archive-bar select,
.tb-archive-bar .orderby{
  height:38px; min-width:190px; margin:0;
  padding:0 10px; border:1px solid #ccc; border-radius:4px;
  font-family:inherit; font-size:14px; color:var(--tb-text); background:#fff;
}
.tb-archive-bar form{ margin:0; }
.tb-archive-empty{ padding:40px 0 60px; text-align:center; color:var(--tb-muted); }

/* phân trang: dùng chung cho danh mục sản phẩm (Woo) và danh mục bài viết (category.php) */
.woocommerce-pagination,
.tb-pagination{ margin:30px 0 0; text-align:center; }
.woocommerce-pagination ul,
.tb-pagination ul{ display:inline-flex; gap:6px; list-style:none; margin:0; padding:0; border:0; }
.woocommerce-pagination li,
.tb-pagination li{ margin:0; border:0; }
.woocommerce-pagination a,
.woocommerce-pagination span,
.tb-pagination a,
.tb-pagination span{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:34px; height:34px; padding:0 10px;
  border:1px solid #e3e3e3; border-radius:4px;
  font-size:14px; color:var(--tb-text); background:#fff;
}
.woocommerce-pagination a:hover,
.woocommerce-pagination span.current,
.tb-pagination a:hover,
.tb-pagination span.current{
  background:var(--tb-pink); border-color:var(--tb-pink); color:#fff;
}
.tb-pagination .dots{ border-color:transparent; background:none; }

/* ghi đè Flatsome: result count không chiếm cả hàng */
.tb-archive-bar .woocommerce-result-count{ display:inline-block; width:auto; float:none; }
.tb-archive-bar .woocommerce-ordering{ margin:0; float:none; }

/* =================================================================
   12. TRANG CHI TIẾT SẢN PHẨM
   ================================================================= */
.tb-single{ padding:24px 0 40px; }
.tb-single-grid{ display:grid; grid-template-columns:49% 51%; gap:0 36px; align-items:start; }
.tb-single-media img{ display:block; width:100%; height:auto; border-radius:2px; }
.tb-single-sku{ margin:10px 0 0; font-size:13px; color:var(--tb-muted); }

.tb-single-title{
  margin:0 0 16px; padding-bottom:14px;
  border-bottom:1px solid #eee;
  font-size:28px; font-weight:500; color:var(--tb-head);
}
.tb-single-price{ display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 18px; }
.tb-single-price .tb-price-old,
.tb-single-price .tb-price-old .amount{ font-size:20px; font-weight:500; color:var(--tb-muted); text-decoration:line-through; }
.tb-single-price .tb-price-new,
.tb-single-price .tb-price-new .amount{ font-size:28px; font-weight:600; color:var(--tb-pink); }
.tb-single-price .tb-price-ask{ font-size:20px; font-weight:600; color:var(--tb-pink); }
.tb-single-badge{
  padding:4px 10px; border-radius:3px;
  background:var(--tb-red); color:#fff;
  font-size:13px; font-weight:600;
}

.tb-usp{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:0 0 22px; }
.tb-usp-item{
  display:flex; align-items:center; gap:10px;
  padding:12px 10px; border:1px solid #eee; border-radius:4px;
}
.tb-usp-item i{ font-size:22px; color:var(--tb-pink); flex:0 0 auto; }
.tb-usp-item span{ font-size:12px; line-height:1.35; color:var(--tb-text); }
.tb-usp-item strong{ display:block; font-size:12px; font-weight:700; }

.tb-single-label{ margin:0 0 8px; font-size:14px; font-weight:600; color:var(--tb-head); }
.tb-shopbox{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:10px; margin:0 0 22px; }
.tb-shopbox-item{ padding:14px; border:1px solid #eee; border-radius:4px; }
.tb-shopbox-item p{ margin:0 0 10px; font-size:14px; line-height:1.5; }
.tb-chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 14px; border-radius:20px;
  font-size:13px; font-weight:600;
}
.tb-chip-pink{ background:#fde8ef; color:var(--tb-pink); }
.tb-chip-pink:hover{ background:var(--tb-pink); color:#fff; }

.tb-single-buy{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:0 0 16px; }
.tb-btn-order{
  display:inline-flex; align-items:center; gap:10px;
  flex:1 1 200px; justify-content:center;
  height:48px; padding:0 24px; border-radius:4px;
  background:#f26522; color:#fff;
  font-size:16px; font-weight:600; text-transform:uppercase;
}
.tb-btn-order:hover{ background:#d9541a; color:#fff; }
.tb-single-buy form.cart{ display:flex; align-items:center; gap:10px; margin:0; flex:1 1 100%; }
.tb-single-buy .quantity{ flex:0 0 auto; display:flex; align-items:center; margin:0; }
.tb-single-buy .quantity input.qty{
  height:48px; width:40px; min-width:0; padding:0; text-align:center;
  border:1px solid #ddd; border-radius:4px; font-size:14px;
}
.tb-single-buy .quantity .ux-quantity__button{
  flex:0 0 28px; width:28px; min-width:28px; height:48px; padding:0; font-size:16px;
}
.tb-single-buy button.single_add_to_cart_button{
  flex:1 1 auto; height:48px; margin:0; padding:0 22px; border:0; border-radius:4px;
  background:var(--tb-pink); color:#fff; font-size:14px; font-weight:600;
  text-transform:uppercase; cursor:pointer;
}

.tb-single-contact{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.tb-btn-outline{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  flex:1 1 160px; height:48px; padding:0 18px;
  border:1px solid #ddd; border-radius:4px;
  font-size:14px; font-weight:600; color:var(--tb-text); background:#fff;
}
.tb-btn-outline i{ color:var(--tb-pink); font-size:18px; }
.tb-btn-outline:hover{ border-color:var(--tb-pink); color:var(--tb-pink); }

.tb-single-desc{ margin-top:40px; }
.tb-single-desc h2{
  display:inline-block; margin:0 0 16px; padding:10px 20px;
  border:1px solid #eee; border-bottom:2px solid var(--tb-pink); border-radius:4px 4px 0 0;
  font-size:16px; font-weight:600; color:var(--tb-head);
}
.tb-single-desc p, .tb-single-desc li{ font-size:14px; line-height:1.75; }

@media (max-width:849px){
  .tb-single-grid{ grid-template-columns:1fr; gap:24px; }
  .tb-single-title{ font-size:22px; }
  .tb-single-price .tb-price-new,
  .tb-single-price .tb-price-new .amount{ font-size:24px; }
  .tb-usp{ grid-template-columns:1fr; }
  /* ĐẶT HOA NGAY + Zalo vẫn nằm chung 1 hàng trên mobile */
  .tb-single-contact{ flex-wrap:nowrap; gap:10px; }
  .tb-single-contact .tb-btn-order,
  .tb-single-contact .tb-btn-outline{
    flex:1 1 0; min-width:0; padding:0 10px; font-size:14px; gap:6px; white-space:nowrap;
  }
  .tb-single-contact .tb-btn-outline i{ font-size:16px; }
}

/* =================================================================
   13. DRAWER MENU MOBILE (overlay của Flatsome)
   ================================================================= */
#main-menu .searchform button,
#main-menu .searchform .button,
#main-menu button[type="submit"]{
  background:var(--tb-pink) !important;
  border-color:var(--tb-pink) !important;
  color:#fff !important;
}
#main-menu .nav-sidebar > li > a{
  font-size:14px; font-weight:600; color:var(--tb-menu); text-transform:uppercase;
}
#main-menu .nav-sidebar > li.active > a,
#main-menu .nav-sidebar > li > a:hover{ color:var(--tb-pink); }
/* ẩn khối newsletter + social mặc định (chưa có link thật của shop) */
#main-menu .widget_newsletter,
#main-menu .html-footer,
#main-menu .social-icons{ display:none; }

/* =================================================================
   14. TRANG GIỎ HÀNG (block Cart của WooCommerce)
   ================================================================= */
/* 2 khối sản phẩm trong trang giỏ hàng ("CÓ THỂ BẠN QUAN TÂM" khi có hàng,
   "SẢN PHẨM MỚI" khi giỏ rỗng) dùng shortcode [tb_products] → card giống
   hệt trang chủ / trang danh mục. Xem fix-cart-page.php. */

/* Cross-sells nằm trong cột trái hẹp (~766px) → 3 cột thay vì 5 cho đỡ bí */
.wp-block-woocommerce-cart-items-block .tb-col{ width:33.3333%; }

/* Nút chính của block cart → hồng như toàn site (mặc định là xám đen) */
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wp-block-button__link,
.wp-block-woocommerce-empty-cart-block .wp-block-button__link{
  background-color:var(--tb-pink);
  border-color:var(--tb-pink);
  color:#fff;
  border-radius:4px;
  font-weight:600;
}
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wp-block-woocommerce-cart .wp-block-button__link:hover,
.wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover{
  background-color:#d81b60;
  border-color:#d81b60;
  color:#fff;
}

@media (max-width:849px){
  .wp-block-woocommerce-cart-items-block .tb-col{ width:50%; }
}

/* =================================================================
   15. TOAST THÔNG BÁO (thay notice banner của WooCommerce)
   ================================================================= */
.tb-toasts{
  position:fixed;
  top:69px;                       /* header sticky 55px + 14px */
  right:16px;
  z-index:1100;                   /* trên header (999) */
  width:340px;
  max-width:calc(100vw - 32px);
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;            /* chỗ trống không chặn click vào trang */
}
body.admin-bar .tb-toasts{ top:101px; }
.tb-toasts:empty{ display:none; }

.tb-toast{
  pointer-events:auto;
  position:relative;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:start;
  gap:10px;
  padding:14px 12px 15px 14px;
  background:#fff;
  border:1px solid #ececec;
  border-left:4px solid var(--tb-pink);
  border-radius:8px;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  overflow:hidden;
  animation:tb-toast-in .28s cubic-bezier(.22,1,.36,1) both;
}
.tb-toast.is-notice{ border-left-color:#8a8a8a; }
.tb-toast.is-error{ border-left-color:var(--tb-red); }
.tb-toast.is-leaving{ animation:tb-toast-out .22s ease forwards; }

.tb-toast-icon{
  font-size:17px; line-height:20px; color:var(--tb-pink);
}
.tb-toast.is-notice .tb-toast-icon{ color:#8a8a8a; }
.tb-toast.is-error .tb-toast-icon{ color:var(--tb-red); }

.tb-toast-body{
  font-size:14px; line-height:1.45; color:var(--tb-text); min-width:0;
}
.tb-toast-body p{ margin:0; }
.tb-toast-body p + p{ margin-top:6px; }
.tb-toast-body a:not(.button){ color:var(--tb-pink); text-decoration:underline; }

/* nút "Xem giỏ hàng" đi kèm message của WooCommerce */
.tb-toast-body .button,
.tb-toast-body a.button.wc-forward{
  display:inline-flex; align-items:center;
  margin:10px 0 0; padding:7px 14px;
  min-height:0; line-height:1;
  font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.02em;
  color:var(--tb-pink); background:transparent;
  border:1px solid var(--tb-pink); border-radius:4px;
  box-shadow:none; text-decoration:none;
}
.tb-toast-body .button:hover,
.tb-toast-body a.button.wc-forward:hover{
  color:#fff; background:var(--tb-pink); border-color:var(--tb-pink);
}

.tb-toast-close{
  display:flex; align-items:center; justify-content:center;
  width:26px; height:26px; margin:-4px -2px 0 0; padding:0;
  font-size:14px; color:#9a9a9a;
  background:none; border:0; border-radius:4px; cursor:pointer;
}
.tb-toast-close:hover{ color:var(--tb-head); background:#f3f3f3; }

/* vạch đếm thời gian dưới chân toast (chỉ toast tự tắt) */
.tb-toast[data-autohide]::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:var(--tb-pink); transform-origin:left center;
  animation:tb-toast-life 5s linear forwards;   /* khớp TOAST_LIFE trong clone.js */
}
.tb-toast[data-autohide].is-paused::after{ animation-play-state:paused; }

@keyframes tb-toast-in{
  from{ opacity:0; transform:translate3d(16px,-8px,0) scale(.98); }
  to{ opacity:1; transform:none; }
}
@keyframes tb-toast-out{
  to{ opacity:0; transform:translate3d(16px,0,0) scale(.98); }
}
@keyframes tb-toast-life{
  from{ transform:scaleX(1); }
  to{ transform:scaleX(0); }
}

@media (max-width:849px){
  .tb-toasts{ top:69px; left:12px; right:12px; width:auto; max-width:none; }
  body.admin-bar .tb-toasts{ top:115px; }
  .tb-toast{ padding:12px 10px 13px 12px; }
  .tb-toast-body{ font-size:13.5px; }
}
@media (max-width:600px){
  body.admin-bar .tb-toasts{ top:72px; }  /* ≤600px admin bar không fixed */
}

@media (prefers-reduced-motion:reduce){
  .tb-toast,
  .tb-toast.is-leaving{ animation-duration:.01ms; }
  .tb-toast[data-autohide]::after{ animation:none; display:none; }
}

/* =================================================================
   16. TRANG THANH TOÁN (block Checkout của WooCommerce)
   ================================================================= */
/* Block Checkout dùng style mặc định của WooCommerce Blocks (chữ 16px,
   ô nhập cao 50px viền đen mờ, nút xám đen) → kéo về đúng tông của site:
   chữ 14px, viền #e3e3e3, bo 4px, nhấn hồng.
   Lưu ý: CSS của wc-blocks nạp SAU style.css của child theme → mọi rule
   dưới đây phải bọc trong `.wc-block-checkout` cho đủ độ ưu tiên. */

.wc-block-checkout{ font-size:14px; color:var(--tb-text); }

/* --- tiêu đề từng bước + tiêu đề cột tóm tắt --- */
.wc-block-checkout .wc-block-components-title,
.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-components-checkout-order-summary__title-text{
  font-size:18px;
  font-weight:600;
  color:var(--tb-head);
  letter-spacing:0;
}

/* --- nhãn + mô tả --- */
.wc-block-checkout .wc-block-components-checkout-step__description{ font-size:13px; }
.wc-block-checkout .wc-block-components-address-form__address_2-toggle{
  font-size:13px; color:var(--tb-pink);
}

/* --- ô nhập / select / textarea --- */
.wc-block-checkout .wc-block-components-text-input input[type="text"],
.wc-block-checkout .wc-block-components-text-input input[type="email"],
.wc-block-checkout .wc-block-components-text-input input[type="tel"],
.wc-block-checkout .wc-block-components-text-input input[type="number"],
.wc-block-checkout .wc-blocks-components-select__select,
.wc-block-checkout .wc-block-components-textarea{
  font-family:inherit;
  font-size:14px;
  border:1px solid #e3e3e3;
  border-radius:4px;
  background:#fff;
  color:var(--tb-text);
  box-shadow:none;
}
/* Giữ chiều cao 50px của WooCommerce: nhãn nổi (floating label) được canh theo
   số đó — hạ xuống 46px thì nhãn đè lên chữ người dùng gõ. Chỉ nới padding trên
   cho dòng chữ 14px có đủ chỗ. */
.wc-block-checkout .wc-block-components-text-input input[type="text"],
.wc-block-checkout .wc-block-components-text-input input[type="email"],
.wc-block-checkout .wc-block-components-text-input input[type="tel"],
.wc-block-checkout .wc-block-components-text-input input[type="number"]{
  height:50px;
  padding:24px 12px 6px;
}
.wc-block-checkout .wc-blocks-components-select__select{ height:50px; }
.wc-block-checkout .wc-block-components-textarea{ min-height:92px; padding:12px 14px; }

.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-blocks-components-select__label{ font-size:14px; }

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-blocks-components-select__select:focus,
.wc-block-checkout .wc-block-components-textarea:focus{
  border-color:var(--tb-pink);
  outline:none;
  box-shadow:0 0 0 1px var(--tb-pink);
}

/* --- nút chính "Đặt hàng" + nút áp mã giảm giá --- */
.wc-block-checkout .wc-block-components-checkout-place-order-button,
.wc-block-checkout .wc-block-components-totals-coupon__button,
.wc-block-checkout .wc-block-components-button.contained{
  background-color:var(--tb-pink);
  border-color:var(--tb-pink);
  color:#fff;
  border-radius:4px;
  font-size:14px;
  font-weight:600;
  min-height:46px;
}
.wc-block-checkout .wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout .wc-block-components-totals-coupon__button:hover,
.wc-block-checkout .wc-block-components-button.contained:hover{
  background-color:#d81b60;
  border-color:#d81b60;
  color:#fff;
}

/* --- khung "Tóm tắt đơn hàng" bên phải: bo góc + viền như card sản phẩm --- */
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block{
  border:1px solid #ececec;
  border-radius:6px;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
}

/* --- link trong trang (điều khoản, sửa địa chỉ…) --- */
.wc-block-checkout a:not(.wc-block-components-button){ color:var(--tb-pink); }
.wc-block-checkout a:not(.wc-block-components-button):hover{ text-decoration:underline; }

/* --- dòng tổng tiền: giá hồng cho khớp card sản phẩm --- */
.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  color:var(--tb-pink);
  font-weight:700;
}

/* =====================================================================
   17. Trang nội dung dựng bằng UX Builder (xem CLAUDE.md mục 18)
   ===================================================================== */

/* Các trang nội dung bọc mỗi mục <h2> trong [row style="collapse"][col span="12"].
   Chọn `row-collapse` vì `.row-collapse > .col{padding:0!important}` → không đội thêm
   30px padding-bottom như row thường. Nhưng Flatsome kèm `.row-collapse{max-width:1050px}`
   sẽ bóp nội dung từ 1150 xuống 1050px → trung hoà lại ở đây.
   ⚠️ Chỉ nhắm row-collapse nằm TRỰC TIẾP trong .col-inner của .row-main, để không đụng
   row-collapse dùng ở nơi khác. */
.page-wrapper .row-main > .col > .col-inner > .row-collapse{
  max-width:none;
  padding:0;
}

/* =====================================================================
   18. HERO = [ux_slider] của Flatsome, FULL WIDTH (xem CLAUDE.md mục 2)
   ---------------------------------------------------------------------
   Nội dung trang nằm trong .row-main bị bóp về --tb-container (1180px),
   nên slider phải "phá khung" bằng margin âm tới mép viewport.
   ===================================================================== */

/* 100vw tính CẢ thanh cuộn → tràn ra ~15px trên Windows. `clip` chặn tràn ngang
   mà KHÔNG tạo scroll container (khác `hidden`) → header position:sticky vẫn chạy.
   #header là anh em của #main nên nằm ngoài vùng clip. */
#main{ overflow-x:clip; }

/* Full-bleed: đẩy 2 mép ra sát viewport. */
#main .tb-hero-slider{
  width:auto;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  margin-bottom:50px;
  border-radius:0;          /* bo góc 4px chỉ hợp khi banner nằm trong khung */
}
#main .tb-hero-slider .banner,
#main .tb-hero-slider .banner-inner{ border-radius:0; }

/* Banner không set `height` → Flatsome chèn .height-fix theo ảnh thật,
   giữ đúng tỉ lệ gốc 1355:432 ở mọi bề rộng. */
#main .tb-hero-slider .banner-bg img{ object-fit:cover; object-position:50% 50%; }

/* Trang chủ: bỏ 30px padding-top của .page-wrapper để banner dính sát header. */
body.home .page-wrapper{ padding-top:0; }

/* Dots của Flickity về tông hồng của site (mặc định là gạch đen mờ). */
#main .tb-hero-slider .flickity-page-dots{ bottom:14px; }
#main .tb-hero-slider .flickity-page-dots .dot{
  background:#fff;
  border-radius:99px;
  width:26px;
  height:4px;
  margin:0 4px;
  opacity:.55;
  box-shadow:0 1px 2px rgba(0,0,0,.25);
}
#main .tb-hero-slider .flickity-page-dots .dot.is-selected{
  background:var(--tb-pink);
  opacity:1!important;
}

/* Mũi tên: chỉ hiện khi hover (như bản tb_hero cũ), nhỏ lại cho đỡ choán banner. */
#main .tb-hero-slider .flickity-prev-next-button{
  opacity:0;
  transition:opacity .25s;
}
#main .tb-hero-slider:hover .flickity-prev-next-button{ opacity:1; }

@media (max-width:849px){
  #main .tb-hero-slider{ margin-bottom:30px; }
  /* Banner mobile chỉ cao ~124px — mũi tên choán hết ảnh mà cũng không hover được.
     Bỏ hẳn, vuốt ngang (Flickity draggable) vẫn chuyển slide. */
  #main .tb-hero-slider .flickity-prev-next-button{ display:none; }
  #main .tb-hero-slider .flickity-page-dots{ bottom:6px; }
  #main .tb-hero-slider .flickity-page-dots .dot{ width:16px; height:3px; margin:0 3px; }
}

/* Chiều cao banner.
   Flatsome dựng chiều cao bằng <img> ẩn trong .height-fix. Mặc định img không phóng to
   quá kích thước thật (1355px) → trên màn >1355px banner đứng ở 432px và bị cắt bớt
   trên/dưới. Cho nó phóng theo bề rộng để giữ đúng tỉ lệ 1355:432 (~3.14:1). */
#main .tb-hero-slider .height-fix img{ width:100%; height:auto; }

/* Nhưng ở màn siêu rộng tỉ lệ đó cho banner cao vô lý (2560px → 816px, đẩy sản phẩm
   xuống dưới màn hình). Chặn ở 560px — tương đương màn 1760px, rộng hơn thì cắt
   trên/dưới bằng object-fit:cover. */
#main .tb-hero-slider .banner{
  max-height:560px;
  overflow:hidden;
}
#main .tb-hero-slider .flickity-viewport{ max-height:560px; }

/* Banner không có chữ/nút → Flatsome vẫn render 1 .text-box rỗng đè giữa ảnh.
   Tắt pointer-events để nó không ăn click của link banner. */
#main .tb-hero-slider .banner-layers .text-box:empty{ pointer-events:none; }

/* =====================================================================
   19. TRANG DANH MỤC BÀI VIẾT (category.php / archive.php)
   ---------------------------------------------------------------------
   Dùng lại khung của trang danh mục sản phẩm (.tb-archive): h1 gạch chân
   hồng → thanh công cụ → lưới 5 cột → phân trang. Chỉ cần vài chỗ riêng.
   ===================================================================== */
.tb-archive-post .tb-crumbs{ margin:16px 0 0; }
.tb-archive-post .tb-archive-title{ margin:14px 0 22px; font-size:24px; line-height:1.35; }
.tb-archive-post .tb-archive-desc{ max-width:900px; margin:0 auto 22px; text-align:center; color:var(--tb-muted); }
.tb-archive-post .tb-archive-bar-right .tb-archive-label{ font-size:13px; color:var(--tb-muted); }

/* 394/546 bài của site cũ vốn không có ảnh → ô ảnh trống phải trông có chủ ý
   (nền hồng nhạt + đúng hoa 4 cánh của logo) chứ không như ảnh lỗi. */
.tb-post-noimg{
  background:#fdf5f8
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%23edc3d4'%3E%3Ccircle cx='24' cy='12' r='8'/%3E%3Ccircle cx='24' cy='36' r='8'/%3E%3Ccircle cx='12' cy='24' r='8'/%3E%3Ccircle cx='36' cy='24' r='8'/%3E%3Ccircle cx='24' cy='24' r='6' fill='%23fdf5f8'/%3E%3C/svg%3E")
    center / 46px auto no-repeat;
}

/* Lưới bài viết trong trang lưu trữ: cách phân trang 1 khoảng như lưới sản phẩm */
.tb-archive-post .tb-post-loop{ margin-bottom:6px; }
.tb-archive-post .tb-section-title{ margin-top:36px; }

/* --- CTA cuối bài viết (single.php): chỉ hotline + Zalo --- */
.tb-post-cta{
  max-width:900px;
  margin:30px auto 0;
  padding:18px 20px;
  background:#fdf5f8;
  border:1px solid #f4dde6;
  border-radius:6px;
}
.tb-post-cta-text{
  margin:0 0 14px;
  font-size:14px;
  line-height:1.6;
  text-align:center;
  color:var(--tb-text);
}
.tb-post-cta-text strong{ color:var(--tb-head); }
.tb-post-cta .tb-single-contact{ justify-content:center; }
.tb-post-cta .tb-btn-order,
.tb-post-cta .tb-btn-outline{ flex:0 1 220px; height:44px; }

@media (max-width:849px){
  .tb-archive-post .tb-archive-title{ font-size:20px; }
  .tb-archive-post .tb-archive-bar{ padding:12px; }
  .tb-archive-post .tb-archive-bar-left{ font-size:12.5px; }
  .tb-post-cta{ padding:16px 14px; }
  .tb-post-cta .tb-single-contact{ flex-wrap:nowrap; gap:10px; }
  .tb-post-cta .tb-btn-order,
  .tb-post-cta .tb-btn-outline{ flex:1 1 0; min-width:0; padding:0 10px; white-space:nowrap; }
}

/* =====================================================================
   20. TRANG TÌM KIẾM (search.php + nhánh is_search của archive-product.php)
   ---------------------------------------------------------------------
   Dùng lại .tb-archive / .tb-search của header, chỉ thêm ô tìm lại,
   đường chuyển phạm vi tìm và khối "không có kết quả".
   ===================================================================== */
.tb-search-box{ max-width:620px; margin:0 auto 22px; }
.tb-search-box .tb-search{ border-color:#ddd; }
.tb-search-scope-row{
  margin:10px 0 0;
  font-size:13px;
  color:var(--tb-muted);
  text-align:center;
}
.tb-search-scope{ color:var(--tb-pink); font-weight:600; }
.tb-search-scope i{ font-size:11px; }
.tb-search-scope:hover{ text-decoration:underline; }
.tb-search-page-of{ color:#a0a0a0; }

/* nhóm "Trang" trong kết quả: danh sách chứ không phải card */
.tb-search-pages{ margin:0 0 10px; padding:0; list-style:none; }
.tb-search-pages li{
  padding:12px 0;
  border-bottom:1px solid #f1f1f1;
}
.tb-search-pages a{ font-size:15px; font-weight:600; color:var(--tb-head); }
.tb-search-pages a:hover{ color:var(--tb-pink); }
.tb-search-pages span{
  display:block;
  margin-top:4px;
  font-size:13px;
  line-height:1.6;
  color:var(--tb-muted);
}

/* không có kết quả */
.tb-search-empty{ padding:10px 0 50px; text-align:center; }
.tb-search-empty-lead{ margin:0 0 6px; font-size:16px; color:var(--tb-head); }
.tb-search-empty-hint{ margin:0 0 18px; font-size:14px; color:var(--tb-muted); }
.tb-search-chips{
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px;
  margin:0 0 22px;
}
.tb-search-chips a{
  padding:7px 16px;
  border:1px solid #e6e6e6; border-radius:999px;
  font-size:13px; color:var(--tb-text); background:#fff;
}
.tb-search-chips a:hover{ border-color:var(--tb-pink); color:var(--tb-pink); background:#fdf5f8; }

@media (max-width:849px){
  .tb-search-box{ margin-bottom:18px; }
  .tb-search-empty-lead{ font-size:15px; }
  /* 2 cụm chữ cạnh nhau không đủ chỗ → xếp dọc thay vì để xuống dòng lộn xộn */
  .tb-search-page .tb-archive-bar{ flex-direction:column; align-items:flex-start; gap:8px; }
}
