﻿/* ==========================================================================
   GoldenPart - Category mega menu (desktop) + mobile menu additions
   Primary: #0661f8  |  Dark: #0450c9  |  Border: #e1e6ed
   ========================================================================== */

/* ---------------------------- Desktop ---------------------------- */

/* CSS chevron pointing left (independent of icon fonts and text direction) */
.gp-chevron {
    display: inline-block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin: 0 3px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.gp-catmenu {
    position: static;
    display: flex;
    align-items: stretch;
    align-self: stretch;
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid #e1e6ed;
}

.gp-catmenu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 4px;
    margin: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #38424d;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    transition: color .2s ease, border-color .2s ease;
}

    .gp-catmenu__trigger i {
        font-size: 17px;
    }

    .gp-catmenu__trigger:hover,
    .gp-catmenu__trigger:focus-visible,
    .gp-catmenu.is-open .gp-catmenu__trigger {
        color: #0661f8;
        border-bottom-color: #0661f8;
    }

/* Panel */
.gp-catmenu__panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1050;
    display: flex;
    height: 520px;
    height: min(560px, calc(100vh - 170px));
    min-height: 340px;
    background: #ffffff;
    border: 1px solid #e1e6ed;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, .16);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.gp-catmenu.is-open .gp-catmenu__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

/* Right column: main categories */
.gp-catmenu__mains {
    flex: 0 0 250px;
    width: 250px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: #f7f9fc;
    border-left: 1px solid #edf1f6;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.gp-catmenu__main {
    margin: 0;
    padding: 0;
}

.gp-catmenu__main-link,
.gp-catmenu__main-link:hover,
.gp-catmenu__main-link:focus {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 16px;
    color: #38424d;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    text-decoration: none;
    border-right: 3px solid transparent;
    outline: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.gp-catmenu__icon {
    flex: 0 0 24px;
    width: 24px;
    text-align: center;
    font-size: 19px;
    color: #7a8594;
    transition: color .15s ease;
}

.gp-catmenu__main-name {
    flex: 1 1 auto;
    min-width: 0;
}

.gp-catmenu__arrow {
    color: #0661f8;
    opacity: 0;
    transform: translateX(4px) rotate(45deg);
    transition: opacity .15s ease, transform .15s ease;
}

.gp-catmenu__main-link:hover {
    color: #0661f8;
}

    .gp-catmenu__main-link:hover .gp-catmenu__icon {
        color: #0661f8;
    }

.gp-catmenu__main.is-active > .gp-catmenu__main-link {
    background: #ffffff;
    color: #0661f8;
    border-right-color: #0661f8;
}

    .gp-catmenu__main.is-active > .gp-catmenu__main-link .gp-catmenu__icon {
        color: #0661f8;
    }

    .gp-catmenu__main.is-active > .gp-catmenu__main-link .gp-catmenu__arrow {
        opacity: 1;
        transform: rotate(45deg);
    }

.gp-catmenu__main-link:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(6, 97, 248, .35);
}

/* Left column: sub categories */
.gp-catmenu__content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 22px 30px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.gp-catmenu__pane {
    display: none;
}

    .gp-catmenu__pane.is-active {
        display: block;
        animation: gpCatPaneIn .2s ease;
    }

@keyframes gpCatPaneIn {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.gp-catmenu__all,
.gp-catmenu__all:focus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #eef4ff;
    color: #0661f8;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

    .gp-catmenu__all:hover {
        background: #0661f8;
        color: #ffffff;
        text-decoration: none;
    }

    .gp-catmenu__all .gp-chevron {
        width: 8px;
        height: 8px;
        transition: transform .15s ease;
    }

    .gp-catmenu__all:hover .gp-chevron {
        transform: translateX(-3px) rotate(45deg);
    }

.gp-catmenu__cols {
    column-count: 4;
    column-gap: 34px;
    column-rule: 1px solid #f1f4f8;
}

.gp-catmenu__group {
    display: inline-block; /* keeps the group in one column in older browsers */
    width: 100%;
    margin-bottom: 22px;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.gp-catmenu__group-title,
.gp-catmenu__group-title:focus {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding-right: 10px;
    border-right: 2px solid #0661f8;
    color: #1f2933;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    transition: color .15s ease;
}

    .gp-catmenu__group-title .gp-chevron {
        width: 6px;
        height: 6px;
        border-width: 1.5px;
        color: #9aa5b1;
        transition: color .15s ease, transform .15s ease;
    }

    .gp-catmenu__group-title:hover {
        color: #0661f8;
        text-decoration: none;
    }

        .gp-catmenu__group-title:hover .gp-chevron {
            color: #0661f8;
            transform: translateX(-3px) rotate(45deg);
        }

.gp-catmenu__links {
    margin: 0;
    padding: 0 12px 0 0;
    list-style: none;
}

    .gp-catmenu__links li {
        margin: 0;
        padding: 0;
    }

    .gp-catmenu__links a,
    .gp-catmenu__links a:focus {
        display: block;
        padding: 5px 0;
        color: #62666d;
        font-size: 13px;
        line-height: 22px;
        text-decoration: none;
        transition: color .15s ease;
    }

        .gp-catmenu__links a:hover {
            color: #0661f8;
            text-decoration: none;
        }

.gp-catmenu__empty {
    margin: 0;
    color: #9aa5b1;
    font-size: 13px;
}

/* Thin scrollbars inside the panel */
.gp-catmenu__mains,
.gp-catmenu__content {
    scrollbar-width: thin;
    scrollbar-color: #cfd8e3 transparent;
}

    .gp-catmenu__mains::-webkit-scrollbar,
    .gp-catmenu__content::-webkit-scrollbar {
        width: 6px;
    }

    .gp-catmenu__mains::-webkit-scrollbar-thumb,
    .gp-catmenu__content::-webkit-scrollbar-thumb {
        background: #cfd8e3;
        border-radius: 6px;
    }

/* Page overlay while the menu is open */
.gp-catmenu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    background: rgba(15, 23, 42, .35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility 0s linear .2s;
}

body.gp-catmenu-open .gp-catmenu-overlay {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

body.gp-catmenu-open #tt-header {
    position: relative;
    z-index: 1040;
}

@media (max-width: 1199px) {
    .gp-catmenu__cols {
        column-count: 3;
    }

    .gp-catmenu__mains {
        flex-basis: 220px;
        width: 220px;
    }
}

@media (max-width: 991px) {
    .gp-catmenu__cols {
        column-count: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gp-catmenu__panel,
    .gp-catmenu__pane.is-active,
    .gp-catmenu-overlay {
        transition: none;
        animation: none;
    }
}

/* ---------------------------- Mobile (panel-menu) ---------------------------- */

/* the plugin clones each parent link to the top of its sub panel; we show our own "all products" link instead */
.panel-menu .mm-original-link {
    display: none !important;
}

.panel-menu ul li a .mm-ico {
    flex: 0 0 22px;
    width: 22px;
    margin-left: 10px;
    text-align: center;
    font-size: 17px;
    line-height: 22px;
    color: #0661f8;
}

.panel-menu .mmpanel a.mm-all-link,
.panel-menu .mmpanel a.mm-all-link:hover {
    align-items: center;
    margin: 6px 16px 8px;
    padding: 10px 14px !important;
    border-radius: 10px;
    background-color: #eef4ff !important;
    color: #0661f8 !important;
    font-weight: 500 !important;
}

    .panel-menu .mmpanel a.mm-all-link i {
        margin-left: 8px;
        font-size: 15px;
    }
