.buy-sell .wrap-main {
    max-width: 1230px;
    margin: 40px auto;
    padding: 0px 15px;
}

.buy-sell .title-main {
    margin-bottom: 24px;
    text-align: center;
}

.buy-sell .title-main span {
    position: relative;
}

.buy-sell .title-main span {
    color: #1d3557;
    font-family: "Mulish", sans-serif;
    font-weight: 600;
    font-size: clamp(20px, 3.5vw, 36px);
    text-transform: uppercase;
}

.buy-sell .animate-border {
    position: relative;
    display: block;
    width: 100px;
    height: 3px;
    background: #1d3557;
    overflow: hidden;
}

.buy-sell .animate-border:after {
    position: absolute;
    content: "";
    width: 30px;
    height: 3px;
    left: 0;
    bottom: 0;
    border-left: 10px solid #fff;
    border-right: 10px solid #fff;
    -webkit-animation: animborder 2s linear infinite;
    animation: animborder 2s linear infinite;
}

@-webkit-keyframes animborder {
    0% {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }

    100% {
        -webkit-transform: translateX(100px);
        transform: translateX(100px);
    }
}

@keyframes animborder {
    0% {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }

    100% {
        -webkit-transform: translateX(100px);
        transform: translateX(100px);
    }
}

.buy-sell .box-sticky {
    position: sticky;
    position: -webkit-sticky;
    top: 95px;
}

.buy-sell .category-box .title-category {
    margin: 0;
    text-align: left;
    padding: 8px 15px;
    background-color: #1d3557;
}

.buy-sell .title-category span {
    color: #fff !important;
    font-size: 16px;
    text-transform: uppercase;
    font-family: "Inter", sans-serif;
    font-weight: 700;
}

.buy-sell .category-box ul {
    padding: 0px;
    margin: 0;
    list-style: none;
}

.buy-sell .box_category_list {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
    list-style: inside;
    background-color: #fff;
    border: solid 1px #eee;
    border-top: none;
}

.buy-sell .box_category_list > li:first-child {
    border-top: none;
}

.buy-sell .box_category_list li {
    position: relative;
    list-style: none;
}

.buy-sell .box_category_list li a {
    font-size: 14px;
    color: #666;
    text-transform: capitalize;
    line-height: 1.5;
    padding: 5px 15px;
}

/* Tree menu final overrides */
.buy-sell .box_category_list > li,
.buy-sell .box_category_list > li + li {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.buy-sell .box_category_list .tree-row > a,
.buy-sell .box_category_list > li > ul > li > a,
.buy-sell .box_category_list a,
.buy-sell .box_category_list a:focus,
.buy-sell .box_category_list a:active,
.buy-sell .box_category_list a:visited {
    text-decoration: none !important;
}

.buy-sell .box_category_list .tree-row > a:hover,
.buy-sell .box_category_list > li > ul > li > a:hover {
    color: #ff0000 !important;
    text-decoration: none !important;
}

/* Toggle: remove all browser default focus/active visuals */
.buy-sell .box_category_list .toggle,
.buy-sell .box_category_list .toggle:hover,
.buy-sell .box_category_list .toggle:active,
.buy-sell .box_category_list .toggle:focus,
.buy-sell .box_category_list .toggle:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
}

.buy-sell .box_category_list .toggle:hover i {
    color: #1d3557;
}

/* Custom vertical scrollbar for buy-sell category list */
.buy-sell .box_category_list {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #1d3557 transparent;
}

.buy-sell .box_category_list::-webkit-scrollbar {
    width: 6px;
}

.buy-sell .box_category_list::-webkit-scrollbar-track {
    background: transparent;
}

.buy-sell .box_category_list::-webkit-scrollbar-thumb {
    background: #1d3557;
    border-radius: 999px;
    border: none;
    min-height: 120px;
}

.buy-sell .box_category_list::-webkit-scrollbar-thumb:hover {
    background: #152a45;
}

/* Disable scrollbar arrow buttons (top/bottom + left/right) for all scrollable
   areas inside .buy-sell so the scrollbar only renders track + thumb.
   The general selector covers most browsers; the specific variants are kept as
   fallbacks for engines that ignore the shorthand and only honor the more
   specific pseudo-element selectors. */
.buy-sell ::-webkit-scrollbar-button,
.buy-sell ::-webkit-scrollbar-button:single-button,
.buy-sell ::-webkit-scrollbar-button:double-button,
.buy-sell ::-webkit-scrollbar-button:vertical:decrement,
.buy-sell ::-webkit-scrollbar-button:vertical:increment,
.buy-sell ::-webkit-scrollbar-button:horizontal:decrement,
.buy-sell ::-webkit-scrollbar-button:horizontal:increment,
.buy-sell ::-webkit-scrollbar-button:start:decrement,
.buy-sell ::-webkit-scrollbar-button:end:increment {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border: none !important;
}

