/* BLOG TIN TUC — CSS rieng, khong ghi de class cua website */
.bn-page {
  --bn-green:#115511;
  --bn-ink:#30231c;
  --bn-muted:#756b61;
  --bn-line:#e9e3d9;
  --bn-cream:#f7f4ee;
  width:min(1160px,calc(100% - 36px));
  margin:0 auto;
  color:var(--bn-ink);
  font:15px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif;
}

.bn-page *, .bn-demo-header, .bn-demo-header * {
  box-sizing:border-box;
}

.bn-page [hidden] {
  display:none !important;
}

.bn-page h1, .bn-page h2, .bn-page h3, .bn-page p {
  margin:0;
}

.bn-page img {
  display:block;
  max-width:100%;
}

.bn-page button, .bn-page input {
  font:inherit;
}

.bn-page button, .bn-page a {
  -webkit-tap-highlight-color:transparent;
}

.bn-page button {
  cursor:pointer;
}

.bn-page a {
  text-decoration:none;
  color:inherit;
}

.bn-page button:focus-visible, .bn-page a:focus-visible, .bn-page input:focus-visible {
  outline:3px solid #af8544;
  outline-offset:4px;
}

.bn-breadcrumb {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:22px 0 26px;
  color:var(--bn-muted);
  font-size:14px;
}

.bn-breadcrumb a:hover {
  color:var(--bn-green);
}

.bn-intro {
  display:grid;
  /*grid-template-columns:minmax(0,1fr) minmax(260px,340px);*/
  align-items:end;
  gap:36px;
  margin-bottom:32px;
  margin-top:0px;
}

.bn-page .bn-eyebrow {
  font-size:12px;
  font-weight:750;
  letter-spacing:1.7px;
  color:var(--bn-green);
}

.bn-intro h1 {
  font-size:clamp(16px,5vw,34px);
  line-height:1.15;
  letter-spacing:-1.8px;
  margin:10px 0 14px;
  color: var(--bn-green);
}

.bn-intro h1 span {
  color:var(--bn-green);
}

.bn-intro > div > p:last-child {
  color:var(--bn-muted);
  font-size:16px;
}

.bn-search label {
  display:block;
  color:var(--bn-muted);
  font-size:14px;
  margin-bottom:9px;
}

.bn-search > div {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  border:1px solid var(--bn-line);
  background:var(--bn-cream);
  border-radius:8px;
  padding:5px;
}

.bn-search input {
  min-width:0;
  width:100%;
  padding:0px;
  border:0;
  background:transparent;
  color:var(--bn-ink);
}

.bn-search button, .bn-reset {
  border:0;
  background:var(--bn-green);
  color:white;
  border-radius:5px;
  padding:2px 17px;
}

.bn-feature-layout {
  display:grid;
  grid-template-columns:minmax(0,2.35fr) minmax(250px,1fr);
  gap:24px;
  margin-bottom:42px;
}

.bn-feature {
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  background:var(--bn-cream);
  border:1px solid var(--bn-line);
  border-radius:12px;
  overflow:hidden;
}

.bn-feature-image {
  position:relative;
  min-height:330px;
  border:0;
  padding:0;
  background:#65503c;
  overflow:hidden;
}

.bn-feature-image > img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.bn-image-label {
  position:absolute;
  left:16px;
  top:16px;
  border-radius:4px;
  background:#fff9ef;
  color:#4c3527;
  padding:6px 10px;
  font-size:11px;
  font-weight:750;
  letter-spacing:1px;
}

.bn-feature-copy {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:14px;
  padding:26px;
}

.bn-category {
  color:var(--bn-green);
  font-size:13px;
  font-weight:700;
}

.bn-feature-copy h2 {
  font-size:25px;
  line-height:1.35;
  letter-spacing:-.5px;
}

.bn-feature-copy h2 a, .bn-card h3 a {
  border:0;
  padding:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
}

.bn-feature-copy > p, .bn-card-copy > p {
  color:var(--bn-muted);
}

.bn-page .bn-read {
  display:inline-flex;
  align-items:center;
  gap:20px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--bn-green);
  font-size:14px;
  font-weight:700;
}

.bn-read span {
  font-size:20px;
}

