/**
 * GTS Custom Menu Styles
 * Mobil optimalizált off-canvas menü
 */

/* === CSS Változók === */
:root {
    --gts-menu-bg: #ffffff;
    --gts-menu-text: #333333;
    --gts-menu-hover: #0066cc;
    --gts-menu-border: #e0e0e0;
    --gts-offcanvas-width: 300px;
    --gts-overlay-bg: rgba(0, 0, 0, 0.5);
    --gts-transition: 0.3s ease;
    --gts-header-height: 95px;
}

/* === Button Reset - Sablon stílusok felülírása === */
.gts-menu-wrapper button,
.gts-menu-wrapper button[type="button"],
.gts-menu-toggle,
.gts-submenu-toggle {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    padding: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.gts-menu-wrapper button:hover,
.gts-menu-wrapper button:focus,
.gts-menu-toggle:hover,
.gts-menu-toggle:focus,
.gts-submenu-toggle:hover,
.gts-submenu-toggle:focus {
    background-color: transparent !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* Transition blokkolás oldal betöltéskor */
.gts-no-transition,
.gts-no-transition *,
.gts-no-transition *::before,
.gts-no-transition *::after {
    transition: none !important;
}

/* Vízszintes scroll megakadályozása */
html, body {
    overflow-x: hidden;
}

/* === Fő Wrapper === */
.gts-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    font-family: "proxima-nova", sans-serif;
    padding: 15px 20px 0;
    transition: padding var(--gts-transition);
}

.gts-menu-wrapper.is-sticky {
    padding: 10px 20px;
}

.gts-menu-wrapper.is-sticky .gts-menu-container {
    background-color: var(--gts-menu-bg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.gts-menu-wrapper.is-sticky .gts-menu-list > li > a {
    color: var(--gts-menu-text);
}

.gts-menu-wrapper.is-sticky .gts-menu-list > li > a:hover {
    color: var(--gts-menu-hover);
}

/* === Container === */
.gts-menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    min-height: var(--gts-header-height);
    background-color: rgb(255 255 255 / 80%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50px;
    transition: background-color var(--gts-transition), box-shadow var(--gts-transition), border-radius var(--gts-transition);
}

/* === Logo === */
.gts-menu-logo {
    flex-shrink: 0;
}

.gts-menu-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.gts-menu-logo img {
    max-height: 60px;
    width: auto;
}

.gts-site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gts-menu-text);
    text-decoration: none;
    transition: color var(--gts-transition);
}

.gts-site-name:hover {
    color: var(--gts-menu-hover);
}

/* === Navigáció - Desktop === */
.gts-menu-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.gts-nav-container {
    display: flex;
}

.gts-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.gts-menu-list li {
    position: relative;
}

.gts-menu-list li a {
    display: block;
    padding: 12px 18px;
    color: #131313;
    text-decoration: none;
    font-weight: 500;
    font-size: 19px;
    border-radius: 4px;
    transition: color var(--gts-transition), background-color var(--gts-transition), font-weight var(--gts-transition);
}

.gts-menu-list > li > a:hover {

    font-weight: 700;
}

/* Almenü - Desktop */
.gts-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--gts-menu-bg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--gts-transition), visibility var(--gts-transition), transform var(--gts-transition);
}

.gts-menu-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gts-menu-list .sub-menu li a {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 0;
}

.gts-menu-list .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* === Hamburger & Close gombok (rejtve desktopon) === */
.gts-menu-toggle,
.gts-menu-close,
.gts-offcanvas-header {
    display: none;
}

.gts-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.gts-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
}

.gts-hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--gts-menu-text);
    border-radius: 0px;
    transition: transform var(--gts-transition), opacity var(--gts-transition);
}

.gts-menu-toggle.active .gts-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.gts-menu-toggle.active .gts-hamburger-line:nth-child(2) {
    opacity: 0;
}

.gts-menu-toggle.active .gts-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}



/* === Overlay === */
.gts-menu-overlay,
.gts-megamenu-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--gts-overlay-bg);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--gts-transition), visibility var(--gts-transition);
}

