.community-marketplace {
    --community-ink: #172b3a;
    --community-muted: #607180;
    --community-line: #e3e9ed;
    --community-orange: #e77a26;
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px 20px 56px;
    color: var(--community-ink);
}

.community-marketplace .community-hero {
    position: relative;
    display: flex;
    min-height: 300px;
    align-items: center;
    overflow: hidden;
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid #e2ebf0;
    border-radius: 22px;
    background: linear-gradient(115deg, #edf7fb, #f9f2e8);
}

.community-marketplace .community-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.community-marketplace .community-eyebrow {
    color: #a96516;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.community-marketplace .community-hero h1 {
    margin: .65rem 0;
    color: #183445;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.community-marketplace .community-hero p,
.community-marketplace .community-section-heading p {
    color: var(--community-muted);
    line-height: 1.65;
}

.community-marketplace .community-primary-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: .65rem;
    margin-top: .6rem;
    padding: .7rem 1rem;
    border-radius: 8px;
    background: var(--community-orange);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.community-marketplace .community-hero-art {
    position: absolute;
    right: 8%;
    display: grid;
    width: 220px;
    height: 220px;
    place-items: center;
    border: 1px solid rgb(23 43 58 / 10%);
    border-radius: 50%;
    background: rgb(255 255 255 / 45%);
    color: #d67c25;
    font-size: 6rem;
}

.community-marketplace .community-section {
    padding-top: 48px;
}

.community-marketplace .community-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.community-marketplace .community-section-heading h2 {
    margin: .25rem 0;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 800;
}

.community-marketplace .community-section-heading p {
    margin: 0;
}

.community-marketplace .community-section-heading > a,
.community-marketplace .community-showroom-info > a {
    color: #a96516;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.community-marketplace .community-category-grid,
.community-marketplace .community-showroom-grid,
.community-marketplace .community-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 16px;
}

.community-marketplace .community-listing-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border: 1px solid var(--community-line);
    border-radius: 13px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 7px 22px rgb(31 45 54 / 5%);
    transition: transform .18s ease, box-shadow .18s ease;
}

.community-marketplace .community-listing-card:hover,
.community-marketplace .community-listing-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgb(31 45 54 / 10%);
}

.community-marketplace .community-listing-image {
    display: grid;
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    overflow: hidden;
    place-items: center;
    border-radius: 10px;
    background: #f1f5f7;
    color: var(--community-orange);
    font-size: 1.5rem;
}

.community-marketplace .community-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-marketplace .community-listing-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.community-marketplace .community-listing-copy strong,
.community-marketplace .community-listing-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-marketplace .community-listing-copy strong { font-size: .95rem; }
.community-marketplace .community-listing-copy span { color: var(--community-muted); font-size: .85rem; }
.community-marketplace .community-listing-copy small { color: #a96516; }

.community-marketplace .community-category-card,
.community-marketplace .community-showroom-card {
    overflow: hidden;
    border: 1px solid var(--community-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 22px rgb(31 45 54 / 5%);
}

.community-marketplace .community-category-card {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 14px;
    padding: 14px;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.community-marketplace .community-category-card:hover,
.community-marketplace .community-category-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgb(31 45 54 / 10%);
}

.community-marketplace .community-category-image {
    display: grid;
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    background: #f3f7f8;
    color: var(--community-orange);
    font-size: 1.5rem;
}

.community-marketplace .community-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-marketplace .community-category-name {
    flex: 1;
    font-weight: 700;
}

.community-marketplace .community-card-arrow {
    color: #a96516;
}

.community-marketplace .community-showroom-card {
    display: flex;
    min-height: 150px;
}

.community-marketplace .community-showroom-cover {
    display: grid;
    flex: 0 0 38%;
    min-height: 150px;
    overflow: hidden;
    place-items: center;
    background: #edf3f5;
    color: var(--community-orange);
    font-size: 2rem;
}

.community-marketplace .community-showroom-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-marketplace .community-showroom-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
}

.community-marketplace .community-showroom-info h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
}

.community-marketplace .community-showroom-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--community-muted);
    font-size: .85rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.community-marketplace .community-empty {
    padding: 18px;
    border: 1px dashed #cbd7de;
    border-radius: 10px;
    color: var(--community-muted);
}

@media (max-width: 640px) {
    .community-marketplace {
        padding: 16px 14px 40px;
    }

    .community-marketplace .community-hero-art {
        right: -45px;
        width: 150px;
        height: 150px;
        opacity: .3;
        font-size: 4rem;
    }

    .community-marketplace .community-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .community-marketplace .community-showroom-card {
        flex-direction: column;
    }

    .community-marketplace .community-showroom-cover {
        flex-basis: auto;
        height: 150px;
    }
}
