/* ---------- Breadcrumb + banner ---------- */
.breadcrumb-bar {
    background: var(--cream);
    padding: .8rem 0;
}

.breadcrumb-bar a {
    color: var(--steel-dark);
    font-size: .85rem;
    font-weight: 600;
}

.breadcrumb-bar a:hover {
    color: var(--black);
}

.breadcrumb-bar .sep {
    color: #bdb28c;
    margin: 0 .4rem;
}

.breadcrumb-bar .current {
    color: var(--black);
    font-size: .85rem;
    font-weight: 700;
}

.category-banner {
    padding: 2.6rem 0 1.6rem;
}

.category-banner .icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
    background: var(--black);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.category-banner h1 {
    font-weight: 800;
    font-size: 1.8rem;
    margin: 0;
}

.category-banner p {
    color: var(--text-muted);
    font-size: .9rem;
    margin: .3rem 0 0;
}

/* ---------- Toolbar ---------- */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem;
    padding: 1rem 0;
    border-top: 1px solid #eee2c8;
    border-bottom: 1px solid #eee2c8;
    margin-bottom: 1.8rem;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 9px;
    padding: .65rem 1.2rem;
    font-weight: 700;
    font-size: .9rem;
}

.filter-toggle-btn i {
    font-size: 1rem;
    transition: transform .25s ease;
}

.filter-toggle-btn[aria-expanded="true"] i.bi-chevron-down {
    transform: rotate(180deg);
}

.filter-count {
    background: var(--cream);
    color: var(--black);
    font-size: .72rem;
    font-weight: 800;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.result-count {
    font-size: .87rem;
    color: var(--text-muted);
}

.result-count b {
    color: var(--black);
}

.sort-select {
    border: 1.5px solid #e6dcc0;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    padding: .5rem .8rem;
    background: var(--white);
    color: var(--black);
}

/* ---------- Filter panel ---------- */
.filter-panel {
    background: var(--cream);
    border: 1px solid #e6dcc0;
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 2.2rem;
}

.filter-group {
    border-left: 1px solid #ddd0a4;
    padding-left: 1.4rem;
}

.filter-group:last-child {
    border-left: none;
}

.filter-group h6 {
    font-weight: 800;
    font-size: .92rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.filter-group h6 i {
    color: var(--steel-dark);
    font-size: 1rem;
}

.filter-search {
    position: relative;
}

.filter-search input {
    width: 100%;
    border: 1.5px solid #e6dcc0;
    border-radius: 9px;
    padding: .6rem 2.4rem .6rem .9rem;
    font-size: .88rem;
    background: var(--white);
}

.filter-search input:focus {
    outline: none;
    border-color: var(--black);
}

.filter-search i {
    position: absolute;
    top: 50%;
    right: .85rem;
    transform: translateY(-50%);
    color: var(--steel-dark);
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .9rem;
}

.price-range-inputs input {
    width: 100%;
    border: 1.5px solid #e6dcc0;
    border-radius: 9px;
    padding: .55rem .7rem;
    font-size: .85rem;
    background: var(--white);
    text-align: center;
}

.price-range-inputs input:focus {
    outline: none;
    border-color: var(--black);
}

.price-range-inputs span {
    color: var(--steel-dark);
    font-size: .8rem;
}

.price-range-track {
    position: relative;
    height: 5px;
    border-radius: 4px;
    background: #e2d6b0;
    margin: 1.1rem .2rem .4rem;
}

.price-range-track .fill {
    position: absolute;
    top: 0;
    right: 18%;
    left: 12%;
    height: 5px;
    background: var(--black);
    border-radius: 4px;
}

.price-range-track .handle {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--black);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 1px #d8cba0;
    transform: translateY(-50%);
}

.price-range-track .handle.h1 {
    right: 18%;
    margin-right: -8px;
}

.price-range-track .handle.h2 {
    left: 12%;
    margin-left: -8px;
}

.price-hints {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: var(--text-muted);
}

.filter-check {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .65rem;
    cursor: pointer;
}

.filter-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--black);
    flex-shrink: 0;
}

.filter-check label {
    font-size: .87rem;
    cursor: pointer;
}

.filter-check .cnt {
    color: var(--steel);
    font-size: .76rem;
    margin-right: auto;
}

.filter-actions {
    display: flex;
    gap: .6rem;
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid #ddd0a4;
}

.filter-actions .btn-dark-custom {
    padding: .6rem 1.3rem;
    font-size: .85rem;
}

.btn-reset-filter {
    background: transparent;
    border: 1.5px solid var(--steel-dark);
    color: var(--steel-dark);
    font-weight: 700;
    border-radius: 8px;
    padding: .6rem 1.3rem;
    font-size: .85rem;
}

.btn-reset-filter:hover {
    background: var(--white);
}

/* Active filter chips */
.active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.4rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--white);
    border: 1.5px solid var(--black);
    border-radius: 20px;
    padding: .35rem .5rem .35rem .9rem;
    font-size: .78rem;
    font-weight: 700;
}

.chip button {
    background: var(--black);
    color: var(--white);
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: .7rem;
    line-height: 1;
}

/* ---------- Product grid (shared card style) ---------- */
.products-section {
    padding-bottom: 4.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    border: 1px solid #eee2c8;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
}

.product-card .img-wrap {
    background: #F7F3E9;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--black);
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 20px;
}

.product-card .tag.out {
    background: #a9a297;
}

.product-card .body {
    padding: 1rem 1.1rem 1.2rem;
}

.product-card .cat {
    font-size: .72rem;
    color: var(--steel-dark);
    font-weight: 700;
}

.product-card h6 {
    font-weight: 700;
    margin: .3rem 0 .6rem;
    font-size: .98rem;
    min-height: 2.6em;
}

.product-card .price {
    font-weight: 800;
    font-size: 1rem;
}

.product-card .price small {
    font-weight: 500;
    font-size: .72rem;
    color: var(--text-muted);
}

.product-card .actions {
    display: flex;
    gap: .5rem;
    margin-top: .8rem;
}

.product-card .actions .btn {
    font-size: .78rem;
    padding: .4rem .6rem;
    border-radius: 7px;
    flex: 1;
    font-weight: 700;
}

.product-card .actions .btn:disabled {
    opacity: .5;
}

.torob-link {
    color: var(--steel-dark);
    font-size: .78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 1.5px solid #ddd2ac;
}

.torob-link:hover {
    background: var(--cream-2);
}

.product-card.is-out .img-wrap img {
    opacity: .55;
}

.pagination .page-link {
    color: var(--black);
    border: 1.5px solid #e6dcc0;
    margin: 0 .2rem;
    border-radius: 8px !important;
    font-weight: 700;
    font-size: .85rem;
}

.pagination .page-item.active .page-link {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

@media (max-width:991.98px) {
    .section-title {
        font-size: 1.6rem;
    }

    .filter-group {
        border-left: none;
        border-bottom: 1px solid #ddd0a4;
        padding-left: 0;
        padding-bottom: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .filter-group:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

.cart-icon-link {
    position: relative;
    color: var(--black);
    font-size: 1.25rem;
}

.cart-icon-link .badge-count {
    position: absolute;
    top: -8px;
    left: -10px;
    background: var(--black);
    color: var(--white);
    font-size: .62rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}