/*
==========================================================
TIOB MINI CART STYLE
RTL / Responsive
==========================================================
*/


.tiob-mini-cart{

    position:fixed;

    top:0;

    right:-430px;

    width:400px;

    height:100vh;

    background:#fff;

    z-index:99999;

    box-shadow:0 0 40px rgba(0,0,0,.15);

    display:flex;

    flex-direction:column;

    transition:.35s ease;

    direction:rtl;

}



.tiob-mini-cart.active{

    right:0;

}





.tiob-cart-header{

    height:70px;

    padding:0 20px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    border-bottom:1px solid #eee;

}



.tiob-cart-header h3{

    margin:0;

    font-size:18px;

    font-weight:700;

}



.tiob-cart-close{

    width:38px;

    height:38px;

    border:0;

    border-radius:50%;

    cursor:pointer;

}





.tiob-mini-cart-content{

    flex:1;

    overflow-y:auto;

    padding:20px;

}





.tiob-cart-item{

    display:flex;

    gap:12px;

    padding:15px 0;

    border-bottom:1px solid #eee;

}



.tiob-cart-image img{

    width:75px;

    height:75px;

    object-fit:cover;

    border-radius:12px;

}



.tiob-cart-info{

    flex:1;

}



.tiob-cart-product-name{

    display:block;

    font-size:14px;

    font-weight:600;

    margin-bottom:10px;

}





.tiob-cart-meta{

    display:flex;

    align-items:center;

    justify-content:space-between;

}



.tiob-cart-quantity{

    display:flex;

    align-items:center;

    border:1px solid #ddd;

    border-radius:10px;

    overflow:hidden;

}



.tiob-cart-quantity button{

    width:28px;

    height:28px;

    border:0;

    background:none;

    cursor:pointer;

}



.tiob-cart-quantity span{

    min-width:30px;

    text-align:center;

}
/*
==========================================================
TIOB MINI CART FOOTER
==========================================================
*/


.tiob-cart-footer{

    padding:20px;

    border-top:1px solid #eee;

    background:#fff;

}



.tiob-cart-total-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:16px;

    margin-bottom:15px;

}



.tiob-cart-total{

    font-size:20px;

    font-weight:800;

}





.tiob-cart-actions{

    display:flex;

    gap:10px;

}



.tiob-cart-actions a{

    flex:1;

    text-align:center;

    padding:13px;

    border-radius:12px;

    text-decoration:none;

    font-weight:700;

}



.tiob-cart-view{

    background:#f1f5f9;

}



.tiob-cart-checkout{

    background:#2563eb;

    color:#fff;

}





/*
==========================================================
OVERLAY
==========================================================
*/


.tiob-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:99998;

}



.tiob-overlay.active{

    opacity:1;

    visibility:visible;

}





/*
==========================================================
EMPTY CART
==========================================================
*/


.tiob-cart-empty{

    height:100%;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

}



.tiob-cart-empty i{

    font-size:55px;

    margin-bottom:20px;

}





/*
==========================================================
MOBILE
==========================================================
*/


@media(max-width:600px){


    .tiob-mini-cart{

        width:100%;

        right:-100%;

    }


    .tiob-cart-actions{

        flex-direction:column;

    }


}





/*
==========================================================
LOADING
==========================================================
*/


.tiob-cart-loading{

    opacity:.5;

    pointer-events:none;

}



.tiob-add-to-cart.loading{

    cursor:wait;

}