/* Modern Top Search Bar - FEHÉR HÁTTÉR - átvéve az index_labor.php-ból */
.top-search-bar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    border-bottom: 2px solid #ff8600 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 999 !important;
    width: 100% !important;
    margin: 0 !important;
    clear: both !important;
}

.top-search-bar .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
    padding: 8px 10px !important;
    gap: 10px !important;
    width: auto !important;
    box-sizing: border-box !important;
}

/* Logo Section */
.top-search-bar .logo-section {
    flex-shrink: 0 !important;
    max-width: 280px !important;
}

.top-search-bar .logo-section img {
    max-height: 100px !important;
    width: auto !important;
}

/* Search Section */
.top-search-bar .search-section {
    flex: 1 !important;
    max-width: 650px !important;
    margin: 0 8px !important;
}

.top-search-bar .search-container {
    position: relative !important;
    width: 100% !important;
}

.top-search-bar #liveSearch {
    width: 100% !important;
    padding: 12px 45px 12px 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    background: #f8f9fa !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    color: #333 !important;
    }

.top-search-bar #liveSearch:focus {
    outline: none !important;
    border-color: #ff8600 !important;
    box-shadow: 0 0 10px rgba(255, 134, 0, 0.2) !important;
    background: white !important;
}

.top-search-bar .search-icon {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #ff8600 !important;
    font-size: 18px !important;
    pointer-events: none !important;
    }

.top-search-bar .search-results {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border: 3px solid #ff8600 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    z-index: 99999999 !important;
    display: none !important;
    margin-top: 5px !important;
    width: 100% !important;
}

.top-search-bar .search-results.show {
    display: block !important;
}

.top-search-bar .search-result-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid #eee !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    }

.top-search-bar .search-result-item:hover {
    background: #f8f9fa !important;
}

.top-search-bar .search-result-item:last-child {
    border-bottom: none !important;
}

.top-search-bar .result-image {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin-right: 12px !important;
}

.top-search-bar .result-content {
    flex: 1 !important;
}

.top-search-bar .result-name {
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 4px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

.top-search-bar .result-price {
    color: #ff8600 !important;
    font-weight: bold !important;
    font-size: 13px !important;
    margin-bottom: 2px !important;
}

.top-search-bar .result-description {
    color: #666 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    max-height: 24px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.top-search-bar .no-results {
    padding: 15px !important;
    text-align: center !important;
    color: #666 !important;
    font-style: italic !important;
    border-bottom: none !important;
}

/* Search Suggestions */
.top-search-bar .search-suggestions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 8px !important;
    justify-content: center !important;
}

