/*
Theme Name: HTH DIGI
Theme URI: https://hthdigi.com
Author: HTH DIGI
Author URI: https://hthdigi.com
Description: Theme độc lập của HTH DIGI — giao diện Dark Luxury dựng bằng PHP + ACF (không Elementor). Header/footer PHP dùng chung toàn site, trang chủ và các trang lần lượt dựng theo mẫu thiết kế đã duyệt; nội dung sửa qua field trong wp-admin.
Version: 1.2.3
License: GNU General Public License v2 or later
Text Domain: hthdigi
*/

/* ===== Nen chung cho cac trang chua co template rieng (tam thoi, sach & de doc) ===== */
/* Moi trang khong phai trang chu: dai noi dung nen sang tren than trang (header/footer giu nen toi) */
body:not(.home) { background: #FAF7F2; }
.hthdl-pagewrap { max-width: 1180px; margin: 0 auto; padding: 48px 20px 72px; }
.hthdl-pagewrap-narrow { max-width: 860px; }
.hthdl-page-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0 0 10px; color: #17171f; }
.hthdl-page-meta { color: #6b6b76; font-size: 14px; margin-bottom: 24px; }
.hthdl-entry { font-size: 17px; line-height: 1.75; color: #23232c; }
.hthdl-entry h2 { font-size: 27px; line-height: 1.3; margin: 34px 0 12px; color: #14141c; }
.hthdl-entry h3 { font-size: 22px; line-height: 1.35; margin: 28px 0 10px; color: #14141c; }
.hthdl-entry h4 { font-size: 18.5px; margin: 22px 0 8px; color: #14141c; }
.hthdl-entry p { margin: 0 0 16px; }
.hthdl-entry img { max-width: 100%; height: auto; border-radius: 12px; }
.hthdl-entry a { color: #b57f0e; }
.hthdl-entry ul, .hthdl-entry ol { margin: 0 0 16px; padding-left: 22px; }
.hthdl-entry li { margin-bottom: 6px; }
.hthdl-featured { margin: 0 0 28px; }
.hthdl-featured img { width: 100%; height: auto; border-radius: 16px; display: block; }

/* Luoi bai viet (Tin Tuc tam thoi) */
.hthdl-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.hthdl-card { background: #fff; border: 1px solid #ece7dd; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.hthdl-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.hthdl-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.hthdl-card-body h2 { font-size: 19px; line-height: 1.35; margin: 0; }
.hthdl-card-body h2 a { color: #14141c; text-decoration: none; }
.hthdl-card-body p { margin: 0; color: #55555f; font-size: 15px; line-height: 1.6; }
.hthdl-card-date { color: #9a8c6a; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hthdl-pagination { margin-top: 40px; text-align: center; }
.hthdl-pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: 10px; background: #f3efe6; color: #14141c; text-decoration: none; font-weight: 600; }
.hthdl-pagination .page-numbers.current { background: #e5a620; color: #14141c; }
.hthdl-postnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; font-weight: 600; }
.hthdl-postnav a { color: #b57f0e; text-decoration: none; }

/* WooCommerce toi thieu (trang Mau Website tam thoi) */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: #fff; border: 1px solid #ece7dd; border-radius: 16px; padding: 14px; }
.woocommerce ul.products li.product img { border-radius: 10px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.woocommerce .price { color: #b57f0e !important; font-weight: 700; }
