/* =========================================================
   BINOISE — Product archive / shop redesign
   Scoped to .archive-shop-page and archive filter/order areas.
   ========================================================= */

.archive-shop-page {
    --ar-orange: #fa7921;
    --ar-orange-soft: #fff6ef;
    --ar-text: #242424;
    --ar-muted: #7d8188;
    --ar-line: #e8eaed;
    --ar-soft: #f5f6f7;
    --ar-card: #fff;
    color: var(--ar-text);
}

.archive-sort-area {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eef0f2;
}

.archive-sort-form {
    width: min(100% - 48px, 1680px);
    max-width: 1680px;
    margin: 0 auto;
    padding: 18px 0 16px;
}

.archive-sort-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.archive-sort-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding-left: 18px;
    border-left: 1px solid var(--ar-line);
}

.archive-sort-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ar-orange-soft);
    color: var(--ar-orange);
}

.archive-sort-heading strong {
    display: block;
    font-size: 13px;
    font-weight: 900;
    color: #303238;
    line-height: 1.7;
}

.archive-sort-heading small {
    display: block;
    margin-top: 1px;
    font-size: 10px;
    font-weight: 600;
    color: #9a9ea5;
}

.archive-sort-tabs {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.archive-sort-tabs::-webkit-scrollbar {
    display: none;
}

.archive-sort-tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #74777d;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.archive-sort-tab:hover {
    color: var(--ar-orange);
    background: #fffaf6;
}

.archive-sort-tab.is-active {
    color: var(--ar-orange);
    background: var(--ar-orange-soft);
    border-color: rgba(250, 121, 33, .18);
    box-shadow: 0 5px 14px rgba(250, 121, 33, .07);
}

.archive-mobile-filter-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #dfe2e6;
    border-radius: 12px;
    color: #4f535a;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.archive-mobile-filter-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
}

.archive-mobile-filter-icon svg {
    width: 100%;
    height: 100%;
}

.archive-shop-section {
    background: #f4f5f6;
    padding: 24px 0 34px;
}

.archive-shop-container {
    width: min(100% - 48px, 1680px);
    max-width: 1680px;
    margin: 0 auto;
}

.archive-shop-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    direction: rtl;
}

.archive-filter-desktop {
    display: block !important;
    position: sticky;
    top: 102px;
    width: 100%;
    min-width: 0;
    max-height: calc(100vh - 122px);
    overflow: auto;
    border: 1px solid #e4e6e9;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(28, 30, 34, .035);
    scrollbar-width: thin;
    scrollbar-color: #d7d9dc transparent;
}

.archive-filter-desktop::-webkit-scrollbar {
    width: 5px;
}

.archive-filter-desktop::-webkit-scrollbar-thumb {
    background: #d7d9dc;
    border-radius: 999px;
}

.archive-filter-form {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    color: #484c52;
    background: #fff;
}

.archive-filter-header {
    min-height: 76px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eef0f2;
}

.archive-filter-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.archive-filter-heading-icon,
.archive-filter-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #656970;
}

.archive-filter-heading-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: var(--ar-orange);
    background: var(--ar-orange-soft);
}

.archive-filter-heading-icon svg {
    width: 19px;
    height: 19px;
}

.archive-filter-heading strong {
    display: block;
    color: #292c31;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.65;
}

.archive-filter-heading small {
    display: block;
    margin-top: 2px;
    color: #a0a3a9;
    font-size: 9px;
    font-weight: 600;
}

.archive-filter-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.archive-filter-reset-top {
    color: #989ca2;
    font-size: 10px;
    font-weight: 800;
    transition: color .2s ease;
}

.archive-filter-reset-top:hover {
    color: var(--ar-orange);
}

.archive-filter-close {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7ea;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    color: #62666d;
    background: #fff;
}

.archive-filter-groups {
    padding: 0 15px;
}

.archive-filter-group {
    border-bottom: 1px solid #eef0f2;
}

.archive-filter-group:last-child {
    border-bottom: 0;
}

