/* ============================================================
   Healey Packaging — Blog & Products CSS  (v2 — refined)
   File: assets/css/healey-blog-products.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --hp-primary:  #5a9fe0;
    --hp-primary-h:#4a8fd0;
    --hp-navy:     #002f5f;
    --hp-dark:     #1f2937;
    --hp-muted:    #6b7280;
    --hp-light:    #f6f8fb;
    --hp-border:   #e5e7eb;
    --hp-white:    #ffffff;
    --hp-radius:   10px;
    --hp-shadow:   0 2px 12px rgba(0,0,0,.07);
    --hp-shadow-h: 0 6px 28px rgba(0,0,0,.12);
}

/* ── Reset helpers ──────────────────────────────────────────── */
.hp-wrap, .hp-hero, .hp-filters-wrap, .hp-topics-section,
.hp-explore-section, .hp-feat-cats-section {
    box-sizing: border-box;
}
.hp-wrap *, .hp-wrap *::before, .hp-wrap *::after { box-sizing: inherit; }

/* Remove Astra's archive spacing before the custom blog category hero. */
body.category #primary.hp-blog-category-main {
    margin: 0;
    padding: 0;
}

/* ============================================================
   HERO BANNER — Light Blue Gradient
   ============================================================ */
.hp-hero {
    position: relative;
    background: linear-gradient(135deg, #dcecfa 0%, #e9f2fb 100%);
    padding: 64px 24px 56px;
    overflow: hidden;
}
/* Two-column hero (with optional right image) */
.hp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hp-hero-text { flex: 1; min-width: 0; }
.hp-hero-image {
    flex-shrink: 0;
    width: 420px;
    max-width: 40%;
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow-h);
    display: none; /* show via inline style if image exists */
}
.hp-hero-image img { width: 100%; height: auto; display: block; }

/* Centred hero variant (no right image) */
.hp-hero-inner.hp-hero-centered {
    flex-direction: column;
    text-align: center;
    max-width: 760px;
}
.hp-hero h1 {
    color: var(--hp-dark);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.15;
}
.hp-hero h1 span { color: var(--hp-primary); }
.hp-hero p {
    color: var(--hp-muted);
    font-size: 1.05rem;
    margin: 0 0 28px;
    line-height: 1.7;
    max-width: 580px;
}
.hp-hero-centered p { margin-left: auto; margin-right: auto; }

/* Breadcrumb — dark text for light hero */
.hp-breadcrumb {
    font-size: .84rem;
    color: var(--hp-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}
.hp-breadcrumb a {
    color: var(--hp-primary);
    text-decoration: none;
    transition: color .2s;
}
.hp-breadcrumb a:hover { color: var(--hp-navy); }
.hp-breadcrumb .sep { margin: 0 5px; color: var(--hp-border); }
.hp-breadcrumb .current { color: var(--hp-dark); font-weight: 600; }

/* ── Hero search ────────────────────────────────────────────── */
.hp-hero-search {
    display: flex;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(90,159,224,.2);
    border: 1.5px solid var(--hp-border);
}
.hp-hero-centered .hp-hero-search { margin: 0 auto; }
.hp-hero-search input[type="search"] {
    flex: 1;
    padding: 13px 18px;
    border: none;
    font-size: .97rem;
    outline: none;
    color: var(--hp-dark);
    background: var(--hp-white);
}
.hp-hero-search button {
    padding: 13px 22px;
    background: var(--hp-primary);
    color: var(--hp-white);
    border: none;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.hp-hero-search button:hover { background: var(--hp-primary-h); }

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.hp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   CATEGORY FILTER BAR
   ============================================================ */
.hp-filters-wrap {
    background: var(--hp-white);
    border-bottom: 1px solid var(--hp-border);
    padding: 14px 24px;
    position: static;
}
.hp-filters {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hp-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--hp-border);
    color: var(--hp-dark);
    background: var(--hp-white);
    transition: all .2s;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}
.hp-filter-btn:hover {
    border-color: var(--hp-primary);
    color: var(--hp-primary);
}
.hp-filter-btn.active {
    background: var(--hp-primary);
    border-color: var(--hp-primary);
    color: var(--hp-white);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.hp-section { padding: 52px 0; }
.hp-section-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--hp-dark);
    margin: 0 0 26px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--hp-primary);
    display: inline-block;
}
.hp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    gap: 12px;
}
.hp-section-header .hp-section-title { margin: 0; }

