/* ==========================================================================
   LNP v1.5 – Lớp phong cách cuối cùng (nạp SAU mọi CSS khác, mọi trang)
   1. Font Source Serif 4 + thang chữ: H1 30 · H2 24 · H3 20 · nội dung 18 (desktop) / 16 (mobile)
   2. Phong cách phẳng: bo góc tối đa 4px, ảnh vuông, không bóng mềm, không gradient "bóng bẩy"
   3. Banner sau menu: breadcrumb + tiêu đề căn giữa, nền ảnh (tuỳ chọn) phủ màu navy
   4. Header Flatsome: logo lớn hơn, ẩn giỏ hàng, ô tìm kiếm vuông góc
   Selector có tiền tố "html" để thắng CSS inline của Flatsome (Theme Options in sau stylesheet).
   ========================================================================== */
:root {
	--lnp-font: 'Source Serif 4', 'Noto Serif', Georgia, 'Times New Roman', serif;
	--lnp-r: 4px;
	--lnp-fs: 18px;            /* cỡ chữ nội dung */
	--lnp-fs-sm: 14px;         /* mô tả phụ trong card */
	--lnp-card-title: 17px;    /* tên sản phẩm trong lưới 5 cột (thẻ H3, giữ nhỏ hơn 20px để không vỡ 3 dòng) */
	--kraft: #a8774a; --kraft-soft: #f3ece2; --sky: #eef3f8;
}
@media (max-width: 849px) { :root { --lnp-fs: 16px; --lnp-card-title: 15px; } }