.top-search-bar .suggestion-item {
    background: linear-gradient(135deg, #ff8600, #e67600) !important;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 15px !important;
    font-size: 11px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(255, 134, 0, 0.2) !important;
    text-decoration: none !important;
}

.top-search-bar .suggestion-item:hover {
    background: linear-gradient(135deg, #e67600, #cc6600) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 134, 0, 0.3) !important;
    color: white !important;
}

.top-search-bar .search-count {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    color: #666 !important;
    border-bottom: 1px solid #eee !important;
    background: #f9f9f9 !important;
}

.top-search-bar .loading-indicator {
    padding: 10px !important;
    text-align: center !important;
    color: #999 !important;
    font-size: 12px !important;
    animation: pulse 1.5s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.top-search-bar .result-price {
    color: #ff6600 !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

/* User Actions */
.top-search-bar .user-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

/* Phone Section Container */
.top-search-bar .phone-section {
    display: flex !important;
    align-items: center !important;
}

.top-search-bar .phone-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 500 !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    flex-shrink: 0 !important;
}

.top-search-bar .phone-container i {
    font-size: 16px !important;
    color: #ff8600 !important;
}

/* Auth Section */
.top-search-bar .auth-section {
    display: flex !important;
    align-items: center !important;
    }

.top-search-bar .login-buttons {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

.top-search-bar .login-btn, 
.top-search-bar .google-login-btn, 
.top-search-bar .register-btn {
    padding: 12px !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.top-search-bar .login-btn {
    background: linear-gradient(135deg, #ff8600, #e67600) !important;
    color: white !important;
    border: 2px solid #ff8600 !important;
}

.top-search-bar .login-btn:hover {
    background: linear-gradient(135deg, #e67600, #d66500) !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 134, 0, 0.4) !important;
    border-color: #d66500 !important;
}

.top-search-bar .google-login-btn {
    background: linear-gradient(135deg, #4285f4, #357ae8) !important;
    color: white !important;
    border: 2px solid #4285f4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.top-search-bar .google-login-btn:hover {
    background: linear-gradient(135deg, #357ae8, #2c5bcd) !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4) !important;
    border-color: #2c5bcd !important;
}

.top-search-bar .google-login-btn i,
.mobile-row-1 .google-login-btn i {
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.top-search-bar .register-btn {
    background: white !important;
    color: #ff8600 !important;
    border: 2px solid #ff8600 !important;
}

.top-search-bar .register-btn:hover {
    background: #ff8600 !important;
    color: white !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 134, 0, 0.4) !important;
}

.top-search-bar .user-profile {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #333 !important;
    }

.top-search-bar .profile-pic {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    border: 2px solid #ff8600 !important;
    object-fit: cover !important;
}

.top-search-bar .profile-icon-placeholder {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    border: 2px solid #ff8600 !important;
    background: linear-gradient(135deg, #ff8600, #ff6b00) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(255, 134, 0, 0.3) !important;
}

.top-search-bar .profile-icon-placeholder i {
    font-size: 16px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.top-search-bar .profile-icon {
    font-size: 35px !important;
    color: #ff8600 !important;
}

.top-search-bar .username {
    font-weight: 500 !important;
    font-size: 14px !important;
}

.top-search-bar .profile-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.3s ease !important;
    padding: 5px 8px !important;
    border-radius: 8px !important;
}

.top-search-bar .profile-link:hover {
    background: #f8f9fa !important;
    color: #ff8600 !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

.top-search-bar .profile-link:hover .username {
    color: #ff8600 !important;
}

.top-search-bar .logout-btn {
    color: white !important;
    background: #dc3545 !important;
    border: 2px solid #dc3545 !important;
    text-decoration: none !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2) !important;
}

.top-search-bar .logout-btn:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
    color: white !important;
}

/* Cart Section */
.top-search-bar .cart-section {
    position: relative !important;
}

.top-search-bar .cart-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    background: #f8f9fa !important;
    color: #333 !important;
    text-decoration: none !important;
    border-radius: 25px !important;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    min-width: 85px !important;
    font-size: 15px !important;
}

.top-search-bar .cart-btn:hover {
    background: #ff8600 !important;
    color: white !important;
    border-color: #ff8600 !important;
}

.top-search-bar .cart-count {
    background: #ff8600 !important;
    color: white !important;
    border-radius: 50% !important;
    padding: 2px 8px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    min-width: 20px !important;
    text-align: center !important;
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .top-search-bar .search-section {
        max-width: 550px !important;
    }
}

@media (max-width: 1024px) {
    .top-search-bar .search-section {
        max-width: 500px !important;
    }
    
    .top-search-bar .phone-section {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* MOBIL NÉZET - Elrejtjük a desktop elemeket */
    .top-search-bar .header-container > .logo-section,
    .top-search-bar .header-container > .search-section,
    .top-search-bar .header-container > .user-actions {
        display: none !important;
    }
    
    /* MOBIL NÉZETBEN megjelenítjük a 3 soros mobil elemeket */
    .mobile-row-1,
    .mobile-row-2,
    .mobile-row-3 {
        display: flex !important;
    }
    
    /* Mobil telefonszám megjelenítése */
    .mobile-row-2 {
        display: flex !important;
    }
    
    .top-search-bar .header-container {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px 5px !important;
        display: flex !important;
    }
    
    /* Mobil sorok helyes sorrendje */
    .mobile-row-1 {
        order: 1 !important;
    }
    
    .mobile-row-2 {
        order: 2 !important;
    }
    
    .mobile-row-3 {
        order: 3 !important;
    }
    
    /* 1. SOR: Logo + Auth + Kosár kompakt layout */
    .mobile-row-1 {
        /* align-items: center !important; */
        justify-content: flex-start !important;
        width: 100% !important;
        gap: 8px !important;
    }
    
    .mobile-row-1 .logo-section {
        flex-shrink: 0 !important;
        max-width: 100px !important;
    }
    
    .mobile-row-1 .logo-section img {
        max-height: 45px !important;
        width: auto !important;
        display: block !important;
    }
    
    /* Mobile Row 1: Logo | Auth ikonok | Kosár */
    .mobile-row-1 {
        display: flex !important;
        /* justify-content: space-between !important; */
        align-items: center !important;
        padding: 8px 15px !important;
        gap: 8px !important;
        flex-wrap: nowrap;
        /* margin-left: 10%; */
    }
    
    .mobile-row-1 .auth-section-mobile {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    
    .mobile-row-1 .auth-buttons {
        display: flex !important;
        gap: 6px !important;
        margin-left: 60px;
        align-items: center !important;
    }
    
    .mobile-row-1 .mobile-icon-only {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        font-size: 14px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        gap: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        aspect-ratio: 1 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .mobile-row-1 .mobile-icon-only i {
        font-size: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .mobile-row-1 .mobile-icon-only:hover {
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    
    .mobile-row-1 .login-btn {
        background: #f8f9fa !important;
        color: #333 !important;
        border: 2px solid #e0e0e0 !important;
    }
    
    .mobile-row-1 .register-btn {
        background: white !important;
        color: #ff8600 !important;
        border: 2px solid #ff8600 !important;
    }
    
    .mobile-row-1 .google-login-btn {
        background: #4285f4 !important;
        color: white !important;
        border: 2px solid #4285f4 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mobile-row-1 .google-login-btn:hover {
        background: #3367d6 !important;
        border-color: #3367d6 !important;
    }
    
    .mobile-row-1 .profile-btn {
        background: #28a745 !important;
        color: white !important;
        border: 2px solid #28a745 !important;
    }
    
    .mobile-row-1 .profile-btn:hover {
        background: #218838 !important;
        border-color: #218838 !important;
    }
    
    .mobile-row-1 .logout-btn {
        background: #dc3545 !important;
        color: white !important;
        border: 2px solid #dc3545 !important;
    }
    
    .mobile-row-1 .logout-btn:hover {
        background: #c82333 !important;
        border-color: #c82333 !important;
    }
    
    .mobile-row-1 .cart-btn {
        background: #ff8600 !important;
        color: white !important;
        padding: 6px 8px !important;
        border-radius: 15px !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 11px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 3px 10px rgba(255, 134, 0, 0.3) !important;
        position: relative !important;
        flex-shrink: 0 !important;
        min-width: 60px !important;
    }
    
    .mobile-row-1 .cart-btn:hover {
        background: #e67600 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(255, 134, 0, 0.4) !important;
    }
    
    .mobile-row-1 .cart-count {
        position: absolute !important;
        top: -8px !important;
        right: -8px !important;
        background: #e74c3c !important;
        color: white !important;
        border-radius: 50% !important;
        width: 20px !important;
        height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 12px !important;
        font-weight: bold !important;
    }

    /* Mobile Row 2: Egyszerű telefonszám */
    .mobile-row-2 {
        /* padding: 8px 15px !important; */
        justify-content: center !important;
    }
    
    .mobile-row-2 .mobile-phone-container {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 14px !important;
        color: #333 !important;
        font-weight: 500 !important;
        background: white !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        padding: 8px 12px !important;
    }
    
    .mobile-row-2 .mobile-phone-container i {
        font-size: 16px !important;
        color: #ff8600 !important;
    }

    /* Mobile Row 3: Kereső szélesebb */
    .mobile-row-3 {
        padding: 8px 5px !important;
        width: 100% !important;
    }
    
    .mobile-row-3 .search-section-wide {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .mobile-row-3 .search-container-wide {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 99999999 !important;
    }
    
    .mobile-row-3 #mobileSearch {
        width: 100% !important;
        padding: 12px 45px 12px 15px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 25px !important;
        font-size: 16px !important;
        background: #f8f9fa !important;
        transition: all 0.3s ease !important;
        box-sizing: border-box !important;
        color: #333 !important;
        font-weight: 500 !important;
    }
    
    .mobile-row-3 #mobileSearch:focus {
        outline: none !important;
        border-color: #ff8600 !important;
        box-shadow: 0 0 20px rgba(255, 134, 0, 0.4) !important;
        background: white !important;
    }
    
    .mobile-row-3 .search-icon {
        position: absolute !important;
        right: 18px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: #ff8600 !important;
        font-size: 18px !important;
        pointer-events: none !important;
    }
    
    .mobile-row-3 #mobileSearchResults {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        border: 3px solid #ff8600 !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
        max-height: 400px !important;
        overflow-y: auto !important;
        z-index: 99999999 !important;
        display: none !important;
        margin-top: 5px !important;
        width: 100% !important;
    }
    
    .mobile-row-3 #mobileSearchResults.show {
        display: block !important;
        z-index: 99999999 !important;
    }
}

@media (max-width: 480px) {
    .top-search-bar .header-container {
        gap: 6px !important;
        padding: 8px 5px !important;
    }
    
    /* 1. SOR: Logo még kisebb */
    .mobile-row-1 .logo-section {
        max-width: 80px !important;
    }
    
    .mobile-row-1 .logo-section img {
        max-height: 35px !important;
    }
    
    /* Kisebb auth gombok és cart gomb */
    .mobile-row-1 .mobile-icon-only {
        width: 36px !important;
        height: 36px !important;
        font-size: 12px !important;
        min-width: 36px !important;
        max-width: 36px !important;
    }
    
    .mobile-row-1 .mobile-icon-only i {
        font-size: 14px !important;
    }
    
    .mobile-row-1 .cart-btn {
        padding: 5px 6px !important;
        font-size: 10px !important;
        min-width: 50px !important;
    }
    
    /* 2. SOR: Telefonszám kisebb */
    .mobile-row-2 .mobile-phone-container {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
    
    .mobile-row-2 .mobile-phone-container i {
        font-size: 14px !important;
    }
    
    /* 3. SOR: Kereső kisebb */
    .mobile-row-3 #mobileSearch {
        font-size: 15px !important;
        padding: 10px 40px 10px 15px !important;
        border-radius: 20px !important;
    }
    
    .mobile-row-3 .search-icon {
        right: 15px !important;
        font-size: 16px !important;
    }
}

/* Welcome message stílusok */
.welcome-message {
    display: none;
    position: fixed;
    top: 100px !important;
    left: 50%;
    transform: translate(-50%, 0);
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%) !important;
    color: white;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(255, 102, 0, 0.3);
    font-size: 18px;
    font-weight: 600;
    z-index: 10001 !important;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - 40px);
    max-width: 600px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.welcome-message i {
    margin-right: 10px;
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Menü z-index javítása - ne takarja el a keresőt */
.resp-main-menu-bar {
    z-index: 1 !important;
}

/* További menü elemek z-index javítása */
#s5_sub_menu {
    z-index: 1 !important;
}

.submenu-content {
    z-index: 1 !important;
}

/* Minden menü elem z-index csökkentése */
.main-menu, .menu, nav, .navigation {
    z-index: 1 !important;
}

/* Kereső eredmények mindig legfelül */
.search-results, #searchResults, #mobileSearchResults {
    z-index: 99999999 !important;
}

.welcome-message.show {
    display: block !important;
    animation: welcomeSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards, 
               welcomeSlideOut 0.8s 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes welcomeSlideIn {
    from {
        opacity: 0;
        top: 60px;
        transform: translate(-50%, -30px) scale(0.8);
    }
    to {
        opacity: 1;
        top: 100px;
        transform: translate(-50%, 0) scale(1);
    }
}

@keyframes welcomeSlideOut {
    from {
        opacity: 1;
        top: 100px;
        transform: translate(-50%, 0) scale(1);
    }
    to {
        opacity: 0;
        top: 60px;
        transform: translate(-50%, -30px) scale(0.8);
    }
}

/* Reszponzív beállítások a bejelentkezési üzenethez */
@media screen and (max-width: 768px) {
    .welcome-message {
        font-size: 16px !important;
        padding: 15px 25px !important;
        top: 140px !important; /* Mobil nézetben még magasabb pozíció */
        width: calc(100% - 20px) !important;
        max-width: none !important;
    }

    .welcome-message.show {
        animation: welcomeSlideInMobile 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards, 
                   welcomeSlideOutMobile 0.8s 4s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    }

    @keyframes welcomeSlideInMobile {
        from {
            opacity: 0;
            top: 100px;
            transform: translate(-50%, -30px) scale(0.8);
        }
        to {
            opacity: 1;
            top: 140px;
            transform: translate(-50%, 0) scale(1);
        }
    }

    @keyframes welcomeSlideOutMobile {
        from {
            opacity: 1;
            top: 140px;
            transform: translate(-50%, 0) scale(1);
        }
        to {
            opacity: 0;
            top: 100px;
            transform: translate(-50%, -30px) scale(0.8);
        }
    }
}

@media screen and (max-width: 480px) {
    .welcome-message {
        font-size: 14px !important;
        padding: 12px 20px !important;
        top: 120px !important;
    }

    .welcome-message i {
        font-size: 16px !important;
        margin-right: 8px !important;
    }
}

/* Modern menü és meglévő rendszer együttműködése */
.modern-menu-container {
    margin-bottom: 15px;
}

/* Submenu modernizálás */
#s5_sub_menu {
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#s5_sub_menu .submenu-title {
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

#s5_sub_menu .submenu-title:hover {
    background: linear-gradient(135deg, #ff8800 0%, #ffaa00 100%);
    transform: translateY(-1px);
}

#s5_sub_menu .submenu-content {
    padding: 15px;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#s5_sub_menu .submenu-content.active {
    max-height: 500px;
    padding: 15px;
}

/* Breadcrumb javítás */
#kovetosav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    z-index: 0;
    margin: 10px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ff6600;
}

#kovetosav li {
    margin-right: 8px;
    position: relative;
}

#kovetosav li::after {
    content: '>';
    margin-left: 8px;
    color: #ff6600;
    font-weight: bold;
}

#kovetosav li:last-child::after {
    display: none;
}

#kovetosav a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

#kovetosav a:hover {
    color: #ff6600;
    text-decoration: underline;
}

/* Chat gomb javítások */
#chatButton {
    box-shadow: 0 8px 25px rgba(255, 218, 159, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#chatButton:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 12px 35px rgba(255, 218, 159, 0.6) !important;
}

/* Általános javítások */
.resp-main-menu-bar {
    margin-bottom: 20px;
}

/* Loading állapot */
.menu-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    border-radius: 8px;
    margin: 10px 0;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility javítások */
.menu-item > a:focus,
.menu-item > span:focus {
    outline: 3px solid #0066cc !important;
    outline-offset: 2px !important;
}

/* Print stílusok */
@media print {
    .welcome-message,
    .modern-menu-container,
    #chatButton {
        display: none !important;
    }
}

/* Performance optimalizálások */
.modern-menu-container,
.welcome-message {
    will-change: transform, opacity;
}

/* Dark mode támogatás */
@media (prefers-color-scheme: dark) {
    #s5_sub_menu .submenu-content {
        background: #2c2c2c;
        color: white;
    }
    
    #kovetosav {
        background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
        color: white;
    }
    
    #kovetosav a {
        color: #e9ecef;
    }
}