.archive-filter-toggle,
.archive-filter-price-head {
    width: 100%;
    min-height: 62px;
    padding: 0 2px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    color: #3e4248;
    background: transparent;
    cursor: pointer;
}

.archive-filter-toggle-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 900;
}

.archive-filter-group-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #f6f7f8;
}

.archive-filter-group-icon svg {
    width: 17px;
    height: 17px;
}

.archive-filter-chevron {
    flex: 0 0 auto;
    color: #989ca2;
    transition: transform .2s ease, color .2s ease !important;
}

.archive-filter-toggle.opened {
    color: var(--ar-orange);
}

.archive-filter-toggle.opened .archive-filter-group-icon {
    color: var(--ar-orange);
    background: var(--ar-orange-soft);
}

.archive-filter-toggle.opened .archive-filter-chevron {
    color: var(--ar-orange);
}

.archive-filter-content {
    width: 100%;
    overflow: hidden;
    transition: max-height .25s ease !important;
}

.archive-filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 0 14px;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dedfe2 transparent;
}

.archive-filter-option {
    position: relative;
    min-height: 40px;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 7px 9px !important;
    border: 1px solid transparent;
    border-radius: 11px !important;
    background: transparent !important;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

.archive-filter-option:hover {
    background: #f8f9fa !important;
    border-color: #eef0f2;
}

.archive-filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.archive-filter-checkbox {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1.5px solid #c8ccd1;
    border-radius: 6px;
    background: #fff;
    position: relative;
    transition: all .18s ease;
}

.archive-filter-checkbox::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .14s ease;
}

.archive-filter-option input:checked + .archive-filter-checkbox {
    background: var(--ar-orange);
    border-color: var(--ar-orange);
    box-shadow: 0 0 0 3px rgba(250, 121, 33, .09);
}

.archive-filter-option input:checked + .archive-filter-checkbox::after {
    transform: rotate(45deg) scale(1);
}

.archive-filter-option-name {
    min-width: 0;
    flex: 1 1 auto;
    color: #555960;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-filter-option input:checked ~ .archive-filter-option-name {
    color: #2f3237;
    font-weight: 900;
}

.archive-filter-option-count {
    min-width: 27px;
    height: 22px;
    padding: 0 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9a9ea5;
    background: #f5f6f7;
    font-size: 9px;
    font-weight: 700;
}

.archive-filter-color-dot {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #d5d8dc;
    flex: 0 0 17px;
}

.archive-filter-empty {
    padding: 8px 4px 14px;
    color: #a0a3a9;
    font-size: 10px;
}

.archive-filter-price-group {
    padding-bottom: 18px;
}

.archive-filter-price-head small {
    color: #a0a3a9;
    font-size: 9px;
    font-weight: 700;
}

.archive-price-slider-wrap > .flex {
    padding: 0 !important;
    gap: 8px !important;
}

.archive-price-slider-wrap > .flex > span {
    display: none;
}

.archive-price-slider-wrap #price-slider {
    width: 100%;
}

.archive-price-slider-wrap .price-values {
    min-height: 38px;
    margin-bottom: 13px !important;
    padding: 0 10px;
    border: 1px solid #e8eaed;
    border-radius: 11px;
    background: #fafafa;
    color: #555960;
    font-size: 10px;
    font-weight: 800;
}

.archive-price-slider-wrap .range-wrap {
    height: 24px;
}

.archive-price-slider-wrap .slider-range {
    height: 5px !important;
    background: var(--ar-orange) !important;
}

.archive-price-slider-wrap .range-wrap > div:not(.slider-range) {
    height: 5px !important;
    border: 0 !important;
    background: #e5e7ea;
}

.archive-price-slider-wrap .range-input::-webkit-slider-thumb {
    background: var(--ar-orange) !important;
    box-shadow: 0 0 0 4px rgba(250, 121, 33, .12) !important;
}

.archive-price-slider-wrap .range-input::-moz-range-thumb {
    background: var(--ar-orange) !important;
    box-shadow: 0 0 0 4px rgba(250, 121, 33, .12) !important;
}

.archive-filter-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 15px 16px;
    border-top: 1px solid #eef0f2;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
}

