:root {
    --collection-featured: #7c3aed;
    --collection-featured-soft: #f3efff;
    --collection-must: #0f9f78;
    --collection-must-soft: #ebfaf5;
    --collection-popular: #ef6c39;
    --collection-popular-soft: #fff2ec;
}

.home-collection-card {
    position: relative;
    overflow: hidden;
}

.home-collection-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
}

.home-collection-featured::before {
    background: linear-gradient(
        90deg,
        #7c3aed,
        #a855f7
    );
}

.home-collection-must-have::before {
    background: linear-gradient(
        90deg,
        #0f9f78,
        #34d399
    );
}

.home-collection-popular::before {
    background: linear-gradient(
        90deg,
        #ef6c39,
        #f5b43c
    );
}

.home-collection-description {
    max-width: 560px;
    margin: 5px 0 0;
    color: #858b99;
    font-size: 10px;
    line-height: 1.55;
}

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-featured-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 11px;
    border: 1px solid #e8e4f8;
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            #fff,
            var(--collection-featured-soft)
        );
    color: inherit;
    text-decoration: none;
}

.home-featured-image-shell {
    position: relative;
    display: block;
}

.home-featured-image {
    display: block;
    width: 82px;
    height: 82px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(72, 48, 150, .13);
}

.home-featured-badge {
    position: absolute;
    right: -5px;
    bottom: -5px;
    padding: 4px 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--collection-featured);
    color: #fff;
    font-size: 7px;
    font-weight: 850;
}

.home-featured-content {
    display: block;
    min-width: 0;
}

.home-featured-content strong,
.home-featured-content small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-featured-content strong {
    color: #28233d;
    font-size: 11px;
    font-weight: 850;
}

.home-featured-content small {
    margin-top: 3px;
    color: #8b8799;
    font-size: 8px;
}

.home-featured-content .app-rating {
    display: flex;
    margin-top: 7px;
}

.home-featured-meta {
    display: block;
    margin-top: 4px;
    color: var(--collection-featured);
    font-size: 8px;
    font-weight: 750;
}

.home-must-have-item {
    position: relative;
    border-color: #dcefe8 !important;
    background:
        linear-gradient(
            145deg,
            #fff,
            var(--collection-must-soft)
        ) !important;
}

.home-app-badge {
    position: absolute;
    z-index: 2;
    top: 9px;
    left: 9px;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(15, 159, 120, .9);
    color: #fff;
    font-size: 7px;
    font-weight: 850;
    backdrop-filter: blur(6px);
}

.home-popular-list {
    display: grid;
    gap: 8px;
}

.home-popular-item {
    display: grid;
    grid-template-columns: 29px 60px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 11px;
    border: 1px solid #f4e4dc;
    border-radius: 15px;
    background:
        linear-gradient(
            90deg,
            #fff,
            var(--collection-popular-soft)
        );
    color: inherit;
    text-decoration: none;
}

.home-popular-rank {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    background: linear-gradient(
        135deg,
        var(--collection-popular),
        #f5b43c
    );
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.home-popular-image {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
}

.home-popular-copy {
    display: block;
    min-width: 0;
}

.home-popular-copy strong,
.home-popular-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-popular-copy strong {
    color: #28233d;
    font-size: 11px;
    font-weight: 850;
}

.home-popular-copy small {
    margin-top: 2px;
    color: #8c909d;
    font-size: 8px;
}

.home-popular-copy .app-rating {
    display: flex;
    margin-top: 5px;
}

.home-popular-count {
    display: block;
    min-width: 70px;
    text-align: right;
}

.home-popular-count strong,
.home-popular-count small {
    display: block;
}

.home-popular-count strong {
    color: var(--collection-popular);
    font-size: 14px;
    font-weight: 900;
}

.home-popular-count small {
    color: #9b8e88;
    font-size: 7px;
}

@media (max-width: 991.98px) {
    .home-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .home-featured-grid {
        grid-template-columns: 1fr;
    }

    .home-popular-item {
        grid-template-columns: 27px 52px minmax(0, 1fr);
    }

    .home-popular-image {
        width: 52px;
        height: 52px;
    }

    .home-popular-count {
        grid-column: 2 / -1;
        display: flex;
        gap: 4px;
        justify-content: flex-start;
        min-width: 0;
        text-align: left;
    }
}