.bn-editor-picks {
  padding:26px;
  background:#fff;
  border:1px solid var(--bn-line);
  border-radius:12px;
}

.bn-editor-picks h2 {
  font-size:23px;
  line-height:1.3;
  margin:9px 0 16px;
  letter-spacing:-.4px;
}

.bn-editor-picks > a {
  display:grid;
  grid-template-columns:24px minmax(0,1fr) 16px;
  gap:10px;
  width:100%;
  padding:15px 0;
  border:0;
  border-bottom:1px solid var(--bn-line);
  background:transparent;
  text-align:left;
  color:var(--bn-ink);
  align-items:start;
}

.bn-editor-picks > a > span {
  color:#ae956e;
  font-size:13px;
}

.bn-editor-picks > a > strong {
  font-size:14px;
  font-weight:650;
}

.bn-editor-picks > a > b {
  color:var(--bn-green);
}

.bn-page .bn-picks-note {
  color:var(--bn-muted);
  font-size:13px;
  margin-top:18px;
}

.bn-section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:20px;
}

.bn-section-heading h2 {
  font-size:27px;
  letter-spacing:-.6px;
}

.bn-section-heading > p {
  color:var(--bn-muted);
  font-size:14px;
}

.bn-filters {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding-bottom:22px;
  margin-bottom:24px;
  border-bottom:1px solid var(--bn-line);
}

.bn-filters > button {
  border:1px solid var(--bn-line);
  border-radius:6px;
  background:white;
  color:#655c53;
  padding:8px 13px;
  font-size:14px;
}

.bn-filters > button[aria-pressed="true"] {
  background:var(--bn-green);
  border-color:var(--bn-green);
  color:white;
}

.bn-cards {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px 24px;
}

.bn-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  border:1px solid var(--bn-line);
  border-radius:10px;
  overflow:hidden;
  background:white;
  transition:box-shadow .2s,border-color .2s;
}

.bn-card:hover {
  border-color:#c9b99f;
  box-shadow:0 7px 22px #3520140d;
}

.bn-card-image {
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:var(--bn-cream);
  overflow:hidden;
}

.bn-card-image img {
  width:100%;
  height:auto;
  aspect-ratio:16 / 10;
  object-fit:cover;
  transition:transform .3s;
}

.bn-card:hover .bn-card-image img {
  transform:scale(1.025);
}

.bn-card-copy {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  flex:1;
  gap:10px;
  padding:21px;
}

