/* ============================= */
/* MOBİL HEADER - SIFIRDAN YENİ  */
/* ============================= */

/* ============================= */
/* MOBİL SABİT BUTONLAR          */
/* ============================= */

@media only screen and (max-width: 767px) {
    /* WhatsApp Butonu */
    .whatsappsiparis {
        position: fixed !important;
        left: 15px !important;
        bottom: 20px !important;
        z-index: 9998 !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        background: #25D366 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 10px rgba(37, 211, 102, 0.5) !important;
        transition: all 0.3s ease !important;
        animation: pulse-whatsapp 2s infinite !important;
    }
    
    .whatsappsiparis::before {
        content: '\f232' !important;
        font-family: 'FontAwesome' !important;
        font-size: 26px !important;
        color: #fff !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .whatsappsiparis img {
        display: none !important;
    }
    
    .whatsappsiparis:active {
        transform: scale(1.1) !important;
        box-shadow: 0 3px 14px rgba(37, 211, 102, 0.7) !important;
    }
    
    /* Sizi Arayalım Butonu */
    .siziarayalimbtn {
        position: fixed !important;
        left: 15px !important;
        bottom: 80px !important;
        z-index: 9998 !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        background: #e61b5d !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 10px rgba(230, 27, 93, 0.5) !important;
        transition: all 0.3s ease !important;
        animation: pulse-call 2s infinite 0.5s !important;
    }
    
    .siziarayalimbtn::before {
        content: '\f095' !important;
        font-family: 'FontAwesome' !important;
        font-size: 22px !important;
        color: #fff !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .siziarayalimbtn img {
        display: none !important;
    }
    
    .siziarayalimbtn:active {
        transform: scale(1.1) !important;
        box-shadow: 0 3px 14px rgba(230, 27, 93, 0.7) !important;
    }
    
    /* Pulse animasyonları */
    @keyframes pulse-whatsapp {
        0%, 100% {
            box-shadow: 0 2px 10px rgba(37, 211, 102, 0.5);
        }
        50% {
            box-shadow: 0 2px 16px rgba(37, 211, 102, 0.8);
        }
    }
    
    @keyframes pulse-call {
        0%, 100% {
            box-shadow: 0 2px 10px rgba(230, 27, 93, 0.5);
        }
        50% {
            box-shadow: 0 2px 16px rgba(230, 27, 93, 0.8);
        }
    }
    
    /* Scroll yukarı butonu - sağ tarafta olduğu için sorun yok */
    .scroll-top {
        right: 15px !important;
        bottom: 20px !important;
        z-index: 9999 !important;
    }
}

/* MASAÜSTÜNDE BUTONLAR */
@media only screen and (min-width: 768px) {
    .whatsappsiparis {
        position: fixed !important;
        right: 20px !important;
        bottom: 30px !important;
        z-index: 9999 !important;
        width: 55px !important;
        height: 55px !important;
        border-radius: 50% !important;
        background: #25D366 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 3px 12px rgba(37, 211, 102, 0.4) !important;
        transition: all 0.3s ease !important;
    }
    
    .whatsappsiparis::before {
        content: '\f232' !important;
        font-family: 'FontAwesome' !important;
        font-size: 28px !important;
        color: #fff !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .whatsappsiparis img {
        display: none !important;
    }
    
    .whatsappsiparis:hover {
        transform: scale(1.15) !important;
        box-shadow: 0 5px 18px rgba(37, 211, 102, 0.6) !important;
    }
    
    .siziarayalimbtn {
        position: fixed !important;
        right: 20px !important;
        bottom: 95px !important;
        z-index: 9999 !important;
        width: 55px !important;
        height: 55px !important;
        border-radius: 50% !important;
        background: #e61b5d !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 3px 12px rgba(230, 27, 93, 0.4) !important;
        transition: all 0.3s ease !important;
    }
    
    .siziarayalimbtn::before {
        content: '\f095' !important;
        font-family: 'FontAwesome' !important;
        font-size: 24px !important;
        color: #fff !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .siziarayalimbtn img {
        display: none !important;
    }
    
    .siziarayalimbtn:hover {
        transform: scale(1.15) !important;
        box-shadow: 0 5px 18px rgba(230, 27, 93, 0.6) !important;
    }
    
    /* Tooltip stili - Masaüstü */
    .whatsappsiparis:hover::after {
        content: 'WhatsApp İletişim' !important;
        position: absolute !important;
        right: 65px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: #25D366 !important;
        color: #fff !important;
        padding: 7px 12px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        font-weight: 600 !important;
        animation: tooltip-fade 0.3s ease !important;
        z-index: 10000 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    }
    
    .siziarayalimbtn:hover::after {
        content: 'Biz Sizi Arayalım' !important;
        position: absolute !important;
        right: 65px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: #e61b5d !important;
        color: #fff !important;
        padding: 7px 12px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        font-weight: 600 !important;
        animation: tooltip-fade 0.3s ease !important;
        z-index: 10000 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    }
    
    @keyframes tooltip-fade {
        from {
            opacity: 0;
            transform: translateY(-50%) translateX(5px);
        }
        to {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
        }
    }
}

