/* =====================================================
   Lithos — Blog Page Styles
   ===================================================== */

/* ── Hero banner ── */
.blog-hero {
    position: relative;
    background: #111;
    padding: 110px 24px 90px;
    overflow: hidden;
    text-align: center;
}
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/header.jpg') center / cover no-repeat;
    opacity: 0.22;
    pointer-events: none;
}
.blog-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}
.blog-hero__breadcrumb {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 20px;
}
.blog-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-hero__breadcrumb a:hover { color: #fff; }
.blog-hero__breadcrumb .sep { margin: 0 10px; }
.blog-hero__title {
    font-family: "Urbanist", sans-serif;
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: #fff;
    margin: 0 0 22px;
}
.blog-hero__subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto;
}

/* ── Page wrapper ── */
.blog-page-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}

/* ── Meta bar ── */
.blog-meta-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 44px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #aaa;
    flex-wrap: wrap;
}
.blog-meta-bar__badge {
    display: inline-block;
    background: #f2f2f2;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #555;
}

/* ── Table of contents ── */
.blog-toc {
    background: #f8f8f8;
    border-left: 4px solid #000;
    padding: 26px 32px 26px 28px;
    margin-bottom: 56px;
    border-radius: 0 4px 4px 0;
}
.blog-toc__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: #555;
}
.blog-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 32px;
}
.blog-toc__list li { break-inside: avoid; margin-bottom: 9px; }
.blog-toc__list a {
    font-size: 14px;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}