/* ============================================================
   FEATURED ARTICLE CARD
   ============================================================ */
.hp-featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow-h);
    background: var(--hp-white);
    border: 1px solid var(--hp-border);
}
.hp-featured-img {
    position: relative;
    overflow: hidden;
    min-height: 340px;
}
.hp-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.hp-featured-card:hover .hp-featured-img img { transform: scale(1.04); }
.hp-featured-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 340px;
    background: linear-gradient(135deg, #dcecfa, #c6ddf5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(90,159,224,.3);
    font-size: 4rem;
}
.hp-featured-body {
    padding: 40px 38px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}
.hp-featured-body .hp-cat-badge { margin-bottom: 16px; }
.hp-featured-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hp-dark);
    margin: 0 0 14px;
    line-height: 1.25;
}
.hp-featured-body h2 a { color: inherit; text-decoration: none; transition: color .2s; }
.hp-featured-body h2 a:hover { color: var(--hp-primary); }
.hp-featured-body p {
    color: var(--hp-muted);
    line-height: 1.7;
    margin: 0 0 20px;
    font-size: .96rem;
}
.hp-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: .81rem;
    color: var(--hp-muted);
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.hp-meta span { display: flex; align-items: center; gap: 4px; }
.hp-meta .sep-dot::before { content: '·'; margin-right: 4px; }

/* ============================================================
   BLOG CARDS GRID
   ============================================================ */
.hp-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.hp-card {
    background: var(--hp-white);
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
    border: 1px solid var(--hp-border);
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}
.hp-card:hover {
    box-shadow: var(--hp-shadow-h);
    transform: translateY(-3px);
}
.hp-card-img {
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
    background: var(--hp-light);
}
.hp-card-img a { display: block; height: 100%; }
.hp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.hp-card:hover .hp-card-img img { transform: scale(1.05); }
.hp-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #dcecfa, #e9f2fb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a8c8e8;
    font-size: 2.5rem;
}
.hp-card-body {
    padding: 20px 20px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hp-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hp-dark);
    margin: 10px 0 10px;
    line-height: 1.4;
}
.hp-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.hp-card-body h3 a:hover { color: var(--hp-primary); }
.hp-card-body p {
    color: var(--hp-muted);
    font-size: .88rem;
    line-height: 1.65;
    margin: 0 0 0;
    flex: 1;
    /* clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--hp-border);
}

/* ============================================================
   CATEGORY BADGE
   ============================================================ */
.hp-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(90,159,224,.12);
    color: var(--hp-primary);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.hp-cat-badge:hover {
    background: var(--hp-primary);
    color: var(--hp-white);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    line-height: 1;
    white-space: nowrap;
}
.hp-btn:hover { transform: translateY(-1px); }

.hp-btn-primary {
    background: var(--hp-primary);
    color: var(--hp-white);
    box-shadow: 0 2px 12px rgba(90,159,224,.3);
}
.hp-btn-primary:hover {
    background: var(--hp-primary-h);
    color: var(--hp-white);
    box-shadow: 0 4px 20px rgba(90,159,224,.4);
}
.hp-btn-navy {
    background: var(--hp-navy);
    color: var(--hp-white);
}
.hp-btn-navy:hover { background: #001f45; color: var(--hp-white); }

.hp-btn-outline {
    background: transparent;
    color: var(--hp-primary);
    border: 2px solid var(--hp-primary);
}
.hp-btn-outline:hover {
    background: var(--hp-primary);
    color: var(--hp-white);
}
.hp-btn-outline-dark {
    background: transparent;
    color: var(--hp-dark);
    border: 2px solid var(--hp-border);
}
.hp-btn-outline-dark:hover {
    border-color: var(--hp-primary);
    color: var(--hp-primary);
}
.hp-btn-sm { padding: 8px 16px; font-size: .83rem; }

.hp-read-more {
    font-size: .84rem;
    font-weight: 700;
    color: var(--hp-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
    white-space: nowrap;
}
.hp-read-more::after { content: '→'; font-size: .9em; }
.hp-read-more:hover { color: var(--hp-navy); }

/* ============================================================
   POPULAR TOPICS
   ============================================================ */
.hp-topics-section { background: var(--hp-light); }
.hp-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 14px;
}
.hp-topic-card {
    background: var(--hp-white);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--hp-dark);
    font-weight: 600;
    font-size: .88rem;
    transition: all .2s;
    box-shadow: var(--hp-shadow);
}
.hp-topic-card:hover {
    border-color: var(--hp-primary);
    color: var(--hp-primary);
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-h);
}
.hp-topic-count {
    background: var(--hp-light);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: .76rem;
    color: var(--hp-muted);
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 8px;
}

