/* ═══════════════════════════════════════════════════════════════════
   Bikeley · Public · Marktplatz Parts/Apparel · Such-Seite
   ─── Anhang zum globalen marketplace.css / marketplace-v5.css ──────
   Nutzt etablierte Klassen: .market-shell, .mkt-breadcrumb,
   .mkt-type-bar, .mkt-toolbar, .market-filters, .mkt-card-grid
   Hier nur Parts-spezifische Erweiterungen.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Title-Block ─────────────────────────────────────────────────── */
.market-shell .mkt-title {
    margin: 0 0 16px;
}
.market-shell .mkt-title h1 {
    margin: 0 0 4px;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.03em;
    font-weight: 800;
    line-height: 1.1;
    color: var(--market-text, #111);
}
.market-shell .mkt-title__sub {
    margin: 0;
    color: var(--market-muted, #6b7280);
    font-size: 15px;
}

/* ─── Empty-State ─────────────────────────────────────────────────── */
.market-shell .mkt-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--market-surface, #fff);
    border-radius: 24px;
    margin-top: 24px;
}
.market-shell .mkt-empty h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--market-text, #111);
}
.market-shell .mkt-empty p {
    margin: 0 0 20px;
    color: var(--market-muted, #6b7280);
    font-size: 15px;
}

/* ─── Card-Grid (nutzt mkt-card-Klassen) ──────────────────────────── */
.market-shell .mkt-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* mkt-card-Anpassungen für Parts (kompaktere Höhen als Bike-Karten) */
.market-shell .mkt-card {
    position: relative;
    background: var(--market-surface, #fff);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.market-shell .mkt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}
.market-shell .mkt-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.market-shell .mkt-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #efefef;
    overflow: hidden;
}
.market-shell .mkt-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}
.market-shell .mkt-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c4cc;
}

.market-shell .mkt-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    pointer-events: none;
}
.market-shell .mkt-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.market-shell .mkt-card__badge--sale {
    background: var(--market-accent, #e11d48);
    color: #fff;
}
.market-shell .mkt-card__badge--used {
    background: #1f2937;
    color: #fff;
}
.market-shell .mkt-card__badge--soldout {
    background: #6b7280;
    color: #fff;
}

.market-shell .mkt-card__body {
    padding: 14px 16px 18px;
}
.market-shell .mkt-card__brand {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--market-muted, #6b7280);
    margin-bottom: 4px;
}
.market-shell .mkt-card__title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--market-text, #111);
    /* 2 Zeilen max */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.market-shell .mkt-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.market-shell .mkt-card__price {
    font-size: 18px;
    font-weight: 800;
    color: var(--market-text, #111);
    letter-spacing: -0.02em;
}
.market-shell .mkt-card__price--sale {
    color: var(--market-accent, #e11d48);
}
.market-shell .mkt-card__price-compare {
    font-size: 14px;
    color: var(--market-muted, #6b7280);
    text-decoration: line-through;
}
.market-shell .mkt-card__provider {
    font-size: 12px;
    color: var(--market-muted, #6b7280);
}
.market-shell .mkt-card__provider strong {
    color: var(--market-text, #111);
    font-weight: 600;
}

/* ─── Pagination ──────────────────────────────────────────────────── */
.market-shell .mkt-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding: 24px 0;
}
.market-shell .mkt-pagination__btn,
.market-shell .mkt-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid var(--market-border, rgba(17,24,39,.10));
    border-radius: 10px;
    background: #fff;
    color: var(--market-text, #111);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.market-shell .mkt-pagination__btn:hover:not(.is-disabled),
.market-shell .mkt-pagination__page:hover:not(.is-active) {
    border-color: var(--market-text, #111);
    transform: translateY(-1px);
}
.market-shell .mkt-pagination__page.is-active {
    background: var(--market-text, #18181b);
    border-color: var(--market-text, #18181b);
    color: #fff;
}
.market-shell .mkt-pagination__btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.market-shell .mkt-pagination__ellipsis {
    padding: 0 4px;
    color: var(--market-muted, #6b7280);
}

/* ─── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .market-shell .mkt-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    .market-shell .mkt-card__body {
        padding: 10px 12px 14px;
    }
    .market-shell .mkt-card__title {
        font-size: 14px;
    }
    .market-shell .mkt-card__price {
        font-size: 16px;
    }
    .market-shell .mkt-card__media img {
        padding: 12px;
    }
}

/* ═══ Phase 5f — Dynamische Spec-Filter ═══════════════════════════════════ */

.market-filter-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

.market-filter-spec-heading {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-muted, #6b7280);
    margin: 0 0 8px;
    padding: 0 4px;
}

.market-filter-section--spec .market-filter-section__label .spec-unit {
    color: var(--c-text-muted, #6b7280);
    font-weight: 400;
    font-size: 12px;
}

/* Multi-Select-Chips: kompakter, scrollbar wenn lang */
.market-filter-chips--multi {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
    background: #fafafa;
    border-radius: 6px;
}

.market-filter-chips--multi .market-chip {
    margin: 2px;
    font-size: 13px;
}

.market-filter-chips--multi .market-chip small {
    margin-left: 4px;
    color: var(--c-text-muted, #6b7280);
    font-weight: 400;
}

/* Mobile: weniger padding */
@media (max-width: 640px) {
    .market-filter-chips--multi {
        max-height: 180px;
    }
}
