/* ============================================================================
   Blog — listing page + post detail + right sidebar
   ============================================================================ */


/* ---- Shared two-column layout (main content + sidebar) ---- */
.blog-layout { max-width: 1200px; margin: 0 auto; padding: 24px 24px 48px; display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; gap: 32px; padding: 18px 16px 40px; }
}


/* ---- LISTING PAGE (blog.blade.php) ---- */
.blog-head h1 { font-size: 28px; font-weight: 800; letter-spacing: .04em; margin-bottom: 8px; color: #1a1a1a; }
.blog-head .blog-eyebrow { display: inline-block; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: #b0894f; font-weight: 700; margin-bottom: 8px; }
.blog-head p { color: #8a8378; font-size: 14px; margin-bottom: 26px; }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 22px; }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; gap: 18px; } }

.blog-card { display: block; text-decoration: none; color: inherit; }
.blog-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: #f3f3f3; border-radius: 6px; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .thumb img { transform: scale(1.04); }
.blog-card:hover .title { color: #b0894f; }
.blog-card .body { padding: 14px 4px 6px; }
.blog-card .date { font-size: 11.5px; color: #8a8378; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.blog-card .title { font-weight: 700; font-size: 16px; line-height: 1.35; margin-bottom: 6px; color: #1a1a1a; transition: color .15s ease; }
.blog-card .excerpt { font-size: 13.5px; color: #5a5349; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.blog-empty { text-align: center; color: #8a8378; padding: 60px 0; }
.blog-pager { margin-top: 32px; display: flex; justify-content: center; }


/* ---- DETAIL PAGE (blog-post.blade.php) ---- */

/* Override Pancake's `.x-section { display:grid }` which (without
   grid-template-columns) would cram content into a narrow column. */
#SECTION-ksu5gssb { display: block !important; width: 100% !important; padding: 0; }

.bp-article .bp-meta { color: #888; font-size: 13px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #ece7de; }
.bp-article h1.bp-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.2; margin-bottom: 14px; color: #1a1a1a; }
.bp-article .bp-cover { aspect-ratio: 16/9; margin: 0 0 28px; overflow: hidden; border-radius: 6px; background: #f3f3f3; }
.bp-article .bp-cover img { width: 100%; height: 100%; object-fit: cover; }

.bp-body { font-size: 16px; line-height: 1.8; color: #2a2520; }
.bp-body h2, .bp-body h3, .bp-body h4 { margin: 28px 0 12px; font-weight: 800; color: #1a1a1a; line-height: 1.3; }
.bp-body h2 { font-size: 22px; }
.bp-body h3 { font-size: 19px; }
.bp-body h4 { font-size: 17px; }
.bp-body p { margin-bottom: 16px; }
.bp-body ul, .bp-body ol { margin: 0 0 18px 24px; padding-left: 6px; }
.bp-body li { margin-bottom: 8px; line-height: 1.7; }
.bp-body strong { color: #1a1a1a; font-weight: 700; }
.bp-body a { color: #b0894f; text-decoration: underline; text-underline-offset: 3px; }
.bp-body a:hover { color: #1a1a1a; }
.bp-body img { margin: 18px auto; border-radius: 4px; max-width: 100%; height: auto; }
.bp-body blockquote { border-left: 3px solid #b0894f; padding: 8px 18px; margin: 22px 0; background: #faf8f5; color: #5a5349; font-style: italic; }


/* ---- RIGHT SIDEBAR (shared between listing + detail) ---- */
.bs-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 130px; }
@media (max-width: 900px) { .bs-sidebar { position: static; } }

.bs-card { background: #fff; border: 1px solid #ece7de; border-radius: 6px; padding: 20px 20px 22px; }
.bs-title { font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #1a1a1a; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #ece7de; position: relative; }
.bs-title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 36px; height: 2px; background: #b0894f; }

/* Recent posts list */
.bs-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bs-recent-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.bs-recent-item .thumb { width: 72px; height: 72px; overflow: hidden; border-radius: 4px; background: #f3f3f3; flex: none; }
.bs-recent-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.bs-recent-item:hover .thumb img { transform: scale(1.06); }
.bs-recent-item .title { font-size: 13.5px; font-weight: 600; color: #1a1a1a; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s ease; }
.bs-recent-item:hover .title { color: #b0894f; }
.bs-recent-item .date { font-size: 11px; color: #8a8378; margin-top: 4px; letter-spacing: .04em; }

/* Featured products */
.bs-products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bs-product-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.bs-product-item .thumb { width: 72px; height: 90px; overflow: hidden; border-radius: 4px; background: #f3f3f3; flex: none; }
.bs-product-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.bs-product-item:hover .thumb img { transform: scale(1.06); }
.bs-product-item .name { font-size: 13.5px; font-weight: 600; color: #1a1a1a; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s ease; }
.bs-product-item:hover .name { color: #b0894f; }
.bs-product-item .price { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-top: 4px; }

/* Social follow */
.bs-social { display: flex; gap: 10px; }
.bs-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid #ece7de; color: #1a1a1a; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.bs-social a:hover { background: #b0894f; border-color: #b0894f; color: #fff; transform: translateY(-2px); }
.bs-social svg { width: 18px; height: 18px; }
