/* Agent marketplace compatibility styles. Keep the storefront on ShopXO's native card/grid system. */
.agent-marketplace-hero {
    background: #fff;
}

.agent-hero-slider,
.agent-hero-slider .am-slider {
    margin: 0;
    background: #f5f5f5;
    box-shadow: none;
}

.agent-hero-slider .am-slides li {
    background: #f5f5f5;
}

.agent-hero-banner {
    display: block;
    height: min(31.25vw, 600px);
    min-height: 220px;
    overflow: hidden;
}

.agent-hero-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-hero-slider .am-control-nav,
.agent-hero-slider .am-direction-nav {
    display: none !important;
}

.agent-category-panel {
    padding: 20px 0 10px;
}

.agent-category-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.agent-category-kicker {
    margin: 0 0 4px;
    color: #e4393c;
    font-size: 13px;
}

.agent-category-head h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.agent-category-subtitle {
    margin: 8px 0 0;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.agent-category-count {
    color: #777;
    text-align: right;
    white-space: nowrap;
}

.agent-category-count strong {
    color: #e4393c;
    font-size: 28px;
    line-height: 1;
}

.agent-assessment-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid #e7ebf2;
    border-left: 4px solid #e4393c;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(31, 45, 61, .06);
}

.agent-assessment-entry:hover,
.agent-assessment-entry:focus {
    color: #e4393c;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(31, 45, 61, .1);
}

.agent-assessment-entry strong,
.agent-assessment-entry span,
.agent-assessment-entry em {
    display: block;
}

.agent-assessment-entry strong {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.35;
}

.agent-assessment-entry span {
    color: #777;
    font-size: 13px;
    line-height: 1.55;
}

.agent-assessment-entry em {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 4px;
    background: #e4393c;
    color: #fff;
    font-size: 13px;
    font-style: normal;
    white-space: nowrap;
}

.agent-category-chips {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.agent-category-chip {
    display: block;
    overflow: hidden;
    min-height: 76px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
}

.agent-category-chip:hover,
.agent-category-chip:focus,
.agent-category-chip.active {
    border-color: #e4393c;
    color: #e4393c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.agent-category-chip strong,
.agent-category-chip span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-category-chip strong {
    font-size: 14px;
    line-height: 1.4;
}

.agent-category-chip span {
    margin-top: 8px;
    color: #999;
    font-size: 12px;
}

.agent-marketplace-search {
    margin-top: 10px;
}

.agent-goods-grid .item {
    background: #fff;
}

.agent-goods-card-actions {
    align-items: center;
}

.agent-goods-card-actions .am-btn {
    margin-right: 6px;
}

@media only screen and (max-width: 1024px) {
    .agent-category-chips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 640px) {
    .agent-hero-banner {
        height: 46vw;
        min-height: 160px;
    }

    .agent-category-head {
        display: block;
    }

    .agent-category-count {
        margin-top: 8px;
        text-align: left;
    }

    .agent-assessment-entry {
        display: block;
    }

    .agent-assessment-entry em {
        display: inline-block;
        margin-top: 10px;
    }

    .agent-category-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
