/* Főfejléc stílusok */
.main-header {
    position: relative;
    z-index: 1000;
}

/* Felső vékony sáv - sárga háttér a kapcsolati információkkal */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 0;
    width: 100%;
    position: relative;
    z-index: 1100;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-contacts {
    display: flex;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-contacts a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.top-bar-contacts a:hover {
    opacity: 0.8;
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    color: #fff;
    font-size: 16px;
    transition: opacity 0.2s;
}

.top-bar-social a:hover {
    opacity: 0.8;
}

/* Sticky főmenü */
.main-nav-container {
    background: #000000;
    position: relative;
    z-index: 999;
}

.main-nav-container.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
}

.main-nav-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.main-nav-container.sticky .main-nav {
    height: 60px;
}

/* Logó rész */
.header-logo {
    padding-right: 20px;
}

.header-logo img {
    height: 48px;
    width: auto;
    transition: height 0.3s ease;
}

.logo-small {
    display: none;
}

.main-nav-container.sticky .logo-normal {
    display: none;
}

.main-nav-container.sticky .logo-small {
    display: block;
}

/* Navigáció */
.header-nav {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.main-nav-container.sticky .header-nav {
    font-size: 0.95em;
}

.header-nav a {
    text-decoration: none;
    padding: 0 12px;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: color 0.2s;
}

.header-nav a:hover, 
.header-nav a.nav-highlight {
    color: var(--primary-color);
}

.header-nav a.nav-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Közösségi média ikonok */
.header-social {
    display: flex;
    margin-left: 15px;
}

.header-social a {
    color: var(--text-color);
    font-size: 16px;
    margin-left: 10px;
    transition: color 0.2s;
}

.header-social a:hover {
    color: var(--primary-color);
}

/* Bevásárlókosár ikon */
.header-cart {
    margin-left: 15px;
}

.cart-btn {
    position: relative;
    color: var(--text-color);
    font-size: 20px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.cart-btn:hover {
    background-color: var(--primary-color);
    opacity: 0.1;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Mobil menü gomb - alaphelyzetben rejtve */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin-bottom: 4px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Mobil menü - alaphelyzetben mindig rejtve */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    z-index: 99999;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    transition: right 0.3s ease;
    padding: 0;
    overflow-y: auto;
    display: none;
    color: #fff;
}

.mobile-menu.active {
    right: 0;
    display: flex;
    flex-direction: column;
}

/* Overlay a mobil menü mögött */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

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

.mobile-menu-close {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

.mobile-menu-close button {
    background: rgba(255,255,255,0.15);
    border: none;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.mobile-menu-close button:hover {
    background: rgba(255,255,255,0.25);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 16px;
    transition: all 0.2s ease;
    display: block;
    position: relative;
    z-index: 1;
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 30px;
}

.mobile-nav a.active,
.mobile-nav a.nav-highlight {
    background: linear-gradient(90deg, rgba(255, 186, 8, 0.3), transparent);
    color: var(--primary-color);
    font-weight: 700;
    border-left: 4px solid var(--primary-color);
}

/* Mobil menü kapcsolat szekció */
.mobile-contacts {
    margin-top: auto;
    padding: 20px 25px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-contacts-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mobile-contact-item i {
    color: rgba(255,255,255,0.7);
    width: 20px;
    text-align: center;
}

.mobile-contact-item a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.mobile-contact-item a:hover {
    color: var(--primary-color);
}

.mobile-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-social a {
    color: #fff;
    font-size: 20px;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.mobile-social a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Reszponzív beállítások */
@media (max-width: 992px) {
    .top-bar-contacts {
        font-size: 13px;
    }
    
    .top-bar-contacts .contact-item:nth-child(n+2) {
        display: none; /* Csak az első telefonszámot mutatjuk */
    }
    
    .main-nav {
        height: 70px;
    }
    
    .main-nav-container.sticky .main-nav {
        height: 55px;
    }
}

/* 768px alatti stílusok a mobile.css-ben vannak definiálva */

@media (max-width: 768px) {
    /* Felső sáv elrejtése mobilon */
    .top-bar {
        display: none;
    }
    
    /* Fő navigáció - minden egy sorban */
    .main-nav {
        height: 60px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .main-nav-container .container {
        padding: 0 15px;
    }
    
    .main-nav-container.sticky .main-nav {
        height: 55px;
    }
    
    /* Logó balra */
    .header-logo {
        padding-right: 0;
        flex-shrink: 0;
    }
    
    .header-logo img.logo-normal {
        height: 36px;
    }
    
    .header-logo img.logo-small {
        height: 30px;
    }
    
    /* Desktop navigáció elrejtése */
    .header-nav {
        display: none !important;
    }
    
    /* Jobb oldali elemek konténer */
    .header-cart {
        margin-left: auto;
        margin-right: 10px;
    }
    
    .cart-btn {
        font-size: 20px;
        padding: 8px;
        color: #fff;
    }
    
    .cart-badge {
        top: 0;
        right: 0;
    }
    
    /* Mobil menü gomb megjelenítése */
    .mobile-menu-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
        margin-left: 0;
        flex-shrink: 0;
    }
    
    .mobile-menu-button span {
        display: block;
        width: 24px;
        height: 2px;
        margin-bottom: 5px;
        background-color: #fff;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-button span:last-child {
        margin-bottom: 0;
    }
    
    /* Mobil menü megjelenítése */
    .mobile-menu {
        display: block;
    }
}

@media (max-width: 576px) {
    .main-nav {
        height: 55px;
    }
    
    .main-nav-container .container {
        padding: 0 12px;
    }
    
    .main-nav-container.sticky .main-nav {
        height: 50px;
    }
    
    .header-logo img.logo-normal {
        height: 32px;
    }
    
    .header-logo img.logo-small {
        height: 26px;
    }
    
    .header-cart {
        margin-right: 8px;
    }
    
    .cart-btn {
        font-size: 18px;
        padding: 6px;
    }
    
    .cart-badge {
        font-size: 9px;
        width: 16px;
        height: 16px;
    }
    
    .mobile-menu-button {
        padding: 8px;
    }
    
    .mobile-menu-button span {
        width: 22px;
        margin-bottom: 4px;
    }
}
