/* =========================================
   Mobile Bottom Dock
   ========================================= */

.homedish-mobile-bottom-dock {
    display: none;
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 767px) {

    .homedish-mobile-bottom-dock {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9999;

        display: flex;
        flex-direction: row;
        direction: rtl;

        width: 100%;
        height: 64px;

        padding: 4px 6px;

        background: #fff;

        border-top: 1px solid rgba(0, 0, 0, .08);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);

        box-sizing: border-box;
    }


    /* هر آیتم */
    .homedish-mobile-bottom-dock .homedish-dock-item {
        position: relative;

        display: flex;
        flex: 1 1 20%;

        align-items: center;
        justify-content: center;

        flex-direction: column;

        min-width: 0;
        min-height: 44px;

        padding: 3px 2px;
        margin: 0;

        background: transparent;
        border: 0;

        color: #292d32;

        text-decoration: none;

        cursor: pointer;

        -webkit-tap-highlight-color: transparent;
    }


    /* آیکون */
    .homedish-mobile-bottom-dock .homedish-dock-icon {
        display: flex;

        align-items: center;
        justify-content: center;

        width: 24px;
        height: 24px;

        margin-bottom: 2px;
    }


    .homedish-mobile-bottom-dock .homedish-dock-icon svg {
        display: block;

        width: 21px;
        height: 21px;

        max-width: 21px;
        max-height: 21px;

        fill: currentColor;
    }


    /* متن */
    .homedish-mobile-bottom-dock .homedish-dock-label {
        display: block;

        font-size: 10.5px;
        font-weight: 400;

        line-height: 1.3;

        white-space: nowrap;

        color: currentColor;
    }


    /* حالت فعال */
    .homedish-mobile-bottom-dock
    .homedish-dock-item.is-active {
        color: #221f45;
    }


    .homedish-mobile-bottom-dock
    .homedish-dock-item.is-active .homedish-dock-label {
        font-weight: 600;
    }


    /* شمارنده سبد */
    .homedish-mobile-bottom-dock .homedish-dock-cart-count {
        position: absolute;

        top: 1px;
        right: calc(50% - 18px);

        display: none;

        align-items: center;
        justify-content: center;

        min-width: 15px;
        height: 15px;

        padding: 0 3px;

        border-radius: 10px;

        background: #e60000;
        color: #fff;

        font-size: 9px;
        font-weight: 600;

        line-height: 15px;

        box-sizing: border-box;
    }


    .homedish-mobile-bottom-dock
    .homedish-dock-cart-count:not(:empty) {
        display: flex;
    }


    /* جلوگیری از پوشانده شدن محتوای صفحه */
    body {
        padding-bottom: 64px;
    }


    /* صفحه محصول: داک محصول خودش را دارد */
    body.single-product {
        padding-bottom: 0;
    }
}

/* =========================================
   Product Mobile Back Button
   ========================================= */

@media (max-width: 767px) {

    body.single-product .product_search_box {
        position: relative !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body.single-product .product_search_box > form {
        width: calc(100% - 38px) !important;
        max-width: calc(100% - 38px) !important;
        margin: 0 !important;
    }

    body.single-product .product_search_box > .homedish_product_back_btn {
        display: flex !important;

        position: absolute !important;
        right: 0 !important;
        top: 50% !important;

        transform: translateY(-50%) !important;

        width: 30px !important;
        height: 30px !important;

        padding: 0 !important;
        margin: 0 !important;

        align-items: center !important;
        justify-content: center !important;

        border: 1px solid #d8d8d8 !important;
        border-radius: 50% !important;

        background: #fff !important;
        color: #292d32 !important;

        font-family: Arial, sans-serif !important;
        font-size: 20px !important;
        font-weight: 400 !important;
        line-height: 30px !important;

        box-shadow: none !important;
        outline: none !important;

        cursor: pointer !important;
        appearance: none !important;
        -webkit-appearance: none !important;

        z-index: 10 !important;
    }

    body.single-product .product_search_box > form .input-group {
        width: 100% !important;
        margin: 0 !important;
    }

}

/* دکمه برگشت محصول فقط در موبایل */
.homedish_product_back_btn {
    display: none !important;
}

@media (max-width: 767px) {
    .homedish_product_back_btn {
        display: flex !important;
    }
}


/* =========================================
   Dock icon press effect
   ========================================= */

.homedish-mobile-bottom-dock .homedish-dock-item.is-pressing {
    color: #292d32 !important;
}

.homedish-mobile-bottom-dock .homedish-dock-item.is-pressing
.homedish-dock-icon svg {
    stroke: currentColor;
    stroke-width: 2.8px;
    paint-order: stroke fill;
}

.homedish-mobile-bottom-dock .homedish-dock-item.is-pressing
.homedish-dock-label {
    font-weight: 700;
}