/* ==========================================================================
   CHISI — collection page (hero + product finder facet)
   Scope: .chisi-chero / .chisi-facet  (theme 796)
   Tokens follow CHISI UI standard v1.0
   ========================================================================== */

.chisi-chero,
.chisi-facet {
    --chisi-ink: #14181f;
    --chisi-body: #3a4048;
    --chisi-sub: #5b6673;
    --chisi-label: #6b7280;
    --chisi-line: #e7e9ee;
    --chisi-line-soft: #f0f2f5;
    --chisi-accent: #e65125;
    --chisi-accent-ink: #a3251c;
    --chisi-dark: #0b1220;
}

/* ---------------------------------------------------------------- HERO ---- */

.chisi-chero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--chisi-dark);
    color: #fff;
}

.chisi-chero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -2;
}

.chisi-chero__media img {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 76% 50%;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none;
}

.chisi-chero__scrim {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(6, 10, 18, .94) 0%, rgba(6, 10, 18, .9) 34%, rgba(6, 10, 18, .6) 63%, rgba(6, 10, 18, .16) 100%),
        linear-gradient(0deg, rgba(6, 10, 18, .55) 0%, rgba(6, 10, 18, 0) 55%);
}

.chisi-chero__inner {
    position: relative;
    max-width: 1360px;
    margin: 0 auto;
    padding: 26px 40px 34px;
    min-height: 468px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.chisi-chero__crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .58);
}

.chisi-chero__crumb a {
    color: rgba(255, 255, 255, .58);
    text-decoration: none;
    transition: color .2s ease;
}

.chisi-chero__crumb a:hover {
    color: #fff;
}

.chisi-chero__crumb-sep {
    color: rgba(255, 255, 255, .28);
}

.chisi-chero__crumb-current {
    color: rgba(255, 255, 255, .9);
}

.chisi-chero__body {
    padding: 34px 0 4px;
    max-width: 700px;
}

.chisi-chero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
}

.chisi-chero__eyebrow::before {
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    background: linear-gradient(90deg, #e22e1d 0%, #e65125 100%);
}

.chisi-chero__title {
    margin: 0 0 14px;
    font-size: clamp(32px, 3.6vw, 50px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -.022em;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 1px 14px rgba(4, 8, 16, .45);
}

.chisi-chero__title--long {
    font-size: clamp(28px, 3.05vw, 42px);
    letter-spacing: -.018em;
}

.chisi-chero__lede {
    margin: 0 0 20px;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.62;
    color: rgba(255, 255, 255, .82);
    text-shadow: 0 1px 10px rgba(4, 8, 16, .5);
}

.chisi-chero__lede strong {
    color: #fff;
    font-weight: 600;
}

.chisi-chero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.chisi-chero__chips li {
    margin: 0;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .86);
    white-space: nowrap;
}

.chisi-chero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.chisi-chero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.chisi-chero__btn--solid {
    color: #fff;
    background: linear-gradient(135deg, #e22e1d 0%, #e65125 100%);
    border: 1px solid transparent;
    box-shadow: 0 8px 20px -12px rgba(226, 46, 29, .9);
}

.chisi-chero__btn--solid:hover {
    transform: translateY(-1px);
    color: #fff;
}

.chisi-chero__btn--ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .04);
}

.chisi-chero__btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.chisi-chero__btn svg {
    width: 14px;
    height: 14px;
    flex: none;
}

.chisi-chero__foot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 18px;
    margin-top: auto;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .52);
}

.chisi-chero__count {
    color: rgba(255, 255, 255, .78);
    font-variant-numeric: tabular-nums;
}

