/* =========================================================
   BISSKET PREMIUM MOBILE BOTTOM NAVIGATION
========================================================= */

:root {
    --mbn-bg: rgba(255, 255, 255, 0.96);
    --mbn-surface: #ffffff;

    --mbn-text: #191919;
    --mbn-muted: #777777;
    --mbn-border: rgba(25, 25, 25, 0.09);

    --mbn-orange: #f37021;
    --mbn-orange-dark: #d95612;
    --mbn-orange-light: #ff9b55;

    --mbn-charcoal: #181818;
    --mbn-white: #ffffff;

    --mbn-success: #25d366;

    --mbn-shadow: 0 -10px 35px rgba(19, 19, 19, 0.09);

    --mbn-home-shadow: 0 12px 28px rgba(243, 112, 33, 0.34);
}

/* Desktop hidden */

.mbn-nav {
    display: none;
}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 768px) {
    .mbn-nav {
        position: fixed;

        left: 10px;
        right: 10px;
        bottom: 10px;

        z-index: 99990;

        display: block;

        width: auto;

        padding: 0 max(4px, env(safe-area-inset-right))
            env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));

        background: var(--mbn-bg);

        border: 1px solid var(--mbn-border);

        border-radius: 22px;

        box-shadow: var(--mbn-shadow);

        -webkit-backdrop-filter: blur(18px);

        backdrop-filter: blur(18px);
    }

    /* Top orange accent */

    .mbn-nav::before {
        content: "";

        position: absolute;

        top: -1px;
        left: 50%;

        width: 42px;
        height: 3px;

        border-radius: 0 0 10px 10px;

        background: linear-gradient(
            90deg,
            var(--mbn-orange-light),
            var(--mbn-orange)
        );

        transform: translateX(-50%);
    }

    /* Navigation list */

    .mbn-list {
        width: 100%;

        margin: 0;
        padding: 7px 5px 6px;

        display: grid;

        grid-template-columns: repeat(5, minmax(0, 1fr));

        align-items: end;

        list-style: none;
    }

    .mbn-item {
        min-width: 0;

        margin: 0;
        padding: 0;

        text-align: center;
    }

    /* Standard navigation item */

    .mbn-link {
        position: relative;

        width: 100%;
        min-height: 54px;

        margin: 0;
        padding: 5px 2px 4px;

        border: 0;
        border-radius: 16px;

        background: transparent;
        color: var(--mbn-muted);

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 3px;

        font-family: inherit;
        text-decoration: none;

        cursor: pointer;

        transition:
            color 0.2s ease,
            background-color 0.2s ease,
            transform 0.2s ease;

        -webkit-tap-highlight-color: transparent;
    }

    .mbn-link:hover,
    .mbn-link:focus {
        color: var(--mbn-orange);

        text-decoration: none;
    }

    .mbn-link:focus-visible {
        outline: 2px solid rgba(243, 112, 33, 0.42);

        outline-offset: 1px;
    }

    .mbn-link:active {
        transform: scale(0.94);
    }

    /* Standard icon */

    .mbn-icon {
        position: relative;

        width: 30px;
        height: 27px;

        display: flex;
        align-items: center;
        justify-content: center;

        color: currentColor;

        font-size: 20px;
        line-height: 1;

        transition: transform 0.2s ease;
    }

    .mbn-link:hover .mbn-icon,
    .mbn-link.is-active .mbn-icon {
        transform: translateY(-1px);
    }

    /* Label */

    .mbn-label {
        display: block;

        color: currentColor;

        font-size: 10px;
        font-weight: 700;
        line-height: 1;

        letter-spacing: 0.01em;

        white-space: nowrap;
    }

    /* Active navigation */

    .mbn-link.is-active {
        color: var(--mbn-orange);

        background: rgba(243, 112, 33, 0.08);
    }

    .mbn-link.is-active::after {
        content: "";

        position: absolute;

        bottom: 2px;
        left: 50%;

        width: 14px;
        height: 2px;

        border-radius: 20px;

        background: var(--mbn-orange);

        transform: translateX(-50%);
    }

    /* =====================================================
       PREMIUM CENTER HOME
    ===================================================== */

    .mbn-home-item {
        position: relative;

        min-height: 60px;
    }

    .mbn-home-link {
        position: absolute;

        left: 50%;
        bottom: -2px;

        width: 66px;
        min-height: 78px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        color: var(--mbn-charcoal);

        text-decoration: none;

        transform: translateX(-50%);

        -webkit-tap-highlight-color: transparent;
    }

    .mbn-home-link:hover,
    .mbn-home-link:focus {
        color: var(--mbn-charcoal);

        text-decoration: none;
    }

    .mbn-home-link:focus-visible {
        outline: none;
    }

    .mbn-home-glow {
        position: absolute;

        top: 3px;
        left: 50%;

        width: 58px;
        height: 58px;

        border-radius: 50%;

        background: rgba(243, 112, 33, 0.24);

        transform: translateX(-50%);

        animation: mbnHomeGlow 2.4s ease-out infinite;
    }

    .mbn-home-icon {
        position: relative;

        z-index: 2;

        width: 58px;
        height: 58px;

        border: 4px solid var(--mbn-surface);

        border-radius: 50%;

        background: linear-gradient(
            145deg,
            var(--mbn-orange-light),
            var(--mbn-orange) 52%,
            var(--mbn-orange-dark)
        );

        color: var(--mbn-white);

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 22px;

        box-shadow:
            var(--mbn-home-shadow),
            inset 0 1px 0 rgba(255, 255, 255, 0.42);

        animation: mbnHomeFloat 2.8s ease-in-out infinite;

        transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
    }

    .mbn-home-link:active .mbn-home-icon {
        transform: scale(0.92);
    }

    .mbn-home-link.is-active .mbn-home-icon {
        background: linear-gradient(
            145deg,
            var(--mbn-orange),
            var(--mbn-orange-dark)
        );

        box-shadow: 0 13px 30px rgba(243, 112, 33, 0.42);
    }

    .mbn-home-label {
        position: relative;

        z-index: 2;

        margin-top: 3px;

        color: var(--mbn-charcoal);

        font-size: 10px;
        font-weight: 800;
        line-height: 1;

        letter-spacing: 0.02em;
    }

    /* =====================================================
       CART BADGE
    ===================================================== */

    .mbn-cart-icon {
        overflow: visible;
    }

    .mbn-cart-count {
        position: absolute;

        top: -5px;
        right: -7px;

        min-width: 18px;
        height: 18px;

        padding: 0 5px;

        border: 2px solid var(--mbn-surface);

        border-radius: 50px;

        background: var(--mbn-charcoal);
        color: var(--mbn-white);

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 9px;
        font-weight: 800;
        line-height: 1;

        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    }

    .mbn-link.is-active .mbn-cart-count {
        background: var(--mbn-orange);
    }

    /* Keep page content above navigation */

    body {
        padding-bottom: calc(94px + env(safe-area-inset-bottom));
    }

    /* =====================================================
       ANIMATIONS
    ===================================================== */

    @keyframes mbnHomeFloat {
        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-4px);
        }
    }

    @keyframes mbnHomeGlow {
        0% {
            opacity: 0.7;

            transform: translateX(-50%) scale(0.88);
        }

        70%,
        100% {
            opacity: 0;

            transform: translateX(-50%) scale(1.32);
        }
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
    .mbn-nav {
        left: 6px;
        right: 6px;
        bottom: 6px;

        border-radius: 19px;
    }

    .mbn-list {
        padding-left: 2px;
        padding-right: 2px;
    }

    .mbn-link {
        padding-left: 0;
        padding-right: 0;
    }

    .mbn-icon {
        font-size: 18px;
    }

    .mbn-label,
    .mbn-home-label {
        font-size: 9px;
    }

    .mbn-home-link {
        width: 60px;
    }

    .mbn-home-icon,
    .mbn-home-glow {
        width: 54px;
        height: 54px;
    }

    .mbn-home-icon {
        font-size: 20px;
    }
}