/* Reduced motion támogatás */
@media (prefers-reduced-motion: reduce) {
    .welcome-message,
    .modern-menu-container *,
    #chatButton {
        animation: none !important;
        transition: none !important;
    }
}

/* Élő kereső stílusok */
#live-search-container {
    position: relative;
    display: block;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 8px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 300px;
}

.search-box:focus-within {
    border-color: #ff6600;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.2);
    transform: translateY(-1px);
}

#live-search-input {
    border: none;
    outline: none;
    flex: 1;
    padding: 5px 10px;
    font-size: 14px;
    background: transparent;
    color: #333;
}

#live-search-input::placeholder {
    color: #999;
    font-style: italic;
}

.search-icon {
    color: #ff6600;
    font-size: 16px;
    margin-left: 10px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10003; /* Még magasabb z-index a kereső eredményekhez */
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
}

.search-results-list {
    padding: 0;
    margin: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-description {
    color: #666;
    font-size: 12px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    color: #ff6600;
    font-weight: 600;
    font-size: 13px;
}

.search-loading,
.search-error,
.search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.search-loading i {
    margin-right: 8px;
    color: #ff6600;
}

.search-error {
    color: #dc3545;
}

/* Mobil nézet aktiválása és asztali elrejtése */
@media screen and (max-width: 768px) {
    .desktop-layout {
        display: none !important;
    }
    
    .mobile-layout {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin: 5px;
    }
    
    .mobile-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 10005;
        max-width: 90vw;
        max-height: 80vh;
        overflow-y: auto;
        display: none;
    }
    
    .mobile-popup.active {
        display: block;
    }
    .auth-container {
        padding: 5px;
    }
    
    /* Biztosítjuk, hogy minden elem látható legyen mobil nézetben */
    .mobile-layout * {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Logo fölül, középen */
    #laborlogo {
        order: 1;
        text-align: center;
        margin-bottom: 8px;
    }
    
    /* Logo és ikonok egy sorban - kompakt layout */
    .mobile-layout .logo-icons-row {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 15px;
        order: 2;
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Mobil regform és belepes egymás mellett */
    .mobile-layout .mobile-auth-row {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        order: 5;
        width: 100%;
        margin-top: 8px;
        flex-wrap: wrap;
    }
    
    .mobile-layout .mobile-auth-item {
        background: #f8f9fa;
        padding: 6px 12px;
        border-radius: 15px;
        border: 1px solid #dee2e6;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .mobile-layout .logo-icons-row #laborlogo {
        order: 1;
        margin-bottom: 0;
        flex-shrink: 0;
        text-align: center;
    }
    
    .mobile-layout .logo-icons-row #ikoncontainer {
        order: 2;
        display: flex !important;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .mobile-layout .logo-icons-row #kosarbox {
        order: 3;
        flex-shrink: 0;
        display: flex !important;
    }
    
    /* Kereső alul, középen */
    .mobile-layout .search-and-icons {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 3;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .mobile-layout #live-search-container {
        flex: 1;
        max-width: 280px;
        margin: 0;
        display: block !important;
    }
    
    /* Telefonszám legvégén, középen */
    .mobile-layout .phone-container {
        order: 4;
        text-align: center;
        font-size: 12px;
        margin-top: 5px;
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        padding: 8px 15px;
        border-radius: 20px;
        border: 1px solid #dee2e6;
        color: #495057;
        font-weight: 500;
    }
    
    .mobile-layout .phone-container i {
        color: #ff6600 !important;
        font-size: 14px !important;
        margin-right: 5px !important;
    }
    
    /* Kereső mező optimalizálás */
    .search-box {
        min-width: 200px;
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    #live-search-input {
        font-size: 13px;
        padding: 4px 8px;
    }
    
    .search-results {
        max-height: 200px;
        font-size: 11px;
    }
    
    .search-result-item {
        padding: 6px 8px;
    }
    
    .search-result-image {
        width: 30px;
        height: 30px;
        margin-right: 6px;
    }
    
    .search-result-name {
        font-size: 11px;
    }
    
    .search-result-description {
        font-size: 10px;
    }
    
    .search-result-price {
        font-size: 10px;
    }
    
    /* Ikonok méretezése - kompakt, színes */
    .mobile-layout .icon-container {
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%) !important;
        color: white !important;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
        position: relative;
        cursor: pointer;
        margin: 0 !important;
    }
    
    .mobile-layout .icon-container:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
    }
    
    .mobile-layout .icon-container i {
        font-size: 16px !important;
        color: white !important;
        margin: 0 !important;
    }
    
    /* Kosár számláló */
    .mobile-layout .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #dc3545 !important;
        color: white !important;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        border: 2px solid white;
    }
}