.archive-filter-apply,
.archive-filter-clear {
    min-height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    transition: all .2s ease;
}

.archive-filter-apply {
    color: #fff;
    background: var(--ar-orange);
    box-shadow: 0 9px 18px rgba(250, 121, 33, .15);
}

.archive-filter-apply:hover {
    background: #ef6c16;
}

.archive-filter-clear {
    color: #71757b;
    border: 1px solid #dfe2e6;
    background: #fff;
}

.archive-filter-clear:hover {
    color: var(--ar-orange);
    border-color: rgba(250, 121, 33, .35);
    background: #fffaf6;
}

.archive-products-panel {
    min-width: 0;
    width: 100%;
    border: 1px solid #e7e9ec;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.archive-products-panel > ul.products {
    padding: 18px !important;
    gap: 16px !important;
}

.archive-products-panel.loading {
    min-height: 420px;
}

.archive-products-panel.fade-in {
    animation: archiveProductsFade .28s ease both;
}

@keyframes archiveProductsFade {
    from { opacity: .45; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.archive-filter-mobile,
.archive-filter-overlay {
    display: none;
}

@media (max-width: 1180px) {
    .archive-sort-form,
    .archive-shop-container {
        width: min(100% - 28px, 1180px);
    }

    .archive-shop-grid {
        grid-template-columns: 270px minmax(0, 1fr);
        gap: 16px;
    }

    .archive-filter-desktop {
        top: 88px;
    }

    .archive-sort-heading {
        display: none;
    }
}

@media (max-width: 1023px) {
    /* Mobile filter drawer — viewport based slide-in panel */
    .archive-filter-overlay {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 10010 !important;
        background: rgba(17, 20, 24, .48) !important;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity .25s ease, visibility .25s ease !important;
    }

    .archive-filter-overlay.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .archive-filter-mobile {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        left: auto !important;
        bottom: auto !important;
        width: min(90vw, 380px) !important;
        max-width: 380px !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10020 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        background: #fff !important;
        border: 0 !important;
        border-radius: 22px 0 0 22px !important;
        box-shadow: -18px 0 50px rgba(0, 0, 0, .18) !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: none !important;
        transition: right .32s cubic-bezier(.22,.75,.25,1) !important;
        overscroll-behavior: contain;
    }

    .archive-filter-mobile.is-open {
        right: 0 !important;
        pointer-events: auto !important;
    }

    .archive-filter-mobile .archive-filter-form {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100dvh !important;
        background: #fff !important;
    }

    .archive-filter-mobile .archive-filter-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 20 !important;
        min-height: 74px;
        padding: 16px !important;
        background: rgba(255,255,255,.98) !important;
        border-bottom: 1px solid #eceef1;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .archive-filter-mobile .archive-filter-groups {
        flex: 1 0 auto;
        padding-bottom: 96px;
    }

    .archive-filter-mobile .archive-filter-actions {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 20 !important;
        margin-top: auto !important;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
        background: rgba(255,255,255,.98) !important;
        border-top: 1px solid #eceef1 !important;
        box-shadow: 0 -10px 25px rgba(0,0,0,.04);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .archive-filter-mobile .archive-filter-close {
        display: inline-flex !important;
        width: 38px !important;
        height: 38px !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 11px !important;
        color: #62666d !important;
        background: #f6f7f8 !important;
        border: 1px solid #eceef1 !important;
    }

    body.admin-bar .archive-filter-mobile {
        top: 46px !important;
        height: calc(100dvh - 46px) !important;
        max-height: calc(100dvh - 46px) !important;
    }

    body.admin-bar .archive-filter-overlay {
        top: 46px !important;
    }
    html.archive-filter-open,
    body.archive-filter-open {
        overflow: hidden !important;
    }

    .archive-sort-area {
        position: sticky;
        top: 64px;
        z-index: 24;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .035);
    }

    .archive-sort-form {
        width: 100%;
        padding: 10px 12px;
    }

    .archive-sort-inner {
        gap: 8px;
    }

    .archive-sort-tabs {
        order: 2;
        gap: 6px;
    }

    .archive-sort-tab {
        min-height: 38px;
        padding: 0 12px;
        border-color: #e7e9ec;
        background: #fff;
        font-size: 11px;
    }

    .archive-mobile-filter-trigger {
        display: inline-flex;
        order: 1;
        flex: 0 0 auto;
    }

    .archive-mobile-filter-trigger.is-active {
        color: var(--ar-orange);
        border-color: rgba(250, 121, 33, .35);
        background: var(--ar-orange-soft);
    }

    .archive-shop-section {
        padding: 14px 0 24px;
    }

    .archive-shop-container {
        width: calc(100% - 20px);
    }

    .archive-shop-grid {
        display: block;
    }

    .archive-filter-desktop {
        display: none !important;
    }

    .archive-filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 90;
        background: rgba(21, 24, 29, .42);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .archive-filter-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }


    .archive-filter-mobile .archive-filter-form {
        min-height: 100%;
    }

    .archive-filter-mobile .archive-filter-header {
        position: sticky;
        top: 0;
        z-index: 6;
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(10px);
    }

    .archive-filter-mobile .archive-filter-reset-top {
        display: none;
    }

    .archive-filter-mobile .archive-filter-close {
        display: inline-flex;
    }

    .archive-filter-mobile .archive-filter-actions {
        margin-top: auto;
    }

    .archive-products-panel {
        border-radius: 16px;
    }

    .archive-products-panel > ul.products {
        padding: 12px !important;
        gap: 12px !important;
    }
}

