/* Bột & Bơ – trang con: đầu trang, nội dung, Menu bánh, Bánh theo yêu cầu, Liên hệ, Góc làm bánh, bài viết, 404. */

/* ===== Đầu trang con: căn giữa, mảnh ===== */
.cf-page-head { padding: 46px 0 34px; text-align: center; border-bottom: 1px solid var(--bb-line); }
.cf-page-head .woocommerce-breadcrumb { margin-bottom: 14px; font-size: 12.5px; letter-spacing: .06em; }
.cf-page-head .cf-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 600 12.5px/1.5 var(--cf-font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--bb-muted); }
.cf-page-head .cf-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bb-accent); }
.cf-page-head__title { margin: 0 0 10px; font-weight: 300; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.32; }
.cf-page-head__lead { margin: 0 auto; max-width: 640px; font-size: 15.5px; }
.cf-main-pad { padding: 44px 0 88px; }
@media (max-width: 600px) { .cf-page-head { padding: 30px 0 24px; } .cf-main-pad { padding: 30px 0 64px; } }

/* ===== Nội dung soạn thảo ===== */
.cf-prose { max-width: 720px; margin-inline: auto; font-size: 16.5px; line-height: 1.8; }
.cf-prose h2 { margin: 1.6em 0 .5em; font-size: 28px; font-weight: 400; line-height: 1.38; }
.cf-prose h3 { margin: 1.4em 0 .4em; font-size: 22px; line-height: 1.4; }
.cf-prose ul { list-style: none; padding: 0; }
.cf-prose ul li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--bb-line); }
.cf-prose ul li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--bb-accent); }
.cf-prose a { color: var(--bb-accent); }
.cf-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--bb-accent); font: italic 400 22px/1.5 var(--cf-font-head); }
.cf-prose img { margin: 1.4em 0; }
.cf-prose em { color: var(--bb-muted); }

/* CTA cuối trang */
.bb-cta { margin-top: 72px; padding: 46px 24px; text-align: center; background: var(--bb-beige); }
.bb-cta .bb-code { justify-content: center; }
.bb-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 0; }

