/**
 * MAXSOFT Home v34.3 — composição, categorias e vitrines.
 */
.ms-home {
    background: #f4f7fb;
}
.ms-home__ambient {
    background:
        radial-gradient(circle at 18% 0, rgba(37, 99, 235, .10), transparent 31%),
        radial-gradient(circle at 84% 3%, rgba(15, 59, 118, .08), transparent 28%),
        linear-gradient(180deg, #f8fbff 0, rgba(244, 247, 251, 0) 100%);
}
.ms-home-hero + .ms-home-features {
    position: relative;
    z-index: 7;
}

.ms-home-category-directory {
    padding: 18px 20px 22px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
.ms-home-category-directory__item {
    min-height: 94px;
    padding: 13px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #e6e8ec;
    border-radius: 14px;
    color: #344054;
    background: #fff;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ms-home-category-directory__item:hover {
    transform: translateY(-2px);
    border-color: #b8cff0;
    box-shadow: 0 9px 19px rgba(15, 23, 42, .07);
}
.ms-home-category-directory__icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    color: #2968c8;
    background: #edf4ff;
}
.ms-home-category-directory__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ms-home-category-directory__item strong {
    font-size: 10px;
    font-weight: 850;
    line-height: 1.25;
}
.ms-home-category-directory__item small {
    color: #98a2b3;
    font-size: 8px;
}

.ms-home-feed-label {
    width: min(calc(100% - 28px), var(--ms-shell));
    margin: 28px auto -3px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475467;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ms-home-feed-label::before,
.ms-home-feed-label::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #dfe3e8;
}
.ms-home-feed-label span { flex: 0 0 auto; }

.ms-market-section--discount {
    background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}
.ms-market-section--discount::before {
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
}
.ms-home-discount-chip {
    min-height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 9px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .ms-home-category-directory {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .ms-home__ambient { height: 390px; }
}
@media (max-width: 600px) {
    .ms-home-category-directory {
        padding: 13px 10px 16px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .ms-home-category-directory__item {
        min-height: 82px;
        padding: 9px 5px;
    }
    .ms-home-feed-label {
        width: calc(100% - 20px);
        margin-top: 18px;
        font-size: 8px;
    }
}
@media (max-width: 380px) {
    .ms-home-category-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
