/* ==========================================================================
   Header Styles
   Mobile First Approach
   ========================================================================== */

:root {
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-200: #e9d5ff;
    --purple-600: #9333ea;
    --purple-700: #7e22ce;
    --purple-800: #6b21a8;
    --blue-50: #eff6ff;
    --blue-600: #2563eb;
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-600: #db2777;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* ==========================================================================
   Top Bar (Mobile Default)
   ========================================================================== */
.topbar {
    padding: 5px 0;

    .topbar-address {
        display: block;
        width: auto;
        text-align: center;
        list-style: none;
        margin: 0;
        padding: 0;

        li {
            display: inline-block;
            vertical-align: top;
            margin: 10px 3% 10px;
            line-height: 1;
            padding: 0;

            * {
                line-height: 1;
            }

            p {
                display: inline-block;
                vertical-align: middle;
                font-size: 15px;
                color: var(--secondary-color);
                margin: 0;
                padding: 0;
                line-height: 1.42857143;

                span {
                    color: #9296b1;
                    margin-right: 5px;
                }
            }

            a {
                transition: all 0.2s;
                border-bottom: 1px solid transparent;

                &:hover {
                    border-color: var(--secondary-color);
                }
            }
        }
    }

    .topbar-social {
        display: block;
        width: auto;
        text-align: center;
        padding: 0;
        list-style: none;
        margin: 0;

        li {
            display: inline-block;
            vertical-align: middle;
            margin: 5px 38px 5px 0;
            line-height: 1.42857143;
            padding: 0;

            a {
                transition: all 0.2s;
                color: var(--secondary-color);
                font-size: 18px;
                border: none;

                &:hover {
                    opacity: 0.8;
                    color: var(--secondary-color);
                    text-decoration: none;
                }
            }

            .links_list-value {
                color: var(--secondary-color);
                font-size: 18px;
            }
        }
    }

    &.topbar-onlysocial {
        .topbar-social {
            display: block;
            width: auto;
            text-align: center;
        }

        .topbar-address {
            display: none !important;
        }
    }

    &.topbar-onlycontacts {
        .topbar-address {
            display: block;
            width: auto;
            text-align: center;
        }

        .topbar-social {
            display: none !important;
        }
    }

    .topbar-contacts li .links_list-value {
        color: var(--secondary-color);
    }

    /* Topbar Desktop (>= 1400px) */
    @media (min-width: 1400px) {
        .topbar-address {
            display: inline-block;
            vertical-align: middle;
            width: 68%;
            text-align: right;
        }

        .topbar-social {
            display: inline-block;
            vertical-align: middle;
            width: 32%;
            padding: 0 0 0 2%;
            text-align: left;
        }
    }
}

.site-header-before {
    padding: 13px 10px 3px;
    background-color: #2a2c3d;
}

/* ==========================================================================
   Site Header (Mobile Default)
   ========================================================================== */
.site-header {
    margin: 0;
    padding: 15px 0;
    background-color: var(--secondary-color);
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.03);
    position: relative;
    text-align: center;

    /* Initial state for animation */
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    &.header_sticky {
        body .header-sticky & {
            position: fixed;
            width: 95%;
            left: 2.5%;
            top: 15px;
            z-index: 1000;
            padding: 15px 5px;
            border-radius: 15px;

            /* Glassmorphism / Floating Island */
            background-color: color-mix(in srgb, var(--secondary-color), transparent 20%);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
    }

    /* Logo */
    .h-logo {
        display: block;
        width: auto;
        padding: 0 1.5rem;
        text-align: center;
        margin: 0 auto;

        a {
            display: inline-flex;
            height: 2.5rem;
            justify-content: center;

            i {
                height: auto;
                display: inline-flex;
            }

            i, .header-title {
                transition: color 0.2s;
            }

            &:hover, &:active {
                i, .header-title {
                    color: var(--third-color);
                }
            }
        }

        img {
            margin: 0 auto;
        }

        svg {
            max-width: 3rem;
            min-width: 3rem;

            @media (min-width: 576px) {
                max-width: none;
                min-width: auto;
            }
        }

        .bi-github {
            font-size: 2.3rem;
        }

        .header-title {
            font-family: var(--font-primary);
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--base-text-color);
            display: none;
            align-items: center;
            transition: color 0.2s;

            @media (min-width: 576px) {
                display: inline-flex;
            }
        }
    }

    .h-nav {
        display: flex;
        align-items: center;
        height: 100%;
        justify-content: end;

        .bi-sun::before,
        .bi-moon::before {
            display: block;
        }

        .bi-moon::before, .bi-sun::before {
            font-size: 1.6rem;
        }

        .bi-sun::before {
            font-weight: bolder !important;
        }

        .registration-container {
            display: none;
            grid-template-columns: 1fr auto;
            grid-auto-columns: 1fr;
            gap: 5px;

            .header-signup, .header-login, .header-logout {
                border: 1px solid var(--secondary-text-color);
                padding: 2px 10px;
                border-radius: 5px;
                color: var(--base-text-color);
                will-change: transform, background-color, color, border-color, box-shadow;
                transition: transform 0.2s, background-color 0.2s, color 0.2s ease-in, border-color 0.2s, box-shadow 0.2s;

                &:hover, &:active {
                    border-color: var(--third-color);
                    background-color: var(--third-color);
                    color: white;
                    transform: translateY(-2px);
                    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

                    input {
                        color: white;
                    }
                }
            }

            @media screen and (min-width: 768px) {
                display: grid;
                max-height: 100%;
                margin-right: 5px;
            }

            .header-signup {
                background: linear-gradient(135deg, var(--purple-600) 0%, var(--blue-600) 100%);
                color: white;
                border: none;
            }

            .header-logout {
                border-color: var(--danger-color);

                input[type="submit"] {
                    background-color: transparent;
                    border: none;
                    cursor: pointer;
                    color: var(--danger-color);
                }

                &:hover, &:active {
                    border-color: var(--danger-color);
                    background-color: var(--danger-color);
                    color: white;

                    input {
                        color: white;
                    }
                }
            }

        }
    }


    .header-logo {
        font-size: 2rem;
        height: 90%;
        display: inline-flex;
        align-items: center;
        gap: 10px;

        .header-title {
            display: none;
        }
    }

    /* Shop Area */
    .h-shop {
        display: inline-block;
        vertical-align: middle;
        width: auto;
        position: absolute;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .h-shop-links {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        position: relative;
        height: 100%;
        text-align: justify;

        li {
            height: 100%;
        }

        .h-shop-icon {
            display: inline-flex;
            align-items: center;
            padding: 0;
            text-align: center;
            position: relative;
            margin: 0;
            transition: color 0.2s ease-in-out;
            height: 100%;

            &>a {
                width: auto;
                height: max-content;
                display: block;
                background-color: transparent;
                padding: 0 0.5rem;
                margin: 0;
                position: relative;
                border: none;
                border-radius: 20px;
            }

            i {
                font-size: 2rem;
                height: max-content;
                width: auto;
                line-height: 1;
                display: block;
            }
        }

        /* Header Cart */
        .h-cart {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: middle;
            width: auto;
            position: relative;
            margin: 0;
            padding: 0;

            i {
                display: inline-block;
                line-height: 1;
            }

            .h-cart-icon {
                width: auto;
                display: flex;
                padding: 0;
                margin: 0 10px 0 0;
                position: relative;
                transition: color 0.2s ease-in-out;

                i {
                    margin: 0;
                    font-size: 2rem;
                    display: inline-flex;
                    align-items: center;
                    transition: color 0.2s ease-in-out;
                }

                span {
                    position: absolute;
                    bottom: 15px;
                    left: 60%;
                    border-radius: 30px;
                    display: block;
                    background-color: var(--third-color);
                    text-align: center;
                    font-size: 10px;
                    font-weight: 700;
                    color: white;
                    height: 17px;
                    line-height: 17px;
                    width: 17px;
                    white-space: nowrap;
                }
            }

            .h-cart-total {
                display: none;
                vertical-align: middle;
                font-size: 14px;
                font-weight: 600;
                width: 80px;
                white-space: nowrap;
                margin: 0;
            }

            &:hover .h-cart-total {
                color: var(--third-color);
            }

            /* Widget shopping cart dropdown */
            .widget_shopping_cart {
                position: absolute;
                top: 100%;
                right: 0;
                display: none; /* Hidden on mobile */
                z-index: 100;

                .widget_shopping_cart_content {
                    background-color: var(--secondary-color);
                    border: 1px solid #e9e9ef;
                    width: 15rem;
                    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.05);
                    border-radius: 30px 0 30px 30px;
                    color: black;

                    form {
                        cursor: unset;
                    }
                }

                .empty-cart-box {
                    padding: 40px 20px;
                    text-align: center;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: 15px;

                    i {
                        font-size: 2.5rem;
                        color: var(--gray-400);
                        background: var(--gray-50);
                        width: 70px;
                        height: 70px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border-radius: 50%;
                        margin-bottom: 5px;
                        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

                        &:hover, &:active {
                            transform: scale(1.1) rotate(-10deg);
                            color: var(--third-color);
                            background: var(--blue-50);
                        }
                    }

                    .empty-message {
                        padding: 0;
                        font-size: 15px;
                        color: var(--base-text-color);
                        margin: 0;
                        font-weight: 600;
                    }

                    .button {
                        margin-top: 5px;
                        padding: 5px 25px;
                        font-size: 13px;
                        font-weight: 700;
                        background-color: var(--third-color);
                        color: white;
                        border-radius: 50px;
                        text-decoration: none;
                        transition: all 0.2s;
                        border: none;
                        display: inline-block;

                        &:hover, &:active {
                            background-color: var(--blue-600);
                            transform: translateY(-2px);
                            box-shadow: 0 6px 12px rgba(18, 145, 238, 0.3);
                        }
                    }
                }

                /* Cart list */
                .cart_list {
                    list-style: none;
                    margin: 0;
                    border-bottom: 1px solid #e9e9ef;
                    padding: 11px 15px 8px 13px;
                    font-size: 13px;
                    color: var(--base-text-color);

                    li {
                        margin: 0;
                        list-style: none;
                        position: relative;
                        padding: 0 0 4px 18px;

                        /* Remove button */
                        button.remove {
                            display: block;
                            font-size: 1.5em;
                            height: 1em;
                            text-align: center;
                            line-height: 1;
                            border-radius: 100%;
                            color: red !important;
                            text-decoration: none;
                            font-weight: 700;
                            border: 0;
                            position: absolute;
                            top: 0;
                            left: 0;
                            width: auto;
                            background-color: transparent;
                            padding: 0;
                            cursor: pointer;
                            transition: transform 0.2s, box-shadow 0.2s;

                            &:hover, &:active {
                                transform: scale(1.3);
                            }
                        }

                        a {
                            display: block;
                            font-weight: 700;
                            max-width: 100%;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                            overflow: hidden;
                            height: auto;
                            transition: color 0.2s;
                            font-size: 1.5rem;

                            &:hover, &:active {
                                color: var(--third-color);
                            }

                            img {
                                float: right;
                                margin-left: 10px;
                                width: 32px;
                                height: auto;
                                box-shadow: none;
                                margin-top: 4px;
                                border-radius: 5px;
                                transition: filter 0.2s;

                                &:hover, &:active {
                                    filter: opacity(0.6);
                                }
                            }
                        }

                        .quantity {
                            font-size: 1.4rem;
                        }

                    }
                }

                /* Total section */
                .total {
                    border: none;
                    border-bottom: 1px solid #e9e9ef;
                    padding: 8px 15px 8px 28px;
                    font-size: 1.8rem;
                    color: var(--base-text-color);
                    margin: 0;
                    font-weight: 700;
                }

                /* Buttons section */
                .buttons {
                    text-align: center;
                    padding: 15px 15px 10px;
                    margin: 0;

                    a.button {
                        line-height: initial;
                        cursor: pointer;
                        text-decoration: none;
                        overflow: visible;
                        padding: .5rem 5rem;
                        border-radius: 3px;
                        left: auto;
                        border: 0;
                        white-space: nowrap;
                        display: inline-block;
                        box-shadow: none;
                        text-shadow: none;
                        transition: all 0.2s;
                        color: white;
                        background-color: var(--third-color);
                        font-weight: 600;
                        position: relative;
                        letter-spacing: 0.03em;
                        margin: 0 0 5px;
                        font-size: 1.2rem;
                        width: 90%;

                        &:hover {
                            background-color: #4cb2fa;
                        }

                        &.checkout {
                            background-color: transparent;
                            color: #000;
                            padding: 8px 0;
                            margin: 0 0 5px 13px;

                            &:hover {
                                color: var(--third-color);
                                background-color: transparent;
                            }

                            &:after {
                                content: '\f105';
                                display: inline-block;
                                vertical-align: middle;
                                font-family: FontAwesome, serif;
                                margin: -2px 0 0 7px;
                            }
                        }
                    }
                }
            }

            /* Hover effect moved to media query for desktop */
        }
    }

    /* Search */
    .h-search {
        display: none;
        position: absolute;
        top: -8px;
        right: 105%;
        left: unset;
        bottom: unset;
        width: 200px;
        padding: 0;
        z-index: 1;

        input[type=text] {
            border: 2px solid transparent;
            background-color: #f1f1fb;
            padding: 0 23px;
            font-size: 15px;
            color: #9292b4;
            border-radius: 40px;
            height: 4rem;
            width: 100%;
            display: inline-block;
            vertical-align: middle;
            font-family: 'Open Sans', sans-serif;
            font-style: normal;
            transition: background-color 0.2s, border-color 0.2s;

            &:focus, &:active, &:hover {
                border-color: rgba(18, 145, 238, 0.5);

            }
            .darkmode &:focus, .darkmode &:active,
            .darkmode &:hover {
                border-color: rgba(18, 145, 238, 1);
            }
        }

        label {
            width: 100%;
        }

        button {
            display: none;
        }
    }

    /* Shop Icons */
    i:active,
    i:hover {
        color: var(--third-color);
        transition: color 0.2s ease-in-out;
    }

    /* Header Profile Links */
    .h-profile {
        position: relative;

        .h-profile-links {
            position: absolute;
            top: 100%;
            right: 7px;
            padding: 0;
            transition: opacity 0.3s;
            opacity: 0;
            height: 0;
            width: 0;
            overflow: hidden;
            border: 1px solid #e9e9ef;
            box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.05);

            li {
                a {
                    color: var(--base-text-color);
                    transition: color 0.2s;
                    white-space: nowrap;
                    display: flex;
                    padding: 5px 18px 5px;
                    border-top: 1px solid #e9e9ef;
                    font-size: 13px;
                    font-weight: 600;
                    align-items: center;
                }

                form {
                    justify-content: center;
                    align-items: center;

                    input {
                        color: var(--base-text-color);
                        transition: color 0.2s;
                        white-space: nowrap;
                        display: block;
                        padding: 5px 18px 5px;
                        font-size: 13px;
                        font-weight: 600;
                        border: none;
                        background-color: transparent;
                        cursor: pointer;
                    }
                }

                &:first-child a {
                    border-top: none;
                }
            }

            &:active,
            &:hover {
                background-color: var(--base-color);
                transition: background-color 0.2s ease;
            }
        }

        &:hover .h-profile-links {
            opacity: 1;
            height: auto;
            width: auto;
            overflow: initial;
            transition: opacity 0.3s;
            text-align: left;
            z-index: 10;
            border-radius: 10px 0 10px 10px;
            background-color: var(--secondary-color);
            display: none;
        }
    }

    /* Main Menu (Mobile) */
    .h-menu-btn {
        display: inline-block;
        height: 30px;
        line-height: 30px;
        border: none;
        background: none;
        transition: color 0.2s;
        font-size: 14px;
        color: var(--heading-color);
        cursor: pointer;
        font-weight: 600;
        text-transform: uppercase;
        vertical-align: middle;
        position: relative;
        padding: 0;
        margin: 0;

        &:hover {
            color: var(--third-color);
        }

        &:after {
            display: none;
        }

        i {
            font-weight: 400;
            font-size: 28px;
            margin: -6px 6px 0 0;
            vertical-align: top;
            display: inline-block;
            width: 18px;
            text-align: center;
        }

        &.opened i {
            font-size: 18px;
            margin: 4px 6px 0 0;

            &:before {
                content: "\f12a";
            }
        }
    }

    .h-menu {
        position: absolute;
        background: var(--secondary-color);
        z-index: 3;
        top: 100%;
        left: 0;
        right: 0;
        border-top: 1px solid #eeeef1;
        box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.05);
        padding: 0;
        display: none;

        >ul {
            text-align: left;

            &:after {
                clear: both;
                content: '';
                display: block;
            }

            >li {
                display: block;
                margin: 0;
                text-align: left;
                border-bottom: 1px solid #eeeef1;

                >a {
                    display: block;
                    font-size: 14px;
                    font-weight: 600;
                    padding: 10px 15px;
                    transition: all 0.2s;
                    border-radius: 0;
                    text-transform: uppercase;
                    position: relative;

                    &:hover {
                        color: var(--third-color);
                    }
                }

                &.menu-item-has-children>a:after {
                    display: block;
                    z-index: 3;
                    position: absolute;
                    right: 0;
                    top: 0;
                    margin: 0;
                    width: 40px;
                    height: 40px;
                    line-height: 40px;
                    cursor: pointer;
                    font-size: 20px;
                    color: var(--heading-color);
                    transition: all 0.2s;
                    content: '\f107';
                    font-family: FontAwesome, serif;
                    text-align: center;
                }

                &.active>a,
                &.current_page_parent>a,
                &.current_page_item>a {
                    background-color: transparent;
                    color: var(--third-color);
                    padding-left: 15px;
                    padding-right: 15px;
                }
            }
        }
    }

    /* Small Devices (>= 576px) - Mobile Landscape & Small Tablets */
    @media (min-width: 576px) {
        padding: 18px 0;

        .h-logo {
            padding: 0 1.25rem;

            a {
                height: 2.75rem;
            }

            .header-logo .header-title {
                display: inline;
            }
        }

        .h-shop-links {
            gap: 0.75rem;

            .h-shop-icon {
                i {
                    font-size: 2.2rem;
                }

                &>a {
                    padding: 0 0.6rem;
                }
            }

            .h-cart {
                .h-cart-icon i {
                    font-size: 2.2rem;
                }
            }
        }

        .h-search {
            width: 220px;
        }

        .h-menu-btn {
            font-size: 15px;

            i {
                font-size: 30px;
            }
        }
    }

    /* Medium Devices (>= 768px) */
    @media (min-width: 768px) {
        .h-logo {
            padding: 0 10px;
        }

        .h-shop {
            padding: 0;
        }

        .h-shop-links {
            border-left: none;
        }

        .h-profile:hover .h-profile-links {
            display: block;
        }
    }

    /* Large Devices (>= 992px) */
    @media (min-width: 992px) {
        text-align: left;

        .h-logo {
            padding: 0 2.5%;
            display: inline-block;
            margin: 0;
            text-align: left;

            a {
                justify-content: flex-start;
            }
        }

        .h-shop {
            position: relative;
            top: auto;
            right: auto;
            margin: 0;
            text-align: left;
            display: inline-block;
        }

        .h-search-btn {
            display: none;
        }

        .h-shop-links {
            border-left: 1px solid rgba(0, 0, 0, 0.08);
            text-align: left;
            padding-left: 5px;

            &:after {
                display: none;
            }

            .h-cart-total {
                display: inline-block;
            }

            .darkmode & {
                border-color: rgba(255, 255, 255, 0.08);
            }
        }

        .h-search {
            display: block;
            width: 200%;
            right: 95%;
            top: unset;
            bottom: -25%;
            margin-right: 15px;

            label {
                width: 98%;
            }

            button {
                display: inline-block;
                position: absolute;
                top: 4px;
                right: 17px;
                border: none;
                background: none;
                font-size: 22px;
                cursor: pointer;
                color: var(--secondary-text-color);
            }
        }

        /* Main Menu Desktop */
        .h-menu-btn {
            display: none;
        }

        .h-menu {
            position: relative;
            background: transparent;
            top: auto;
            left: auto;
            right: auto;
            border: none;
            box-shadow: none;
            padding: 10px 15px 0 0;
            display: inline-block;
            vertical-align: middle;
            width: 45%;

            >ul {
                text-align: right;

                >li {
                    display: inline-block;
                    vertical-align: top;
                    margin: 0 0 10px;
                    border: none;

                    >a {
                        padding: 10px 35px;
                        border-radius: 80px;
                    }

                    &.active>a,
                    &.current_page_parent>a,
                    &.current_page_item>a {
                        background-color: var(--third-color);
                        color: var(--secondary-color);
                    }

                    &.menu-item-has-children>a:after {
                        display: inline-block;
                        position: static;
                        width: auto;
                        height: auto;
                        line-height: inherit;
                        margin: 0 0 2px 8px;
                        content: '\f0d7';
                        text-align: center;
                    }
                }
            }
        }
    }
}

