/* Kẹo Bông Party – trang con: nội dung, Góc làm bánh, bài viết, Menu bánh, Bánh theo yêu cầu, Liên hệ, 404. */

/* ---------- Nội dung (chính sách, câu chuyện, bài viết) ---------- */
.cf-prose { font-size: 17px; }
.cf-prose h2 { font-size: clamp(24px, 2.8vw, 30px); margin: 1.4em 0 .5em; }
.cf-prose h3 { font: 800 20px/1.35 var(--cf-font-body); margin: 1.3em 0 .4em; }
.cf-prose ul { list-style: none; padding-left: 0; }
.cf-prose ul li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.cf-prose ul li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--kb-pink); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .1); }
.cf-prose ul li:nth-child(3n+2)::before { background: var(--kb-blue); }
.cf-prose ul li:nth-child(3n)::before { background: var(--kb-yellow); }
.cf-prose a { color: var(--kb-pink-d); font-weight: 600; }
.cf-prose em { color: var(--kb-muted); }
.cf-prose blockquote { margin: 1.4em 0; padding: 18px 22px; border-radius: 20px; background: var(--kb-yellow-50); border-left: 6px solid var(--kb-yellow); }
.cf-prose img { border-radius: 20px; }
.page .cf-main-pad > .cf-prose { margin-inline: auto; }

