/* E-ticaret kapalı: arama yok; masaüstünde logo yeşil menü solunda */

.rbt-header--content-mode .rbt-wrapper-middle .mainbar-row {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
}

.rbt-header--content-mode .rbt-wrapper-middle .header-center-logo {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    grid-column: 2;
}

.rbt-header--content-mode .rbt-wrapper-middle .header-center-logo .logo {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.rbt-header--content-mode .rbt-wrapper-middle .header-center-logo .logo a {
    display: inline-flex;
}

.rbt-header--content-mode .rbt-wrapper-middle .header-center-logo .logo img {
    display: block;
    width: auto;
    max-width: min(220px, 42vw);
    height: auto;
    max-height: 52px;
    object-fit: contain;
}

.rbt-header--content-mode .rbt-wrapper-middle .header-left {
    justify-self: start;
    z-index: 2;
}

.rbt-header--content-mode .rbt-wrapper-middle .header-right {
    justify-self: end;
    z-index: 2;
}

.rbt-header--content-mode .rbt-header-search-live,
.rbt-header--content-mode .rbt-search-with-category,
.rbt-header--content-mode .mobile-header-search-trigger,
.rbt-header--content-mode .mobile-header-search-panel,
.rbt-header--content-mode .rbt-common-search-dropdown-activation,
.rbt-header--content-mode .rbt-search-dropdown,
.rbt-header--content-mode .header-side-logo-hide {
    display: none !important;
}

@media (min-width: 1200px) {
    /* Üstteki ortalanmış logo satırını kapat — logo yeşil çubukta */
    .rbt-header--content-mode .rbt-wrapper-middle {
        display: none !important;
    }

    .rbt-header--content-mode .rbt-separator-mid {
        display: none !important;
    }

    /* Logo solda, menü ortada, telefon sağda — aynı kenar boşluğu */
    .rbt-header.rbt-header--content-mode .rbt-header-middle > .container > .rbt-header-sec {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .rbt-header.rbt-header--content-mode .rbt-header-middle .content-mode-nav-logo {
        display: flex !important;
        grid-column: 1;
        justify-self: start;
        align-items: center;
        margin: 0;
        padding: 0;
        min-height: 48px;
    }

    .rbt-header.rbt-header--content-mode .rbt-header-middle .content-mode-nav-logo .rbt-header-content,
    .rbt-header.rbt-header--content-mode .rbt-header-middle .content-mode-nav-logo .header-info,
    .rbt-header.rbt-header--content-mode .rbt-header-middle .content-mode-nav-logo .logo {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .rbt-header.rbt-header--content-mode .rbt-header-middle .content-mode-nav-logo .logo a {
        display: inline-flex;
        align-items: center;
        min-height: 48px;
        padding: 4px 0;
    }

    .rbt-header.rbt-header--content-mode .rbt-header-middle .content-mode-nav-logo .logo img {
        display: block;
        width: auto;
        height: auto;
        max-height: 40px;
        max-width: min(168px, 14vw);
        object-fit: contain;
    }

    .rbt-header.rbt-header--content-mode .rbt-header-middle .rbt-main-navigation {
        grid-column: 2 !important;
        justify-self: center !important;
        width: auto;
        max-width: 100%;
    }

    .rbt-header.rbt-header--content-mode .rbt-header-middle .rbt-header-sec-col.rbt-header-right {
        grid-column: 3 !important;
        justify-self: end !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Sticky: logo solda, telefon sağda (simetrik) */
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation .mainbar-row,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation.rbt-sticky .mainbar-row {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        gap: 4px 16px !important;
    }

    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation .header-left,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation.rbt-sticky .header-left {
        grid-column: 1;
        justify-self: start !important;
        padding-right: 0;
    }

    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation .rbt-header-content.d-xl-block,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation.rbt-sticky .rbt-header-content.d-xl-block {
        grid-column: 2;
        justify-self: center;
        width: auto;
        max-width: 100%;
    }

    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation .header-right,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation.rbt-sticky .header-right {
        grid-column: 3;
        justify-self: end !important;
        padding-left: 0;
    }

    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation .rbt-mainmenu-nav .mainmenu,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation.rbt-sticky .rbt-mainmenu-nav .mainmenu {
        justify-content: center;
    }
}

@media (max-width: 1199.98px) {
    .rbt-header--content-mode .content-mode-nav-logo {
        display: none !important;
    }

    /* Hamburger solda, logo sağda */
    .rbt-header.rbt-header--content-mode .rbt-wrapper-middle .mainbar-row,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation .mainbar-row,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation.rbt-sticky .mainbar-row {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        column-gap: 0.5rem !important;
        gap: 4px 8px !important;
        align-items: center;
    }

    .rbt-header.rbt-header--content-mode .rbt-wrapper-middle .header-center-logo {
        display: none !important;
    }

    .rbt-header.rbt-header--content-mode .rbt-wrapper-middle .header-left,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation .header-left,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation.rbt-sticky .header-left {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        padding-right: 0 !important;
        z-index: 3;
    }

    .rbt-header.rbt-header--content-mode .rbt-wrapper-middle .mobile-header-logo,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation .mobile-header-logo,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation.rbt-sticky .header-info.mobile-header-logo {
        display: flex !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        align-items: center;
        justify-content: flex-end !important;
        width: auto !important;
        max-width: min(170px, 48vw) !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: auto !important;
        text-align: right !important;
        z-index: 3;
    }

    .rbt-header.rbt-header--content-mode .rbt-wrapper-middle .mobile-header-logo .logo,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation .mobile-header-logo .logo {
        text-align: right !important;
        margin: 0 !important;
        max-width: 100%;
        pointer-events: auto;
    }

    .rbt-header.rbt-header--content-mode .rbt-wrapper-middle .mobile-header-logo .logo a,
    .rbt-header.rbt-header--content-mode .rbt-wrapper-middle .mobile-header-logo .logo img,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation .mobile-header-logo .logo a,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation .mobile-header-logo .logo img {
        display: block;
        margin-inline: 0 0 !important;
        margin-left: auto !important;
        max-height: 40px;
        max-width: min(170px, 48vw);
        width: auto;
        height: auto;
    }

    .rbt-header.rbt-header--content-mode .rbt-wrapper-middle .header-right,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation .header-right,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation.rbt-sticky .header-right {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        padding-left: 0 !important;
        z-index: 2;
    }

    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation .rbt-header-content.d-xl-block,
    .rbt-header.rbt-header--content-mode .rbt-header-common-sticky-activation.rbt-sticky .rbt-header-content.d-xl-block {
        display: none !important;
    }
}