/* Search Button */
.h-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 6px;
    transition: color 0.2s ease-in-out;
    line-height: unset;
    text-align: center;
    margin: 0;
    padding-bottom: 1px;


    i {
        display: inline-flex;
        font-size: 2.2rem;
        line-height: 1;
    }

    &.opened {
        position: relative;
        top: auto;
        left: auto;
        right: auto;

        i:before {
            content: "\f12a";
            display: block;
        }
    }

    .ion-search:before {
        height: 1.9rem;
    }
}

/* Main Menu Shared */
.mainmenu {
    nav.menu {
        position: absolute;
        background: var(--secondary-color);
        z-index: 3;
        top: 100%;
        left: 0;
        right: 0;
        border-top: 1px solid #eeeef1;
        box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.05);
        padding: 0;
        display: none;

        >ul {
            text-align: left;

            &:after {
                clear: both;
                content: '';
                display: block;
            }

            >li {
                display: block;
                margin: 0;
                text-align: left;
                border-bottom: 1px solid #eeeef1;

                >a {
                    display: block;
                    font-size: 14px;
                    font-weight: 600;
                    padding: 10px 15px;
                    transition: all 0.2s;
                    border-radius: 0;
                    text-transform: uppercase;
                    position: relative;

                    &:hover {
                        color: var(--third-color);
                    }
                }

                &.menu-item-has-children>a:after {
                    display: block;
                    z-index: 3;
                    position: absolute;
                    right: 0;
                    top: 0;
                    margin: 0;
                    width: 40px;
                    height: 40px;
                    line-height: 40px;
                    cursor: pointer;
                    font-size: 20px;
                    color: var(--heading-color);
                    transition: all 0.2s;
                    content: '\f107';
                    font-family: FontAwesome, serif;
                    text-align: center;
                }

                &.active>a,
                &.current_page_parent>a,
                &.current_page_item>a {
                    background-color: transparent;
                    color: var(--third-color);
                    padding-left: 15px;
                    padding-right: 15px;
                }
            }
        }

        /* Dropdown menus (Mobile) */
        >ul>li ul {
            display: none;
            visibility: visible;
            opacity: 1;
            transform: initial;
            transition: initial;
            width: auto;
            height: auto;
            overflow: initial;
            padding: 0 0 12px 18px;
            box-shadow: none;
            position: relative;
            left: auto;
            top: auto;
            min-width: inherit;

            >li {
                display: block;
                margin: 0;
                text-align: center;
                padding: 0;
                border: none;

                &:first-child {
                    border-top: none;
                    border-radius: 0;
                }

                &:last-child {
                    border-radius: 0;
                    border-bottom: none;
                }

                >a {
                    display: block;
                    border: none;
                    padding: 5px 10px;
                    margin: 0;
                    text-align: left;

                    &:hover {
                        color: var(--third-color);
                    }
                }

                &.active>a {
                    color: var(--third-color);
                }
            }
        }

        >ul li.menu-item-has-children:hover>ul {
            display: none;
        }
    }

    &.site-header .mainmenu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 0;
        z-index: 3;
        width: 100%;
    }

    @media (min-width: 992px) {
        nav.menu {
            position: relative;
            background: transparent;
            top: auto;
            left: auto;
            right: auto;
            border: none;
            box-shadow: none;
            padding: 10px 15px 0 0;
            display: inline-block;
            vertical-align: middle;
            width: 45%;

            >ul {
                text-align: right;

                >li {
                    display: inline-block;
                    vertical-align: top;
                    margin: 0 0 10px;
                    border: none;

                    >a {
                        padding: 10px 35px;
                        border-radius: 80px;
                    }

                    &.active>a,
                    &.current_page_parent>a,
                    &.current_page_item>a {
                        background-color: var(--third-color);
                        color: var(--secondary-color);
                    }

                    &.menu-item-has-children>a:after {
                        display: inline-block;
                        position: static;
                        width: auto;
                        height: auto;
                        line-height: inherit;
                        margin: 0 0 2px 8px;
                        content: '\f0d7';
                        text-align: center;
                    }
                }
            }

            /* Dropdown Desktop */
            >ul>li ul {
                position: absolute;
                top: 100%;
                left: -15px;
                padding: 8px 0 8px 0;
                box-sizing: content-box;
                min-width: 100%;
                display: block;
                transition: transform 0.3s ease, opacity 0.3s ease;
                transform: translate3d(0, 10px, 0);
                visibility: hidden;
                opacity: 0;
                width: 0;
                height: 0;
                overflow: hidden;
                background: var(--secondary-color);
                box-shadow: none;

                >li {
                    text-align: left;
                    padding: 0 13px;
                    border-left: 1px solid #e9e9ef;
                    border-right: 1px solid #e9e9ef;

                    &:first-child {
                        padding-top: 8px;
                        border-top: 1px solid #e9e9ef;
                    }

                    &:last-child {
                        padding-bottom: 8px;
                        border-bottom: 1px solid #e9e9ef;
                    }
                }
            }

            >ul li.menu-item-has-children:hover>ul {
                display: block;
                opacity: 1;
                transform: translate3d(0, 0px, 0);
                visibility: visible;
                width: auto;
                height: auto;
                overflow: initial;
            }
        }
    }
}

/* Extra Large Devices (>= 1200px) */
@media (min-width: 1200px) {

    .h-cart:hover .widget_shopping_cart,
    .h-cart .widget_shopping_cart .widget_shopping_cart_content {
        border-radius: 0 30px 30px 30px;
    }
}

/* Small Devices (>= 576px) */
@media (min-width: 576px) {
    .h-cart .widget_shopping_cart {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        height: auto;
        width: auto;
        overflow: visible;

        .widget_shopping_cart_content {
            min-width: 25rem;
            width: max-content !important;
        }
    }

    .h-cart:hover .widget_shopping_cart {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
