/* ═══════════════════════════════════════════════════════════
   Kitronic — Mobile Navigation Bar
   جميع الألوان من --kt-* (الثيم)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Published on <body> only while the bar is actually rendered, so dialogs,
       drawers and floats don't reserve 60px on pages without a bar. */
    body.kt-has-mobile-nav {
        --kt-mobile-nav-height: 60px;
    }

    .td-mobile-nav-bar {
        --td-mobile-navbar-height: 60px;
        --td-mobile-accent: var(--kt-primary);

        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--kt-surface);

        /* Must match `--kt-mobile-nav-height` exactly: dialogs/drawers end at
           `bottom: var(--kt-mobile-nav-height)`, so a taller/shorter bar leaves
           an empty strip between the dialog and the bar. */
        height: 60px;
        box-sizing: border-box;

        display: flex;
        justify-content: space-around;
        padding: 10px 0 6px;

        box-shadow: 0 -3px 12px color-mix(in srgb, var(--kt-text) 6%, transparent);
        z-index: var(--kt-z-mobile-nav, 1000001);
        border-top: 1px solid var(--kt-border);
        direction: rtl;
    }

    /* The bar stays put while a drawer or dialog is open: every overlay is now
       offset by `--kt-mobile-nav-height`, so hiding the bar only caused a
       layout jump (and a lost navigation target) for no benefit. */

    .td-mobile-nav-bar a,
    .td-mobile-nav-bar button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--kt-text) !important;
        text-decoration: none !important;
        font-weight: 500;
        border: 0;
        background: transparent;
        padding: 0;
        font-family: inherit;
        font-size: inherit;
        cursor: pointer;
        transition: transform 0.15s ease;
        flex: 1;
    }

    .td-mobile-nav-bar a.is-active {
        color: var(--td-mobile-accent) !important;
        font-weight: 700;
    }

    .td-mobile-nav-bar .td-nav-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 3px;
    }

    .td-mobile-nav-bar i {
        font-size: 20px;
        line-height: 1;
        margin-bottom: 3px;
    }

    .td-mobile-cart-icon-wrap,
    .td-mobile-nav-icon-wrap {
        position: relative;
        display: inline-block;
        margin-bottom: 3px;
        line-height: 1;
    }

    .td-mobile-cart-badge,
    .td-mobile-nav-badge {
        position: absolute;
        top: -8px;
        right: -10px;
        min-width: 15px;
        height: 15px;
        padding: 0 3px;
        box-sizing: border-box;
        border-radius: 999px;
        background: var(--td-mobile-accent);
        color: var(--kt-on-primary);
        font-size: 9px;
        font-weight: 700;
        line-height: 15px;
        text-align: center;
        pointer-events: none;
    }

    .td-mobile-cart-badge[hidden],
    .td-mobile-nav-badge[hidden] {
        display: none;
    }

    .td-mobile-nav-bar a span,
    .td-mobile-nav-bar button span {
        font-size: 11px;
        line-height: 1;
    }

    .td-mobile-nav-bar button:active,
    .td-mobile-nav-bar a:active {
        transform: scale(0.88);
    }

    .td-mobile-bot-trigger--pulse i {
        animation: td-mobile-bot-pulse 2s infinite;
    }

    @keyframes td-mobile-bot-pulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.15);
        }

        100% {
            transform: scale(1);
        }
    }

    body.kt-has-mobile-nav {
        padding-bottom: 60px !important;
    }
}

@media (min-width: 769px) {
    .td-mobile-nav-bar {
        display: none !important;
    }
}