/* ══ PRV BREADCRUMB v1.0 ═══════════════════════════════════════ */

.prv-breadcrumb {
    padding: 10px 0 8px;
    margin-bottom: 1.5rem;
    font-size: 13px;
    line-height: 1;
    border-bottom: 1px solid var(--border, #e5e3de);
}

.prv-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.prv-breadcrumb__item {
    display: flex;
    align-items: center;
}

/* Разделитель › через CSS — не в HTML */
.prv-breadcrumb__item + .prv-breadcrumb__item::before {
    content: "›";
    color: var(--muted, #9b9a96);
    margin: 0 5px;
    font-size: 15px;
    line-height: 1;
    speak: none;
}

.prv-breadcrumb__link {
    color: var(--muted, #6b6a66);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}

.prv-breadcrumb__link:hover,
.prv-breadcrumb__link:focus {
    color: var(--text, #1a1918);
    text-decoration: underline;
    outline: none;
}

.prv-breadcrumb__current {
    color: var(--text, #1a1918);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

/* ── Mobile ────────────────────────────────────────────────── */
/* На узких экранах: Главная › … › Текущая страница           */
@media (max-width: 480px) {
    .prv-breadcrumb {
        font-size: 12px;
    }

    /* Прячем средние элементы (не первый и не последние два) */
    .prv-breadcrumb__item:not(:first-child):not(:last-child):not(:nth-last-child(2)) {
        display: none;
    }

    /* Заменяем разделитель перед предпоследним на "…›" */
    .prv-breadcrumb__item:nth-last-child(2)::before {
        content: "… ›";
        margin: 0 5px;
        color: var(--muted, #9b9a96);
    }

    .prv-breadcrumb__current {
        max-width: 180px;
    }
}
/* ═══════════════════════════════════════════════════════════ */
