/* Alt mobil menü — yeşil şerit, ortada beyaz “Sepete Ekle” sekmesi */

@media (min-width: 992px) {
    ul.mobile-contact {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    ul.mobile-contact {
        display: flex !important;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 0 calc(4px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(4px + env(safe-area-inset-left));
        list-style: none;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10050;
        align-items: stretch;
        justify-content: space-around;
        box-sizing: border-box;
        height: auto;
        min-height: 58px;
        background-color: #2e8b3a !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }

    ul.mobile-contact > li {
        flex: 1 1 0;
        max-width: 20%;
        float: none !important;
        display: flex !important;
        margin: 0 !important;
        padding: 0;
        background: transparent !important;
        height: auto !important;
        align-items: stretch;
        justify-content: center;
        border: none !important;
        box-shadow: none !important;
    }

    /* İkon üstte, yazı altta — flex-end kaldırıldı (üst üste biniyordu) */
    ul.mobile-contact > li > a {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        flex: 1 1 auto;
        min-height: 64px;
        padding: 10px 2px 12px;
        box-sizing: border-box;
        gap: 8px;
        color: #1f2937 !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    }

    ul.mobile-contact > li > a > span:not(.mcb-icon-wrap):not(.mcb-badge) {
        display: block;
        line-height: 1.2;
        text-align: center;
        margin: 0;
        padding: 0;
        max-width: 100%;
    }

    ul.mobile-contact > li:not(.mobile-contact-tab) > a {
        color: #f8fafc !important;
    }

    ul.mobile-contact > li:not(.mobile-contact-tab) > a > span:not(.mcb-icon-wrap):not(.mcb-badge) {
        color: #f8fafc !important;
    }

    /* Font Awesome — sabit kutu, yazıyla gap ile ayrılır */
    ul.mobile-contact .mobile-contact-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 1.5rem;
        height: 1.5rem;
        flex-shrink: 0;
        margin: 0 !important;
        font-size: 1.2rem !important;
        line-height: 1 !important;
        color: #f8fafc !important;
    }

    /* Beyaz çıkıntılı sekme — Sepete Ekle */
    ul.mobile-contact > li.mobile-contact-tab {
        z-index: 2;
    }

    ul.mobile-contact > li.mobile-contact-tab > a {
        background: #fff !important;
        border-radius: 14px 14px 0 0 !important;
        margin: 0 2px -2px;
        padding: 12px 6px 14px !important;
        min-height: 72px !important;
        row-gap: 12px !important;
        column-gap: 0 !important;
        box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.1);
        color: #1f2937 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    ul.mobile-contact > li.mobile-contact-tab > a span:not(.mcb-badge) {
        color: #1f2937 !important;
        font-weight: 600 !important;
        margin-top: 0 !important;
        line-height: 1.25 !important;
        flex-shrink: 0;
    }

    /* FA kalp glifi ::before ile taşabiliyor — kutu yüksekliği + flex ile metinle ayrıştır */
    ul.mobile-contact > li.mobile-contact-tab .mobile-contact-heart {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 1.75rem;
        min-width: 1.75rem;
        height: 1.85rem;
        min-height: 1.85rem;
        margin: 0 !important;
        padding: 0 0 2px !important;
        color: #1f2937 !important;
        font-size: 1.2rem !important;
        line-height: 1 !important;
        flex: 0 0 auto;
        overflow: visible;
    }

    /* Sepet: ikon + rozet üst blokta; rozet taşması “Sepetim” yazısına binmesin */
    ul.mobile-contact > li.map > a {
        row-gap: 10px !important;
        align-items: center !important;
    }

    ul.mobile-contact .mcb-icon-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 2rem;
        min-width: 2rem;
        min-height: 2.1rem;
        height: 2.1rem;
        margin: 0 auto !important;
        padding: 4px 6px 2px;
        box-sizing: border-box;
    }

    ul.mobile-contact .mcb-icon-wrap .mobile-contact-icon {
        margin: 0 !important;
    }

    ul.mobile-contact > li.map > a > span:not(.mcb-icon-wrap) {
        width: 100%;
        text-align: center !important;
    }

    ul.mobile-contact .mcb-badge,
    ul.mobile-contact .sepetimBadge {
        position: absolute;
        top: -2px;
        right: -2px;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 18px;
        width: auto;
        height: 18px;
        padding: 0 5px !important;
        border-radius: 999px;
        background: #dc2626 !important;
        color: #fff !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-align: center;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
        box-sizing: border-box;
    }

    /* İçerik alt çubuğa binmesin */
    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    }

    html.sayfa-sepet-odeme ul.mobile-contact {
        display: none !important;
    }

    html.sayfa-sepet-odeme body {
        padding-bottom: 0 !important;
    }
}
