/*******************************************************************************************
*   ___  _          ______                     _ _                _                        *
*  / _ \| |         | ___ \                   | (_)              | |              © 2026   *
* / /_\ | | _____  _| |_/ /_ __ __ _ _ __   __| |_ _ __   __ _   | |_ ___  __ _ _ __ ___   *
* |  _  | |/ _ \ \/ / ___ \ '__/ _` | '_ \ / _` | | '_ \ / _` |  | __/ _ \/ _` | '_ ` _ \  *
* | | | | |  __/>  <| |_/ / | | (_| | | | | (_| | | | | | (_| |  | ||  __/ (_| | | | | | | *
* \_| |_/_|\___/_/\_\____/|_|  \__,_|_| |_|\__,_|_|_| |_|\__, |  \___\___|\__,_|_| |_| |_| *
*                                                         __/ |                            *
*                                                        |___/                             *
* ---------------------------------------------------------------------------------------- *
* This is commercial software, only users who have purchased a valid license and accept    *
* to the terms of the License Agreement can install and use this program.                  *
* ---------------------------------------------------------------------------------------- *
* website: https://cs-cart.alexbranding.com                                                *
*   email: info@alexbranding.com                                                           *
*******************************************************************************************/

@circle-size: 42px;

.ab-fn-parent {
    margin-top: 20px;
    margin-bottom: 30px;
    padding-top: 15px;
    position: relative;
    .ab-fn-first-level-item, .ab-fn-second-level-item {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: baseline;
        position: relative;
        text-align: center;
        .box-sizing(border-box);
        min-height: 125px;
        .ab-fn-image-wrap {
            display: flex;
            justify-content: center;
            align-items: center;

            position: relative;
            margin: 10px auto 0 auto;
            max-width: 100%;
            min-height: 100px;
            &.ab-fn-no-image-wrapper {
                .ab-fn-no-image {
                    display: block;
                    height: 0;
                    padding: 50% 0;
                    background: darken(@content_bg, 5%);
                    i {
                        color: darken(@base, 10%);
                        &:hover {
                            color: darken(@base, 10%);
                        }
                    }
                }
            }
            .ab-fn-no-image, img {
                max-width: 100%;
            }
        }
        .ab-fn-item-header {
            padding: 10px 0;
            display: block;
            color: @font;
            .transition(0.4s ease);
            overflow: hidden;
            &:first-line {
                white-space: nowrap;
                text-overflow: ellipsis;
            }
        }
        .ab-fn-label {
            right: 0;
            padding: 2px 9px 2px 11px;
            position: absolute;
            top: 0;
            max-width: 50%;
            word-wrap: break-word;
            font-size: 12px;
        }
        &:hover {
            .ab-fn-item-header {
                color: lighten(@font, 15%);
            }
        }
        &.ab-fn-common-item-link {
            align-items: center;
            flex-direction: column-reverse;
            .ab-fn-arrow-more {
                position: relative;
                display: inline-block;
                bottom: 10px;
                width: @circle-size;
                height: @circle-size;
                border: 2px solid @links;
                .border-radius(50%);
                .transition(0.4s ease);
                i {
                    position: absolute;
                    display: inline-block;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    width: 40%;
                    height: 2px;
                    background: @links;
                    .transition(0.4s ease);
                    &:after, &:before {
                        content: '';
                        position: absolute;
                        display: block;
                        right: 0;
                        height: 2px;
                        width: 47%;
                        background: @links;
                        .transition(0.4s ease);
                    }
                    &:before {
                        top: -3px;
                        transform: rotate(45deg);
                    }
                    &:after {
                        bottom: -3px;
                        transform: rotate(315deg);
                    }
                }
                &:hover {
                    border-color: lighten(@links, 15%);
                    i {
                        background: lighten(@links, 15%);
                        &:before, &:after {
                            background: lighten(@links, 15%);
                        }
                    }
                }
            }
        }
    }
    .ab-fn-second-level {
        display: none !important;
        flex-wrap: wrap;
        padding: 10px 0;
        border: 1px solid @base;
        border-top: 0;
        .box-sizing(border-box);
        .owl-wrapper-outer {
            display: flex !important;
        }
        .ab-fn-delimeter-plus {
            position: relative;
            bottom: 5px;
            width: @circle-size;
            height: @circle-size;
            display: inline-block;
            border: 2px solid @links;
            .border-radius(50%);
            .transition(0.4s ease);
            &:before, &:after {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                background: @links;
                .border-radius(2px);
                .transition(0.4s ease);
            }
            &:before {
                width: 50%;
                height: 2px;
            }
            &:after {
                height: 50%;
                width: 2px;
            }
            &:hover {
                border-color: lighten(@links, 15%);
                &:before, &:after {
                    background: lighten(@links, 15%);
                }
            }
        }
        &.active:not(.no-items.no-parent-href) {
            display: flex !important;
        }
        div.delimeter-block {
            display: none;
            cursor: pointer;
            flex-direction: column-reverse;
            align-items: center;
        }
        div.delimeter-block[data-delimeter="1"] {
            display: inline-flex;
        }
    }
    .owl-item {
        display: flex;
        flex-wrap: wrap;
        & > div, & > a.ab-fn-second-level-item {
            width: 100% !important;
            display: flex;
        }
    }
    .ab-fn-common-link {
        margin: 25px 0 0;
        text-align: center;
        & > a {
            margin: 0 auto;
            display: inline-block;
            text-align: center;
        }
        .ab-fn-common-text-link {
            font-size: 17px;
            display: inline-flex;
            align-items: center;
            column-gap: 5px;
            i {
                position: relative;
                top: 1px;
                .transition(0.3s ease);
            }
            &:hover {
                i {
                    color: @secondary_button;
                }
            }
        }
    }
    .owl-carousel.owl-theme .owl-controls {
        .owl-prev, .owl-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 15px;
            height: 27px;
            .border-radius(0);
            border: 1px solid @base;
        }
        .owl-buttons {
            .owl-prev {
                left: 0;
                &:after {
                    display: none;
                }
            }
            .owl-next {
                right: 0;
                &:before {
                    display: none;
                }
            }
        }
    }
    .owl-theme .owl-controls {
        margin-top: 0;
    }
    .owl-item:last-child {
        .ab-fn-first-level-item {
            border-right: none;
        }
    }
    .ab-fn-hidden {
        display: none !important;
    }
}
.ab-fn-first-level-item {
    background: darken(@content_bg, 2.5%);
    border-right: 1px solid @base;
    padding-bottom: 8px;
    &.active {
        background: @content_bg;
        &:after, &:before {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 50%;
            transform: translateX(-50%);
            border: 10px solid transparent;
            border-bottom: 10px solid @content_bg;
        }
        &:before {
            bottom: 0;
            border: 11px solid transparent;
            border-bottom: 11px solid @links;
        }
        .ab-fn-item-header {
            color: @links;
        }
    }
}
.ab-fn-scrollbar {
    position: absolute;
    z-index: 1;
    top: 11px;
    width: 100%;
    height: 1px;
    .opacity(60);
    .ab-fn-scrollbar-plate {
        position: absolute;
        left: 0;
        min-width: 20px;
        top: 50%;
        height: 3px;
        border-bottom: 2px solid darken(@base, 10%);
        .border-radius(15px);
        .transition(0.6s ease);
        .translate(0, -50%);
    }
    .ab-fn-scroll-scrolled, .ab-fn-scroll-common {
        position: absolute;
        top: -15px;
        font-size: 8px;
        color: darken(@base, 10%);
    }
    .ab-fn-scroll-scrolled {
        left: 0;
    }
    .ab-fn-scroll-common {
        right: 0;
    }
}
.ab-fn-first-level {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    .box-sizing(border-box);
    border: 1px solid @base;
    &.one_level {
        &:not(.ab__fn_scroller) {
            border-right: 0;
            .owl-item:last-child .ab-fn-first-level-item {
                border-right: 1px solid @base;
            }
        }
        .ab-fn-first-level-item {
            .box-sizing(border-box);
            background: @content_bg;
            margin: 0;
            &.active {
                &:before, &:after {
                    display: none;
                }
                .ab-fn-item-header {
                    color: @text;
                }
            }
        }
    }
}
.ab-fn-second-level {
    &:not(.ab-fn-second-level-scroller) {
        .ab-fn-second-level-item {
            &:not(.delimeter-0) {
                display: none;
            }
        }
    }
}