@media (max-width: 640px) {
    .archive-sort-area {
        top: 60px;
    }

    .archive-sort-form {
        padding: 8px 10px;
    }

    .archive-mobile-filter-trigger,
    .archive-sort-tab {
        min-height: 36px;
        border-radius: 10px;
        font-size: 10px;
    }

    .archive-shop-container {
        width: calc(100% - 12px);
    }

    .archive-products-panel {
        border: 0;
        border-radius: 14px;
        background: transparent;
    }

    .archive-products-panel > ul.products {
        padding: 0 !important;
        gap: 10px !important;
    }

    .archive-filter-mobile {
        width: min(92vw, 360px);
    }
}

/* =========================================================
   ثابت: دسته‌بندی‌های اصلی بالای آرشیو فروشگاه
   ========================================================= */
.archive-category-showcase {
    width: min(100% - 48px, 1680px);
    max-width: 1680px;
    margin: 0 auto;
    padding: 24px 0 18px;
    direction: rtl;
}

.archive-category-showcase__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.archive-category-showcase__head h2 {
    margin: 0;
    color: #292b31;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.7;
}

.archive-category-showcase__grid,
.archive-category-extra {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.archive-category-card {
    min-width: 0;
    min-height: 150px;
    padding: 12px 12px 13px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #f3f3f4;
    color: #4b4f65;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    cursor: pointer;
    transition:
            transform .2s ease,
            border-color .2s ease,
            background-color .2s ease,
            box-shadow .2s ease;
}

.archive-category-card:hover {
    color: #34374c;
    background: #fff;
    border-color: #e7e8eb;
    box-shadow: 0 10px 26px rgba(32, 35, 41, .07);
    transform: translateY(-2px);
}

.archive-category-card.is-current {
    background: #fff8f3;
    border-color: rgba(250, 121, 33, .42);
    box-shadow: 0 8px 22px rgba(250, 121, 33, .08);
}

.archive-category-card__media {
    width: 100%;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-category-card__image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 94%;
    max-height: 88px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .22s ease;
}

.archive-category-card:hover .archive-category-card__image {
    transform: scale(1.035);
}

.archive-category-card__title {
    width: 100%;
    min-height: 34px;
    margin-top: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #4f5268;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.7;
}

.archive-category-card.is-current .archive-category-card__title {
    color: var(--ar-orange);
}

.archive-category-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.archive-category-card--more {
    justify-content: center;
    gap: 3px;
    user-select: none;
}

.archive-category-card--more .archive-category-card__eyebrow {
    color: #6c7082;
    font-size: 10px;
    font-weight: 800;
}

.archive-category-card--more strong {
    margin: 4px 0 2px;
    color: #696d78;
    font-size: 31px;
    font-weight: 500;
    line-height: 1;
}

.archive-category-card__more-open,
.archive-category-card__more-close {
    color: #4f5268;
    font-size: 11px;
    font-weight: 800;
}

.archive-category-card__more-close {
    display: none;
}

.archive-category-extra {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition:
            max-height .35s ease,
            margin-top .25s ease,
            opacity .25s ease,
            transform .25s ease,
            visibility .25s ease;
}

.archive-category-toggle:checked ~ .archive-category-showcase__grid + .archive-category-extra {
    max-height: 900px;
    margin-top: 12px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.archive-category-toggle:checked ~ .archive-category-showcase__grid .archive-category-card--more {
    background: #fff8f3;
    border-color: rgba(250, 121, 33, .35);
}

.archive-category-toggle:checked ~ .archive-category-showcase__grid .archive-category-card__more-open {
    display: none;
}

.archive-category-toggle:checked ~ .archive-category-showcase__grid .archive-category-card__more-close {
    display: inline;
    color: var(--ar-orange);
}

@media (max-width: 1279px) {
    .archive-category-showcase__grid,
    .archive-category-extra {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        padding-bottom: 3px;
    }

    .archive-category-showcase__grid::-webkit-scrollbar,
    .archive-category-extra::-webkit-scrollbar {
        display: none;
    }

    .archive-category-card {
        flex: 0 0 165px;
        scroll-snap-align: start;
    }

    .archive-category-extra {
        max-height: none;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .archive-category-toggle:checked ~ .archive-category-showcase__grid + .archive-category-extra {
        display: flex;
        max-height: none;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .archive-category-showcase {
        display: none !important;
    }

    .archive-category-showcase {
        width: min(100% - 24px, 1680px);
        padding: 18px 0 14px;
    }

    .archive-category-showcase__head {
        margin-bottom: 10px;
    }

    .archive-category-showcase__head h2 {
        font-size: 14px;
    }

    .archive-category-card {
        flex-basis: 138px;
        min-height: 126px;
        padding: 10px;
        border-radius: 12px;
    }

    .archive-category-card__media {
        height: 72px;
    }

    .archive-category-card__image {
        max-height: 69px;
    }

    .archive-category-card__title,
    .archive-category-card__more-open,
    .archive-category-card__more-close {
        font-size: 10px;
    }

    .archive-category-card--more strong {
        font-size: 27px;
    }
}

/* =========================================================
   V41 — Mobile filter drawer: keep action buttons always visible
   The drawer itself no longer scrolls. Only the filter groups scroll,
   while header and actions stay pinned inside the viewport.
   ========================================================= */
@media (max-width: 1023px) {
    .archive-filter-mobile {
        overflow: hidden !important;
    }

    .archive-filter-mobile .archive-filter-form {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        overflow: hidden !important;
    }

    .archive-filter-mobile .archive-filter-header {
        position: relative !important;
        top: auto !important;
        flex: 0 0 auto !important;
    }

    .archive-filter-mobile .archive-filter-groups {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-bottom: 18px !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch;
    }

    .archive-filter-mobile .archive-filter-actions {
        position: relative !important;
        inset: auto !important;
        bottom: auto !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        margin: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
        border-top: 1px solid #eceef1 !important;
        background: rgba(255, 255, 255, .98) !important;
        box-shadow: 0 -10px 26px rgba(25, 28, 33, .06) !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        z-index: 30 !important;
    }

    .archive-filter-mobile .archive-filter-apply,
    .archive-filter-mobile .archive-filter-clear {
        display: inline-flex !important;
        min-width: 0 !important;
        min-height: 46px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 480px) {
    .archive-filter-mobile .archive-filter-actions {
        padding-inline: 12px !important;
    }

    .archive-filter-mobile .archive-filter-apply,
    .archive-filter-mobile .archive-filter-clear {
        min-height: 44px !important;
        border-radius: 11px !important;
        font-size: 11px !important;
    }
}
.archive-category-showcase {
  display: none !important;
}
