/* Kiểu chữ cho nội dung bài viết blog.
   Nạp riêng ở single post (xem includes/import.php) vì style.css của theme chỉ
   định dạng h1 và p, còn bài viết dài cần cả h2/h3, danh sách, bảng, hình SVG. */

#single-post .post-content .content {
    font-size: 16px;
    line-height: 30px;
    color: #14110F;
}

#single-post .post-content .content > * {
    max-width: 100%;
}

#single-post .post-content .uy-lead {
    font-size: 19px;
    line-height: 34px;
    color: #3A342E;
    padding-left: 18px;
    border-left: 3px solid #C0452F;
    margin-bottom: 34px;
}

#single-post .post-content .content h2 {
    font-size: 27px;
    line-height: 36px;
    font-weight: 700;
    color: #14110F;
    margin: 52px 0 18px;
}

#single-post .post-content .content h3 {
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
    color: #14110F;
    margin: 34px 0 12px;
}

#single-post .post-content .content p {
    margin-bottom: 18px;
}

#single-post .post-content .content ul,
#single-post .post-content .content ol {
    margin: 0 0 22px;
    padding-left: 22px;
}

#single-post .post-content .content li {
    margin-bottom: 9px;
    line-height: 29px;
}

#single-post .post-content .content ul {
    list-style: none;
    padding-left: 4px;
}

#single-post .post-content .content ul li {
    position: relative;
    padding-left: 22px;
}

#single-post .post-content .content ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C0452F;
}

#single-post .post-content .content blockquote {
    margin: 32px 0;
    padding: 22px 26px;
    background: #FBF9F6;
    border-left: 3px solid #2E6E68;
    border-radius: 0 10px 10px 0;
    font-size: 17px;
    line-height: 31px;
}

#single-post .post-content .content blockquote p:last-child {
    margin-bottom: 0;
}

#single-post .post-content .content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 13.5px;
    color: #6E6862;
    font-style: normal;
}

/* ---- hình minh hoạ SVG tự vẽ ---- */
.uy-fig {
    margin: 34px 0 38px;
}

.uy-fig .uy-svg {
    width: 100%;
    height: auto;
    display: block;
}

.uy-fig figcaption,
#single-post .post-content .content figcaption {
    font-size: 13.5px;
    line-height: 22px;
    color: #6E6862;
    margin-top: 10px;
    text-align: left;
}

/* ---- ảnh thật ---- */
#single-post .post-content .content .wp-block-image {
    margin: 34px 0 38px;
}

#single-post .post-content .content .wp-block-image img {
    width: 100%;
    height: auto;
    /* ảnh sản phẩm là ảnh vuông 2048px — giới hạn chiều cao để không chiếm trọn màn hình */
    max-height: 520px;
    object-fit: contain;
    background: #FBF9F6;
    border-radius: 10px;
    margin: 0;
}

/* ---- khối lưu ý ---- */
.uy-note {
    margin: 30px 0;
    padding: 20px 24px;
    border-radius: 10px;
    background: #FBF9F6;
    border: 1px solid #E2DCD3;
}

.uy-note strong {
    display: block;
    font-size: 15.5px;
    margin-bottom: 8px;
    color: #14110F;
}

.uy-note p {
    margin: 0 !important;
    font-size: 15px;
    line-height: 27px;
    color: #3A342E;
}

.uy-note--warn {
    background: #FCF1EE;
    border-color: #EBC7BE;
}

.uy-note--tip {
    background: #EEF4F3;
    border-color: #C3DAD6;
}

/* ---- bảng ---- */
#single-post .post-content .content .wp-block-table {
    margin: 30px 0;
    overflow-x: auto;
}

#single-post .post-content .content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 520px;
}

#single-post .post-content .content .wp-block-table th {
    background: #14110F;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    line-height: 22px;
}

#single-post .post-content .content .wp-block-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #E2DCD3;
    line-height: 24px;
    vertical-align: top;
}

#single-post .post-content .content .wp-block-table tbody tr:nth-child(even) {
    background: #FBF9F6;
}

/* ---- khối gợi ý sản phẩm ---- */
.uy-shop {
    display: block;
    margin: 36px 0;
    padding: 22px 24px;
    border-radius: 10px;
    background: #14110F;
    color: #fff;
}

.uy-shop strong {
    display: block;
    font-size: 16px;
    margin-bottom: 14px;
}

.uy-shop__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.uy-shop__link {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff !important;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.uy-shop__link:hover {
    background: #fff;
    color: #14110F !important;
    border-color: #fff;
}

@media (max-width: 768px) {
    #single-post .post-content .uy-lead { font-size: 17px; line-height: 30px; }
    #single-post .post-content .content h2 { font-size: 22px; line-height: 30px; margin: 40px 0 14px; }
    #single-post .post-content .content h3 { font-size: 18px; line-height: 27px; }
    .uy-shop { padding: 18px; }
}
