/*
 * Thanh Long - shared breadcrumbs, v1.1
 * Chỉ tác động đến .site-breadcrumb ở các trang con.
 * Các phần khác của trang (header, nội dung, WooCommerce, footer) giữ nguyên.
 */
.wrapper .site-breadcrumb {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 16px 0 24px;
    padding: 8px 16px;
    list-style: none;
    background: #fbfaf6;
    border: 1px solid #eee6d3;
    border-left: 3px solid #d5a30c;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(58, 40, 12, .03);
    color: #5c584f;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
}

.wrapper .site-breadcrumb > li {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    min-height: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: inherit;
    line-height: inherit;
}

.wrapper .site-breadcrumb > li::after {
    content: none;
}

.wrapper .site-breadcrumb > li + li::before {
    content: "";
    box-sizing: border-box;
    display: block;
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    padding: 0;
    margin: 0 2px 0 0;
    border: solid #b8a889;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(-45deg);
    border-radius: 0;
}

.wrapper .site-breadcrumb > li > a,
.wrapper .site-page .site-breadcrumb > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 1px 0;
    border-radius: 4px;
    color: #595650;
    font-weight: 500;
    text-decoration: none !important;
    transition: color .18s ease;
    overflow-wrap: anywhere;
}

.wrapper .site-breadcrumb > li:first-child > a::before {
    content: "\f015";
    font-family: FontAwesome;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #b3860d;
}

.wrapper .site-breadcrumb > li > a:hover,
.wrapper .site-breadcrumb > li > a:focus-visible,
.wrapper .site-page .site-breadcrumb > li > a:hover,
.wrapper .site-page .site-breadcrumb > li > a:focus-visible {
    color: #aa7c04;
    text-decoration: none !important;
}

.wrapper .site-breadcrumb > li > a:focus-visible {
    outline: 2px solid #c4930b;
    outline-offset: 3px;
}

.wrapper .site-breadcrumb > li:last-child,
.wrapper .site-breadcrumb > li[aria-current="page"] {
    min-width: 0;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #8a6400;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Mobile: gọn hơn, dễ đọc, tên dài tự xuống dòng. */
@media (max-width: 767px) {
    .wrapper .site-breadcrumb {
        gap: 4px 8px;
        min-height: 40px;
        margin: 12px 0 18px;
        padding: 8px 10px;
        border-radius: 7px;
        font-size: 14px;
        line-height: 1.45;
    }

    .wrapper .site-breadcrumb > li {
        gap: 7px;
        min-height: 22px;
    }

    .wrapper .site-breadcrumb > li > a {
        min-height: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wrapper .site-breadcrumb > li > a { transition: none; }
}