/* ============================================================
   PAGE CONTENT (backend editor content block)
   ============================================================ */
.hp-page-content {
    padding: 44px 0 0;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--hp-dark);
}
.hp-page-content p { margin: 0 0 1.2em; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.hp-faq-section { padding: 48px 0 0; }
.hp-faq-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--hp-dark);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--hp-primary);
    display: inline-block;
}
.hp-faq { margin: 0; padding: 0; list-style: none; }
.hp-faq-item {
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--hp-white);
    transition: box-shadow .2s;
}
.hp-faq-item.open { box-shadow: var(--hp-shadow); }
.hp-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-weight: 700;
    font-size: .96rem;
    color: var(--hp-dark);
    cursor: pointer;
    background: var(--hp-white);
    transition: background .15s, color .15s;
    user-select: none;
    gap: 14px;
    border: none;
    width: 100%;
    text-align: left;
}
.hp-faq-q:hover { background: #f0f7ff; color: var(--hp-primary); }
.hp-faq-item.open .hp-faq-q { color: var(--hp-primary); background: #f0f7ff; }
.hp-faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hp-primary);
    color: var(--hp-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 400;
    flex-shrink: 0;
    transition: transform .3s, background .2s;
    line-height: 1;
}
.hp-faq-item.open .hp-faq-icon { transform: rotate(45deg); }
.hp-faq-a {
    display: none;
    padding: 4px 20px 18px;
    font-size: .93rem;
    color: var(--hp-muted);
    line-height: 1.75;
}
.hp-faq-a a { color: var(--hp-primary); }
.hp-faq-item.open .hp-faq-a { display: block; }

/* ============================================================
   ALL PRODUCTS PAGE
   ============================================================ */
.hp-products-layout {
    display: grid;
    grid-template-columns: 248px 1fr;
    gap: 36px;
    padding: 48px 0 64px;
    align-items: start;
}

/* Filter Sidebar */
.hp-filter-sidebar {
    background: var(--hp-white);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
    position: sticky;
    top: 20px;
}
.hp-filter-sidebar-title {
    background: var(--hp-navy);
    color: var(--hp-white);
    font-size: .88rem;
    font-weight: 700;
    padding: 13px 18px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.hp-filter-group {
    border-bottom: 1px solid var(--hp-border);
    padding: 16px 18px;
}
.hp-filter-group:last-of-type { border-bottom: none; }
.hp-filter-group-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--hp-navy);
    margin: 0 0 12px;
}
.hp-filter-list { list-style: none; margin: 0; padding: 0; }
.hp-filter-list li { margin-bottom: 9px; }
.hp-filter-list li:last-child { margin-bottom: 0; }
.hp-filter-list label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .88rem;
    color: var(--hp-dark);
    cursor: pointer;
    font-weight: 500;
    line-height: 1.3;
}
.hp-filter-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--hp-primary);
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 3px;
}
.hp-filter-list .fc {
    color: var(--hp-muted);
    font-size: .78rem;
    margin-left: auto;
    flex-shrink: 0;
}
.hp-filter-apply {
    padding: 14px 18px;
    display: flex;
    gap: 8px;
}
.hp-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 18px;
    background: var(--hp-primary);
    color: var(--hp-white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    margin-bottom: 14px;
    text-align: center;
    transition: background .2s;
}
.hp-filter-toggle:hover { background: var(--hp-primary-h); }

/* Products toolbar */
.hp-products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hp-border);
}
.hp-product-count { font-size: .9rem; color: var(--hp-muted); }
.hp-product-count strong { color: var(--hp-dark); font-weight: 700; }
.hp-products-sort select {
    padding: 9px 36px 9px 12px;
    border: 1.5px solid var(--hp-border);
    border-radius: 8px;
    font-size: .88rem;
    color: var(--hp-dark);
    background: var(--hp-white);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color .2s;
}
.hp-products-sort select:focus { border-color: var(--hp-primary); outline: none; }

