/* ModernShop · Mobil sabit alt navigasyon */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1023.98px) {
    :root {
        --mobile-bottom-nav-height: 58px;
    }

    body {
        padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 45;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        height: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
        padding: 4px max(3px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(3px, env(safe-area-inset-left, 0px));
        border: 1px solid var(--site-border, #e5e7eb);
        border-bottom: 0;
        border-radius: 18px 18px 0 0;
        background: var(--site-surface, #fff);
        box-shadow: 0 -8px 24px rgb(var(--color-primary-950) / .1);
    }

    .mobile-bottom-nav__item {
        position: relative;
        min-width: 0;
        height: 50px;
        padding: 3px 2px 4px;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: rgb(var(--color-secondary-700));
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        font: inherit;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: color .18s ease, background-color .18s ease, transform .18s ease;
    }

    .mobile-bottom-nav__item:active {
        transform: translateY(1px);
    }

    .mobile-bottom-nav__item:hover,
    .mobile-bottom-nav__item:focus-visible,
    .mobile-bottom-nav__item.is-active,
    .mobile-bottom-nav__item[aria-expanded="true"] {
        color: rgb(var(--color-primary-700));
        background: rgb(var(--color-primary-500) / .08);
        outline: none;
    }

    .mobile-bottom-nav__icon {
        width: 25px;
        height: 25px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .mobile-bottom-nav__icon svg {
        width: 23px;
        height: 23px;
        stroke-width: 1.85;
    }

    .mobile-bottom-nav__whatsapp svg {
        width: 23px;
        height: 23px;
    }

    .mobile-bottom-nav__label {
        display: block;
        width: 100%;
        overflow: hidden;
        color: currentColor;
        font-size: 9.5px;
        font-weight: 750;
        line-height: 1.1;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-bottom-nav__cart {
        overflow: visible;
        color: rgb(var(--color-primary-700));
        background: transparent !important;
    }

    .mobile-bottom-nav__cart-circle {
        position: absolute;
        top: -31px;
        left: 50%;
        width: 58px;
        height: 58px;
        border: 5px solid var(--site-surface, #fff);
        border-radius: 999px;
        background: rgb(var(--color-primary-700));
        box-shadow: 0 8px 20px rgb(var(--color-primary-900) / .24);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transform: translateX(-50%);
        transition: background-color .18s ease, transform .18s ease;
    }

    .mobile-bottom-nav__cart:hover .mobile-bottom-nav__cart-circle,
    .mobile-bottom-nav__cart:focus-visible .mobile-bottom-nav__cart-circle,
    .mobile-bottom-nav__cart.is-active .mobile-bottom-nav__cart-circle {
        background: rgb(var(--color-primary-600));
        transform: translateX(-50%) translateY(-2px);
    }

    .mobile-bottom-nav__cart-circle svg {
        width: 27px;
        height: 27px;
        stroke-width: 1.9;
    }

    .mobile-bottom-nav__badge {
        position: absolute;
        top: -3px;
        right: -3px;
        min-width: 22px;
        height: 22px;
        padding: 0 4px;
        border: 3px solid var(--site-surface, #fff);
        border-radius: 999px;
        background: rgb(var(--color-accent-500));
        color: #fff;
        font-size: 10px;
        font-weight: 900;
        line-height: 16px;
        text-align: center;
        box-sizing: border-box;
    }

    .mobile-bottom-nav__cart .mobile-bottom-nav__label {
        font-weight: 850;
    }

    .mobile-bottom-nav__item.is-disabled {
        cursor: not-allowed;
        opacity: .42;
    }

    .floating-whatsapp-button {
        display: none !important;
    }
}

@media (max-width: 359.98px) {
    .mobile-bottom-nav__label {
        font-size: 9px;
    }

    .mobile-bottom-nav__cart-circle {
        width: 56px;
        height: 56px;
    }
}
