/* MyOrganizer Theme Bridge v10
   Amaç: Molla index-1 aktifken header, kategori dropdown ve ürün grid kaymalarını düzeltmek. */
body.theme-molla-index-1 .header.header-2.header-intro-clearance .header-middle .container {
    min-height: 92px;
}

body.theme-molla-index-1 .header.header-2 .header-middle .header-left {
    flex: 0 0 220px;
    max-width: 220px;
}

body.theme-molla-index-1 .header.header-2 .header-middle .header-center {
    flex: 1 1 auto;
    max-width: none;
    justify-content: center;
}

body.theme-molla-index-1 .header.header-2 .header-middle .header-right {
    flex: 0 0 340px;
    max-width: 340px;
    justify-content: flex-end;
}

body.theme-molla-index-1 .header.header-2 .header-search-extended {
    margin-right: 0;
    max-width: 570px;
}

body.theme-molla-index-1 .header.header-2 .header-search .form-control {
    height: 40px;
}

body.theme-molla-index-1 .header.header-2 .logo img {
    max-height: 48px;
    width: auto;
}

body.theme-molla-index-1 .header.header-2 .header-bottom .container {
    min-height: 50px;
}

body.theme-molla-index-1 .header.header-2 .header-bottom .header-left {
    flex: 0 0 260px;
    max-width: 260px;
}

body.theme-molla-index-1 .header.header-2 .header-bottom .header-center {
    flex: 1 1 auto;
    max-width: none;
    justify-content: flex-start;
}

body.theme-molla-index-1 .header.header-2 .category-dropdown .dropdown-toggle {
    min-width: 240px;
}

body.theme-molla-index-1 .header.header-2 .category-dropdown .dropdown-menu {
    min-width: 240px;
}

body.theme-molla-index-1 .header.header-2 .main-nav .menu > li > a {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
}

body.theme-molla-index-1 .header.header-2 .account p,
body.theme-molla-index-1 .header.header-2 .wishlist p,
body.theme-molla-index-1 .header.header-2 .cart-dropdown p {
    margin-bottom: 0;
    white-space: nowrap;
}

body.theme-molla-index-1 .intro-slider-container,
body.theme-molla-index-1 .intro-slide {
    overflow: hidden;
}

body.theme-molla-index-1 .banner-group .banner img {
    width: 100%;
    object-fit: cover;
}

body.theme-molla-index-1 .brands-border .brand {
    min-height: 72px;
}

body.theme-molla-index-1 .brands-border .brand img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

body.theme-molla-index-1 .page-header {
    min-height: 170px;
    display: flex;
    align-items: center;
}

body.theme-molla-index-1 .breadcrumb-nav {
    background: #fafafa;
}

body.theme-molla-index-1 .products .myo-products-row {
    justify-content: flex-start !important;
}

body.theme-molla-index-1 .products .product {
    margin-bottom: 3rem;
}

body.theme-molla-index-1 .products .product-media {
    background: #f7f7f7;
}

body.theme-molla-index-1 .products .product-media img,
body.theme-molla-index-1 .product img {
    object-fit: cover;
}

body.theme-molla-index-1 .sidebar-shop .widget,
body.theme-molla-index-1 .widget-clean {
    border-bottom-color: #ebebeb;
}

body.theme-molla-index-1 .btn.btn-primary,
body.theme-molla-index-1 .btn.btn-outline-primary-2:hover,
body.theme-molla-index-1 .btn.btn-outline-primary-2:focus {
    border-color: #c96;
}