@media screen and (max-width: 989px) {
    .chisi-chero__inner {
        min-height: 360px;
        padding: 22px 22px 26px;
    }

    .chisi-chero__body {
        padding-top: 26px;
    }

    .chisi-chero__title--long {
    font-size: clamp(28px, 3.05vw, 42px);
    letter-spacing: -.018em;
}

.chisi-chero__lede {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media screen and (max-width: 749px) {
    .chisi-chero__media img {
        object-position: 72% 46%;
    }

    .chisi-chero__scrim {
        background:
            linear-gradient(180deg, rgba(6, 10, 18, .46) 0%, rgba(6, 10, 18, .77) 38%, rgba(6, 10, 18, .9) 70%, rgba(6, 10, 18, .95) 100%);
    }

    .chisi-chero__inner {
        min-height: 0;
        padding: 20px 18px 24px;
    }

    .chisi-chero__title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .chisi-chero__title--long {
    font-size: clamp(28px, 3.05vw, 42px);
    letter-spacing: -.018em;
}

.chisi-chero__lede {
        font-size: 13.5px;
        margin-bottom: 16px;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .chisi-chero__chips {
        margin-bottom: 20px;
    }

    .chisi-chero__chips li {
        font-size: 10px;
        padding: 5px 9px;
    }

    .chisi-chero__btn {
        height: 42px;
        padding: 0 16px;
        font-size: 12.5px;
    }

    .chisi-chero__foot {
        padding-top: 16px;
        font-size: 10px;
    }

    .chisi-chero__crumb {
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .chisi-chero__crumb a,
    .chisi-chero__crumb-sep {
        flex: none;
    }

    .chisi-chero__crumb-current {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

/* --------------------------------------------------------------- FACET ---- */

.chisi-facet {
    margin: 0 0 18px;
    border: 1px solid var(--chisi-line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.chisi-facet__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--chisi-line-soft);
}

.chisi-facet__top-title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--chisi-label);
}

.chisi-facet__top-note {
    font-size: 11px;
    color: #9aa3af;
}

.chisi-facet__group {
    border-bottom: 1px solid var(--chisi-line-soft);
}

.chisi-facet__group:last-child {
    border-bottom: 0;
}

.chisi-facet__head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 13px 16px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background .18s ease;
}

.chisi-facet__head:hover {
    background: #fafbfc;
}

.chisi-facet__idx {
    flex: none;
    width: 16px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #b0b8c2;
    font-variant-numeric: tabular-nums;
}

.chisi-facet__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--chisi-ink);
}

.chisi-facet__group.is-current .chisi-facet__name {
    color: var(--chisi-accent-ink);
}

.chisi-facet__sign {
    position: relative;
    flex: none;
    width: 11px;
    height: 11px;
}

.chisi-facet__sign::before,
.chisi-facet__sign::after {
    content: "";
    position: absolute;
    background: #8f99a6;
    transition: transform .2s ease, opacity .2s ease;
}

.chisi-facet__sign::before {
    top: 5px;
    left: 0;
    width: 11px;
    height: 1.5px;
}

.chisi-facet__sign::after {
    top: 0;
    left: 4.75px;
    width: 1.5px;
    height: 11px;
}

.chisi-facet__group.is-open .chisi-facet__sign::after {
    transform: rotate(90deg);
    opacity: 0;
}

.chisi-facet__list {
    display: none;
    margin: 0;
    padding: 0 0 9px;
    list-style: none;
}

.chisi-facet__group.is-open .chisi-facet__list {
    display: block;
}

.chisi-facet__list li {
    margin: 0;
}

.chisi-facet__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 16px 7px 42px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--chisi-body);
    text-decoration: none;
    transition: color .16s ease, background .16s ease;
}

.chisi-facet__item:hover {
    color: var(--chisi-ink);
    background: #f8f9fb;
}

.chisi-facet__item.is-active {
    color: var(--chisi-accent-ink);
    background: #fdf6f3;
    font-weight: 600;
}

.chisi-facet__item.is-active::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 2px;
    background: linear-gradient(180deg, #e22e1d 0%, #e65125 100%);
}

.chisi-facet__item-dot {
    flex: none;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccd2da;
}

.chisi-facet__item.is-active .chisi-facet__item-dot {
    background: var(--chisi-accent);
}

/* level 3 -------------------------------------------------------------- */

.chisi-facet__subtoggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 7px 16px 7px 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--chisi-body);
}

.chisi-facet__subtoggle:hover {
    color: var(--chisi-ink);
    background: #f8f9fb;
}

.chisi-facet__subtoggle .chisi-facet__sign {
    margin-left: auto;
}

.chisi-facet__subtoggle.is-active {
    color: var(--chisi-accent-ink);
    font-weight: 600;
}

.chisi-facet__sub {
    display: none;
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
    background: #fbfcfd;
    border-top: 1px solid var(--chisi-line-soft);
    border-bottom: 1px solid var(--chisi-line-soft);
}

.chisi-facet__subwrap.is-open > .chisi-facet__sub {
    display: block;
}

.chisi-facet__sub .chisi-facet__item {
    padding-left: 56px;
    font-size: 12.5px;
    color: var(--chisi-sub);
}

.chisi-facet__sub .chisi-facet__item.is-active {
    color: var(--chisi-accent-ink);
}

.chisi-facet__foot {
    padding: 12px 16px;
    border-top: 1px solid var(--chisi-line-soft);
    background: #fcfcfd;
}

.chisi-facet__foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--chisi-accent-ink);
    text-decoration: none;
}

.chisi-facet__foot a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------- AJAX filter transitions -- */

#CollectionProductGrid.chisi-is-loading {
    opacity: .38;
    pointer-events: none;
    transition: opacity .18s ease;
}

.chisi-grid-status {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 0 0;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--chisi-label);
}

.chisi-grid-status.is-on {
    display: flex;
}

.chisi-grid-status::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #e2e5ea;
    border-top-color: var(--chisi-accent);
    animation: chisi-spin .7s linear infinite;
}

@keyframes chisi-spin {
    to {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 989px) {
    .chisi-facet {
        margin-bottom: 14px;
    }

    .chisi-facet__item,
    .chisi-facet__subtoggle {
        padding-top: 9px;
        padding-bottom: 9px;
    }
}

/* --------------------------------------------- native facet cleanup ----- */
/* Supplier carries a single vendor and every product is in stock, so both
   native facets are noise next to the product-range finder. */
.template-collection .f-sidebar .filter-vendor,
.template-collection .f-sidebar .filter-availability {
    display: none !important;
}
