/* ==========================================================
   FONT FAMILY
========================================================== */

@font-face {
    font-family: "IRANYekanX";
    src: url("../fonts/IRANYekanX-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANYekanX";
    src: url("../fonts/IRANYekanX-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANYekanX";
    src: url("../fonts/IRANYekanX-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================
   TYPOGRAPHY VARIABLES
========================================================== */

:root{
    --font-primary: "IRANYekanX", sans-serif;
}

/* ========================================
   Mobile Floating Tab Bar
======================================== */

.mobile-tabbar {
    display: none;
}


/* فقط موبایل */
@media (max-width: 767px) {

    .mobile-tabbar {
        position: fixed;
        display: flex;
        align-items: stretch;

        left: 12px;
        right: 12px;
        bottom: 14px;

        height: 68px;

        padding: 6px;

        background: rgba(255, 255, 255, 0.96);

        border: 1px solid rgba(40, 154, 118, 0.12);
        border-radius: 22px;

        box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.12),
            0 2px 8px rgba(40, 154, 118, 0.06);

        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);

        z-index: 999;

        direction: ltr;
    }


    /* آیتم‌ها */

    .mobile-tabbar__item {
        position: relative;

        flex: 1;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 3px;

        min-width: 0;

        color: #626262;
        text-decoration: none;

        border-radius: 17px;

        transition:
            color 0.2s ease,
            background 0.2s ease,
            transform 0.2s ease;
    }


    /* جلوگیری از استایل لینک قالب */

    .mobile-tabbar__item:hover,
    .mobile-tabbar__item:focus,
    .mobile-tabbar__item:active {
        text-decoration: none;
        color: #289A76;
    }


    /* آیکون */

    .mobile-tabbar__icon {
        width: 26px;
        height: 26px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 19px;

        transition: all 0.2s ease;
    }


    /* متن */

    .mobile-tabbar__label {
        font-family: inherit;

        font-size: 11px;
        font-weight: 500;

        line-height: 1.3;

        white-space: nowrap;
    }


    /* آیتم فعال */

    .mobile-tabbar__item.is-active {
        color: #289A76;
        background: rgba(40, 154, 118, 0.09);
    }


    .mobile-tabbar__item.is-active .mobile-tabbar__icon {
        transform: translateY(-1px);
    }


    /* آیکون خانه */

    .mobile-tabbar__item.is-active .mobile-tabbar__icon {
        color: #289A76;
    }


  


    /* Badge */
.mobile-tabbar__badge--yellow {
    background: #F2B705;
    color: #fff;
}
    .mobile-tabbar__badge {
        position: absolute;

        top: -2px;
        right: 3px;

        padding: 2px 5px;

        background: #289A76;
        color: #fff;

        border-radius: 8px;

        font-size: 7px;
        font-weight: 700;

        line-height: 1.2;

        white-space: nowrap;
    }
.mobile-tabbar__icon svg {
    width: 22px;
    height: 22px;

    display: block;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform .25s ease,
        stroke-width .25s ease;
}


/* Hover / Active */

.mobile-tabbar__item:hover .mobile-tabbar__icon svg {
    transform: translateY(-1px);
}

.mobile-tabbar__item.is-active .mobile-tabbar__icon svg {
    stroke-width: 2.2;
}


/* Badge پایه */

.mobile-tabbar__badge {
    position: absolute;

    top: 3px;
    right: 4px;

    padding: 2px 6px;

    border-radius: 20px;

    font-size: 7px;
    font-weight: 700;

    line-height: 1.4;

    white-space: nowrap;

    letter-spacing: -0.1px;

    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}


/* Badge کالکشن */

.mobile-tabbar__badge--purple {
    background: #7C3AED;
    color: #fff;
}




    /* حالت لمس */

    .mobile-tabbar__item:active {
        transform: scale(0.94);
    }


    /* صفحه خیلی کوچک */

    @media (max-width: 360px) {

        .mobile-tabbar {
            left: 8px;
            right: 8px;
            bottom: 10px;
        }

        .mobile-tabbar__label {
            font-size: 10px;
        }

        .mobile-tabbar__icon {
            font-size: 18px;
        }

    }

}

.mobile-tabbar .mobile-tabbar__badge--yellow {
    background: #F4B400 !important;
    color: #ffffff !important;

    border: none !important;
    opacity: 1 !important;

    box-shadow: 0 2px 7px rgba(244, 180, 0, 0.25);
}

.mobile-tabbar .mobile-tabbar__item--consultation {
    color: #555;
}

.mobile-tabbar .mobile-tabbar__item--consultation:hover {
    color: #F4B400;
}

.mobile-tabbar .mobile-tabbar__item--consultation .mobile-tabbar__icon svg {
    stroke: currentColor;
}

.mobile-tabbar .mobile-tabbar__item--consultation:active {
    color: #F4B400;
}
.mobile-tabbar .mobile-tabbar__item--offer {
    color: #E53935 !important;
}

.mobile-tabbar .mobile-tabbar__item--offer .mobile-tabbar__icon svg {
    stroke: #E53935 !important;
}

.mobile-tabbar .mobile-tabbar__badge--green {
    background: #E53935 !important;
    color: #FFFFFF !important;
}

    /* موبایل‌های خیلی کوچک */

    @media (max-width: 360px) {

        .single-product .product-mobile-sticky {

            left: 8px;
            right: 8px;
            bottom: 10px;
        }

        .product-mobile-sticky__price-value {

            font-size: 13px;
        }

        .product-mobile-sticky__add {

            font-size: 12px;
        }
    }
}