/* Products search in hero */
.hp-products-search { display: flex; max-width: 480px; }
.hp-products-search input[type="search"] {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid var(--hp-border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: .92rem;
    color: var(--hp-dark);
    outline: none;
    background: var(--hp-white);
    transition: border-color .2s;
}
.hp-products-search input:focus { border-color: var(--hp-primary); }
.hp-products-search button {
    padding: 11px 18px;
    background: var(--hp-primary);
    color: var(--hp-white);
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    cursor: pointer;
    font-size: .9rem;
    transition: background .2s;
    white-space: nowrap;
}
.hp-products-search button:hover { background: var(--hp-primary-h); }

/* Featured categories row */
.hp-feat-cats-section {
    background: var(--hp-white);
    padding: 28px 0;
    border-bottom: 1px solid var(--hp-border);
}
.hp-feat-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 12px;
}
.hp-feat-cat-card {
    background: var(--hp-light);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 18px 10px 14px;
    text-align: center;
    text-decoration: none;
    color: var(--hp-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all .22s;
}
.hp-feat-cat-card:hover {
    border-color: var(--hp-primary);
    color: var(--hp-primary);
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-h);
    background: var(--hp-white);
}
.hp-feat-cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(90,159,224,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--hp-primary);
}
.hp-feat-cat-card span { font-size: .82rem; font-weight: 700; line-height: 1.25; }

/* Product grid */
.hp-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* ── Product Card ────────────────────────────────────────── */
.hp-product-card {
    background: var(--hp-white);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}
.hp-product-card:hover { box-shadow: var(--hp-shadow-h); transform: translateY(-3px); }

/* Image area — object-fit: contain, centered, white bg */
.hp-product-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hp-white);
    border-bottom: 1px solid var(--hp-border);
    overflow: hidden;
    flex-shrink: 0;
    padding: 12px;
}
.hp-product-img a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.hp-product-img img {
    max-width: 100%;
    max-height: 196px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform .4s ease;
}
.hp-product-card:hover .hp-product-img img { transform: scale(1.04); }
.hp-product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c6ddf5;
    font-size: 3rem;
}

.hp-product-body {
    padding: 14px 16px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hp-product-cat-badge { margin-bottom: 6px; }
.hp-product-body h3 {
    font-size: .94rem;
    font-weight: 700;
    color: var(--hp-dark);
    margin: 6px 0 8px;
    line-height: 1.35;
}
.hp-product-body h3 a { color: inherit; text-decoration: none; transition: color .2s; }
.hp-product-body h3 a:hover { color: var(--hp-primary); }
.hp-product-excerpt {
    color: var(--hp-muted);
    font-size: .83rem;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 14px;
}

/* Buttons always at bottom of card */
.hp-product-actions {
    display: flex;
    gap: 8px;
    padding: 12px 0 14px;
    border-top: 1px solid var(--hp-border);
    margin-top: auto;
}
.hp-product-actions .hp-btn {
    flex: 1;
    padding: 9px 8px;
    font-size: .81rem;
    border-radius: 7px;
}

/* Trust icons */
.hp-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 32px 0 8px;
}
.hp-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--hp-white);
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    padding: 11px 18px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--hp-dark);
    box-shadow: var(--hp-shadow);
    white-space: nowrap;
}
.hp-trust-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(90,159,224,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hp-primary);
    font-size: .95rem;
    flex-shrink: 0;
    font-weight: 700;
}

/* ============================================================
   SINGLE BLOG POST
   ============================================================ */
.hp-single-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 48px 0 60px;
    align-items: start;
}
.hp-single-header { margin-bottom: 24px; }
.hp-single-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--hp-dark);
    margin: 14px 0 18px;
    line-height: 1.22;
}
.hp-single-thumb {
    border-radius: var(--hp-radius);
    overflow: hidden;
    margin-bottom: 34px;
    box-shadow: var(--hp-shadow);
}
.hp-single-thumb img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 460px;
    object-fit: cover;
}

