body:after {
    content: "";
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 999;
    opacity: 0.8;
}

body.is-compared-active:after {
    display: block;
}

.category-intro {
    margin-bottom: 50px;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;

    .category-intro__content,
    .category-intro__button {
        width: 100%;
    }

    .category-intro__button {
        margin-top: 30px;

        button {
            width: 100%;
            border: 0;
            font-size: 18px;
            padding: 20px;
        }
    }
}

@media (min-width: 1025px) {
    .category-intro {
        .category-intro__content {
            width: calc(100% - 300px);
            padding-right: 50px;
        }

        .category-intro__button {
            margin-top: 0;
            width: 300px;
        }
    }
}

.category-intro__button--helper {
    text-align: right;

    a {
        display: inline-block;
        margin-left: 20px;
        color: #000;
    }
}

.category-intro__back {
    display: inline-block;
    position: relative;
    color: #09347a;

    &:before {
        content: "";
        display: inline-block;
        vertical-align: middle;
        margin-right: 5px;
        width: 8px;
        height: 8px;
        border: 1px solid #09347a;
        border-right: 0;
        border-bottom: 0;
        transform: rotate(-45deg);
        position: relative;
        top: -1px;
    }
}

.category-intro__description {
    margin-top: 20px;
}

.category-filter {
    display: none;
    background-color: #ebebeb;
    padding: 40px 40px 0;
    margin-bottom: 50px;
    
    .category-filter__row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -20px;
    }

    select {
        border: 1px solid #8B8B8B;
        border-bottom: 5px solid #09347a;
        padding: 10px 13px;
        width: 100%;
        height: 45px;
    }

    input[type=text],
    .facetwp-type-search .facetwp-input-wrap input.facetwp-search {
        height: 45px;
        background-color: #fff;
        border: 1px solid #8B8B8B;
        border-bottom: 5px solid #09347a;
        padding: 10px 13px;
        border-radius: 0;
        color: #000;
    }

    .facetwp-facet {
        margin-bottom: 0;
    }
}

.category-filter__item {
    width: 100%;
    padding: 0 20px 40px;
}

@media (min-width: 768px) {
    .category-filter__item {
        padding: 0 20px 40px;
        width: 50%;
    }
}

.category-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 -10px -20px;
}

.category-grid--compare .category-row {
    justify-content: center;
    margin: 0;

    .category-item {
        padding: 0;
    }

    .category-image {
        padding: 10px;
    }
}

.category-item {
    width: 100%;
    padding: 0 10px 20px;
}

.category-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    border: 0.0625rem solid rgba(0, 0, 0, 0.125);
    text-decoration: none;
}

.category-row--equipment-list {
    .category-link {
        border: 0;
        padding-bottom: 5px;
    }

    .category-box {
        padding-bottom: 30px;
        border: 0.0625rem solid rgba(0, 0, 0, 0.125);
    }

    .category-content {
        padding-bottom: 0;
    }
}

.category-image {
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-content {
    text-align: center;
    padding: 25px 15px;
    margin-top: auto;

    h3 {
        font-weight: 500;
        font-size: 22px;
        margin: 0;
    }
}

@media (min-width: 768px) {
    .category-item {
        width: 50%;
    }
}

@media (min-width: 1025px) {
    .category-item {
        width: 25%;
    }

    .category-row--1 {
        .category-item {
            width: 100%;
        }       
    }
    
    .category-row--2 {
        .category-item {
            width: 50%;
        }
    }

    .category-row--3 {
        .category-item {
            width: 33.33%;
        }       
    }

    .category-image {
        height: 250px;
        padding: 10px;

        img {
            width: auto;
            max-width: 100%;
            height: 100%;
            object-fit: contain;
        }
    }
}

.category-grid {
    .facetwp-type-pager {
        margin-top: 30px;
        text-align: center;

        button {
            border-radius: 0;
            font-size: 18px;
            padding: 15px 40px;
        }
    }
}

.category-content__compare {
    text-align: center;
    margin-top: 5px;

    .category-content__compare__button {
        background-color: transparent;
        color: #09347a;
        padding: 0;
        border: 0;
        display: inline-flex;
        align-items: center;
        cursor: pointer;

        > span {
            display: inline-block;
            vertical-align: middle;
            width: 12px;
            height: 12px;
            border: 1px solid #ccc;
            margin-right: 7px;
            position: relative;

            &:before {
                content: "";
                display: block;
                width: 6px;
                height: 12px;
                border: 2px solid #09347a;
                border-top: 0;
                border-left: 0;
                position: absolute;
                top: -2px;
                left: 4px;
                transform: rotate(45deg);
                opacity: 0;
                transition: opacity 0.3s ease-in-out;
            }
        }

        &:hover {
            background-color: transparent;
            color: #09347a;
            border: 0;
        }
    }
}

.category-content__compare {
    .category-content__compare__button.is-disabled {
        opacity: 0.6;
        pointer-events: none;
        color: #ccc;
    }
}

.category-content__compare {
    .category-content__compare__button.is-checked {
        > span:before {
            opacity: 1;
        }
    }
}

.equipment-compare {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;

    display: none;
}

@media (min-width: 1025px) {
    .equipment-compare {
        bottom: 60%;
    }
}

.equipment-compare__button {
    background-color: #3a3a3a;
    color: #fff;
    text-transform: uppercase;
    font-size: 11px;
    display: block;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
    position: relative;
}

.equipment-compare__button:before,
.equipment-compare__button:after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid #9a9797;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.equipment-compare__button:before {
    animation: comparePulse 1.5s infinite;
}

