/**
 * Fitment Application List — Estilos CSS
 * Grupo Awamotos
 *
 * Compatibilidade peça x modelo de moto (PDP)
 */

.fitment-applications {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 16px 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.fitment-header {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--awa-text);
    padding-bottom: 10px;
}

.fitment-title {
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fitment-icon {
    font-size: 1.5rem;
}

.fitment-intro {
    color: var(--awa-text-muted);
    margin-bottom: 15px;
}

.fitment-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.fitment-stat {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #f1c6c6;
    background: #fff;
    color: #982323;
    font-size: 0.82rem;
    font-weight: 700;
}

.fitment-filter {
    margin-bottom: 16px;
}

.fitment-filter-label {
    display: inline-block;
    margin-bottom: 6px;
    color: #5a5a5a;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fitment-filter-input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d6d9de;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #333;
    background: #fff;
}

.fitment-filter-input:focus {
    border-color: #b73337;
    outline: none;
    box-shadow: 0 0 0 3px rgb(183 51 55 / 12%);
}

.fitment-filter-empty {
    margin: 10px 0 0;
    font-size: 0.9rem;
    color: #8f2f30;
    font-weight: 600;
}

.fitment-brand-group {
    margin-bottom: 15px;
}

.fitment-brand-name {
    font-size: 1.1rem;
    color: #c00;
    margin: 0 0 8px;
    padding: 5px 10px;
    background: linear-gradient(90deg, #fff0f0, transparent);
    border-left: 3px solid #c00;
}

.fitment-model-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 15px;
}

.fitment-model-item {
    padding: 5px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fitment-model-item:last-child {
    border-bottom: none;
}

.fitment-model-item--extra[hidden] {
    display: none;
}

.fitment-model-name {
    font-weight: 500;
}

.fitment-position {
    background: #e3f2fd;
    color: #1565c0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.fitment-oem {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.fitment-notes {
    color: var(--awa-text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

.fitment-disclaimer {
    margin: 15px 0 0;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #856404;
}

.fitment-toggle-models {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #c00;
    border-radius: 999px;
    background: #fff;
    color: #c00;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fitment-toggle-models:hover,
.fitment-toggle-models:focus-visible {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

@media (width <= 768px) {
    .fitment-applications {
        padding: 15px;
    }

    .fitment-title {
        font-size: 1.2rem;
    }

    .fitment-model-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .fitment-toggle-models {
        width: 100%;
        min-height: 42px;
    }
}