/* ============================= */

/* MASAÜSTÜNDE MOBİL MENÜYÜ GİZLE */
@media only screen and (min-width: 768px) {
    .mobile-menu-button,
    #top .mobile-menu-button,
    .menuTop .mobile-menu-button,
    button.mobile-menu-button,
    .mobile-menulist,
    .activeMenu,
    body.activeBody:after {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Masaüstünde body'den activeBody class'ını kaldır */
    body.activeBody {
        overflow: auto !important;
    }
}

/* MOBİL (767px ve altı) */
@media only screen and (max-width: 767px) {
    
    /* Eski CSS'leri etkisiz hale getir */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* ===== ÜST BAR (Para Birimi & Telefon) ===== */
    #topmenu,
    body #topmenu,
    div#topmenu {
        width: 100% !important;
        background: #fff !important;
        border-bottom: none !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        float: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }
    
    #topmenu .box,
    body #topmenu .box {
        width: 100% !important;
        padding: 3px 20px !important;
        margin: 0 !important;
        display: block !important;
        float: none !important;
    }
    .digersiteler::after{
        background: none;
    }
    #topmenu .menubox {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 5px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Para Birimi */
    #topmenu .currency {
        display: flex !important;
        gap: 15px !important;
        list-style: none !important;
        margin: 0 0 5px 0 !important;
        padding: 3px 15px !important;
        background: transparent !important;
        justify-content: center !important;
    }
    
    #topmenu .currency li {
        font-size: 13px !important;
        color: #e61b5d !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
    }
    
    /* Telefon */
    #topmenu .menu {
        list-style: none !important;
        margin: 0 !important;
        padding: 3px 15px !important;
        background: transparent !important;
    }
    
    #topmenu .menu a,
    #topmenu .menu span {
        font-size: 12px !important;
        color: #666 !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }
    
    #topmenu .menu strong {
        color: #e61b5d !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }
    
    #topmenu .menu i {
        color: #e61b5d !important;
        font-size: 14px !important;
    }
    
    /* Para birimi butonları ve dil seçiciyi gizle */
    #topmenu .kurbtn,
    #topmenu .diller {
        display: none !important;
    }
    
    /* ===== LOGO ALANI ===== */
    #top,
    body #top,
    div#top {
        width: 100% !important;
        background: #fff !important;
        padding: 15px 0 8px !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        float: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }
    
    #top .box,
    body #top .box {
        width: 100% !important;
        padding: 0 20px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        float: none !important;
    }
    
    /* Logo - Ortalanmış */
    #top .logo,
    .logo,
    body #top .logo,
    body .logo {
        width: 200px !important;
        max-width: 200px !important;
        height: auto !important;
        margin: 0 auto 20px !important;
        padding: 0 !important;
        display: block !important;
        text-align: center !important;
        order: 1 !important;
        float: none !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }
    
    #top .logo a,
    .logo a,
    body #top .logo a,
    body .logo a {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
#top .box .logo a img {
    width: 100%;
    padding: 0;
    margin: 21px 0;
}
    #top .logo img,
    .logo img,
    body #top .logo img,
    body .logo img {
        width: 100% !important;
        max-width: 210px !important;
        height: auto !important;
        display: block !important;
        float: none !important;
    }
    
    /* Arama kutusunu gizle */
    #top .search,
    #top .menuTop .search {
        display: none !important;
    }
    
    /* ===== ALT MENÜ ALANI (Menü, Sepet, Üyelik) ===== */
    #top .menuTop,
    .menuTop,
    body #top .menuTop,
    body .menuTop {
        width: calc(100% - 40px) !important;
        max-width: calc(100% - 40px) !important;
        background: #f8f9fa !important;
        border-radius: 12px !important;
        padding: 15px 12px !important;
        margin: 0 20px 0 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        order: 2 !important;
        float: none !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
        margin-top: 25px!important;
    }
    
    /* MENÜ Butonu */
    .mobile-menu-button,
    #top .mobile-menu-button,
    .menuTop .mobile-menu-button,
    button.mobile-menu-button {
        all: unset !important;
        width: 75px !important;
        min-width: 75px !important;
        background: #fff !important;
        border-radius: 10px !important;
        padding: 12px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        order: 1 !important;
        box-shadow: 0 3px 8px rgba(0,0,0,0.08) !important;
    }
    
    .mobile-menu-button i,
    button.mobile-menu-button i {
        font-size: 22px !important;
        color: #666 !important;
        display: block !important;
        transition: color 0.3s ease !important;
    }
    
    .mobile-menu-button::after,
    button.mobile-menu-button::after {
        content: 'MENÜ' !important;
        font-size: 11px !important;
        color: #666 !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        display: block !important;
        transition: color 0.3s ease !important;
    }
    
    .mobile-menu-button:hover,
    button.mobile-menu-button:hover {
        background: #e61b5d !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 8px rgba(230, 27, 93, 0.3) !important;
    }
    
    .mobile-menu-button:hover i,
    button.mobile-menu-button:hover i,
    .mobile-menu-button:hover::after,
    button.mobile-menu-button:hover::after {
        color: #fff !important;
    }
    
    /* SEPETİM Butonu */
    #top .menuTop .basket,
    .menuTop .basket,
    body #top .menuTop .basket {
        position: relative !important;
        display: block !important;
        order: 2 !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        background: none !important;
    }
    
    #top .menuTop .basket a,
    .menuTop .basket a,
    body #top .menuTop .basket a {
        width: 75px !important;
        min-width: 75px !important;
        background: #fff !important;
        border-radius: 10px !important;
        padding: 12px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 3px 8px rgba(0,0,0,0.08) !important;
        text-decoration: none !important;
        margin: 0 !important;
        float: none !important;
        position: relative !important;
    }
    
    #top .menuTop .basket img,
    .menuTop .basket img {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        margin: 0 !important;
        transition: filter 0.3s ease !important;
    }
    
    #top .menuTop .basket .text,
    .menuTop .basket .text {
        font-size: 11px !important;
        color: #666 !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        display: block !important;
        transition: color 0.3s ease !important;
    }
    
    #top .menuTop .basket .count,
    .menuTop .basket .count,
    body #top .menuTop .basket .count {
        position: absolute !important;
        top: -5px !important;
        right: -5px !important;
        background: #e61b5d !important;
        color: #fff !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        border-radius: 50% !important;
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(230, 27, 93, 0.5) !important;
        z-index: 10 !important;
        line-height: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    #top .menuTop .basket a:hover,
    .menuTop .basket a:hover {
        background: #e61b5d !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 8px rgba(230, 27, 93, 0.3) !important;
    }
    
    #top .menuTop .basket a:hover img,
    .menuTop .basket a:hover img {
        filter: brightness(0) invert(1) !important;
    }
    
    #top .menuTop .basket a:hover .text,
    .menuTop .basket a:hover .text {
        color: #fff !important;
    }
    
    /* ÜYELİK Butonu */
    #top .menuTop .user,
    .menuTop .user {
        all: unset !important;
        display: block !important;
        order: 3 !important;
    }
    
    #top .menuTop .user .dropdown-toggle,
    .menuTop .user .dropdown-toggle {
        all: unset !important;
        width: 75px !important;
        min-width: 75px !important;
        background: #fff !important;
        border-radius: 10px !important;
        padding: 12px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 3px 8px rgba(0,0,0,0.08) !important;
    }
    
    #top .menuTop .user img,
    .menuTop .user img {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        margin: 0 !important;
        transition: filter 0.3s ease !important;
    }
    
    #top .menuTop .user .text,
    .menuTop .user .text {
        font-size: 10px !important;
        color: #666 !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        display: block !important;
        white-space: nowrap !important;
        transition: color 0.3s ease !important;
        max-width: 75px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    #top .menuTop .user .dropdown-toggle:hover,
    .menuTop .user .dropdown-toggle:hover {
        background: #e61b5d !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 8px rgba(230, 27, 93, 0.3) !important;
    }
    
    #top .menuTop .user .dropdown-toggle:hover img,
    .menuTop .user .dropdown-toggle:hover img {
        filter: brightness(0) invert(1) !important;
    }
    
    #top .menuTop .user .dropdown-toggle:hover .text,
    .menuTop .user .dropdown-toggle:hover .text {
        color: #fff !important;
    }
    
    /* Ana menüyü mobilde gizle */
    .menubg,
    #menu {
        display: none !important;
    }
    
    /* Desktop header'ı mobilde gizle */
    @media only screen and (max-width: 767px) {
        .desktop-only {
            display: none !important;
        }
    }
    
    /* Header ve slider arası boşluk */
    #top + *,
    .menuTop + * {
        margin-top: 15px !important;
        padding-top: 0 !important;
    }
}