.buy-sell ::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* Tree menu layout */
.buy-sell .box_category_list > li {
    border-top: 1px solid #ececec;
}

.buy-sell .box_category_list .tree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 8px 0 12px;
}

.buy-sell .box_category_list .tree-row > a {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    text-decoration: none;
    color: #666;
}

.buy-sell .box_category_list .tree-row > a:hover {
    color: #e60000;
}

.buy-sell .box_category_list .tree-row > a > i {
    flex: 0 0 14px;
    width: 14px;
    text-align: center;
    font-size: 12px;
    color: #777;
}

.buy-sell .box_category_list .tree-row > a > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buy-sell .box_category_list .toggle {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #bdbdbd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.buy-sell .box_category_list .toggle:hover {
    background: #f2f2f2;
    color: #8b8b8b;
}

.buy-sell .box_category_list .toggle i {
    font-size: 14px;
    line-height: 1;
}

.buy-sell .box_category_list > li > ul {
    padding: 0 0 4px 18px;
}

.buy-sell .box_category_list > li > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 4px;
}

.buy-sell .box_category_list > li > ul > li > a > i {
    flex: 0 0 14px;
    width: 14px;
    font-size: 12px;
    text-align: center;
}

.buy-sell .box_category_list > li > ul > li > a > span {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .buy-sell .box_category_list .tree-row {
        min-height: 36px;
        gap: 6px;
        padding: 0 6px 0 10px;
    }

    .buy-sell .box_category_list .toggle {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .buy-sell .box_category_list > li > ul {
        padding-left: 14px;
    }
}

.buy-sell .box_category_list li ul {
    display: block;
}

.buy-sell .category-box ul {
    padding: 0px;
    margin: 0;
    list-style: none;
}

.buy-sell .box_category_list li ul li {
    padding: 0px 15px;
}

.buy-sell .box_category_list li {
    position: relative;
    list-style: none;
}

.buy-sell .box_category_list li ul li a {
    text-transform: capitalize;
}

.buy-sell .box_category_list li a {
    font-size: 14px;
    color: #666;
    text-transform: capitalize;
    line-height: 1.5;
    padding: 5px 15px;
}

.buy-sell .detail-product .box-product {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    border: 1px solid #ccc;
    margin-bottom: 2rem;
    align-items: center;
    background: #fff;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.buy-sell .detail-product .box-product:hover,
.buy-sell .detail-product .box-product:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.buy-sell .box-product {
    position: relative;
}

.buy-sell .detail-product .detail-image {
    width: 100%;
    height: 225px;
}

.buy-sell .position-relative {
    position: relative !important;
}

.detail-product .detail-image .pic-product {
    border-radius: 0;
}

.buy-sell .detail-product .detail-image .pic-product,
.buy-sell .detail-product .detail-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.buy-sell .detail-product .detail-image img {
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.buy-sell .scale-img {
    overflow: hidden;
    display: block;
}

.buy-sell .pic-product {
    background: #ffffff;
}

.buy-sell .hover_xam {
    position: relative;
}

.buy-sell .hover_xam::before {
    content: "";
    top: -20%;
    left: -35%;
    width: 28%;
    height: 140%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.22) 45%,
        rgba(255, 255, 255, 0) 100%
    );
    position: absolute;
    -webkit-transform: translateX(-140%) skewX(-20deg);
    transform: translateX(-140%) skewX(-20deg);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    will-change: transform, opacity;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s ease;
}

.buy-sell .hover_xam::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.buy-sell .scale-img:hover > img,
.buy-sell .scale-img:focus > img {
    -webkit-transform: scale(1.06, 1.06);
    transform: scale(1.06, 1.06);
}

.buy-sell .hover_xam:hover::before,
.buy-sell .hover_xam:hover::after,
.buy-sell .hover_xam:focus::before,
.buy-sell .hover_xam:focus::after {
    opacity: 1;
}

.buy-sell .hover_xam:hover::before,
.buy-sell .hover_xam:focus::before {
    -webkit-transform: translateX(320%) skewX(-20deg);
    transform: translateX(320%) skewX(-20deg);
}

.buy-sell .hover_xam:hover::after,
.buy-sell .hover_xam:focus::after {
    opacity: 0.55;
}

.buy-sell .info-price {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
}

.buy-sell .detail-product .detail a {
    display: inline-block;
}

.buy-sell .detail-product .detail a img {
    width: 30px;
    height: 30px;
    display: block;
    transition: filter 0.25s ease, transform 0.25s ease;
}

.buy-sell .detail-product .detail a:hover img,
.buy-sell .detail-product .detail a:focus img {
    filter: brightness(0) saturate(100%) invert(13%) sepia(47%) saturate(2100%) hue-rotate(182deg) brightness(95%) contrast(92%);
    transform: translateY(-2px);
}

.buy-sell .feature {
    padding: 5px 8px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    position: absolute;
    text-transform: uppercase;
    left: 20px;
    top: 20px;
    background: #1d3557;
    font-family: "Mulish", sans-serif;
    font-weight: 700;
    font-size: 10px;
    color: #fff;
}

.buy-sell .detail-product .info-product {
    width: auto;
    min-width: 0;
    padding: 0;
    background: none;
}

.buy-sell .content-main h3 {
    font-weight: bold !important;
}

.buy-sell .text-split {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 3;
}

.buy-sell .name-product {
    margin-bottom: 0;
    -webkit-line-clamp: 1 !important;
}

.buy-sell .name-product a {
    font-size: 16px;
    color: #000;
    font-family: "Mulish", sans-serif;
    font-weight: 700;
    text-transform: capitalize;
}
.buy-sell .name-product a:hover,
.buy-sell .name-product a:focus {
    color: #eab308;
    text-decoration: none !important;
}

.buy-sell .info-product .address {
    font-size: 13px;
    color: #808080;
    text-transform: capitalize;
    font-family: "Inter", sans-serif;
    margin: 5px 0 10px 0;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 1;
}

.buy-sell .info-product .tools {
    font-family: "Inter", sans-serif;
}

.buy-sell .price-text {
    font-family: "Mulish", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #1d3557;
    margin-top: 10px;
}

@media (max-width: 991.98px) {
    .buy-sell .detail-product .box-product {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 18px;
    }
    .buy-sell .wrap-main {
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }
}

@media (max-width: 767.98px) {
    .buy-sell .detail-product .box-product {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .buy-sell .detail-product .detail-image {
        height: auto;
        aspect-ratio: 750 / 560;
    }

    .buy-sell .detail-product .info-product {
        padding: 15px;
    }
}

/* Pagination (buy-sell listing) — segmented bar, brand text, dark hover/active */
.pagination-home .pagination {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.pagination-home .page-item {
    margin: 0;
}

.pagination-home .page-link {
    margin-left: 0;
    border: none;
    border-radius: 0;
    border-left: 1px solid #e0e0e0;
    color: #1d3557;
    background-color: #fff;
    font-family: "Inter", sans-serif;
    padding: 0.5rem 0.85rem;
    line-height: 1.25;
    text-align: center;
    min-width: 2.5rem;
}

.pagination-home .page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    min-width: 7.5rem;
}

.pagination-home .page-item:last-child .page-link {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.pagination-home .page-item--info .page-link {
    cursor: default;
    pointer-events: none;
}

.pagination-home .page-item:not(.page-item--info) .page-link:hover {
    z-index: 1;
    color: #fff;
    background-color: #1d3557;
    text-decoration: none;
    border-left-color: #e0e0e0;
}

.pagination-home .page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #1d3557;
    border-color: transparent;
    border-left-color: #e0e0e0;
}

.pagination-home .page-item.active .page-link:hover {
    color: #fff;
    background-color: #1d3557;
}

.pagination-home .page-link:focus {
    outline: 0;
    box-shadow: none;
}

.pagination-home .page-item:not(.page-item--info) .page-link:focus-visible {
    outline: 2px solid #1d3557;
    outline-offset: -2px;
    z-index: 2;
}

/* Breadcrumb trong .wrap-main — căn trái với cột sidebar, chữ nhỏ xám như layout mua bán */
.buy-sell .buy-sell-breadcrumb.breadcrumb-nav {
    margin-bottom: 12px;
    padding: 8px 0 12px;
}

.buy-sell .buy-sell-breadcrumb .breadcrumb {
    font-size: 13px;
}

.buy-sell .buy-sell-breadcrumb .breadcrumb-item a {
    color: #777;
}

.buy-sell .buy-sell-breadcrumb .breadcrumb-item a:hover {
    color: #1d3557;
}

.buy-sell .buy-sell-breadcrumb .breadcrumb-item.active {
    color: #555;
    font-weight: 400;
}

/* Breadcrumb trang /mua-ban/ — full width trên cả sidebar + cột chính (layout sidebar) */
.page-detail .projects-archive-breadcrumb-row .breadcrumb-nav {
    margin-bottom: 8px;
    padding: 8px 0 10px;
}

.page-detail .projects-archive-breadcrumb-row .breadcrumb {
    font-size: 13px;
}

.page-detail .projects-archive-breadcrumb-row .breadcrumb-item a {
    color: #777;
}

.page-detail .projects-archive-breadcrumb-row .breadcrumb-item a:hover {
    color: #1d3557;
}

.page-detail .projects-archive-breadcrumb-row .breadcrumb-item.active {
    color: #555;
    font-weight: 400;
}