/* ==========================================================================
   Kervan Pide & Pizza - Özel Stil Düzenlemeleri (Custom CSS)
   ========================================================================== */

/* Header Logo ve Orantı Düzenlemeleri */
#logo {
    float: left;
    display: inline-flex;
    align-items: center;
}

#logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

#logo img {
    height: 80px;
    width: auto;
    max-height: 85px;
    max-width: 260px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
}

/* Sayfa aşağı kaydırıldığında (Sticky Header) */
header.header.sticky #logo img {
    height: 56px;
    max-height: 58px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

/* Masaüstü Menü Hizalaması (Büyük Logo ile Dikey Ortalama) */
@media only screen and (min-width: 992px) {
    header.header:not(.sticky) .main-menu {
        margin-top: 18px;
    }
    header.header:not(.sticky) ul#top_menu {
        margin-top: 22px;
    }
    header.header.sticky .main-menu {
        margin-top: 8px;
    }
    header.header.sticky ul#top_menu {
        margin-top: 12px;
    }
}

/* Çift logo bastırma önlemi (Geriye dönük uyumluluk) */
header.header:not(.sticky) #logo .logo_sticky {
    display: none !important;
}

header.header.sticky #logo .logo_normal {
    display: none !important;
}

/* Mobil Menü İçindeki Logo */
#header_menu img {
    height: 54px;
    width: auto;
    max-height: 56px;
    object-fit: contain;
    display: inline-block;
}

/* Mobil Ekranlar (<= 991px) */
@media (max-width: 991px) {
    #logo {
        float: none;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    #logo img {
        height: 52px;
        max-height: 54px;
        width: auto;
    }
}
