.category-archive-layout {
    gap: 36px;
}

.product-category-detail-layout {
    gap: 28px;
}

.category-child-section + .category-post-section {
    margin-top: 40px;
}

.category-archive-hero {
    position: relative;
    overflow: hidden;
    max-width: 860px;
    padding: 32px;
    border: 1px solid rgba(16, 38, 58, 0.08);
    border-radius: 24px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        rgba(243, 247, 251, 0.98)
    );
    box-shadow: 0 20px 34px rgba(7, 19, 29, 0.06);
}

.category-archive-hero.has-cover-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(6, 18, 28, 0.84), rgba(6, 18, 28, 0.36)),
        var(--category-cover-image) center / cover no-repeat;
}

.category-archive-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.category-archive-hero.has-cover-image .eyebrow,
.category-archive-hero.has-cover-image h1,
.category-archive-hero.has-cover-image .category-archive-description {
    color: #fff;
}

.category-archive-description {
    color: #3a4653;
    line-height: 1.8;
}

.category-section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.category-section-head h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.category-section-head p {
    margin: 0;
    color: #566271;
}

.category-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.category-post-card,
.category-empty-state {
    padding: 24px;
    border: 1px solid rgba(16, 38, 58, 0.12);
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        rgba(245, 248, 252, 0.98)
    );
    box-shadow: 0 16px 32px rgba(7, 19, 29, 0.06);
}

.category-post-card {
    display: grid;
    gap: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.category-post-card-link {
    display: grid;
    align-content: start;
    gap: 22px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 40px;
}

.category-post-card-link:hover {
    color: inherit;
}

.category-post-card-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
    background: #f1f1f1;
}

.category-post-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-post-card-media.is-fallback {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(0, 136, 204, 0.24),
            rgba(0, 136, 204, 0) 42%
        ),
        radial-gradient(
            circle at 14% 84%,
            rgba(8, 32, 56, 0.2),
            rgba(8, 32, 56, 0) 46%
        ),
        linear-gradient(135deg, #eef3f8 0%, #e2e9f1 52%, #f5f8fb 100%);
}

.category-post-card-media.is-fallback::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0) 48%
    );
}

.category-post-card h2 {
    margin: 0;
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    line-height: 1.25;
}

.category-post-card-highlights {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #4c5967;
    line-height: 1.5;
}

.category-post-card-highlights li {
    position: relative;
    padding-left: 14px;
}

.category-post-card-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    transform: translateY(-50%);
}

.category-post-card p {
    margin: 0;
    color: #4c5967;
    line-height: 1.7;
}

.category-post-card .card-label {
    margin-bottom: 10px;
}

.product-category-detail-layout .category-section-head {
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 720px) {
    .category-child-section + .category-post-section {
        margin-top: 28px;
    }

    .category-post-grid {
        grid-template-columns: 1fr;
    }

    .category-empty-state {
        padding: 20px;
    }
}
