.yc-path-navigation-shell {
    background: #ffffff;
}

.yc-path-navigation {
    font-family: var(--yc-pdp-font-ui);
    --yc-path-accent: #cf4747;
    --yc-path-surface: #f7f8fa;
    --yc-path-border: rgba(17, 24, 39, 0.08);
    --yc-path-text: #111827;
    --yc-path-muted: #6b7280;
    max-width: 100%;
    border-top: 1px solid var(--yc-path-border);
    border-bottom: 1px solid var(--yc-path-border);
    color: var(--yc-path-text);
    background: #ffffff;
}

.yc-path-navigation__surface {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    gap: 24px;
}

.yc-path-navigation__trail,
.yc-path-navigation__mobile-trail,
.yc-path-navigation__expanded-panel {
    margin: 0;
    padding: 0;
    list-style: none;
}

.yc-path-navigation__trail {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.yc-path-navigation__item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex: 0 1 auto;
    color: var(--yc-path-muted);
    font-size: 14px;
    line-height: 1.4;
}

.yc-path-navigation__item--home {
    flex: 0 0 auto;
}

.yc-path-navigation__link,
.yc-path-navigation__text,
.yc-path-navigation__back,
.yc-path-navigation__label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.yc-path-navigation__link,
.yc-path-navigation__back,
.yc-path-navigation__expanded-panel a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    touch-action: manipulation;
}

.yc-path-navigation__link span,
.yc-path-navigation__text,
.yc-path-navigation__back-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yc-path-navigation__link:hover,
.yc-path-navigation__link:focus,
.yc-path-navigation__back:hover,
.yc-path-navigation__back:focus,
.yc-path-navigation__expanded-panel a:hover,
.yc-path-navigation__expanded-panel a:focus {
    color: var(--yc-path-accent);
}

.yc-path-navigation__link:focus-visible,
.yc-path-navigation__back:focus-visible,
.yc-path-navigation__expand:focus-visible,
.yc-path-navigation__expanded-panel a:focus-visible {
    outline: 3px solid rgba(207, 71, 71, 0.24);
    outline-offset: 2px;
}

.yc-path-navigation__separator {
    flex: 0 0 auto;
    margin: 0 8px;
    color: #c4c9d1;
    font-size: 16px;
}

.yc-path-navigation__parent > .yc-path-navigation__link,
.yc-path-navigation__mobile-item.yc-path-navigation__parent > a {
    color: var(--yc-path-text);
    border-bottom: 1px solid var(--yc-path-accent);
}

.yc-path-navigation__current {
    min-width: 0;
    color: var(--yc-path-text);
    font-weight: 500;
}

.yc-path-navigation__meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 12px;
    color: var(--yc-path-muted);
    font-size: 13px;
}

.yc-path-navigation__back {
    min-height: 36px;
    max-width: 220px;
    gap: 4px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.yc-path-navigation__back:hover,
.yc-path-navigation__back:focus {
    border-color: rgba(207, 71, 71, 0.18);
    background: var(--yc-path-surface);
}

.yc-path-navigation__label {
    color: #9ca3af;
    white-space: nowrap;
}

.yc-path-navigation__mobile-row,
.yc-path-navigation__mobile-trail-wrap {
    min-width: 0;
    max-width: 100%;
}

.yc-path-navigation__mobile-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    gap: 8px;
}

.yc-path-navigation__mobile-trail-wrap {
    position: relative;
    display: flex;
    flex: 1 1 auto;
}

.yc-path-navigation__mobile-trail-wrap::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    content: "";
    opacity: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 82%);
    transition: opacity 0.2s ease;
}

.yc-path-navigation__expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    color: var(--yc-path-muted);
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.yc-path-navigation__expand[hidden],
.yc-path-navigation__expanded-panel[hidden] {
    display: none;
}

.yc-path-navigation__expand:hover,
.yc-path-navigation__expand:focus {
    color: var(--yc-path-accent);
    background: var(--yc-path-surface);
}

.yc-path-navigation__expanded-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    max-height: 72px;
    overflow: hidden;
    padding: 8px 0 10px;
    border-top: 1px solid var(--yc-path-border);
    color: var(--yc-path-muted);
    font-size: 13px;
    line-height: 1.35;
}

.yc-path-navigation__expanded-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.yc-path-navigation__expanded-item a,
.yc-path-navigation__expanded-item span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    max-width: min(100%, 280px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yc-path-navigation__expanded-item.yc-path-navigation__current span {
    color: var(--yc-path-text);
    font-weight: 500;
}

@media (min-width: 768px) {
    .yc-path-navigation--mobile {
        display: none;
    }

    .yc-path-navigation__current {
        max-width: min(340px, 34vw);
    }
}

@media (max-width: 767px) {
    .yc-path-navigation-shell .container {
        width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    .yc-path-navigation {
        overflow: hidden;
    }

    .yc-path-navigation--desktop {
        display: none;
    }

    .yc-path-navigation--mobile {
        flex-direction: column;
        align-items: stretch;
        min-height: 44px;
        gap: 0;
        padding: 0;
        overflow: hidden;
    }

    .yc-path-navigation__back {
        flex: 0 0 auto;
        min-width: 44px;
        min-height: 44px;
        max-width: 128px;
        padding: 0 8px;
        color: var(--yc-path-accent);
        font-size: 13px;
    }

    .yc-path-navigation__mobile-trail {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .yc-path-navigation__mobile-trail::-webkit-scrollbar {
        display: none;
    }

    .yc-path-navigation__mobile-item {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        min-width: 0;
        color: var(--yc-path-muted);
        font-size: 13px;
        line-height: 1.35;
    }

    .yc-path-navigation__mobile-item a,
    .yc-path-navigation__mobile-item span {
        overflow: hidden;
        color: inherit;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-decoration: none;
    }

    .yc-path-navigation__mobile-item.yc-path-navigation__current {
        color: var(--yc-path-text);
    }

    .yc-path-navigation--overflowing .yc-path-navigation__mobile-trail-wrap::after {
        opacity: 1;
    }

    .yc-path-navigation--expanded .yc-path-navigation__mobile-trail-wrap::after {
        opacity: 0;
    }

    .yc-path-navigation--expanded .yc-path-navigation__expand {
        color: var(--yc-path-accent);
        background: var(--yc-path-surface);
    }

    .yc-path-navigation__separator {
        margin: 0 6px;
        font-size: 14px;
    }
}
