/* HEADER2 - Modern Dynamic Header Styles */
/* Bu CSS FOUC problemini çözmek için ayrı dosyada tutulur */
/* Updated: 2025-09-03 - Animated Top Banner v3.0 */

/* Animated Top Banner Styles */
.animated-top-banner {
    position: relative;
    height: 70px; /* Increased from 60px */
    overflow: hidden;
    border-bottom: 1px solid rgba(26, 115, 232, 0.1);
    z-index: 1002;
}

.animated-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

.banner-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: glowMove 6s ease-in-out infinite;
}

.animated-banner-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 8px 20px; /* Added vertical padding */
    z-index: 10;
}

.rotating-highlights {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.highlight-slide {
    display: none; /* Will be controlled by JS */
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: white !important;
    font-weight: bold;
    white-space: nowrap;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    position: relative;
}

.slide-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-icon i {
    font-size: 16px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.slide-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slide-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1.3; /* Better line spacing */
    display: block;
    margin-bottom: 2px;
}

.slide-text span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.2; /* Better line spacing */
    display: block;
}

.banner-special-offer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
}

.live-text {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.offer-text {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowMove {
    0%, 100% { transform: translate(-50%, -60%) rotate(0deg); }
    33% { transform: translate(-30%, -40%) rotate(120deg); }
    66% { transform: translate(-70%, -20%) rotate(240deg); }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .animated-top-banner {
        height: 60px; /* Increased for better mobile text visibility */
    }
    
    .animated-banner-content {
        padding: 0 15px;
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
        text-align: center;
    }
    
    .rotating-highlights {
        width: 100%; /* Full width for centering */
        min-width: auto;
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .highlight-slide {
        padding: 0 10px;
        font-size: 12px;
        justify-content: center; /* Center slide content */
        text-align: center;
    }
    
    .banner-special-offer {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .slide-text strong {
        font-size: 12px;
    }
    
    .slide-text span {
        font-size: 10px;
    }
    
    .slide-icon {
        width: 28px;
        height: 28px;
    }
    
    .slide-icon i {
        font-size: 14px;
    }
}

/* Mobile Navigation Category Styles */
.mobile-nav-category {
    border-bottom: 1px solid #e9ecef;
}

.mobile-nav-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.6s;
}

.mobile-nav-category-header:hover::before {
    left: 100%;
}

.mobile-nav-category-header:hover {
    background: linear-gradient(135deg, #e7f3ff 0%, #cce7ff 100%);
    color: #007bff;
    padding-left: 25px;
}

.mobile-nav-category-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-nav-category-title i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    color: #007bff;
    flex-shrink: 0;
}

.mobile-nav-category-title span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.mobile-nav-category-header:hover .mobile-nav-category-title span {
    font-weight: 600;
    color: #007bff;
}

.mobile-nav-category-toggle {
    font-size: 14px;
    color: #666;
    transition: transform 0.3s ease;
}

.mobile-nav-category.expanded .mobile-nav-category-toggle {
    transform: rotate(180deg);
    color: #007bff;
}

.mobile-nav-submenu {
    max-height: 0;
    overflow: hidden;
    background: #f8f9fa;
    transition: max-height 0.4s ease;
}

.mobile-nav-category.expanded .mobile-nav-submenu {
    max-height: 600px; /* Adjust as needed */
}

.mobile-nav-sublink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 14px 40px;
    text-decoration: none;
    color: #555;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
    font-size: 15px;
}

.mobile-nav-sublink:hover {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    padding-left: 45px;
    text-decoration: none;
}

.mobile-nav-sublink i {
    color: #007bff;
    font-size: 16px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-nav-sublink:hover i {
    color: #856404;
}

.mobile-nav-simple-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-simple-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.6s;
}

.mobile-nav-simple-link:hover::before {
    left: 100%;
}

.mobile-nav-simple-link:hover {
    background: linear-gradient(135deg, #e7f3ff 0%, #cce7ff 100%);
    color: #007bff;
    padding-left: 25px;
    text-decoration: none;
}

.mobile-nav-simple-link i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    color: #007bff;
    flex-shrink: 0;
}

.mobile-nav-simple-link span {
    font-size: 16px;
    font-weight: 500;
}

.mobile-nav-simple-link:hover span {
    font-weight: 600;
        width: 100%;
    }
    
    .slide-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    
    .slide-icon i {
        font-size: 12px;
    }
    
    .slide-text {
        text-align: center; /* Center mobile slide text */
    }
    
    .slide-text strong {
        font-size: 12px;
        line-height: 1.2;
        text-align: center;
    }
    
    .slide-text span {
        font-size: 10px;
        line-height: 1.1;
        text-align: center;
    }
    
    .banner-special-offer {
        padding: 6px 12px;
        min-width: 120px;
    }
    
    .offer-text {
        font-size: 11px;
    }
    
    .live-text {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .animated-banner-content {
        justify-content: center;
        text-align: center;
        flex-direction: column; /* Stack vertically if needed */
    }
    
    .rotating-highlights {
        width: 100%;
        justify-content: center;
    }
    
    .banner-special-offer {
        display: none; /* Hide LIVE offer on very small screens */
    }
}

/* Banner slide rotation animation will be handled by JavaScript */

/* Base Visibility Control */
.modern-header {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Header Foundation */
.modern-header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Desktop Header */
.desktop-header {
    border-bottom: 1px solid #f0f2f5;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

/* Logo Section */
.logo-section {
    flex-shrink: 0;
    min-width: 180px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a73e8;
    letter-spacing: -0.5px;
}

/* Search Section */
.search-section {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.modern-search-form {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #1a73e8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    color: #333;
}

.search-input-wrapper input::placeholder {
    color: #8e9297;
}

.search-btn {
    background: #1a73e8;
    border: none;
    color: white;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #1557b0;
}

/* Actions Section */
.actions-section {
    flex-shrink: 0;
    min-width: 120px;
    display: flex;
    justify-content: flex-end;
}

.modern-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.modern-cart-btn:hover {
    border-color: #1a73e8;
    background: #f8fbff;
    color: #1a73e8;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.modern-cart-btn i {
    font-size: 18px;
    color: #1a73e8;
}

.cart-text {
    font-size: 14px;
    font-weight: 500;
}

.cart-count {
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Main Navigation */
.main-navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 8px 2px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-link i {
    font-size: 13px;
    opacity: 0.9;
}

.dropdown-arrow {
    font-size: 10px !important;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 450px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.total-products {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
}

.dropdown-grid {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
}

/* Special styling for Kapazität mega menu - 2 columns, 3 rows layout */
.kapazitat-dropdown .dropdown-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    max-height: 500px;
    min-width: 600px;
    padding: 30px;
}

.kapazitat-dropdown {
    min-width: 660px;
    max-width: 720px;
    left: -180px; /* Better centering for much wider 2 columns */
}

/* Compact styling for Kapazität dropdown items */
.kapazitat-dropdown .dropdown-item {
    padding: 12px 15px;
    font-size: 13px;
    gap: 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.kapazitat-dropdown .item-name {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    text-align: left;
}

.kapazitat-dropdown .item-count {
    font-size: 11px;
    padding: 3px 6px;
    min-width: 30px;
    text-align: center;
}

.kapazitat-dropdown .dropdown-item i {
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #1a73e8;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
}

.dropdown-item i {
    font-size: 12px;
    color: #1a73e8;
    width: 16px;
    text-align: center;
}

.dropdown-item:hover i {
    color: white;
}

.item-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.item-count {
    font-size: 11px;
    color: #8e9297;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.dropdown-item:hover .item-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.dropdown-footer {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #1557b0;
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

/* Mobile Header */
.mobile-header {
    background: #fff;
}

.mobile-top-bar {
    padding: 0;
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    min-height: 60px;
}

.hamburger-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 8px;
}

.hamburger-btn:hover {
    background: rgba(0, 123, 255, 0.1);
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: #007bff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover .hamburger-line {
    background: #0056b3;
}

.mobile-logo {
    flex: 1;
    text-align: center;
    margin: 0 15px;
}

.mobile-logo a {
    text-decoration: none;
}

.mobile-site-logo {
    max-height: 35px;
    width: auto;
}

.mobile-logo h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a73e8;
}

.mobile-cart-btn {
    position: relative;
    padding: 8px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.3s ease;
}

.mobile-cart-btn:hover {
    color: #1a73e8;
    text-decoration: none;
}

.mobile-cart-btn i {
    font-size: 20px;
}

.mobile-cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

/* Mobile Search Bar */
.mobile-search-bar {
    padding: 0 15px 12px;
    background: #f8f9fa;
}

.mobile-search-form {
    position: relative;
    width: 100%;
}

.mobile-search-wrapper {
    display: flex;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-search-wrapper input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.mobile-search-wrapper button {
    background: #1a73e8;
    border: none;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.mobile-nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    box-shadow: 4px 0 30px rgba(0, 123, 255, 0.2);
    z-index: 1100;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}

.mobile-nav-menu.show {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.close-menu-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.close-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.close-menu-btn i {
    font-size: 16px;
}

.mobile-nav-items {
    padding: 15px 0;
}

/* Ana Menü Kategoriler */
.mobile-nav-category {
    margin-bottom: 8px;
}

.mobile-nav-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #007bff;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.mobile-nav-category-header:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: #1976d2;
    color: #1976d2;
    padding-left: 24px;
}

.mobile-nav-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-category-title i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #007bff;
}

.mobile-nav-category-title span {
    font-size: 15px;
    font-weight: 600;
}

.mobile-nav-category-toggle {
    font-size: 14px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.mobile-nav-category.expanded .mobile-nav-category-toggle {
    transform: rotate(180deg);
}

/* Alt Menü Öğeleri */
.mobile-nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.mobile-nav-category.expanded .mobile-nav-submenu {
    max-height: 500px;
}

.mobile-nav-sublink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 50px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
}

.mobile-nav-sublink::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #007bff;
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.mobile-nav-sublink:hover {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
    color: #007bff;
    padding-left: 54px;
}

.mobile-nav-sublink:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
    background: #1976d2;
}

.mobile-nav-sublink i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: #007bff;
    opacity: 0.8;
}

.mobile-nav-sublink span {
    font-weight: 500;
}

.mobile-nav-sublink:hover span {
    font-weight: 600;
}

/* Basit Link (Alt menüsü olmayan) */
.mobile-nav-simple-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: #333;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    margin-bottom: 2px;
}

.mobile-nav-simple-link:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #007bff;
    border-left-color: #007bff;
    padding-left: 24px;
    transform: translateX(2px);
    text-decoration: none;
}

.mobile-nav-simple-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #007bff;
}

.mobile-nav-simple-link span {
    font-size: 15px;
    font-weight: 500;
}

.mobile-nav-simple-link:hover span {
    font-weight: 600;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 10000;
}

/* Responsive - Critical CSS for proper loading */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .mobile-nav-menu {
        width: 90%;
        max-width: 350px;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .mobile-nav-menu {
        width: 280px;
    }
    
    .mobile-nav-category-header {
        padding: 14px 18px;
    }
    
    .mobile-nav-category-title span {
        font-size: 14px;
    }
    
    .mobile-nav-sublink {
        padding: 10px 18px 10px 45px;
    }
    
    .mobile-nav-simple-link {
        padding: 14px 18px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .mobile-nav-menu {
        width: 260px;
    }
    
    .mobile-nav-category-header {
        padding: 12px 16px;
    }
    
    .mobile-nav-category-title span {
        font-size: 13px;
    }
    
    .mobile-nav-sublink {
        padding: 8px 16px 8px 40px;
        font-size: 13px;
    }
    
    .mobile-nav-simple-link {
        padding: 12px 16px;
    }
}

/* FORCE REMOVE ALL BLUE BORDERS - FINAL OVERRIDE */
@media (max-width: 768px) {
    .mobile-nav-simple-link,
    .mobile-nav-sublink,
    .mobile-nav-category,
    .mobile-nav-category-header {
        border-bottom: none !important;
        border-top: none !important;
        border: none !important;
    }
    
    /* Also remove any potential blue lines from containers */
    .mobile-nav-menu,
    .mobile-nav-content,
    .mobile-header,
    .mobile-search-bar,
    #mobile-search-dropdown,
    .mobile-search-dropdown,
    .search-dropdown {
        border-bottom: none !important;
        border-top: none !important;
        border: none !important;
    }
}
    .mobile-nav-simple-link span {
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
}

/* Navigation responsiveness */
@media (max-width: 1200px) {
    .nav-dropdown {
        min-width: 280px;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .header-content {
        gap: 20px;
    }
    
    .search-section {
        max-width: 400px;
    }
}

/* FOUC Prevention - Header2 Specific */
.modern-header {
    min-height: 100px; /* Prevent layout shift */
}

.desktop-header {
    min-height: 100px;
}

.mobile-header {
    min-height: 120px; /* Mobile with search bar */
}

/* Initial state - prevent flash */
body.loading .modern-header {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

body .modern-header {
    opacity: 1;
    transform: translateY(0);
}
