/* Storefront blog listing + detail + shared section headers */

html,
body.storefront-blogs {
    max-width: 100%;
    overflow-x: hidden;
}

body.storefront-blogs #top-header {
    background: linear-gradient(90deg, #171a24 0%, #11141d 100%);
    min-height: 46px;
}

body.storefront-blogs .locale-pill {
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 40px;
    padding: 5px 9px;
    margin-left: 4px;
    color: #e5e7eb;
    text-decoration: none;
}

body.storefront-blogs .locale-pill.active,
body.storefront-blogs .locale-pill:hover {
    border-color: #d10024;
    background: #d10024;
    color: #fff;
}

body.storefront-blogs .header-logo .logo img {
    max-width: 220px;
    max-height: 72px;
    object-fit: contain;
}

/* Section header — matches Top Selling (first word red underline) */
.sf-content-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

body.storefront-home .sf-content-section-head .title,
body.storefront-blogs .sf-content-section-head .title {
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    color: var(--sf-text, #1e293b);
    margin: 0;
    text-transform: uppercase;
    line-height: 1.2;
}

.sf-content-section-head .title-first {
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}

.sf-content-section-head .title-first::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--sf-accent, #d10024), #ff4d5e);
}

.sf-content-section-head:has(.sf-section-kicker) .title-first::after {
    width: 100%;
}

.sf-content-section-head:has(.sf-section-kicker) .title {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.sf-content-section-head:has(.sf-section-kicker) .title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--sf-accent, #d10024), #ff4d5e);
}

.sf-content-section-head:has(.sf-section-kicker) .title-first::after {
    display: none;
}

.sf-content-section-head .title-rest {
    font-weight: 700;
}

.sf-section-view-all {
    font-family: 'Plus Jakarta Sans', Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sf-text, #1e293b);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: #fff;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.sf-section-view-all:hover {
    color: var(--sf-accent, #d10024);
    border-color: rgba(209, 0, 36, 0.35);
    box-shadow: 0 6px 20px rgba(209, 0, 36, 0.1);
    text-decoration: none;
}

@media (max-width: 767px) {
    .sf-content-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .sf-section-view-all {
        width: 100%;
        justify-content: center;
    }
}

.sf-blog-page {
    padding: 36px 0 56px;
    background: var(--sf-bg-page, #f4f6f9);
}

body.storefront-blogs #footer.sf-site-footer {
    margin-top: 0;
}

body.storefront-blogs .sf-blog-detail {
    padding-bottom: 48px;
}

.sf-blog-empty {
    color: #64748b;
    margin-bottom: 20px;
}

/* Blog detail */
.sf-blog-detail {
    padding: 32px 0 64px;
    background: #fff;
}

.sf-blog-breadcrumb {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.sf-blog-breadcrumb a {
    color: var(--sf-accent, #d10024);
    text-decoration: none;
}

.sf-blog-breadcrumb a:hover {
    text-decoration: underline;
}

.sf-blog-detail__hero {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    background: #f1f5f9;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.sf-blog-detail__hero img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.sf-blog-detail__head h1 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.sf-blog-detail__excerpt {
    font-size: 17px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px;
}

.sf-blog-detail__body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    max-width: 760px;
}

.sf-blog-detail__external {
    margin-top: 28px;
}

.sf-blog-detail__back {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.sf-blog-related {
    margin-top: 48px;
    padding-top: 8px;
}
