/* =============================================
   MOBİL ALT NAVİGASYON
   ============================================= */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1199.98px) {
    body {
        padding-bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
    }

    body.promo-modal-open,
    body.whatsapp-chat-open {
        padding-bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1055;
        padding: 0.55rem 0 calc(0.7rem + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(
            180deg,
            rgba(248, 250, 252, 0) 0%,
            rgba(248, 250, 252, 0.92) 38%,
            #f8fafc 100%
        );
        pointer-events: none;
    }

    .mobile-bottom-nav .container {
        padding-inline: 0.85rem;
        pointer-events: auto;
    }

    .mobile-bottom-nav__inner {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 0.375rem;
        padding: 0.4rem 0.45rem;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid #e8edf3;
        box-shadow:
            0 12px 32px rgba(15, 23, 42, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }

    .mobile-bottom-nav__item {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        min-width: 0;
        min-height: 2.75rem;
        padding: 0.4rem 0.45rem;
        border-radius: 14px;
        color: #64748b;
        font-size: 0.625rem;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: 0.045em;
        text-transform: uppercase;
        text-align: center;
        transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-bottom-nav__item:hover {
        color: #334155;
    }

    .mobile-bottom-nav__item.is-active {
        color: #0f172a;
    }

    .mobile-bottom-nav__item--cart {
        background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
        color: #0f766e;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    }

    .mobile-bottom-nav__item--cart.is-active,
    .mobile-bottom-nav__item--cart:hover {
        color: #047857;
    }

    .mobile-bottom-nav__icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.25rem;
        height: 1.25rem;
        flex-shrink: 0;
        font-size: 1.05rem;
        line-height: 1;
    }

    .mobile-bottom-nav__icon svg {
        display: block;
        width: 1.15rem;
        height: 1.15rem;
    }

    .mobile-bottom-nav__label {
        white-space: nowrap;
    }

    .mobile-bottom-nav__badge {
        position: absolute;
        top: -0.45rem;
        right: -0.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 1rem;
        height: 1rem;
        padding: 0 0.2rem;
        border-radius: 999px;
        background: #14b8a6;
        color: #ffffff;
        font-size: 0.5625rem;
        font-weight: 800;
        line-height: 1;
        box-shadow: 0 0 0 2px #ffffff;
    }

    .mobile-bottom-nav__item--account {
        flex-direction: row;
        gap: 0.35rem;
        text-transform: none;
        letter-spacing: normal;
        padding-inline: 0.35rem;
        justify-content: center;
    }

    .mobile-bottom-nav__avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.7rem;
        height: 1.7rem;
        border-radius: 8px;
        background: #eef2ff;
        border: 1px solid rgba(69, 99, 216, 0.16);
        color: #4563d8;
        font-size: 0.625rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.03em;
        flex-shrink: 0;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    }

    .mobile-bottom-nav__account-copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.05rem;
        min-width: 0;
    }

    .mobile-bottom-nav__account-name {
        max-width: 4.25rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.5625rem;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #0f172a;
        text-align: left;
    }

    .mobile-bottom-nav__account-balance {
        font-size: 0.5rem;
        font-weight: 600;
        line-height: 1.1;
        color: #14b8a6;
        white-space: nowrap;
    }

    .mobile-bottom-nav__item--account.is-active .mobile-bottom-nav__account-name {
        color: #0f172a;
    }
}

@media (max-width: 380px) {
    .mobile-bottom-nav__item:not(.mobile-bottom-nav__item--account) {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.45rem 0.3rem;
        font-size: 0.5625rem;
    }

    .mobile-bottom-nav__item:not(.mobile-bottom-nav__item--account) .mobile-bottom-nav__icon {
        width: 1.1rem;
        height: 1.1rem;
        font-size: 0.95rem;
    }
}
