/* =========================================================
   TRUMED HEADER - STABLE SMOOTH STICKY
========================================================= */

.whb-header,
.whb-main-header,
.whb-general-header,
.whb-row{
    background:#fff !important;
}

/* Normal Header */
.whb-main-header,
.whb-general-header{
    height:88px !important;
    min-height:88px !important;

    transition:
        height .45s cubic-bezier(.4,0,.2,1),
        min-height .45s cubic-bezier(.4,0,.2,1),
        box-shadow .35s ease !important;

    box-shadow:none !important;
}

/* Sticky Header */
.whb-sticked .whb-main-header,
.whb-sticked .whb-general-header{
    height:80px !important;
    min-height:80px !important;

    box-shadow:
        0 8px 24px rgba(0,0,0,.05) !important;
}

/* Logo */
.whb-header .wd-logo img{
    max-height:54px !important;

    transition:
        max-height .45s cubic-bezier(.4,0,.2,1),
        opacity .3s ease !important;
}

.whb-sticked .wd-logo img{
    max-height:46px !important;
}

/* Menü */
.whb-header .wd-nav > li > a,
.whb-header .wd-tools-element,
.whb-header .wd-search-form,
.whb-header .wd-header-search{
    transition:
        color .3s ease,
        opacity .3s ease !important;
}

/* Header satırlarının yüksekliğini sabitle */
.whb-row,
.whb-column{
    min-height:inherit !important;
}

/* Arka plan farkı oluşmasını engelle */
.whb-header,
.whb-main-header,
.whb-general-header,
.whb-row,
.whb-column{
    border:none !important;
}

/* Çizgi / boşluk temizliği */
.whb-header::before,
.whb-header::after,
.whb-main-header::before,
.whb-main-header::after,
.whb-general-header::before,
.whb-general-header::after,
.whb-row::before,
.whb-row::after{
    display:none !important;
    content:none !important;
}

/* =========================================================
   TRUEMED HEADER – AÇILIR ARAMA ALANI
========================================================= */

/* Header temel yapı */
.whb-general-header .whb-general-header-inner {
    min-height: 72px;
}

.whb-general-header .whb-col-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Arama kapsayıcısı */
.whb-general-header .wd-header-search-form {
    position: relative;
    width: 48px;
    min-width: 48px;
    height: 48px;
    overflow: visible;
    transition: width 0.35s ease;
    z-index: 20;
}

/* Arama açıldığında */
.whb-general-header .wd-header-search-form.truemed-search-open {
    width: 330px;
}