a.ab-fn-second-level-item {
    cursor: pointer;
    &:hover {
        .ab-fn-item-header {
            color: darken(@links, 10%);
        }
    }
}

.ab-fn-fl-content, .ab-fn-sl-content {
    max-width: 100%;
    padding: 0 10px;
    .box-sizing(border-box);
}
.ab__fn_grid {
    .ab-fn-first-level-item {
        border-bottom: 1px solid @base;
        box-sizing: content-box;
    }
}
.ab-fn-no-second-lvl {
    padding: 60px 0 10px;
}

.ab-fn-clipped {
    max-height: 220px;
    .ab-fn-first-level-item, .ab-fn-second-level-item {
        max-height: 209px;
    }
}

@media screen and (max-width: 480px) {
    .ab-fn-parent {
        .ab-fn-first-level-item, .ab-fn-second-level-item {
            min-height: auto;
            .ab-fn-item-header {
                font-size: 10px;
            }
            .ab-fn-label {
                font-size: 9px;
            }
            &.scroller-item:not(.ab-fn-loaded-image) {
                .ab-fn-image-wrap:not(.ab-fn-no-image-wrapper) {
                    .ab-fn-img-loader {
                        &:before {
                            width: @circle-size;
                            height: @circle-size;
                        }
                    }
                }
            }
        }
        .ab-fn-second-level-item {
            &.ab-fn-common-item-link {
                flex-direction: column;
                justify-content: center;
                min-height: 150px !important;
                .ab-fn-arrow-more {
                    bottom: 5px;
                    width: @circle-size;
                    height: @circle-size;
                }
            }
            .ab-fn-delimeter-plus {
                width: @circle-size;
                height: @circle-size;
            }
        }
    }
    .ab-fn-no-second-lvl {
        padding: 0 0 10px;
    }
}

@keyframes abFnRotateIndicator {
    0% {
        .rotate(0deg);
    }
    100% {
        .rotate(360deg);
    }
}
@-webkit-keyframes abFnRotateIndicator {
    0% {
        .rotate(0deg);
    }
    100% {
        .rotate(360deg);
    }
}
@-moz-keyframes abFnRotateIndicator {
    0% {
        .rotate(0deg);
    }
    100% {
        .rotate(360deg);
    }
}
@-o-keyframes abFnRotateIndicator {
    0% {
        .rotate(0deg);
    }
    100% {
        .rotate(360deg);
    }
}
@-ms-keyframes abFnRotateIndicator {
    0% {
        .rotate(0deg);
    }
    100% {
        .rotate(360deg);
    }
}