

/* =========================================================
   HEAVEN TOUCH - SIMPLE MOBILE BOTTOM NAV
========================================================= */

:root {
    --mbn-bg: #ffffff;
    --mbn-text: #171717;
    --mbn-muted: #222222;
    --mbn-border: #eeeeee;
    --mbn-orange: #f58220;
    --mbn-badge: #111111;
    --mbn-white: #ffffff;
}


/* Desktop hidden */

.mbn-nav {
    display: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .mbn-nav {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 99999;

        display: block;

        width: 100%;

        background: var(--mbn-bg);

        border-top: 1px solid var(--mbn-border);

        box-shadow:
            0 -3px 14px rgba(0, 0, 0, 0.06);
    }


    /* LIST */

    .mbn-list {
        width: 100%;

        margin: 0;
        padding: 6px 12px 7px;

        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: center;

        list-style: none;
    }


    /* ITEM */

    .mbn-item {
        min-width: 0;

        margin: 0;
        padding: 0;

        text-align: center;
    }


    /* LINK / SEARCH BUTTON */

    .mbn-link {
        position: relative;

        width: 100%;
        min-height: 52px;

        margin: 0;
        padding: 0;

        border: 0;
        background: transparent;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 3px;

        color: var(--mbn-text);

        text-decoration: none;

        cursor: pointer;

        -webkit-tap-highlight-color: transparent;
    }


    /* ICON */

    .mbn-icon {
        position: relative;

        width: 30px;
        height: 27px;

        display: flex;
        align-items: center;
        justify-content: center;

        color: var(--mbn-text);

        font-size: 22px;
        line-height: 1;
    }


    /* Shop grid icon a little smaller */

    .mbn-item:first-child .mbn-icon {
        font-size: 20px;
    }


    /* LABEL */

    .mbn-label {
        display: block;

        color: var(--mbn-muted);

        font-size: 11px;
        font-weight: 600;
        line-height: 1.1;

        white-space: nowrap;
    }


    /* Active */

    .mbn-link.is-active .mbn-icon,
    .mbn-link.is-active .mbn-label {
        color: var(--mbn-orange);
    }


    /* CART BADGE */

    .mbn-cart-icon {
        overflow: visible;
    }

    .mbn-cart-count {
        position: absolute;

        top: -4px;
        right: -4px;

        min-width: 17px;
        height: 17px;

        padding: 0 4px;

        border-radius: 50px;

        background: var(--mbn-badge);
        color: var(--mbn-white);

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 9px;
        font-weight: 700;
        line-height: 1;
    }


    /* Search button */

    .mbn-search-button {
        font-family: inherit;
    }


    /* Press */

    .mbn-link:active {
        opacity: 0.6;
    }


    /* Content protection */

    body {
        padding-bottom: 72px;
    }


    /* iPhone safe area */

    @supports (padding-bottom: env(safe-area-inset-bottom)) {

        .mbn-nav {
            padding-bottom: env(safe-area-inset-bottom);
        }

        body {
            padding-bottom:
                calc(72px + env(safe-area-inset-bottom));
        }

    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .mbn-list {
        padding-left: 8px;
        padding-right: 8px;
    }

    .mbn-icon {
        font-size: 20px;
    }

    .mbn-label {
        font-size: 10px;
    }
}



/* =========================================
   FLOATING WHATSAPP
========================================= */

.ht-floating-whatsapp {
    position: fixed;

    right: 18px;
    bottom: 88px;

    z-index: 99998;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: #25d366;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 31px;

    text-decoration: none;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.ht-floating-whatsapp:hover {
    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.22);
}


/* Mobile position above bottom navbar */

@media (max-width: 768px) {

    .ht-floating-whatsapp {
        right: 18px;
        bottom: 82px;

        width: 56px;
        height: 56px;

        font-size: 30px;
    }
}


/* Very small mobile */

@media (max-width: 380px) {

    .ht-floating-whatsapp {
        right: 14px;
        bottom: 80px;

        width: 52px;
        height: 52px;

        font-size: 28px;
    }
}