/*==========================================
    YOUR WELLNEZ - CART / WISHLIST / TOAST
    Shared across every page
==========================================*/

/* Badge count on nav icons (cart + wishlist) */
.cart-count,
.wishlist-count{
    position:absolute;
    top:-6px;
    right:-4px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#ff4d4f;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:11px;
    font-weight:600;
    line-height:1;
}

.nav-btn{
    position:relative;
}

/* Wishlist heart active state */
.wishlist-btn.active i,
.nav-btn.wishlist-btn.active i{
    color:#ff4d4f;
}

.wishlist-btn.active{
    background:#fff0f0 !important;
}

/*==========================================
        CART OVERLAY / DRAWER
==========================================*/

.cart-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:998;
}

.cart-drawer{
    position:fixed;
    top:0;
    right:-420px;
    width:100%;
    max-width:420px;
    height:100%;
    background:#fff;
    z-index:999;
    display:flex;
    flex-direction:column;
    transition:.4s ease;
    box-shadow:-10px 0 40px rgba(0,0,0,.15);
}

.cart-drawer.active{
    right:0;
}

.cart-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:25px;
    border-bottom:1px solid #eee;
}

.cart-header h3{
    font-size:20px;
}

.close-cart{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#f5f5f5;
    border:none;
    cursor:pointer;
}

.cart-items{
    flex:1;
    overflow:auto;
    padding:25px;
}

.cart-items p{
    text-align:center;
    color:#999;
    margin-top:40px;
}

.cart-item{
    display:flex;
    gap:14px;
    padding:16px 0;
    border-bottom:1px solid #f0f0f0;
}

.cart-item img{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:12px;
    flex-shrink:0;
}

.cart-item-info{
    flex:1;
}

.cart-item-info h4{
    font-size:15px;
    margin-bottom:4px;
    color:#222;
}

.cart-item-price{
    color:#F4A51C;
    font-weight:600;
    font-size:14px;
    margin-bottom:8px;
}

.cart-item-qty{
    display:flex;
    align-items:center;
    gap:10px;
}

.cart-item-qty button{
    width:26px;
    height:26px;
    border-radius:50%;
    border:1px solid #ddd;
    background:#fff;
    cursor:pointer;
    font-size:12px;
}

.cart-item-qty span{
    font-size:14px;
    font-weight:600;
    min-width:16px;
    text-align:center;
}

.cart-item-remove{
    background:none;
    border:none;
    color:#bbb;
    cursor:pointer;
    font-size:15px;
    align-self:flex-start;
    transition:.2s;
}

.cart-item-remove:hover{
    color:#ff4d4f;
}

.cart-footer{
    padding:25px;
    border-top:1px solid #eee;
}

.cart-subtotal{
    display:flex;
    justify-content:space-between;
    font-size:16px;
    font-weight:600;
    margin-bottom:6px;
    color:#222;
}

.tax-note{
    font-size:12px;
    color:#888;
    text-align:right;
    margin:0 0 16px;
}

.checkout-btn{
    width:100%;
    height:55px;
    border:none;
    border-radius:14px;
    background:#F4A51C;
    color:#fff;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.checkout-btn:hover{
    background:#d88f0f;
}

.checkout-btn:disabled{
    background:#e5c98a;
    cursor:not-allowed;
}

/*==========================================
        TOAST
==========================================*/

.toast{
    position:fixed;
    right:30px;
    bottom:30px;
    background:#222;
    color:#fff;
    padding:16px 24px;
    border-radius:14px;
    display:flex;
    align-items:center;
    gap:10px;
    opacity:0;
    transform:translateY(20px);
    transition:.3s;
    z-index:9999;
    font-size:14px;
}

.toast.show{
    opacity:1;
    transform:translateY(0);
}

.toast i{
    color:#28A745;
}

@media(max-width:576px){

    .cart-drawer{
        max-width:100%;
        right:-100%;
    }

    .toast{
        right:16px;
        left:16px;
        bottom:16px;
    }

}
