/* ═══════════════════════════════════════════════════════════
   CurlRoutine – Blog Post Styles
   ═══════════════════════════════════════════════════════════ */

.blog-hero {
    background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum-medium) 100%);
    padding: 3.5rem 1.5rem;
    text-align: center;
}
.blog-hero .hero-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--lavender);
    margin-bottom: 0.75rem;
}
.blog-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--cream);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.2;
}
.blog-hero .blog-meta {
    font-size: 0.8rem;
    color: rgba(250,245,240,0.6);
    margin-top: 1rem;
}

/* Article body */
.article-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.article-body h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem;
    line-height: 1.25;
}
.article-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 0.75rem;
}
.article-body p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.article-body ul, .article-body ol {
    margin: 1rem 0 1.25rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--plum-light); text-decoration: underline; }
.article-body a:hover { color: var(--plum-dark); }
.article-body img {
    border-radius: 10px;
    margin: 1.5rem 0;
}
.blog-feature-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0.5rem 0 1.5rem;
}
.haircut-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: -0.5rem 0 0.5rem;
}

/* Product recommendation box */
.product-rec {
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.product-rec img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0;
}
.product-rec-info { flex: 1; }
.product-rec-info h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.product-rec-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.product-rec-link {
    display: inline-block;
    background: var(--plum-dark);
    color: var(--cream) !important;
    text-decoration: none !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.55rem 1.25rem;
    border-radius: 5px;
    transition: background 0.2s;
}
.product-rec-link:hover { background: var(--plum-medium); }
.product-review-inline {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--plum-light);
    text-decoration: none;
    margin-left: 0.75rem;
}
.product-review-inline:hover {
    text-decoration: underline;
}

/* Blog listing page - tighter spacing, wider grid */
.blog-hero + .section-container {
    max-width: 1400px;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Blog toolbar (chips + sort) */
.blog-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.blog-sort {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    white-space: nowrap;
}
.blog-sort label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}
.blog-sort select {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border: 1.5px solid var(--border-light);
    border-radius: 20px;
    background: var(--warm-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: auto;
}
.blog-sort select:hover,
.blog-sort select:focus {
    border-color: var(--plum-light);
    outline: none;
}

/* Blog filter chips */
.blog-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.blog-filter-chips .chip {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 20px;
    background: var(--warm-white);
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}
.blog-filter-chips .chip:hover {
    border-color: var(--plum-light);
    color: var(--plum-light);
}
.blog-filter-chips .chip.active {
    background: var(--plum-dark);
    border-color: var(--plum-dark);
    color: #fff;
}

/* Blog listing cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.blog-card {
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.blog-card:hover { box-shadow: 0 10px 30px rgba(45,27,51,0.1); }
.blog-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
}
/* Product review cards (horizontal layout) */
.product-reviews-section {
    margin-top: 2.5rem;
}
.product-reviews-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.product-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}
.product-review-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.2s;
}
.product-review-card:hover {
    box-shadow: 0 8px 24px rgba(45,27,51,0.1);
    transform: translateY(-2px);
}
.product-review-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0;
    margin: 0;
}
.product-review-card-body {
    flex: 1;
    min-width: 0;
}
.product-review-card-category {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum-light);
    margin-bottom: 0.2rem;
}
.product-review-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}
.product-review-card-excerpt {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.product-review-card-cta {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--plum-light);
    margin-top: 0.3rem;
    display: block;
}
.blog-card-body { padding: 1.25rem; }
.blog-card-category {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum-light);
    margin-bottom: 0.35rem;
}
.blog-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.blog-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.blog-card-cta { color: var(--plum-light); font-weight: 600; }

/* Callout box */
.callout {
    background: rgba(107,63,138,0.06);
    border-left: 3px solid var(--plum-light);
    padding: 1.25rem 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 1.5rem 0;
}
.callout p { margin-bottom: 0; }

/* Table of contents */
.toc {
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.toc h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    color: var(--plum-light);
}
.toc ol { margin: 0 0 0 1.25rem; }
.toc li { font-size: 0.88rem; margin-bottom: 0.4rem; }
.toc a { color: var(--text-dark); text-decoration: none; }
.toc a:hover { color: var(--plum-light); }

/* Breadcrumbs */
.breadcrumbs {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    box-sizing: border-box;
}
.breadcrumbs a {
    color: var(--plum-light);
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs .breadcrumb-sep {
    margin: 0 0.4rem;
    color: var(--text-muted);
}

/* Social sharing */
.social-share {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}
.social-share-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-right: 0.25rem;
}
.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.social-share-btn:hover {
    background: var(--plum-dark);
    color: var(--cream);
    border-color: var(--plum-dark);
}
.social-share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Related posts */
.related-posts {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}
.related-posts h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.related-post-card {
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.2s;
}
.related-post-card:hover {
    box-shadow: 0 8px 24px rgba(45,27,51,0.1);
    transform: translateY(-2px);
}
.related-post-category {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum-light);
    margin-bottom: 0.4rem;
}
.related-post-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.4rem;
}
.related-post-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Sticky product bar */
.sticky-product-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--plum-dark);
    border-top: 1px solid rgba(201,168,232,0.2);
    box-shadow: 0 -4px 20px rgba(45,27,51,0.3);
    transform: translateY(100%);
    transition: transform 0.15s ease;
}
.sticky-product-bar.visible {
    transform: translateY(0);
}
.sticky-product-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.sticky-product-name {
    color: var(--cream);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sticky-product-cta {
    flex-shrink: 0;
    background: #e8b4b8;
    color: #2d1b33 !important;
    text-decoration: none !important;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    transition: background 0.2s;
}
.sticky-product-cta:hover {
    background: #faf5f0;
}

/* Comparison table */
.comparison-table-wrap {
    margin: 2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.comparison-table thead {
    background: var(--plum-dark);
    color: var(--cream);
}
.comparison-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.comparison-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.comparison-table tbody tr {
    background: var(--warm-white);
    transition: background 0.2s;
}
.comparison-table tbody tr:hover {
    background: rgba(107,63,138,0.04);
}
.comparison-table .table-product-name {
    font-weight: 600;
    color: var(--text-dark);
}
.comparison-table .table-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.4rem;
}
.table-badge-best {
    background: var(--plum-light);
    color: var(--cream);
}
.table-badge-value {
    background: var(--rose);
    color: var(--plum-dark);
}
.comparison-table .table-buy-btn {
    display: inline-block;
    background: var(--plum-dark);
    color: var(--cream) !important;
    text-decoration: none !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: nowrap;
}
.comparison-table .table-buy-btn:hover {
    background: var(--plum-medium);
}

@media (max-width: 600px) {
    .product-rec { flex-direction: column; text-align: center; }
    .product-rec img { width: 100px; height: 100px; }
    .blog-toolbar { flex-direction: column; }
    .blog-sort { align-self: flex-start; }
    .blog-grid { grid-template-columns: 1fr; }
    .related-posts-grid { grid-template-columns: 1fr; }
    .social-share { flex-wrap: wrap; }
    .sticky-product-inner { padding: 0.6rem 1rem; }
    .sticky-product-name { font-size: 0.78rem; }
    .comparison-table { font-size: 0.78rem; }
    .comparison-table th, .comparison-table td { padding: 0.6rem 0.75rem; }
}