/* Article content styles */
.hp-entry-content { font-size: 1.01rem; line-height: 1.82; color: var(--hp-dark); }
.hp-entry-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--hp-navy);
    margin: 2em 0 .65em;
    padding-top: .6em;
}
.hp-entry-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hp-dark);
    margin: 1.7em 0 .55em;
}
.hp-entry-content p { margin: 0 0 1.25em; }
.hp-entry-content ul, .hp-entry-content ol {
    margin: 0 0 1.3em 1.5em;
    line-height: 1.9;
}
.hp-entry-content blockquote {
    border-left: 4px solid var(--hp-primary);
    margin: 1.6em 0;
    padding: 14px 22px;
    background: #f0f7ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--hp-muted);
}
.hp-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: .93rem;
}
.hp-entry-content th {
    background: var(--hp-navy);
    color: var(--hp-white);
    padding: 10px 14px;
    text-align: left;
    font-size: .88rem;
}
.hp-entry-content td {
    border: 1px solid var(--hp-border);
    padding: 9px 14px;
}
.hp-entry-content tr:nth-child(even) td { background: var(--hp-light); }
.hp-entry-content a { color: var(--hp-primary); text-decoration: underline; }
.hp-entry-content a:hover { color: var(--hp-navy); }
.hp-entry-content img { max-width: 100%; height: auto; border-radius: 6px; }

/* Sidebar */
.hp-sidebar { display: flex; flex-direction: column; gap: 24px; }
.hp-sidebar-box {
    background: var(--hp-white);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
}
.hp-sidebar-box-title {
    background: var(--hp-navy);
    color: var(--hp-white);
    font-size: .82rem;
    font-weight: 700;
    padding: 12px 18px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.hp-sidebar-box-body { padding: 16px 18px; }

/* TOC */
.hp-toc { list-style: none; margin: 0; padding: 0; }
.hp-toc li { border-bottom: 1px solid var(--hp-border); }
.hp-toc li:last-child { border-bottom: none; }
.hp-toc a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 0;
    color: var(--hp-dark);
    font-size: .86rem;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.35;
    transition: color .2s;
}
.hp-toc a:hover { color: var(--hp-primary); }
.hp-toc a::before {
    content: '#';
    color: var(--hp-primary);
    font-size: .78rem;
    flex-shrink: 0;
    margin-top: 1px;
    font-weight: 700;
}
.hp-toc-sub a { padding-left: 16px; color: var(--hp-muted); font-size: .83rem; }
.hp-toc-sub a::before { content: '–'; }

/* Sidebar products */
.hp-sidebar-products { display: flex; flex-direction: column; gap: 0; }
.hp-sidebar-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--hp-border);
    text-decoration: none;
    color: var(--hp-dark);
    transition: color .2s;
}
.hp-sidebar-product:last-child { border-bottom: none; }
.hp-sidebar-product:hover { color: var(--hp-primary); }
.hp-sidebar-product img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: var(--hp-light);
    border-radius: 6px;
    border: 1px solid var(--hp-border);
    flex-shrink: 0;
    padding: 4px;
}
.hp-sidebar-product-name { font-size: .86rem; font-weight: 600; line-height: 1.3; }

/* Sidebar quote CTA */
.hp-sidebar-cta {
    background: linear-gradient(135deg, var(--hp-primary) 0%, #3a7fc4 100%);
    border-radius: var(--hp-radius);
    padding: 24px 20px;
    text-align: center;
}
.hp-sidebar-cta h4 {
    color: var(--hp-white);
    font-size: .98rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}
.hp-sidebar-cta p {
    color: rgba(255,255,255,.82);
    font-size: .84rem;
    margin: 0 0 16px;
    line-height: 1.5;
}
.hp-sidebar-cta .hp-btn { background: var(--hp-white); color: var(--hp-primary); font-weight: 700; }
.hp-sidebar-cta .hp-btn:hover { background: #f0f7ff; }

/* Related articles mini in sidebar */
.hp-related-mini { display: flex; flex-direction: column; gap: 0; }
.hp-related-mini-item {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid var(--hp-border);
    text-decoration: none;
    color: var(--hp-dark);
    transition: color .2s;
}
.hp-related-mini-item:last-child { border-bottom: none; }
.hp-related-mini-item:hover { color: var(--hp-primary); }
.hp-related-mini-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid var(--hp-border);
}
.hp-rmi-img-placeholder {
    width: 60px;
    height: 60px;
    background: var(--hp-light);
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid var(--hp-border);
}
.hp-rmi-text { font-size: .84rem; font-weight: 600; line-height: 1.35; }
.hp-rmi-date { font-size: .76rem; color: var(--hp-muted); margin-top: 4px; }

/* Related articles bottom grid */
.hp-related-section { padding: 44px 0 0; border-top: 2px solid var(--hp-border); }
.hp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ============================================================
   CATEGORY PAGE — EXPLORE SECTION
   ============================================================ */
.hp-explore-section { background: var(--hp-light); padding: 48px 0; }
.hp-explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 16px;
}
.hp-explore-card {
    background: var(--hp-white);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 22px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--hp-dark);
    box-shadow: var(--hp-shadow);
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.hp-explore-card:hover {
    border-color: var(--hp-primary);
    color: var(--hp-primary);
    transform: translateY(-3px);
    box-shadow: var(--hp-shadow-h);
}
.hp-explore-card h4 { font-size: .95rem; font-weight: 700; margin: 4px 0 4px; }
.hp-explore-card p { font-size: .8rem; color: var(--hp-muted); margin: 0; }