@media screen and (max-width: 480px) {
    .auth-container {
        gap: 8px;
        padding: 6px;
    }
    
    .search-and-icons {
        gap: 8px;
    }
    
    .search-box {
        min-width: 308px;
        padding: 3px 6px;
    }
    
    #live-search-input {
        font-size: 11px;
    }
    
    .search-results {
        max-height: 150px;
    }
    
    .phone-container {
        font-size: 11px;
    }
    
    .icon-container {
        width: 28px;
        height: 28px;
    }
    
    .icon-container i {
        font-size: 12px;
    }
}

/* Auth container layout javítás - egyszerűsített verzió */
.auth-container {
    width: 100%;
    position: relative;
    z-index: 10001;
    padding: 10px 0;
}

/* Asztali layout */
.desktop-layout {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 15px;
    width: 100%;
    padding: 10px 0;
    flex-direction: row;
}

/* Mobil layout - alapértelmezetten rejtett */
.mobile-layout {
    display: none !important;
}

/* Asztali nézetben mobil layout teljesen elrejtése */
@media screen and (min-width: 769px) {
    .mobile-layout {
        display: none !important;
    }
}

/* Asztali nézet stílusai */
.desktop-layout .desktop-auth,
.desktop-layout .desktop-search {
    display: flex !important;
    align-items: center;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
    white-space: nowrap;
}

