/*
 * Bagian "Layanan Sosmed Populer" di beranda.
 * CSS murni — build Tailwind di proyek ini ter-purge, kelas baru tidak ikut ter-generate.
 */
.smm-home-section { padding: 3rem 0; }

.smm-home-head {
    text-align: center;
    margin-bottom: 2rem;
}

.smm-home-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem 1rem;
    border-radius: 999px;
    background: #ede9fe;
    color: #5b21b6;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.smm-home-title {
    margin: .75rem 0 .5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
}

.smm-home-sub {
    max-width: 34rem;
    margin: 0 auto;
    font-size: .9375rem;
    color: #64748b;
}

.smm-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

@media (min-width: 768px) {
    .smm-home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
    .smm-home-title { font-size: 2.25rem; }
}

.smm-home-card {
    display: flex;
    flex-direction: column;
    padding: 1.125rem;
    border: 1px solid #f1f5f9;
    border-radius: 1.25rem;
    background: #fff;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.smm-home-card:hover {
    transform: translateY(-3px);
    border-color: #ddd6fe;
    box-shadow: 0 12px 28px rgba(91, 33, 182, .12);
}

.smm-home-card__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .875rem;
}

.smm-home-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .75rem;
    overflow: hidden;
    background: linear-gradient(to bottom right, #8b5cf6, #ec4899);
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.smm-home-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.smm-home-card__tag {
    padding: .25rem .625rem;
    border-radius: 999px;
    background: #f5f3ff;
    color: #5b21b6;
    font-size: .625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.smm-home-card__sold {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #ea580c;
    font-size: .625rem;
    font-weight: 800;
}

.smm-home-card__title {
    flex-grow: 1;
    margin: 0 0 .75rem;
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smm-home-card__meta {
    display: flex;
    gap: .375rem;
    margin-bottom: .875rem;
}

.smm-home-card__meta span {
    padding: .1875rem .5rem;
    border-radius: .5rem;
    background: #f8fafc;
    color: #64748b;
    font-size: .625rem;
    font-weight: 600;
}

.smm-home-card__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
    padding-top: .75rem;
    border-top: 1px dashed #e2e8f0;
}

.smm-home-card__from {
    display: block;
    font-size: .625rem;
    color: #94a3b8;
}

.smm-home-card__price {
    display: block;
    font-size: 1.0625rem;
    font-weight: 800;
    color: #0f172a;
}

.smm-home-card__unit {
    display: block;
    font-size: .625rem;
    color: #94a3b8;
}

.smm-home-card__go {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: .6875rem;
    flex-shrink: 0;
    transition: background .2s ease;
}

.smm-home-card:hover .smm-home-card__go { background: #5b21b6; }

.smm-home-cta {
    text-align: center;
    margin-top: 2rem;
}

.smm-home-cta a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: 999px;
    border: 1px solid #ddd6fe;
    background: #fff;
    color: #5b21b6;
    font-size: .875rem;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s ease;
}

.smm-home-cta a:hover {
    background: #5b21b6;
    border-color: #5b21b6;
    color: #fff;
}

/* rangka sementara saat data belum termuat */
.smm-home-loading { min-height: 12rem; }