/* Guide card */
/* Blog category archive: posts and artwork guide. */
.hp-blog-category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 40px;
    padding: 48px 0 0;
    align-items: start;
}
.hp-blog-category-posts,
.hp-blog-category-posts .hp-card,
.hp-blog-category-guide { min-width: 0; }
.hp-blog-category-guide {
    position: sticky;
    top: 24px;
}
.hp-blog-category-guide .hp-btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}
.hp-guide-card {
    background: linear-gradient(135deg, var(--hp-primary) 0%, #3a7fc4 100%);
    border-radius: var(--hp-radius);
    padding: 28px 24px;
    color: var(--hp-white);
}
.hp-guide-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px; color: var(--hp-white); }
.hp-guide-card p { font-size: .88rem; color: rgba(255,255,255,.82); margin: 0 0 18px; line-height: 1.6; }
.hp-guide-card .hp-btn { background: var(--hp-white); color: var(--hp-primary); font-weight: 700; }
.hp-guide-card .hp-btn:hover { background: #f0f7ff; }

/* WooCommerce inactive notice */
.hp-woo-notice {
    text-align: center;
    padding: 80px 24px;
    color: var(--hp-muted);
}
.hp-woo-notice h3 { font-size: 1.3rem; color: var(--hp-dark); margin-bottom: 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .hp-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .hp-blog-category-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hp-blog-category-guide { position: static; }
    .hp-featured-card { grid-template-columns: 1fr; }
    .hp-featured-img { min-height: 260px; }
    .hp-single-wrap { grid-template-columns: 1fr; gap: 36px; }
    .hp-sidebar { margin-top: 0; }
    .hp-products-layout { grid-template-columns: 1fr; }
    .hp-filter-sidebar { position: static; }
    .hp-filter-toggle { display: block; }
    .hp-filter-sidebar { display: none; }
    .hp-filter-sidebar.hp-filter-sidebar--open { display: block; }
    .hp-products-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-related-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-hero-inner { flex-direction: column; text-align: center; }
    .hp-hero-image { display: none !important; }
    .hp-hero-centered { align-items: center; }
}
@media (max-width: 640px) {
    .hp-blog-category-main .hp-hero nav.hp-site-breadcrumb {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .hp-blog-category-main .hp-hero nav.hp-site-breadcrumb ol {
        justify-content: center;
    }
    #hp-blog-filters .hp-filters,
    .hp-blog-category-main .hp-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }
    #hp-blog-filters .hp-filter-btn,
    .hp-blog-category-main .hp-filter-btn {
        justify-content: center;
        min-width: 0;
        min-height: 44px;
        padding: 8px 10px;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.4;
        text-align: center;
    }
    .hp-hero { padding: 44px 18px 38px; }
    .hp-cards-grid { grid-template-columns: 1fr; }
    .hp-products-grid { grid-template-columns: 1fr; }
    .hp-related-grid { grid-template-columns: 1fr; }
    .hp-feat-cats-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-topics-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-trust-row { flex-direction: column; align-items: stretch; }
    .hp-trust-item { justify-content: center; }
    .hp-section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hp-products-toolbar { flex-direction: column; align-items: stretch; }
    .hp-products-sort select { width: 100%; }
    .hp-featured-body { padding: 26px 24px 24px; }
    .hp-product-actions { flex-direction: column; }
    .hp-product-actions .hp-btn { flex: none; width: 100%; }
}