.desktop-layout .desktop-cart {
    display: flex;
    align-items: center;
}

.desktop-layout .phone-container {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    flex-shrink: 0;
}

.desktop-layout .desktop-cart .icon-container {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    position: relative;
}

.desktop-layout .desktop-cart .icon-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.desktop-layout .desktop-cart .icon-container i {
    font-size: 20px;
    color: white;
}

.desktop-layout .desktop-cart .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid white;
}

#laborlogo {
    flex-shrink: 0;
}

#live-search-container {
    flex: 1;
    max-width: 400px;
    position: relative;
    z-index: 10002;
}

#ikoncontainer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#kosarbox {
    flex-shrink: 0;
}

.phone-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.phone-container i {
    color: #ff6600;
    font-size: 16px;
}

/* Asztali nézet optimalizálás */
@media screen and (min-width: 1024px) {
    .auth-container {
        gap: 25px;
        padding: 15px 0;
    }
    
    #live-search-container {
        max-width: 500px;
    }
    
    .phone-container {
        font-size: 15px;
    }
}

/* Dark mode támogatás a keresőhöz */
@media (prefers-color-scheme: dark) {
    .search-box {
        background: #2c2c2c;
        border-color: #444;
    }
    
    #live-search-input {
        color: #e9ecef;
    }
    
    #live-search-input::placeholder {
        color: #adb5bd;
    }
    
    .search-results {
        background: #2c2c2c;
        border-color: #444;
    }
    
    .search-result-item {
        border-bottom-color: #444;
    }
    
    .search-result-item:hover {
        background-color: #3c3c3c;
    }
    
    .search-result-name {
        color: #e9ecef;
    }
    
    .search-result-description {
        color: #adb5bd;
    }
    
    .search-result-image img {
        border-color: #444;
    }
    
    .search-loading,
    .search-error,
    .search-no-results {
        color: #adb5bd;
    }
} 