.gts-menu-overlay.active,
.gts-megamenu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* === Hibaüzenetek === */
.gts-menu-error,
.gts-menu-fallback {
    padding: 15px 20px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    text-align: center;
    margin: 10px 0;
}

/* ========================================
   MEGA MENÜ - CSAK DESKTOP
   ======================================== */
@media screen and (min-width: 993px) {
    
    /* Mobil elemek elrejtése desktopon */
    .gts-mobile-submenu,
    .gts-submenu-toggle {
        display: none !important;
    }
    
    .gts-menu-item-header {
        display: contents;
    }
    
    .gts-menu-wrapper.megamenu-open .gts-menu-container {
        background-color: var(--gts-menu-bg);
        border-radius: 25px 25px 0 0;
        box-shadow: none;
    }
    
    .gts-menu-wrapper.megamenu-open .gts-menu-list > li > a {
        color: var(--gts-menu-text);
    }
    
    .gts-menu-wrapper.megamenu-open .gts-menu-list > li > a:hover {
        color: var(--gts-menu-hover);
    }
    
    .gts-menu-list > li.has-megamenu {
        position: static;
    }
    
    .gts-megamenu {
        position: fixed;
        top: var(--gts-header-height);
        left: 0;
        right: 0;
        max-width: 1400px;
        margin: 0 auto;
        background-color: var(--gts-menu-bg);
        border-radius: 0 0 25px 25px;
        z-index: 999;
        max-height: calc(100vh - var(--gts-header-height) - 50px);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity var(--gts-transition), visibility var(--gts-transition);
    }
    
    .gts-menu-list > li.has-megamenu:hover > .gts-megamenu,
    .gts-menu-list > li.has-megamenu.megamenu-active > .gts-megamenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .gts-megamenu-inner {
        display: flex;
        max-width: 1400px;
        margin: 0 auto;
        padding: 40px;
        gap: 40px;
    }
    
    .gts-megamenu-image {
        flex: 0 0 300px;
        min-height: 300px;
        background-color: #f5f5f5;
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gts-megamenu-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .gts-megamenu-content {
        flex: 1;
        min-width: 0;
    }
    
    .gts-megamenu-columns {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 40px;
    }
    
    .gts-megamenu-category {
        min-width: 0;
    }
    
    .gts-megamenu-category-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7a7a7a;
        margin: 0 0 15px 0;
        padding-bottom: 10px;
    }
    
    .gts-megamenu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .gts-megamenu-list li {
        margin-bottom: 8px;
    }
    
    .gts-megamenu-list li a {
        display: block;
        padding: 8px 0;
        text-decoration: none;
        position: relative;
        transition: color 0.2s ease, padding-left 0.2s ease;
        font-size: 17px;
        font-weight: 400;
        line-height: 28px;
        color: #484848;
    }
    
    .gts-megamenu-list li a::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 2px;
        background-color: var(--gts-menu-hover);
        transition: width 0.2s ease;
    }
    
    .gts-megamenu-list li a:hover {
        color: var(--gts-menu-hover);
        padding-left: 10px;
    }
    
    .gts-megamenu-list li a:hover::before {
        width: 6px;
    }
}

/* ========================================
   MOBIL STÍLUSOK
   ======================================== */
