/*
 * Breadcrumb dùng chung (inc/breadcrumb.php)
 * Mặc định: nền sáng. Trong khối .dark của Flatsome (banner, tiêu đề trang có ảnh) hoặc có class
 * .aus-bc--banner: viên kính mờ, chữ trắng
 */

.aus-bc {
    display: block;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.aus-bc__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aus-bc .aus-bc__item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .01em;
    text-transform: none;
}

.aus-bc .aus-bc__item + .aus-bc__item::before {
    content: "\203A";
    margin: 0 10px;
    color: #b0b6bf;
    font-size: 16px;
    line-height: 1;
}

.aus-bc .aus-bc__link {
    color: #6b7280;
    font-size: inherit;
    text-decoration: none;
    text-transform: none;
    transition: color .2s ease;
}

.aus-bc .aus-bc__link:hover,
.aus-bc .aus-bc__link:focus-visible {
    color: #f26f39;
}

.aus-bc .aus-bc__current {
    color: #1f2937;
    font-size: inherit;
    font-weight: 600;
}

/* Căn giữa khi khối chứa căn giữa (tiêu đề trang Flatsome, banner) */
.text-center .aus-bc__list,
.align-center .aus-bc__list,
.aus-bc--banner .aus-bc__list {
    justify-content: center;
}

/* Kiểu banner: trên ảnh / nền tối */
.aus-bc--banner,
.dark .aus-bc:not(.aus-bc--light) {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(15, 23, 42, .35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.aus-bc--banner .aus-bc__item,
.aus-bc--banner .aus-bc__link,
.dark .aus-bc:not(.aus-bc--light) .aus-bc__item,
.dark .aus-bc:not(.aus-bc--light) .aus-bc__link {
    color: rgba(255, 255, 255, .78);
}

.aus-bc--banner .aus-bc__item + .aus-bc__item::before,
.dark .aus-bc:not(.aus-bc--light) .aus-bc__item + .aus-bc__item::before {
    color: rgba(255, 255, 255, .5);
}

.aus-bc--banner .aus-bc__link:hover,
.aus-bc--banner .aus-bc__link:focus-visible,
.dark .aus-bc:not(.aus-bc--light) .aus-bc__link:hover,
.dark .aus-bc:not(.aus-bc--light) .aus-bc__link:focus-visible {
    color: #f26f39;
}

.aus-bc--banner .aus-bc__current,
.dark .aus-bc:not(.aus-bc--light) .aus-bc__current {
    color: #fff;
}

/* Thanh breadcrumb ngay dưới header (bài viết, dự án, tin tuyển dụng) */
.aus-bc-bar {
    padding: 14px 0;
    border-bottom: 1px solid #eef0f2;
    background: #fafafa;
}

/* Trang hỗ trợ: giữ khoảng cách cũ, trang hub căn giữa */
.aus-hero .aus-bc {
    margin-bottom: 14px;
}

.aus-support--hub .aus-bc__list {
    justify-content: center;
}

@media (max-width: 549px) {
    .aus-bc .aus-bc__item {
        font-size: 12.5px;
    }

    .aus-bc .aus-bc__item + .aus-bc__item::before {
        margin: 0 7px;
    }

    .aus-bc--banner,
    .dark .aus-bc:not(.aus-bc--light) {
        padding: 6px 14px;
        border-radius: 14px;
    }
}

/*
 * Banner tiêu đề trang sản phẩm/danh mục (Flatsome "featured title") trên mobile:
 * cột trái chỉ chứa &nbsp; để cân bố cục desktop, khi xuống dòng nó chiếm nửa trên banner
 * và đẩy breadcrumb + H1 xuống đáy; cột phải (đếm kết quả, đã ẩn trên mobile) cũng giãn chiếm chỗ. Ẩn cột đó và căn giữa theo chiều dọc
 * (dưới 550px Flatsome xếp cột nên dùng justify-content, 550-849px xếp hàng nên dùng align-content)
 */
@media (max-width: 849px) {
    .shop-page-title.featured-title .page-title-inner {
        justify-content: center;
        align-content: center;
    }

    .shop-page-title.featured-title .page-title-inner > .flex-col {
        flex: 0 0 auto;
    }

    .shop-page-title.featured-title .page-title-inner > .flex-col:first-child {
        display: none;
    }
}

/*
 * Tiêu đề banner trên mobile: đồng bộ 32px như các banner chuẩn của site (.aus_lh_mob h1 trong style.css:
 * Về chúng tôi, Tin tức, Tài liệu, Tuyển dụng). Ba loại banner đang để 64px ở mọi màn hình:
 * chi tiết sản phẩm (UX Builder, .aus_title_page_child h2), danh mục/cửa hàng, trang dùng tiêu đề Flatsome (vd. Hệ thống phân phối)
 */
@media (max-width: 849px) {
    .aus_title_page_child h2,
    .shop-page-title.featured-title h1.shop-page-title,
    .page-title.featured-title h1.entry-title {
        font-size: 32px;
        line-height: 1.15;
    }

    /* Banner chi tiết sản phẩm: khung chữ rộng 100% không lề, breadcrumb 2 dòng chạm sát mép màn hình */
    .aus_bcr_p_c {
        padding: 0 15px;
    }
}

/* Tiêu đề banner danh mục/cửa hàng và tiêu đề Flatsome: viết IN HOA như các banner khác (giống class .uppercase của Flatsome) */
.shop-page-title.featured-title h1.shop-page-title,
.page-title.featured-title h1.entry-title {
    text-transform: uppercase;
    letter-spacing: .05em;
}