@media (max-width: 1199px) {
    body.theme-molla-index-1 .header.header-2 .header-middle .header-left,
    body.theme-molla-index-1 .header.header-2 .header-middle .header-right {
        flex-basis: auto;
        max-width: none;
    }

    body.theme-molla-index-1 .header.header-2 .header-bottom .header-left {
        flex-basis: 220px;
        max-width: 220px;
    }

    body.theme-molla-index-1 .header.header-2 .main-nav .menu > li > a {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 991px) {
    body.theme-molla-index-1 .header.header-2 .header-middle .container {
        min-height: 70px;
    }

    body.theme-molla-index-1 .header.header-2 .header-middle .header-right .compare-link {
        display: none;
    }
}


/* MyOrganizer Theme Bridge v11
   Header arama paneli ve çift kategori düzeltmesi. */
body.theme-molla-index-1 .header.header-2 .header-bottom .header-left:empty {
    display: none;
}

body.theme-molla-index-1 .myo-search-wrapper {
    position: relative;
    z-index: 30;
}

body.theme-molla-index-1 .myo-search-results {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 9999;
    max-height: 430px;
    overflow-y: auto;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
}

body.theme-molla-index-1 .myo-search-results.is-active {
    display: block;
}

body.theme-molla-index-1 .myo-search-section-title {
    margin: .45rem 0 .75rem;
    padding: 0 .25rem;
    color: #999;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.theme-molla-index-1 .myo-search-product {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: .75rem .5rem;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
    text-decoration: none !important;
}

body.theme-molla-index-1 .myo-search-product:hover {
    background: #faf7f3;
    color: #333;
}

body.theme-molla-index-1 .myo-search-product img {
    width: 54px !important;
    height: 64px !important;
    max-width: 54px !important;
    max-height: 64px !important;
    object-fit: cover;
    border-radius: 4px;
    background: #f7f7f7;
}

body.theme-molla-index-1 .myo-search-product strong {
    display: block;
    overflow: hidden;
    color: #222;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.theme-molla-index-1 .myo-search-product span {
    display: block;
    overflow: hidden;
    margin-top: .2rem;
    color: #777;
    font-size: 1.1rem;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.theme-molla-index-1 .myo-search-link {
    display: block;
    padding: .65rem .5rem;
    color: #333;
    font-size: 1.2rem;
    text-decoration: none !important;
    border-bottom: 1px solid #f4f4f4;
}

body.theme-molla-index-1 .myo-search-link:hover {
    color: #c96;
    background: #faf7f3;
}

body.theme-molla-index-1 .myo-search-all-link {
    margin-top: .75rem;
    border: 1px solid #c96;
    color: #c96 !important;
    text-align: center;
    font-weight: 700;
}

body.theme-molla-index-1 .myo-search-empty {
    padding: 1.2rem .5rem;
    color: #777;
    text-align: center;
}

body.theme-molla-index-1 .myo-search-loading {
    padding: 1.2rem .5rem;
    color: #777;
    text-align: center;
}

@media (max-width: 991px) {
    body.theme-molla-index-1 .myo-search-results {
        position: fixed;
        left: 1.5rem;
        right: 1.5rem;
        top: 8rem;
        max-height: calc(100vh - 12rem);
    }
}

/* MyOrganizer v12 - güçlü arama dropdown düzeltmesi (tema scope olmadan da çalışır) */
.myo-search-wrapper {
    position: relative !important;
    z-index: 10050 !important;
}

.myo-search-results {
    display: none !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 6px) !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 390px !important;
    overflow-y: auto !important;
    padding: 10px !important;
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 0 6px 6px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .16) !important;
}

.myo-search-results.is-active {
    display: block !important;
}

.myo-search-results .myo-search-section-title {
    margin: 6px 0 8px !important;
    padding: 0 4px !important;
    color: #888 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
}

.myo-search-results .myo-search-product {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    min-height: 62px !important;
    padding: 7px 6px !important;
    color: #333 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f1f1f1 !important;
}

.myo-search-results .myo-search-product:hover {
    background: #faf7f3 !important;
}

.myo-search-results .myo-search-product img,
.header .myo-search-results .myo-search-product img,
body .myo-search-results .myo-search-product img {
    display: block !important;
    width: 48px !important;
    height: 56px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    background: #f7f7f7 !important;
    margin: 0 !important;
}

.myo-search-results .myo-search-product strong {
    display: block !important;
    overflow: hidden !important;
    margin: 0 !important;
    color: #222 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.myo-search-results .myo-search-product span {
    display: block !important;
    overflow: hidden !important;
    margin-top: 3px !important;
    color: #777 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.myo-search-results .myo-search-link {
    display: block !important;
    padding: 7px 6px !important;
    color: #333 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f4f4f4 !important;
}

.myo-search-results .myo-search-all-link {
    margin-top: 8px !important;
    border: 1px solid #c96 !important;
    color: #c96 !important;
    text-align: center !important;
    font-weight: 700 !important;
}

.myo-search-results .myo-search-empty,
.myo-search-results .myo-search-loading {
    padding: 12px 6px !important;
    color: #777 !important;
    font-size: 12px !important;
    text-align: center !important;
}

/* Ana menüde sol kategori açıkken ikinci kategori linkini zorla gizle */
body.theme-molla-index-1 .main-nav .menu > li > a[data-myo-menu-kind="category-main"] {
    display: none !important;
}

@media (max-width: 991px) {
    .myo-search-results {
        position: fixed !important;
        left: 16px !important;
        right: 16px !important;
        top: 90px !important;
        width: auto !important;
        max-height: calc(100vh - 130px) !important;
    }
}
