/* Sayfa yükseklik değişimlerinde sağa/sola kaymayı (shift) önlemek için sabit scrollbar */
html {
    overflow-y: scroll;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', Arial, sans-serif; }
body { background-color: #fff; color: #334155; }

.top-announcement-inner, .main-header-inner, .nav-bar-inner {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.top-announcement { background: #f8fafc; border-bottom: 1px solid #e2e8f0; width: 100%; }
.top-announcement-inner { padding: 8px 20px; font-size: 12px; color: #64748b; }

.top-announcement .promo-text { 
    background: #0f172a; 
    color: #60a5fa; 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-weight: 700; 
    letter-spacing: 0.3px; 
}

.top-announcement .top-right-links { display: flex; align-items: center; gap: 20px; }

.top-announcement .top-right-links a { 
    background: #0f172a; 
    color: #60a5fa; 
    padding: 4px 10px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-size: 12px; 
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.2s; 
}
.top-announcement .top-right-links a:hover { 
    background: #2563eb; 
    color: #fff; 
}

.main-header { background: #fff; border-bottom: 1px solid #e2e8f0; width: 100%; position: relative; }
.main-header-inner { padding: 20px; gap: 15px; }

.header-logo a { display: flex; flex-direction: column; text-decoration: none; color: #0f172a; font-weight: 700; font-size: 14px; line-height: 1.1; text-align: center; border: 2px solid #0f172a; padding: 6px 12px; border-radius: 6px; flex-shrink: 0; transition: all 0.2s; }
.header-logo a:hover { border-color: #2563eb; color: #0f172a; background: #eff6ff; }
.header-logo span { font-size: 10px; color: #60a5fa; background: #0f172a; margin-top: 2px; padding: 1px 3px; letter-spacing: 0.5px; transition: all 0.2s; }
.header-logo a:hover span { background: #2563eb; color: #fff; }

.wd-search-form { flex: 1; max-width: 500px; position: relative; }
.searchform.wd-style-with-bg { display: flex; align-items: center; border: 1.5px solid #cbd5e1; border-radius: 50px; background: #fff; overflow: visible; width: 100%; transition: border-color 0.2s; position: relative; }
.searchform.wd-style-with-bg:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }

.searchform.wd-style-with-bg input.s { border: none; padding: 10px 20px; width: 100%; outline: none; font-size: 13px; color: #334155; background: transparent; border-radius: 50px 0 0 50px; }
.searchform.wd-style-with-bg input.s::placeholder { color: #94a3b8; }

.searchform.wd-style-with-bg .searchsubmit { background: #0f172a; border: none; color: #60a5fa; padding: 0 20px; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; height: 42px; border-radius: 0 50px 50px 0; flex-shrink: 0; }
.searchform.wd-style-with-bg .searchsubmit:hover { background: #2563eb; color: #fff; }
.searchform.wd-style-with-bg .searchsubmit:hover svg { stroke: #fff; }

.searchsubmit-text { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.searchsubmit-text svg { width: 16px; height: 16px; stroke: #60a5fa; stroke-width: 2.5; fill: none; transition: stroke 0.2s; }

#search-results-dropdown, #search-results-dropdown-mobile {
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    z-index: 9999;
    display: none;
    max-height: 350px;
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.search-result-item:hover { background: #f8fafc; }
.search-result-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; margin-right: 12px; }
.search-result-info { display: flex; flex-direction: column; }
.search-result-title { font-size: 13px; color: #334155; font-weight: 700; }
.search-result-price { font-size: 12px; color: #2563eb; font-weight: 700; margin-top: 2px; }
.search-result-category { font-size: 11px; color: #64748b; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; display: inline-block; width: fit-content; margin-top: 2px; }

.search-section-title { font-size: 11px; font-weight: 700; color: #64748b; background: #f8fafc; padding: 6px 15px; text-transform: uppercase; border-bottom: 1px solid #e2e8f0; }

/* Profesyonel Müşteri Hizmetleri Alanı */
.header-support { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    gap: 12px; 
    flex-shrink: 0; 
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.header-support .support-icon-wrap {
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.header-support .support-icon-wrap svg {
    width: 20px;
    height: 20px;
    stroke: #0f172a;
    stroke-width: 2.2;
    transition: all 0.3s ease;
}

.header-support:hover .support-icon-wrap { 
    background: #0f172a; 
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.header-support:hover .support-icon-wrap svg { 
    stroke: #60a5fa; 
}

.support-info { 
    font-size: 10px; 
    color: #64748b; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 0.5px;
}

.support-info b { 
    display: block; 
    color: #0f172a; 
    font-size: 13px; 
    margin-top: 2px; 
    font-family: 'Inter', Arial, sans-serif; 
    letter-spacing: 0.5px; 
    transition: color 0.2s ease; 
}

.header-support:hover .support-info b { 
    color: #2563eb; 
}

.header-cart { flex-shrink: 0; }
.header-cart a { display: flex; align-items: center; text-decoration: none; background: #f8fafc; padding: 9px 14px; border-radius: 6px; color: #334155; font-weight: 700; font-size: 13px; gap: 6px; border: 1px solid #e2e8f0; transition: all 0.2s; }
.header-cart a:hover { border-color: #0f172a; background: #0f172a; color: #fff; }
.header-cart a span { background: #2563eb; color: #fff; border-radius: 50%; padding: 2px 6px; font-size: 11px; transition: all 0.2s; }
.header-cart a:hover span { background: #60a5fa; color: #0f172a; }

.nav-bar { background: #fff; border-bottom: 1px solid #e2e8f0; width: 100%; }
.nav-bar-inner { padding: 0 20px; }

.main-menu, .nav-right-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
}

.main-menu li a, .nav-right-links li a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 8px 2px;
    position: relative;
    transition: color 0.25s ease;
    display: inline-block;
}

.main-menu li a::after, .nav-right-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2563eb;
    transition: width 0.25s ease;
}

.main-menu li a:hover, .nav-right-links li a:hover {
    color: #2563eb;
}

.main-menu li a:hover::after, .main-menu li a.active::after, 
.nav-right-links li a:hover::after, .nav-right-links li a.active::after {
    width: 100%;
}

.main-menu li a.active, .nav-right-links li a.active {
    color: #2563eb;
}

.mobile-menu-toggle {
    display: none;
    background: #0f172a;
    border: 2px solid #2563eb;
    border-radius: 6px;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 18px;
    color: #60a5fa;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
.mobile-menu-toggle:hover {
    background: #2563eb;
    color: #fff;
    border-color: #0f172a;
}

@media (max-width: 992px) {
    .top-announcement { display: none; }
    .main-header-inner { flex-wrap: wrap; justify-content: space-between; padding: 12px 15px; }
    .wd-search-form { display: none; }
    .header-support { display: none; }
    .mobile-menu-toggle { display: block; }

    .nav-bar {
        display: none;
        width: 100%;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        border-bottom: 3px solid #0f172a;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
        z-index: 9998;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .nav-bar.active { 
        display: block; 
        opacity: 1;
        transform: translateY(0);
    }
    .nav-bar-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 15px 20px 20px 20px;
    }

    .mobile-search-container {
        display: block !important;
        margin-bottom: 15px;
        position: relative;
    }
    
    .mobile-search-container .searchform.wd-style-with-bg {
        background: #f8fafc;
        border-color: #e2e8f0;
    }

    #search-results-dropdown-mobile {
        position: relative;
        top: 0;
        max-height: 280px;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        margin-top: 5px;
    }

    .main-menu {
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid #f1f5f9;
        padding-top: 5px;
        gap: 0;
    }
    .main-menu li a { 
        padding: 12px 10px; 
        border-bottom: 1px solid #f8fafc; 
        font-size: 13px;
        background: transparent;
    }
    .main-menu li a:hover, 
    .main-menu li a.active { 
        color: #2563eb; 
        background: #f8fafc; 
        border-radius: 4px;
        padding-left: 14px; 
    }
    .main-menu li a::after { display: none; }

    .nav-right-links {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid #f1f5f9;
    }
    .nav-right-links li a { 
        padding: 10px; 
        color: #0f172a; 
        background: #f8fafc;
        border-radius: 4px;
        font-weight: 700;
    }
    .nav-right-links li a:hover { 
        color: #fff; 
        background: #2563eb; 
    }
}

@media (min-width: 993px) {
    .mobile-search-container { display: none !important; }
}