/* ==========================================================================
   FUGA — Trang bài viết (single.php) + thẻ sản phẩm trong bài + đường dẫn (breadcrumb) dùng chung với trang blog
   ========================================================================== */
/* Khung 1248px giữa trang, lề tối thiểu 32px (điện thoại 20px) */
.fg-post__wrap, .fg-blist__wrap {
	margin-inline: max(32px, 50% - 624px);
	color: #1c1c1c;
}
.fg-post { padding: 56px 0 0; background: #fff; }

/* Đường dẫn */
.fg-pcrumbs { margin: 16px 0; padding: 12px 0 12px 28.8px; font-size: 14px; line-height: 19.6px; }
.fg-pcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fg-pcrumbs__item { display: flex; align-items: center; gap: 8px; }
.fg-pcrumbs__link:hover { text-decoration: underline; }
.fg-pcrumbs__sep { color: rgba(28, 28, 28, .5); }
.fg-pcrumbs__item--current { font-weight: 500; color: rgba(28, 28, 28, .7); }

.fg-post__title { margin: 0 0 24px; font-size: 48px; line-height: 1.4; font-weight: 700; }
.fg-post__meta { display: flex; margin-bottom: 48px; color: #555; }

.fg-post__layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.fg-post__toc, .fg-post__side { position: sticky; top: calc(var(--fg-head-bottom, 112px) + 20px); }
.fg-post__toc-title { margin-bottom: 12px; font-size: 24px; line-height: 1.4; font-weight: 700; }
.fg-post__toc-list a { display: block; padding: 5.6px 24px 5.6px 0; border-right: 3px solid #f5f5f6; line-height: 1.45; color: #000; transition: border-color .2s; }
.fg-post__toc-list a:hover, .fg-post__toc-list a.is-active { border-right-color: #1c1c1c; }

/* Nội dung bài */
.fg-post-prose { font-size: 14px; line-height: 1.4; }
.fg-post-prose > * + * { margin-top: 32px; }
.fg-post-prose > :first-child { margin-top: 0; }
.fg-post-prose h2, .fg-post-prose h3 { line-height: 1.2; letter-spacing: .01em; }
.fg-post-prose h2 { margin-top: 26px; font-size: 26px; font-weight: 700; scroll-margin-top: calc(var(--fg-head-bottom, 112px) + 20px); }
.fg-post-prose h3 { margin-top: 22px; font-size: 22px; font-weight: 400; }
.fg-post-prose a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.fg-post-prose ul, .fg-post-prose ol { margin-left: 14px; padding: 0; }
.fg-post-prose ul { list-style: disc; }
.fg-post-prose ol { list-style: decimal; }
.fg-post-prose li { padding-left: 8.75px; }
.fg-post-prose figure { margin: 40px 0 16px; }
.fg-post-prose figure + * { margin-top: 22px; }
.fg-post-prose figure img { display: block; width: 100%; height: auto; }
.fg-post-prose table { width: 100%; border-collapse: collapse; border-block: 1px solid #e8e8e8; }
.fg-post-prose td, .fg-post-prose th { padding: 20px 16px; border-top: 1px solid #e8e8e8; text-align: center; vertical-align: middle; }

.fg-post__share { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 40px; }
.fg-post__share-list { display: flex; gap: 24px; }
.fg-post__share-list a { display: block; line-height: 0; }
.fg-post__share-list .fg-icon { width: 24px; height: 24px; }
.fg-post__source { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Cột phải */
.fg-post__side { display: flex; flex-direction: column; gap: 32px; }
.fg-post__side-title { margin-bottom: 0; padding-bottom: 8px; border-bottom: 2px solid #1c1c1c; font-size: 18px; line-height: 1.4; font-weight: 700; }
.fg-post__side-title + .fg-post__side-list { margin-top: 12px; }
.fg-post__side-list li { padding-left: 8.75px; border-bottom: 1px solid rgba(128, 128, 128, .15); }
.fg-post__side-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.fg-post__side-info { display: flex; flex-direction: column; min-width: 0; }
.fg-post__side-cat { margin-bottom: 4px; font-size: 12px; line-height: 1.4; }
.fg-post__side-name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-weight: 600; }
.fg-post__side-price { margin-top: 4px; font-size: 13px; line-height: 1.4; }
.fg-post__side-img { flex: none; width: 70px; height: 70px; object-fit: cover; }
.fg-post__side-item:hover .fg-post__side-name { text-decoration: underline; }

/* Bài trước / sau */
.fg-post__navrow { display: grid; grid-template-columns: 240px minmax(0, 1fr) 320px; gap: 40px; margin-top: 56px; }
.fg-post__nav { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; margin: 8px 0 40px; border-block: 1px solid rgba(0, 0, 0, .12); }
.fg-post__nav-link { display: flex; align-items: center; gap: 12px; padding: 10.4px 20px 10.4px 4px; }
.fg-post__nav-link--next { flex-direction: row-reverse; padding: 10.4px 4px 10.4px 20px; border-left: 1px solid rgba(0, 0, 0, .12); text-align: right; }
.fg-post__nav-arrow { display: flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid rgba(0, 0, 0, .25); border-radius: 50%; transition: background-color .2s, color .2s; }
.fg-post__nav-arrow .fg-icon { width: 12px; height: 12px; }
.fg-post__nav-link:hover .fg-post__nav-arrow { background: #1c1c1c; color: #fff; }
.fg-post__nav-text { display: flex; flex-direction: column; gap: 2.4px; min-width: 0; }
.fg-post__nav-label { font-size: 12px; line-height: 1.2; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fg-post__nav-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-height: 1.35; font-weight: 600; }

/* Thẻ sản phẩm trong bài: [fuga_product handle="…"] */
.fg-post-prose .fg-pcard-inline { margin: 40px 0; }
.fg-pcard-inline {
	display: flex; overflow: hidden; max-width: 840px;
	border: 1px solid #eaeaea; border-radius: 16px; background: #f8f9fa;
	box-shadow: 0 10px 30px -5px rgba(0, 0, 0, .04);
}
.fg-pcard-inline__media { flex: 0 0 50%; display: flex; align-items: center; justify-content: center; background: #fff; }
.fg-pcard-inline__img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; }
.fg-post-prose .fg-pcard-inline a { font-weight: inherit; text-decoration: none; }
.fg-pcard-inline__body { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 12px; padding: 24px; }
.fg-pcard-inline__title { font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -.2px; }
.fg-pcard-inline__price { font-size: 18px; font-weight: 700; }
.fg-pcard-inline__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fg-pcard-inline__btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 16px; border: 1px solid #1a1a1a; border-radius: 8px; background: #fff; color: #1a1a1a; font-weight: 600; letter-spacing: .3px; text-align: center; transition: opacity .2s; }
.fg-pcard-inline__btn--dark { background: #1a1a1a; color: #fff; }
.fg-pcard-inline__btn:hover { opacity: .85; }

@media (max-width: 1399px) {
	.fg-post { padding-top: 48px; }
}
@media (max-width: 1149px) {
	.fg-post__layout { grid-template-columns: 220px minmax(0, 1fr); }
	.fg-post__side { display: none; }
	.fg-post__navrow { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 999px) {
	.fg-post__layout, .fg-post__navrow { display: block; }
	.fg-post__toc { display: none; }
	.fg-post__side { position: static; display: flex; margin-top: 32px; }
	.fg-post__nav { grid-template-columns: 1fr; }
	.fg-post__nav-link, .fg-post__nav-link--next { flex-direction: row; gap: 8px; padding: 8.8px 4px; text-align: left; border-left: 0; }
	.fg-post__nav-link--next { border-top: 1px solid rgba(0, 0, 0, .12); }
	.fg-post__nav-title { font-size: 13px; }
	.fg-pcard-inline { flex-direction: column; }
}
@media (max-width: 699px) {
	.fg-post__wrap, .fg-blist__wrap { margin-inline: 20px; }
	.fg-post { padding-top: 32px; }
	.fg-pcrumbs { margin: 12px 0; padding: 8px 17px; }
	.fg-pcrumbs__list, .fg-pcrumbs__item { gap: 6px; }
	.fg-post__title { font-size: 24px; }
	.fg-post__meta { margin-bottom: 24px; }
	.fg-post-prose > * + * { margin-top: 24px; }
	.fg-post-prose h2 { margin-top: 31px; }
	.fg-post-prose h3 { margin-top: 26px; }
	.fg-post-prose figure { margin: 28px 0 16px; }
	.fg-post__navrow { margin-top: 32px; }
	.fg-post-prose td, .fg-post-prose th { padding: 12px 6px; overflow-wrap: anywhere; hyphens: auto; }
}
