/*
|--------------------------------------------------------------------------
| CATEGORY SHOWCASE
|--------------------------------------------------------------------------
*/


.fv-category-showcase {
    padding:
        22px 0 26px;

    background:
        #f5f5f5;

    color:
        #212121;
}


.fv-category-showcase-container {
    width:
        min(
            1190px,
            calc(
                100% - 32px
            )
        );

    margin-inline:
        auto;
}


/*
|--------------------------------------------------------------------------
| HEADING
|--------------------------------------------------------------------------
*/

.fv-category-heading-row {
    min-height: 38px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 15px;
}


.fv-category-showcase
h2 {
    margin:
        0 0 9px;

    color:
        #111111;

    font-size:
        23px;

    line-height:
        1.25;

    font-weight:
        500;

    letter-spacing:
        -0.45px;
}


/*
|--------------------------------------------------------------------------
| TOP DESKTOP CONTROLS
|--------------------------------------------------------------------------
*/

.fv-category-desktop-controls {
    margin-bottom:
        8px;

    display: flex;

    align-items:
        center;

    gap: 6px;
}


.fv-category-desktop-controls
button {
    width: 30px;

    height: 30px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        #e2e3e5;

    border-radius:
        50%;

    background:
        #ffffff;

    color:
        #606773;

    cursor: pointer;

    font-size:
        10px;

    transition:
        color
            0.18s ease,
        background
            0.18s ease,
        border-color
            0.18s ease,
        transform
            0.18s ease;
}


.fv-category-desktop-controls
button:hover {
    border-color:
        #ff587d;

    background:
        #ff587d;

    color:
        #ffffff;

    transform:
        translateY(
            -1px
        );
}


/*
|--------------------------------------------------------------------------
| DESKTOP SLIDER
|--------------------------------------------------------------------------
*/

.fv-category-desktop-slider {
    width: 100%;

    position:
        relative;

    overflow:
        hidden;

    background:
        #ffffff;

    border-top:
        1px solid
        #dedede;

    border-left:
        1px solid
        #dedede;
}


/*
|--------------------------------------------------------------------------
| DESKTOP TRACK
|--------------------------------------------------------------------------
*/

