/**=====================
    Header scss
==========================**/
header {
    .top-header {
        position: absolute;
        top: 41px;
        z-index: 2;
        width: 100%;

        .navbar {
            background-color: rgba($white, 0.749);
            padding: calc(14px + (21 - 14) * ((100vw - 320px) / (1920 - 320)));
            margin-top: calc(8px + (13 - 8) * ((100vw - 320px) / (1920 - 320)));
            border-radius: calc(8px + (13 - 8) * ((100vw - 320px) / (1920 - 320)));
            box-shadow: 8px 8px 0px 0px rgba(221, 221, 221, 0.122);
            gap: 14px;

            body.dark & {
                background-color: #323640;
                box-shadow: 8px 8px 0px 0px rgba(66, 66, 66, 0.122);
            }
        }
    }

    .custom-navbar {
        .logo-content {
            display: flex;
            align-items: center;
            gap: calc(4px + (12 - 4) * ((100vw - 320px) / (600 - 320)));
        }

        i {
            --Iconsax-Size: 18px;
            --Iconsax-Color: #ffffff;
        }

        .navbar-brand {
            margin: 0;
            padding: 0;
            font-size: 0;

            img {
                height: calc(34px + (46 - 34) * ((100vw - 320px) / (1920 - 320)));
            }
        }

        .nav-right {
            gap: calc(6px + (18 - 6) * ((100vw - 320px) / (1920 - 320)));

            @media (max-width: 600px) {
                .nav-item-right {

                    // &:first-child,
                    &:nth-child(2),
                    &:nth-child(3) {
                        display: none;
                    }
                }
            }

            .nav-item-right {
                border: 1px solid rgba($white, 0.1);
                background-color: rgba($white, 0.1);
                padding: calc(5px + (7 - 5) * ((100vw - 320px) / (1920 - 320))) calc(6px + (9 - 6) * ((100vw - 320px) / (1920 - 320)));
                border-radius: 100%;
                position: relative;

                .badge {
                    position: absolute;
                    width: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
                    height: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
                    top: -5px;
                    right: -5px;
                    background-color: $danger-color;
                    border-radius: 100%;
                    padding: 0;
                    @include flex_common;
                    font-size: calc(10px + (12 - 10) * ((100vw - 320px) / (1920 - 320)));

                    [dir="rtl"] & {
                        right: unset;
                        left: -5px;
                    }
                }

                &.login-btn {
                    border: none;
                    background-color: transparent;
                    padding: 0;
                }

                .btn {
                    padding: 0;
                    border: none;

                    i {
                        --Iconsax-Size: calc(19px + (23 - 19) * ((100vw - 320px) / (1920 - 320)));
                        border-radius: 100%;
                        --Iconsax-Color: #222;

                        body.dark & {
                            --Iconsax-Color: #ffffff;
                        }
                    }
                }
            }

            .language-dropdown,
            .currency-dropdown,
            .profile-dropdown {
                display: flex;
                align-items: center;
                gap: 6px;
                padding: 8px;
                border-radius: 30px;
                height: 42px;

                img {
                    width: 24px !important;
                    height: 24px !important;
                    border-radius: 100%;
                }

                .language-btn,
                .currency-btn,
                .profile-btn {
                    background: transparent;
                    color: $white;
                    border: none;
                    line-height: 1;
                    padding: 0;
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    white-space: nowrap;

                    span,
                    a {
                        color: $white;
                        display: inline-flex;
                        align-items: center;
                        gap: 10px;
                        line-height: 1;
                        font-size: 16px;
                    }
                }

                .onhover-show-div {
                    min-width: 150px;
                    transition: all 0.3s ease-in-out;
                    position: absolute;
                    z-index: 3;
                    border: 1px solid rgba($white, 0.10);
                    background-color: #1d2537;
                    opacity: 0;
                    visibility: hidden;
                    transform: translate3d(0, -5%, 0);
                    top: 45px;
                    right: 0;
                    padding: 15px;
                    border-radius: 12px;
                    width: max-content;

                    [dir="rtl"] & {
                        left: 0;
                        right: unset;
                    }

                    .lang,
                    .currency,
                    .profile,
                    .page-link {
                        cursor: pointer;
                        transition: all 0.3s;
                        display: flex;
                        align-items: center;
                        border: none;
                        color: rgba($white, 0.6);
                        background-color: transparent;
                        gap: 10px;
                        font-size: 15px;
                        padding: 0;
                        white-space: nowrap;

                        a {
                            color: rgba($white, 0.6);
                            display: flex;
                            align-items: center;
                            gap: 10px;
                        }

                        i {
                            --Iconsax-Color: rgba(255, 255, 255, 0.6);
                        }

                        .lang-img {
                            width: 24px !important;
                            height: 24px !important;
                        }

                        &:hover {
                            color: $white;
                            transform: translateX(5px);

                            a {
                                color: $white;
                            }

                            i {
                                --Iconsax-Color: #ffffff;
                            }

                            [dir="rtl"] & {
                                transform: translateX(-5px);
                            }
                        }

                        +li {
                            margin-top: 16px;
                        }
                    }

                    .currency {
                        img {

                            height: 24px !important;
                        }
                    }
                }

                &:hover {
                    .onhover-show-div {
                        opacity: 1;
                        visibility: visible;
                        transform: none;
                    }
                }

                .profile-btn {
                    .initial-letter {
                        background-color: $white;
                        padding: 5px;
                        color: $title-color;
                        border-radius: 100%;
                        width: 24px;
                        height: 24px;
                        @include flex_common;
                        font-size: 14px;
                        font-weight: 500;
                    }

                    .profile-text {
                        @media (max-width: 576px) {
                            display: none;
                        }
                    }

                    @media (max-width: 576px) {
                        gap: 0;
                    }
                }
            }

            .currency-dropdown {
                padding-left: 40px !important;

                .currency-btn {
                    img {
                        position: absolute;
                        @include center(vertical);
                        left: 8px;
                    }
                }
            }

            .profile-dropdown {
                img {
                    width: 24px !important;
                    height: 24px !important;
                    border-radius: 100%;
                }

                .onhover-show-div {
                    top: 53px;
                    width: 100%;
                }
            }

            i {
                --Iconsax-Size: 18px;
            }
        }

        .navbar-toggler {
            border: none;
            padding: 0;

            .navbar-toggler-icon {
                @include pseudowh($width: calc(22px + (24 - 22) * ((100vw - 320px) / (1920 - 320))), $height: calc(22px + (24 - 22) * ((100vw - 320px) / (1920 - 320))));

                body.dark & {
                    filter: invert(20);
                }
            }

            &:focus {
                box-shadow: none;
            }
        }

        .navbar-collapse {
            .navbar-nav {
                gap: 30px;

                @media (max-width: 1199.98px) {
                    gap: 0;
                }

                .nav-item {
                    .nav-link {
                        font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)));
                        color: rgba($title-color, 0.8);
                        padding-left: 0;
                        font-weight: 500;
                        padding-right: 0;
                        position: relative;
                        transition: all 0.3s ease-in-out;

                        body.dark & {
                            color: #ffffffcc;
                        }

                        @media (max-width: 1199.98px) {
                            color: $title-color;
                            padding: 0;
                            display: flex;
                            align-items: center;
                            gap: calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320)));
                        }

                        &::before {
                            @include pos;
                            bottom: 0;
                            left: 50%;
                            transform: translateX(-50%);
                            width: 0;
                            height: 2px;
                            background-color: var(--theme-color);
                            transition: all 0.3s ease-in-out;

                            @media (max-width: 1199.98px) {
                                position: relative;
                                inset: unset;
                                transform: unset;
                                width: calc(5px + (6 - 5) * ((100vw - 320px) / (1200 - 320)));
                                height: calc(4px + (6 - 4) * ((100vw - 320px) / (1200 - 320)));
                                border-radius: 100%;
                                display: block;
                                background-color: rgba($light-color, 0.6);
                            }
                        }

                        &:hover {
                            color: var(--theme-color);

                            body.dark & {
                                color: var(--theme-color);
                            }

                            &::before {
                                width: calc(100% - 14px);

                                @media (max-width: 1199.98px) {
                                    width: calc(5px + (6 - 5) * ((100vw - 320px) / (1200 - 320)));
                                    background-color: var(--theme-color);
                                }
                            }
                        }

                        &.active {
                            font-weight: 500;
                            color: var(--theme-color);

                            body.dark & {
                                color: var(--theme-color);
                            }

                            &::before {
                                width: calc(100% - 14px);

                                @media (max-width: 1199.98px) {
                                    width: calc(5px + (6 - 5) * ((100vw - 320px) / (1200 - 320)));
                                    background-color: var(--theme-color);
                                }
                            }
                        }
                    }
                }
            }

            @media (max-width: 1199.98px) {
                position: fixed;
                top: 0;
                background-color: $white;
                left: -350px;
                width: calc(300px + (320 - 300) * ((100vw - 320px) / (1200 - 320)));
                height: 100%;
                transition: all 0.3s ease-in-out;
                visibility: visible;
                opacity: 1;
                display: block;

                body.dark & {
                    background-color: #1d2537;
                }

                [dir="rtl"] & {
                    left: unset;
                    right: -350px;
                }

                .navbar-header {
                    padding: calc(18px + (20 - 18) * ((100vw - 320px) / (1200 - 320))) calc(15px + (20 - 15) * ((100vw - 320px) / (1200 - 320)));
                    @include flex_common ($dis: flex, $align: center, $justify: space-between);
                    box-shadow: 0 8px 10px rgba($title-color, 0.05);

                    h4 {
                        color: var(--theme-color);
                        font-weight: 600;
                        line-height: 23px;
                    }

                    i {
                        --Iconsax-Size: 18px;
                        --Iconsax-Color: #a3aab1;
                    }

                    .btn-close {
                        box-shadow: unset;
                        position: relative;
                        width: auto;
                        height: auto;
                        background: none;
                        padding: 0;
                        opacity: 1;

                        .feather {
                            width: 22px;
                            height: 22px;

                            body.dark & {
                                color: #ffffff;
                            }
                        }
                    }
                }

                .navbar-nav {
                    padding: calc(18px + (20 - 18) * ((100vw - 320px) / (1200 - 320))) calc(15px + (20 - 15) * ((100vw - 320px) / (1200 - 320)));
                    height: 100%;
                    gap: 0;
                    overflow: auto;

                    .nav-item {
                        +.nav-item {
                            margin-top: calc(9px + (12 - 9) * ((100vw - 320px) / (1200 - 320)));
                            padding-top: calc(9px + (12 - 9) * ((100vw - 320px) / (1200 - 320)));
                            border-top: 1px solid $border-color;

                            body.dark & {
                                border-color: #647683;
                            }
                        }
                    }
                }

                &.show {
                    left: 0;
                    z-index: 2;

                    [dir="rtl"] & {
                        left: unset;
                        right: 0;
                    }
                }
            }
        }
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 12px;

        .nav-item-right {
            border: 1px solid rgba($white, 0.1);
            background-color: rgba($white, 0.1);
            padding: calc(5px + (7 - 5) * ((100vw - 320px) / (1920 - 320))) calc(6px + (9 - 6) * ((100vw - 320px) / (1920 - 320)));
            border-radius: 100%;
            position: relative;

            .btn {
                &.btn-outline {
                    border-radius: 30px;
                    padding: 8px 30px;
                    border-color: $title-color;
                    color: $title-color;
                    background-color: transparent;

                    @media (max-width: 991.98px) {
                        padding: 4px 12px;
                        font-size: 16px;
                    }
                }
            }
        }

        .language-dropdown,
        .currency-dropdown,
        .profile-dropdown {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px;
            border-radius: 30px;
            height: 42px;

            img {
                width: 26px;
                height: 20px;
                border-radius: 3px;
            }

            .language-btn,
            .currency-btn,
            .profile-btn {
                background: transparent;
                color: $white;
                border: none;
                line-height: 1;
                padding: 0;
                display: flex;
                align-items: center;
                gap: 5px;
                white-space: nowrap;

                span,
                a {
                    color: $white;
                    display: inline-flex;
                    align-items: center;
                    gap: 6px;
                    line-height: 1;
                    margin-top: 2px;
                    font-size: 15px;
                    font-weight: 600;
                }

                i {
                    --Iconsax-Color: #ffffff;
                }

                .feather {
                    width: 19px;
                    height: 19px;
                }
            }

            .onhover-show-div {
                min-width: 130px;
                transition: all 0.3s ease-in-out;
                position: absolute;
                z-index: 3;
                border: 1px solid $border-color;
                background-color: $section-bg;
                opacity: 0;
                box-shadow: none;
                visibility: hidden;
                transform: translate3d(0, -5%, 0);
                top: 27px;
                right: 0;
                padding: 15px;
                border-radius: 8px;
                width: max-content;

                [dir="rtl"] & {
                    left: 0;
                    right: unset;
                }

                body.dark & {
                    background-color: #323640;
                    border-color: #454851;

                    li {
                        a {
                            color: $white;
                        }
                    }
                }

                .lang,
                .currency,
                .profile,
                .page-link {
                    cursor: pointer;
                    transition: all 0.3s;
                    display: flex;
                    align-items: center;
                    border: none;
                    color: rgba($white, 0.6);
                    background-color: transparent;
                    gap: 10px;
                    font-size: 15px;
                    padding: 0;
                    white-space: nowrap;

                    a {
                        color: $title-color;
                        display: flex;
                        transition: all 0.2s ease-in-out;
                        align-items: center;
                        gap: 8px;
                        line-height: 1;
                    }

                    i {
                        --Iconsax-Color: rgba(255, 255, 255, 0.6);
                    }

                    &:hover {
                        color: $white;
                        transform: translateX(5px);

                        a {
                            color: var(--theme-color);
                        }

                        i {
                            --Iconsax-Color: #ffffff;
                        }

                        [dir="rtl"] & {
                            transform: translateX(-5px);
                        }
                    }

                    +li {
                        margin-top: 16px;
                    }
                }
            }

            &:hover {
                .onhover-show-div {
                    opacity: 1;
                    visibility: visible;
                    transform: none;
                }
            }

            .profile-btn {
                .initial-letter {
                    background-color: $white;
                    padding: 5px;
                    color: $title-color;
                    border-radius: 100%;
                    width: 24px;
                    height: 24px;
                    @include flex_common;
                    font-size: 14px;
                    font-weight: 500;
                }

                .profile-text {
                    @media (max-width: 576px) {
                        display: none;
                    }
                }

                @media (max-width: 576px) {
                    gap: 0;
                }
            }
        }

        .currency-dropdown {
            padding-left: 40px !important;

            .currency-btn {
                img {
                    position: absolute;
                    @include center(vertical);
                    left: 8px;
                }
            }
        }

        .profile-dropdown {
            img {
                width: 24px !important;
                height: 24px !important;
                border-radius: 100%;
            }

            .onhover-show-div {
                top: 53px;
                width: 100%;
            }
        }

        i {
            --Iconsax-Size: 18px;
            --Iconsax-Color: #ffffff;
        }
    }

    .sub-header {
        background-color: var(--secondary-color);
        padding: 10px 0;

        .d-flex {
            align-items: center;
            justify-content: space-between;
        }

        .nav-right {
            gap: 0;

            .nav-item-right {
                border-radius: 0;
                position: relative;

                +.nav-item-right {
                    margin-left: 10px;
                    padding-left: 10px !important;

                    [dir="rtl"] & {
                        margin-left: unset;
                        margin-right: 10px;
                        padding-left: unset !important;
                        padding-right: 10px !important;
                    }

                    &::before {
                        @include pos;
                        left: 0;
                        @include center(vertical);
                        height: 90%;
                        width: 1px;
                        border-left: 1px solid rgba($border-color, .26);

                        [dir="rtl"] & {
                            left: unset;
                            right: 0;
                        }
                    }
                }
            }

            .currency-dropdown,
            .language-dropdown {
                background-color: transparent;
                border: none;
                padding: 0 !important;
                height: auto;

                .currency-btn,
                .language-btn {
                    img {
                        position: relative;
                        inset: unset;
                        transform: unset;
                        height: 16px !important;
                        width: 19px !important;
                        border-radius: 2px;
                    }

                    span {
                        gap: 6px;
                    }
                }
            }
        }

        .location-dropdown {
            display: flex;
            align-items: center;
            gap: 6px;
            max-width: 220px;

            @media (max-width:1199px) {
                max-width: calc(100px + (250 - 100) * ((100vw - 320px) / (1199 - 320)));
            }

            .location-btn {
                background: transparent;
                color: $white;
                border: none;
                line-height: 1;
                padding: 0;
                display: flex;
                align-items: center;
                gap: 7px;
                overflow: auto;

                @media (max-width:576px) {
                    gap: 0;
                }

                .location {
                    --Iconsax-Size: 20px;
                    --Iconsax-Color: #ffffff;
                }

                .location-part {
                    overflow: hidden;
                    display: flex;

                    >i {
                        display: none;
                    }

                    .location-place {
                        font-size: 16px;
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                    }
                }

                .arrow {
                    --Iconsax-Size: 18px;
                    --Iconsax-Color: #ffffff;

                    @media (max-width:576px) {
                        display: none;
                    }
                }

                span {
                    display: inline-flex;
                    gap: 6px;
                    line-height: 1;
                    font-size: 16px;
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    display: block;

                    @media (max-width:576px) {
                        display: none;
                    }
                }
            }

            .onhover-show-div {
                min-width: 480px;
                transition: all 0.3s ease-in-out;
                position: absolute;
                z-index: 3;
                border: 1px solid $border-color;
                background-color: $section-bg;
                opacity: 0;
                visibility: hidden;
                transform: translate3d(0, -5%, 0);
                top: 45px;
                left: 0;
                box-shadow: none;
                padding: 15px;
                border-radius: 12px;
                width: 100%;

                body.dark & {
                    background-color: #323640;
                    border: 1px solid #454851;
                }

                [dir="rtl"] & {
                    left: unset;
                    right: 0;
                }

                @media (max-width:767px) {
                    left: -120px !important;

                    [dir="rtl"] & {
                        left: unset !important;
                        right: -120px !important;
                    }
                }

                @media (max-width: 550px) {
                    min-width: calc(300px + (480 - 300) * ((100vw - 320px) / (550 - 320)));
                }

                .detect-location {
                    .detect-location-title {
                        display: flex;
                        align-items: start;
                        gap: 4px;

                        [dir="rtl"] & {
                            align-items: end;
                        }

                        .location-icon {
                            margin-top: 4px;
                            --Iconsax-Color: #222;
                            --Iconsax-Size: 16px;
                        }

                        h4 {
                            font-size: 16px;
                            color: $title-color;
                            line-height: 1.5;
                        }

                        .close-btn {
                            margin-left: auto;
                            cursor: pointer;

                            [dir="rtl"] & {
                                margin-left: unset;
                                margin-right: auto;
                            }

                            i {
                                --Iconsax-Color: var(--theme-color);
                            }
                        }

                        body.dark & {
                            h4 {
                                color: $white;
                            }

                            .location-icon {
                                --Iconsax-Color: #ffffff;
                            }
                        }
                    }

                    .location-content {
                        display: flex;
                        align-items: center;
                        gap: 10px;
                        margin-top: 20px;

                        @media (max-width: 550px) {
                            display: block;
                        }

                        .detect-btn {
                            border-radius: 8px;

                            &:hover,
                            &:active {
                                color: $white;
                                background-color: var(--theme-color);
                                border-color: transparent;

                                i {
                                    --Iconsax-Color: #ffffff;
                                }
                            }

                            i {
                                transition: all 0.2s ease-in-out;
                                --Iconsax-Color: var(--theme-color);
                            }

                            @media (max-width: 550px) {
                                width: 100%;
                            }
                        }

                        .manually-location-btn {
                            display: inline-block;
                            width: auto;
                            border-radius: 8px;

                            &:hover {
                                color: var(--theme-color);
                                background-color: transparent;
                            }

                            @media (max-width: 550px) {
                                width: 100%;
                            }
                        }

                        span {
                            color: $light-color;
                            font-weight: 600;

                            @media (max-width: 550px) {
                                width: 100%;
                                margin: 10px 0;
                                text-align: center;
                            }
                        }

                        .or-text {
                            text-align: center;
                        }

                        .location-search {
                            background-color: $section-bg;

                            &::placeholder {
                                color: #a3aab1;
                            }
                        }
                    }

                    :hover {
                        a {
                            color: $white;
                        }
                    }
                }

                .location {
                    cursor: pointer;
                    transition: all 0.3s;
                    display: flex;
                    align-items: start;
                    justify-content: start;
                    border: none;
                    color: rgba($white, 0.6);
                    background-color: transparent;
                    gap: 8px;
                    font-size: 16px;
                    padding: 0;

                    >div {
                        h5 {
                            color: $white;
                            font-size: 18px;

                        }

                        h6 {
                            color: rgba($white, 0.5);
                            font-size: 16px;
                            margin-top: 4px;
                        }

                        img {
                            border-radius: 0 !important;
                            width: auto !important;
                            height: auto !important;
                        }

                        i {
                            margin-top: 3px;
                            --Iconsax-Color: rgba(255, 255, 255, 0.6);
                        }
                    }

                    &:hover {
                        color: $white;

                        i {
                            --Iconsax-Color: #ffffff;
                        }
                    }

                    +li {
                        margin-top: 16px;
                    }
                }

                &.show {
                    visibility: visible;
                    opacity: 1;
                    top: 36px;
                    left: 0;
                    z-index: 999;

                    [dir="rtl"] & {
                        left: unset;
                        right: 0;
                    }
                }
            }

            .overlay {
                position: fixed;
                top: 0;
                left: 0;
                @include pseudowh;
                background-color: rgba(0, 0, 0, 0.75);
                z-index: 900;

                [dir="rtl"] & {
                    left: unset;
                    right: 0;
                }
            }
        }
    }

    &.active {
        .top-header {
            position: fixed;
            top: 0;
            z-index: 2;
            background-color: $white;
            box-shadow: 4px 4px 16px #c7c7c73d;

            body.dark & {
                background-color: #252934;
                box-shadow: 4px 4px 16px #c7c7c700;
            }

            .navbar {
                background-color: transparent;
                padding: calc(12px + (18 - 12) * ((100vw - 320px) / (1920 - 320))) 0;
                margin-top: 0;
                box-shadow: unset;
                gap: 14px;

                body.dark & {
                    background-color: transparent;
                    box-shadow: unset;
                }
            }
        }
    }

    &:has(~.breadcrumb-section) {
        .top-header {
            position: relative;
            inset: unset;

            .navbar {
                background-color: transparent;
                box-shadow: none;
                margin: 0;
                padding-inline: unset;

                body.dark & {
                    background-color: transparent;
                    box-shadow: none;
                }
            }
        }

        &.active {
            .top-header {
                position: fixed;
                top: 0;
                z-index: 2;
                background-color: $white;
                box-shadow: 4px 4px 16px #c7c7c73d;

                .navbar {
                    background-color: transparent;
                    padding: calc(12px + (18 - 12) * ((100vw - 320px) / (1920 - 320))) 0;
                    margin-top: 0;
                    box-shadow: unset;
                    gap: 14px;
                }
            }
        }
    }
}

.offer-text {
    line-height: 1.4;
    color: $white;
    text-align: center;
    font-size: 15px;

    strong,
    a {
        color: var(--theme-color);
        font-weight: 600;
    }
}

.offer-header-slider {
    height: 21px;
}