/* Плавающая кнопка «Применить фильтры» — все рубрики каталога */
.grad-cat-filter-apply-float {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 10090;
    transform: translate(120%, -50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease,
        visibility 0.35s ease;
    padding-right: 0;
}

.grad-cat-filter-apply-float.is-visible {
    transform: translate(0, -50%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.grad-cat-filter-apply-float__btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.35rem 0.95rem 1.15rem;
    border: none;
    border-radius: 16px 0 0 16px;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #9b4fd6 0%, #720aa4 42%, #3d0660 100%);
    box-shadow:
        -8px 12px 32px rgba(114, 10, 164, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 0 40px rgba(155, 79, 214, 0.35);
    position: relative;
    overflow: hidden;
    min-width: 12.5rem;
    max-width: min(240px, 48vw);
    white-space: nowrap;
}

.grad-cat-filter-apply-float__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 45%,
        transparent 70%
    );
    transform: translateX(-120%);
    animation: gradCatFilterApplyShine 2.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradCatFilterApplyShine {
    0%, 72%, 100% { transform: translateX(-120%); }
    38% { transform: translateX(120%); }
}

.grad-cat-filter-apply-float__btn:hover {
    filter: brightness(1.08);
    box-shadow:
        -10px 16px 40px rgba(114, 10, 164, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 0 48px rgba(155, 79, 214, 0.5);
}

.grad-cat-filter-apply-float__btn:active {
    transform: scale(0.98);
}

.grad-cat-filter-apply-float__icon {
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.grad-cat-filter-apply-float__text {
    line-height: 1.25;
    text-align: left;
}

.grad-cat-filter-apply-float.is-visible .grad-cat-filter-apply-float__btn {
    animation: gradCatFilterApplyPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes gradCatFilterApplyPop {
    0% { transform: scale(0.88); }
    55% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@media (max-width: 991.98px) {
    .grad-cat-filter-apply-float {
        top: auto;
        bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
        transform: translate(120%, 0);
    }
    .grad-cat-filter-apply-float.is-visible {
        transform: translate(0, 0);
    }
    .grad-cat-filter-apply-float__btn {
        border-radius: 16px;
        margin-right: 0.75rem;
        font-size: 0.72rem;
        padding: 0.85rem 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grad-cat-filter-apply-float,
    .grad-cat-filter-apply-float__btn,
    .grad-cat-filter-apply-float__btn::before {
        transition: none;
        animation: none;
    }
    .grad-cat-filter-apply-float.is-visible {
        transform: translate(0, -50%);
    }
    @media (max-width: 991.98px) {
        .grad-cat-filter-apply-float.is-visible {
            transform: translate(0, 0);
        }
    }
}