/* ===== Menu bánh ===== */
.bb-menu__toc { position: sticky; top: var(--cf-hh); z-index: 5; margin: -44px 0 34px; padding: 12px 0; background: var(--bb-white); border-bottom: 1px solid var(--bb-line); }
.admin-bar .bb-menu__toc { top: calc(var(--cf-hh) + 32px); }
.bb-menu__toc ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; }
.bb-menu__toc a { display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 0; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.bb-menu__toc a .bb-no { color: var(--bb-muted); font-size: 11.5px; }
.bb-menu__toc a:hover { color: var(--bb-accent); }
.bb-menu__group { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; padding: 44px 0 52px; border-bottom: 1px solid var(--bb-line); scroll-margin-top: calc(var(--cf-hh) + 70px); }
.bb-menu__side { align-self: start; }
.bb-menu__cat { margin: 0 0 8px; font-size: 32px; font-weight: 300; line-height: 1.35; }
.bb-menu__desc { margin: 0 0 18px; color: var(--bb-muted); font-size: 14.5px; }
.bb-menu__img { display: block; aspect-ratio: 1; margin-bottom: 16px; overflow: hidden; background: var(--bb-beige); }
.bb-menu__img img { width: 100%; height: 100%; object-fit: cover; }
.bb-menu__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bb-ink); }
.bb-menu__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--bb-line); }
.bb-menu__meta { display: flex; gap: 14px; align-items: baseline; margin: 0 0 2px; }
.bb-menu__name { margin: 0; font-size: 21px; line-height: 1.4; }
.bb-menu__name a { text-decoration: none; }
.bb-menu__name a:hover { color: var(--bb-accent); }
.bb-menu__note { margin: 4px 0 0; font-size: 14px; color: var(--bb-muted); }
.bb-menu__prices { list-style: none; margin: 0; padding: 0; align-self: center; display: grid; gap: 0; }
.bb-menu__prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px dotted var(--bb-line); font-size: 14px; }
.bb-menu__prices li:last-child { border-bottom: 0; }
.bb-menu__prices span { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.bb-menu__prices small { color: var(--bb-muted); font-size: 12.5px; }
.bb-menu__prices b { font-weight: 600; white-space: nowrap; }
.bb-menu__prices--one span { color: var(--bb-muted); }
@media (max-width: 960px) {
	.bb-menu__group { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.bb-menu__side { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 18px; }
	.bb-menu__side > :not(.bb-menu__img) { grid-column: 2; }
	.bb-menu__img { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
}
@media (max-width: 760px) {
	.bb-menu__toc { position: static; margin-top: -30px; }
	.bb-menu__toc ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.bb-menu__item { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.bb-menu__prices { padding: 8px 12px; background: var(--bb-paper); }
	.bb-menu__side { grid-template-columns: 88px minmax(0, 1fr); }
	.bb-menu__cat { font-size: 26px; }
}

/* ===== Bánh theo yêu cầu ===== */
.bb-brief { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--bb-ink); }
.bb-brief li { display: grid; gap: 0; padding: 18px 20px; border-left: 1px solid var(--bb-line); min-width: 0; }
.bb-brief li:first-child { border-left: 0; }
.bb-brief .bb-no { color: var(--bb-accent); }
.bb-brief b { font: 400 19px/1.4 var(--cf-font-head); }
.bb-brief small { font-size: 13px; color: var(--bb-muted); }
.bb-custom-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: start; }
.bb-custom-page__content { margin: 0; max-width: none; }
.bb-custom-page__content > p:first-child { font: 300 22px/1.6 var(--cf-font-head); color: var(--bb-ink); }
.bb-req { padding: 30px 28px; background: var(--bb-paper); border-top: 3px solid var(--bb-ink); scroll-margin-top: calc(var(--cf-hh) + 20px); }
.bb-req__t { margin: 0 0 6px; font-size: 28px; font-weight: 400; line-height: 1.38; }
.bb-req__lead { margin: 0 0 18px; font-size: 14.5px; color: var(--bb-muted); }
.bb-req__or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--bb-muted); }
.bb-req__or::before, .bb-req__or::after { content: ""; flex: 1; height: 1px; background: var(--bb-line); }
.bb-req .cf-form { grid-template-columns: minmax(0, 1fr); }
.bb-req__call { margin: 6px 0 0; font-size: 14px; color: var(--bb-muted); }
.bb-req__call a { color: var(--bb-ink); font-weight: 600; }
@media (max-width: 960px) {
	.bb-custom-page__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.bb-brief { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bb-brief li:nth-child(3) { border-left: 0; }
	.bb-brief li:nth-child(n+3) { border-top: 1px solid var(--bb-line); }
}
@media (max-width: 480px) { .bb-req { padding: 24px 16px; } .bb-brief li { padding: 14px 12px; } .bb-brief b { font-size: 17px; } }

/* ===== Form (liên hệ, yêu cầu) ===== */
.cf-form label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cf-form input, .cf-form textarea { border: 0; border-bottom: 1px solid var(--bb-ink); border-radius: 0; background: transparent; padding-inline: 0; }
.cf-form input:focus, .cf-form textarea:focus { border-bottom-color: var(--bb-accent); }
.bb-req .cf-form input, .bb-req .cf-form textarea { background: transparent; }
.cf-form .cf-btn--primary { width: 100%; min-height: 50px; border-radius: 2px; background: var(--bb-ink); font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; }
.cf-form .cf-btn--primary:hover { background: var(--bb-accent); filter: none; }
.cf-notice { border-radius: 2px; }

/* ===== Liên hệ ===== */
.cf-contact__cards { gap: 0; border: 1px solid var(--bb-ink); margin-bottom: 52px; }
.cf-qcard { gap: 4px; padding: 22px 22px 20px; border: 0; border-left: 1px solid var(--bb-line); border-radius: 0; color: var(--bb-ink); transition: background .15s; }
.cf-qcard:first-child { border-left: 0; }
.cf-qcard b { font: 400 20px/1.4 var(--cf-font-head); }
a.cf-qcard:hover { background: var(--bb-paper); }
a.cf-qcard:hover b { color: var(--bb-accent); }
.cf-contact__main h2 { font-size: 28px; font-weight: 300; line-height: 1.38; margin-bottom: 20px; }
.cf-map { border-radius: 0; border-color: var(--bb-line); }
.cf-map iframe { height: 380px; filter: grayscale(.85) contrast(1.02); }
.cf-map__fallback a { color: var(--bb-accent); }
@media (max-width: 900px) { .cf-qcard:nth-child(3) { border-left: 0; } .cf-qcard:nth-child(n+3) { border-top: 1px solid var(--bb-line); } }
@media (max-width: 420px) { .cf-contact__cards { grid-template-columns: minmax(0, 1fr); } .cf-qcard { border-left: 0; } .cf-qcard + .cf-qcard { border-top: 1px solid var(--bb-line); } }

/* ===== Góc làm bánh (blog) ===== */
.cf-posts { gap: 44px 26px; }
.cf-post-card__img { display: block; overflow: hidden; background: var(--bb-beige); }
.cf-post-card__img img { aspect-ratio: 1; border-radius: 0; transition: transform .5s ease; }
.cf-post-card:hover .cf-post-card__img img { transform: scale(1.04); }
.cf-post-card__body { padding-top: 14px; border-top: 1px solid var(--bb-ink); margin-top: 14px; }
.cf-post-card__meta { margin: 0 0 4px; font: 600 12.5px/1.5 var(--cf-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--bb-muted); }
.cf-post-card__title { font-size: 22px; line-height: 1.4; margin-bottom: 8px; }
.cf-post-card__title a { text-decoration: none; }
.cf-post-card__title a:hover { color: var(--bb-accent); }
.cf-post-card__body p:last-child { margin: 0; font-size: 14.5px; color: var(--bb-muted); }
.cf-pagination .page-numbers { border-radius: 2px; }

/* Bài viết */
.cf-post-hero { max-width: 900px; margin: 0 auto 40px; }
.cf-post-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.single-post .cf-main-pad > p:last-child { max-width: 720px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid var(--bb-line); }
.single-post .cf-main-pad > p:last-child .cf-btn--primary { border-radius: 2px; background: var(--bb-ink); font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; }

/* ===== 404 ===== */
.bb-404 { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; align-items: center; max-width: 900px; }
.bb-404 h1 { font-weight: 300; font-size: clamp(30px, 4vw, 46px); line-height: 1.35; }
.bb-404__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.bb-404 .bb-cake { padding: 26px; background: var(--bb-beige); }
@media (max-width: 700px) { .bb-404 { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: center; } .bb-404 .bb-code, .bb-404__btns { justify-content: center; } .bb-404 .bb-cake { max-width: 260px; margin-inline: auto; } }
