/* === MOBILE BOTTOM MENU – FULL FINAL CSS === */

/* Ana wrapper */
.mbm-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    font-size: 0;
}

/* Alt bar – sabit yükseklik veriyoruz */
.mbm-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 56px !important;          /* bar yüksekliği sabit */
    padding: 0 12px !important;       /* dikey padding yok, yükseklik karışmasın */
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Elementor / tema etkilenmesin */
.mbm-menu a.mbm-item,
.mbm-menu button.mbm-item {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
}

/* Ortak item */
.mbm-item {
    flex: 1 1 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;                  /* ikon ile çizgi arasında boşluk */
    text-align: center;
}

/* İkonlar arasında ince dikey çizgi – iki item ortasında */
.mbm-menu .mbm-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;                         /* item’in sağ kenarı = iki ikonun tam ortası */
    top: 18%;
    bottom: 18%;
    width: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.18); /* ince gri çizgi */
    pointer-events: none;
}

/* İkonlar */
.mbm-item span.dashicons {
    font-size: 24px;
    line-height: 1;
    color: #111111;
    margin: 0 auto !important;
}

/* Cart badge */
.mbm-item-cart {
    position: relative;
}

.mbm-cart-count {
    position: absolute;
    top: 2px;
    right: 28%;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #007bff;
    color: #ffffff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    display: none;
}

.mbm-cart-count.has-items {
    display: inline-block;
}

/* === ARAMA PANELİ – MENÜYE YAPIŞIK === */

.mbm-search-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 56px !important;          /* alt bar yüksekliği ile birebir aynı */
    padding: 8px 12px;
    background: #ffffff;
    border: 0 !important;
    margin: 0 !important;
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 9998;
    box-sizing: border-box;
}

/* Açıkken */
.mbm-wrapper.mbm-search-open .mbm-search-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Form ve label margin/padding sıfırla */
.mbm-search-panel form,
.mbm-search-panel .search-form {
    margin: 0 !important;
    padding: 0 !important;
}

.mbm-search-panel label {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* INPUT: tam genişlik, iç border yok, buton yok */
.mbm-search-panel input[type="search"],
.mbm-search-panel input.search-field,
.mbm-search-panel .search-form input[type="search"],
.mbm-search-panel .search-form input.search-field {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 8px 12px !important;
    height: 40px;
    border-radius: 4px !important;
    border: none !important;              /* iç kenarlık yok */
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 14px !important;
    line-height: 22px;
    outline: none !important;
    box-shadow: none !important;
}

/* Placeholder biraz soluk */
.mbm-search-panel input[type="search"]::placeholder,
.mbm-search-panel input.search-field::placeholder {
    color: #9b9b9b;
    opacity: 1;
    font-size: 13px;
}

/* WP search submit butonunu sakla */
.mbm-search-panel input[type="submit"],
.mbm-search-panel button[type="submit"],
.mbm-search-panel .search-submit {
    display: none !important;
}

/* Mobil dışında gizle */
@media (min-width: 768px) {
    .mbm-wrapper,
    .mbm-search-panel {
        display: none;
    }
}