/* ---------- 1. Font & thang chữ ---------- */
html body, html .nav > li > a, html .nav-dropdown, html .heading-font, html .alt-font,
html h1, html h2, html h3, html h4, html h5, html h6, html button, html .button, html input, html select, html textarea,
html .product-title, html .widget-title, html .is-divider + p { font-family: var(--lnp-font); }
html body { font-size: var(--lnp-fs); line-height: 1.65; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
html h1, html .lnp-phero__title, html .lnp-hero2__title, html .lnp-pdp__title { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -.2px; }
html h2, html .lnp-sec__title, html .lnp-cat__title, html .lnp-prose h2, html .lnp-pcard--big .lnp-pcard__title { font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
html h3, html .lnp-prose h3, html .lnp-why__title, html .lnp-proc__step h3, html .lnp-office__name, html .lnp-pcard__title, html .lnp-art__cta-t, html .lnp-ctacard__title { font-size: 20px; line-height: 1.35; font-weight: 700; }
html h4, html .lnp-prose h4 { font-size: 18px; line-height: 1.4; }
html .lnp-cat__title { text-transform: none; }
html .lnp-card__title, html .lnp-grid--rows .lnp-card__title { font-size: var(--lnp-card-title); line-height: 1.35; font-weight: 600; }
html .lnp-prose, html .lnp-phero__lead, html .lnp-hero2__sub, html .lnp-sec__sub, html .lnp-pdp__short, html .lnp-specs { font-size: var(--lnp-fs); }
html .lnp-card__peek li, html .lnp-tile__count, html .lnp-pcard__meta, html .lnp-pdp__assure span, html .lnp-channel__d { font-size: 13px; }
html .lnp-pcard__ex, html .lnp-ctacard__list, html .lnp-toc a, html .lnp-catpage__bar, html .lnp-phero__meta, html .lnp-phero__facts li, html .lnp-foot { font-size: var(--lnp-fs-sm); }
html .lnp-btn { font-size: 16px; font-weight: 600; }
html .lnp-chip, html .lnp-cat__tab { font-size: 15px; }
html .lnp-ctacard__title { color: #fff; }

/* ---------- 2. Phẳng: bo góc ≤ 4px, ảnh vuông, không bóng mềm ---------- */
html .lnp-btn, html .lnp-chip, html .lnp-cat__tab, html .lnp-more__btn, html .lnp-pager .page-numbers,
html .lnp-quote__form .wpcf7-submit, html .wpcf7-submit, html .lnp-phero__eyebrow a, html .lnp-pdp__cats a { border-radius: var(--lnp-r); }
html .lnp-btn--primary, html .lnp-btn--primary:hover { box-shadow: none; }
html .lnp-btn { border-width: 1px; }
html .lnp-card, html .lnp-pcard, html .lnp-tile, html .lnp-cert, html .lnp-svc__item, html .lnp-proc__step, html .lnp-channel { box-shadow: none !important; }
html .lnp-card:hover, html .lnp-pcard:hover, html .lnp-tile:hover, html .lnp-cert:hover, html .lnp-svc__item:hover, html .lnp-channel:hover, html .lnp-home .lnp-proc__step:hover { transform: none; border-color: var(--lnp-navy); }
html img, html .lnp-prose img { border-radius: 0; }
html .lnp-hero2::before, html .lnp-phero::before, html .lnp-cta::before, html .lnp-cta::after { display: none; }
html .lnp-hero2 { background: #fff; border-bottom: 1px solid var(--lnp-line); }
html .lnp-hero2__badge { animation: none; border-left: 3px solid var(--kraft); }
html .lnp-hero2__points svg { border-radius: 0; }
html .lnp-pdp { background: #fff; }
html .lnp-quote { background: var(--lnp-navy) !important; }
html .lnp-ctacard { background: var(--lnp-navy); }
html .lnp-proc__step::before { border-radius: 0; }
html .lnp-tst__item::before { display: none; }
html .lnp-tst__item { border-top: 3px solid var(--kraft); }
html .lnp-cat .lnp-cat__tabs { border-radius: var(--lnp-r); }
/* Tiêu đề khối: gạch kraft ngắn (chất liệu giấy – nhận diện riêng) */
html .lnp-sec__title::after { content: ""; display: block; width: 44px; height: 3px; background: var(--kraft); margin: 12px auto 0; }
html .lnp-prow__head .lnp-sec__title::after, html .lnp-relposts .lnp-sec__title::after, html .lnp-quote .lnp-sec__title::after, html .lnp-svc__body .lnp-sec__title::after { margin-left: 0; }
html .lnp-cat__head .lnp-cat__title::after { display: none; }

/* ---------- 3. Banner sau menu (breadcrumb + H1) – căn giữa, nền ảnh ---------- */
html .lnp-phero { position: relative; background: var(--lnp-navy); color: #fff; text-align: center; padding: clamp(36px, 5vw, 64px) 0 clamp(34px, 4.5vw, 56px); overflow: hidden; }
html .lnp-phero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
html .lnp-phero.has-bg::after { content: ""; position: absolute; inset: 0; background: rgba(11, 37, 69, .74); z-index: 0; }
html .lnp-phero__wrap, html .lnp-phero.has-media .lnp-phero__wrap { position: relative; z-index: 1; display: block; max-width: 900px; margin: 0 auto; }
html .lnp-phero .rank-math-breadcrumb { color: rgba(255, 255, 255, .78); font-size: 14px; margin: 0 0 14px; }
html .lnp-phero .rank-math-breadcrumb p { margin: 0; }
html .lnp-phero .rank-math-breadcrumb a { color: rgba(255, 255, 255, .9); }
html .lnp-phero .rank-math-breadcrumb a:hover { color: #fff; text-decoration: underline; }
html .lnp-phero__eyebrow { justify-content: center; color: #e6c79f; }
html .lnp-phero__eyebrow a { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
html .lnp-phero__title { color: #fff; margin: 0 auto 14px; max-width: 860px; }
html .lnp-phero__title::after { content: ""; display: block; width: 56px; height: 3px; background: #e6c79f; margin: 16px auto 0; }
html .lnp-phero__lead { color: rgba(255, 255, 255, .86); margin: 0 auto; max-width: 760px; }
html .lnp-phero__lead strong, html .lnp-phero__lead a { color: #fff; }
html .lnp-phero__meta { justify-content: center; color: rgba(255, 255, 255, .8); }
html .lnp-phero__meta span + span::before { color: rgba(255, 255, 255, .4); }
html .lnp-phero__cta { justify-content: center; }
html .lnp-phero .lnp-btn--outline { background: transparent; border-color: #fff; color: #fff !important; }
html .lnp-phero .lnp-btn--outline:hover { background: #fff; color: var(--lnp-navy) !important; }
html .lnp-phero__facts { justify-content: center; }
html .lnp-phero__facts li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .85); border-radius: var(--lnp-r); }
html .lnp-phero__facts strong { color: #fff; }
html .lnp-phero--band { padding: 22px 0; }
html .lnp-phero--band .lnp-phero__title { font-size: 20px; margin: 0; }
html .lnp-phero--band .lnp-phero__title::after { display: none; }
html .lnp-phero--band .rank-math-breadcrumb { margin: 0 0 6px; }
html .lnp-facts { margin-top: -26px; }

/* ---------- 4. Header Flatsome: logo to & rõ hơn, không giỏ hàng, góc vuông ---------- */
html #header .header-main { height: 112px; }
html #header #logo { width: 170px; }
html #header #logo img { max-height: 100px; width: auto; }
html #header .header-search-form input, html #header .searchform .button, html #header .searchform input { border-radius: var(--lnp-r) !important; }
html .lnp-b2b .cart-item, html .lnp-b2b .header-cart-link, html .lnp-b2b .header-cart-title, html .lnp-b2b .cart-icon,
html .lnp-b2b .widget_shopping_cart, html .lnp-b2b .off-canvas-cart, html .lnp-b2b .account-item { display: none !important; }
@media (max-width: 849px) {
	html #header .header-main { height: 76px; }
	html #header #logo { width: 110px; }
	html #header #logo img { max-height: 64px; }
}

/* ---------- 5. Nội dung soạn thảo: khối định dạng sẵn (chọn trong ô "Định dạng" của trình soạn thảo) ---------- */
html .lnp-prose .lnp-answer { background: var(--sky); border-left: 4px solid var(--lnp-primary); padding: 16px 20px; font-size: var(--lnp-fs); }
html .lnp-prose .lnp-note { background: var(--kraft-soft); border-left: 4px solid var(--kraft); padding: 14px 18px; }
html .lnp-prose a.lnp-btn { color: #fff !important; text-decoration: none; }
html .lnp-prose h2 { padding-bottom: 8px; border-bottom: 1px solid var(--lnp-line); }
html .lnp-prose table { font-size: 16px; }
@media (max-width: 849px) { html .lnp-prose table { font-size: 15px; } }
html .lnp-catseo { background: #fff !important; border-top: 1px solid var(--lnp-line); }

/* ---------- v1.6: thẻ sản phẩm đồng bộ – ảnh KHÔNG cắt, khung vuông nền trắng ---------- */
html .lnp-card__thumb { aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; border-bottom: 1px solid var(--lnp-line); }
html .lnp-card__thumb img { width: 100%; height: 100%; object-fit: contain; }
html .lnp-card:hover .lnp-card__thumb img { transform: scale(1.04); }
html .lnp-card { display: flex; flex-direction: column; height: 100%; }
html .lnp-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
html .lnp-card__body .lnp-btn { margin-top: auto; }
html .lnp-grid--cat { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 1024px) { html .lnp-grid--cat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 849px) { html .lnp-grid--cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------- v1.6: breadcrumb silo ---------- */
html .lnp-bc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
html .lnp-bc li { margin: 0; display: inline-flex; align-items: center; }
html .lnp-bc li + li::before { content: "›"; margin: 0 10px; opacity: .6; }
html .lnp-bc span[aria-current="page"] { color: #fff; font-weight: 600; }
html .lnp-phero--band .lnp-bc span[aria-current="page"] { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- v1.6: đoạn giới thiệu dưới banner ---------- */
html .lnp-intro { max-width: none; width: 100%; box-sizing: border-box; margin: 0 0 24px; padding: 16px 22px; border-left: 4px solid var(--kraft); background: var(--kraft-soft); border-radius: 0 var(--lnp-r) var(--lnp-r) 0; color: var(--lnp-text); font-size: var(--lnp-fs); line-height: 1.7; text-wrap: pretty; overflow-wrap: anywhere; }
html .lnp-intro p { margin: 0 0 8px; }
html .lnp-intro p:last-child { margin: 0; }
html .lnp-intro em { font-style: normal; }
html .lnp-intro--contact, html .lnp-intro--about { margin-top: clamp(24px, 3vw, 36px); }
html .lnp-intro--about { margin-top: 0; margin-bottom: 28px; }


/* ==========================================================================
   LNP v1.8 – vá sau rà soát live 27/11/2026
   ========================================================================== */

/* ---------- 1. Menu dọc "Danh mục sản phẩm": chỉ xổ khi rê chuột / focus (kể cả trang chủ) ---------- */
html .header-vertical-menu { position: relative; }
html .lnp-vmenu-hover .header-vertical-menu__fly-out,
html .lnp-vmenu-hover .header-vertical-menu__fly-out--open {
	opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	z-index: 1001; min-width: 100%;
}
html .lnp-vmenu-hover .header-vertical-menu:hover .header-vertical-menu__fly-out,
html .lnp-vmenu-hover .header-vertical-menu:focus-within .header-vertical-menu__fly-out {
	opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s;
}
/* cầu nối vô hình: rê chuột từ nút xuống menu không bị "rơi" */
html .lnp-vmenu-hover .header-vertical-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
html .header-vertical-menu__opener { cursor: pointer; }
html .header-vertical-menu:hover .header-vertical-menu__opener .icon-angle-down { transform: rotate(180deg); }
html .header-vertical-menu__opener .icon-angle-down { transition: transform .18s ease; }
html .lnp-vmenu-hover .header-vertical-menu__fly-out .nav-vertical-fly-out > li > a:hover { background: var(--sky); color: var(--lnp-primary); }

/* ---------- 2. Footer mới: phần footer cũ còn sót thì ẩn ---------- */
html .lnp-newfoot #footer .footer-widgets,
html .lnp-newfoot #footer .absolute-footer,
html .lnp-newfoot #footer .sectionfooter2 { display: none !important; }
html #footer .lnp-foot { margin: 0; }
@media (max-width: 1024px) { html .lnp-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 549px)  { html .lnp-foot__grid { grid-template-columns: 1fr; gap: 22px; padding-top: 36px; } }
@media (max-width: 849px)  { html .lnp-foot__bar { padding-bottom: calc(16px + 64px + env(safe-area-inset-bottom)); } }

/* ---------- 3. Nút nổi Fanpage / SMS / Zalo (plugin wp-cta) + Hotline ---------- */
html .wp-cta-container { right: 18px !important; bottom: 96px !important; z-index: 9980 !important; }
html .wp-cta-container .cta-buttons { gap: 12px !important; }
html .wp-cta-container .cta-button {
	position: relative; width: 50px !important; height: 50px !important; border-radius: 50% !important;
	display: flex !important; align-items: center; justify-content: center;
	border: 3px solid #fff !important; color: #fff !important;
	box-shadow: 0 6px 18px rgba(7,26,51,.28), 0 0 0 1px rgba(7,26,51,.08) !important;
	transition: transform .18s ease, box-shadow .18s ease;
}
html .wp-cta-container .cta-button:nth-child(1) { background: #1877f2 !important; }   /* Facebook */
html .wp-cta-container .cta-button:nth-child(2) { background: #f59e0b !important; }   /* SMS */
html .wp-cta-container .cta-button:nth-child(3) { background: #0068ff !important; animation: lnp-ping 2.4s ease-out infinite; } /* Zalo */
html .wp-cta-container .cta-button i { font-size: 22px; color: #fff !important; }
html .wp-cta-container .cta-button img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
html .wp-cta-container .cta-button:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 10px 24px rgba(7,26,51,.35) !important; }
/* nhãn khi rê chuột (desktop) lấy từ title */
html .wp-cta-container .cta-button::after {
	content: attr(title); position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
	background: #071a33; color: #fff; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
	padding: 8px 10px; border-radius: var(--lnp-r); opacity: 0; pointer-events: none; transition: opacity .15s;
}
html .wp-cta-container .cta-button:hover::after { opacity: 1; }
@keyframes lnp-ping { 0% { box-shadow: 0 0 0 0 rgba(0,104,255,.45), 0 6px 18px rgba(7,26,51,.28); } 70% { box-shadow: 0 0 0 14px rgba(0,104,255,0), 0 6px 18px rgba(7,26,51,.28); } 100% { box-shadow: 0 0 0 0 rgba(0,104,255,0), 0 6px 18px rgba(7,26,51,.28); } }
html #top-link.back-to-top { right: 22px; bottom: 24px; z-index: 9970; }
@media (max-width: 849px) {
	/* mobile đã có thanh Gọi | Zalo | Nhận báo giá dính đáy → nút nổi nhỏ lại, nằm trên thanh; bỏ nút gọi tròn bên trái */
	html .wp-cta-container { right: 12px !important; bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
	html .wp-cta-container .cta-button { width: 42px !important; height: 42px !important; border-width: 2px !important; }
	html .wp-cta-container .cta-button:nth-child(3) { display: none !important; } /* Zalo đã có ở thanh đáy */
	html .wp-cta-container .cta-button::after { display: none; }
	html .wp-hotline-container { display: none !important; }
	html #top-link.back-to-top { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { html .wp-cta-container .cta-button { animation: none !important; } }

/* ---------- 4. Thanh mục lục ngang trang sản phẩm: tab đang chọn = nền xanh chữ trắng ---------- */
html .lnp-secnav .l-container { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
html .lnp-secnav a { padding: 10px 16px; border: 1px solid var(--lnp-line); border-radius: var(--lnp-r); background: #fff; color: var(--lnp-navy); }
html .lnp-secnav a:hover { background: var(--sky); color: var(--lnp-primary); border-color: var(--lnp-primary); }
html .lnp-secnav a.is-active, html .lnp-secnav a[aria-current="true"] {
	background: var(--lnp-primary) !important; border-color: var(--lnp-primary) !important; color: #fff !important;
}
/* style.css cũ đặt .is-active nền đỏ cho mọi phần tử → chặn trong các khối LNP */
html .lnp-page .is-active:not(.lnp-chip):not(.lnp-cat__tab):not(.lnp-pdp__thumb):not([class*="lnp-hero2__slide"]) { background-color: transparent; }
html .lnp-toc a.is-active { background: var(--sky); }
html .lnp-secnav a.is-active { background: var(--lnp-primary) !important; }

/* ---------- 5. Đoạn mô tả ngắn (danh mục, Sản phẩm, Tin tức) ---------- */
html .lnp-intro.is-clamp .lnp-intro__body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lnp-intro-lines, 4); overflow: hidden; }
html .lnp-intro__more { margin-top: 8px; padding: 0; background: none; border: 0; color: var(--lnp-primary); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 850px) { html .lnp-intro { --lnp-intro-lines: 5; } }
@media (max-width: 849px) { html .lnp-intro { padding: 14px 16px; font-size: 16px; line-height: 1.65; } }

/* =====================================================================
 * [v1.8.3] Thanh danh mục sản phẩm dính cố định (trang Sản phẩm + mọi danh mục)
 * Thứ tự: Tất cả · Nắp giấy · Ly giấy · Tô giấy · Lon giấy · Hộp giấy
 * ===================================================================== */
html .lnp-catbar {
	position: -webkit-sticky;
	position: sticky;
	top: var(--lnp-stick-top, 0px);
	z-index: 25;
	margin: 0 0 14px;
	padding: 10px 0;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: box-shadow .2s ease, border-color .2s ease;
}
html .lnp-catbar.is-stuck {
	border-bottom-color: var(--lnp-line, #e3e8ef);
	box-shadow: 0 8px 18px -12px rgba(11, 37, 69, .35);
}
/* nền trắng tràn 2 bên khi đang dính, không đổi bố cục */
html .lnp-catbar.is-stuck::before {
	content: "";
	position: absolute;
	inset: 0 -100vmax;
	background: #fff;
	z-index: -1;
	box-shadow: inherit;
}
html .lnp-catbar .lnp-chips {
	margin: 0;
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
html .lnp-catbar .lnp-chips::-webkit-scrollbar { display: none; }
html .lnp-catbar .lnp-chip { flex: 0 0 auto; }
html .lnp-chips--sub { margin: 0 0 20px; }
html .lnp-chips--sub .lnp-chip { min-height: 34px; padding: 0 12px; font-size: 14px; font-weight: 500; }
/* nhảy tới neo (#kien-thuc…) không bị header + thanh danh mục che */
html #lnp-cat [id] { scroll-margin-top: calc(var(--lnp-stick-top, 0px) + 72px); }
@media (max-width: 549px) {
	html .lnp-catbar { padding: 8px 0; }
	html .lnp-catbar .lnp-chip { min-height: 36px; padding: 0 12px; font-size: 14px; }
}