/* ---------- Góc làm bánh ---------- */
.cf-posts { gap: 28px; }
.cf-post-card { position: relative; display: flex; flex-direction: column; border-radius: var(--kb-r); background: #fff; box-shadow: var(--kb-shadow); overflow: hidden; transition: transform .2s; }
.cf-post-card:hover { transform: translateY(-4px); }
.cf-post-card__img { display: block; margin: 10px 10px 0; border-radius: 20px; overflow: hidden; background: var(--kb-pink-50); }
.cf-post-card__img img { border-radius: 0; aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.cf-post-card__body { padding: 16px 20px 22px; }
.cf-post-card__meta { display: inline-block; margin: 0 0 8px; padding: 2px 12px; border-radius: 999px; background: var(--kb-blue-50); color: var(--kb-blue-d); font-size: 13px; font-weight: 700; }
.cf-post-card:nth-child(3n+2) .cf-post-card__meta { background: var(--kb-pink-50); color: var(--kb-pink-d); }
.cf-post-card:nth-child(3n) .cf-post-card__meta { background: var(--kb-yellow-50); color: #7A5700; }
.cf-post-card__title { font: 800 19px/1.4 var(--cf-font-body); margin: 0 0 8px; }
.cf-post-card__title a { color: var(--kb-ink); text-decoration: none; }
.cf-post-card__title a::after { content: ""; position: absolute; inset: 0; }
.cf-post-card__title a:hover { color: var(--kb-pink-d); }
.cf-post-card__body > p:last-child { margin: 0; color: var(--kb-muted); font-size: 15px; }
.cf-pagination .page-numbers, .woocommerce-pagination .page-numbers { border-radius: 50% !important; border: 2px solid var(--kb-line) !important; font-weight: 700; }
.cf-pagination .current, .woocommerce-pagination .current { background: var(--kb-pink-d) !important; border-color: var(--kb-pink-d) !important; color: #fff !important; }

/* Bài viết: tiêu đề dài dùng Be Vietnam Pro đậm (Coiny chỉ cho tiêu đề ngắn) */
.single-post .cf-page-head__title, .blog .cf-page-head__title { font-family: var(--cf-font-body); font-weight: 800; letter-spacing: -.01em; }
.single-post .cf-page-head .cf-kicker { background: var(--kb-blue); }
.cf-post-hero { margin: 0 0 32px; border-radius: 30px; overflow: hidden; box-shadow: 0 0 0 10px var(--kb-yellow-50); }
.cf-post-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.single-post .cf-main-pad > .cf-prose { margin: 0 auto 34px; }
.single-post .cf-main-pad > p:last-child { text-align: center; }
.single-post .cf-main-pad > p:last-child .cf-btn { border-radius: 999px; background: var(--kb-pink-d); box-shadow: var(--kb-shadow-pink); padding-inline: 26px; }

/* ---------- Menu bánh ---------- */
.kb-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.kb-jump__a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px; background: var(--t-50); color: var(--kb-ink); text-decoration: none; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.kb-jump__a .cf-ic { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--t); }
.kb-jump__a:hover { background: var(--t-100); }
.kb-shelf { margin-bottom: 30px; padding: 30px; border-radius: 32px; background: var(--t-50); scroll-margin-top: calc(var(--cf-hh) + 20px); }
.kb-shelf__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 22px; }
.kb-shelf__ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--t); box-shadow: inset -5px -6px 0 rgba(0, 0, 0, .07); }
.kb-shelf__title { font-size: clamp(24px, 2.8vw, 30px); margin: 0; }
.kb-shelf__note { margin: 2px 0 0; color: var(--kb-muted); font-size: 15px; }
.kb-shelf__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kb-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border-radius: 22px; background: #fff; min-width: 0; box-shadow: 0 8px 20px -16px rgba(43, 29, 82, .5); }
.kb-row__img { flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%; padding: 4px; background: var(--t-100); }
.kb-row__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.kb-row__body { flex: 1; min-width: 0; }
.kb-row__name { font: 800 17px/1.4 var(--cf-font-body); margin: 2px 0 2px; }
.kb-row__name a { color: var(--kb-ink); text-decoration: none; }
.kb-row__name a:hover { color: var(--kb-pink-d); }
.kb-row__note { margin: 0 0 8px; font-size: 14px; color: var(--kb-muted); line-height: 1.5; }
.kb-row__prices { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.kb-chipprice { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 11px; border-radius: 999px; background: var(--t-50); font-size: 13px; color: var(--kb-muted); font-weight: 600; }
.kb-chipprice b { color: var(--kb-pink-d); font-size: 14.5px; font-weight: 800; }
@media (max-width: 860px) { .kb-shelf__list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
	.kb-jump { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-bottom: 6px; scrollbar-width: none; }
	.kb-shelf { padding: 20px 14px; border-radius: 24px; margin-inline: -6px; }
	.kb-shelf__head { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
	.kb-shelf__head .kb-more { grid-column: 1 / -1; }
	.kb-shelf__ic { width: 48px; height: 48px; }
	.kb-row { gap: 12px; padding: 12px; }
	.kb-row__img { width: 64px; height: 64px; }
	.kb-row__name { font-size: 15.5px; }
}

/* ---------- Bánh theo yêu cầu ---------- */
.kb-ideas { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.kb-ideas li { display: grid; gap: 4px; padding: 14px 14px 20px; border-radius: var(--kb-r); background: var(--t-50); text-align: center; }
.kb-ideas figure { margin: 0 0 10px; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--t-100); }
.kb-ideas img { width: 100%; height: 100%; object-fit: cover; }
.kb-ideas b { font-size: 17px; }
.kb-ideas span { color: var(--kb-muted); font-size: 14.5px; }
.kb-custom-page__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.kb-paper { position: relative; padding: 46px 40px 34px; border-radius: 30px; background: #fff; box-shadow: var(--kb-shadow); border: 2px solid var(--kb-line); }
.kb-paper::before { content: ""; position: absolute; left: 24px; right: 24px; top: -2px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='30' viewBox='0 0 132 30'%3E%3Cpath d='M8 0 L30 0 L17 26z' fill='%23FF5C8A'/%3E%3Cpath d='M54 0 L76 0 L65 28z' fill='%233EC1F3'/%3E%3Cpath d='M100 0 L122 0 L111 26z' fill='%23FFD23F'/%3E%3C/svg%3E") repeat-x 0 0 / 132px 30px; }
.kb-prose { max-width: none; font-size: 16.5px; }
.kb-prose > :first-child { margin-top: 0; }
.kb-order-card { padding: 32px 30px; border-radius: 30px; background: var(--kb-blue-50); position: relative; }
.kb-order-card__kicker { display: inline-block; margin: 0 0 10px; padding: 3px 14px; border-radius: 999px; background: var(--kb-yellow); font-size: 13px; font-weight: 800; }
.kb-order-card__title { font-size: clamp(24px, 2.8vw, 32px); margin: 0 0 8px; }
.kb-order-card__lead { color: var(--kb-muted); font-size: 15px; margin-bottom: 20px; }
.kb-order-card .cf-form label { font-size: 14px; }
.kb-order-card .cf-form .cf-btn { width: 100%; }
.kb-order-card__zalo { margin-top: 18px; padding-top: 18px; border-top: 2px dashed var(--kb-blue-100); }
.kb-order-card__zalo p { margin: 0 0 10px; font-size: 14.5px; color: var(--kb-muted); }
.kb-order-card__zalo .cf-btn { width: 100%; }
@media (max-width: 960px) { .kb-custom-page__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
	.kb-ideas { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.kb-ideas li { grid-template-columns: 110px minmax(0, 1fr); text-align: left; align-items: center; gap: 2px 14px; padding: 10px; }
	.kb-ideas figure { grid-row: span 2; margin: 0; aspect-ratio: 1; border-radius: 16px; }
	.kb-paper { padding: 38px 20px 22px; border-radius: 24px; }
	.kb-order-card { padding: 26px 18px; border-radius: 24px; }
}

/* ---------- Liên hệ ---------- */
.kb-contact .cf-contact__cards { gap: 16px; }
.kb-contact .cf-qcard { gap: 4px; padding: 22px 20px; border: 0; border-radius: 24px; background: var(--t-50); color: var(--kb-ink); transition: transform .2s; }
.kb-contact a.cf-qcard:hover { transform: translateY(-4px); }
.kb-contact .cf-qcard .cf-ic { width: 46px; height: 46px; padding: 10px; margin-bottom: 8px; border-radius: 50%; background: var(--t); color: var(--kb-ink); }
.kb-contact .cf-qcard b { font-size: 17px; }
.kb-contact .cf-qcard span { color: var(--kb-muted); }
.kb-map { border: 0; border-radius: 26px; box-shadow: var(--kb-shadow); }
.kb-map .cf-map__fallback a { color: var(--kb-pink-d); }
.kb-faq { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.kb-faq li { display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px; background: var(--kb-yellow-50); }
.kb-faq b { font-size: 15.5px; }
.kb-faq span { color: var(--kb-muted); font-size: 14.5px; }
@media (max-width: 480px) { .kb-contact .cf-contact__cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 404 ---------- */
.kb-404 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding: 70px 40px; margin-top: 50px; border-radius: 36px; background-color: var(--kb-pink-50); }
.kb-404__art { position: relative; display: grid; place-items: center; }
.kb-404__balloons { width: 190px; height: auto; transform: rotate(-10deg) translateY(-10px); }
.kb-404__num { position: absolute; bottom: -10px; font: 400 76px/1.35 var(--cf-font-head); color: var(--kb-ink); }
.kb-404__title { font-size: clamp(28px, 4vw, 46px); margin: 0 0 12px; }
.kb-404__text > p { color: var(--kb-muted); font-size: 17px; }
.kb-404 .kb-kicker { margin-bottom: 14px; }
@media (max-width: 760px) { .kb-404 { grid-template-columns: minmax(0, 1fr); padding: 44px 22px; text-align: center; border-radius: 26px; width: calc(100% - 24px); } .kb-404 .kb-btn-row { justify-content: center; } .kb-404__balloons { width: 140px; } .kb-404__num { font-size: 56px; } }