.bn-card h3 {
  font-size:20px;
  line-height:1.4;
  letter-spacing:-.25px;
  
  /* Tiêu đề bài viết: tối đa 2 dòng */
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.bn-card h3 a:hover, .bn-feature h2 a:hover {
  color:var(--bn-green);
}

.bn-card-copy > p {
  font-size:14px;
  /* Mô tả bài viết: tối đa 5 dòng */
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}

.bn-card-copy > .bn-read {
  margin-top:auto;
  padding-top:10px;
}

.bn-empty {
  padding:50px 20px;
  background:var(--bn-cream);
  text-align:center;
  border-radius:10px;
}

.bn-empty p {
  margin:10px 0 20px;
  color:var(--bn-muted);
}

.bn-pagination {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:32px 0;
}

.bn-pagination button {
  min-width:42px;
  min-height:42px;
  border:1px solid var(--bn-line);
  background:white;
  color:var(--bn-ink);
  border-radius:6px;
}

.bn-pagination button[aria-current="page"] {
  color:white;
  border-color:var(--bn-green);
  background:var(--bn-green);
}

.bn-pagination button:disabled {
  opacity:.35;
  cursor:default;
}

.bn-bottom-note {
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
  gap:20px;
  background:var(--bn-cream);
  border:1px solid var(--bn-line);
  border-radius:10px;
  padding:24px;
  margin:40px 0;
}

.bn-bottom-note h2 {
  font-size:19px;
}

.bn-bottom-note p {
  font-size:14px;
  color:var(--bn-muted);
  margin-top:5px;
}

.bn-bottom-note a {
  color:var(--bn-green);
  font-size:14px;
  font-weight:700;
}

/* Chi dung cho trang xem mau, khong can copy khi ghep website */
body:has(.bn-demo-header) {
  margin:0;
  background:#fff;
}

.bn-demo-header {
  width:min(1160px,calc(100% - 36px));
  margin:auto;
  padding:22px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  border-bottom:1px solid #e9e3d9;
  font:14px/1.5 system-ui,sans-serif;
  color:#756b61;
}

.bn-demo-header img {
  display:block;
  width:250px;
  max-width:100%;
  height:auto;
}

.bn-demo-footer {
  border-top:1px solid #e9e3d9;
  padding:25px 18px;
  text-align:center;
  font:14px/1.5 system-ui,sans-serif;
  color:#756b61;
}

@media(max-width:1024px) {
  .bn-feature-layout {
    grid-template-columns:minmax(0,1fr);
  }

  .bn-editor-picks {
   /* display:none;*/
  }

  .bn-cards {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:640px) {
  .bn-page, .bn-demo-header {
    width:calc(100% - 28px);
  }

  .bn-demo-header {
    padding:16px 0;
  }

  .bn-demo-header img {
    width:210px;
  }

  .bn-demo-header > span {
    display:none;
  }

  .bn-intro {
    grid-template-columns:minmax(0,1fr);
    gap:22px;
    margin-bottom:24px;
  }

  .bn-intro h1 {
    font-size:30px;
  }

  .bn-feature {
    grid-template-columns:minmax(0,1fr);
  }

  .bn-feature-image {
    min-height:0;
  }

  .bn-feature-image > img {
    height:auto;
    aspect-ratio:16 / 10;
  }

  .bn-feature-copy {
    padding:22px;
  }

  .bn-feature-copy h2 {
    font-size:24px;
  }

  .bn-cards {
    grid-template-columns:minmax(0,1fr);
    gap:20px;
  }

  .bn-section-heading h2 {
    font-size:25px;
  }

  .bn-filters {
    gap:7px;
  }

  .bn-filters > button {
    padding:8px 10px;
    font-size:13px;
  }

  .bn-bottom-note {
    grid-template-columns:32px minmax(0,1fr);
    gap:14px;
    padding:20px;
  }

  .bn-bottom-note > a {
    grid-column:2;
  }
}

@media(prefers-reduced-motion:reduce) {
  .bn-page * {
    transition:none;
  }
}

/* CHI TIET BAI VIET — dung chung file CSS voi danh sach */
.bn-intro .bn-site-heading {
  font-size:clamp(36px,5vw,54px);
  font-weight:750;
  line-height:1.15;
  letter-spacing:-1.8px;
  margin:10px 0 14px;
  color:var(--bn-ink);
}

.bn-site-heading > span {
  color:var(--bn-green);
}

.bn-detail-layout {
  display:grid;
  grid-template-columns:minmax(0,2.35fr) minmax(250px,1fr);
  gap:24px;
  align-items:start;
  margin-bottom:42px;
}

.bn-article-detail {
  min-width:0;
  border:1px solid var(--bn-line);
  border-radius:12px;
  padding:32px;
  background:white;

}

.bn-article-header h1 {
  font-size:clamp(18px,3vw,20px);
  line-height:1.25;
  letter-spacing:-.8px;
  margin:12px 0 18px;
}

.bn-article-header .bn-article-lead {
  color:#64594f;
  font-size:18px;
  line-height:1.7;
}

.bn-article-header .bn-article-byline {
  color:var(--bn-muted);
  font-size:13px;
  padding:16px 0 20px;
}

.bn-article-cover {
  margin:0 0 24px;
}

.bn-article-cover img {
  width:100%;
  height:auto;
  border-radius:8px;
}

.bn-article-cover figcaption {
  margin-top:8px;
  color:var(--bn-muted);
  font-size:13px;
  text-align:center;
}

.bn-toc-inline {
  padding:18px 20px;
  background:var(--bn-cream);
  border:1px solid var(--bn-line);
  border-radius:8px;
  margin-bottom:28px;
}

.bn-toc-inline summary {
  cursor:pointer;
  font-weight:750;
  color:var(--bn-green);
}

.bn-toc-inline ol, .bn-toc-sidebar ol {
  list-style:none;
  padding:0;
  margin:12px 0 0;
}

.bn-toc-inline li + li {
  margin-top:9px;
}

.bn-toc-inline a, .bn-toc-sidebar a {
  display:block;
  font-size:14px;
}

.bn-toc-inline a:hover, .bn-toc-sidebar a:hover {
  color:var(--bn-green);
  text-decoration:underline;
}

.bn-article-body {
  font-size:17px;
  line-height:1.9;
  overflow-wrap:anywhere;
}

.bn-article-body > p, .bn-article-body section > p {
  margin:16px 0;
}

.bn-article-body h2 {
  font-size:20px;
  line-height:1.4;
  letter-spacing:-.4px;
  margin:20px 0 10px;
}

.bn-article-body h3 {
  font-size:18px;
  line-height:1.45;
  margin:24px 0 12px;
}

.bn-article-body h2[id], .bn-article-body h3[id] {
  scroll-margin-top:var(--bn-anchor-offset,100px);
}

.bn-article-body ul {
  padding-left:24px;
  margin:18px 0;
}

.bn-article-body li + li {
  margin-top:9px;
}

.bn-article-callout {
  border-left:3px solid var(--bn-green);
  background:var(--bn-cream);
  padding:18px 20px;
  border-radius:0 8px 8px 0;
  margin:24px 0;
}

.bn-article-callout > p {
  margin-top:8px;
}

.bn-article-formula {
  padding:18px 20px;
  background:#edf4e9;
  color:var(--bn-green);
  border-radius:8px;
  font-weight:650;
  margin:20px 0;
}

.bn-article-end {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:14px;
  border-top:1px solid var(--bn-line);
  padding-top:22px;
  margin-top:30px;
  font-size:14px;
  color:var(--bn-muted);
}

.bn-article-end a {
  color:var(--bn-green);
  font-weight:700;
}

.bn-detail-sidebar {
  align-self:stretch;
  min-width:0;
}

.bn-detail-sticky {
  position:sticky;
  top:24px;
  max-height:calc(100vh - 48px);
  overflow-y:auto;
  scrollbar-width:thin;
}

.bn-toc-sidebar, .bn-side-reading {
  padding:24px;
  border:1px solid var(--bn-line);
  border-radius:10px;
}

.bn-toc-sidebar h2 {
  font-size:23px;
  margin-top:6px;
}

.bn-toc-sidebar a {
  padding:7px 10px;
  border-left:2px solid var(--bn-line);
  color:var(--bn-muted);
  
  /* Tiêu đề bài viết: tối đa 2 dòng */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bn-toc-sidebar a[aria-current="location"] {
  border-left-color:var(--bn-green);
  color:var(--bn-green);
  background:#edf4e9;
  font-weight:650;
  border-radius:0 5px 5px 0;
}

.bn-toc-sidebar li.bn-toc-subitem a, .bn-toc-inline li.bn-toc-subitem a {
  padding-left:23px;
  font-size:13px;
}

.bn-side-reading {
  margin-top:20px;
  background:var(--bn-cream);
}

.bn-side-reading h2 {
  font-size:19px;
  margin-bottom:12px;
}

.bn-side-reading a {
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:10px 0;
  border-top:1px solid var(--bn-line);
  font-size:14px;
}

@media(max-width:1024px) {
  .bn-detail-layout {
    grid-template-columns:minmax(0,1fr);
  }

  .bn-detail-sidebar {
    display:none;
  }
}

@media(max-width:640px) {
  .bn-article-detail {
    padding:21px 18px;
  }

  .bn-article-header h1 {
    font-size:19px;
  }

  .bn-article-header .bn-article-lead {
    font-size:17px;
  }

  .bn-article-body {
    font-size:16px;
    line-height:1.85;
  }

  .bn-article-body h2 {
    font-size:20px;
  }

  .bn-article-body h3 {
    font-size:18px;
  }

  .bn-toc-inline {
    padding:16px;
  }
}


/* Bảng trong nội dung bài viết */
.bn-article-body table {
  width: 100%;
  margin: 24px 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #dfd8ce;
  border-radius: 10px;
  background: #fff;
  color: #382b21;
  font-size: 16px;
  line-height: 1.65;
}

/* Ô tiêu đề và nội dung */
.bn-article-body table th,
.bn-article-body table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid #e8e2d9;
  border-bottom: 1px solid #e8e2d9;
  overflow-wrap: break-word;
}

/* Hàng tiêu đề */
.bn-article-body table th {
  background: #edf5e9;
  color: #215a25;
  font-weight: 700;
}

/* Phân biệt các hàng */
.bn-article-body table tbody tr:nth-child(even) td {
  background: #faf8f4;
}

/* Nhấn mạnh cột tiêu chí */
.bn-article-body table td:first-child {
  font-weight: 600;
}

/* Bỏ đường viền thừa */
.bn-article-body table tr > :last-child {
  border-right: 0;
}

.bn-article-body table > :last-child > tr:last-child > * {
  border-bottom: 0;
}

/* Bo góc hàng đầu */
.bn-article-body table tr:first-child > th:first-child {
  border-top-left-radius: 9px;
}

.bn-article-body table tr:first-child > th:last-child {
  border-top-right-radius: 9px;
}

/* Bỏ khoảng cách thừa nếu ô chứa đoạn văn */
.bn-article-body table th > :first-child,
.bn-article-body table td > :first-child {
  margin-top: 0;
}

.bn-article-body table th > :last-child,
.bn-article-body table td > :last-child {
  margin-bottom: 0;
}

/* Mobile: mỗi hàng hiển thị thành một thẻ */
@media (max-width: 640px) {
  .bn-article-body table.bn-mobile-cards {
    display: block;
    border: 0;
    background: transparent;
  }

  .bn-article-body table.bn-mobile-cards thead {
    display: none;
  }

  .bn-article-body table.bn-mobile-cards tbody {
    display: grid;
    gap: 14px;
  }

  .bn-article-body table.bn-mobile-cards tbody tr {
    display: block;
    padding: 12px 14px;
    border: 1px solid #dfd8ce;
    border-radius: 10px;
    background: #fff;
  }

  .bn-article-body table.bn-mobile-cards tbody td {
    display: grid;
    grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 5px 0;
    border: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 400;
    overflow-wrap: anywhere;
  }

  .bn-article-body table.bn-mobile-cards tbody td::before {
    content: attr(data-label);
    color: #382b21;
    font-weight: 700;
  }
}



/* Hai khung thông tin sản phẩm */
.product-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
  color: #3e3025;
  font-size: 15px;
  line-height: 1.6;
}

.product-benefits,
.product-benefits * {
  box-sizing: border-box;
}

.product-benefit {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e4dfd5;
  border-radius: 12px;
  background: #fff;
}

/* Tiêu đề */
.product-benefit h3 {
  margin: 0;
  padding: 13px 18px;
  border-bottom: 1px solid #e1e9dc;
  background: #f0f6ec;
  color: #215a25;
  font-size: 17px;
  font-weight: 700;
}

/* Thông tin giao hàng */
.product-shipping {
  margin: 0;
  padding: 4px 18px;
  list-style: none;
}

.product-shipping li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 14px 0;
}