.equipment-compare__button:after {
    animation: comparePulse 1.5s infinite;
    animation-delay: 0.5s;
}

@keyframes comparePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
    
}


.equipment-compare__box {
    width: 300px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    position: absolute;
    bottom: 110px;
    right: 0;
    display: none;
}

.equipment-compare__close {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: #3a3a3a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    > span {
        width: calc(100% - 10px);
        height: calc(100% - 10px);
        display: block;
        position: relative;

        &:before,
        &:after {
            content: "";
            display: block;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);    
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #fff;
        }

        &:before {
            transform: translateY(-50%) rotate(45deg);
        }

        &:after {
            transform: translateY(-50%) rotate(-45deg);
        }
    }
}

.equipment-compare__row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 0;
}

.equipment-compare__item {
    width: 33.33%;
    padding: 0 10px 20px;
}

.equipment-compare__item__content {
    margin-top: 10px;

    h3 {
        font-size: 14px;
        margin-bottom: 0;
    }
}

.equipment-compare__remove {
    display: block;
    border-top: 1px solid #ccc;
    margin-top: 10px;
    padding-top: 10px;
    line-height: 1;
    font-size: 12px;
    cursor: pointer;
}

.equipment-compare__cta {
    a {
        display: block;
        width: 100%;
        padding: 10px 20px;
        background-color: #09347a;
        color: #fff;
        text-transform: uppercase;
        font-size: 11px;
        text-decoration: none;

        &:hover {
            color: #fff;
            background-color: #090948;
        }
    }
}

.category-info__upper {
    text-align: center;
    padding: 10px 20px;
}

.equipment-button {
    display: inline-block;
    background-color: #09347a;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    padding: 8px 25px;
    margin-top: 15px;
    margin-bottom: 0;

    &:hover {
        background-color: #090948;
        color: #fff;
        border: 0;
    }
}

.category-info__list {
    list-style: none;
    color: #000;
    padding: 0;
    margin: 0;

    li {
        padding: 5px 10px;
        border-top: 1px solid #ccc;

        p {
            margin: 0;
            font-size: 14px;

            span {
                font-weight: bold;
            }
        }
    }

    li:nth-child(odd) {
        background-color: #f2f2f2;
    }

    li:first-child {
        padding: 15px 10px;
        text-align: center;

        p {
            font-size: 18px;
            text-transform: uppercase;
        }
    }
}

.equipment-feed .fl-post-feed {
    justify-content: center !important;
}


/*
 * FX Icon List
 */
.fx-icon-list {
    list-style: none;
    padding: 0;
}
.fx-icon-list-item {
    margin-bottom: 10px;
    font-size: 18px;
    display: flex;
    font-weight: 500;
    align-items: center;
    gap: 10px;
}
.fx-icon-list-item i {
    color: #c4112f;
    font-size: 20px;
    border: 1px solid #c4112f;
    border-radius: 100%;
    padding: 5px;
    flex-shrink: 0;
    width: 33px;
    height: 33px;
}
.fx-icon-list--blue .fx-icon-list-item i {
    color: #09347a;
    border: 1px solid #09347a;
}


/* New Custom Hover Effect for Category Grid */
.show-on-hover {
    position: relative;
    margin-bottom: -5%;
    transition : all 0.3s ease 0s;
    height: 0;
    opacity: 0;

    & p {
        color: #000;
    }

    & span {
        color: #000;
        font-weight: 500;
        text-transform: uppercase;
    }
}

.category-link:hover .show-on-hover {
    margin-bottom: 0;
    height: auto;
    opacity: 1;
}

.category-link--hover {
    height: 380px;
    overflow: hidden;
    position: relative;

    & .category-image {
        position: absolute;
        left: 0;
    }

    &:hover {
        background-color: #F4F4F4;
        transition: ease 0.3s all;

        & .category-image {
            opacity: 0.2;
            z-index: 0;
        }

        & .category-content {
            position: relative;
            z-index: 99;
        }
    }
    
}
