/* Focused reading layout and generated H2 table of contents for Tin tức. */
body.single-post article.post { background: transparent; }
body.single-post .article-inner { background: transparent; box-shadow: none !important; margin: 0 auto; max-width: 940px; }
body.single-post .article-inner:hover { box-shadow: none !important; }
body.single-post .article-inner .entry-header { border: 0; margin: 0 auto 28px;  }
body.single-post .article-inner .entry-header-text { padding: 0 !important; }
body.single-post .article-inner .entry-category { color: #a56f45; font-size: 11px; font-weight: 700; letter-spacing: .12em; margin: 0 0 13px; text-transform: uppercase; }
body.single-post .article-inner .entry-category a { color: inherit; }
body.single-post .article-inner .entry-title { color: #1d2925; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 4.4vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; margin: 0; }
body.single-post .article-inner .entry-divider { background: #b88962; height: 2px; margin: 24px 0 0; max-width: 48px; }
body.single-post .article-inner .entry-content { color: #33413a; font-size: 17px; line-height: 1.82; margin: 0 auto; padding: 0 24px; text-align: left; }
body.single-post .article-inner .entry-content > :is(h2,h3) { color: #1d2925; font-family: Georgia, 'Times New Roman', serif; letter-spacing: -.025em; line-height: 1.18; scroll-margin-top: 105px; }
body.single-post .article-inner .entry-content h2 { border-top: 1px solid #e2e7e2; font-size: clamp(26px, 3.4vw, 36px); margin: 56px 0 20px; padding-top: 24px; }
body.single-post .article-inner .entry-content h3 { font-size: clamp(21px, 2.7vw, 28px); margin: 38px 0 14px; }
body.single-post .article-inner .entry-content :is(p,ul,ol,blockquote) { margin-bottom: 1.35em; }
body.single-post .article-inner .entry-content blockquote { border-left: 3px solid #996b45; color: #55635a; font-family: Georgia, 'Times New Roman', serif; font-size: 1.2em; font-style: italic; padding: 6px 0 6px 24px; }
body.single-post .article-inner .entry-content img { border-radius: 3px; height: auto; }

.m4h-article-toc { background: #fafaf7; border: 1px solid #e5e4de; border-left: 3px solid #996b45; margin: 28px 0 36px; padding: 17px 20px; }
.m4h-article-toc summary { color: #1d2925; cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .11em; list-style: none; text-transform: uppercase; }
.m4h-article-toc summary::-webkit-details-marker { display: none; }
.m4h-article-toc summary::after { color: #996b45; content: '−'; float: right; font-size: 19px; line-height: 12px; }
.m4h-article-toc:not([open]) summary::after { content: '+'; }
.m4h-article-toc ol { counter-reset: toc; list-style: none; margin: 17px 0 0; padding: 0; }
.m4h-article-toc li { counter-increment: toc; display: flex; font-size: 14px; line-height: 1.45; margin: 9px 0; }
.m4h-article-toc li::before { color: #996b45; content: '0' counter(toc); font-size: 11px; font-weight: 800; letter-spacing: .06em; min-width: 34px; padding-top: 2px; }
.m4h-article-toc a { color: #46534b; text-decoration: none; }
.m4h-article-toc a:hover { color: #996b45; }

.m4h-article-share { align-items: center; border-top: 1px solid #e2e7e2; display: flex; gap: 16px; justify-content: space-between; margin: 50px 0 12px; padding: 24px 0 0; }
.m4h-article-share > span { color: #667269; font-size: 14px; }
.m4h-article-share-button { background: #1d2925; border: 1px solid #1d2925; border-radius: 2px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; padding: 11px 15px; transition: background .18s ease, border-color .18s ease; }
.m4h-article-share-button:hover, .m4h-article-share-button.is-copied { background: #996b45; border-color: #996b45; }

@media (min-width: 1180px) {
  /* Keep a single comfortable reading column. The previous sticky sidebar
     made the article look like a cramped two-column layout. */
  body.single-post .article-inner .entry-content { margin-left: auto; }
  .m4h-article-toc { float: none; margin: 30px 0 36px; position: static; top: auto; width: auto; }
}

@media (max-width: 849px) {
  body.single-post .article-inner .entry-header { margin-bottom: 22px; padding: 32px 20px 0; }
  body.single-post .article-inner .entry-title { font-size: clamp(30px, 9vw, 40px); }
  body.single-post .article-inner .entry-content { font-size: 16px; line-height: 1.76; padding: 0 20px; }
  body.single-post .article-inner .entry-content h2 { margin-top: 42px; padding-top: 19px; }
  .m4h-article-toc { margin: 22px 0 28px; padding: 16px; }
  .m4h-article-share { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 38px; }
  .m4h-article-share-button { width: 100%; }
}

/* ==========================================================================
   PRODUCT CARDS INSIDE NEWS ARTICLES (.entry-content .products)
   ========================================================================== */
.single-post .entry-content .products {
    margin-top: 24px !important;
    margin-bottom: 32px !important;
    font-family: inherit !important;
}

.single-post .entry-content .product-small,
.single-post .entry-content .product-card,
.single-post .entry-content .box {
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.single-post .entry-content .product-small:hover,
.single-post .entry-content .product-card:hover,
.single-post .entry-content .box:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
    border-color: #ffd8cc !important;
}

.single-post .entry-content .box-image {
    position: relative !important;
    width: 100% !important;
    padding-top: 100% !important;
    overflow: hidden !important;
    background: #f8fafc !important;
}

.single-post .entry-content .box-image a {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.single-post .entry-content .box-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.single-post .entry-content .box:hover .box-image img {
    transform: scale(1.05) !important;
}

.single-post .entry-content .box-text {
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    justify-content: space-between !important;
    text-align: left !important;
}

.single-post .entry-content .product-title,
.single-post .entry-content .product-title a {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.35 !important;
    height: 37px !important;
    max-height: 37px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 6px !important;
    transition: color 0.2s ease !important;
    font-family: inherit !important;
}

.single-post .entry-content .product-title a:hover {
    color: #d9261c !important;
}

.single-post .entry-content .price-wrapper,
.single-post .entry-content .price {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    margin-bottom: 6px !important;
}

.single-post .entry-content .price ins,
.single-post .entry-content .price .amount,
.single-post .entry-content .price bdi {
    color: #d9261c !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    order: 1 !important;
}

.single-post .entry-content .price del,
.single-post .entry-content .price del .amount,
.single-post .entry-content .price del bdi {
    color: #888888 !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    order: 2 !important;
    margin-left: 4px !important;
}

.single-post .entry-content .m4h-rating-sold-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    font-size: 11px !important;
    margin-bottom: 6px !important;
}

.single-post .entry-content .add_to_cart_button,
.single-post .entry-content .button.add_to_cart_button {
    background: linear-gradient(135deg, #ea3829 0%, #d9261c 100%) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    text-transform: uppercase !important;
    border: none !important;
    text-align: center !important;
    margin-top: auto !important;
    box-shadow: 0 3px 10px rgba(234, 56, 41, 0.25) !important;
}