.product-shipping li + li {
  border-top: 1px solid #eee9e1;
}

.shipping-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eaf4e5;
  color: #228b22;
  font-weight: 700;
}

.product-shipping strong {
  display: block;
  font-weight: 600;
}

.product-shipping div > span {
  display: block;
  margin-top: 3px;
  color: #7b7065;
  font-size: 14px;
}

/* Bảng giá mua số lượng */
.product-tier-price {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: inherit;
}

.product-tier-price th,
.product-tier-price td {
  padding: 10px 18px;
  text-align: left;
  vertical-align: middle;
}

.product-tier-price thead th {
  background: #faf9f6;
  color: #807365;
  font-size: 13px;
  font-weight: 600;
}

.product-tier-price tbody tr + tr {
  border-top: 1px solid #eee9e1;
}

.product-tier-price th:last-child,
.product-tier-price td:last-child {
  text-align: right;
}

.product-tier-price td strong {
  color: #215a25;
  font-size: 17px;
  white-space: nowrap;
}

/* Nhấn mạnh bậc giá mua nhiều nhất */
.product-tier-price tbody tr:last-child {
  background: #f5f9f2;
}

/* Mobile */
@media (max-width: 640px) {
  .product-benefits {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .product-benefit h3 {
    padding: 12px 14px;
  }

  .product-shipping {
    padding-right: 14px;
    padding-left: 14px;
  }

  .product-tier-price th,
  .product-tier-price td {
    padding: 10px 14px;
  }
}