/* =========================================================
   FLOATING WHATSAPP
========================================================= */

.ht-floating-whatsapp {
    position: fixed;

    right: 18px;
    bottom: 28px;

    z-index: 99980;

    width: 58px;
    height: 58px;

    border: 3px solid var(--mbn-white);

    border-radius: 50%;

    background: linear-gradient(145deg, #31e878, var(--mbn-success));

    color: var(--mbn-white);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;

    text-decoration: none;

    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.ht-floating-whatsapp:hover,
.ht-floating-whatsapp:focus {
    color: var(--mbn-white);

    text-decoration: none;

    transform: translateY(-4px) scale(1.03);

    box-shadow: 0 16px 34px rgba(37, 211, 102, 0.4);
}

.ht-whatsapp-pulse {
    position: absolute;

    inset: -7px;

    border: 2px solid rgba(37, 211, 102, 0.42);

    border-radius: 50%;

    pointer-events: none;

    animation: htWhatsAppPulse 2.2s ease-out infinite;
}

@keyframes htWhatsAppPulse {
    0% {
        opacity: 0.75;
        transform: scale(0.82);
    }

    75%,
    100% {
        opacity: 0;
        transform: scale(1.25);
    }
}

/* Above mobile bottom navigation */

@media (max-width: 768px) {
    .ht-floating-whatsapp {
        right: 16px;

        bottom: calc(100px + env(safe-area-inset-bottom));

        width: 54px;
        height: 54px;

        font-size: 28px;
    }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    .mbn-home-icon,
    .mbn-home-glow,
    .ht-whatsapp-pulse {
        animation: none !important;
    }

    .mbn-link,
    .mbn-home-icon,
    .ht-floating-whatsapp {
        transition: none !important;
    }
}


@media (max-width: 768px) {

    .mbn-quote-button:hover,
    .mbn-quote-button:focus {
        color: var(--mbn-orange);
        background:
            rgba(243, 112, 33, 0.08);
    }

    .mbn-quote-button:active {
        transform: scale(0.94);
    }
}