/* Form */
.whb-general-header .wd-header-search-form .searchform {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    margin: 0;
    border: 0;
    border-radius: 25px;
    background: transparent;
    overflow: hidden;
    box-shadow: none;
    transition:
        width 0.35s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Form açıkken */
.whb-general-header
.wd-header-search-form.truemed-search-open
.searchform {
    width: 330px;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

/* Arama inputu */
.whb-general-header .wd-header-search-form .searchform input.s {
    position: absolute;
    top: 0;
    right: 48px;
    width: calc(100% - 48px);
    height: 48px;
    padding: 0 14px 0 18px;
    border: 1px solid #d8d8d8;
    border-right: 0;
    border-radius: 24px 0 0 24px;
    background: #ffffff;
    color: #1d1d1d;
    font-size: 14px;
    line-height: 48px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(14px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.35s ease;
}

/* Input açıkken */
.whb-general-header
.wd-header-search-form.truemed-search-open
.searchform
input.s {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

/* Placeholder */
.whb-general-header
.wd-header-search-form
.searchform
input.s::placeholder {
    color: #8b8b8b;
    opacity: 1;
}

/* Search butonu */
.whb-general-header
.wd-header-search-form
.searchform
.searchsubmit {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #cfcfcf;
    border-radius: 50%;
    background: #ffffff;
    color: #171717;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

/* WoodMart buton yazısını gizle */
.whb-general-header
.wd-header-search-form
.searchform
.searchsubmit
span {
    font-size: 0;
}

/* Arama ikonu */
.whb-general-header
.wd-header-search-form
.searchform
.searchsubmit::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* Açık durumdaki ikon */
.whb-general-header
.wd-header-search-form.truemed-search-open
.searchform
.searchsubmit {
    border-color: #2949ff;
    background: #2949ff;
    color: #ffffff;
    border-radius: 0 24px 24px 0;
}

/* Hover */
.whb-general-header
.wd-header-search-form
.searchform
.searchsubmit:hover {
    border-color: #2949ff;
    color: #2949ff;
    background: #ffffff;
}

.whb-general-header
.wd-header-search-form.truemed-search-open
.searchform
.searchsubmit:hover {
    border-color: #2949ff;
    background: #2949ff;
    color: #ffffff;
}

/* WoodMart temizleme butonu */
.whb-general-header
.wd-header-search-form
.wd-clear-search {
    right: 54px;
    z-index: 4;
}

/* AJAX sonuç kutusu */
.whb-general-header
.wd-header-search-form
.wd-search-results-wrapper {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 330px;
}

.whb-general-header
.wd-header-search-form
.wd-dropdown-results {
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

/* Arama ile dil arasındaki boşluk */
.whb-general-header .whb-col-right > .whb-space-element {
    width: 14px !important;
}

/* Dil seçici */
.whb-general-header
.wd-header-secondary-nav
> .wd-nav
> li
> a {
    min-width: 68px;
    height: 48px;
    padding: 0 17px;
    border: 1px solid #cfcfcf;
    border-radius: 25px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #171717;
    font-size: 14px;
    font-weight: 600;
}

/* Languages yazısını TR yapacağımız için genişlik */
.whb-general-header
.wd-header-secondary-nav
.nav-link-text {
    line-height: 1;
}

/* Menü */
.whb-general-header .wd-nav-main > li > a {
    min-height: 72px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* Logo */
.whb-general-header .site-logo img {
    width: auto;
    max-height: 45px;
    object-fit: contain;
}

/* Küçük masaüstü */
@media (max-width: 1300px) {
    .whb-general-header
    .wd-header-search-form.truemed-search-open {
        width: 260px;
    }

    .whb-general-header
    .wd-header-search-form.truemed-search-open
    .searchform {
        width: 260px;
    }

    .whb-general-header
    .wd-header-search-form
    .wd-search-results-wrapper {
        width: 260px;
    }
}



/* =========================================================
   TRUEMED ANCHOR MENU ACTIVE STATE – FINAL
========================================================= */

/*
 * WordPress ve WoodMart'ın otomatik aktif rengini kaldır.
 */
.whb-general-header .wd-nav-main > li > a,
.whb-general-header .wd-nav-main > li.current-menu-item > a,
.whb-general-header .wd-nav-main > li.current_page_item > a,
.whb-general-header .wd-nav-main > li.current-menu-ancestor > a,
.whb-general-header .wd-nav-main > li.current_page_ancestor > a {
    color: #222222 !important;
}

/*
 * WoodMart'ın kendi underline çizgisini kapat.
 */
.whb-general-header
.wd-nav-main
> li
> a
> .nav-link-text::after {
    display: none !important;
}

/*
 * Kendi çizgimiz için metin alanı.
 */
.whb-general-header
.wd-nav-main
> li
> a
> .nav-link-text {
    position: relative;
}

/*
 * Yeni underline.
 */
.whb-general-header
.wd-nav-main
> li
> a
> .nav-link-text::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;

    height: 2px;
    border-radius: 2px;
    background: #3154ff;

    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

/*
 * Sadece JavaScript'in seçtiği menü aktif olur.
 */
.whb-general-header
.wd-nav-main
> li.truemed-anchor-active
> a {
    color: #3154ff !important;
}

.whb-general-header
.wd-nav-main
> li.truemed-anchor-active
> a
> .nav-link-text::before {
    opacity: 1;
    transform: scaleX(1);
}

/*
 * Hover.
 */
.whb-general-header
.wd-nav-main
> li:not(.truemed-anchor-active):hover
> a {
    color: #3154ff !important;
}

.whb-general-header
.wd-nav-main
> li:not(.truemed-anchor-active):hover
> a
> .nav-link-text::before {
    opacity: 1;
    transform: scaleX(1);
}