/**
 * ProductsSEO — Frontend breadcrumb styles
 * Modern, professional, German e-commerce standard.
 * Scoped entirely to .pseo-breadcrumb — zero theme bleed.
 */

/* ── Wrapper ─────────────────────────────────────────────────────────── */
.pseo-breadcrumb {
    display: block;
    width: 100%;
    margin: 0 0 24px;
    padding: 11px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── List ────────────────────────────────────────────────────────────── */
.pseo-breadcrumb ol {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px;
    line-height: 1;
}

.pseo-breadcrumb li {
    display: flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* ── Home icon + link ────────────────────────────────────────────────── */
.pseo-breadcrumb li:first-child a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pseo-breadcrumb li:first-child a::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: opacity 0.15s ease;
}

.pseo-breadcrumb li:first-child a:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

/* ── All links ───────────────────────────────────────────────────────── */
.pseo-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.01em;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.pseo-breadcrumb a:hover,
.pseo-breadcrumb a:focus {
    color: #1d4ed8;
    border-bottom-color: #bfdbfe;
    outline: none;
    text-decoration: none;
}

/* ── Separator ───────────────────────────────────────────────────────── */
.pseo-breadcrumb__sep {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
    color: #d1d5db;
    font-size: 16px;
    font-weight: 300;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

/* ── Current page — last crumb ───────────────────────────────────────── */
.pseo-breadcrumb li:last-child span[itemprop="name"] {
    display: inline-block;
    color: #111827;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 20px;
    max-width: 380px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .pseo-breadcrumb {
        padding: 9px 14px;
        border-radius: 6px;
    }

    .pseo-breadcrumb ol {
        font-size: 12px;
    }

    .pseo-breadcrumb a {
        font-size: 12px;
    }

    .pseo-breadcrumb__sep {
        margin: 0 6px;
        font-size: 14px;
    }

    .pseo-breadcrumb li:last-child span[itemprop="name"] {
        max-width: 180px;
        font-size: 12px;
        padding: 2px 8px;
    }
}
