/* =========================
SINGLE PAGE
========================= */
.single-page{background:#ffffff;padding:40px 0 60px}

/* =========================
BREADCRUMB
========================= */
#breadcrumbs{margin-bottom:25px;color:#94a3b8;font-size:13px}
#breadcrumbs a{color:#111827;text-decoration:none}

/* =========================
ARTICLE WRAP
========================= */
.article-wrap{background:#ffffff;border-radius:20px;padding:40px;border:1px solid #e5e7eb;margin-bottom:30px}

/* =========================
TITLE
========================= */
.single-title{color:#111827;font-size:42px;line-height:58px;font-weight:700;margin:0 0 25px}

/* =========================
META
========================= */
.post-meta{margin-bottom:35px;padding-bottom:25px;border-bottom:1px solid #eef2f7}
.post-meta span{color:#272727;font-size:14px;margin:0;display: inline-flex; align-items: center;gap: 5px}
.post-meta a{color:#111827;text-decoration:none}

/* =========================
CONTENT
========================= */
.post-content{color:#1f2937;font-size:16px;line-height:1.6}
.post-content p{margin-bottom:24px}
.post-content h2,.post-content h3,.post-content h4{color:#111827;margin:40px 0 20px;line-height:1.4}
.post-content img{max-width:100%;height:auto;border-radius:14px;margin:25px 0}
.post-content ul,.post-content ol{padding-left:20px;margin-bottom:25px}

/* LIST BASE */
.post-content ul{list-style:none;padding:0;margin:25px 0}
.post-content ul li{background:#ffffff;padding:10px 15px;margin-bottom:12px;border-radius:12px;position:relative;padding-left:42px;box-shadow:0 6px 18px rgba(0,0,0,.06);transition:.2s ease; display: block; width: fit-content; max-width: 100%; word-break: break-word;}

/* bullet custom */
.post-content ul li::before{content:"✔";position:absolute;left:16px;top:14px;color:#111827;font-weight:bold}

.post-content ul li:hover{transform:translateY(-2px);background:#f3f4f6}

/* ORDERED LIST */
.post-content ol{list-style:decimal}

/* NESTED OL */
.post-content ol ol{list-style:lower-alpha;margin-top:10px}

/* IMPROVE VISUAL HIERARCHY */
.post-content li::marker{color:#111827;font-weight:600}

/* STRONG INSIDE LIST */
.post-content li strong{color:#111827}

.post-content a{color: #e0a800; font-weight: 600; text-decoration: none;}

.post-content blockquote{background:linear-gradient(135deg,#ffffff,#f3f4f6);border-left:4px solid #111827;padding:25px;border-radius:12px;margin:30px 0;color:#111827}

/* TABLE */
.entry-content table,.post-content table{width:100%;max-width:100%;margin:20px 0;border-collapse:collapse;border-spacing:0;background:#ffffff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;box-shadow:0 2px 10px rgba(0,0,0,.04)}

.entry-content table thead,.post-content table thead{background:#f3f4f6}

.entry-content table th,.post-content table th{padding:14px 16px;font-size:15px;font-weight:700;color:#111827;border:1px solid #e5e7eb;white-space:nowrap;vertical-align:middle}

.entry-content table td,.post-content table td{padding:12px 16px;font-size:14px;line-height:1.7;color:#374151;border:1px solid #eef2f7;vertical-align:top;word-break:break-word}

.entry-content table tbody tr:nth-child(even),.post-content table tbody tr:nth-child(even){background:#fafafa}

.entry-content table tbody tr:hover,.post-content table tbody tr:hover{background:#f3f4f6;transition:.2s ease}

.entry-content table a,.post-content table a{color:#111827;font-weight:600;text-decoration:none}

.entry-content table a:hover,.post-content table a:hover{text-decoration:underline}

.entry-content table img,.post-content table img{max-width:100%;height:auto;border-radius:6px}

/* =========================
TAGS
========================= */
.thetags{margin-top:40px;padding-top:30px;border-top:1px solid #eef2f7}
.thetags a{display:inline-block;background:#ffffff;color:#111827;padding:8px 15px;border-radius:30px;margin:5px;text-decoration:none;transition:.3s}
.thetags a:hover{background:#111827;color:#ffffff}

/* =========================
RELATED
========================= */
.related-wrap{margin-top:50px}
.related-heading{color:#111827;font-size:28px;font-weight:700;margin-bottom:30px}
.related-card{background:#ffffff;border-radius:16px;overflow:hidden;margin-bottom:25px;transition:.3s;border:1px solid #e5e7eb;height:100%}
.related-card:hover{transform:translateY(-5px)}
.related-thumb{display:block;overflow:hidden}
.related-thumb img{width:100%;height:180px;object-fit:cover;transition:.5s}
.related-card:hover img{transform:scale(1.05)}
.related-content{padding:15px}
.related-title{margin:0;font-size:18px;line-height:30px;font-weight:700;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.related-title a{color:#111827;text-decoration:none}
.related-title a:hover{color:#111827}

/* =========================
SIDEBAR
========================= */
.sidebar-box, .widget{background:#ffffff;border-radius:20px;padding:28px;margin-bottom:30px;border:1px solid #e5e7eb}
.sidebar-title, .widget h3{color:#111827;font-size:24px;font-weight:700;margin:0 0 25px;padding-bottom:15px;position:relative}
.sidebar-title:after, .widget h3:after{content:'';width:60px;height:3px;background:#111827;position:absolute;left:0;bottom:0}

/* =========================
WP SIDEBAR
========================= */
.sidebar{color:#1f2937}
.sidebar ul{list-style:none;padding:0;margin:0}
.sidebar li{margin-bottom:12px}
.sidebar a{color:#111827;text-decoration:none}
.sidebar a:hover{color:#111827}

/* =========================
RESPONSIVE
========================= */
@media(max-width:991px){.single-title{font-size:34px;line-height:48px}}
@media(max-width:767px){.single-page{padding:25px 0 40px}.article-wrap{padding:25px}.single-title{font-size:28px;line-height:42px}.post-content{font-size:15px;line-height:30px}}

/* =========================
SEARCH
========================= */
.sidebar-search{position:relative}
.sidebar-search input{width:100%;height:52px;border:none;background:#ff9d0069;border-radius:50px;padding:0 60px 0 22px;color:#111827;outline:none}
.sidebar-search button{position:absolute;right:6px;top:6px;width:40px;height:40px;border:none;border-radius:50%;background:#111827;color:#ffffff;display: flex; align-items: center; justify-content: center;}

/* =========================
CATEGORY LIST
========================= */
.sidebar-list{list-style:none;padding:0;margin:0}
.sidebar-list li, .widget .cat-item{border-bottom:1px solid #eef2f7}
.sidebar-list li:last-child, .widget .cat-item:last-child{border:none}
.sidebar-list li a, .widget .cat-item a{display:inline-block;color:#111827;padding:14px 0;text-decoration:none;transition:.3s}
.sidebar-list li a:hover, .widget .cat-item a:hover{color:#ff9d00;padding-left:8px}
.sidebar-list .count{float:right;color:#94a3b8;margin-top:14px}

/* =========================
POPULAR POST
========================= */
.popular-post{display:flex;gap:15px;margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid #eef2f7}
.popular-post:last-child{border:none;margin:0;padding:0}
.popular-thumb{width:90px;flex:0 0 90px;overflow:hidden;border-radius:12px}
.popular-thumb img{width:100%;height:90px;object-fit:cover;transition:.4s}
.popular-post:hover img{transform:scale(1.05)}
.popular-content h4{margin:0 0 10px;font-size:15px;line-height:26px;font-weight:700}
.popular-content h4 a{color:#111827;text-decoration:none}
.popular-content h4 a:hover{color:#ff9d00}
.popular-content span{color: #555; font-size: 12px; display: inline-flex; gap: 5px; align-items: center;}

/* =========================
TAGS
========================= */
.sidebar-tags a{display:inline-block;padding:10px 15px;background:#ffffff;color:#111827;border-radius:40px;margin:5px;text-decoration:none;transition:.3s}
.sidebar-tags a:hover{background:#111827;color:#ffffff}

/* =========================
SUPPORT
========================= */
.support-box p{color:#6b7280;line-height:28px;margin-bottom:25px}
.support-btn{display:inline-flex;gap:5px;padding:14px 24px;background:#111827;color:#ffffff!important;border-radius:50px;font-weight:700;text-decoration:none!important;transition:.3s}
.support-btn:hover{background:#f3f4f6;color:#111827!important}

/* =========================
RESPONSIVE
========================= */
@media(max-width:991px){.sidebar{margin-top:30px}}




/* =========================================================
   SIDEBAR PRODUCT LIST - MAKITA
   Không cần sửa HTML WooCommerce
   ========================================================= */
.product_list_widget{--makita-blue:#087ea4;--makita-dark:#17212b;--makita-red:#e53935;--makita-green:#16844a;--makita-border:#e8ebef;--makita-bg:#ffffff;--makita-soft:#f7f9fa;list-style:none;margin:0!important;padding:0!important}
/* =========================================================
   TITLE:"Sản phẩm"
   ========================================================= */
.product_list_widget + *,.widget-title,.widgettitle{color:var(--makita-dark)}
/* Nếu title nằm trong widget WooCommerce */
.widget_product_list .widget-title,.widget_product_list .widgettitle{position:relative;margin:0 0 18px;padding:0 0 12px;font-size:22px;font-weight:700;line-height:1.3;color:#17212b}
.widget_product_list .widget-title::after,.widget_product_list .widgettitle::after{content:"";display:block;width:48px;height:3px;margin-top:10px;border-radius:10px;background:#17212b}
/* =========================================================
   PRODUCT ITEM
   ========================================================= */
.product_list_widget > li{position:relative;display:grid;grid-template-columns:88px minmax(0,1fr);column-gap:13px;row-gap:5px;margin:0 0 12px!important;padding:12px;background:var(--makita-bg);border:1px solid var(--makita-border);border-radius:12px;box-sizing:border-box;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
/* Hover card */
.product_list_widget > li:hover{transform:translateY(-2px);border-color:#d5e2e7;box-shadow:0 8px 24px rgba(24,42,54,.08)}
/* =========================================================
   LINK
   ========================================================= */
.product_list_widget > li > a{grid-column:1 / -1;display:grid;grid-template-columns:88px minmax(0,1fr);gap:13px;align-items:center;margin:0;padding:0;color:inherit;text-decoration:none!important}
/* =========================================================
   PRODUCT IMAGE
   ========================================================= */
.product_list_widget > li img{display:block;width:88px!important;height:88px!important;max-width:88px!important;min-width:88px;object-fit:contain;padding:7px;box-sizing:border-box;background:#f8fafb;border:1px solid #eef1f3;border-radius:9px;transition:transform .3s ease}
/* Zoom nhẹ khi hover */
.product_list_widget > li:hover img{transform:scale(1.05)}
/* =========================================================
   PRODUCT TITLE
   ========================================================= */
.product_list_widget .product-title{display:-webkit-box;margin:0;padding:0;overflow:hidden;color:#202a33;font-size:14px;font-weight:600;line-height:1.45;text-decoration:none;-webkit-box-orient:vertical;-webkit-line-clamp:3}
/* Hover title */
.product_list_widget > li:hover .product-title{color:var(--makita-blue)}
/* =========================================================
   PRICE AREA
   ========================================================= */

/* Giá */
.product_list_widget > li > .woocommerce-Price-amount{grid-column:2;display:inline-flex;align-items:baseline;gap:2px;margin:0;color:var(--makita-red);font-size:15px;font-weight:800;line-height:1.25}
/* Số tiền */
.product_list_widget .woocommerce-Price-amount bdi{white-space:nowrap}
/* VNĐ */
.product_list_widget .woocommerce-Price-currencySymbol{margin-left:2px;font-size:11px;font-weight:700}
/* =========================================================
   SALE PRICE
   WooCommerce dùng DEL + INS
   ========================================================= */
.product_list_widget > li > del{grid-column:2;display:inline-block;margin:1px 0 0;color:#9ba3aa;font-size:12px;line-height:1.2}
/* Giá sale */
.product_list_widget > li > ins{grid-column:2;display:inline-block;margin:0;color:var(--makita-red);font-size:15px;font-weight:800;text-decoration:none}
/* Trường hợp del + ins nằm cùng dòng */
.product_list_widget > li > del + .screen-reader-text + ins{margin-left:0}
/* =========================================================
   VAT
   ========================================================= */
.product_list_widget .woocommerce-price-suffix{grid-column:2;display:inline-block;width:fit-content;margin:1px 0 0;padding:2px 6px;color:var(--makita-green);background:#edf9f2;border:1px solid #d8f0e2;border-radius:4px;font-size:10px;font-weight:600;line-height:1.35}
/* =========================================================
   FIX SCREEN READER TEXT
   ========================================================= */
.product_list_widget .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* =========================================================
   SALE BADGE
   Tự tạo badge "SALE" cho sản phẩm có giá cũ
   ========================================================= */
.product_list_widget > li:has(del)::before{content:"SALE";position:absolute;top:8px;right:8px;z-index:2;padding:3px 6px;color:#fff;background:var(--makita-red);border-radius:4px;font-size:9px;font-weight:800;line-height:1}
/* =========================================================
   PRODUCT LINK FOCUS
   Accessibility
   ========================================================= */
.product_list_widget > li > a:focus-visible{outline:2px solid var(--makita-blue);outline-offset:3px;border-radius:8px}
/* =========================================================
   SIDEBAR CONTAINER
   ========================================================= */
.widget_product_list{padding:0!important}
/* Nếu sidebar có background trắng */
.sidebar .widget_product_list,.widget-area .widget_product_list{background:#fff}
/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width:767px){.product_list_widget > li{grid-template-columns:78px minmax(0,1fr);padding:10px;column-gap:11px;border-radius:10px}.product_list_widget > li > a{grid-template-columns:78px minmax(0,1fr);gap:11px}.product_list_widget > li img{width:78px!important;height:78px!important;max-width:78px!important;min-width:78px}.product_list_widget .product-title{font-size:13px;line-height:1.4;-webkit-line-clamp:3}.product_list_widget > li > .woocommerce-Price-amount,.product_list_widget > li > ins{font-size:14px}}