.blog-toc__list a:hover { color: #000; border-bottom-color: #000; }
.blog-toc__list a::before { content: '→ '; font-size: 12px; color: #bbb; }
@media (max-width: 600px) { .blog-toc__list { columns: 1; } }

/* ── Sections ── */
.blog-section {
    padding: 56px 0;
    border-bottom: 1px solid #ebebeb;
}
.blog-section:last-of-type { border-bottom: none; }
.blog-section h2 {
    font-family: "Urbanist", sans-serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 10px;
    color: #000;
}
.blog-section__lead {
    font-size: 17px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 36px;
}
.blog-section h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 36px 0 12px;
    color: #111;
}
.blog-section p { line-height: 1.75; margin-bottom: 16px; color: #333; }
.blog-section ul, .blog-section ol { padding-left: 20px; line-height: 1.75; }
.blog-section li { margin-bottom: 8px; color: #333; }
.blog-section a { color: #000; }
.blog-section a:hover { color: #444; }

/* ── Category pills ── */
.blog-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 32px;
}
a.blog-category-pill,
.blog-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 35px;
    border: 2px solid #000;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.blog-section a.blog-category-pill { color: #fff; }
a.blog-category-pill:hover,
.blog-category-pill:hover { background: #fff; color: #000; }

/* ── Product grid ── */
.blog-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}
@media (max-width: 860px) { .blog-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .blog-product-grid { grid-template-columns: 1fr; } }

.blog-product-card {
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow 0.25s, transform 0.25s;
}
.blog-product-card:hover {
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.11);
    transform: translateY(-3px);
}
.blog-product-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f4f4;
}
.blog-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.blog-product-card:hover .blog-product-card__image img { transform: scale(1.06); }
.blog-product-card__body {
    padding: 18px 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-product-card__name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
}
.blog-product-card__name a { color: #000; text-decoration: none; }
.blog-product-card__name a:hover { text-decoration: underline; }
.blog-product-card__desc {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
}
.blog-product-card__price {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px;
}
.blog-product-card__cta {
    display: block;
    padding: 9px 0;
    text-align: center;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s;
}
.blog-product-card__cta:hover { background: #333; color: #fff; }

/* ── New / Sale two-column list boxes ── */
.blog-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 32px 0 0;
}
@media (max-width: 580px) { .blog-two-col { grid-template-columns: 1fr; } }
.blog-list-box {
    background: #f8f8f8;
    border-radius: 3px;
    padding: 22px 24px;
    border-top: 3px solid #000;
}
.blog-list-box__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 4px;
    color: #000;
}
.blog-list-box__subtitle { font-size: 13px; color: #999; margin: 0 0 14px; }
.blog-list-box ul { margin: 0; padding: 0; list-style: none; }
.blog-list-box li {
    border-bottom: 1px solid #e8e8e8;
    padding: 8px 0;
    font-size: 13px;
    margin: 0;
}
.blog-list-box li:last-child { border-bottom: none; }
.blog-list-box a { color: #000; text-decoration: none; }
.blog-list-box a:hover { text-decoration: underline; }

/* ── Numbered steps ── */
.blog-step {
    display: flex;
    gap: 20px;
    margin: 28px 0;
    align-items: flex-start;
}
.blog-step__number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}
.blog-step__content { flex: 1; }
.blog-step__content h3 { margin: 4px 0 8px; font-size: 17px; font-weight: 600; }
.blog-step__content p, .blog-step__content ul { margin: 0; font-size: 15px; color: #555; line-height: 1.75; }
.blog-step__content ul { padding-left: 18px; margin-top: 8px; }
.blog-step__content li { margin-bottom: 6px; }

/* ── Callout box ── */
.blog-callout {
    background: #f5f5f5;
    border-left: 4px solid #000;
    padding: 18px 22px;
    border-radius: 0 3px 3px 0;
    margin: 28px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}
.blog-callout a { color: #000; font-weight: 600; }

/* ── Checklist ── */
.blog-checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
.blog-checklist li {
    padding: 10px 0 10px 34px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    position: relative;
    color: #333;
    line-height: 1.65;
}
.blog-checklist li:last-child { border-bottom: none; }
.blog-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 11px;
    font-size: 13px;
    color: #000;
    font-weight: 900;
    background: #e8e8e8;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 22px;
}

/* ── Deep-dive panels ── */
.blog-deep-dive {
    border: 1px solid #e4e4e4;
    border-radius: 3px;
    padding: 24px 28px;
    margin: 18px 0;
    background: #fff;
}
.blog-deep-dive h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
    color: #000;
}
.blog-deep-dive p { font-size: 15px; color: #444; line-height: 1.72; margin: 0 0 10px; }
.blog-deep-dive__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.blog-deep-dive__tag {
    background: #f0f0f0;
    border-radius: 2px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #666;
    text-transform: uppercase;
}

/* ── Comparison table ── */
.blog-comparison {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 24px 0;
    border: 1px solid #e4e4e4;
}
.blog-comparison th {
    background: #000;
    color: #fff;
    padding: 13px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.blog-comparison td {
    padding: 12px 16px;
    border-bottom: 1px solid #ebebeb;
    vertical-align: top;
    color: #333;
    line-height: 1.55;
}
.blog-comparison tr:nth-child(even) td { background: #f9f9f9; }
@media (max-width: 660px) {
    .blog-comparison, .blog-comparison thead, .blog-comparison tbody,
    .blog-comparison th, .blog-comparison td, .blog-comparison tr { display: block; }
    .blog-comparison thead tr { position: absolute; top: -9999px; left: -9999px; }
    .blog-comparison tr { border: 1px solid #ddd; margin-bottom: 10px; }
    .blog-comparison td { border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 45%; }
    .blog-comparison td::before {
        position: absolute; top: 12px; left: 12px; width: 40%;
        white-space: nowrap; font-weight: 700; font-size: 12px; color: #888;
    }
    .blog-comparison td:nth-of-type(1)::before { content: "Criteria"; }
    .blog-comparison td:nth-of-type(2)::before { content: "Natural Stone"; }
    .blog-comparison td:nth-of-type(3)::before { content: "Porcelain"; }
    .blog-comparison td:nth-of-type(4)::before { content: "Engineered"; }
}

/* ── Glossary ── */
.blog-glossary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 48px;
    margin: 28px 0;
}
@media (max-width: 580px) { .blog-glossary { grid-template-columns: 1fr; } }
.blog-glossary dt {
    font-weight: 700;
    font-size: 15px;
    color: #000;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.blog-glossary dt:first-child,
.blog-glossary dt:nth-child(3) { margin-top: 0; padding-top: 0; border-top: none; }
.blog-glossary dd {
    margin: 4px 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.65;
}

/* ── FAQ accordion ── */
.blog-faq { margin: 20px 0; border-top: 1px solid #e8e8e8; }
.blog-faq__item { border-bottom: 1px solid #e8e8e8; }
.blog-faq__question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 8px 20px 0;
    font-size: 16px;
    font-weight: 600;
    font-family: "Urbanist", sans-serif;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #000;
    gap: 16px;
    line-height: 1.35;
}
.blog-faq__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    color: #666;
}
.blog-faq__question:hover .blog-faq__icon,
.blog-faq__item.is-open .blog-faq__icon {
    border-color: #000;
    background: #000;
    color: #fff;
}
.blog-faq__icon::before { content: '+'; display: block; }
.blog-faq__item.is-open .blog-faq__icon::before { content: '−'; }
.blog-faq__answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.32s ease;
    font-size: 15px;
    line-height: 1.78;
    color: #555;
}
.blog-faq__item.is-open .blog-faq__answer { max-height: 600px; }
.blog-faq__answer-inner { padding: 0 0 22px; }
.blog-faq__answer p { margin: 0 0 10px; }
.blog-faq__answer a { color: #000; font-weight: 600; }

/* ── CTA banner ── */
.blog-cta-banner {
    background: #111;
    color: #fff;
    padding: 72px 40px;
    border-radius: 4px;
    text-align: center;
    margin-top: 64px;
}
.blog-cta-banner h2 {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #fff;
    margin: 0 0 16px;
}
.blog-cta-banner p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 36px;
    line-height: 1.6;
}
.blog-cta-banner__buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.blog-cta-btn {
    display: inline-block;
    padding: 15px 44px;
    border-radius: 35px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: "Urbanist", sans-serif;
}
.blog-cta-btn--primary {
    background: #fff;
    color: #000;
    border: 2px solid #fff;
}
.blog-cta-btn--primary:hover { background: #e4e4e4; color: #000; border-color: #e4e4e4; }
.blog-cta-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.blog-cta-btn--outline:hover { border-color: #fff; color: #fff; }

/* ── Deep-dive image thumbnail ── */
.blog-deep-dive__image {
    width: 100%;
    margin: 0 0 20px;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
}
.blog-deep-dive__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.42s ease;
}
.blog-deep-dive:hover .blog-deep-dive__image img {
    transform: scale(1.04);
}

/* ── Section image banner (wide content image) ── */
.blog-section-banner {
    width: 100%;
    margin: 24px 0 32px;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 21 / 9;
    background: #111;
}
.blog-section-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.88;
}

/* ── 3-column image mosaic ── */
.blog-image-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 28px 0 36px;
}
.blog-image-mosaic__item {
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
}
.blog-image-mosaic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
}
.blog-image-mosaic__item:hover img { transform: scale(1.06); }
.blog-image-mosaic__item figcaption {
    font-size: 11px;
    color: #888;
    padding: 6px 0 0;
    text-align: center;
}
@media (max-width: 580px) {
    .blog-image-mosaic { grid-template-columns: repeat(2, 1fr); }
    .blog-image-mosaic__item:last-child { display: none; }
}
@media (max-width: 420px) {
    .blog-image-mosaic { grid-template-columns: 1fr; }
    .blog-image-mosaic__item:last-child { display: block; }
}

/* ── Responsive: tablet ── */
@media (max-width: 768px) {
    .blog-hero { padding: 80px 20px 70px; }
    .blog-page-wrapper { padding: 40px 20px 72px; }
    .blog-toc { padding: 20px 20px 20px 18px; }
    .blog-deep-dive { padding: 20px; }
    .blog-cta-banner { padding: 52px 24px; }
    .blog-section-banner { aspect-ratio: 16 / 9; }
}
/* ── Responsive: mobile ── */
@media (max-width: 480px) {
    .blog-hero__title { letter-spacing: -0.5px; }
    .blog-cta-btn { padding: 13px 28px; }
}
/* =====================================================
   Sidebar layout — mirrors shop page categories &
   quick-menu panels (same wc-block-* class names)
   ===================================================== */

/* Two-column wrapper */
.blog-layout {
    display: flex;
    gap: 56px;
    align-items: flex-start;
}

/* Main content column */
.blog-main {
    flex: 1;
    min-width: 0;
}

/* Sidebar column */
.blog-sidebar {
    width: 270px;
    min-width: 270px;
    position: sticky;
    top: 40px;
    align-self: flex-start;
}

/* Individual widget box */
.blog-sidebar__widget {
    margin-bottom: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid #e8e8e8;
}
.blog-sidebar__widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Widget heading — matches shop footer heading style */
.blog-sidebar__title {
    font-family: "Urbanist", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 18px;
    color: #000;
}

/* Product categories list — same wc-block-* classes as shop footer */
.blog-sidebar .wc-block-product-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-sidebar .wc-block-product-categories-list-item {
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
}
.blog-sidebar .wc-block-product-categories-list-item:last-child {
    border-bottom: none;
}
.blog-sidebar .wc-block-product-categories-list-item a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}
.blog-sidebar .wc-block-product-categories-list-item a:hover {
    color: #000;
    text-decoration: underline;
}

/* Quick Menu nav — matches shop footer quick-menu */
.blog-sidebar__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-sidebar__nav li {
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
}
.blog-sidebar__nav li:last-child {
    border-bottom: none;
}
.blog-sidebar__nav a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}
.blog-sidebar__nav a:hover {
    color: #000;
    text-decoration: underline;
}

/* ── Responsive: sidebar ── */
@media (max-width: 1024px) {
    .blog-layout { gap: 36px; }
    .blog-sidebar { width: 230px; min-width: 230px; }
}

/* Stack below 860px — sidebar becomes a horizontal row of widgets */
@media (max-width: 860px) {
    .blog-layout {
        flex-direction: column;
        gap: 48px;
    }
    .blog-sidebar {
        width: 100%;
        min-width: 0;
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 28px;
    }
    .blog-sidebar__widget {
        flex: 1;
        min-width: 180px;
        border-bottom: none;
        border-right: 1px solid #e8e8e8;
        padding-bottom: 0;
        padding-right: 28px;
        margin-bottom: 0;
    }
    .blog-sidebar__widget:last-child {
        border-right: none;
        padding-right: 0;
    }
}

/* Single column on small screens */
@media (max-width: 520px) {
    .blog-sidebar {
        flex-direction: column;
    }
    .blog-sidebar__widget {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #e8e8e8;
        padding-bottom: 28px;
    }
    .blog-sidebar__widget:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}
/*   Blog Page: Mini-Cart Overrides   */
/* Make blog-page mini-cart match spacing of other pages */

/* Remove any extra top padding/margin in the drawer content */
body.blog .wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents,
body.blog .wp-block-woocommerce-filled-mini-cart-contents-block {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Normalize the mini-cart heading */
body.blog h2.wc-block-mini-cart__title {
    margin: 0 !important;
    padding: 16px 16px 12px !important;
}

/* Remove gap before the first product row */
body.blog .wc-block-mini-cart__items {
    padding-top: 0 !important;
}

body.blog .wc-block-mini-cart__items .wc-block-mini-cart__products-table .wc-block-cart-items__row:first-child {
    margin-top: 0 !important;
    padding-top: 8px !important;
}

/* Keep rows compact overall */
body.blog .wc-block-cart-items__row {
    padding: 8px 20px !important;
}

/* Ensure image sits flush with the row */
body.blog .wc-block-mini-cart__items .wc-block-cart-item__image {
    margin-top: 0 !important;
}