.fv-category-desktop-track {
    width: 100%;

    display: flex;

    align-items:
        stretch;

    will-change:
        transform;

    transition:
        transform
        0.55s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


/*
|--------------------------------------------------------------------------
| ONE DESKTOP PAGE
|--------------------------------------------------------------------------
|
| 8 columns × 2 rows
|
*/

.fv-category-desktop-page {
    width: 100%;

    min-width: 100%;

    flex:
        0 0 100%;

    display: grid;

    grid-template-columns:
        repeat(
            8,
            minmax(
                0,
                1fr
            )
        );

    grid-template-rows:
        repeat(
            2,
            150px
        );

    background:
        #ffffff;
}


/*
|--------------------------------------------------------------------------
| DESKTOP CATEGORY ITEM
|--------------------------------------------------------------------------
*/

.fv-category-desktop-item {
    min-width: 0;

    min-height:
        150px;

    position:
        relative;

    display: flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        flex-start;

    padding:
        14px 7px
        10px;

    overflow: hidden;

    border-right:
        1px solid
        #dfdfdf;

    border-bottom:
        1px solid
        #dfdfdf;

    background:
        #ffffff;

    color:
        #101010;

    text-align:
        center;

    text-decoration:
        none;

    transform:
        translateZ(0);

    transition:
        box-shadow
            0.18s ease,
        transform
            0.18s ease,
        background
            0.18s ease;
}


/*
|--------------------------------------------------------------------------
| ITEM HOVER
|--------------------------------------------------------------------------
*/

.fv-category-desktop-item:hover {
    z-index: 3;

    background:
        #fffafb;

    box-shadow:
        inset
        0 0 0
        1px
        #ff587d;

    transform:
        translateY(
            -2px
        );
}


/*
|--------------------------------------------------------------------------
| IMAGE
|--------------------------------------------------------------------------
*/

.fv-category-desktop-image {
    width:
        84px;

    height:
        84px;

    flex:
        0 0 84px;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    margin:
        0 auto 7px;

    overflow:
        hidden;

    background:
        #ffffff;
}


.fv-category-desktop-image
img {
    width: 100%;

    height: 100%;

    object-fit:
        contain;

    user-select:
        none;

    -webkit-user-drag:
        none;

    transform:
        scale(1);

    transition:
        transform
        0.24s ease;
}


.fv-category-desktop-item:hover
.fv-category-desktop-image
img {
    transform:
        scale(1.055);
}


/*
|--------------------------------------------------------------------------
| NAME
|--------------------------------------------------------------------------
*/

.fv-category-name {
    display:
        -webkit-box;

    overflow:
        hidden;

    color:
        #111111;

    font-size:
        14px;

    line-height:
        1.22;

    font-weight:
        500;

    -webkit-line-clamp:
        2;

    -webkit-box-orient:
        vertical;
}


/*
|--------------------------------------------------------------------------
| IMAGE PLACEHOLDER
|--------------------------------------------------------------------------
*/

.fv-category-image-placeholder {
    width: 100%;

    height: 100%;

    display: grid;

    place-items:
        center;

    background:
        #ffffff;

    color:
        #c4cad3;
}


.fv-category-image-placeholder
i {
    font-size:
        17px;
}


/*
|--------------------------------------------------------------------------
| FLOATING DESKTOP ARROWS
|--------------------------------------------------------------------------
*/

.fv-category-slide-arrow {
    width: 38px;

    height: 38px;

    position:
        absolute;

    top: 50%;

    z-index: 20;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border: 0;

    border-radius:
        50%;

    background:
        rgba(
            255,
            255,
            255,
            0.96
        );

    color:
        #434b56;

    box-shadow:
        0 5px 18px
        rgba(
            15,
            23,
            42,
            0.15
        );

    cursor: pointer;

    font-size:
        12px;

    opacity: 0;

    transform:
        translateY(
            -50%
        )
        scale(
            0.92
        );

    transition:
        opacity
            0.18s ease,
        transform
            0.18s ease,
        color
            0.18s ease,
        background
            0.18s ease;
}


.fv-category-slide-arrow-left {
    left:
        10px;
}


.fv-category-slide-arrow-right {
    right:
        10px;
}


.fv-category-desktop-slider:hover
.fv-category-slide-arrow {
    opacity: 1;

    transform:
        translateY(
            -50%
        )
        scale(1);
}


.fv-category-slide-arrow:hover {
    background:
        #ff587d;

    color:
        #ffffff;
}


/*
|--------------------------------------------------------------------------
| DESKTOP DOTS
|--------------------------------------------------------------------------
*/

.fv-category-desktop-dots {
    min-height:
        22px;

    display: flex;

    align-items:
        flex-end;

    justify-content:
        center;

    gap: 6px;
}


.fv-category-desktop-dots
button {
    width: 7px;

    height: 7px;

    padding: 0;

    border: 0;

    border-radius:
        999px;

    background:
        #cfd2d7;

    cursor: pointer;

    transition:
        width
            0.22s ease,
        background
            0.22s ease,
        transform
            0.22s ease;
}


.fv-category-desktop-dots
button.is-active {
    width:
        21px;

    background:
        #ff587d;
}


/*
|--------------------------------------------------------------------------
| MOBILE HIDDEN ON DESKTOP
|--------------------------------------------------------------------------
*/

.fv-category-mobile-wrap {
    display: none;
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media
(
    max-width: 1050px
)
and
(
    min-width: 768px
) {

    /*
    |--------------------------------------------------------------------------
    | Keep two rows but use 4 columns for smaller desktop/tablet.
    |
    | Each page from JSX still contains 16 items, therefore it may create
    | four visual rows at this breakpoint. If you require exactly two rows
    | even on tablets, keep desktop width ≥ 1051px.
    |--------------------------------------------------------------------------
    */

    .fv-category-desktop-page {
        grid-template-columns:
            repeat(
                4,
                minmax(
                    0,
                    1fr
                )
            );

        grid-template-rows:
            none;

        grid-auto-rows:
            145px;
    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media
(
    max-width: 767px
) {

    /*
    |--------------------------------------------------------------------------
    | SECTION
    |--------------------------------------------------------------------------
    */

    .fv-category-showcase {
        padding:
            8px 0
            14px;

        background:
            #f5f6fa;
    }


    .fv-category-showcase-container {
        width:
            100%;

        margin: 0;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE TITLE
    |--------------------------------------------------------------------------
    */

    .fv-category-title-mobile-hidden {
        display:
            none;
    }


    .fv-category-heading-row {
        min-height: 0;
    }


    .fv-category-showcase
    h2:not(
        .fv-category-title-mobile-hidden
    ) {
        margin: 0;

        padding:
            8px 12px
            7px;

        font-size:
            18px;
    }


    /*
    |--------------------------------------------------------------------------
    | DESKTOP UI HIDE
    |--------------------------------------------------------------------------
    */

    .fv-category-desktop-slider,
    .fv-category-desktop-dots,
    .fv-category-desktop-controls {
        display:
            none;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE WRAP
    |--------------------------------------------------------------------------
    */

    .fv-category-mobile-wrap {
        display:
            block;

        width:
            100%;

        overflow:
            hidden;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE SCROLLER
    |--------------------------------------------------------------------------
    */

    .fv-category-mobile-scroller {
        width:
            100%;

        overflow-x:
            auto;

        overflow-y:
            hidden;

        overscroll-behavior-x:
            contain;

        scroll-snap-type:
            x mandatory;

        scroll-behavior:
            smooth;

        scrollbar-width:
            none;

        -ms-overflow-style:
            none;

        touch-action:
            pan-x pan-y;

        outline:
            none;
    }


    .fv-category-mobile-scroller::-webkit-scrollbar {
        display:
            none;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE TRACK
    |--------------------------------------------------------------------------
    */

    .fv-category-mobile-track {
        display:
            flex;

        width:
            max-content;

        min-width:
            100%;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE PAGE
    |--------------------------------------------------------------------------
    |
    | 5 columns × 2 rows
    |
    */

    .fv-category-mobile-page {
        width:
            100vw;

        flex:
            0 0
            100vw;

        display:
            grid;

        grid-template-columns:
            repeat(
                5,
                minmax(
                    0,
                    1fr
                )
            );

        grid-template-rows:
            repeat(
                2,
                minmax(
                    78px,
                    auto
                )
            );

        align-content:
            start;

        gap:
            5px 0;

        padding:
            9px 7px
            5px;

        scroll-snap-align:
            start;

        scroll-snap-stop:
            always;

        background:
            #f5f6fa;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE ITEM
    |--------------------------------------------------------------------------
    */

    .fv-category-mobile-item {
        min-width:
            0;

        display:
            flex;

        flex-direction:
            column;

        align-items:
            center;

        justify-content:
            flex-start;

        padding:
            2px 2px
            5px;

        color:
            #222222;

        text-align:
            center;

        text-decoration:
            none;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE IMAGE
    |--------------------------------------------------------------------------
    */

    .fv-category-mobile-image {
        width:
            50px;

        height:
            50px;

        display:
            flex;

        align-items:
            center;

        justify-content:
            center;

        margin-bottom:
            4px;

        overflow:
            hidden;

        border-radius:
            8px;

        background:
            #ffffff;
    }


    .fv-category-mobile-image
    img {
        width:
            100%;

        height:
            100%;

        object-fit:
            contain;

        user-select:
            none;

        -webkit-user-drag:
            none;

        transition:
            transform
            0.18s ease;
    }


    .fv-category-mobile-item:active
    .fv-category-mobile-image
    img {
        transform:
            scale(
                0.94
            );
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE PLACEHOLDER
    |--------------------------------------------------------------------------
    */

    .fv-category-mobile-image
    .fv-category-image-placeholder {
        border-radius:
            8px;

        background:
            #ffffff;
    }


    .fv-category-mobile-image
    .fv-category-image-placeholder
    i {
        font-size:
            15px;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE NAME
    |--------------------------------------------------------------------------
    */

    .fv-category-mobile-item
    .fv-category-name {
        width:
            100%;

        min-height:
            25px;

        display:
            -webkit-box;

        overflow:
            hidden;

        color:
            #282828;

        font-size:
            10px;

        line-height:
            1.16;

        font-weight:
            500;

        -webkit-line-clamp:
            2;

        -webkit-box-orient:
            vertical;
    }


    /*
    |--------------------------------------------------------------------------
    | MOBILE PROGRESS
    |--------------------------------------------------------------------------
    */

    .fv-category-mobile-progress {
        width:
            40px;

        height:
            4px;

        position:
            relative;

        margin:
            5px auto 0;

        overflow:
            hidden;

        border-radius:
            999px;

        background:
            #e5e6ea;
    }


    .fv-category-mobile-progress
    > span {
        height:
            100%;

        position:
            absolute;

        top: 0;

        left: 0;

        border-radius:
            inherit;

        background:
            #ff587d;

        transition:
            transform
            0.24s ease;
    }

}


/*
|--------------------------------------------------------------------------
| VERY SMALL MOBILE
|--------------------------------------------------------------------------
*/

@media
(
    max-width: 360px
) {

    .fv-category-mobile-page {
        padding-inline:
            3px;
    }


    .fv-category-mobile-image {
        width:
            46px;

        height:
            46px;
    }


    .fv-category-mobile-item
    .fv-category-name {
        font-size:
            9px;
    }

}


/*
|--------------------------------------------------------------------------
| REDUCED MOTION
|--------------------------------------------------------------------------
*/

@media
(
    prefers-reduced-motion:
        reduce
) {

    .fv-category-desktop-track,
    .fv-category-mobile-scroller,
    .fv-category-mobile-progress
    > span,
    .fv-category-desktop-item,
    .fv-category-desktop-image
    img,
    .fv-category-slide-arrow {
        transition:
            none
            !important;

        scroll-behavior:
            auto
            !important;
    }

}