@media screen and (max-width: 992px) {
    
    /* Desktop mega menü elrejtése mobilon */
    .gts-megamenu,
    .gts-megamenu-overlay {
        display: none !important;
    }
    
    /* Mobil menüpont fejléc (link + toggle gomb) */
    .gts-menu-item-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .gts-menu-item-header > a {
        flex: 1;
    }
    
    /* Toggle gomb (+/-) */
    .gts-submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: none;
        border: none;
        border-left: 0px solid var(--gts-menu-border);
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }
    
    .gts-toggle-icon {
        position: relative;
        width: 12px;
        height: 12px;
    }
    
    .gts-toggle-icon::before,
    .gts-toggle-icon::after {
        content: '';
        position: absolute;
        background-color: var(--gts-menu-text);
        transition: transform 0.3s ease;
    }
    
    /* Vízszintes vonal */
    .gts-toggle-icon::before {
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        transform: translateY(-50%);
    }
    
    /* Függőleges vonal (+ jel) */
    .gts-toggle-icon::after {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
        transform: translateX(-50%);
    }
    
    /* Nyitott állapot (- jel) */
    .gts-submenu-toggle.active .gts-toggle-icon::after {
        transform: translateX(-50%) rotate(90deg);
        opacity: 0;
    }
    
    /* Mobil almenü */
    .gts-mobile-submenu {
        display: none;
        background-color: #f8f9fa;
        padding: 0;
        overflow: hidden;
    }
    
    .gts-mobile-submenu.active {
        display: block;
    }
    
    /* Mobil kategória */
    .gts-mobile-category {
        border-bottom: 1px solid var(--gts-menu-border);
    }
    
    .gts-mobile-category:last-child {
        border-bottom: none;
    }
    
    .gts-mobile-category-title {
           font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
          color: #000000;
        padding: 15px 20px 8px;
        margin: 0;
    }

      .gts-mobile-submenu.active  .gts-menu-list li a {
        font-size: 15px;
    }
    
    .gts-mobile-category-list {
        list-style: none;
        margin: 0;
        padding: 0 0 10px 0;
    }
    
    .gts-mobile-category-list li {
        border-bottom: none !important;
    }
    
    .gts-mobile-category-list li a {
        display: block;
        padding: 10px 20px 10px 30px;
        color: #484848;
        text-decoration: none;
        font-size: 17px;
        font-weight: 400;
        transition: color 0.2s ease, background-color 0.2s ease;
    }
    
    .gts-mobile-category-list li a:hover {
        color: var(--gts-menu-hover);
        background-color: #eee;
    }

    .gts-menu-logo img {
    max-height: 40px;
    width: auto;
}

    .gts-menu-container {
    padding: 0 35px;
    min-height: 70px;
}
    
    .gts-menu-list > li.has-megamenu {
        position: relative;
    }
    
    /* Hamburger gomb */
    .gts-menu-toggle {
        display: block;
    }
    
    /* Off-Canvas Menü */
    .gts-menu-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 90%;
max-width: 90%;
        height: 100vh;
        background-color: var(--gts-menu-bg);
        flex-direction: column;
        flex-grow: 0;
        justify-content: flex-start;
        padding: 0;
        z-index: 999;
        transform: translateX(100%);
        visibility: hidden;
        overflow-y: auto;
        overflow-x: hidden;
        transition: transform var(--gts-transition), visibility var(--gts-transition), box-shadow var(--gts-transition);
    }

    .gts-menu-overlay, .gts-megamenu-overlay {
    z-index: 998;
    height: 100vh;
}
    
    .gts-menu-nav.active {
        transform: translateX(0);
        visibility: visible;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }
    
    /* Body scroll lock */
    body.gts-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Wrapper padding eltávolítása amikor a menü nyitva */
    body.gts-menu-open .gts-menu-wrapper {
        padding: 0;
    }
    
    /* Off-Canvas Fejléc - Logo */
    .gts-offcanvas-header {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid var(--gts-menu-border);
    }
    
    /* Off-Canvas Logo */
    .gts-offcanvas-logo {
        display: flex;
        align-items: center;
    }
    
    .gts-offcanvas-logo a {
        display: flex;
        align-items: center;
    }
    
    .gts-offcanvas-logo img {
        max-height: 65px;
        width: auto;
    }
    
    /* Menü lista */
    .gts-nav-container {
        width: 100%;
    }
    
    .gts-menu-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 10px 0;
    }
    
    .gts-menu-list li {
        width: 100%;
        border-bottom: 0px solid var(--gts-menu-border);
    }
    
    .gts-menu-list li:last-child {
        border-bottom: none;
    }
    
    .gts-menu-list li a {
        padding: 12px 20px;
        border-radius: 0;
        color: var(--gts-menu-text);
    }
    
    /* Almenü - Mobil */
    .gts-menu-list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f8f9fa;
        padding: 0;
        border-radius: 0;
    }
    
    .gts-menu-list .sub-menu li a {
        padding-left: 40px;
        font-size: 0.9rem;
    }
    
    .gts-menu-list .sub-menu .sub-menu li a {
        padding-left: 60px;
    }
    
    /* Body scroll lock */
    body.gts-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

